From 8b495347d0042d7b10aeff4540fe3b8e9a2563ae Mon Sep 17 00:00:00 2001 From: alberto-art3ch Date: Sat, 23 Mar 2024 03:50:04 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20=20@=20cac62?= =?UTF-8?q?aae2a88f57d6316ed3d5853a3ec270d6306=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index d19fe5f3e9..f14af35697 100644 --- a/main.js +++ b/main.js @@ -1 +1 @@ -(self.webpackChunkmifosx_web_app=self.webpackChunkmifosx_web_app||[]).push([["main"],{96170:(X,j)=>{(function(h){const u=h.en=h.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,X.exports=function(h){var u={};function p(x){if(u[x])return u[x].exports;var v=u[x]={i:x,l:!1,exports:{}};return h[x].call(v.exports,v,v.exports,p),v.l=!0,v.exports}return p.m=h,p.c=u,p.d=function(x,v,t){p.o(x,v)||Object.defineProperty(x,v,{enumerable:!0,get:t})},p.r=function(x){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(x,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(x,"__esModule",{value:!0})},p.t=function(x,v){if(1&v&&(x=p(x)),8&v||4&v&&"object"==typeof x&&x&&x.__esModule)return x;var t=Object.create(null);if(p.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:x}),2&v&&"string"!=typeof x)for(var T in x)p.d(t,T,function(U){return x[U]}.bind(null,T));return t},p.n=function(x){var v=x&&x.__esModule?function(){return x.default}:function(){return x};return p.d(v,"a",v),v},p.o=function(x,v){return Object.prototype.hasOwnProperty.call(x,v)},p.p="",p(p.s=96)}([function(h,u,p){"use strict";p.d(u,"b",function(){return x}),p.d(u,"a",function(){return v});class x extends Error{constructor(T,U,w){T=v(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 x(T.message,U);throw w.stack=T.stack,w}}function v(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(h,u,p){"use strict";var x,ct,t=(ct={},function(bt){if(void 0===ct[bt]){var Dt=document.querySelector(bt);if(window.HTMLIFrameElement&&Dt instanceof window.HTMLIFrameElement)try{Dt=Dt.contentDocument.head}catch{Dt=null}ct[bt]=Dt}return ct[bt]}),T=[];function U(ct){for(var bt=-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(h,u,p){var x=p(1),v=p(20);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.exports=".ck.ck-label{display:block}.ck.ck-voice-label{display:none}.ck.ck-label{font-weight:700}"},function(h,u,p){var x=p(1),v=p(22);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(24);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(26);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(28);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(30);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(32);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(34);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(36);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(38);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(40);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(42);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(44);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(46);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(48);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(50);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(52);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(54);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(56);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(58);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(60);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(62);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(64);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(66);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(68);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(70);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u){h.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(h,u,p){var x=p(1),v=p(73);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(75);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(77);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(79);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(81);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(83);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(85);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.exports=".ck-content .media{clear:both;margin:1em 0;display:block;min-width:15em}"},function(h,u,p){var x=p(1),v=p(87);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(89);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(91);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(93);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(95);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){"use strict";p.r(u),p.d(u,"default",function(){return En});var x=p(3),v=x.a.Symbol,t=Object.prototype,T=t.hasOwnProperty,U=t.toString,w=v?v.toStringTag:void 0,O=Object.prototype.toString,N=v?v.toStringTag:void 0,V=function(d){return null==d?void 0===d?"[object Undefined]":"[object Null]":N&&N in Object(d)?function(d){var r=T.call(d,w),l=d[w];try{d[w]=void 0;var m=!0}catch{}var b=U.call(d);return m&&(r?d[w]=l:delete d[w]),b}(d):function(d){return O.call(d)}(d)},W=function(d,r){return function(l){return d(r(l))}},tt=W(Object.getPrototypeOf,Object),st=function(d){return null!=d&&"object"==typeof d},Dt=Function.prototype.toString,wt=Object.prototype.hasOwnProperty,qt=Dt.call(Object),Jt=function(d){if(!st(d)||"[object Object]"!=V(d))return!1;var r=tt(d);if(null===r)return!0;var l=wt.call(r,"constructor")&&r.constructor;return"function"==typeof l&&l instanceof l&&Dt.call(l)==qt},At=function(d,r){return d===r||d!=d&&r!=r},xt=function(d,r){for(var l=d.length;l--;)if(At(d[l][0],r))return l;return-1},pt=Array.prototype.splice;function Vt(d){var r=-1,l=null==d?0:d.length;for(this.clear();++r-1},Vt.prototype.set=function(d,r){var l=this.__data__,m=xt(l,d);return m<0?(++this.size,l.push([d,r])):l[m][1]=r,this};var Te,ve=Vt,Gt=function(d){var r=typeof d;return null!=d&&("object"==r||"function"==r)},ne=function(d){if(!Gt(d))return!1;var r=V(d);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r},jt=x.a["__core-js_shared__"],re=(Te=/[^.]+$/.exec(jt&&jt.keys&&jt.keys.IE_PROTO||""))?"Symbol(src)_1."+Te:"",oe=Function.prototype.toString,Me=function(d){if(null!=d){try{return oe.call(d)}catch{}try{return d+""}catch{}}return""},en=/^\[object .+?Constructor\]$/,un=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Dn=function(d){return!(!Gt(d)||function(d){return!!re&&re in d}(d))&&(ne(d)?un:en).test(Me(d))},_i=function(d,r){var l=function(d,r){return d?.[r]}(d,r);return Dn(l)?l:void 0},oi=_i(x.a,"Map"),Qe=_i(Object,"create"),K=Object.prototype.hasOwnProperty,Rt=Object.prototype.hasOwnProperty;function De(d){var r=-1,l=null==d?0:d.length;for(this.clear();++r-1&&d%1==0&&d-1&&d%1==0&&d<=9007199254740991},We={};We["[object Float32Array]"]=We["[object Float64Array]"]=We["[object Int8Array]"]=We["[object Int16Array]"]=We["[object Int32Array]"]=We["[object Uint8Array]"]=We["[object Uint8ClampedArray]"]=We["[object Uint16Array]"]=We["[object Uint32Array]"]=!0,We["[object Arguments]"]=We["[object Array]"]=We["[object ArrayBuffer]"]=We["[object Boolean]"]=We["[object DataView]"]=We["[object Date]"]=We["[object Error]"]=We["[object Function]"]=We["[object Map]"]=We["[object Number]"]=We["[object Object]"]=We["[object RegExp]"]=We["[object Set]"]=We["[object String]"]=We["[object WeakMap]"]=!1;var bi=function(d){return function(r){return d(r)}},so=p(5),To=so.a&&so.a.isTypedArray,Lo=To?bi(To):function(d){return st(d)&&pn(d.length)&&!!We[V(d)]},ha=Object.prototype.hasOwnProperty,Aa=function(d,r){var l=Sn(d),m=!l&&Ie(d),b=!l&&!m&&Object(Ei.a)(d),M=!l&&!m&&!b&&Lo(d),S=l||m||b||M,q=S?function(d,r){for(var l=-1,m=Array(d);++l{this._setToTarget(r,b,l[b],m)})}}function Pr(d){return Ts(d,dc)}function dc(d){return As(d)?d:void 0}class Va{constructor(r,l){this.source=r,this.name=l,this.path=[],this.stop=function d(){d.called=!0},this.off=function d(){d.called=!0}}}const Ur=new Array(256).fill().map((d,r)=>("0"+r.toString(16)).slice(-2));function vr(){const d=4294967296*Math.random()>>>0,r=4294967296*Math.random()>>>0,l=4294967296*Math.random()>>>0,m=4294967296*Math.random()>>>0;return"e"+Ur[d>>0&255]+Ur[d>>8&255]+Ur[d>>16&255]+Ur[d>>24&255]+Ur[r>>0&255]+Ur[r>>8&255]+Ur[r>>16&255]+Ur[r>>24&255]+Ur[l>>0&255]+Ur[l>>8&255]+Ur[l>>16&255]+Ur[l>>24&255]+Ur[m>>0&255]+Ur[m>>8&255]+Ur[m>>16&255]+Ur[m>>24&255]}var as={get(d){return"number"!=typeof d?this[d]||this.normal:d},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5},Qn=(p(6),p(0));const zs=Symbol("listeningTo"),ms=Symbol("emitterId");var Za={on(d,r,l={}){this.listenTo(this,d,r,l)},once(d,r,l){let m=!1;this.listenTo(this,d,function(b,...M){m||(m=!0,b.off(),r.call(this,b,...M))},l)},off(d,r){this.stopListening(this,d,r)},listenTo(d,r,l,m={}){let b,M;this[zs]||(this[zs]={});const S=this[zs];Us(d)||rs(d);const q=Us(d);(b=S[q])||(b=S[q]={emitter:d,callbacks:{}}),(M=b.callbacks[r])||(M=b.callbacks[r]=[]),M.push(l),function(Zt,_e){const Be=ws(Zt);if(Be[_e])return;let mn=_e,Mn=null;const In=[];for(;""!==mn&&!Be[mn];)Be[mn]={callbacks:[],childEvents:[]},In.push(Be[mn]),Mn&&Be[mn].childEvents.push(Mn),Mn=mn,mn=mn.substr(0,mn.lastIndexOf(":"));if(""!==mn){for(const Gn of In)Gn.callbacks=Be[mn].callbacks.slice();Be[mn].childEvents.push(Mn)}}(d,r);const B=Fs(d,r),at=as.get(m.priority),_t={callback:l,priority:at};for(const Zt of B){let _e=!1;for(let Be=0;Be-1?M(S,q.substr(0,q.lastIndexOf(":"))):null}(this,m);if(l.path.push(this),b){const M=[l,...r];b=Array.from(b);for(let S=0;S{this._delegations||(this._delegations=new Map),d.forEach(m=>{const b=this._delegations.get(m);b?b.set(r,l):this._delegations.set(m,new Map([[r,l]]))})}}},stopDelegating(d,r){if(this._delegations)if(d)if(r){const l=this._delegations.get(d);l&&l.delete(r)}else this._delegations.delete(d);else this._delegations.clear()}};function rs(d,r){d[ms]||(d[ms]=r||vr())}function Us(d){return d[ms]}function ws(d){return d._events||Object.defineProperty(d,"_events",{value:{}}),d._events}function Fs(d,r){const l=ws(d)[r];if(!l)return[];let m=[l.callbacks];for(let b=0;b{Object.getOwnPropertyNames(l).concat(Object.getOwnPropertySymbols(l)).forEach(m=>{if(m in d.prototype)return;const b=Object.getOwnPropertyDescriptor(l,m);b.enumerable=!1,Object.defineProperty(d.prototype,m,b)})})}class Nr{constructor(r={},l={}){const m=Ba(r);if(m||(l=r),this._items=[],this._itemMap=new Map,this._idProperty=l.idProperty||"id",this._bindToExternalToInternalMap=new WeakMap,this._bindToInternalToExternalMap=new WeakMap,this._skippedIndexesFromExternal=[],m)for(const b of r)this._items.push(b),this._itemMap.set(this._getItemIdBeforeAdding(b),b)}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 Qn.b("collection-add-item-invalid-index",this);for(let m=0;m{this._setUpBindToBinding(m=>new l(m))},using:l=>{this._setUpBindToBinding("function"==typeof l?m=>l(m):m=>m[l])}}}_setUpBindToBinding(r){const l=this._bindToCollection,m=(b,M,S)=>{const q=l._bindToCollection==this,B=l._bindToInternalToExternalMap.get(M);if(q&&B)this._bindToExternalToInternalMap.set(M,B),this._bindToInternalToExternalMap.set(B,M);else{const at=r(M);if(!at)return void this._skippedIndexesFromExternal.push(S);let _t=S;for(const Zt of this._skippedIndexesFromExternal)S>Zt&&_t--;for(const Zt of l._skippedIndexesFromExternal)_t>=Zt&&_t++;this._bindToExternalToInternalMap.set(M,at),this._bindToInternalToExternalMap.set(at,M),this.add(at,_t);for(let Zt=0;Zt{const q=this._bindToExternalToInternalMap.get(M);q&&this.remove(q),this._skippedIndexesFromExternal=this._skippedIndexesFromExternal.reduce((B,at)=>(Sat&&B.push(at),B),[])})}_getItemIdBeforeAdding(r){const l=this._idProperty;let m;if(l in r){if(m=r[l],"string"!=typeof m)throw new Qn.b("collection-add-invalid-id",this);if(this.get(m))throw new Qn.b("collection-add-item-already-exists",this)}else r[l]=m=vr();return m}_remove(r){let l,m,b,M=!1;const S=this._idProperty;if("string"==typeof r?(m=r,b=this._itemMap.get(m),M=!b,b&&(l=this._items.indexOf(b))):"number"==typeof r?(l=r,b=this._items[l],M=!b,b&&(m=b[S])):(b=r,m=b[S],l=this._items.indexOf(b),M=-1==l||!this._itemMap.get(m)),M)throw new Qn.b("collection-remove-404: Item not found.",this);this._items.splice(l,1),this._itemMap.delete(m);const q=this._bindToInternalToExternalMap.get(b);return this._bindToInternalToExternalMap.delete(b),this._bindToExternalToInternalMap.delete(q),this.fire("remove",b,l),[b,l]}[Symbol.iterator](){return this._items[Symbol.iterator]()}}io(Nr,Za);class sr{constructor(r,l=[],m=[]){this._context=r,this._plugins=new Map,this._availablePlugins=new Map;for(const b of l)b.pluginName&&this._availablePlugins.set(b.pluginName,b);this._contextPlugins=new Map;for(const[b,M]of m)this._contextPlugins.set(b,M),this._contextPlugins.set(M,b),b.pluginName&&this._availablePlugins.set(b.pluginName,b)}*[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 b=r;throw"function"==typeof r&&(b=r.pluginName||r.name),new Qn.b("plugincollection-plugin-not-loaded: The requested plugin is not loaded.",this._context,{plugin:b})}return l}has(r){return this._plugins.has(r)}init(r,l=[]){const m=this,b=this._context,M=new Set,S=[],q=Be(r),B=Be(l),at=function(mn){const Mn=[];for(const In of mn)_e(In)||Mn.push(In);return Mn.length?Mn:null}(r);if(at){const mn="plugincollection-plugin-not-found: Some plugins are not available and could not be loaded.";return console.error(Object(Qn.a)(mn),{plugins:at}),Promise.reject(new Qn.b(mn,b,{plugins:at}))}return Promise.all(q.map(function _t(mn){if(!B.includes(mn)&&!m._plugins.has(mn)&&!M.has(mn))return(Mn=mn,new Promise(In=>{M.add(Mn),Mn.requires&&Mn.requires.forEach(Fi=>{const Ji=_e(Fi);if(Mn.isContextPlugin&&!Ji.isContextPlugin)throw new Qn.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 Qn.b("plugincollection-required: Cannot load a plugin because one of its dependencies is listed inthe `removePlugins` option.",b,{plugin:Ji.name,requiredBy:Mn.name});_t(Ji)});const Gn=m._contextPlugins.get(Mn)||new Mn(b);m._add(Mn,Gn),S.push(Gn),In()})).catch(Mn=>{throw console.error(Object(Qn.a)("plugincollection-load: It was not possible to load the plugin."),{plugin:mn}),Mn});var Mn})).then(()=>Zt(S,"init")).then(()=>Zt(S,"afterInit")).then(()=>S);function Zt(mn,Mn){return mn.reduce((In,Gn)=>Gn[Mn]?m._contextPlugins.has(Gn)?In:In.then(Gn[Mn].bind(Gn)):In,Promise.resolve())}function _e(mn){return"function"==typeof mn?mn:m._availablePlugins.get(mn)}function Be(mn){return mn.map(Mn=>_e(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 m=r.pluginName;if(m){if(this._plugins.has(m))throw new Qn.b("plugincollection-plugin-name-conflict: Two plugins with the same name were loaded.",null,{pluginName:m,plugin1:this._plugins.get(m).constructor,plugin2:r});this._plugins.set(m,l)}}}io(sr,Za),window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={});const Lc=["ar","fa","he","ku","ug"];class ul{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,m)=>this._t(l,m)}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}),b=function Br(d,r,l=1){if("number"!=typeof l)throw new Qn.b("translation-service-quantity-not-a-number: Expecting `quantity` to be a number.",null,{quantity:l});const m=Object.keys(window.CKEDITOR_TRANSLATIONS).length;1===m&&(d=Object.keys(window.CKEDITOR_TRANSLATIONS)[0]);const b=r.id||r.string;if(0===m||(B=d,!window.CKEDITOR_TRANSLATIONS[B]||!window.CKEDITOR_TRANSLATIONS[B].dictionary[b]))return 1!==l?r.plural:r.string;var B;const M=window.CKEDITOR_TRANSLATIONS[d].dictionary,S=window.CKEDITOR_TRANSLATIONS[d].getPluralForm||(B=>1===B?0:1);if("string"==typeof M[b])return M[b];const q=Number(S(l));return M[b][q]}(this.uiLanguage,r,r.plural?l[0]:1),M=l,b.replace(/%(\d+)/g,(S,q)=>qr.destroy())).then(()=>this.plugins.destroy())}_addEditor(r,l){if(this._contextOwner)throw new Qn.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 m=new this(r);l(m.initPlugins().then(()=>m))})}}function _s(d,r){const l=Math.min(d.length,r.length);for(let m=0;mr.data.length)throw new Qn.b("view-textproxy-wrong-offsetintext: Given offsetInText value is incorrect.",this);if(m<0||l+m>r.data.length)throw new Qn.b("view-textproxy-wrong-length: Given length value is incorrect.",this);this.data=r.data.substring(l,l+m),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 m=r.includeSelf?this.textNode:this.parent;for(;null!==m;)l[r.parentFirst?"push":"unshift"](m),m=m.parent;return l}}function Wa(d){return Ba(d)?new Map(d):function(r){const l=new Map;for(const m in r)l.set(m,r[m]);return l}(d)}class ae{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 m of this._patterns){const b=$t(l,m);if(b)return{element:l,pattern:m,match:b}}return null}matchAll(...r){const l=[];for(const m of r)for(const b of this._patterns){const M=$t(m,b);M&&l.push({element:m,pattern:b,match:M})}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(d,r){if("function"==typeof r)return r(d);const l={};return r.name&&(l.name=(b=d.name,(m=r.name)instanceof RegExp?m.test(b):m===b),!l.name)||r.attributes&&(l.attributes=function(m,b){const M=[];for(const S in m){const q=m[S];if(!b.hasAttribute(S))return null;{const B=b.getAttribute(S);if(!0===q)M.push(S);else if(q instanceof RegExp){if(!q.test(B))return null;M.push(S)}else{if(B!==q)return null;M.push(S)}}}return M}(r.attributes,d),!l.attributes)?null:!(r.classes&&(l.classes=function(m,b){const M=[];for(const S of m)if(S instanceof RegExp){const q=b.getClassNames();for(const B of q)S.test(B)&&M.push(B);if(0===M.length)return null}else{if(!b.hasClass(S))return null;M.push(S)}return M}(r.classes,d),!l.classes))&&!(r.styles&&(l.styles=function(m,b){const M=[];for(const S in m){const q=m[S];if(!b.hasStyle(S))return null;{const B=b.getStyle(S);if(q instanceof RegExp){if(!q.test(B))return null;M.push(S)}else{if(B!==q)return null;M.push(S)}}}return M}(r.styles,d),!l.styles))&&l;var m,b}var Ft=function(d){return"symbol"==typeof d||st(d)&&"[object Symbol]"==V(d)},et=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Mi=/^\w*$/;function Ua(d,r){if("function"!=typeof d||null!=r&&"function"!=typeof r)throw new TypeError("Expected a function");var l=function(){var m=arguments,b=r?r.apply(this,m):m[0],M=l.cache;if(M.has(b))return M.get(b);var S=d.apply(this,m);return l.cache=M.set(b,S)||M,S};return l.cache=new(Ua.Cache||gn),l}Ua.Cache=gn;var d,r,l,Ec=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ir=/\\(\\)?/g,qr=(d=function(d){var r=[];return 46===d.charCodeAt(0)&&r.push(""),d.replace(Ec,function(l,m,b,M){r.push(b?M.replace(Ir,"$1"):m||l)}),r},r=Ua(d,function(m){return 500===l.size&&l.clear(),m}),l=r.cache,r),Ja=v?v.prototype:void 0,Kc=Ja?Ja.toString:void 0,v1=function d(r){if("string"==typeof r)return r;if(Sn(r))return function(d,r){for(var l=-1,m=null==d?0:d.length,b=Array(m);++lb?0:b+r),(l=l>b?b:l)<0&&(l+=b),b=r>l?0:l-r>>>0,r>>>=0;for(var M=Array(b);++m0){if(++r>=800)return arguments[0]}else r=0;return d.apply(void 0,arguments)}}(vo),Oi=function(d,r){return pi(function(d,r,l){return r=Pa(void 0===r?d.length-1:r,0),function(){for(var m=arguments,b=-1,M=Pa(m.length-r,0),S=Array(M);++b1?l[b-1]:void 0,S=b>2?l[2]:void 0;for(M=d.length>3&&"function"==typeof M?(b--,M):void 0,S&&function(d,r,l){if(!Gt(l))return!1;var m=typeof r;return!!("number"==m?Q(l)&&cn(r,l.length):"string"==m&&r in l)&&At(l[r],d)}(l[0],l[1],S)&&(M=b<3?void 0:M,b=1),r=Object(r);++mm===r);return Array.isArray(l)}set(r,l){if(Gt(r))for(const[m,b]of Object.entries(r))this._styleProcessor.toNormalizedForm(m,b,this._styles);else this._styleProcessor.toNormalizedForm(r,l,this._styles)}remove(r){const l=Uu(r);(function(d,r){null==d||tp(d,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]&&!Gt(this._styles[r]))return this._styles[r];const l=this._styleProcessor.getReducedForm(r,this._styles).find(([m])=>m===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 m of l)r.push(...this._styleProcessor.getReducedForm(m,this._styles));return r}_cleanEmptyObjectsOnPath(r){const l=r.split(".");if(!(l.length>1))return;const m=l.splice(0,l.length-1).join("."),b=yc(this._styles,m);!b||!Array.from(Object.keys(b)).length&&this.remove(m)}}class ml{constructor(){this._normalizers=new Map,this._extractors=new Map,this._reducers=new Map,this._consumables=new Map}toNormalizedForm(r,l,m){if(Gt(l))tr(m,Uu(r),l);else if(this._normalizers.has(r)){const b=this._normalizers.get(r),{path:M,value:S}=b(l);tr(m,M,S)}else tr(m,r,l)}getNormalized(r,l){if(!r)return ea({},l);if(void 0!==l[r])return l[r];if(this._extractors.has(r)){const m=this._extractors.get(r);if("string"==typeof m)return yc(l,m);const b=m(r,l);if(b)return b}return yc(l,Uu(r))}getReducedForm(r,l){const m=this.getNormalized(r,l);return void 0===m?[]:this._reducers.has(r)?this._reducers.get(r)(m):[[r,m]]}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 m of l)this._mapStyleNames(m,[r])}_mapStyleNames(r,l){this._consumables.has(r)||this._consumables.set(r,[]),this._consumables.get(r).push(...l)}}function Uu(d){return d.replace("-",".")}function tr(d,r,l){let m=l;Gt(l)&&(m=ea({},yc(d,r),l)),fr(d,r,m)}class ec extends da{constructor(r,l,m,b){if(super(r),this.name=l,this._attrs=function(M){M=Wa(M);for(const[S,q]of M)null===q?M.delete(S):"string"!=typeof q&&M.set(S,String(q));return M}(m),this._children=[],b&&this._insertChild(0,b),this._classes=new Set,this._attrs.has("class")){const M=this._attrs.get("class");wu(this._classes,M),this._attrs.delete("class")}this._styles=new na(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 ec))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,m]of this._attrs)if(!r._attrs.has(l)||r._attrs.get(l)!==m)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 ae(...r);let m=this.parent;for(;m;){if(l.match(m))return m;m=m.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(),m=Array.from(this._attrs).map(b=>`${b[0]}="${b[1]}"`).sort().join(" ");return this.name+(""==r?"":` class="${r}"`)+(l?` style="${l}"`:"")+(""==m?"":" "+m)}_clone(r=!1){const l=[];if(r)for(const b of this.getChildren())l.push(b._clone(r));const m=new this.constructor(this.document,this.name,this._attrs,l);return m._classes=new Set(this._classes),m._styles.set(this._styles.getNormalized()),m._customProperties=new Map(this._customProperties),m.getFillerOffset=this.getFillerOffset,m}_appendChild(r){return this._insertChild(this.childCount,r)}_insertChild(r,l){this._fireChange("children",this);let m=0;const b=(M=this.document,"string"==typeof(S=l)?[new or(M,S)]:(Ba(S)||(S=[S]),Array.from(S).map(q=>"string"==typeof q?new or(M,q):q instanceof Kr?new or(M,q.data):q)));var M,S;for(const M of b)null!==M.parent&&M._remove(),M.parent=this,M.document=this.document,this._children.splice(r,0,M),r++,m++;return m}_removeChildren(r,l=1){this._fireChange("children",this);for(let m=r;m0&&(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 wu(d,r){const l=r.split(/\s+/);d.clear(),l.forEach(m=>d.add(m))}class cr extends ec{constructor(r,l,m,b){super(r,l,m,b),this.getFillerOffset=id}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 id(){const d=[...this.getChildren()],r=d[this.childCount-1];if(r&&r.is("element","br"))return this.childCount;for(const l of d)if(!l.is("uiElement"))return null;return this.childCount}var Pt=No(function(d,r){sn(r,Ki(r),d)});const de=Symbol("observableProperties"),Yt=Symbol("boundObservables"),Ve=Symbol("boundProperties"),Ln={set(d,r){if(Gt(d))return void Object.keys(d).forEach(m=>{this.set(m,d[m])},this);ue(this);const l=this[de];if(d in this&&!l.has(d))throw new Qn.b("observable-set-cannot-override: Cannot override an existing property.",this);Object.defineProperty(this,d,{enumerable:!0,configurable:!0,get:()=>l.get(d),set(m){const b=l.get(d);let M=this.fire("set:"+d,d,m,b);void 0===M&&(M=m),b===M&&l.has(d)||(l.set(d,M),this.fire("change:"+d,d,M,b))}}),this[d]=r},bind(...d){if(!d.length||!bn(d))throw new Qn.b("observable-bind-wrong-properties: All properties must be strings.",this);if(new Set(d).size!==d.length)throw new Qn.b("observable-bind-duplicate-properties: Properties must be unique.",this);ue(this);const r=this[Ve];d.forEach(m=>{if(r.has(m))throw new Qn.b("observable-bind-rebind: Cannot bind the same property more than once.",this)});const l=new Map;return d.forEach(m=>{const b={property:m,to:[]};r.set(m,b),l.set(m,b)}),{to:Ce,toMany:Ke,_observable:this,_bindProperties:d,_to:[],_bindings:l}},unbind(...d){if(!this[de])return;const r=this[Ve],l=this[Yt];if(d.length){if(!bn(d))throw new Qn.b("observable-unbind-wrong-properties: Properties must be strings.",this);d.forEach(m=>{const b=r.get(m);if(!b)return;let M,S,q,B;b.to.forEach(at=>{M=at[0],S=at[1],q=l.get(M),B=q[S],B.delete(b),B.size||delete q[S],Object.keys(q).length||(l.delete(M),this.stopListening(M,"change"))}),r.delete(m)})}else l.forEach((m,b)=>{this.stopListening(b,"change")}),l.clear(),r.clear()},decorate(d){const r=this[d];if(!r)throw new Qn.b("observablemixin-cannot-decorate-undefined: Cannot decorate an undefined method.",this,{object:this,methodName:d});this.on(d,(l,m)=>{l.return=r.apply(this,m)}),this[d]=function(...l){return this.fire(d,l)}}};Pt(Ln,Za);var kt=Ln;function ue(d){d[de]||(Object.defineProperty(d,de,{value:new Map}),Object.defineProperty(d,Yt,{value:new Map}),Object.defineProperty(d,Ve,{value:new Map}))}function Ce(...d){const r=function(...M){if(!M.length)throw new Qn.b("observable-bind-to-parse-error: Invalid argument syntax in `to()`.",null);const S={to:[]};let q;return"function"==typeof M[M.length-1]&&(S.callback=M.pop()),M.forEach(B=>{if("string"==typeof B)q.properties.push(B);else{if("object"!=typeof B)throw new Qn.b("observable-bind-to-parse-error: Invalid argument syntax in `to()`.",null);q={observable:B,properties:[]},S.to.push(q)}}),S}(...d),l=Array.from(this._bindings.keys()),m=l.length;if(!r.callback&&r.to.length>1)throw new Qn.b("observable-bind-to-no-callback: Binding multiple observables only possible with callback.",this);if(m>1&&r.callback)throw new Qn.b("observable-bind-to-extra-callback: Cannot bind multiple properties and use a callback in one binding.",this);var b;r.to.forEach(M=>{if(M.properties.length&&M.properties.length!==m)throw new Qn.b("observable-bind-to-properties-length: The number of properties must match.",this);M.properties.length||(M.properties=this._bindProperties)}),this._to=r.to,r.callback&&(this._bindings.get(l[0]).callback=r.callback),b=this._observable,this._to.forEach(M=>{const S=b[Yt];let q;S.get(M.observable)||b.listenTo(M.observable,"change",(B,at)=>{q=S.get(M.observable)[at],q&&q.forEach(_t=>{Xn(b,_t.property)})})}),function(M){let S;M._bindings.forEach((q,B)=>{M._to.forEach(at=>{S=at.properties[q.callback?0:M._bindProperties.indexOf(B)],q.to.push([at.observable,S]),function(_t,Zt,_e,Be){const mn=_t[Yt],Mn=mn.get(_e),In=Mn||{};In[Be]||(In[Be]=new Set),In[Be].add(Zt),Mn||mn.set(_e,In)}(M._observable,q,at.observable,S)})})}(this),this._bindProperties.forEach(M=>{Xn(this._observable,M)})}function Ke(d,r,l){if(this._bindings.size>1)throw new Qn.b("observable-bind-to-many-not-one-binding: Cannot bind multiple properties with toMany().",this);this.to(...function(m,b){const M=m.map(S=>[S,b]);return Array.prototype.concat.apply([],M)}(d,r),l)}function bn(d){return d.every(r=>"string"==typeof r)}function Xn(d,r){const l=d[Ve].get(r);let m;l.callback?m=l.callback.apply(d,l.to.map(b=>b[0][b[1]])):(m=l.to[0],m=m[0][m[1]]),Object.prototype.hasOwnProperty.call(d,r)?d[r]=m:d.set(r,m)}class ei extends cr{constructor(r,l,m,b){super(r,l,m,b),this.set("isReadOnly",!1),this.set("isFocused",!1),this.bind("isReadOnly").to(r),this.bind("isFocused").to(r,"isFocused",M=>M&&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()}}io(ei,kt);const Ai=Symbol("rootName");class wi 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(Ai)}set rootName(r){this._setCustomProperty(Ai,r)}set _name(r){this.name=r}}class xo{constructor(r={}){if(!r.boundaries&&!r.startPosition)throw new Qn.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 Qn.b("view-tree-walker-unknown-direction: Only `backward` and `forward` direction allowed.",r.startPosition,{direction:r.direction});this.boundaries=r.boundaries||null,this.position=xi._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,m,b;do{b=this.position,({done:l,value:m}=this.next())}while(!l&&r(m));l||(this.position=b)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){let r=this.position.clone();const l=this.position,m=r.parent;if(null===m.parent&&r.offset===m.childCount)return{done:!0};if(m===this._boundaryEndParent&&r.offset==this.boundaries.end.offset)return{done:!0};let b;if(m instanceof or){if(r.isAtEnd)return this.position=xi._createAfter(m),this._next();b=m.data[r.offset]}else b=m.getChild(r.offset);if(b instanceof ec)return this.shallow?r.offset++:r=new xi(b,0),this.position=r,this._formatReturnValue("elementStart",b,l,r,1);if(b instanceof or){if(this.singleCharacters)return r=new xi(b,0),this.position=r,this._next();{let M,S=b.data.length;return b==this._boundaryEndParent?(S=this.boundaries.end.offset,M=new Kr(b,0,S),r=xi._createAfter(M)):(M=new Kr(b,0,b.data.length),r.offset++),this.position=r,this._formatReturnValue("text",M,l,r,S)}}if("string"==typeof b){let M;M=this.singleCharacters?1:(m===this._boundaryEndParent?this.boundaries.end.offset:m.data.length)-r.offset;const S=new Kr(m,r.offset,M);return r.offset+=M,this.position=r,this._formatReturnValue("text",S,l,r,M)}return r=xi._createAfter(m),this.position=r,this.ignoreElementEnd?this._next():this._formatReturnValue("elementEnd",m,l,r)}_previous(){let r=this.position.clone();const l=this.position,m=r.parent;if(null===m.parent&&0===r.offset)return{done:!0};if(m==this._boundaryStartParent&&r.offset==this.boundaries.start.offset)return{done:!0};let b;if(m instanceof or){if(r.isAtStart)return this.position=xi._createBefore(m),this._previous();b=m.data[r.offset-1]}else b=m.getChild(r.offset-1);if(b instanceof ec)return this.shallow?(r.offset--,this.position=r,this._formatReturnValue("elementStart",b,l,r,1)):(r=new xi(b,b.childCount),this.position=r,this.ignoreElementEnd?this._previous():this._formatReturnValue("elementEnd",b,l,r));if(b instanceof or){if(this.singleCharacters)return r=new xi(b,b.data.length),this.position=r,this._previous();{let M,S=b.data.length;if(b==this._boundaryStartParent){const q=this.boundaries.start.offset;M=new Kr(b,q,b.data.length-q),S=M.data.length,r=xi._createBefore(M)}else M=new Kr(b,0,b.data.length),r.offset--;return this.position=r,this._formatReturnValue("text",M,l,r,S)}}if("string"==typeof b){let M;M=this.singleCharacters?1:r.offset-(m===this._boundaryStartParent?this.boundaries.start.offset:0),r.offset-=M;const S=new Kr(m,r.offset,M);return this.position=r,this._formatReturnValue("text",S,l,r,M)}return r=xi._createBefore(m),this.position=r,this._formatReturnValue("elementStart",m,l,r,1)}_formatReturnValue(r,l,m,b,M){return l instanceof Kr&&(l.offsetInText+l.data.length==l.textNode.data.length&&("forward"!=this.direction||this.boundaries&&this.boundaries.end.isEqual(this.position)?m=xi._createAfter(l.textNode):(b=xi._createAfter(l.textNode),this.position=b)),0===l.offsetInText&&("backward"!=this.direction||this.boundaries&&this.boundaries.start.isEqual(this.position)?m=xi._createBefore(l.textNode):(b=xi._createBefore(l.textNode),this.position=b))),{done:!1,value:{type:r,item:l,previousPosition:m,nextPosition:b,length:M}}}}class xi{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=xi._createAt(this),m=l.offset+r;return l.offset=m<0?0:m,l}getLastMatchingPosition(r,l={}){l.startPosition=this;const m=new xo(l);return m.skip(r),m.position}getAncestors(){return this.parent.is("documentFragment")?[this.parent]:this.parent.getAncestors({includeSelf:!0})}getCommonAncestor(r){const l=this.getAncestors(),m=r.getAncestors();let b=0;for(;l[b]==m[b]&&l[b];)b++;return 0===b?null:l[b-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():[],m=r.parent.is("node")?r.parent.getPath():[];l.push(this.offset),m.push(r.offset);const b=_s(l,m);switch(b){case"prefix":return"before";case"extension":return"after";default:return l[b]0?new this(m,b):new this(b,m)}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(xi._createBefore(r),l)}}function pa(d){return!(!d.item.is("attributeElement")&&!d.item.is("uiElement"))}function oa(d){let r=0;for(const l of d)r++;return r}class xa{constructor(r=null,l,m){this._ranges=[],this._lastRangeBackward=!1,this._isFake=!1,this._fakeSelectionLabel="",this.setTo(r,l,m)}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 m=!1;for(const b of r._ranges)if(l.isEqual(b)){m=!0;break}if(!m)return!1}return!0}isSimilar(r){if(this.isBackward!=r.isBackward)return!1;const l=oa(this.getRanges());if(l!=oa(r.getRanges()))return!1;if(0==l)return!0;for(let m of this.getRanges()){m=m.getTrimmed();let b=!1;for(let M of r.getRanges())if(M=M.getTrimmed(),m.start.isEqual(M.start)&&m.end.isEqual(M.end)){b=!0;break}if(!b)return!1}return!0}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}setTo(r,l,m){if(null===r)this._setRanges([]),this._setFakeOptions(l);else if(r instanceof xa||r instanceof Xr)this._setRanges(r.getRanges(),r.isBackward),this._setFakeOptions({fake:r.isFake,label:r.fakeSelectionLabel});else if(r instanceof Yi)this._setRanges([r],l&&l.backward),this._setFakeOptions(l);else if(r instanceof xi)this._setRanges([new Yi(r)]),this._setFakeOptions(l);else if(r instanceof da){const b=!!m&&!!m.backward;let M;if(void 0===l)throw new Qn.b("view-selection-setTo-required-second-parameter: selection.setTo requires the second parameter when the first parameter is a node.",this);M="in"==l?Yi._createIn(r):"on"==l?Yi._createOn(r):new Yi(xi._createAt(r,l)),this._setRanges([M],b),this._setFakeOptions(m)}else{if(!Ba(r))throw new Qn.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 Qn.b("view-selection-setFocus-no-ranges: Cannot set selection focus if there are no ranges in selection.",this);const m=xi._createAt(r,l);if("same"==m.compareWith(this.focus))return;const b=this.anchor;this._ranges.pop(),"before"==m.compareWith(b)?this._addRange(new Yi(m,b),!0):this._addRange(new Yi(b,m)),this.fire("change")}is(r){return"selection"===r||"view:selection"===r}_setRanges(r,l=!1){r=Array.from(r),this._ranges=[];for(const m of r)this._addRange(m);this._lastRangeBackward=!!l}_setFakeOptions(r={}){this._isFake=!!r.fake,this._fakeSelectionLabel=r.fake&&r.label||""}_addRange(r,l=!1){if(!(r instanceof Yi))throw new Qn.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 Qn.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 Yi(r.start,r.end))}}io(xa,Za);class Xr{constructor(r=null,l,m){this._selection=new xa,this._selection.delegate("change").to(this),this._selection.setTo(r,l,m)}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,m){this._selection.setTo(r,l,m)}_setFocus(r,l){this._selection.setFocus(r,l)}}io(Xr,Za);class vs{constructor(r){this.selection=new Xr,this.roots=new Nr({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 m of this._postFixers)if(l=m(r),l)break}while(l)}}io(vs,kt);class Ms extends ec{constructor(r,l,m,b){super(r,l,m,b),this.getFillerOffset=ts,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 Qn.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 ts(){if(Jr(this))return null;let d=this.parent;for(;d&&d.is("attributeElement");){if(Jr(d)>1)return null;d=d.parent}return!d||Jr(d)>1?null:this.childCount}function Jr(d){return Array.from(d.getChildren()).filter(r=>!r.is("uiElement")).length}Ms.DEFAULT_PRIORITY=10;class es extends ec{constructor(r,l,m,b){super(r,l,m,b),this.getFillerOffset=wr}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 da||Array.from(l).length>0))throw new Qn.b("view-emptyelement-cannot-add: Cannot add child nodes to EmptyElement instance.",[this,l])}}function wr(){return null}const Vs=navigator.userAgent.toLowerCase();var Zs_isMac=function(d){return d.indexOf("macintosh")>-1}(Vs),Zs_isGecko=function(d){return!!d.match(/gecko\/\d+/)}(Vs),Zs_isSafari=function(d){return d.indexOf(" applewebkit/")>-1&&-1===d.indexOf("chrome")}(Vs),Zs_isAndroid=function(d){return d.indexOf("android")>-1}(Vs);!function(){let d=!1;try{d=0==="\u0107".search(new RegExp("[\\p{L}]","u"))}catch{}}();const $d={"\u2318":"ctrl","\u21e7":"shift","\u2325":"alt"},mr={ctrl:"\u2318",shift:"\u21e7",alt:"\u2325"},sa=function(){const d={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++)d[String.fromCharCode(r).toLowerCase()]=r;for(let r=48;r<=57;r++)d[r-48]=r;for(let r=112;r<=123;r++)d["f"+(r-111)]=r;return d}();function hr(d){let r;if("string"==typeof d){if(r=sa[d.toLowerCase()],!r)throw new Qn.b("keyboard-unknown-key: Unknown key name.",null,{key:d})}else r=d.keyCode+(d.altKey?sa.alt:0)+(d.ctrlKey?sa.ctrl:0)+(d.shiftKey?sa.shift:0);return r}function ep(d){return"string"==typeof d&&(d=Kd(d)),d.map(r=>"string"==typeof r?hr(r):r).reduce((r,l)=>l+r,0)}function kl(d){return Zs_isMac?Kd(d).map(r=>mr[r.toLowerCase()]||r).reduce((r,l)=>r.slice(-1)in $d?r+l:r+"+"+l):d}function Mu(d){return d==sa.arrowright||d==sa.arrowleft||d==sa.arrowup||d==sa.arrowdown}function _l(d,r){const l="ltr"===r;switch(d){case sa.arrowleft:return l?"left":"right";case sa.arrowright:return l?"right":"left";case sa.arrowup:return"up";case sa.arrowdown:return"down"}}function Zd(d,r){const l=_l(d,r);return"down"===l||"right"===l}function Kd(d){return d.split(/\s*\+\s*/)}class Zu extends ec{constructor(r,l,m,b){super(r,l,m,b),this.getFillerOffset=ip}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 da||Array.from(l).length>0))throw new Qn.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 m of this.getAttributeKeys())l.setAttribute(m,this.getAttribute(m));return l}}function ip(){return null}class Sl extends ec{constructor(r,l,m,b){super(r,l,m,b),this.getFillerOffset=Ol}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 da||Array.from(l).length>0))throw new Qn.b("view-rawelement-cannot-add: Cannot add child nodes to a RawElement instance.",[this,l])}}function Ol(){return null}class Ll{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 m=0;const b=(M=this.document,"string"==typeof(S=l)?[new or(M,S)]:(Ba(S)||(S=[S]),Array.from(S).map(q=>"string"==typeof q?new or(M,q):q instanceof Kr?new or(M,q.data):q)));var M,S;for(const M of b)null!==M.parent&&M._remove(),M.parent=this,this._children.splice(r,0,M),r++,m++;return m}_removeChildren(r,l=1){this._fireChange("children",this);for(let m=r;m{}),b}setAttribute(r,l,m){m._setAttribute(r,l)}removeAttribute(r,l){l._removeAttribute(r)}addClass(r,l){l._addClass(r)}removeClass(r,l){l._removeClass(r)}setStyle(r,l,m){Jt(r)&&void 0===m&&(m=l),m._setStyle(r,l)}removeStyle(r,l){l._removeStyle(r)}setCustomProperty(r,l,m){m._setCustomProperty(r,l)}removeCustomProperty(r,l){return l._removeCustomProperty(r)}breakAttributes(r){return r instanceof xi?this._breakAttributes(r):this._breakAttributesRange(r)}breakContainer(r){const l=r.parent;if(!l.is("containerElement"))throw new Qn.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 Qn.b("view-writer-break-root: Trying to break root element.",this.document);if(r.isAtStart)return xi._createBefore(l);if(!r.isAtEnd){const m=l._clone(!1);this.insert(xi._createAfter(l),m);const b=new Yi(r,xi._createAt(l,"end")),M=new xi(m,0);this.move(b,M)}return xi._createAfter(l)}mergeAttributes(r){const l=r.offset,m=r.parent;if(m.is("$text"))return r;if(m.is("attributeElement")&&0===m.childCount){const S=m.parent,q=m.index;return m._remove(),this._removeFromClonedElementsGroup(m),this.mergeAttributes(new xi(S,q))}const b=m.getChild(l-1),M=m.getChild(l);if(!b||!M)return r;if(b.is("$text")&&M.is("$text"))return C1(b,M);if(b.is("attributeElement")&&M.is("attributeElement")&&b.isSimilar(M)){const S=b.childCount;return b._appendChild(M.getChildren()),M._remove(),this._removeFromClonedElementsGroup(M),this.mergeAttributes(new xi(b,S))}return r}mergeContainers(r){const l=r.nodeBefore,m=r.nodeAfter;if(!(l&&m&&l.is("containerElement")&&m.is("containerElement")))throw new Qn.b("view-writer-merge-containers-invalid-position: Element before and after given position cannot be merged.",this.document);const b=l.getChild(l.childCount-1),M=xi._createAt(b instanceof or?b:l,"end");return this.move(Yi._createIn(m),xi._createAt(l,"end")),this.remove(Yi._createOn(m)),M}insert(r,l){!function B(at,_t){for(const Zt of at){if(!Un.some(_e=>Zt instanceof _e))throw new Qn.b("view-writer-insert-invalid-node",_t);Zt.is("$text")||B(Zt.getChildren(),_t)}}(l=Ba(l)?[...l]:[l],this.document);const m=cm(r);if(!m)throw new Qn.b("view-writer-invalid-position-container",this.document);const b=this._breakAttributes(r,!0),M=m._insertChild(b.offset,l);for(const B of l)this._addToClonedElementsGroup(B);const S=b.getShiftedBy(M),q=this.mergeAttributes(b);if(0===M)return new Yi(q,q);{q.isEqual(b)||S.offset--;const B=this.mergeAttributes(S);return new Yi(q,B)}}remove(r){const l=r instanceof Yi?r:Yi._createOn(r);if(yo(l,this.document),l.isCollapsed)return new Ll(this.document);const{start:m,end:b}=this._breakAttributesRange(l,!0),q=m.parent._removeChildren(m.offset,b.offset-m.offset);for(const at of q)this._removeFromClonedElementsGroup(at);const B=this.mergeAttributes(m);return l.start=B,l.end=B.clone(),new Ll(this.document,q)}clear(r,l){yo(r,this.document);const m=r.getWalker({direction:"backward",ignoreElementEnd:!0});for(const b of m){const M=b.item;let S;if(M.is("element")&&l.isSimilar(M))S=Yi._createOn(M);else if(!b.nextPosition.isAfter(r.start)&&M.is("$textProxy")){const q=M.getAncestors().find(B=>B.is("element")&&l.isSimilar(B));q&&(S=Yi._createIn(q))}S&&(S.end.isAfter(r.end)&&(S.end=r.end),S.start.isBefore(r.start)&&(S.start=r.start),this.remove(S))}}move(r,l){let m;if(l.isAfter(r.end)){const b=(l=this._breakAttributes(l,!0)).parent,M=b.childCount;r=this._breakAttributesRange(r,!0),m=this.remove(r),l.offset+=b.childCount-M}else m=this.remove(r);return this.insert(l,m)}wrap(r,l){if(!(l instanceof Ms))throw new Qn.b("view-writer-wrap-invalid-attribute",this.document);if(yo(r,this.document),r.isCollapsed){let b=r.start;b.parent.is("element")&&!Array.from(b.parent.getChildren()).some(S=>!S.is("uiElement"))&&(b=b.getLastMatchingPosition(S=>S.item.is("uiElement"))),b=this._wrapPosition(b,l);const M=this.document.selection;return M.isCollapsed&&M.getFirstPosition().isEqual(r.start)&&this.setSelection(b),new Yi(b)}return this._wrapRange(r,l)}unwrap(r,l){if(!(l instanceof Ms))throw new Qn.b("view-writer-unwrap-invalid-attribute",this.document);if(yo(r,this.document),r.isCollapsed)return r;const{start:m,end:b}=this._breakAttributesRange(r,!0),S=this._unwrapChildren(m.parent,m.offset,b.offset,l),q=this.mergeAttributes(S.start);q.isEqual(S.start)||S.end.offset--;const B=this.mergeAttributes(S.end);return new Yi(q,B)}rename(r,l){const m=new cr(this.document,r,l.getAttributes());return this.insert(xi._createAfter(l),m),this.move(Yi._createIn(l),xi._createAt(m,0)),this.remove(Yi._createOn(l)),m}clearClonedElementsGroup(r){this._cloneGroups.delete(r)}createPositionAt(r,l){return xi._createAt(r,l)}createPositionAfter(r){return xi._createAfter(r)}createPositionBefore(r){return xi._createBefore(r)}createRange(r,l){return new Yi(r,l)}createRangeOn(r){return Yi._createOn(r)}createRangeIn(r){return Yi._createIn(r)}createSelection(r,l,m){return new xa(r,l,m)}_wrapChildren(r,l,m,b){let M=l;const S=[];for(;M!1,r.parent._insertChild(r.offset,m);const b=new Yi(r,r.getShiftedBy(1));this.wrap(b,l);const M=new xi(m.parent,m.index);m._remove();const S=M.nodeBefore,q=M.nodeAfter;return S instanceof or&&q instanceof or?C1(S,q):El(M)}_wrapAttributeElement(r,l){if(!Tp(r,l)||r.name!==l.name||r.priority!==l.priority)return!1;for(const m of r.getAttributeKeys())if("class"!==m&&"style"!==m&&l.hasAttribute(m)&&l.getAttribute(m)!==r.getAttribute(m))return!1;for(const m of r.getStyleNames())if(l.hasStyle(m)&&l.getStyle(m)!==r.getStyle(m))return!1;for(const m of r.getAttributeKeys())"class"!==m&&"style"!==m&&(l.hasAttribute(m)||this.setAttribute(m,r.getAttribute(m),l));for(const m of r.getStyleNames())l.hasStyle(m)||this.setStyle(m,r.getStyle(m),l);for(const m of r.getClassNames())l.hasClass(m)||this.addClass(m,l);return!0}_unwrapAttributeElement(r,l){if(!Tp(r,l)||r.name!==l.name||r.priority!==l.priority)return!1;for(const m of r.getAttributeKeys())if("class"!==m&&"style"!==m&&(!l.hasAttribute(m)||l.getAttribute(m)!==r.getAttribute(m)))return!1;if(!l.hasClass(...r.getClassNames()))return!1;for(const m of r.getStyleNames())if(!l.hasStyle(m)||l.getStyle(m)!==r.getStyle(m))return!1;for(const m of r.getAttributeKeys())"class"!==m&&"style"!==m&&this.removeAttribute(m,l);return this.removeClass(Array.from(r.getClassNames()),l),this.removeStyle(Array.from(r.getStyleNames()),l),!0}_breakAttributesRange(r,l=!1){const m=r.start,b=r.end;if(yo(r,this.document),r.isCollapsed){const B=this._breakAttributes(r.start,l);return new Yi(B,B)}const M=this._breakAttributes(b,l),S=M.parent.childCount,q=this._breakAttributes(m,l);return M.offset+=M.parent.childCount-S,new Yi(q,M)}_breakAttributes(r,l=!1){const m=r.offset,b=r.parent;if(r.parent.is("emptyElement"))throw new Qn.b("view-writer-cannot-break-empty-element",this.document);if(r.parent.is("uiElement"))throw new Qn.b("view-writer-cannot-break-ui-element",this.document);if(r.parent.is("rawElement"))throw new Qn.b("view-writer-cannot-break-raw-element: Cannot break inside a RawElement instance.",this.document);if(!l&&b.is("$text")&&an(b.parent)||an(b))return r.clone();if(b.is("$text"))return this._breakAttributes(Vr(r),l);if(m==b.childCount){const M=new xi(b.parent,b.index+1);return this._breakAttributes(M,l)}if(0===m){const M=new xi(b.parent,b.index);return this._breakAttributes(M,l)}{const M=b.index+1,S=b._clone();b.parent._insertChild(M,S),this._addToClonedElementsGroup(S);const B=b._removeChildren(m,b.childCount-m);S._appendChild(B);const at=new xi(b.parent,M);return this._breakAttributes(at,l)}}_addToClonedElementsGroup(r){if(!r.root.is("rootElement"))return;if(r.is("element"))for(const b of r.getChildren())this._addToClonedElementsGroup(b);const l=r.id;if(!l)return;let m=this._cloneGroups.get(l);m||(m=new Set,this._cloneGroups.set(l,m)),m.add(r),r._clonesGroup=m}_removeFromClonedElementsGroup(r){if(r.is("element"))for(const b of r.getChildren())this._removeFromClonedElementsGroup(b);const l=r.id;if(!l)return;const m=this._cloneGroups.get(l);m&&m.delete(r)}}function cm(d){let r=d.parent;for(;!an(r);){if(!r)return;r=r.parent}return r}function b1(d,r){return d.priorityr.priority)&&d.getIdentity()d.createTextNode("\xa0"),e_=d=>{const r=d.createElement("br");return r.dataset.ckeFiller=!0,r},lm=(()=>{let d="";for(let r=0;r<7;r++)d+="\u200b";return d})();function nc(d){return R(d)&&d.data.substr(0,7)===lm}function Ic(d){return 7==d.data.length&&nc(d)}function lr(d){return nc(d)?d.data.slice(7):d.data}function Gr(d,r){if(r.keyCode==sa.arrowleft){const l=r.domTarget.ownerDocument.defaultView.getSelection();if(1==l.rangeCount&&l.getRangeAt(0).collapsed){const m=l.getRangeAt(0).startContainer,b=l.getRangeAt(0).startOffset;nc(m)&&b<=7&&l.collapse(m,0)}}}function y1(d,r,l,m=!1){l=l||function(M,S){return M===S},Array.isArray(d)||(d=Array.prototype.slice.call(d)),Array.isArray(r)||(r=Array.prototype.slice.call(r));const b=function(M,S,q){const B=T1(M,S,q);if(-1===B)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};const Zt=T1(n_(M,B),n_(S,B),q);return{firstIndex:B,lastIndexOld:M.length-Zt,lastIndexNew:S.length-Zt}}(d,r,l);return m?function(M,S){const{firstIndex:q,lastIndexOld:B,lastIndexNew:at}=M;if(-1===q)return Array(S).fill("equal");let _t=[];return q>0&&(_t=_t.concat(Array(q).fill("equal"))),at-q>0&&(_t=_t.concat(Array(at-q).fill("insert"))),B-q>0&&(_t=_t.concat(Array(B-q).fill("delete"))),at0&&q.push({index:B,type:"insert",values:M.slice(B,_t)}),at-B>0&&q.push({index:B+(_t-B),type:"delete",howMany:at-B}),q}(r,b)}function T1(d,r,l){for(let m=0;m200||b>200||m+b>300)return qc.fastDiff(d,r,l,!0);let M,S;if(bGn?-1:1;_t[Mn+Fi]&&(_t[Mn]=_t[Mn+Fi].slice(0)),_t[Mn]||(_t[Mn]=[]),_t[Mn].push(In>Gn?M:S);let Ji=Math.max(In,Gn),Do=Ji-Mn;for(;Doat;Be--)Zt[Be]=_e(Be);Zt[at]=_e(at),mn++}while(Zt[at]!==B);return _t[at].slice(1)}function pc(d,r,l){d.insertBefore(l,d.childNodes[r]||null)}function Du(d){const r=d.parentNode;r&&r.removeChild(d)}function Xd(d){if(d){if(d.defaultView)return d instanceof d.defaultView.Document;if(d.ownerDocument&&d.ownerDocument.defaultView)return d instanceof d.ownerDocument.defaultView.Node}return!1}qc.fastDiff=y1;class Fl{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 Qn.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),m=l.parent.ownerDocument;this._inlineFiller=nc(l.parent)?l.parent:mu(m,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 m=this.domConverter.mapViewToDom(r).childNodes,b=Array.from(this.domConverter.viewChildrenToDom(r,l.ownerDocument,{withChildren:!1})),M=this._diffNodeLists(m,b),S=this._findReplaceActions(M,m,b);if(-1!==S.indexOf("replace")){const q={equal:0,insert:0,delete:0};for(const B of S)if("replace"===B){const at=q.equal+q.insert,_t=q.equal+q.delete,Zt=r.getChild(at);!Zt||Zt.is("uiElement")||Zt.is("rawElement")||this._updateElementMappings(Zt,m[_t]),Du(b[at]),q.equal++}else q[B]++}}_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")?xi._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&&R(l.parent)&&nc(l.parent))}_removeInlineFiller(){const r=this._inlineFiller;if(!nc(r))throw new Qn.b("view-renderer-filler-was-lost: The inline filler node was lost.",this);Ic(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,m=r.offset;return!!(this.domConverter.mapViewToDom(l.root)&&l.is("element")&&function(S){if("false"==S.getAttribute("contenteditable"))return!1;const q=S.findAncestor(B=>B.hasAttribute("contenteditable"));return!q||"true"==q.getAttribute("contenteditable")}(l)&&m!==l.getFillerOffset())&&!(r.nodeBefore instanceof or||r.nodeAfter instanceof or)}_updateText(r,l){const m=this.domConverter.findCorrespondingDomText(r),b=this.domConverter.viewToDom(r,m.ownerDocument),M=m.data;let S=b.data;const q=l.inlineFillerPosition;if(q&&q.parent==r.parent&&q.offset==r.index&&(S=lm+S),M!=S){const B=y1(M,S);for(const at of B)"insert"===at.type?m.insertData(at.index,at.values.join("")):m.deleteData(at.index,at.howMany)}}_updateAttrs(r){const l=this.domConverter.mapViewToDom(r);if(!l)return;const m=Array.from(l.attributes).map(M=>M.name),b=r.getAttributeKeys();for(const M of b)l.setAttribute(M,r.getAttribute(M));for(const M of m)r.hasAttribute(M)||l.removeAttribute(M)}_updateChildren(r,l){const m=this.domConverter.mapViewToDom(r);if(!m)return;const b=l.inlineFillerPosition,M=this.domConverter.mapViewToDom(r).childNodes,S=Array.from(this.domConverter.viewChildrenToDom(r,m.ownerDocument,{bind:!0,inlineFillerPosition:b}));b&&b.parent===r&&mu(m.ownerDocument,S,b.offset);const q=this._diffNodeLists(M,S);let B=0;const at=new Set;for(const _t of q)"delete"===_t?(at.add(M[B]),Du(M[B])):"equal"===_t&&B++;B=0;for(const _t of q)"insert"===_t?(pc(m,B,S[B]),B++):"equal"===_t&&(this._markDescendantTextToSync(this.domConverter.domToView(S[B])),B++);for(const _t of at)_t.parentNode||this.domConverter.unbindDomElement(_t)}_diffNodeLists(r,l){return qc(r=function(m,b){const M=Array.from(m);return 0==M.length||!b||M[M.length-1]==b&&M.pop(),M}(r,this._fakeSelectionContainer),l,um.bind(null,this.domConverter))}_findReplaceActions(r,l,m){if(-1===r.indexOf("insert")||-1===r.indexOf("delete"))return r;let b=[],M=[],S=[];const q={equal:0,insert:0,delete:0};for(const B of r)"insert"===B?S.push(m[q.equal+q.insert]):"delete"===B?M.push(l[q.equal+q.delete]):(b=b.concat(qc(M,S,fl).map(at=>"equal"===at?"replace":at)),b.push("equal"),M=[],S=[]),q[B]++;return b.concat(qc(M,S,fl).map(B=>"equal"===B?"replace":B))}_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(S){const q=S.createElement("div");return Object.assign(q.style,{position:"fixed",top:0,left:"-9999px",width:"42px"}),q.textContent="\xa0",q}(l));const m=this._fakeSelectionContainer;if(this.domConverter.bindFakeSelection(m,this.selection),!this._fakeSelectionNeedsUpdate(r))return;m.parentElement&&m.parentElement==r||r.appendChild(m),m.textContent=this.selection.fakeSelectionLabel||"\xa0";const b=l.getSelection(),M=l.createRange();b.removeAllRanges(),M.selectNodeContents(m),b.addRange(M)}_updateDomSelection(r){const l=r.ownerDocument.defaultView.getSelection();if(!this._domSelectionNeedsUpdate(l))return;const m=this.domConverter.viewPositionToDom(this.selection.anchor),b=this.domConverter.viewPositionToDom(this.selection.focus);r.focus(),l.collapse(m.parent,m.offset),l.extend(b.parent,b.offset),Zs_isGecko&&function(M,S){const q=M.parent;if(q.nodeType!=Node.ELEMENT_NODE||M.offset!=q.childNodes.length-1)return;const B=q.childNodes[M.offset];B&&"BR"==B.tagName&&S.addRange(S.getRangeAt(0))}(b,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,m=r.ownerDocument.getSelection();return!l||l.parentElement!==r||m.anchorNode!==l&&!l.contains(m.anchorNode)||l.textContent!==this.selection.fakeSelectionLabel}_removeDomSelection(){for(const r of this.domDocuments)if(r.getSelection().rangeCount){const l=r.activeElement,m=this.domConverter.mapDomToView(l);l&&m&&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 mu(d,r,l){const m=r instanceof Array?r:r.childNodes,b=m[l];if(R(b))return b.data=lm+b.data,b;{const M=d.createTextNode(lm);return Array.isArray(r)?m.splice(l,0,M):pc(r,l,M),M}}function fl(d,r){return Xd(d)&&Xd(r)&&!R(d)&&!R(r)&&d.nodeType!==Node.COMMENT_NODE&&r.nodeType!==Node.COMMENT_NODE&&d.tagName.toLowerCase()===r.tagName.toLowerCase()}function um(d,r,l){return r===l||(R(r)&&R(l)?r.data===l.data:!(!d.isBlockFiller(r)||!d.isBlockFiller(l)))}io(Fl,kt);var ft={window,document};function gt(d){let r=0;for(;d.previousSibling;)d=d.previousSibling,r++;return r}function rt(d){const r=[];for(;d&&d.nodeType!=Node.DOCUMENT_NODE;)r.unshift(d),d=d.parentNode;return r}const Ht=e_(document);class ee{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?e_:Mo,this._domToViewMapping=new WeakMap,this._viewToDomMapping=new WeakMap,this._fakeSelectionMapping=new WeakMap}bindFakeSelection(r,l){this._fakeSelectionMapping.set(r,new xa(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 m of r.childNodes)this.unbindDomElement(m)}}bindDocumentFragments(r,l){this._domToViewMapping.set(r,l),this._viewToDomMapping.set(l,r)}viewToDom(r,l,m={}){if(r.is("$text")){const b=this._processDataFromViewText(r);return l.createTextNode(b)}{if(this.mapViewToDom(r))return this.mapViewToDom(r);let b;if(r.is("documentFragment"))b=l.createDocumentFragment(),m.bind&&this.bindDocumentFragments(b,r);else{if(r.is("uiElement"))return b=r.render(l),m.bind&&this.bindElements(b,r),b;b=r.hasAttribute("xmlns")?l.createElementNS(r.getAttribute("xmlns"),r.name):l.createElement(r.name),r.is("rawElement")&&r.render(b),m.bind&&this.bindElements(b,r);for(const M of r.getAttributeKeys())b.setAttribute(M,r.getAttribute(M))}if(m.withChildren||void 0===m.withChildren)for(const M of this.viewChildrenToDom(r,l,m))b.appendChild(M);return b}}*viewChildrenToDom(r,l,m={}){const b=r.getFillerOffset&&r.getFillerOffset();let M=0;for(const S of r.getChildren())b===M&&(yield this._blockFiller(l)),yield this.viewToDom(S,l,m),M++;b===M&&(yield this._blockFiller(l))}viewRangeToDom(r){const l=this.viewPositionToDom(r.start),m=this.viewPositionToDom(r.end),b=document.createRange();return b.setStart(l.parent,l.offset),b.setEnd(m.parent,m.offset),b}viewPositionToDom(r){const l=r.parent;if(l.is("$text")){const m=this.findCorrespondingDomText(l);if(!m)return null;let b=r.offset;return nc(m)&&(b+=7),{parent:m,offset:b}}{let m,b,M;if(0===r.offset){if(m=this.mapViewToDom(l),!m)return null;M=m.childNodes[0]}else{const S=r.nodeBefore;if(b=S.is("$text")?this.findCorrespondingDomText(S):this.mapViewToDom(r.nodeBefore),!b)return null;m=b.parentNode,M=b.nextSibling}return R(M)&&nc(M)?{parent:M,offset:7}:{parent:m,offset:b?gt(b)+1:0}}}domToView(r,l={}){if(this.isBlockFiller(r,this.blockFillerMode))return null;const m=this.getHostViewElement(r,this._domToViewMapping);if(m)return m;if(R(r)){if(Ic(r))return null;{const b=this._processDataFromDomText(r);return""===b?null:new or(this.document,b)}}if(this.isComment(r))return null;{if(this.mapDomToView(r))return this.mapDomToView(r);let b;if(this.isDocumentFragment(r))b=new Ll(this.document),l.bind&&this.bindDocumentFragments(r,b);else{const M=l.keepOriginalCase?r.tagName:r.tagName.toLowerCase();b=new ec(this.document,M),l.bind&&this.bindElements(r,b);const S=r.attributes;for(let q=S.length-1;q>=0;q--)b._setAttribute(S[q].name,S[q].value)}if(l.withChildren||void 0===l.withChildren)for(const M of this.domChildrenToView(r,l))b._appendChild(M);return b}}*domChildrenToView(r,l={}){for(let m=0;m{const{scrollLeft:q,scrollTop:B}=S;M.push([q,B])}),l.focus(),Pn(l,S=>{const[q,B]=M.shift();S.scrollLeft=q,S.scrollTop=B}),ft.window.scrollTo(m,b)}}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(Ht):!("BR"!==r.tagName||!yn(r,this.blockElements)||1!==r.parentNode.childNodes.length)||function(l,m){return R(l)&&"\xa0"==l.data&&yn(l,m)&&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 m=l.collapsed;return l.detach(),m}getHostViewElement(r){const l=rt(r);for(l.pop();l.length;){const m=l.pop(),b=this._domToViewMapping.get(m);if(b&&(b.is("uiElement")||b.is("rawElement")))return b}return null}isDomSelectionCorrect(r){return this._isDomSelectionPositionCorrect(r.anchorNode,r.anchorOffset)&&this._isDomSelectionPositionCorrect(r.focusNode,r.focusOffset)}_isDomSelectionPositionCorrect(r,l){if(R(r)&&nc(r)&&l<7||this.isElement(r)&&nc(r.childNodes[l]))return!1;const m=this.mapDomToView(r);return!m||!m.is("uiElement")&&!m.is("rawElement")}_processDataFromViewText(r){let l=r.data;if(r.getAncestors().some(m=>this.preElements.includes(m.name)))return l;if(" "==l.charAt(0)){const m=this._getTouchingViewTextNode(r,!1);(!m||!this._nodeEndsWithSpace(m))&&m||(l="\xa0"+l.substr(1))}if(" "==l.charAt(l.length-1)){const m=this._getTouchingViewTextNode(r,!0);" "!=l.charAt(l.length-2)&&m&&" "!=m.data.charAt(0)||(l=l.substr(0,l.length-1)+"\xa0")}return l.replace(/ {2}/g," \xa0")}_nodeEndsWithSpace(r){if(r.getAncestors().some(m=>this.preElements.includes(m.name)))return!1;const l=this._processDataFromViewText(r);return" "==l.charAt(l.length-1)}_processDataFromDomText(r){let l=r.data;if(me(r,this.preElements))return lr(r);l=l.replace(/[ \n\t\r]{1,}/g," ");const m=this._getTouchingInlineDomNode(r,!1),b=this._getTouchingInlineDomNode(r,!0),M=this._checkShouldLeftTrimDomText(m),S=this._checkShouldRightTrimDomText(r,b);return M&&(l=l.replace(/^ /,"")),S&&(l=l.replace(/ $/,"")),l=lr(new Text(l)),l=l.replace(/ \u00A0/g," "),(/( |\u00A0)\u00A0$/.test(l)||!b||b.data&&" "==b.data.charAt(0))&&(l=l.replace(/\u00A0$/," ")),M&&(l=l.replace(/^\u00A0/," ")),l}_checkShouldLeftTrimDomText(r){return!r||!!As(r)||/[^\S\u00A0]/.test(r.data.charAt(r.data.length-1))}_checkShouldRightTrimDomText(r,l){return!l&&!nc(r)}_getTouchingViewTextNode(r,l){const m=new xo({startPosition:l?xi._createAfter(r):xi._createBefore(r),direction:l?"forward":"backward"});for(const b of m){if(b.item.is("containerElement")||b.item.is("element","br"))return null;if(b.item.is("$textProxy"))return b.item}return null}_getTouchingInlineDomNode(r,l){if(!r.parentNode)return null;const m=l?"nextNode":"previousNode",b=r.ownerDocument,M=rt(r)[0],S=b.createTreeWalker(M,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,{acceptNode:B=>R(B)||"BR"==B.tagName?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});S.currentNode=r;const q=S[m]();if(null!==q){const B=function(at,_t){const Zt=rt(at),_e=rt(_t);let Be=0;for(;Zt[Be]==_e[Be]&&Zt[Be];)Be++;return 0===Be?null:Zt[Be-1]}(r,q);if(B&&!me(r,this.blockElements,B)&&!me(q,this.blockElements,B))return q}return null}}function me(d,r,l){let m=rt(d);return l&&(m=m.slice(m.indexOf(l)+1)),m.some(b=>b.tagName&&r.includes(b.tagName.toLowerCase()))}function Pn(d,r){for(;d&&d!=ft.document;)r(d),d=d.parentNode}function yn(d,r){const l=d.parentNode;return l&&l.tagName&&r.includes(l.tagName.toLowerCase())}function qe(d){const r=Object.prototype.toString.apply(d);return"[object Window]"==r||"[object global]"==r}var Ue=Pt({},Za,{listenTo(d,...r){if(Xd(d)||qe(d)){const l=this._getProxyEmitter(d)||new li(d);l.attach(...r),d=l}Za.listenTo.call(this,d,...r)},stopListening(d,r,l){if(Xd(d)||qe(d)){const m=this._getProxyEmitter(d);if(!m)return;d=m}Za.stopListening.call(this,d,r,l),d instanceof li&&d.detach(r)},_getProxyEmitter(d){return r=this,l=Ao(d),r[zs]&&r[zs][l]?r[zs][l].emitter:null;var r,l}});class li{constructor(r){rs(this,Ao(r)),this._domNode=r}}function Ao(d){return d["data-ck-expando"]||(d["data-ck-expando"]=vr())}Pt(li.prototype,Za,{attach(d,r,l={}){if(this._domListeners&&this._domListeners[d])return;const m=this._createDomListener(d,!!l.useCapture);this._domNode.addEventListener(d,m,!!l.useCapture),this._domListeners||(this._domListeners={}),this._domListeners[d]=m},detach(d){let r;!this._domListeners[d]||(r=this._events[d])&&r.callbacks.length||this._domListeners[d].removeListener()},_createDomListener(d,r){const l=m=>{this.fire(d,m)};return l.removeListener=()=>{this._domNode.removeEventListener(d,l,r),delete this._domListeners[d]},l}});class Co{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()}}io(Co,Ue);function tl(d){var r=-1,l=null==d?0:d.length;for(this.__data__=new gn;++rq))return!1;var at=M.get(d);if(at&&M.get(r))return at==r;var _t=-1,Zt=!0,_e=2&l?new hl:void 0;for(M.set(d,r),M.set(r,d);++_t{this.listenTo(r,l,(m,b)=>{this.isEnabled&&this.onDomEvent(b)},{useCapture:this.useCapture})})}fire(r,l,m){this.isEnabled&&this.document.fire(r,new A1(this.view,l,m))}}class op extends U1{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 hr(this)}})}}var t2=function(){return x.a.Date.now()},o_=/^\s+|\s+$/g,oc=/^[-+]0x[0-9a-f]+$/i,a_=/^0b[01]+$/i,wp=/^0o[0-7]+$/i,gl=parseInt,ad=function(d){if("number"==typeof d)return d;if(Ft(d))return NaN;if(Gt(d)){var r="function"==typeof d.valueOf?d.valueOf():d;d=Gt(r)?r+"":r}if("string"!=typeof d)return 0===d?d:+d;d=d.replace(o_,"");var l=a_.test(d);return l||wp.test(d)?gl(d.slice(2),l?2:8):oc.test(d)?NaN:+d},e1=Math.max,Dd=Math.min,r_=function(d,r,l){var m,b,M,S,q,B,at=0,_t=!1,Zt=!1,_e=!0;if("function"!=typeof d)throw new TypeError("Expected a function");function Be(Ji){var Do=m,ba=b;return m=b=void 0,at=Ji,S=d.apply(ba,Do)}function mn(Ji){return at=Ji,q=setTimeout(In,r),_t?Be(Ji):S}function Mn(Ji){var Do=Ji-B;return void 0===B||Do>=r||Do<0||Zt&&Ji-at>=M}function In(){var Do,ba,Ji=t2();if(Mn(Ji))return Gn(Ji);q=setTimeout(In,(ba=r-((Do=Ji)-B),Zt?Dd(ba,M-(Do-at)):ba))}function Gn(Ji){return q=void 0,_e&&m?Be(Ji):(m=b=void 0,S)}function Fi(){var Ji=t2(),Do=Mn(Ji);if(m=arguments,b=this,B=Ji,Do){if(void 0===q)return mn(B);if(Zt)return clearTimeout(q),q=setTimeout(In,r),Be(B)}return void 0===q&&(q=setTimeout(In,r)),S}return r=ad(r)||0,Gt(l)&&(_t=!!l.leading,M=(Zt="maxWait"in l)?e1(ad(l.maxWait)||0,r):M,_e="trailing"in l?!!l.trailing:_e),Fi.cancel=function(){void 0!==q&&clearTimeout(q),at=0,m=B=b=q=void 0},Fi.flush=function(){return void 0===q?S:Gn(t2())},Fi};class vl extends Co{constructor(r){super(r),this._fireSelectionChangeDoneDebounced=r_(l=>this.document.fire("selectionChangeDone",l),200)}observe(){const r=this.document;r.on("keydown",(l,m)=>{var b;r.selection.isFake&&((b=m.keyCode)==sa.arrowright||b==sa.arrowleft||b==sa.arrowup||b==sa.arrowdown)&&this.isEnabled&&(m.preventDefault(),this._handleSelectionMove(m.keyCode))},{priority:"lowest"})}destroy(){super.destroy(),this._fireSelectionChangeDoneDebounced.cancel()}_handleSelectionMove(r){const l=this.document.selection,m=new xa(l.getRanges(),{backward:l.isBackward,fake:!1});r!=sa.arrowleft&&r!=sa.arrowup||m.setTo(m.getFirstPosition()),r!=sa.arrowright&&r!=sa.arrowdown||m.setTo(m.getLastPosition());const b={oldSelection:l,newSelection:m,domSelection:null};this.document.fire("selectionChange",b),this._fireSelectionChangeDoneDebounced(b)}}class e2 extends Co{constructor(r){super(r),this.mutationObserver=r.getObserver(od),this.selection=this.document.selection,this.domConverter=r.domConverter,this._documents=new WeakSet,this._fireSelectionChangeDoneDebounced=r_(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(),m=this.domConverter.domSelectionToView(l);if(0!=m.rangeCount){if(this.view.hasDomSelection=!0,!(this.selection.isEqual(m)&&this.domConverter.isDomSelectionCorrect(l)||++this._loopbackCounter>60))if(this.selection.isSimilar(m))this.view.forceRender();else{const b={oldSelection:this.selection,newSelection:m,domSelection:l};this.document.fire("selectionChange",b),this._fireSelectionChangeDoneDebounced(b)}}else this.view.hasDomSelection=!1}_clearInfiniteLoop(){this._loopbackCounter=0}}class Mp extends U1{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",(m,b)=>{const M=l.selection.editableElement;null!==M&&M!==b.target||(l.isFocused=!1,r.forceRender())})}onDomEvent(r){this.fire(r.type,r)}destroy(){this._renderTimeoutId&&clearTimeout(this._renderTimeoutId),super.destroy()}}class pm extends U1{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 A extends U1{constructor(r){super(r),this.domEventType=["beforeinput"]}onDomEvent(r){this.fire(r.type,r)}}function vt(d){return"[object Range]"==Object.prototype.toString.apply(d)}function ki(d){const r=d.ownerDocument.defaultView.getComputedStyle(d);return{top:parseInt(r.borderTopWidth,10),right:parseInt(r.borderRightWidth,10),bottom:parseInt(r.borderBottomWidth,10),left:parseInt(r.borderLeftWidth,10)}}const Zp=["top","right","bottom","left","width","height"];class Ds{constructor(r){const l=vt(r);if(Object.defineProperty(this,"_source",{value:r._source||r,writable:!0,enumerable:!1}),As(r)||l)w1(this,l?Ds.getDomRangeRects(r)[0]:r.getBoundingClientRect());else if(qe(r)){const{innerWidth:m,innerHeight:b}=r;w1(this,{top:0,right:m,bottom:b,left:0,width:m,height:b})}else w1(this,r)}clone(){return new Ds(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 Ds(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(!Dp(r)){let m=r.parentNode||r.commonAncestorContainer;for(;m&&!Dp(m);){const b=new Ds(m),M=l.getIntersection(b);if(!M)return null;M.getArea()$e(d,m));const S=$e(d,m);if(fs(m,S,r),m.parent!=m){if(b=m.frameElement,m=m.parent,!b)return}else m=null}}function fs(d,r,l){const m=r.clone().moveBy(0,l),b=r.clone().moveBy(0,-l),M=new Ds(d).excludeScrollbarsAndBorders();if(![b,m].every(S=>M.contains(S))){let{scrollX:S,scrollY:q}=d;ar(b,M)?q-=M.top-r.top+l:ap(m,M)&&(q+=r.bottom-M.bottom+l),Y(r,M)?S-=M.left-r.left+l:dt(r,M)&&(S+=r.right-M.right+l),d.scrollTo(S,q)}}function Z1(d,r){const l=Kt(d);let m,b;for(;d!=l.document.body;)b=r(),m=new Ds(d).excludeScrollbarsAndBorders(),m.contains(b)||(ar(b,m)?d.scrollTop-=m.top-b.top:ap(b,m)&&(d.scrollTop+=b.bottom-m.bottom),Y(b,m)?d.scrollLeft-=m.left-b.left:dt(b,m)&&(d.scrollLeft+=b.right-m.right)),d=d.parentNode}function ap(d,r){return d.bottom>r.bottom}function ar(d,r){return d.topr.right}function Kt(d){return vt(d)?d.startContainer.ownerDocument.defaultView:d.ownerDocument.defaultView}function Mt(d){if(vt(d)){let r=d.commonAncestorContainer;return R(r)&&(r=r.parentNode),r}return d.parentNode}function $e(d,r){const l=Kt(d),m=new Ds(d);if(l===r)return m;{let b=l;for(;b!=r;){const S=new Ds(b.frameElement).excludeScrollbarsAndBorders();m.moveBy(S.left,S.top),b=b.parent}}return m}Object.assign({},{scrollViewportToShowTarget:M1,scrollAncestorsToShowTarget:function(d){Z1(Mt(d),()=>new Ds(d))}});class ni{constructor(r){this.document=new vs(r),this.domConverter=new ee(this.document),this.domRoots=new Map,this.set("isRenderingInProgress",!1),this.set("hasDomSelection",!1),this._renderer=new Fl(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 Xc(this.document),this.addObserver(od),this.addObserver(e2),this.addObserver(Mp),this.addObserver(op),this.addObserver(vl),this.addObserver(pm),Zs_isAndroid&&this.addObserver(A),this.document.on("keydown",Gr),function np(d){d.document.on("keydown",(r,l)=>function(m,b,M){if(b.keyCode==sa.arrowright){const S=b.domTarget.ownerDocument.defaultView.getSelection(),q=1==S.rangeCount&&S.getRangeAt(0).collapsed;if(q||b.shiftKey){const _t=M.domPositionToView(S.focusNode,S.focusOffset);if(null===_t)return;let Zt=!1;const _e=_t.getLastMatchingPosition(Be=>(Be.item.is("uiElement")&&(Zt=!0),!(!Be.item.is("uiElement")&&!Be.item.is("attributeElement"))));if(Zt){const Be=M.viewPositionToDom(_e);q?S.collapse(Be.parent,Be.offset):S.extend(Be.parent,Be.offset)}}}}(0,l,d.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 m=this.document.getRoot(l);m._name=r.tagName.toLowerCase();const b={};for(const{name:S,value:q}of Array.from(r.attributes))b[S]=q,"class"===S?this._writer.addClass(q.split(" "),m):this._writer.setAttribute(S,q,m);this._initialDomRootAttributes.set(r,b);const M=()=>{this._writer.setAttribute("contenteditable",!m.isReadOnly,m),m.isReadOnly?this._writer.addClass("ck-read-only",m):this._writer.removeClass("ck-read-only",m)};M(),this.domRoots.set(l,r),this.domConverter.bindElements(r,m),this._renderer.markToSync("children",m),this._renderer.markToSync("attributes",m),this._renderer.domDocuments.add(r.ownerDocument),m.on("change:children",(S,q)=>this._renderer.markToSync("children",q)),m.on("change:attributes",(S,q)=>this._renderer.markToSync("attributes",q)),m.on("change:text",(S,q)=>this._renderer.markToSync("text",q)),m.on("change:isReadOnly",()=>this.change(M)),m.on("change",()=>{this._hasChangedSinceTheLastRendering=!0});for(const S of this._observers.values())S.observe(r,l)}detachDomRoot(r){const l=this.domRoots.get(r);Array.from(l.attributes).forEach(({name:b})=>l.removeAttribute(b));const m=this._initialDomRootAttributes.get(l);for(const b in m)l.setAttribute(b,m[b]);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[m,b]of this.domRoots)l.observe(b,m);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&&M1({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 Qn.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){Qn.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 xi._createAt(r,l)}createPositionAfter(r){return xi._createAfter(r)}createPositionBefore(r){return xi._createBefore(r)}createRange(r,l){return new Yi(r,l)}createRangeOn(r){return Yi._createOn(r)}createRangeIn(r){return Yi._createIn(r)}createSelection(r,l,m){return new xa(r,l,m)}_disableRendering(r){this._renderingDisabled=r,0==r&&this.change(()=>{})}_render(){this.isRenderingInProgress=!0,this.disableObservers(),this._renderer.render(),this.enableObservers(),this.isRenderingInProgress=!1}}io(ni,kt);class qi{constructor(r){this.parent=null,this._attrs=Wa(r)}get index(){let r;if(!this.parent)return null;if(null===(r=this.parent.getChildIndex(this)))throw new Qn.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 Qn.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 m=r.includeSelf?this:this.parent;for(;m;)l[r.parentFirst?"push":"unshift"](m),m=m.parent;return l}getCommonAncestor(r,l={}){const m=this.getAncestors(l),b=r.getAncestors(l);let M=0;for(;m[M]==b[M]&&m[M];)M++;return 0===M?null:m[M-1]}isBefore(r){if(this==r||this.root!==r.root)return!1;const l=this.getPath(),m=r.getPath(),b=_s(l,m);switch(b){case"prefix":return!0;case"extension":return!1;default:return l[b](l[m[0]]=m[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=Wa(r)}_removeAttribute(r){return this._attrs.delete(r)}_clearAttributes(){this._attrs.clear()}}class Qi 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 Qi(this.data,this.getAttributes())}static fromJSON(r){return new Qi(r.data,r.attributes)}}class ga{constructor(r,l,m){if(this.textNode=r,l<0||l>r.offsetSize)throw new Qn.b("model-textproxy-wrong-offsetintext: Given offsetInText value is incorrect.",this);if(m<0||l+m>r.offsetSize)throw new Qn.b("model-textproxy-wrong-length: Given length value is incorrect.",this);this.data=r.data.substring(l,l+m),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 m=r.includeSelf?this:this.parent;for(;m;)l[r.parentFirst?"push":"unshift"](m),m=m.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 xr{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((m,b)=>m+b.offsetSize,0)}indexToOffset(r){if(r==this._nodes.length)return this.maxOffset;const l=this._nodes[r];if(!l)throw new Qn.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 m of this._nodes){if(r>=l&&rr.toJSON())}}class Ra extends qi{constructor(r,l,m){super(l),this.name=r,this._children=new xr,m&&this._insertChild(0,m)}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 m of r)l=l.getChild(l.offsetToIndex(m));return l}findAncestor(r,l={includeSelf:!1}){let m=l.includeSelf?this:this.parent;for(;m;){if(m.name===r)return m;m=m.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(m=>m._clone(!0)):null;return new Ra(this.name,this.getAttributes(),l)}_appendChild(r){this._insertChild(this.childCount,r)}_insertChild(r,l){const m="string"==typeof(b=l)?[new Qi(b)]:(Ba(b)||(b=[b]),Array.from(b).map(M=>"string"==typeof M?new Qi(M):M instanceof ga?new Qi(M.data,M.getAttributes()):M));var b;for(const b of m)null!==b.parent&&b._remove(),b.parent=this;this._children._insertNodes(r,m)}_removeChildren(r,l=1){const m=this._children._removeNodes(r,l);for(const b of m)b.parent=null;return m}static fromJSON(r){let l=null;if(r.children){l=[];for(const m of r.children)l.push(m.name?Ra.fromJSON(m):Qi.fromJSON(m))}return new Ra(r.name,r.attributes,l)}}class el{constructor(r={}){if(!r.boundaries&&!r.startPosition)throw new Qn.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 Qn.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():po._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,m,b,M;do{b=this.position,M=this._visitedParent,({done:l,value:m}=this.next())}while(!l&&r(m));l||(this.position=b,this._visitedParent=M)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){const r=this.position,l=this.position.clone(),m=this._visitedParent;if(null===m.parent&&l.offset===m.maxOffset)return{done:!0};if(m===this._boundaryEndParent&&l.offset==this.boundaries.end.offset)return{done:!0};const b=l.parent,M=s_(l,b),S=M||df(l,b,M);if(S instanceof Ra)return this.shallow?l.offset++:(l.path.push(0),this._visitedParent=S),this.position=l,Xl("elementStart",S,r,l,1);if(S instanceof Qi){let q;if(this.singleCharacters)q=1;else{let _t=S.endOffset;this._boundaryEndParent==m&&this.boundaries.end.offset<_t&&(_t=this.boundaries.end.offset),q=_t-l.offset}const at=new ga(S,l.offset-S.startOffset,q);return l.offset+=q,this.position=l,Xl("text",at,r,l,q)}return l.path.pop(),l.offset++,this.position=l,this._visitedParent=m.parent,this.ignoreElementEnd?this._next():Xl("elementEnd",m,r,l)}_previous(){const r=this.position,l=this.position.clone(),m=this._visitedParent;if(null===m.parent&&0===l.offset)return{done:!0};if(m==this._boundaryStartParent&&l.offset==this.boundaries.start.offset)return{done:!0};const b=l.parent,M=s_(l,b),S=M||pf(l,b,M);if(S instanceof Ra)return l.offset--,this.shallow?(this.position=l,Xl("elementStart",S,r,l,1)):(l.path.push(S.maxOffset),this.position=l,this._visitedParent=S,this.ignoreElementEnd?this._previous():Xl("elementEnd",S,r,l));if(S instanceof Qi){let q;if(this.singleCharacters)q=1;else{let _t=S.startOffset;this._boundaryStartParent==m&&this.boundaries.start.offset>_t&&(_t=this.boundaries.start.offset),q=l.offset-_t}const at=new ga(S,l.offset-S.startOffset-q,q);return l.offset-=q,this.position=l,Xl("text",at,r,l,q)}return l.path.pop(),this.position=l,this._visitedParent=m.parent,Xl("elementStart",m,r,l,1)}}function Xl(d,r,l,m,b){return{done:!1,value:{type:d,item:r,previousPosition:l,nextPosition:m,length:b}}}class po{constructor(r,l,m="toNone"){if(!r.is("element")&&!r.is("documentFragment"))throw new Qn.b("model-position-root-invalid: Position root invalid.",r);if(!(l instanceof Array)||0===l.length)throw new Qn.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=m}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;lm.path.length){if(l.offset!==b.maxOffset)return!1;l.path=l.path.slice(0,-1),b=b.parent,l.offset++}else{if(0!==m.offset)return!1;m.path=m.path.slice(0,-1)}}}is(r){return"position"===r||"model:position"===r}hasSameParentAs(r){return this.root===r.root&&"same"==_s(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=po._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 m;return l.containsPosition(this)||l.start.isEqual(this)?(m=this._getCombined(r.sourcePosition,r.targetPosition),r.sourcePosition.isBefore(r.targetPosition)&&(m=m._getTransformedByDeletion(r.deletionPosition,1))):m=this.isEqual(r.deletionPosition)?po._createAt(r.deletionPosition):this._getTransformedByMove(r.deletionPosition,r.graveyardPosition,1),m}_getTransformedByDeletion(r,l){const m=po._createAt(this);if(this.root!=r.root)return m;if("same"==_s(r.getParentPath(),this.getParentPath())){if(r.offsetthis.offset)return null;m.offset-=l}}else if("prefix"==_s(r.getParentPath(),this.getParentPath())){const b=r.path.length-1;if(r.offset<=this.path[b]){if(r.offset+l>this.path[b])return null;m.path[b]-=l}}return m}_getTransformedByInsertion(r,l){const m=po._createAt(this);if(this.root!=r.root)return m;if("same"==_s(r.getParentPath(),this.getParentPath()))(r.offsetl+1;){const M=b.maxOffset-m.offset;0!==M&&r.push(new zi(m,m.getShiftedBy(M))),m.path=m.path.slice(0,-1),m.offset++,b=b.parent}for(;m.path.length<=this.end.path.length;){const M=this.end.path[m.path.length-1],S=M-m.offset;0!==S&&r.push(new zi(m,m.getShiftedBy(S))),m.offset=M,m.path.push(0)}return r}getWalker(r={}){return r.boundaries=this,new el(r)}*getItems(r={}){r.boundaries=this,r.ignoreElementEnd=!0;const l=new el(r);for(const m of l)yield m.item}*getPositions(r={}){r.boundaries=this;const l=new el(r);yield l.position;for(const m of l)yield m.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 zi(this.start,this.end)]}getTransformedByOperations(r){const l=[new zi(this.start,this.end)];for(const m of r)for(let b=0;b0?new this(m,b):new this(b,m)}static _createIn(r){return new this(po._createAt(r,0),po._createAt(r,r.maxOffset))}static _createOn(r){return this._createFromPositionAndShift(po._createBefore(r),r.offsetSize)}static _createFromRanges(r){if(0===r.length)throw new Qn.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((M,S)=>M.start.isAfter(S.start)?1:-1);const m=r.indexOf(l),b=new this(l.start,l.end);if(m>0)for(let M=m-1;r[M].end.isEqual(b.start);M++)b.start=po._createAt(r[M].start);for(let M=m+1;M{if(l.viewPosition)return;const m=this._modelToViewMapping.get(l.modelPosition.parent);l.viewPosition=this.findPositionIn(m,l.modelPosition.offset)},{priority:"low"}),this.on("viewToModelPosition",(r,l)=>{if(l.modelPosition)return;const m=this.findMappedViewAncestor(l.viewPosition),b=this._viewToModelMapping.get(m),M=this._toModelOffset(l.viewPosition.parent,l.viewPosition.offset,m);l.modelPosition=po._createAt(b,M)},{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 m of this._elementToMarkerNames.get(r))this._unboundMarkerNames.add(m);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 m=this._markerNameToElements.get(l)||new Set;m.add(r);const b=this._elementToMarkerNames.get(r)||new Set;b.add(l),this._markerNameToElements.set(l,m),this._elementToMarkerNames.set(r,b)}unbindElementFromMarkerName(r,l){const m=this._markerNameToElements.get(l);m&&(m.delete(r),0==m.size&&this._markerNameToElements.delete(l));const b=this._elementToMarkerNames.get(r);b&&(b.delete(l),0==b.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 zi(this.toModelPosition(r.start),this.toModelPosition(r.end))}toViewRange(r){return new Yi(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 m={modelPosition:r,mapper:this,isPhantom:l.isPhantom};return this.fire("modelToViewPosition",m),m.viewPosition}markerNameToElements(r){const l=this._markerNameToElements.get(r);if(!l)return null;const m=new Set;for(const b of l)if(b.is("attributeElement"))for(const M of b.getElementsWithSameId())m.add(M);else m.add(b);return m}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,m){if(m!=r)return this._toModelOffset(r.parent,r.index,m)+this._toModelOffset(r,l,r);if(r.is("$text"))return l;let b=0;for(let M=0;M1?r[0]+":"+r[1]:r[0]}class o2{constructor(r){this.conversionApi=Pt({dispatcher:this},r)}convertChanges(r,l,m){for(const b of r.getMarkersToRemove())this.convertMarkerRemove(b.name,b.range,m);for(const b of r.getChanges())"insert"==b.type?this.convertInsert(zi._createFromPositionAndShift(b.position,b.length),m):"remove"==b.type?this.convertRemove(b.position,b.length,b.name,m):this.convertAttribute(b.range,b.attributeKey,b.attributeOldValue,b.attributeNewValue,m);for(const b of this.conversionApi.mapper.flushUnboundMarkerNames()){const M=l.get(b).getRange();this.convertMarkerRemove(b,M,m),this.convertMarkerAdd(b,M,m)}for(const b of r.getMarkersToAdd())this.convertMarkerAdd(b.name,b.range,m)}convertInsert(r,l){this.conversionApi.writer=l,this.conversionApi.consumable=this._createInsertConsumable(r);for(const m of r){const b=m.item,M={item:b,range:zi._createFromPositionAndShift(m.previousPosition,m.length)};this._testAndFire("insert",M);for(const S of b.getAttributeKeys())M.attributeKey=S,M.attributeOldValue=null,M.attributeNewValue=b.getAttribute(S),this._testAndFire("attribute:"+S,M)}this._clearConversionApi()}convertRemove(r,l,m,b){this.conversionApi.writer=b,this.fire("remove:"+m,{position:r,length:l},this.conversionApi),this._clearConversionApi()}convertAttribute(r,l,m,b,M){this.conversionApi.writer=M,this.conversionApi.consumable=this._createConsumableForRange(r,"attribute:"+l);for(const S of r){const q={item:S.item,range:zi._createFromPositionAndShift(S.previousPosition,S.length),attributeKey:l,attributeOldValue:m,attributeNewValue:b};this._testAndFire("attribute:"+l,q)}this._clearConversionApi()}convertSelection(r,l,m){const b=Array.from(l.getMarkersAtPosition(r.getFirstPosition()));if(this.conversionApi.writer=m,this.conversionApi.consumable=this._createSelectionConsumable(r,b),this.fire("selection",{selection:r},this.conversionApi),r.isCollapsed){for(const M of b){const S=M.getRange();if(!ur(r.getFirstPosition(),M,this.conversionApi.mapper))continue;const q={item:r,markerName:M.name,markerRange:S};this.conversionApi.consumable.test(r,"addMarker:"+M.name)&&this.fire("addMarker:"+M.name,q,this.conversionApi)}for(const M of r.getAttributeKeys()){const S={item:r,range:r.getFirstRange(),attributeKey:M,attributeOldValue:null,attributeNewValue:r.getAttribute(M)};this.conversionApi.consumable.test(r,"attribute:"+S.attributeKey)&&this.fire("attribute:"+S.attributeKey+":$text",S,this.conversionApi)}this._clearConversionApi()}}convertMarkerAdd(r,l,m){if(!l.root.document||"$graveyard"==l.root.rootName)return;this.conversionApi.writer=m;const b="addMarker:"+r,M=new mm;if(M.add(l,b),this.conversionApi.consumable=M,this.fire(b,{markerName:r,markerRange:l},this.conversionApi),M.test(l,b)){this.conversionApi.consumable=this._createConsumableForRange(l,b);for(const S of l.getItems()){if(!this.conversionApi.consumable.test(S,b))continue;const q={item:S,range:zi._createOn(S),markerName:r,markerRange:l};this.fire(b,q,this.conversionApi)}this._clearConversionApi()}}convertMarkerRemove(r,l,m){l.root.document&&"$graveyard"!=l.root.rootName&&(this.conversionApi.writer=m,this.fire("removeMarker:"+r,{markerName:r,markerRange:l},this.conversionApi),this._clearConversionApi())}_createInsertConsumable(r){const l=new mm;for(const m of r){const b=m.item;l.add(b,"insert");for(const M of b.getAttributeKeys())l.add(b,"attribute:"+M)}return l}_createConsumableForRange(r,l){const m=new mm;for(const b of r.getItems())m.add(b,l);return m}_createSelectionConsumable(r,l){const m=new mm;m.add(r,"selection");for(const b of l)m.add(r,"addMarker:"+b.name);for(const b of r.getAttributeKeys())m.add(r,"attribute:"+b);return m}_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 ur(d,r,l){const m=r.getRange(),b=Array.from(d.getAncestors());return b.shift(),b.reverse(),!b.some(M=>{if(m.containsItem(M))return!!l.toViewElement(M).getCustomProperty("addHighlight")})}io(o2,Za);class D1{constructor(r,l,m){this._lastRangeBackward=!1,this._ranges=[],this._attrs=new Map,r&&this.setTo(r,l,m)}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 m=!1;for(const b of r._ranges)if(l.isEqual(b)){m=!0;break}if(!m)return!1}return!0}*getRanges(){for(const r of this._ranges)yield new zi(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 zi(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 zi(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,m){if(null===r)this._setRanges([]);else if(r instanceof D1)this._setRanges(r.getRanges(),r.isBackward);else if(r&&"function"==typeof r.getRanges)this._setRanges(r.getRanges(),r.isBackward);else if(r instanceof zi)this._setRanges([r],!!l&&!!l.backward);else if(r instanceof po)this._setRanges([new zi(r)]);else if(r instanceof qi){const b=!!m&&!!m.backward;let M;if("in"==l)M=zi._createIn(r);else if("on"==l)M=zi._createOn(r);else{if(void 0===l)throw new Qn.b("model-selection-setTo-required-second-parameter: selection.setTo requires the second parameter when the first parameter is a node.",[this,r]);M=new zi(po._createAt(r,l))}this._setRanges([M],b)}else{if(!Ba(r))throw new Qn.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 m=(r=Array.from(r)).some(b=>{if(!(b instanceof zi))throw new Qn.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(M=>!M.isEqual(b))});if(r.length!==this._ranges.length||m){this._removeAllRanges();for(const b of r)this._pushRange(b);this._lastRangeBackward=!!l,this.fire("change:range",{directChange:!0})}}setFocus(r,l){if(null===this.anchor)throw new Qn.b("model-selection-setFocus-no-ranges: Cannot set selection focus if there are no ranges in selection.",[this,r]);const m=po._createAt(r,l);if("same"==m.compareWith(this.focus))return;const b=this.anchor;this._ranges.length&&this._popRange(),"before"==m.compareWith(b)?(this._pushRange(new zi(m,b)),this._lastRangeBackward=!0):(this._pushRange(new zi(b,m)),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 m=mf(l.start,r);m&&qh(m,l)&&(yield m);for(const M of l.getWalker()){const S=M.item;"elementEnd"==M.type&&_m(S,r,l)&&(yield S)}const b=mf(l.end,r);b&&!l.end.isTouching(po._createAt(b,0))&&qh(b,l)&&(yield b)}}containsEntireContent(r=this.anchor.root){const l=po._createAt(r,0),m=po._createAt(r,"end");return l.isTouching(this.getFirstPosition())&&m.isTouching(this.getLastPosition())}_pushRange(r){this._checkRange(r),this._ranges.push(new zi(r.start,r.end))}_checkRange(r){for(let l=0;l0;)this._popRange()}_popRange(){this._ranges.pop()}}function Ih(d,r){return!r.has(d)&&(r.add(d),d.root.document.model.schema.isBlock(d)&&d.parent)}function _m(d,r,l){return Ih(d,r)&&qh(d,l)}function mf(d,r){const l=d.parent.root.document.model.schema,m=d.parent.getAncestors({parentFirst:!0,includeSelf:!0});let b=!1;const M=m.find(S=>!b&&(b=l.isLimit(S),!b&&Ih(S,r)));return m.forEach(S=>r.add(S)),M}function qh(d,r){const l=function(m){const b=m.root.document.model.schema;let M=m.parent;for(;M;){if(b.isBlock(M))return M;M=M.parent}}(d);return!l||!r.containsRange(zi._createOn(l),!0)}io(D1,Za);class Pp extends zi{constructor(r,l){super(r,l),Eu.call(this)}detach(){this.stopListening()}is(r){return"liveRange"===r||"model:liveRange"===r||"range"==r||"model:range"===r}toRange(){return new zi(this.start,this.end)}static fromRange(r){return new Pp(r.start,r.end)}}function Eu(){this.listenTo(this.root.document.model,"applyOperation",(d,r)=>{const l=r[0];l.isDocumentOperation&&O3.call(this,l)},{priority:"low"})}function O3(d){const r=this.getTransformedByOperation(d),l=zi._createFromRanges(r),m=!l.isEqual(this),b=function(S,q){switch(q.type){case"insert":return S.containsPosition(q.position);case"move":case"remove":case"reinsert":case"merge":return S.containsPosition(q.sourcePosition)||S.start.isEqual(q.sourcePosition)||S.containsPosition(q.targetPosition);case"split":return S.containsPosition(q.splitPosition)||S.containsPosition(q.insertionPosition)}return!1}(this,d);let M=null;if(m){"$graveyard"==l.root.rootName&&(M="remove"==d.type?d.sourcePosition:d.deletionPosition);const S=this.toRange();this.start=l.start,this.end=l.end,this.fire("change:range",S,{deletionPosition:M})}else b&&this.fire("change:content",this.toRange(),{deletionPosition:M})}io(Pp,Za);class Fu{constructor(r){this._selection=new xl(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,m){this._selection.setTo(r,l,m)}_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:")}}io(Fu,Za);class xl extends D1{constructor(r){super(),this.markers=new Nr({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,m)=>{const b=m[0];b.isDocumentOperation&&"marker"!=b.type&&"rename"!=b.type&&"noop"!=b.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 Qn.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,m)=>{!function(b,M){const S=b.document.differ;for(const q of S.getChanges()){if("insert"!=q.type)continue;const B=q.position.parent;q.length===B.maxOffset&&b.enqueueChange(M,at=>{const _t=Array.from(B.getAttributeKeys()).filter(Zt=>Zt.startsWith("selection:"));for(const Zt of _t)at.removeAttribute(Zt,B)})}}(this._model,m)})}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=M.deletionPosition;const S=this._ranges.indexOf(l);this._ranges.splice(S,1),l.detach()}}),l}_updateMarkers(){const r=[];let l=!1;for(const b of this._model.markers){const M=b.getRange();for(const S of this.getRanges())M.containsRange(S,!S.isCollapsed)&&r.push(b)}const m=Array.from(this.markers);for(const b of r)this.markers.has(b)||(this.markers.add(b),l=!0);for(const b of Array.from(this.markers))r.includes(b)||(this.markers.remove(b),l=!0);l&&this.fire("change:marker",{oldMarkers:m,directChange:!1})}_updateAttributes(r){const l=Wa(this._getSurroundingAttributes()),m=Wa(this.getAttributes());if(r)this._attributePriority=new Map,this._attrs=new Map;else for(const[M,S]of this._attributePriority)"low"==S&&(this._attrs.delete(M),this._attributePriority.delete(M));this._setAttributesTo(l);const b=[];for(const[M,S]of this.getAttributes())m.has(M)&&m.get(M)===S||b.push(M);for(const[M]of m)this.hasAttribute(M)||b.push(M);b.length>0&&this.fire("change:attribute",{attributeKeys:b,directChange:!1})}_setAttribute(r,l,m=!0){const b=m?"normal":"low";return("low"!=b||"normal"!=this._attributePriority.get(r))&&super.getAttribute(r)!==l&&(this._attrs.set(r,l),this._attributePriority.set(r,b),!0)}_removeAttribute(r,l=!0){const m=l?"normal":"low";return!("low"==m&&"normal"==this._attributePriority.get(r)||(this._attributePriority.set(r,m),!super.hasAttribute(r)||(this._attrs.delete(r),0)))}_setAttributesTo(r){const l=new Set;for(const[m,b]of this.getAttributes())r.get(m)!==b&&this._removeAttribute(m,!1);for(const[m,b]of r)this._setAttribute(m,b,!1)&&l.add(m);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 m=null;if(this.isCollapsed){const b=r.textNode?r.textNode:r.nodeBefore,M=r.textNode?r.textNode:r.nodeAfter;if(this.isGravityOverridden||(m=fm(b)),m||(m=fm(M)),!this.isGravityOverridden&&!m){let S=b;for(;S&&!m;)S=S.previousSibling,m=fm(S)}if(!m){let S=M;for(;S&&!m;)S=S.nextSibling,m=fm(S)}m||(m=this._getStoredAttributes())}else{const b=this.getFirstRange();for(const M of b){if(M.item.is("element")&&l.isObject(M.item))break;if("text"==M.type){m=M.item.getAttributes();break}}}return m}_fixGraveyardSelection(r){const l=this._model.schema.getNearestSelectionRange(r);l&&this._pushRange(l)}}function fm(d){return d instanceof ga||d instanceof Qi?d.getAttributes():null}class _f{constructor(r){this._dispatchers=r}add(r){for(const l of this._dispatchers)r(l);return this}}var Bs=function(d){return uu(d,5)};class Ps extends _f{elementToElement(r){return this.add(function(l){return(l=Bs(l)).view=Sp(l.view,"container"),m=>{var b;m.on("insert:"+l.model,(b=l.view,(M,S,q)=>{const B=b(S.item,q.writer);if(!B||!q.consumable.consume(S.item,"insert"))return;const at=q.mapper.toViewPosition(S.range.start);q.mapper.bindElements(S.item,B),q.writer.insert(at,B)}),{priority:l.converterPriority||"normal"})}}(r))}attributeToElement(r){return this.add(function(l){let m="attribute:"+((l=Bs(l)).model.key?l.model.key:l.model);if(l.model.name&&(m+=":"+l.model.name),l.model.values)for(const M of l.model.values)l.view[M]=Sp(l.view[M],"attribute");else l.view=Sp(l.view,"attribute");const b=Rh(l);return M=>{var S;M.on(m,(S=b,(q,B,at)=>{const _t=S(B.attributeOldValue,at.writer),Zt=S(B.attributeNewValue,at.writer);if(!_t&&!Zt||!at.consumable.consume(B.item,q.name))return;const _e=at.writer;if(B.item instanceof D1||B.item instanceof Fu)_e.wrap(_e.document.selection.getFirstRange(),Zt);else{let mn=at.mapper.toViewRange(B.range);null!==B.attributeOldValue&&_t&&(mn=_e.unwrap(mn,_t)),null!==B.attributeNewValue&&Zt&&_e.wrap(mn,Zt)}}),{priority:l.converterPriority||"normal"})}}(r))}attributeToAttribute(r){return this.add(function(l){let m="attribute:"+((l=Bs(l)).model.key?l.model.key:l.model);if(l.model.name&&(m+=":"+l.model.name),l.model.values)for(const M of l.model.values)l.view[M]=a2(l.view[M]);else l.view=a2(l.view);const b=Rh(l);return M=>{var S;M.on(m,(S=b,(q,B,at)=>{const _t=S(B.attributeOldValue,B),Zt=S(B.attributeNewValue,B);if(!_t&&!Zt||!at.consumable.consume(B.item,q.name))return;const _e=at.mapper.toViewElement(B.item),Be=at.writer;if(!_e)throw new Qn.b("conversion-attribute-to-attribute-on-text: Trying to convert text node's attribute with attribute-to-attribute converter.",[B,at]);if(null!==B.attributeOldValue&&_t)if("class"==_t.key){const mn=Array.isArray(_t.value)?_t.value:[_t.value];for(const Mn of mn)Be.removeClass(Mn,_e)}else if("style"==_t.key){const mn=Object.keys(_t.value);for(const Mn of mn)Be.removeStyle(Mn,_e)}else Be.removeAttribute(_t.key,_e);if(null!==B.attributeNewValue&&Zt)if("class"==Zt.key){const mn=Array.isArray(Zt.value)?Zt.value:[Zt.value];for(const Mn of mn)Be.addClass(Mn,_e)}else if("style"==Zt.key){const mn=Object.keys(Zt.value);for(const Mn of mn)Be.setStyle(Mn,Zt.value[Mn],_e)}else Be.setAttribute(Zt.key,Zt.value,_e)}),{priority:l.converterPriority||"normal"})}}(r))}markerToElement(r){return this.add(function(l){return(l=Bs(l)).view=Sp(l.view,"ui"),m=>{var b;m.on("addMarker:"+l.model,(b=l.view,(M,S,q)=>{S.isOpening=!0;const B=b(S,q.writer);S.isOpening=!1;const at=b(S,q.writer);if(!B||!at)return;const _t=S.markerRange;if(_t.isCollapsed&&!q.consumable.consume(_t,M.name))return;for(const Be of _t)if(!q.consumable.consume(Be.item,M.name))return;const Zt=q.mapper,_e=q.writer;_e.insert(Zt.toViewPosition(_t.start),B),q.mapper.bindElementToMarker(B,S.markerName),_t.isCollapsed||(_e.insert(Zt.toViewPosition(_t.end),at),q.mapper.bindElementToMarker(at,S.markerName)),M.stop()}),{priority:l.converterPriority||"normal"}),m.on("removeMarker:"+l.model,(M,S,q)=>{const B=q.mapper.markerNameToElements(S.markerName);if(B){for(const at of B)q.mapper.unbindElementFromMarkerName(at,S.markerName),q.writer.clear(q.writer.createRangeOn(at),at);q.writer.clearClonedElementsGroup(S.markerName),M.stop()}},{priority:l.converterPriority||"normal"})}}(r))}markerToHighlight(r){return this.add(function(l){return m=>{var b,M;m.on("addMarker:"+l.model,(b=l.view,(M,S,q)=>{if(!S.item||!(S.item instanceof D1||S.item instanceof Fu||S.item.is("$textProxy")))return;const B=hf(b,S,q);if(!B||!q.consumable.consume(S.item,M.name))return;const at=q.writer,_t=kp(at,B),Zt=at.document.selection;if(S.item instanceof D1||S.item instanceof Fu)at.wrap(Zt.getFirstRange(),_t,Zt);else{const _e=q.mapper.toViewRange(S.range),Be=at.wrap(_e,_t);for(const mn of Be.getItems())if(mn.is("attributeElement")&&mn.isSimilar(_t)){q.mapper.bindElementToMarker(mn,S.markerName);break}}}),{priority:l.converterPriority||"normal"}),m.on("addMarker:"+l.model,(M=l.view,(S,q,B)=>{if(!(q.item&&q.item instanceof Ra))return;const at=hf(M,q,B);if(!at||!B.consumable.test(q.item,S.name))return;const _t=B.mapper.toViewElement(q.item);if(_t&&_t.getCustomProperty("addHighlight")){B.consumable.consume(q.item,S.name);for(const Zt of zi._createIn(q.item))B.consumable.consume(Zt.item,S.name);_t.getCustomProperty("addHighlight")(_t,at,B.writer),B.mapper.bindElementToMarker(_t,q.markerName)}}),{priority:l.converterPriority||"normal"}),m.on("removeMarker:"+l.model,function(M){return(S,q,B)=>{if(q.markerRange.isCollapsed)return;const at=hf(M,q,B);if(!at)return;const _t=kp(B.writer,at),Zt=B.mapper.markerNameToElements(q.markerName);if(Zt){for(const _e of Zt)B.mapper.unbindElementFromMarkerName(_e,q.markerName),_e.is("attributeElement")?B.writer.unwrap(B.writer.createRangeOn(_e),_t):_e.getCustomProperty("removeHighlight")(_e,at.id,B.writer);B.writer.clearClonedElementsGroup(q.markerName),S.stop()}}}(l.view),{priority:l.converterPriority||"normal"})}}(r))}markerToData(r){return this.add(function(l){const m=(l=Bs(l)).model;return l.view||(l.view=b=>({group:m,name:b.substr(l.model.length+1)})),b=>{var M,S;b.on("addMarker:"+m,(M=l.view,(S,q,B)=>{const at=M(q.markerName);if(!at)return;const _t=q.markerRange;B.consumable.consume(_t,S.name)&&(ff(_t,!1,B,q,at),ff(_t,!0,B,q,at),S.stop())}),{priority:l.converterPriority||"normal"}),b.on("removeMarker:"+m,(S=l.view,(q,B,at)=>{const _t=S(B.markerName);if(!_t)return;const Zt=at.mapper.markerNameToElements(B.markerName);if(Zt){for(const Be of Zt)at.mapper.unbindElementFromMarkerName(Be,B.markerName),Be.is("containerElement")?(_e(`data-${_t.group}-start-before`,Be),_e(`data-${_t.group}-start-after`,Be),_e(`data-${_t.group}-end-before`,Be),_e(`data-${_t.group}-end-after`,Be)):at.writer.clear(at.writer.createRangeOn(Be),Be);at.writer.clearClonedElementsGroup(B.markerName),q.stop()}function _e(Be,mn){if(mn.hasAttribute(Be)){const Mn=new Set(mn.getAttribute(Be).split(","));Mn.delete(_t.name),0==Mn.size?at.writer.removeAttribute(Be,mn):at.writer.setAttribute(Be,Array.from(Mn).join(","),mn)}}}),{priority:l.converterPriority||"normal"})}}(r))}}function kp(d,r){const l=d.createAttributeElement("span",r.attributes);return r.classes&&l._addClass(r.classes),r.priority&&(l._priority=r.priority),l._id=r.id,l}function ff(d,r,l,m,b){const M=r?d.start:d.end;if(l.schema.checkChild(M,"$text"))!function(S,q,B,at,_t){const Be=B.writer.createUIElement(`${_t.group}-${q?"start":"end"}`,_t.name?{name:_t.name}:null);B.writer.insert(S,Be),B.mapper.bindElementToMarker(Be,at.markerName)}(l.mapper.toViewPosition(M),r,l,m,b);else{let S,q;r&&M.nodeAfter||!r&&!M.nodeBefore?(S=M.nodeAfter,q=!0):(S=M.nodeBefore,q=!1),function(B,at,_t,Zt,_e,Be){const mn=`data-${Be.group}-${at?"start":"end"}-${_t?"before":"after"}`,Mn=B.hasAttribute(mn)?B.getAttribute(mn).split(","):[];Mn.unshift(Be.name),Zt.writer.setAttribute(mn,Mn.join(","),B),Zt.mapper.bindElementToMarker(B,_e.markerName)}(l.mapper.toViewElement(S),r,q,l,m,b)}}function Sp(d,r){return"function"==typeof d?d:(l,m)=>function(b,M,S){let q;"string"==typeof b&&(b={name:b});const B=Object.assign({},b.attributes);if(q="container"==S?M.createContainerElement(b.name,B):"attribute"==S?M.createAttributeElement(b.name,B,{priority:b.priority||Ms.DEFAULT_PRIORITY}):M.createUIElement(b.name,B),b.styles){const at=Object.keys(b.styles);for(const _t of at)M.setStyle(_t,b.styles[_t],q)}if(b.classes){const at=b.classes;if("string"==typeof at)M.addClass(at,q);else for(const _t of at)M.addClass(_t,q)}return q}(d,m,r)}function Rh(d){return d.model.values?(r,l)=>{const m=d.view[r];return m?m(r,l):null}:d.view}function a2(d){return"string"==typeof d?r=>({key:d,value:r}):"object"==typeof d?d.value?()=>d:r=>({key:d.key,value:r}):d}function hf(d,r,l){const m="function"==typeof d?d(r,l):d;return m?(m.priority||(m.priority=10),m.id||(m.id=r.markerName),m):null}class gf extends _f{elementToElement(r){return this.add(vf(r))}elementToAttribute(r){return this.add(function(l){rp(l=Bs(l));const m=c_(l,!1),b=n1(l.view),M=b?"element:"+b:"element";return S=>{S.on(M,m,{priority:l.converterPriority||"low"})}}(r))}attributeToAttribute(r){return this.add(function(l){let m=null;("string"==typeof(l=Bs(l)).view||l.view.key)&&(m=function(M){"string"==typeof M.view&&(M.view={key:M.view});const S=M.view.key;let q;return q="class"==S||"style"==S?{["class"==S?"classes":"styles"]:M.view.value}:{attributes:{[S]:void 0===M.view.value?/[\s\S]*/:M.view.value}},M.view.name&&(q.name=M.view.name),M.view=q,S}(l)),rp(l,m);const b=c_(l,!0);return M=>{M.on("element",b,{priority:l.converterPriority||"low"})}}(r))}elementToMarker(r){return console.warn(Object(Qn.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(m){const b=m.model;m.model=(M,S)=>{const q="string"==typeof b?b:b(M);return S.createElement("$marker",{"data-name":q})}}(l=Bs(l)),vf(l)}(r))}dataToMarker(r){return this.add(function(l){(l=Bs(l)).model||(l.model=M=>M?l.view+":"+M:l.view);const m=xf(r2(l,"start")),b=xf(r2(l,"end"));return M=>{M.on("element:"+l.view+"-start",m,{priority:l.converterPriority||"normal"}),M.on("element:"+l.view+"-end",b,{priority:l.converterPriority||"normal"});const S=as.get("low"),q=as.get("highest"),B=as.get(l.converterPriority)/q;var at;M.on("element",(at=l,(_t,Zt,_e)=>{const Be="data-"+at.view;function mn(Mn,In){for(const Gn of In){const Fi=at.model(Gn),Ji=_e.writer.createElement("$marker",{"data-name":Fi});_e.writer.insert(Ji,Mn),Zt.modelCursor=Zt.modelCursor.isEqual(Mn)?Zt.modelCursor.getShiftedBy(1):Zt.modelCursor._getTransformedByInsertion(Mn,1),Zt.modelRange=Zt.modelRange._getTransformedByInsertion(Mn,1)[0]}}Zt.modelRange||(Zt=Object.assign(Zt,_e.convertChildren(Zt.viewItem,Zt.modelCursor))),_e.consumable.consume(Zt.viewItem,{attributes:Be+"-end-after"})&&mn(Zt.modelRange.end,Zt.viewItem.getAttribute(Be+"-end-after").split(",")),_e.consumable.consume(Zt.viewItem,{attributes:Be+"-start-after"})&&mn(Zt.modelRange.end,Zt.viewItem.getAttribute(Be+"-start-after").split(",")),_e.consumable.consume(Zt.viewItem,{attributes:Be+"-end-before"})&&mn(Zt.modelRange.start,Zt.viewItem.getAttribute(Be+"-end-before").split(",")),_e.consumable.consume(Zt.viewItem,{attributes:Be+"-start-before"})&&mn(Zt.modelRange.start,Zt.viewItem.getAttribute(Be+"-start-before").split(","))}),{priority:S+B})}}(r))}}function vf(d){const r=xf(d=Bs(d)),l=n1(d.view),m=l?"element:"+l:"element";return b=>{b.on(m,r,{priority:d.converterPriority||"normal"})}}function n1(d){return"string"==typeof d?d:"object"==typeof d&&"string"==typeof d.name?d.name:null}function xf(d){const r=d.view?new ae(d.view):null;return(l,m,b)=>{let M={};if(r){const _e=r.match(m.viewItem);if(!_e)return;M=_e.match}M.name=!0;const S=(at=b.writer,(q=d.model)instanceof Function?q(m.viewItem,at):at.createElement(q));var q,at;if(!S||!b.consumable.test(m.viewItem,M))return;const _t=b.splitToAllowedParent(S,m.modelCursor);if(!_t)return;b.writer.insert(S,_t.position),b.convertChildren(m.viewItem,b.writer.createPositionAt(S,0)),b.consumable.consume(m.viewItem,M);const Zt=b.getSplitParts(S);m.modelRange=new zi(b.writer.createPositionBefore(S),b.writer.createPositionAfter(Zt[Zt.length-1])),m.modelCursor=_t.cursorParent?b.writer.createPositionAt(_t.cursorParent,0):m.modelRange.end}}function rp(d,r=null){d.model={key:"object"!=typeof d.model?d.model:d.model.key,value:"object"!=typeof d.model||void 0===d.model.value?null===r||(M=>M.getAttribute(r)):d.model.value}}function c_(d,r){const l=new ae(d.view);return(m,b,M)=>{const S=l.match(b.viewItem);if(!S)return;const q=d.model.key,B="function"==typeof d.model.value?d.model.value(b.viewItem):d.model.value;null!==B&&(function(at,_t){const Zt="function"==typeof at?at(_t):at;return!("object"==typeof Zt&&!n1(Zt)||Zt.classes||Zt.attributes||Zt.styles)}(d.view,b.viewItem)?S.match.name=!0:delete S.match.name,M.consumable.test(b.viewItem,S.match)&&(b.modelRange||(b=Object.assign(b,M.convertChildren(b.viewItem,b.modelCursor))),function(at,_t,Zt,_e){let Be=!1;for(const mn of Array.from(at.getItems({shallow:Zt})))_e.schema.checkAttribute(mn,_t.key)&&(_e.writer.setAttribute(_t.key,_t.value,mn),Be=!0);return Be}(b.modelRange,{key:q,value:B},r,M)&&M.consumable.consume(b.viewItem,S.match)))}}function r2(d,r){const l={};return l.view=d.view+"-"+r,l.model=(m,b)=>{const M=m.getAttribute("name"),S=d.model(M);return b.createElement("$marker",{"data-name":S})},l}class bf{constructor(r,l){this.model=r,this.view=new ni(l),this.mapper=new n2,this.downcastDispatcher=new o2({mapper:this.mapper,schema:r.schema});const m=this.model.document,b=m.selection,M=this.model.markers;var S,q;this.listenTo(this.model,"_beforeChanges",()=>{this.view._disableRendering(!0)},{priority:"highest"}),this.listenTo(this.model,"_afterChanges",()=>{this.view._disableRendering(!1)},{priority:"lowest"}),this.listenTo(m,"change",()=>{this.view.change(S=>{this.downcastDispatcher.convertChanges(m.differ,M,S),this.downcastDispatcher.convertSelection(b,M,S)})},{priority:"low"}),this.listenTo(this.view.document,"selectionChange",(S=this.model,q=this.mapper,(B,at)=>{const _t=at.newSelection,Zt=new D1,_e=[];for(const Be of _t.getRanges())_e.push(q.toModelRange(Be));Zt.setTo(_e,{backward:_t.isBackward}),Zt.isEqual(S.document.selection)||S.change(Be=>{Be.setSelection(Zt)})})),this.downcastDispatcher.on("insert:$text",(S,q,B)=>{if(!B.consumable.consume(q.item,"insert"))return;const at=B.writer,_t=B.mapper.toViewPosition(q.range.start),Zt=at.createText(q.item.data);at.insert(_t,Zt)},{priority:"lowest"}),this.downcastDispatcher.on("remove",(S,q,B)=>{const at=B.mapper.toViewPosition(q.position),_t=q.position.getShiftedBy(q.length),Zt=B.mapper.toViewPosition(_t,{isPhantom:!0}),_e=B.writer.createRange(at,Zt),Be=B.writer.remove(_e.getTrimmed());for(const mn of B.writer.createRangeIn(Be).getItems())B.mapper.unbindViewElement(mn)},{priority:"low"}),this.downcastDispatcher.on("selection",(S,q,B)=>{const at=B.writer,_t=at.document.selection;for(const Zt of _t.getRanges())Zt.isCollapsed&&Zt.end.parent.isAttached()&&B.writer.mergeAttributes(Zt.start);at.setSelection(null)},{priority:"low"}),this.downcastDispatcher.on("selection",(S,q,B)=>{const at=q.selection;if(at.isCollapsed||!B.consumable.consume(at,"selection"))return;const _t=[];for(const Zt of at.getRanges()){const _e=B.mapper.toViewRange(Zt);_t.push(_e)}B.writer.setSelection(_t,{backward:at.isBackward})},{priority:"low"}),this.downcastDispatcher.on("selection",(S,q,B)=>{const at=q.selection;if(!at.isCollapsed||!B.consumable.consume(at,"selection"))return;const _t=B.writer,Zt=at.getFirstPosition(),_e=B.mapper.toViewPosition(Zt),Be=_t.breakAttributes(_e);_t.setSelection(Be)},{priority:"low"}),this.view.document.roots.bindTo(this.model.document.roots).using(S=>{if("$graveyard"==S.rootName)return null;const q=new wi(this.view.document,S.name);return q.rootName=S.rootName,this.mapper.bindElements(S,q),q})}destroy(){this.view.destroy(),this.stopListening()}}io(bf,kt);class Hh{constructor(){this._commands=new Map}add(r,l){this._commands.set(r,l)}get(r){return this._commands.get(r)}execute(r,...l){const m=this.get(r);if(!m)throw new Qn.b("commandcollection-command-not-found: Command does not exist.",this,{commandName:r});return m.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 s2{constructor(){this._consumables=new Map}add(r,l){let m;r.is("$text")||r.is("documentFragment")?this._consumables.set(r,!0):(this._consumables.has(r)?m=this._consumables.get(r):(m=new l_(r),this._consumables.set(r,m)),m.add(l))}test(r,l){const m=this._consumables.get(r);return void 0===m?null:r.is("$text")||r.is("documentFragment")?m:m.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 m=this._consumables.get(r);void 0!==m&&(r.is("$text")||r.is("documentFragment")?this._consumables.set(r,!0):m.revert(l))}static consumablesFromElement(r){const l={element:r,name:!0,attributes:[],classes:[],styles:[]},m=r.getAttributeKeys();for(const S of m)"style"!=S&&"class"!=S&&l.attributes.push(S);const b=r.getClassNames();for(const S of b)l.classes.push(S);const M=r.getStyleNames();for(const S of M)l.styles.push(S);return l}static createFrom(r,l){if(l||(l=new s2(r)),r.is("$text"))return l.add(r),l;r.is("element")&&l.add(r,s2.consumablesFromElement(r)),r.is("documentFragment")&&l.add(r);for(const m of r.getChildren())l=s2.createFrom(m,l);return l}}class l_{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 m=this._test(l,r[l]);if(!0!==m)return m}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 m=Sn(l)?l:[l],b=this._consumables[r];for(const M of m){if("attributes"===r&&("class"===M||"style"===M))throw new Qn.b("viewconsumable-invalid-attribute: Classes and styles should be handled separately.",this);if(b.set(M,!0),"styles"===r)for(const S of this.element.document.stylesProcessor.getRelatedStyles(M))b.set(S,!0)}}_test(r,l){const m=Sn(l)?l:[l],b=this._consumables[r];for(const M of m)if("attributes"!==r||"class"!==M&&"style"!==M){const S=b.get(M);if(void 0===S)return null;if(!S)return!1}else{const S="class"==M?"classes":"styles",q=this._test(S,[...this._consumables[S].keys()]);if(!0!==q)return q}return!0}_consume(r,l){const m=Sn(l)?l:[l],b=this._consumables[r];for(const M of m)if("attributes"!==r||"class"!==M&&"style"!==M){if(b.set(M,!1),"styles"==r)for(const S of this.element.document.stylesProcessor.getRelatedStyles(M))b.set(S,!1)}else{const S="class"==M?"classes":"styles";this._consume(S,[...this._consumables[S].keys()])}}_revert(r,l){const m=Sn(l)?l:[l],b=this._consumables[r];for(const M of m)if("attributes"!==r||"class"!==M&&"style"!==M)!1===b.get(M)&&b.set(M,!0);else{const S="class"==M?"classes":"styles";this._revert(S,[...this._consumables[S].keys()])}}}class Cf{constructor(){this._sourceDefinitions={},this._attributeProperties={},this.decorate("checkChild"),this.decorate("checkAttribute"),this.on("checkAttribute",(r,l)=>{l[0]=new P1(l[0])},{priority:"highest"}),this.on("checkChild",(r,l)=>{l[0]=new P1(l[0]),l[1]=this.getDefinition(l[1])},{priority:"highest"})}register(r,l){if(this._sourceDefinitions[r])throw new Qn.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 Qn.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 m=this.getDefinition(r.last);return!!m&&m.allowAttributes.includes(l)}checkMerge(r,l=null){if(r instanceof po){const m=r.nodeBefore,b=r.nodeAfter;if(!(m instanceof Ra))throw new Qn.b("schema-check-merge-no-element-before: The node before the merge position must be an element.",this);if(!(b instanceof Ra))throw new Qn.b("schema-check-merge-no-element-after: The node after the merge position must be an element.",this);return this.checkMerge(m,b)}for(const m of l.getChildren())if(!this.checkChild(r,m))return!1;return!0}addChildCheck(r){this.on("checkChild",(l,[m,b])=>{if(!b)return;const M=r(m,b);"boolean"==typeof M&&(l.stop(),l.return=M)},{priority:"high"})}addAttributeCheck(r){this.on("checkAttribute",(l,[m,b])=>{const M=r(m,b);"boolean"==typeof M&&(l.stop(),l.return=M)},{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 po?r.parent:(r instanceof zi?[r]:Array.from(r.getRanges())).reduce((m,b)=>{const M=b.getCommonAncestor();return m?m.getCommonAncestor(M,{includeSelf:!0}):M},null);!this.isLimit(l)&&l.parent;)l=l.parent;return l}checkAttributeInSelection(r,l){if(r.isCollapsed){const m=[...r.getFirstPosition().getAncestors(),new Qi("",r.getAttributes())];return this.checkAttribute(m,l)}{const m=r.getRanges();for(const b of m)for(const M of b)if(this.checkAttribute(M.item,l))return!0}return!1}*getValidRanges(r,l){r=function*(m){for(const b of m)yield*b.getMinimalFlatRanges()}(r);for(const m of r)yield*this._getValidRangesForRange(m,l)}getNearestSelectionRange(r,l="both"){if(this.checkChild(r,"$text"))return new zi(r);let m,b;const M=r.getAncestors().reverse().find(S=>this.isLimit(S))||r.root;"both"!=l&&"backward"!=l||(m=new el({boundaries:zi._createIn(M),startPosition:r,direction:"backward"})),"both"!=l&&"forward"!=l||(b=new el({boundaries:zi._createIn(M),startPosition:r}));for(const S of function*(q,B){let at=!1;for(;!at;){if(at=!0,q){const _t=q.next();_t.done||(at=!1,yield{walker:q,value:_t.value})}if(B){const _t=B.next();_t.done||(at=!1,yield{walker:B,value:_t.value})}}}(m,b)){const B=S.value;if(B.type==(S.walker==m?"elementEnd":"elementStart")&&this.isObject(B.item))return zi._createOn(B.item);if(this.checkChild(B.nextPosition,"$text"))return new zi(B.nextPosition)}return null}findAllowedParent(r,l){let m=r.parent;for(;m;){if(this.checkChild(m,l))return m;if(this.isLimit(m))return null;m=m.parent}return null}removeDisallowedAttributes(r,l){for(const m of r)if(m.is("$text"))Tf(this,m,l);else{const b=zi._createIn(m).getPositions();for(const M of b)Tf(this,M.nodeBefore||M.parent,l)}}createContext(r){return new P1(r)}_clearCache(){this._compiledDefinitions=null}_compile(){const r={},l=this._sourceDefinitions,m=Object.keys(l);for(const b of m)r[b]=c2(l[b],b);for(const b of m)u_(r,b);for(const b of m)yf(r,b);for(const b of m)rd(r,b),_u(r,b);for(const b of m)Yh(r,b),s0(r,b);this._compiledDefinitions=r}_checkContextMatch(r,l,m=l.length-1){const b=l.getItem(m);if(r.allowIn.includes(b.name)){if(0==m)return!0;{const M=this.getDefinition(b);return this._checkContextMatch(M,l,m-1)}}return!1}*_getValidRangesForRange(r,l){let m=r.start,b=r.start;for(const M of r.getItems({shallow:!0}))M.is("element")&&(yield*this._getValidRangesForRange(zi._createIn(M),l)),this.checkAttribute(M,l)||(m.isEqual(b)||(yield new zi(m,b)),m=po._createAfter(M)),b=po._createAfter(M);m.isEqual(b)||(yield new zi(m,b))}}io(Cf,kt);class P1{constructor(r){if(r instanceof P1)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(c0)}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 P1([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 c2(d,r){const l={name:r,allowIn:[],allowContentOf:[],allowWhere:[],allowAttributes:[],allowAttributesOf:[],inheritTypesFrom:[]};return function(m,b){for(const M of m){const S=Object.keys(M).filter(q=>q.startsWith("is"));for(const q of S)b[q]=M[q]}}(d,l),xs(d,l,"allowIn"),xs(d,l,"allowContentOf"),xs(d,l,"allowWhere"),xs(d,l,"allowAttributes"),xs(d,l,"allowAttributesOf"),xs(d,l,"inheritTypesFrom"),function(m,b){for(const M of m){const S=M.inheritAllFrom;S&&(b.allowContentOf.push(S),b.allowWhere.push(S),b.allowAttributesOf.push(S),b.inheritTypesFrom.push(S))}}(d,l),l}function u_(d,r){for(const l of d[r].allowContentOf)d[l]&&Op(d,l).forEach(m=>{m.allowIn.push(r)});delete d[r].allowContentOf}function yf(d,r){for(const l of d[r].allowWhere){const m=d[l];m&&d[r].allowIn.push(...m.allowIn)}delete d[r].allowWhere}function rd(d,r){for(const l of d[r].allowAttributesOf){const m=d[l];m&&d[r].allowAttributes.push(...m.allowAttributes)}delete d[r].allowAttributesOf}function _u(d,r){const l=d[r];for(const m of l.inheritTypesFrom){const b=d[m];if(b){const M=Object.keys(b).filter(S=>S.startsWith("is"));for(const S of M)S in l||(l[S]=b[S])}}delete l.inheritTypesFrom}function Yh(d,r){const l=d[r],m=l.allowIn.filter(b=>d[b]);l.allowIn=Array.from(new Set(m))}function s0(d,r){const l=d[r];l.allowAttributes=Array.from(new Set(l.allowAttributes))}function xs(d,r,l){for(const m of d)"string"==typeof m[l]?r[l].push(m[l]):Array.isArray(m[l])&&r[l].push(...m[l])}function Op(d,r){const l=d[r];return(m=d,Object.keys(m).map(b=>m[b])).filter(b=>b.allowIn.includes(l.name));var m}function c0(d){return"string"==typeof d?{name:d,*getAttributeKeys(){},getAttribute(){}}:{name:d.is("element")?d.name:"$text",*getAttributeKeys(){yield*d.getAttributeKeys()},getAttribute:r=>d.getAttribute(r)}}function Tf(d,r,l){for(const m of r.getAttributeKeys())d.checkAttribute(r,m)||l.removeAttribute(m,r)}class l0{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,m=["$root"]){this.fire("viewCleanup",r),this._modelCursor=function(S,q){let B;for(const at of new P1(S)){const _t={};for(const _e of at.getAttributeKeys())_t[_e]=at.getAttribute(_e);const Zt=q.createElement(at.name,_t);B&&q.append(Zt,B),B=po._createAt(Zt,0)}return B}(m,l),this.conversionApi.writer=l,this.conversionApi.consumable=s2.createFrom(r),this.conversionApi.store={};const{modelRange:b}=this._convertItem(r,this._modelCursor),M=l.createDocumentFragment();if(b){this._removeEmptyElements();for(const S of Array.from(this._modelCursor.parent.getChildren()))l.append(S,M);M.markers=function(S,q){const B=new Set,at=new Map,_t=zi._createIn(S).getItems();for(const Zt of _t)"$marker"==Zt.name&&B.add(Zt);for(const Zt of B){const _e=Zt.getAttribute("data-name"),Be=q.createPositionBefore(Zt);at.has(_e)?at.get(_e).end=Be.clone():at.set(_e,new zi(Be.clone())),q.remove(Zt)}return at}(M,l)}return this._modelCursor=null,this._splitParts.clear(),this.conversionApi.writer=null,this.conversionApi.store=null,M}_convertItem(r,l){const m=Object.assign({viewItem:r,modelCursor:l,modelRange:null});if(r.is("element")?this.fire("element:"+r.name,m,this.conversionApi):r.is("$text")?this.fire("text",m,this.conversionApi):this.fire("documentFragment",m,this.conversionApi),m.modelRange&&!(m.modelRange instanceof zi))throw new Qn.b("view-conversion-dispatcher-incorrect-result: Incorrect conversion result was dropped.",this);return{modelRange:m.modelRange,modelCursor:m.modelCursor}}_convertChildren(r,l){const m=new zi(l);let b=l;for(const M of Array.from(r.getChildren())){const S=this._convertItem(M,b);S.modelRange instanceof zi&&(m.end=S.modelRange.end,b=S.modelCursor)}return{modelRange:m,modelCursor:b}}_splitToAllowedParent(r,l){const m=this.conversionApi.schema.findAllowedParent(l,r);if(!m)return null;if(m===l.parent)return{position:l};if(this._modelCursor.parent.getAncestors().includes(m))return null;const b=this.conversionApi.writer.split(l,m),M=[];for(const S of b.range.getWalker())if("elementEnd"==S.type)M.push(S.item);else{const q=M.pop();this._registerSplitPair(q,S.item)}return{position:b.position,cursorParent:b.range.end.parent}}_registerSplitPair(r,l){this._splitParts.has(r)||this._splitParts.set(r,[r]);const m=this._splitParts.get(r);this._splitParts.set(l,m),m.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()}}io(l0,Za);class Lp{constructor(r,l){this.model=r,this.stylesProcessor=l,this.mapper=new n2,this.downcastDispatcher=new o2({mapper:this.mapper,schema:r.schema}),this.downcastDispatcher.on("insert:$text",(m,b,M)=>{if(!M.consumable.consume(b.item,"insert"))return;const S=M.writer,q=M.mapper.toViewPosition(b.range.start),B=S.createText(b.item.data);S.insert(q,B)},{priority:"lowest"}),this.upcastDispatcher=new l0({schema:r.schema}),this.viewDocument=new vs(l),this._viewWriter=new Xc(this.viewDocument),this.upcastDispatcher.on("text",(m,b,M)=>{if(M.schema.checkChild(b.modelCursor,"$text")&&M.consumable.consume(b.viewItem)){const S=M.writer.createText(b.viewItem.data);M.writer.insert(S,b.modelCursor),b.modelRange=zi._createFromPositionAndShift(b.modelCursor,S.offsetSize),b.modelCursor=b.modelRange.end}},{priority:"lowest"}),this.upcastDispatcher.on("element",(m,b,M)=>{if(!b.modelRange&&M.consumable.consume(b.viewItem,{name:!0})){const{modelRange:S,modelCursor:q}=M.convertChildren(b.viewItem,b.modelCursor);b.modelRange=S,b.modelCursor=q}},{priority:"lowest"}),this.upcastDispatcher.on("documentFragment",(m,b,M)=>{if(!b.modelRange&&M.consumable.consume(b.viewItem,{name:!0})){const{modelRange:S,modelCursor:q}=M.convertChildren(b.viewItem,b.modelCursor);b.modelRange=S,b.modelCursor=q}},{priority:"lowest"}),this.decorate("init"),this.decorate("set"),this.on("init",()=>{this.fire("ready")},{priority:"lowest"})}get(r){const{rootName:l="main",trim:m="empty"}=r||{};if(!this._checkIfRootsExists([l]))throw new Qn.b("datacontroller-get-non-existent-root: Attempting to get data from a non-existing root.",this);const b=this.model.document.getRoot(l);return"empty"!==m||this.model.hasContent(b,{ignoreWhitespaces:!0})?this.stringify(b):""}stringify(r){const l=this.toView(r);return this.processor.toData(l)}toView(r){const l=this.viewDocument,m=this._viewWriter;this.mapper.clearBindings();const b=zi._createIn(r),M=new Ll(l);if(this.mapper.bindElements(r,M),this.downcastDispatcher.convertInsert(b,m),!r.is("documentFragment")){const S=function(q){const B=[],at=q.root.document;if(!at)return[];const _t=zi._createIn(q);for(const Zt of at.model.markers){const _e=_t.getIntersection(Zt.getRange());_e&&B.push([Zt.name,_e])}return B}(r);for(const[q,B]of S)this.downcastDispatcher.convertMarkerAdd(q,B,m)}return M}init(r){if(this.model.document.version)throw new Qn.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 Qn.b("datacontroller-init-non-existent-root: Attempting to init data on a non-existing root.",this);return this.model.enqueueChange("transparent",m=>{for(const b of Object.keys(l)){const M=this.model.document.getRoot(b);m.insert(this.parse(l[b],M),M,0)}}),Promise.resolve()}set(r){let l={};if("string"==typeof r?l.main=r:l=r,!this._checkIfRootsExists(Object.keys(l)))throw new Qn.b("datacontroller-set-non-existent-root: Attempting to set data on a non-existing root.",this);this.model.enqueueChange("transparent",m=>{m.setSelection(null),m.removeSelectionAttribute(this.model.document.selection.getAttributeKeys());for(const b of Object.keys(l)){const M=this.model.document.getRoot(b);m.remove(m.createRangeIn(M)),m.insert(this.parse(l[b],M),M,0)}})}parse(r,l="$root"){const m=this.processor.toView(r);return this.toModel(m,l)}toModel(r,l="$root"){return this.model.change(m=>this.upcastDispatcher.convert(r,m,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}}io(Lp,kt);class qs{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 m=this._downcast.includes(l);if(!this._upcast.includes(l)&&!m)throw new Qn.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:m})}for(r){if(!this._helpers.has(r))throw new Qn.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:m}of Wt(r))this.for("upcast").elementToElement({model:l,view:m,converterPriority:r.converterPriority})}attributeToElement(r){this.for("downcast").attributeToElement(r);for(const{model:l,view:m}of Wt(r))this.for("upcast").elementToAttribute({view:m,model:l,converterPriority:r.converterPriority})}attributeToAttribute(r){this.for("downcast").attributeToAttribute(r);for(const{model:l,view:m}of Wt(r))this.for("upcast").attributeToAttribute({view:m,model:l})}_createConversionHelpers({name:r,dispatchers:l,isDowncast:m}){if(this._helpers.has(r))throw new Qn.b("conversion-group-exists: Trying to register a group name that has already been registered.",this);const b=m?new Ps(l):new gf(l);this._helpers.set(r,b)}}function*Wt(d){if(d.model.values)for(const r of d.model.values){const l={key:d.model.key,value:r},m=d.view[r],b=d.upcastAlso?d.upcastAlso[r]:void 0;yield*zh(l,m,b)}else yield*zh(d.model,d.view,d.upcastAlso)}function*zh(d,r,l){if(yield{model:d,view:r},l){l=Array.isArray(l)?l:[l];for(const m of l)yield{model:d,view:m}}}class hm{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 Nu{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 Iu{constructor(r){this.markers=new Map,this._children=new xr,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 m of r)l=l.getChild(l.offsetToIndex(m));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 m of r)l.push(m.name?Ra.fromJSON(m):Qi.fromJSON(m));return new Iu(l)}_appendChild(r){this._insertChild(this.childCount,r)}_insertChild(r,l){const m="string"==typeof(b=l)?[new Qi(b)]:(Ba(b)||(b=[b]),Array.from(b).map(M=>"string"==typeof M?new Qi(M):M instanceof ga?new Qi(M.data,M.getAttributes()):M));var b;for(const b of m)null!==b.parent&&b._remove(),b.parent=this;this._children._insertNodes(r,m)}_removeChildren(r,l=1){const m=this._children._removeNodes(r,l);for(const b of m)b.parent=null;return m}}function l2(d,r){const l=(r=d_(r)).reduce((M,S)=>M+S.offsetSize,0),m=d.parent;ks(d);const b=d.index;return m._insertChild(b,r),o1(m,b+r.length),o1(m,b),new zi(d,d.getShiftedBy(l))}function u2(d){if(!d.isFlat)throw new Qn.b("operation-utils-remove-range-not-flat: Trying to remove a range which starts and ends in different element.",this);const r=d.start.parent;ks(d.start),ks(d.end);const l=r._removeChildren(d.start.index,d.end.index-d.start.index);return o1(r,d.start.index),l}function Ep(d,r){if(!d.isFlat)throw new Qn.b("operation-utils-move-range-not-flat: Trying to move a range which starts and ends in different element.",this);const l=u2(d);return l2(r=r._getTransformedByDeletion(d.start,d.end.offset-d.start.offset),l)}function d_(d){const r=[];d instanceof Array||(d=[d]);for(let l=0;lr.maxOffset)throw new Qn.b("move-operation-nodes-do-not-exist: The nodes which should be moved do not exist.",this);if(r===l&&m=m&&this.targetPosition.path[M]m._clone(!0))),l=new ka(this.position,r,this.baseVersion);return l.shouldReceiveAttributes=this.shouldReceiveAttributes,l}getReversed(){const l=new po(this.position.root.document.graveyard,[0]);return new ns(this.position,this.nodes.maxOffset,l,this.baseVersion+1)}_validate(){const r=this.position.parent;if(!r||r.maxOffsetl._clone(!0))),l2(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 m=[];for(const M of r.nodes)m.push(M.name?Ra.fromJSON(M):Qi.fromJSON(M));const b=new ka(po.fromJSON(r.position,l),m,r.baseVersion);return b.shouldReceiveAttributes=r.shouldReceiveAttributes,b}}class Sr extends Nu{constructor(r,l,m,b,M,S){super(S),this.name=r,this.oldRange=l?l.clone():null,this.newRange=m?m.clone():null,this.affectsData=M,this._markers=b}get type(){return"marker"}clone(){return new Sr(this.name,this.oldRange,this.newRange,this._markers,this.affectsData,this.baseVersion)}getReversed(){return new Sr(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 Sr(r.name,r.oldRange?zi.fromJSON(r.oldRange,l):null,r.newRange?zi.fromJSON(r.newRange,l):null,l.model.markers,r.affectsData,r.baseVersion)}}class Hr extends Nu{constructor(r,l,m,b){super(b),this.position=r,this.position.stickiness="toNext",this.oldName=l,this.newName=m}get type(){return"rename"}clone(){return new Hr(this.position.clone(),this.oldName,this.newName,this.baseVersion)}getReversed(){return new Hr(this.position.clone(),this.newName,this.oldName,this.baseVersion+1)}_validate(){const r=this.position.nodeAfter;if(!(r instanceof Ra))throw new Qn.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 Qn.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 Hr(po.fromJSON(r.position,l),r.oldName,r.newName,r.baseVersion)}}class bs extends Nu{constructor(r,l,m,b,M){super(M),this.root=r,this.key=l,this.oldValue=m,this.newValue=b}get type(){return null===this.oldValue?"addRootAttribute":null===this.newValue?"removeRootAttribute":"changeRootAttribute"}clone(){return new bs(this.root,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new bs(this.root,this.key,this.newValue,this.oldValue,this.baseVersion+1)}_validate(){if(this.root!=this.root.root||this.root.is("documentFragment"))throw new Qn.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 Qn.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 Qn.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 Qn.b("rootattribute-operation-fromjson-no-root: Cannot create RootAttributeOperation. Root with specified name does not exist.",this,{rootName:r.root});return new bs(l.getRoot(r.root),r.key,r.oldValue,r.newValue,r.baseVersion)}}class ya extends Nu{constructor(r,l,m,b,M){super(M),this.sourcePosition=r.clone(),this.sourcePosition.stickiness="toPrevious",this.howMany=l,this.targetPosition=m.clone(),this.targetPosition.stickiness="toNext",this.graveyardPosition=b.clone()}get type(){return"merge"}get deletionPosition(){return new po(this.sourcePosition.root,this.sourcePosition.path.slice(0,-1))}get movedRange(){const r=this.sourcePosition.getShiftedBy(Number.POSITIVE_INFINITY);return new zi(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),m=new po(this.sourcePosition.root,l)._getTransformedByMergeOperation(this),b=new Qr(r,this.howMany,this.graveyardPosition,this.baseVersion+1);return b.insertionPosition=m,b}_validate(){const r=this.sourcePosition.parent,l=this.targetPosition.parent;if(!r.parent)throw new Qn.b("merge-operation-source-position-invalid: Merge source position is invalid.",this);if(!l.parent)throw new Qn.b("merge-operation-target-position-invalid: Merge target position is invalid.",this);if(this.howMany!=r.maxOffset)throw new Qn.b("merge-operation-how-many-invalid: Merge operation specifies wrong number of nodes to move.",this)}_execute(){const r=this.sourcePosition.parent;Ep(zi._createIn(r),this.targetPosition),Ep(zi._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 m=po.fromJSON(r.sourcePosition,l),b=po.fromJSON(r.targetPosition,l),M=po.fromJSON(r.graveyardPosition,l);return new this(m,r.howMany,b,M,r.baseVersion)}}class Qr extends Nu{constructor(r,l,m,b){super(b),this.splitPosition=r.clone(),this.splitPosition.stickiness="toNext",this.howMany=l,this.insertionPosition=Qr.getInsertionPosition(r),this.insertionPosition.stickiness="toNone",this.graveyardPosition=m?m.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 po(this.insertionPosition.root,r)}get movedRange(){const r=this.splitPosition.getShiftedBy(Number.POSITIVE_INFINITY);return new zi(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 po(this.splitPosition.root.document.graveyard,[0]);return new ya(this.moveTargetPosition,this.howMany,this.splitPosition,l,this.baseVersion+1)}_validate(){const r=this.splitPosition.parent;if(!r||r.maxOffset{for(const b of m.getAttributeKeys())this.removeAttribute(b,m)};if(r instanceof zi)for(const m of r.getItems())l(m);else l(r)}move(r,l,m){if(this._assertWriterUsedCorrectly(),!(r instanceof zi))throw new Qn.b("writer-move-invalid-range: Invalid range to move.",this);if(!r.isFlat)throw new Qn.b("writer-move-range-not-flat: Range to move is not flat.",this);const b=po._createAt(l,m);if(b.isEqual(r.start))return;if(this._addOperationForAffectedMarkers("move",r),!Pd(r.root,b.root))throw new Qn.b("writer-move-different-document: Range is going to be moved between different documents.",this);const S=new ns(r.start,r.end.offset-r.start.offset,b,r.root.document?r.root.document.version:null);this.batch.addOperation(S),this.model.applyOperation(S)}remove(r){this._assertWriterUsedCorrectly();const l=(r instanceof zi?r:zi._createOn(r)).getMinimalFlatRanges().reverse();for(const m of l)this._addOperationForAffectedMarkers("move",m),sp(m.start,m.end.offset-m.start.offset,this.batch,this.model)}merge(r){this._assertWriterUsedCorrectly();const l=r.nodeBefore,m=r.nodeAfter;if(this._addOperationForAffectedMarkers("merge",r),!(l instanceof Ra))throw new Qn.b("writer-merge-no-element-before: Node before merge position must be an element.",this);if(!(m instanceof Ra))throw new Qn.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,m){return this.model.createPositionFromPath(r,l,m)}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,m){return this.model.createSelection(r,l,m)}_mergeDetached(r){const l=r.nodeBefore,m=r.nodeAfter;this.move(zi._createIn(m),po._createAt(l,"end")),this.remove(m)}_merge(r){const l=po._createAt(r.nodeBefore,"end"),m=po._createAt(r.nodeAfter,0),M=new po(r.root.document.graveyard,[0]),q=new ya(m,r.nodeAfter.maxOffset,l,M,r.root.document.version);this.batch.addOperation(q),this.model.applyOperation(q)}rename(r,l){if(this._assertWriterUsedCorrectly(),!(r instanceof Ra))throw new Qn.b("writer-rename-not-element-instance: Trying to rename an object which is not an instance of Element.",this);const m=r.root.document?r.root.document.version:null,b=new Hr(po._createBefore(r),r.name,l,m);this.batch.addOperation(b),this.model.applyOperation(b)}split(r,l){this._assertWriterUsedCorrectly();let m,b,M=r.parent;if(!M.parent)throw new Qn.b("writer-split-element-no-parent: Element with no parent can not be split.",this);if(l||(l=M.parent),!r.parent.getAncestors({includeSelf:!0}).includes(l))throw new Qn.b("writer-split-invalid-limit-element: Limit element is not a position ancestor.",this);do{const B=new Qr(r,M.maxOffset-r.offset,null,M.root.document?M.root.document.version:null);this.batch.addOperation(B),this.model.applyOperation(B),m||b||(m=M,b=r.parent.nextSibling),M=(r=this.createPositionAfter(r.parent)).parent}while(M!==l);return{position:r,range:new zi(po._createAt(m,"end"),po._createAt(b,0))}}wrap(r,l){if(this._assertWriterUsedCorrectly(),!r.isFlat)throw new Qn.b("writer-wrap-range-not-flat: Range to wrap is not flat.",this);const m=l instanceof Ra?l:new Ra(l);if(m.childCount>0)throw new Qn.b("writer-wrap-element-not-empty: Element to wrap with is not empty.",this);if(null!==m.parent)throw new Qn.b("writer-wrap-element-attached: Element to wrap with is already attached to tree model.",this);this.insert(m,r.start);const b=new zi(r.start.getShiftedBy(1),r.end.getShiftedBy(1));this.move(b,po._createAt(m,0))}unwrap(r){if(this._assertWriterUsedCorrectly(),null===r.parent)throw new Qn.b("writer-unwrap-element-no-parent: Trying to unwrap an element which has no parent.",this);this.move(zi._createIn(r),this.createPositionAfter(r)),this.remove(r)}addMarker(r,l){if(this._assertWriterUsedCorrectly(),!l||"boolean"!=typeof l.usingOperation)throw new Qn.b("writer-addMarker-no-usingOperation: The options.usingOperation parameter is required when adding a new marker.",this);const m=l.usingOperation,b=l.range,M=void 0!==l.affectsData&&l.affectsData;if(this.model.markers.has(r))throw new Qn.b("writer-addMarker-marker-exists: Marker with provided name already exists.",this);if(!b)throw new Qn.b("writer-addMarker-no-range: Range parameter is required when adding a new marker.",this);return m?(Nl(this,r,null,b,M),this.model.markers.get(r)):this.model.markers._set(r,b,m,M)}updateMarker(r,l){this._assertWriterUsedCorrectly();const m="string"==typeof r?r:r.name,b=this.model.markers.get(m);if(!b)throw new Qn.b("writer-updateMarker-marker-not-exists: Marker with provided name does not exists.",this);if(!l)return void this.model.markers._refresh(b);const M="boolean"==typeof l.usingOperation,S="boolean"==typeof l.affectsData,q=S?l.affectsData:b.affectsData;if(!M&&!l.range&&!S)throw new Qn.b("writer-updateMarker-wrong-options: One of the options is required - provide range, usingOperations or affectsData.",this);const B=b.getRange(),at=l.range?l.range:B;M&&l.usingOperation!==b.managedUsingOperations?l.usingOperation?Nl(this,m,null,at,q):(Nl(this,m,B,null,q),this.model.markers._set(m,at,void 0,q)):b.managedUsingOperations?Nl(this,m,B,at,q):this.model.markers._set(m,at,void 0,q)}removeMarker(r){this._assertWriterUsedCorrectly();const l="string"==typeof r?r:r.name;if(!this.model.markers.has(l))throw new Qn.b("writer-removeMarker-no-marker: Trying to remove marker which does not exist.",this);const m=this.model.markers.get(l);m.managedUsingOperations?Nl(this,l,m.getRange(),null,m.affectsData):this.model.markers._remove(l)}setSelection(r,l,m){this._assertWriterUsedCorrectly(),this.model.document.selection._setTo(r,l,m)}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[m,b]of Wa(r))this._setSelectionAttribute(m,b)}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 m=this.model.document.selection;if(m.isCollapsed&&m.anchor.parent.isEmpty){const b=Fu._getStoreAttributeKey(r);this.setAttribute(b,l,m.anchor.parent)}m._setAttribute(r,l)}_removeSelectionAttribute(r){const l=this.model.document.selection;if(l.isCollapsed&&l.anchor.parent.isEmpty){const m=Fu._getStoreAttributeKey(r);this.removeAttribute(m,l.anchor.parent)}l._removeAttribute(r)}_assertWriterUsedCorrectly(){if(this.model._currentWriter!==this)throw new Qn.b("writer-incorrect-use: Trying to use a writer outside the change() block.",this)}_addOperationForAffectedMarkers(r,l){for(const m of this.model.markers){if(!m.managedUsingOperations)continue;const b=m.getRange();let M=!1;if("move"===r)M=l.containsPosition(b.start)||l.start.isEqual(b.start)||l.containsPosition(b.end)||l.end.isEqual(b.end);else{const q=l.nodeAfter,at=b.end.parent==q&&0==b.end.offset,_t=b.end.nodeAfter==q,Zt=b.start.nodeAfter==q;M=b.start.parent==l.nodeBefore&&b.start.isAtEnd||at||_t||Zt}M&&this.updateMarker(m.name,{range:b})}}}function Fp(d,r,l,m){const b=d.model,M=b.document;let S,q,B,at=m.start;for(const Zt of m.getWalker({shallow:!0}))B=Zt.item.getAttribute(r),S&&q!=B&&(q!=l&&_t(),at=S),S=Zt.nextPosition,q=B;function _t(){const Zt=new zi(at,S),Be=new mc(Zt,r,q,l,Zt.root.document?M.version:null);d.batch.addOperation(Be),b.applyOperation(Be)}S instanceof po&&S!=at&&q!=l&&_t()}function p_(d,r,l,m){const b=d.model,M=b.document,S=m.getAttribute(r);let q,B;S!=l&&(m.root===m?B=new bs(m,r,S,l,m.document?M.version:null):(q=new zi(po._createBefore(m),d.createPositionAfter(m)),B=new mc(q,r,S,l,q.root.document?M.version:null)),d.batch.addOperation(B),b.applyOperation(B))}function Nl(d,r,l,m,b){const M=d.model,q=new Sr(r,l,m,M.markers,b,M.document.version);d.batch.addOperation(q),M.applyOperation(q)}function sp(d,r,l,m){let b;if(d.root.document){const M=m.document,S=new po(M.graveyard,[0]);b=new ns(d,r,S,M.version)}else b=new gm(d,r);l.addOperation(b),m.applyOperation(b)}function Pd(d,r){return d===r||d instanceof _c&&r instanceof _c}class va{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=zi._createOn(r);for(const m of this._markerCollection.getMarkersIntersectingRange(l)){const b=m.getRange();this.bufferMarkerChange(m.name,b,b,m.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),m=this._isInInsertedElement(r.targetPosition.parent);l||this._markRemove(r.sourcePosition.parent,r.sourcePosition.offset,r.howMany),m||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=zi._createFromPositionAndShift(r.position,1);for(const m of this._markerCollection.getMarkersIntersectingRange(l)){const b=m.getRange();this.bufferMarkerChange(m.name,b,b,m.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 b=r.targetPosition.parent;this._isInInsertedElement(b)||this._markInsert(b,r.targetPosition.offset,l.maxOffset);break}}this._cachedChanges=null}bufferMarkerChange(r,l,m,b){const M=this._changedMarkers.get(r);M?(M.newRange=m,M.affectsData=b,null==M.oldRange&&null==M.newRange&&this._changedMarkers.delete(r)):this._changedMarkers.set(r,{oldRange:l,newRange:m,affectsData:b})}getMarkersToRemove(){const r=[];for(const[l,m]of this._changedMarkers)null!=m.oldRange&&r.push({name:l,range:m.oldRange});return r}getMarkersToAdd(){const r=[];for(const[l,m]of this._changedMarkers)null!=m.newRange&&r.push({name:l,range:m.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 m of this._changesInElement.keys()){const b=this._changesInElement.get(m).sort((_t,Zt)=>_t.offset===Zt.offset?_t.type!=Zt.type?"remove"==_t.type?-1:1:0:_t.offsetm.position.root!=b.position.root?m.position.root.rootNamem.offset){if(b>M){const S={type:"attribute",offset:M,howMany:b-M,count:this._changeCount++};this._handleChange(S,l),l.push(S)}r.nodesToHandle=m.offset-r.offset,r.howMany=r.nodesToHandle}else r.offset>=m.offset&&r.offsetM?(r.nodesToHandle=b-M,r.offset=M):r.nodesToHandle=0);if("remove"==m.type&&r.offsetm.offset){const S={type:"attribute",offset:m.offset,howMany:b-m.offset,count:this._changeCount++};this._handleChange(S,l),l.push(S),r.nodesToHandle=m.offset-r.offset,r.howMany=r.nodesToHandle}"attribute"==m.type&&(r.offset>=m.offset&&b<=M?(r.nodesToHandle=0,r.howMany=0,r.offset=0):r.offset<=m.offset&&b>=M&&(m.howMany=0))}}r.howMany=r.nodesToHandle,delete r.nodesToHandle}_getInsertDiff(r,l,m){return{type:"insert",position:po._createAt(r,l),name:m,length:1,changeCount:this._changeCount++}}_getRemoveDiff(r,l,m){return{type:"remove",position:po._createAt(r,l),name:m,length:1,changeCount:this._changeCount++}}_getAttributesDiff(r,l,m){const b=[];m=new Map(m);for(const[M,S]of l){const q=m.has(M)?m.get(M):null;q!==S&&b.push({type:"attribute",position:r.start,range:r.clone(),length:1,attributeKey:M,attributeOldValue:S,attributeNewValue:q,changeCount:this._changeCount++}),m.delete(M)}for(const[M,S]of m)b.push({type:"attribute",position:r.start,range:r.clone(),length:1,attributeKey:M,attributeOldValue:null,attributeNewValue:S,changeCount:this._changeCount++});return b}_isInInsertedElement(r){const l=r.parent;if(!l)return!1;const m=this._changesInElement.get(l),b=r.startOffset;if(m)for(const M of m)if("insert"==M.type&&b>=M.offset&&bm){for(let S=0;S{const b=m[0];if(b.isDocumentOperation&&b.baseVersion!==this.version)throw new Qn.b("model-document-applyOperation-wrong-version: Only operations with matching versions can be applied.",this,{operation:b})},{priority:"highest"}),this.listenTo(r,"applyOperation",(l,m)=>{const b=m[0];b.isDocumentOperation&&this.differ.bufferOperation(b)},{priority:"high"}),this.listenTo(r,"applyOperation",(l,m)=>{const b=m[0];b.isDocumentOperation&&(this.version++,this.history.addOperation(b))},{priority:"low"}),this.listenTo(this.selection,"change",()=>{this._hasSelectionChangedFromTheLastChangeBlock=!0}),this.listenTo(r.markers,"update",(l,m,b,M)=>{this.differ.bufferMarkerChange(m.name,b,M,m.affectsData),null===b&&m.on("change",(S,q)=>{this.differ.bufferMarkerChange(m.name,q,m.getRange(),m.affectsData)})})}get graveyard(){return this.getRoot("$graveyard")}createRoot(r="$root",l="main"){if(this.roots.get(l))throw new Qn.b("model-document-createRoot-name-exists: Root with specified name already exists.",this,{name:l});const m=new _c(this,r,l);return this.roots.add(m),m}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=Gi(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,m=l.schema,b=l.createPositionFromPath(r,[0]);return m.getNearestSelectionRange(b)||l.createRange(b)}_validateSelectionRange(r){return f_(r.start)&&f_(r.end)}_callPostFixers(r){let l=!1;do{for(const m of this._postFixers)if(this.selection.refresh(),l=m(r),l)break}while(l)}}function f_(d){const r=d.textNode;if(r){const l=r.data,m=d.offset-r.startOffset;return!qu(l,m)&&!d2(l,m)}return!0}io(ac,Za);class h_{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,m=!1,b=!1){const M=r instanceof g_?r.name:r;if(M.includes(","))throw new Qn.b('markercollection-incorrect-marker-name: Marker name cannot contain "," character.',this);const S=this._markers.get(M);if(S){const at=S.getRange();let _t=!1;return at.isEqual(l)||(S._attachLiveRange(Pp.fromRange(l)),_t=!0),m!=S.managedUsingOperations&&(S._managedUsingOperations=m,_t=!0),"boolean"==typeof b&&b!=S.affectsData&&(S._affectsData=b,_t=!0),_t&&this.fire("update:"+M,S,at,l),S}const q=Pp.fromRange(l),B=new g_(M,q,m,b);return this._markers.set(M,B),this.fire("update:"+M,B,null,l),B}_remove(r){const l=r instanceof g_?r.name:r,m=this._markers.get(l);return!!m&&(this._markers.delete(l),this.fire("update:"+l,m,m.getRange(),null),this._destroyMarker(m),!0)}_refresh(r){const l=r instanceof g_?r.name:r,m=this._markers.get(l);if(!m)throw new Qn.b("markercollection-refresh-marker-not-exists: Marker with provided name does not exists.",this);const b=m.getRange();this.fire("update:"+l,m,b,b,m.managedUsingOperations,m.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()}}io(h_,Za);class g_{constructor(r,l,m,b){this.name=r,this._liveRange=this._attachLiveRange(l),this._managedUsingOperations=m,this._affectsData=b}get managedUsingOperations(){if(!this._liveRange)throw new Qn.b("marker-destroyed: Cannot use a destroyed marker instance.",this);return this._managedUsingOperations}get affectsData(){if(!this._liveRange)throw new Qn.b("marker-destroyed: Cannot use a destroyed marker instance.",this);return this._affectsData}getStart(){if(!this._liveRange)throw new Qn.b("marker-destroyed: Cannot use a destroyed marker instance.",this);return this._liveRange.start.clone()}getEnd(){if(!this._liveRange)throw new Qn.b("marker-destroyed: Cannot use a destroyed marker instance.",this);return this._liveRange.end.clone()}getRange(){if(!this._liveRange)throw new Qn.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}}io(g_,Za);class fc extends Nu{get type(){return"noop"}clone(){return new fc(this.baseVersion)}getReversed(){return new fc(this.baseVersion+1)}_execute(){}static get className(){return"NoOperation"}}const tu={};tu[mc.className]=mc,tu[ka.className]=ka,tu[Sr.className]=Sr,tu[ns.className]=ns,tu[fc.className]=fc,tu[Nu.className]=Nu,tu[Hr.className]=Hr,tu[bs.className]=bs,tu[Qr.className]=Qr,tu[ya.className]=ya;class rc extends po{constructor(r,l,m="toNone"){if(super(r,l,m),!this.root.is("rootElement"))throw new Qn.b("model-liveposition-root-not-rootelement: LivePosition's root has to be an instance of RootElement.",r);Bh.call(this)}detach(){this.stopListening()}is(r){return"livePosition"===r||"model:livePosition"===r||"position"==r||"model:position"===r}toPosition(){return new po(this.root,this.path.slice(),this.stickiness)}static fromPosition(r,l){return new this(r.root,r.path.slice(),l||r.stickiness)}}function Bh(){this.listenTo(this.root.document.model,"applyOperation",(d,r)=>{const l=r[0];l.isDocumentOperation&&v_.call(this,l)},{priority:"low"})}function v_(d){const r=this.getTransformedByOperation(d);if(!this.isEqual(r)){const l=this.toPosition();this.path=r.path,this.root=r.root,this.fire("change",l)}}io(rc,Za);class bl{constructor(r,l,m){this.model=r,this.writer=l,this.position=m,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 m=0;m!0);if(d.schema.checkChild(r.nextPosition,"$text"))return r.nextPosition}}function vm(d,r){const m=po._createAt(d.root,r?"end":0);return r?new zi(d,m):new zi(m,d)}function k1(d,r,l){return' ,.?!:;"-()'.includes(d.charAt(r+(l?0:-1)))}function u0(d,r,l){return r===(l?d.endOffset:0)}function wf(d,r){const l=[];Array.from(d.getItems({direction:"backward"})).map(m=>r.createRangeOn(m)).filter(m=>(m.start.isAfter(d.start)||m.start.isEqual(d.start))&&(m.end.isBefore(d.end)||m.end.isEqual(d.end))).forEach(m=>{l.push(m.start.parent),r.remove(m)}),l.forEach(m=>{let b=m;for(;b.parent&&b.isEmpty;){const M=r.createRangeOn(b);b=b.parent,r.remove(M)}})}function S1(d,r){return d.isCollapsed?function(l,m){const b=l.start,M=m.getNearestSelectionRange(b);if(!M)return null;if(!M.isCollapsed)return M;const S=M.start;return b.isEqual(S)?null:new zi(S)}(d,r):function(l,m){const b=l.start,M=l.end,S=m.checkChild(b,"$text"),q=m.checkChild(M,"$text"),B=m.getLimitElement(b),at=m.getLimitElement(M);if(B===at){if(S&&q)return null;if(function(_e,Be,mn){const Mn=_e.nodeAfter&&!mn.isLimit(_e.nodeAfter)||mn.checkChild(_e,"$text"),In=Be.nodeBefore&&!mn.isLimit(Be.nodeBefore)||mn.checkChild(Be,"$text");return Mn||In}(b,M,m)){const _e=b.nodeAfter&&m.isObject(b.nodeAfter)?null:m.getNearestSelectionRange(b,"forward"),Be=M.nodeBefore&&m.isObject(M.nodeBefore)?null:m.getNearestSelectionRange(M,"backward");return new zi(_e?_e.start:b,Be?Be.start:M)}}const _t=B&&!B.is("rootElement"),Zt=at&&!at.is("rootElement");if(_t||Zt){const _e=b.nodeAfter&&M.nodeBefore&&b.nodeAfter.parent===M.nodeBefore.parent,Be=_t&&(!_e||!Jh(b.nodeAfter,m)),mn=Zt&&(!_e||!Jh(M.nodeBefore,m));let Mn=b,In=M;return Be&&(Mn=po._createBefore(Mf(B,m))),mn&&(In=po._createAfter(Mf(at,m))),new zi(Mn,In)}return null}(d,r)}function Mf(d,r){let l=d,m=l;for(;r.isLimit(m)&&m.parent;)l=m,m=m.parent;return l}function Jh(d,r){return d&&r.isObject(d)}class p2{constructor(){this.markers=new h_,this.document=new ac(this),this.schema=new Cf,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 Js(d){d.document.registerPostFixer(r=>function(l,m){const b=m.document.selection,M=m.schema,S=[];let q=!1;for(const B of b.getRanges()){const at=S1(B,M);at&&!at.isEqual(B)?(S.push(at),q=!0):S.push(B)}q&&l.setSelection(function(B){const at=[];at.push(B.shift());for(const _t of B){const Zt=at.pop();if(_t.isIntersecting(Zt)){const _e=Zt.start.isAfter(_t.start)?_t.start:Zt.start,Be=Zt.end.isAfter(_t.end)?Zt.end:_t.end,mn=new zi(_e,Be);at.push(mn)}else at.push(Zt),at.push(_t)}return at}(S),{backward:b.isBackward})}(r,d))}(this)}change(r){try{return 0===this._pendingChanges.length?(this._pendingChanges.push({batch:new hm,callback:r}),this._runPendingChanges()[0]):r(this._currentWriter)}catch(l){Qn.b.rethrowUnexpectedError(l,this)}}enqueueChange(r,l){try{"string"==typeof r?r=new hm(r):"function"==typeof r&&(l=r,r=new hm),this._pendingChanges.push({batch:r,callback:l}),1==this._pendingChanges.length&&this._runPendingChanges()}catch(m){Qn.b.rethrowUnexpectedError(m,this)}}applyOperation(r){r._execute()}insertContent(r,l,m){return M=r,S=l,q=m,(b=this).change(B=>{let at;at=S?S instanceof D1||S instanceof Fu?S:B.createSelection(S,q):b.document.selection,at.isCollapsed||b.deleteContent(at,{doNotAutoparagraph:!0});const _t=new bl(b,B,at.anchor);let Zt;Zt=M.is("documentFragment")?M.getChildren():[M],_t.handleNodes(Zt,{isFirst:!0,isLast:!0});const _e=_t.getSelectionRange();_e&&(at instanceof Fu?B.setSelection(_e):at.setTo(_e));const Be=_t.getAffectedRange()||b.createRange(at.anchor);return _t.destroy(),Be});var b,M,S,q}deleteContent(r,l){!function Cl(d,r,l={}){if(r.isCollapsed)return;const m=r.getFirstRange();if("$graveyard"==m.root.rootName)return;const b=d.schema;d.change(M=>{if(!l.doNotResetEntireContent&&function(B,at){const _t=B.getLimitElement(at);if(!at.containsEntireContent(_t))return!1;const Zt=at.getFirstRange();return Zt.start.parent!=Zt.end.parent&&B.checkChild(_t,"paragraph")}(b,r))return void function(B,at){const _t=B.model.schema.getLimitElement(at);B.remove(B.createRangeIn(_t)),Uf(B,B.createPositionAt(_t,0),at)}(M,r);const[S,q]=function(B){const at=B.root.document.model,_t=B.start;let Zt=B.end;if(at.hasContent(B,{ignoreMarkers:!0})){const _e=function(Be){const mn=Be.parent,Mn=mn.root.document.model.schema,In=mn.getAncestors({parentFirst:!0,includeSelf:!0});for(const Gn of In){if(Mn.isLimit(Gn))return null;if(Mn.isBlock(Gn))return Gn}}(Zt);if(_e&&Zt.isTouching(at.createPositionAt(_e,0))){const Be=at.createSelection(B);at.modifySelection(Be,{direction:"backward"}),Zt=Be.getLastPosition()}}return[rc.fromPosition(_t,"toPrevious"),rc.fromPosition(Zt,"toNext")]}(m);m.start.isTouching(m.end)||M.remove(m),l.leaveUnmerged||(function(B,at,_t){const Zt=B.model;if(!cp(B.model.schema,at,_t))return;const[_e,Be]=function(mn,Mn){const In=mn.getAncestors(),Gn=Mn.getAncestors();let Fi=0;for(;In[Fi]&&In[Fi]==Gn[Fi];)Fi++;return[In[Fi],Gn[Fi]]}(at,_t);!Zt.hasContent(_e,{ignoreMarkers:!0})&&Zt.hasContent(Be,{ignoreMarkers:!0})?function mn(Mn,In,Gn,Fi){const Ji=In.parent,Do=Gn.parent;if(Ji!=Fi&&Do!=Fi){for(In=Mn.createPositionAfter(Ji),(Gn=Mn.createPositionBefore(Do)).isEqual(In)||Mn.insert(Ji,Gn);In.parent.isEmpty;){const ba=In.parent;In=Mn.createPositionBefore(ba),Mn.remove(ba)}Gn=Mn.createPositionBefore(Do),function(ba,Yc){const cs=Yc.nodeBefore,ol=Yc.nodeAfter;cs.name!=ol.name&&ba.rename(cs,ol.name),ba.clearAttributes(cs),ba.setAttributes(Object.fromEntries(ol.getAttributes()),cs),ba.merge(Yc)}(Mn,Gn),cp(Mn.model.schema,In,Gn)&&mn(Mn,In,Gn,Fi)}}(B,at,_t,_e.parent):function mn(Mn,In,Gn,Fi){const Ji=In.parent,Do=Gn.parent;if(Ji!=Fi&&Do!=Fi){for(In=Mn.createPositionAfter(Ji),(Gn=Mn.createPositionBefore(Do)).isEqual(In)||Mn.insert(Do,In),Mn.merge(In);Gn.parent.isEmpty;){const ba=Gn.parent;Gn=Mn.createPositionBefore(ba),Mn.remove(ba)}!cp(Mn.model.schema,In,Gn)||mn(Mn,In,Gn,Fi)}}(B,at,_t,_e.parent)}(M,S,q),b.removeDisallowedAttributes(S.parent.getChildren(),M)),a1(M,r,S),!l.doNotAutoparagraph&&function(B,at){const _t=B.checkChild(at,"$text"),Zt=B.checkChild(at,"paragraph");return!_t&&Zt}(b,S)&&Uf(M,S,r),S.detach(),q.detach()})}(this,r,l)}modifySelection(r,l){!function(m,b,M={}){const S=m.schema,q="backward"!=M.direction,B=M.unit?M.unit:"character",_t=new el({boundaries:vm(b.focus,q),singleCharacters:!0,direction:q?"forward":"backward"}),Zt={walker:_t,schema:S,isForward:q,unit:B};let _e;for(;_e=_t.next();){if(_e.done)return;const Be=L3(Zt,_e.value);if(Be)return void(b instanceof Fu?m.change(mn=>{mn.setSelectionFocus(Be)}):b.setFocus(Be))}}(this,r,l)}getSelectedContent(r){return function(l,m){return l.change(b=>{const M=b.createDocumentFragment(),S=m.getFirstRange();if(!S||S.isCollapsed)return M;const q=S.start.root,B=S.start.getCommonPath(S.end),at=q.getNodeByPath(B);let _t;_t=S.start.parent==S.end.parent?S:b.createRange(b.createPositionAt(at,S.start.path[B.length]),b.createPositionAt(at,S.end.path[B.length]+1));const Zt=_t.end.offset-_t.start.offset;for(const _e of _t.getItems({shallow:!0}))_e.is("$textProxy")?b.appendText(_e.data,_e.getAttributes(),M):b.append(b.cloneElement(_e,!0),M);if(_t!=S){const _e=S._getTransformedByMove(_t.start,b.createPositionAt(M,0),Zt)[0],Be=b.createRange(b.createPositionAt(M,0),_e.start);wf(b.createRange(_e.end,b.createPositionAt(M,"end")),b),wf(Be,b)}return M})}(this,r)}hasContent(r,l={}){const m=r instanceof Ra?zi._createIn(r):r;if(m.isCollapsed)return!1;const{ignoreWhitespaces:b=!1,ignoreMarkers:M=!1}=l;if(!M)for(const S of this.markers.getMarkersIntersectingRange(m))if(S.affectsData)return!0;for(const S of m.getItems())if(S.is("$textProxy")){if(!b||-1!==S.data.search(/\S/))return!0}else if(this.schema.isObject(S))return!0;return!1}createPositionFromPath(r,l,m){return new po(r,l,m)}createPositionAt(r,l){return po._createAt(r,l)}createPositionAfter(r){return po._createAfter(r)}createPositionBefore(r){return po._createBefore(r)}createRange(r,l){return new zi(r,l)}createRangeIn(r){return zi._createIn(r)}createRangeOn(r){return zi._createOn(r)}createSelection(r,l,m){return new D1(r,l,m)}createBatch(r){return new hm(r)}createOperationFromJSON(r){return class{static fromJSON(l,m){return tu[l.__className].fromJSON(l,m)}}.fromJSON(r,this.document)}destroy(){this.document.destroy(),this.stopListening()}_runPendingChanges(){const r=[];for(this.fire("_beforeChanges");this._pendingChanges.length;){this._currentWriter=new sd(this,this._pendingChanges[0].batch);const m=this._pendingChanges[0].callback(this._currentWriter);r.push(m),this.document._handleChangeBlock(this._currentWriter),this._pendingChanges.shift(),this._currentWriter=null}return this.fire("_afterChanges"),r}}io(p2,kt);class Il{constructor(){this._listener=Object.create(Ue)}listenTo(r){this._listener.listenTo(r,"keydown",(l,m)=>{this._listener.fire("_keydown:"+hr(m),m)})}set(r,l,m={}){const b=ep(r);this._listener.listenTo(this._listener,"_keydown:"+b,(S,q)=>{l(q,()=>{q.preventDefault(),q.stopPropagation(),S.stop()}),S.return=!0},{priority:m.priority})}press(r){return!!this._listener.fire("_keydown:"+hr(r),r)}destroy(){this._listener.stopListening()}}class xm extends Il{constructor(r){super(),this.editor=r}set(r,l,m={}){if("string"==typeof l){const b=l;l=(M,S)=>{this.editor.execute(b),S()}}super.set(r,l,m)}}class Ip{constructor(r={}){this._context=r.context||new wd({language:r.language}),this._context._addEditor(this,!r.context);const l=Array.from(this.constructor.builtinPlugins||[]);this.config=new $l(r,this.constructor.defaultConfig),this.config.define("plugins",l),this.config.define(this._context._getEditorConfig()),this.plugins=new sr(this,l,this._context.plugins),this.locale=this._context.locale,this.t=this.locale.t,this.commands=new Hh,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 p2;const m=new ml;this.data=new Lp(this.model,m),this.editing=new bf(this.model,m),this.editing.view.document.bind("isReadOnly").to(this),this.conversion=new qs([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 xm(this),this.keystrokes.listenTo(this.editing.view.document)}initPlugins(){const r=this.config,l=r.get("plugins"),m=r.get("removePlugins")||[],b=r.get("extraPlugins")||[];return this.plugins.init(l.concat(b),m)}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){Qn.b.rethrowUnexpectedError(l,this)}}}io(Ip,kt);var Zf={setData(d){this.data.set(d)},getData(d){return this.data.get(d)}},x_={updateSourceElement(){if(!this.sourceElement)throw new Qn.b("editor-missing-sourceelement: Cannot update the source element of a detached editor.",this);var d,r;d=this.sourceElement,r=this.data.get(),d instanceof HTMLTextAreaElement&&(d.value=r),d.innerHTML=r}};class Gh{getHtml(r){const l=document.implementation.createHTMLDocument("").createElement("div");return l.appendChild(r),l.innerHTML}}class m2{constructor(r){this._domParser=new DOMParser,this._domConverter=new ee(r,{blockFillerMode:"nbsp"}),this._htmlWriter=new Gh}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"),m=l.createDocumentFragment(),b=l.body.childNodes;for(;b.length>0;)m.appendChild(b[0]);return m}}class Ru{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 Qn.b("componentfactory-item-exists: The item already exists in the component factory.",this,{name:r});this._components.set(cd(r),{callback:l,originalName:r})}create(r){if(!this.has(r))throw new Qn.b("componentfactory-item-missing: The required component is not registered in the factory.",this,{name:r});return this._components.get(cd(r)).callback(this.editor.locale)}has(r){return this._components.has(cd(r))}}function cd(d){return String(d).toLowerCase()}class Ac{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 Qn.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)}}io(Ac,Ue),io(Ac,kt);class fu{constructor(r){this.editor=r,this.componentFactory=new Ru(r),this.focusTracker=new Ac,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}}io(fu,Za),p(13);const kd=new WeakMap;function Df(d){const{view:r,element:l,text:m,isDirectHost:b=!0}=d,M=r.document;kd.has(M)||(kd.set(M,new Map),M.registerPostFixer(S=>_2(M,S))),kd.get(M).set(l,{text:m,isDirectHost:b}),r.change(S=>_2(M,S))}function _2(d,r){const l=kd.get(d);let m=!1;for(const[b,M]of l)i6(r,b,M)&&(m=!0);return m}function i6(d,r,l){const{text:m,isDirectHost:b}=l,M=b?r:function(q){if(1===q.childCount){const B=q.getChild(0);if(B.is("element")&&!B.is("uiElement"))return B}return null}(r);let S=!1;return!!M&&(l.hostElement=M,M.getAttribute("data-placeholder")!==m&&(d.setAttribute("data-placeholder",m,M),S=!0),function(q){if(!q.isAttached())return!1;const B=!Array.from(q.getChildren()).some(Zt=>!Zt.is("uiElement")),at=q.document;if(!at.isFocused&&B)return!0;const _t=at.selection.anchor;return!(!B||!_t||_t.parent===q)}(M)?(q=d,!(B=M).hasClass("ck-placeholder")&&(q.addClass("ck-placeholder",B),!0)&&(S=!0)):function Pf(d,r){return!!r.hasClass("ck-placeholder")&&(d.removeClass("ck-placeholder",r),!0)}(d,M)&&(S=!0),S);var q,B}class E3{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 Qh extends fu{constructor(r,l){var m;super(r),this.view=l,this._toolbarConfig=(m=r.config.get("toolbar"),Array.isArray(m)?{items:m}:m?Object.assign({items:[]},m):{items:[]}),this._elementReplacer=new E3}get element(){return this.view.element}init(r){const m=this.view,b=this.editor.editing.view,M=m.editable,S=b.document.getRoot();M.name=S.rootName,m.render();const q=M.element;this.setEditableElement(M.name,q),this.focusTracker.add(q),m.editable.bind("isFocused").to(this.focusTracker),b.attachDomRoot(q),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,m=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:b,originKeystrokeHandler:M,originFocusTracker:S,toolbar:q,beforeFocus:B,afterBlur:at}){S.add(q.element),M.set("Alt+F10",(_t,Zt)=>{S.isFocused&&!q.focusTracker.isFocused&&(B&&B(),q.focus(),Zt())}),q.keystrokes.set("Esc",(_t,Zt)=>{q.focusTracker.isFocused&&(b.focus(),at&&at(),Zt())})}({origin:m,originFocusTracker:this.focusTracker,originKeystrokeHandler:r.keystrokes,toolbar:l.toolbar})}_initPlaceholder(){const r=this.editor,l=r.editing.view,m=l.document.getRoot(),b=r.sourceElement,M=r.config.get("placeholder")||b&&"textarea"===b.tagName.toLowerCase()&&b.getAttribute("placeholder");M&&Df({view:l,element:m,text:M,isDirectHost:!1})}}class O1 extends Nr{constructor(r=[]){super(r,{idProperty:"viewUid"}),this.on("add",(l,m,b)=>{this._renderViewIntoCollectionParent(m,b)}),this.on("remove",(l,m)=>{m.element&&this._parentElement&&m.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 Qn.b("ui-viewcollection-delegate-wrong-events: All event names must be strings.",this);return{to:l=>{for(const m of this)for(const b of r)m.delegate(b).to(l);this.on("add",(m,b)=>{for(const M of r)b.delegate(M).to(l)}),this.on("remove",(m,b)=>{for(const M of r)b.stopDelegating(M,l)})}}}_renderViewIntoCollectionParent(r,l){r.isRendered||r.render(),r.element&&this._parentElement&&this._parentElement.insertBefore(r.element,this._parentElement.children[l])}}class yl{constructor(r){Object.assign(this,kf(g2(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 Qn.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 m of l.children)y_(m)?yield m:T_(m)&&(yield*r(m))}(this)}static bind(r,l){return{to:(m,b)=>new jh({eventNameOrFunction:m,attribute:m,observable:r,emitter:l,callback:b}),if:(m,b,M)=>new bm({observable:r,emitter:l,attribute:m,valueIfTrue:b,callback:M})}}static extend(r,l){if(r._isRendered)throw new Qn.b("template-extend-render: Attempting to extend a template which has already been rendered.",[this,r]);!function m(b,M){if(M.attributes&&(b.attributes||(b.attributes={}),$h(b.attributes,M.attributes)),M.eventListeners&&(b.eventListeners||(b.eventListeners={}),$h(b.eventListeners,M.eventListeners)),M.text&&b.text.push(...M.text),M.children&&M.children.length){if(b.children.length!=M.children.length)throw new Qn.b("ui-template-extend-children-mismatch: The number of children in extended definition does not match.",b);let S=0;for(const q of M.children)m(b.children[S++],q)}}(r,kf(g2(l)))}_renderNode(r){let l;if(l=r.node?this.tag&&this.text:this.tag?this.text:!this.text,l)throw new Qn.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(""),h2(this.text)?this._bindToObservable({schema:this.text,updater:b_(l),data:r}):l.textContent=this.text.join(""),l}_renderAttributes(r){let l,m,b,M;if(!this.attributes)return;const S=r.node,q=r.revertData;for(l in this.attributes)if(b=S.getAttribute(l),m=this.attributes[l],q&&(q.attributes[l]=b),M=Gt(m[0])&&m[0].ns?m[0].ns:null,h2(m)){const B=M?m[0].value:m;q&&L1(l)&&B.unshift(b),this._bindToObservable({schema:B,updater:Wh(S,l,M),data:r})}else"style"==l&&"string"!=typeof m[0]?this._renderStyleAttribute(m[0],r):(q&&b&&L1(l)&&m.unshift(b),m=m.map(B=>B&&B.value||B).reduce((B,at)=>B.concat(at),[]).reduce(hs,""),$o(m)||S.setAttributeNS(M,l,m))}_renderStyleAttribute(r,l){const m=l.node;for(const b in r){const M=r[b];h2(M)?this._bindToObservable({schema:[M],updater:C_(m,b),data:l}):m.style[b]=M}}_renderElementChildren(r){const l=r.node,m=r.intoFragment?document.createDocumentFragment():l,b=r.isApplying;let M=0;for(const S of this.children)if(qp(S)){if(!b){S.setParent(l);for(const q of S)m.appendChild(q.element)}}else if(y_(S))b||(S.isRendered||S.render(),m.appendChild(S.element));else if(Xd(S))m.appendChild(S);else if(b){const q={children:[],bindings:[],attributes:{}};r.revertData.children.push(q),S._renderNode({node:m.childNodes[M++],isApplying:!0,revertData:q})}else m.appendChild(S.render());r.intoFragment&&l.appendChild(m)}_setUpListeners(r){if(this.eventListeners)for(const l in this.eventListeners){const m=this.eventListeners[l].map(b=>{const[M,S]=l.split("@");return b.activateDomEventListener(M,S,r)});r.revertData&&r.revertData.bindings.push(m)}}_bindToObservable({schema:r,updater:l,data:m}){const b=m.revertData;d0(r,l,m);const M=r.filter(S=>!$o(S)).filter(S=>S.observable).map(S=>S.activateAttributeListener(r,l,m));b&&b.bindings.push(M)}_revertTemplateFromNode(r,l){for(const m of l.bindings)for(const b of m)b();if(l.text)r.textContent=l.text;else{for(const m in l.attributes){const b=l.attributes[m];null===b?r.removeAttribute(m):r.setAttribute(m,b)}for(let m=0;md0(r,l,m);return this.emitter.listenTo(this.observable,"change:"+this.attribute,b),()=>{this.emitter.stopListening(this.observable,"change:"+this.attribute,b)}}}class jh extends f2{activateDomEventListener(r,l,m){const b=(M,S)=>{l&&!S.target.matches(l)||("function"==typeof this.eventNameOrFunction?this.eventNameOrFunction(S):this.observable.fire(this.eventNameOrFunction,S))};return this.emitter.listenTo(m.node,r,b),()=>{this.emitter.stopListening(m.node,r,b)}}}class bm extends f2{getValue(r){return!$o(super.getValue(r))&&(this.valueIfTrue||!0)}}function h2(d){return!!d&&(d.value&&(d=d.value),Array.isArray(d)?d.some(h2):d instanceof f2)}function d0(d,r,{node:l}){let m=(M=l,d.map(S=>S instanceof f2?S.getValue(M):S));var M;m=1==d.length&&d[0]instanceof bm?m[0]:m.reduce(hs,""),$o(m)?r.remove():r.set(m)}function b_(d){return{set(r){d.textContent=r},remove(){d.textContent=""}}}function Wh(d,r,l){return{set(m){d.setAttributeNS(l,r,m)},remove(){d.removeAttributeNS(l,r)}}}function C_(d,r){return{set(l){d.style[r]=l},remove(){d.style[r]=null}}}function g2(d){return Ts(d,r=>{if(r&&(r instanceof f2||T_(r)||y_(r)||qp(r)))return r})}function kf(d){if("string"==typeof d?d=function(r){return{text:[r]}}(d):d.text&&function(r){Array.isArray(r.text)||(r.text=[r.text])}(d),d.on&&(d.eventListeners=function(r){for(const l in r)p0(r,l);return r}(d.on),delete d.on),!d.text){d.attributes&&function(l){for(const m in l)l[m].value&&(l[m].value=[].concat(l[m].value)),p0(l,m)}(d.attributes);const r=[];if(d.children)if(qp(d.children))r.push(d.children);else for(const l of d.children)T_(l)||y_(l)||Xd(l)?r.push(l):r.push(new yl(l));d.children=r}return d}function p0(d,r){Array.isArray(d[r])||(d[r]=[d[r]])}function hs(d,r){return $o(r)?d:$o(d)?r:`${d} ${r}`}function $h(d,r){for(const l in r)d[l]?d[l].push(...r[l]):d[l]=r[l]}function $o(d){return!d&&0!==d}function y_(d){return d instanceof Xo}function T_(d){return d instanceof yl}function qp(d){return d instanceof O1}function L1(d){return"class"==d||"style"==d}p(15);class Xo{constructor(r){this.element=null,this.isRendered=!1,this.locale=r,this.t=r&&r.t,this._viewCollections=new Nr,this._unboundChildren=this.createCollection(),this._viewCollections.on("add",(l,m)=>{m.locale=r}),this.decorate("render")}get bindTemplate(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=yl.bind(this,this)}createCollection(r){const l=new O1(r);return this._viewCollections.add(l),l}registerChild(r){Ba(r)||(r=[r]);for(const l of r)this._unboundChildren.add(l)}deregisterChild(r){Ba(r)||(r=[r]);for(const l of r)this._unboundChildren.remove(l)}setTemplate(r){this.template=new yl(r)}extendTemplate(r){yl.extend(this.template,r)}render(){if(this.isRendered)throw new Qn.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)}}io(Xo,Ue),io(Xo,kt);var m0=function(d){return"string"==typeof d||!Sn(d)&&st(d)&&"[object String]"==V(d)};class _0 extends O1{constructor(r,l=[]){super(l),this.locale=r}attachToDom(){this._bodyCollectionContainer=new yl({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,m,b={},M=[]){const S=b&&b.xmlns,q=S?l.createElementNS(S,m):l.createElement(m);for(const B in b)q.setAttribute(B,b[B]);!m0(M)&&Ba(M)||(M=[M]);for(let B of M)m0(B)&&(B=l.createTextNode(B)),q.appendChild(B);return q}(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()}}p(17);class o6 extends Xo{constructor(r){super(r),this.body=new _0(r)}render(){super.render(),this.body.attachToDom()}destroy(){return this.body.detachFromDom(),super.destroy()}}p(19);class v2 extends Xo{constructor(r){super(r),this.set("text"),this.set("for"),this.id="ck-editor__label_"+vr();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 A_ extends o6{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 v2;return l.text=r("Rich Text Editor"),l.extendTemplate({attributes:{class:"ck-voice-label"}}),l}}class x2 extends Xo{constructor(r,l,m){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=m,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(m){r.change(b=>{const M=r.document.getRoot(m.name);b.addClass(m.isFocused?"ck-focused":"ck-blurred",M),b.removeClass(m.isFocused?"ck-blurred":"ck-focused",M)})}r.isRenderingInProgress?function m(b){r.once("change:isRenderingInProgress",(M,S,q)=>{q?m(b):l(b)})}(this):l(this)}}class f0 extends x2{constructor(r,l,m){super(r,l,m),this.extendTemplate({attributes:{role:"textbox",class:"ck-editor__editable_inline"}})}render(){super.render();const r=this._editingView,l=this.t;r.change(m=>{const b=r.document.getRoot(this.name);m.setAttribute("aria-label",l("Rich Text Editor, %0",[this.name]),b)})}}function hu(d){return r=>r+d}p(21);const Sd=hu("px");class F3 extends Xo{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 yl({tag:"div",attributes:{class:["ck","ck-sticky-panel__placeholder"],style:{display:l.to("isSticky",m=>m?"block":"none"),height:l.to("isSticky",m=>m?Sd(this._panelRect.height):null)}}}).render(),this._contentPanel=new yl({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",m=>m?Sd(this._contentPanelPlaceholder.getBoundingClientRect().width):null),top:l.to("_hasViewportTopOffset",m=>m?Sd(this.viewportTopOffset):null),bottom:l.to("_isStickyToTheLimiter",m=>m?Sd(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(ft.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](),S()})}}get first(){return this.focusables.find(Cm)||null}get last(){return this.focusables.filter(Cm).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,m)=>{const b=l.element===this.focusTracker.focusedElement;return b&&(r=m),b}),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,m=this.focusables.length;if(!m)return null;if(null===l)return this[1===r?"first":"last"];let b=(l+m+r)%m;do{const M=this.focusables.get(b);if(Cm(M))return M;b=(b+m+r)%m}while(b!==l);return null}}function Cm(d){return!(!d.focus||"none"==ft.window.getComputedStyle(d.element).display)}class Sf extends Xo{constructor(r){super(r),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__separator"]}})}}class sc{constructor(r,l){sc._observerInstance||sc._createObserver(),this._element=r,this._callback=l,sc._addElementCallback(r,l),sc._observerInstance.observe(r)}destroy(){sc._deleteElementCallback(this._element,this._callback)}static _addElementCallback(r,l){sc._elementCallbacks||(sc._elementCallbacks=new Map);let m=sc._elementCallbacks.get(r);m||(m=new Set,sc._elementCallbacks.set(r,m)),m.add(l)}static _deleteElementCallback(r,l){const m=sc._getElementCallbacks(r);m&&(m.delete(l),m.size||(sc._elementCallbacks.delete(r),sc._observerInstance.unobserve(r))),sc._elementCallbacks&&!sc._elementCallbacks.size&&(sc._observerInstance=null,sc._elementCallbacks=null)}static _getElementCallbacks(r){return sc._elementCallbacks?sc._elementCallbacks.get(r):null}static _createObserver(){let r;r="function"==typeof ft.window.ResizeObserver?ft.window.ResizeObserver:Kh,sc._observerInstance=new r(l=>{for(const m of l){if(!m.target.offsetParent)continue;const b=sc._getElementCallbacks(m.target);if(b)for(const M of b)M(m)}})}}sc._observerInstance=null,sc._elementCallbacks=null;class Kh{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(ft.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 Ds(r),m=this._previousRects.get(r),b=!m||!m.isEqual(l);return this._previousRects.set(r,l),b}}io(Kh,Ue);class ym extends Xo{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",m=>"ck-dropdown__panel_"+m),l.if("isVisible","ck-dropdown__panel-visible")]},children:this.children,on:{selectstart:l.to(m=>m.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 U_({element:d,target:r,positions:l,limiter:m,fitInViewport:b}){ne(r)&&(r=r()),ne(m)&&(m=m());const M=(Zt=d)&&Zt.parentNode?Zt.offsetParent===ft.document.body?null:Zt.offsetParent:null,S=new Ds(d),q=new Ds(r);var Zt;let B,at;[at,B]=(m||b)&&function(_e,Be){const{elementRect:mn,viewportRect:Mn}=Be,In=mn.getArea(),Gn=function(Fi,{targetRect:Ji,elementRect:Do,limiterRect:ba,viewportRect:Yc}){const cs=[],ol=Do.getArea();for(const _r of Fi){const Mc=Hp(_r,Ji,Do);if(!Mc)continue;const[Al,al]=Mc;let m1=0,B1=0;if(ba)if(Yc){const xd=ba.getIntersection(Yc);xd&&(m1=xd.getIntersectionArea(al))}else m1=ba.getIntersectionArea(al);Yc&&(B1=Yc.getIntersectionArea(al));const vd={positionName:Al,positionRect:al,limiterIntersectArea:m1,viewportIntersectArea:B1};if(m1===ol)return[vd];cs.push(vd)}return cs}(_e,Be);if(Mn){const Fi=Od(Gn.filter(({viewportIntersectArea:Ji})=>Ji===In),In);if(Fi)return Fi}return Od(Gn,In)}(l,{targetRect:q,elementRect:S,limiterRect:m&&new Ds(m).getVisible(),viewportRect:b&&new Ds(ft.window)})||Hp(l[0],q,S);let _t=b2(B);return M&&(_t=function({left:Zt,top:_e},Be){const mn=b2(new Ds(Be)),Mn=ki(Be);return Zt-=mn.left,_e-=mn.top,Zt+=Be.scrollLeft,_e+=Be.scrollTop,{left:Zt-=Mn.left,top:_e-=Mn.top}}(_t,M)),{left:_t.left,top:_t.top,name:at}}function Hp(d,r,l){const m=d(r,l);if(!m)return null;const{left:b,top:M,name:S}=m;return[S,l.clone().moveTo(b,M)]}function Od(d,r){let l,m,b=0;for(const{positionName:M,positionRect:S,limiterIntersectArea:q,viewportIntersectArea:B}of d){if(q===r)return[M,S];const at=B**2+q**2;at>b&&(b=at,l=S,m=M)}return l?[m,l]:null}function b2({left:d,top:r}){const{scrollX:l,scrollY:m}=ft.window;return{left:d+l,top:r+m}}p(23);class lp extends Xo{constructor(r,l,m){super(r);const b=this.bindTemplate;this.buttonView=l,this.panelView=m,this.set("isOpen",!1),this.set("isEnabled",!0),this.set("class"),this.set("id"),this.set("panelPosition","auto"),this.keystrokes=new Il,this.setTemplate({tag:"div",attributes:{class:["ck","ck-dropdown",b.to("class"),b.if("isEnabled","ck-disabled",M=>!M)],id:b.to("id"),"aria-describedby":b.to("ariaDescribedById")},children:[l,m]}),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?lp._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,m)=>{this.isOpen&&(this.buttonView.focus(),this.isOpen=!1,m())};this.keystrokes.set("arrowdown",(l,m)=>{this.buttonView.isEnabled&&!this.isOpen&&(this.isOpen=!0,m())}),this.keystrokes.set("arrowright",(l,m)=>{this.isOpen&&m()}),this.keystrokes.set("arrowleft",r),this.keystrokes.set("esc",r)}focus(){this.buttonView.focus()}get _panelPositions(){const{southEast:r,southWest:l,northEast:m,northWest:b}=lp.defaultPanelPositions;return"ltr"===this.locale.uiLanguageDirection?[r,l,m,b]:[l,r,b,m]}}lp.defaultPanelPositions={southEast:d=>({top:d.bottom,left:d.left,name:"se"}),southWest:(d,r)=>({top:d.bottom,left:d.left-r.width+d.width,name:"sw"}),northEast:(d,r)=>({top:d.top-r.height,left:d.left,name:"ne"}),northWest:(d,r)=>({top:d.bottom-r.height,left:d.left-r.width+d.width,name:"nw"})},lp._getOptimalPosition=U_,p(25);class Tm extends Xo{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})}}p(27);class h0 extends Xo{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",m=>"ck-tooltip_"+m),l.if("text","ck-hidden",m=>!m.trim())]},children:[{tag:"span",attributes:{class:["ck","ck-tooltip__text"]},children:[{text:l.to("text")}]}]})}}p(29);class Rs extends Xo{constructor(r){super(r);const l=this.bindTemplate,m=vr();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(m),this.iconView=new Tm,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",b=>!b),l.if("isVisible","ck-hidden",b=>!b),l.to("isOn",b=>b?"ck-on":"ck-off"),l.if("withText","ck-button_with-text"),l.if("withKeystroke","ck-button_with-keystroke")],type:l.to("type",b=>b||"button"),tabindex:l.to("tabindex"),"aria-labelledby":"ck-editor__aria-label_"+m,"aria-disabled":l.if("isEnabled",!0,b=>!b),"aria-pressed":l.to("isOn",b=>!!this.isToggleable&&String(b))},children:this.children,on:{mousedown:l.to(b=>{b.preventDefault()}),click:l.to(b=>{this.isEnabled?this.fire("execute"):b.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 h0;return r.bind("text").to(this,"_tooltipString"),r.bind("position").to(this,"tooltipPosition"),r}_createLabelView(r){const l=new Xo;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 Xo;return r.setTemplate({tag:"span",attributes:{class:["ck","ck-button__keystroke"]},children:[{text:this.bindTemplate.to("keystroke",l=>kl(l))}]}),r}_getTooltipString(r,l,m){return r?"string"==typeof r?r:(m&&(m=kl(m)),r instanceof Function?r(l,m):`${l}${m?` (${m})`:""}`):""}}var C2='';class up extends Rs{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 Tm;return r.content=C2,r.extendTemplate({attributes:{class:"ck-dropdown__arrow"}}),r}}p(31);class g0 extends Xo{constructor(){super(),this.items=this.createCollection(),this.focusTracker=new Ac,this.keystrokes=new Il,this._focusCycler=new Rp({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 Xh extends Xo{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 tg extends Xo{constructor(r){super(r),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__separator"]}})}}p(33);class Am extends Rs{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 Xo;return r.setTemplate({tag:"span",attributes:{class:["ck","ck-button__toggle"]},children:[{tag:"span",attributes:{class:["ck","ck-button__toggle__inner"]}}]}),r}}function Um({emitter:d,activator:r,callback:l,contextElements:m}){d.listenTo(document,"mousedown",(b,{target:M})=>{if(r()){for(const S of m)if(S.contains(M))return;l()}})}function r1(d,r=up){const l=new r(d),m=new ym(d),b=new lp(d,l,m);return l.bind("isEnabled").to(b),l instanceof up?l.bind("isOn").to(b,"isOpen"):l.arrowView.bind("isOn").to(b,"isOpen"),(S=M=b).on("render",()=>{Um({emitter:S,activator:()=>S.isOpen,callback:()=>{S.isOpen=!1},contextElements:[S.element]})}),function(S){S.on("execute",q=>{q.source instanceof Am||(S.isOpen=!1)})}(M),function(S){S.keystrokes.set("arrowdown",(q,B)=>{S.isOpen&&(S.panelView.focus(),B())}),S.keystrokes.set("arrowup",(q,B)=>{S.isOpen&&(S.panelView.focusLast(),B())})}(M),b;var M,S}function v0(d,r){const l=d.locale,m=d.listView=new g0(l);m.items.bindTo(r).using(({type:b,model:M})=>{if("separator"===b)return new tg(l);if("button"===b||"switchbutton"===b){const S=new Xh(l);let q;return q="button"===b?new Rs(l):new Am(l),q.bind(...Object.keys(M)).to(M),q.delegate("execute").to(S),S.children.add(q),S}}),d.panelView.children.add(m),m.items.delegate("execute").to(d)}p(35),p(37),p(39);class y2 extends Xo{constructor(r,l){super(r);const m=this.bindTemplate,b=this.t;var M;this.options=l||{},this.set("ariaLabel",b("Editor toolbar")),this.set("maxWidth","auto"),this.items=this.createCollection(),this.focusTracker=new Ac,this.keystrokes=new Il,this.set("class"),this.set("isCompact",!1),this.itemsView=new N3(r),this.children=this.createCollection(),this.children.add(this.itemsView),this.focusables=this.createCollection(),this._focusCycler=new Rp({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",m.to("class"),m.if("isCompact","ck-toolbar_compact")],role:"toolbar","aria-label":m.to("ariaLabel"),style:{maxWidth:m.to("maxWidth")}},children:this.children,on:{mousedown:(M=this,M.bindTemplate.to(S=>{S.target===M.element&&S.preventDefault()}))}}),this._behavior=this.options.shouldGroupWhenFull?new eg(this):new Of(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(m=>"|"==m?new Sf:l.has(m)?l.create(m):void console.warn(Object(Qn.a)("toolbarview-item-unavailable: The requested toolbar item is unavailable."),{name:m})).filter(m=>void 0!==m))}}class N3 extends Xo{constructor(r){super(r),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar__items"]},children:this.children})}}class Of{constructor(r){const l=r.bindTemplate;r.set("isVertical",!1),r.itemsView.children.bindTo(r.items).using(m=>m),r.focusables.bindTo(r.items).using(m=>m),r.extendTemplate({attributes:{class:[l.if("isVertical","ck-toolbar_vertical")]}})}render(){}destroy(){}}class eg{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,m)=>{const b=m.index;for(const M of m.removed)b>=this.ungroupedItems.length?this.groupedItems.remove(M):this.ungroupedItems.remove(M);for(let M=b;Mthis.ungroupedItems.length?this.groupedItems.add(S,M-this.ungroupedItems.length):this.ungroupedItems.add(S,M)}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,m=new Ds(r.lastChild),b=new Ds(r);if(!this.cachedPadding){const M=ft.window.getComputedStyle(r);this.cachedPadding=Number.parseInt(M["ltr"===l?"paddingRight":"paddingLeft"])}return"ltr"===l?m.right>b.right-this.cachedPadding:m.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 Sf),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,m=r1(r);return m.class="ck-toolbar__grouped-dropdown",m.panelPosition="ltr"===r.uiLanguageDirection?"sw":"se",function(b,M){const S=b.locale,q=S.t,B=b.toolbarView=new y2(S);B.set("ariaLabel",q("Dropdown toolbar")),b.extendTemplate({attributes:{class:["ck-toolbar-dropdown"]}}),[].map(at=>B.items.add(at)),b.panelView.children.add(B),B.items.delegate("execute").to(b)}(m),m.buttonView.set({label:l("Show more items"),tooltip:!0,icon:''}),m.toolbarView.items.bindTo(this.groupedItems).using(b=>b),m}_updateFocusCycleableItems(){this.viewFocusables.clear(),this.ungroupedItems.map(r=>{this.viewFocusables.add(r)}),this.groupedItems.length&&this.viewFocusables.add(this.groupedItemsDropdown)}}p(41);class x0 extends A_{constructor(r,l,m={}){super(r),this.stickyPanel=new F3(r),this.toolbar=new y2(r,{shouldGroupWhenFull:m.shouldToolbarGroupWhenFull}),this.editable=new f0(r,l)}render(){super.render(),this.stickyPanel.content.add(this.toolbar),this.top.add(this.stickyPanel),this.main.add(this.editable)}}class Lf extends Ip{constructor(r,l){super(l),As(r)&&(this.sourceElement=r),this.data.processor=new m2(this.data.viewDocument),this.model.document.createRoot();const m=!this.config.get("toolbar.shouldNotGroupWhenFull"),b=new x0(this.locale,this.editing.view,{shouldToolbarGroupWhenFull:m});this.ui=new Qh(this,b),function(M){if(!ne(M.updateSourceElement))throw new Qn.b("attachtoform-missing-elementapi-interface: Editor passed to attachToForm() must implement ElementApi.",M);const S=M.sourceElement;if(S&&"textarea"===S.tagName.toLowerCase()&&S.form){let q;const B=S.form,at=()=>M.updateSourceElement();ne(B.submit)&&(q=B.submit,B.submit=()=>{at(),q.apply(B)}),B.addEventListener("submit",at),M.on("destroy",()=>{B.removeEventListener("submit",at),q&&(B.submit=q)})}}(this)}destroy(){return this.sourceElement&&this.updateSourceElement(),this.ui.destroy(),super.destroy()}static create(r,l={}){return new Promise(m=>{const b=new this(r,l);m(b.initPlugins().then(()=>b.ui.init(As(r)?r:null)).then(()=>{if(!As(r)&&l.initialData)throw new Qn.b("editor-create-initial-data: The config.initialData option cannot be used together with initial data passed in Editor.create().",null);const M=l.initialData||(As(S=r)?(q=S)instanceof HTMLTextAreaElement?q.value:q.innerHTML:S);var S,q;return b.data.init(M)}).then(()=>b.fire("ready")).then(()=>b))})}}io(Lf,Zf),io(Lf,x_);class Eo{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",ng,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(r){this._disableStack.delete(r),0==this._disableStack.size&&(this.off("set:isEnabled",ng),this.isEnabled=!0)}destroy(){this.stopListening()}static get isContextPlugin(){return!1}}function ng(d){d.return=!1,d.stop()}io(Eo,kt);class w_{constructor(r){this.files=function(l){const m=l.files?Array.from(l.files):[],b=l.items?Array.from(l.items):[];return m.length?m:b.filter(M=>"file"===M.kind).map(M=>M.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 b0 extends U1{constructor(r){super(r);const l=this.document;function m(b,M){M.preventDefault();const S=M.dropRange?[M.dropRange]:Array.from(l.selection.getRanges()),q=new Va(l,"clipboardInput");l.fire(q,{dataTransfer:M.dataTransfer,targetRanges:S}),q.stop.called&&M.stopPropagation()}this.domEventType=["paste","copy","cut","drop","dragover"],this.listenTo(l,"paste",m,{priority:"low"}),this.listenTo(l,"drop",m,{priority:"low"})}onDomEvent(r){const l={dataTransfer:new w_(r.clipboardData?r.clipboardData:r.dataTransfer)};"drop"==r.type&&(l.dropRange=function(m,b){const M=b.target.ownerDocument,S=b.clientX,q=b.clientY;let B;return M.caretRangeFromPoint&&M.caretRangeFromPoint(S,q)?B=M.caretRangeFromPoint(S,q):b.rangeParent&&(B=M.createRange(),B.setStart(b.rangeParent,b.rangeOffset),B.collapse(!0)),B?m.domConverter.domRangeToView(B):m.document.selection.getFirstRange()}(this.view,r)),this.fire(r.type,r,l)}}const wm=["figcaption","li"];class Mm extends Eo{static get pluginName(){return"Clipboard"}init(){const r=this.editor,l=r.model.document,m=r.editing.view,b=m.document;function M(S,q){const B=q.dataTransfer;q.preventDefault();const at=r.data.toView(r.model.getSelectedContent(l.selection));b.fire("clipboardOutput",{dataTransfer:B,content:at,method:S.name})}this._htmlDataProcessor=new m2(b),m.addObserver(b0),this.listenTo(b,"clipboardInput",S=>{r.isReadOnly&&S.stop()},{priority:"highest"}),this.listenTo(b,"clipboardInput",(S,q)=>{const B=q.dataTransfer;let at="";var _t;B.getData("text/html")?at=B.getData("text/html").replace(/(\s+)<\/span>/g,(Be,mn)=>1==mn.length?" ":mn):B.getData("text/plain")&&((_t=(_t=B.getData("text/plain")).replace(//g,">").replace(/\n/g,"

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

")>-1&&(_t=`

${_t}

`),at=_t),at=this._htmlDataProcessor.toView(at);const Zt=new Va(this,"inputTransformation");this.fire(Zt,{content:at,dataTransfer:B}),Zt.stop.called&&S.stop(),m.scrollToTheSelection()},{priority:"low"}),this.listenTo(this,"inputTransformation",(S,q)=>{if(!q.content.isEmpty){const at=this.editor.model,_t=this.editor.data.toModel(q.content,"$clipboardHolder");if(0==_t.childCount)return;at.insertContent(_t),S.stop()}},{priority:"low"}),this.listenTo(b,"copy",M,{priority:"low"}),this.listenTo(b,"cut",(S,q)=>{r.isReadOnly?q.preventDefault():M(S,q)},{priority:"low"}),this.listenTo(b,"clipboardOutput",(S,q)=>{q.content.isEmpty||(q.dataTransfer.setData("text/html",this._htmlDataProcessor.toData(q.content)),q.dataTransfer.setData("text/plain",function B(at){let _t="";if(at.is("$text")||at.is("$textProxy"))_t=at.data;else if(at.is("element","img")&&at.hasAttribute("alt"))_t=at.getAttribute("alt");else{let Zt=null;for(const _e of at.getChildren()){const Be=B(_e);Zt&&(Zt.is("containerElement")||_e.is("containerElement"))&&(wm.includes(Zt.name)||wm.includes(_e.name)?_t+="\n":_t+="\n\n"),_t+=Be,Zt=_e}}return _t}(q.content))),"cut"==q.method&&r.model.deleteContent(l.selection)},{priority:"low"})}}class Ha{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,m,b)=>{b?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")})}refresh(){this.isEnabled=!0}forceDisabled(r){this._disableStack.add(r),1==this._disableStack.size&&(this.on("set:isEnabled",Zm,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(r){this._disableStack.delete(r),0==this._disableStack.size&&(this.off("set:isEnabled",Zm),this.refresh())}execute(){}destroy(){this.stopListening()}}function Zm(d){d.return=!1,d.stop()}function*ig(d,r){for(const l of r)l&&d.getAttributeProperties(l[0]).copyOnEnter&&(yield l)}io(Ha,kt);class I3 extends Ha{execute(){const r=this.editor.model,l=r.document;r.change(m=>{(function(b,M,S,q){const B=S.isCollapsed,at=S.getFirstRange(),_t=at.start.parent,Zt=at.end.parent;if(q.isLimit(_t)||q.isLimit(Zt))B||_t!=Zt||b.deleteContent(S);else if(B){const _e=ig(M.model.schema,S.getAttributes());og(M,at.start),M.setSelectionAttribute(_e)}else{const _e=!(at.start.isAtStart&&at.end.isAtEnd),Be=_t==Zt;b.deleteContent(S,{leaveUnmerged:_e}),_e&&(Be?og(M,S.focus):M.setSelection(Zt,0))}})(this.editor.model,m,l.selection,r.schema),this.fire("afterExecute",{writer:m})})}}function og(d,r){d.split(r),d.setSelection(r.parent.nextSibling,0)}class ao extends Co{constructor(r){super(r);const l=this.document;l.on("keydown",(m,b)=>{if(this.isEnabled&&b.keyCode==sa.enter){let M;l.once("enter",S=>M=S,{priority:"highest"}),l.fire("enter",new A1(l,b.domEvent,{isSoft:b.shiftKey})),M&&M.stop.called&&m.stop()}})}observe(){}}class q3 extends Eo{static get pluginName(){return"Enter"}init(){const r=this.editor,l=r.editing.view,m=l.document;l.addObserver(ao),r.commands.add("enter",new I3(r)),this.listenTo(m,"enter",(b,M)=>{M.preventDefault(),M.isSoft||(r.execute("enter"),l.scrollToTheSelection())},{priority:"low"})}}class C0 extends Ha{execute(){const r=this.editor.model,l=r.document;r.change(m=>{(function(b,M,S){const q=S.isCollapsed,B=S.getFirstRange(),_t=B.end.parent,Zt=B.start.parent==_t;if(q){const _e=ig(b.schema,S.getAttributes());s1(b,M,B.end),M.removeSelectionAttribute(S.getAttributeKeys()),M.setSelectionAttribute(_e)}else{const _e=!(B.start.isAtStart&&B.end.isAtEnd);b.deleteContent(S,{leaveUnmerged:_e}),Zt?s1(b,M,S.focus):_e&&M.setSelection(_t,0)}})(r,m,l.selection),this.fire("afterExecute",{writer:m})})}refresh(){const r=this.editor.model;this.isEnabled=function(m,b){if(b.rangeCount>1)return!1;const M=b.anchor;if(!M||!m.checkChild(M,"softBreak"))return!1;const S=b.getFirstRange(),q=S.start.parent,B=S.end.parent;return!((Ef(q,m)||Ef(B,m))&&q!==B)}(r.schema,r.document.selection)}}function s1(d,r,l){const m=r.createElement("softBreak");d.insertContent(m,l),r.setSelection(m,"after")}function Ef(d,r){return!d.is("rootElement")&&(r.isLimit(d)||Ef(d.parent,r))}class Ff extends Eo{static get pluginName(){return"ShiftEnter"}init(){const r=this.editor,m=r.conversion,b=r.editing.view,M=b.document;r.model.schema.register("softBreak",{allowWhere:"$text",isInline:!0}),m.for("upcast").elementToElement({model:"softBreak",view:"br"}),m.for("downcast").elementToElement({model:"softBreak",view:(S,q)=>q.createEmptyElement("br")}),b.addObserver(ao),r.commands.add("shiftEnter",new C0(r)),this.listenTo(M,"enter",(S,q)=>{q.preventDefault(),q.isSoft&&(r.execute("shiftEnter"),b.scrollToTheSelection())},{priority:"low"})}}class Nf extends Ha{execute(){const r=this.editor.model,l=r.document.selection;let m=r.schema.getLimitElement(l);if(l.containsEntireContent(m)||!y0(r.schema,m))do{if(m=m.parent,!m)return}while(!y0(r.schema,m));r.change(b=>{b.setSelection(m,"in")})}}function y0(d,r){return d.isLimit(r)&&(d.checkChild(r,"$text")||d.checkChild(r,"paragraph"))}const M_=ep("Ctrl+A");class Yp extends Eo{static get pluginName(){return"SelectAllEditing"}init(){const r=this.editor,l=r.editing.view.document;r.commands.add("selectAll",new Nf(r)),this.listenTo(l,"keydown",(m,b)=>{hr(b)===M_&&(r.execute("selectAll"),b.preventDefault())})}}class R3 extends Eo{static get pluginName(){return"SelectAllUI"}init(){const r=this.editor;r.ui.componentFactory.add("selectAll",l=>{const m=r.commands.get("selectAll"),b=new Rs(l);return b.set({label:(0,l.t)("Select all"),icon:'',keystroke:"Ctrl+A",tooltip:!0}),b.bind("isOn","isEnabled").to(m,"value","isEnabled"),this.listenTo(b,"execute",()=>{r.execute("selectAll"),r.editing.view.focus()}),b})}}class ag extends Eo{static get requires(){return[Yp,R3]}static get pluginName(){return"SelectAll"}}class Dm{constructor(r,l=20){this.model=r,this.size=0,this.limit=l,this.isLocked=!1,this._changeCallback=(m,b)=>{"transparent"!=b.type&&b!==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 rg extends Ha{constructor(r,l){super(r),this._buffer=new Dm(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,m=l.document,b=r.text||"",M=b.length,S=r.range?l.createSelection(r.range):m.selection,q=r.resultRange;l.enqueueChange(this._buffer.batch,B=>{this._buffer.lock(),this._batches.add(this._buffer.batch),l.deleteContent(S),b&&l.insertContent(B.createText(b,m.selection.getAttributes()),S),q?B.setSelection(q):S.is("documentSelection")||B.setSelection(S),this._buffer.unlock(),this._buffer.input(M)})}}const Pm=[hr("arrowUp"),hr("arrowRight"),hr("arrowDown"),hr("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 d=112;d<=135;d++)Pm.push(d);function T2(d){return!!d.ctrlKey||Pm.includes(d.keyCode)}function T0(d){if(d.newChildren.length-d.oldChildren.length!=1)return;const r=function(m,b){const M=[];let S,q=0;return m.forEach(_t=>{"equal"==_t?(B(),q++):"insert"==_t?(at("insert")?S.values.push(b[q]):(B(),S={type:"insert",index:q,values:[b[q]]}),q++):at("delete")?S.howMany++:(B(),S={type:"delete",index:q,howMany:1})}),B(),M;function B(){S&&(M.push(S),S=null)}function at(_t){return S&&S.type==_t}}(qc(d.oldChildren,d.newChildren,km),d.newChildren);if(r.length>1)return;const l=r[0];return l.values[0]&&l.values[0].is("$text")?l:void 0}function km(d,r){return d&&d.is("$text")&&r&&r.is("$text")?d.data===r.data:d===r}class E1{constructor(r){this.editor=r,this.editing=this.editor.editing}handle(r,l){if(function(m){if(0==m.length)return!1;for(const b of m)if("children"===b.type&&!T0(b))return!0;return!1}(r))this._handleContainerChildrenMutations(r,l);else for(const m of r)this._handleTextMutation(m,l),this._handleTextNodeInsertion(m)}_handleContainerChildrenMutations(r,l){const m=function(ol){const _r=ol.map(Mc=>Mc.node).reduce((Mc,Al)=>Mc.getCommonAncestor(Al,{includeSelf:!0}));if(_r)return _r.getAncestors({includeSelf:!0,parentFirst:!0}).find(Mc=>Mc.is("containerElement")||Mc.is("rootElement"))}(r);if(!m)return;const b=this.editor.editing.view.domConverter.mapViewToDom(m),M=new ee(this.editor.editing.view.document),S=this.editor.data.toModel(M.domToView(b)).getChild(0),q=this.editor.editing.mapper.toModelElement(m);if(!q)return;const B=Array.from(S.getChildren()),at=Array.from(q.getChildren()),_t=B[B.length-1],Zt=at[at.length-1],_e=_t&&_t.is("element","softBreak"),Be=Zt&&!Zt.is("element","softBreak");_e&&Be&&B.pop();const mn=this.editor.model.schema;if(!sg(B,mn)||!sg(at,mn))return;const Mn=B.map(ol=>ol.is("$text")?ol.data:"@").join("").replace(/\u00A0/g," "),In=at.map(ol=>ol.is("$text")?ol.data:"@").join("").replace(/\u00A0/g," ");if(In===Mn)return;const Gn=qc(In,Mn),{firstChangeAt:Fi,insertions:Ji,deletions:Do}=cg(Gn);let ba=null;l&&(ba=this.editing.mapper.toModelRange(l.getFirstRange()));const Yc=Mn.substr(Fi,Ji),cs=this.editor.model.createRange(this.editor.model.createPositionAt(q,Fi),this.editor.model.createPositionAt(q,Fi+Do));this.editor.execute("input",{text:Yc,range:cs,resultRange:ba})}_handleTextMutation(r,l){if("text"!=r.type)return;const m=r.newText.replace(/\u00A0/g," "),b=r.oldText.replace(/\u00A0/g," ");if(b===m)return;const M=qc(b,m),{firstChangeAt:S,insertions:q,deletions:B}=cg(M);let at=null;l&&(at=this.editing.mapper.toModelRange(l.getFirstRange()));const _t=this.editing.view.createPositionAt(r.node,S),Zt=this.editing.mapper.toModelPosition(_t),_e=this.editor.model.createRange(Zt,Zt.getShiftedBy(B)),Be=m.substr(S,q);this.editor.execute("input",{text:Be,range:_e,resultRange:at})}_handleTextNodeInsertion(r){if("children"!=r.type)return;const l=T0(r),m=this.editing.view.createPositionAt(r.node,l.index),b=this.editing.mapper.toModelPosition(m);this.editor.execute("input",{text:l.values[0].data.replace(/\u00A0/g," "),range:this.editor.model.createRange(b)})}}function sg(d,r){return d.every(l=>r.isInline(l))}function cg(d){let r=null,l=null;for(let M=0;M{M.deleteContent(M.document.selection)}),_t.unlock()}S.document.on(Zs_isAndroid?"beforeinput":"keydown",(_t,Zt)=>function B(_t){const Zt=M.document,_e=S.document.isComposing,Be=b&&b.isEqual(Zt.selection);b=null,q.isEnabled&&(T2(_t)||Zt.selection.isCollapsed||_e&&229===_t.keyCode||!_e&&229===_t.keyCode&&Be||at())}(Zt),{priority:"lowest"}),S.document.on("compositionstart",function(){const _t=M.document,Zt=1!==_t.selection.rangeCount||_t.selection.getFirstRange().isFlat;_t.selection.isCollapsed||Zt||at()},{priority:"lowest"}),S.document.on("compositionend",()=>{b=M.createSelection(M.document.selection)},{priority:"lowest"})}(r),(m=r).editing.view.document.on("mutations",(b,M,S)=>{new E1(m).handle(M,S)})}isInput(r){return this.editor.commands.get("input")._batches.has(r)}}class A0 extends Ha{constructor(r,l){super(r),this.direction=l,this._buffer=new Dm(r.model,r.config.get("typing.undoStep"))}get buffer(){return this._buffer}execute(r={}){const l=this.editor.model,m=l.document;l.enqueueChange(this._buffer.batch,b=>{this._buffer.lock();const M=b.createSelection(r.selection||m.selection),S=M.isCollapsed;if(M.isCollapsed&&l.modifySelection(M,{direction:this.direction,unit:r.unit}),this._shouldEntireContentBeReplacedWithParagraph(r.sequence||1))return void this._replaceEntireContentWithParagraph(b);if(M.isCollapsed)return;let q=0;M.getFirstRange().getMinimalFlatRanges().forEach(B=>{q+=oa(B.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))}),l.deleteContent(M,{doNotResetEntireContent:S,direction:this.direction}),this._buffer.input(q),b.setSelection(M),this._buffer.unlock()})}_shouldEntireContentBeReplacedWithParagraph(r){if(r>1)return!1;const l=this.editor.model,m=l.document.selection,b=l.schema.getLimitElement(m);if(!m.isCollapsed||!m.containsEntireContent(b)||!l.schema.checkChild(b,"paragraph"))return!1;const M=b.getChild(0);return!M||"paragraph"!==M.name}_replaceEntireContentWithParagraph(r){const l=this.editor.model,b=l.schema.getLimitElement(l.document.selection),M=r.createElement("paragraph");r.remove(r.createRangeIn(b)),r.insert(M,b),r.setSelection(M,0)}}class lg extends Co{constructor(r){super(r);const l=r.document;let m=0;function b(M,S,q){let B;l.once("delete",at=>B=at,{priority:Number.POSITIVE_INFINITY}),l.fire("delete",new A1(l,S,q)),B&&B.stop.called&&M.stop()}l.on("keyup",(M,S)=>{S.keyCode!=sa.delete&&S.keyCode!=sa.backspace||(m=0)}),l.on("keydown",(M,S)=>{const q={};if(S.keyCode==sa.delete)q.direction="forward",q.unit="character";else{if(S.keyCode!=sa.backspace)return;q.direction="backward",q.unit="codePoint"}q.unit=(Zs_isMac?S.altKey:S.ctrlKey)?"word":q.unit,q.sequence=++m,b(M,S.domEvent,q)}),Zs_isAndroid&&l.on("beforeinput",(M,S)=>{if("deleteContentBackward"!=S.domEvent.inputType)return;const q={unit:"codepoint",direction:"backward",sequence:1},B=S.domTarget.ownerDocument.defaultView.getSelection();B.anchorNode==B.focusNode&&B.anchorOffset+1!=B.focusOffset&&(q.selectionToRemove=r.domConverter.domSelectionToView(B)),b(M,S.domEvent,q)})}observe(){}}class a6 extends Eo{static get pluginName(){return"Delete"}init(){const r=this.editor,l=r.editing.view,m=l.document;if(l.addObserver(lg),r.commands.add("forwardDelete",new A0(r,"forward")),r.commands.add("delete",new A0(r,"backward")),this.listenTo(m,"delete",(b,M)=>{const S={unit:M.unit,sequence:M.sequence};if(M.selectionToRemove){const q=r.model.createSelection(),B=[];for(const at of M.selectionToRemove.getRanges())B.push(r.editing.mapper.toModelRange(at));q.setTo(B),S.selection=q}r.execute("forward"==M.direction?"forwardDelete":"delete",S),M.preventDefault(),l.scrollToTheSelection()}),Zs_isAndroid){let b=null;this.listenTo(m,"delete",(M,S)=>{const q=S.domTarget.ownerDocument.defaultView.getSelection();b={anchorNode:q.anchorNode,anchorOffset:q.anchorOffset,focusNode:q.focusNode,focusOffset:q.focusOffset}},{priority:"lowest"}),this.listenTo(m,"keyup",(M,S)=>{if(b){const q=S.domTarget.ownerDocument.defaultView.getSelection();q.collapse(b.anchorNode,b.anchorOffset),q.extend(b.focusNode,b.focusOffset),b=null}})}}}class ug extends Eo{static get requires(){return[H3,a6]}static get pluginName(){return"Typing"}}const Z_=new Map;function br(d,r,l){let m=Z_.get(d);m||(m=new Map,Z_.set(d,m)),m.set(r,l)}function ld(d){return[d]}function Hu(d,r,l={}){const m=function(b,M){const S=Z_.get(b);return S&&S.has(M)?S.get(M):ld}(d.constructor,r.constructor);try{return m(d=d.clone(),r,l)}catch(b){throw b}}function F1(d,r,l){d=d.slice(),r=r.slice();const m=new dg(l.document,l.useRelations,l.forceWeakRemove);m.setOriginalOperations(d),m.setOriginalOperations(r);const b=m.originalOperations;if(0==d.length||0==r.length)return{operationsA:d,operationsB:r,originalOperations:b};const M=new WeakMap;for(const B of d)M.set(B,0);const S={nextBaseVersionA:d[d.length-1].baseVersion+1,nextBaseVersionB:r[r.length-1].baseVersion+1,originalOperationsACount:d.length,originalOperationsBCount:r.length};let q=0;for(;q{if(d.key===r.key&&d.range.start.hasSameParentAs(r.range.start)){const m=d.range.getDifference(r.range).map(M=>new mc(M,d.key,d.oldValue,d.newValue,0)),b=d.range.getIntersection(r.range);return b&&l.aIsStrong&&m.push(new mc(b,r.key,r.newValue,d.newValue,0)),0==m.length?[new fc(0)]:m}return[d]}),br(mc,ka,(d,r)=>{if(d.range.start.hasSameParentAs(r.position)&&d.range.containsPosition(r.position)){const l=d.range._getTransformedByInsertion(r.position,r.howMany,!r.shouldReceiveAttributes).map(m=>new mc(m,d.key,d.oldValue,d.newValue,d.baseVersion));if(r.shouldReceiveAttributes){const m=dp(r,d.key,d.oldValue);m&&l.unshift(m)}return l}return d.range=d.range._getTransformedByInsertion(r.position,r.howMany,!1)[0],[d]}),br(mc,ya,(d,r)=>{const l=[];d.range.start.hasSameParentAs(r.deletionPosition)&&(d.range.containsPosition(r.deletionPosition)||d.range.start.isEqual(r.deletionPosition))&&l.push(zi._createFromPositionAndShift(r.graveyardPosition,1));const m=d.range._getTransformedByMergeOperation(r);return m.isCollapsed||l.push(m),l.map(b=>new mc(b,d.key,d.oldValue,d.newValue,d.baseVersion))}),br(mc,ns,(d,r)=>function(l,m){const b=zi._createFromPositionAndShift(m.sourcePosition,m.howMany);let M=null,S=[];b.containsRange(l,!0)?M=l:l.start.hasSameParentAs(b.start)?(S=l.getDifference(b),M=l.getIntersection(b)):S=[l];const q=[];for(let B of S){B=B._getTransformedByDeletion(m.sourcePosition,m.howMany);const at=m.getMovedRangeStart(),_t=B.start.hasSameParentAs(at);B=B._getTransformedByInsertion(at,m.howMany,_t),q.push(...B)}return M&&q.push(M._getTransformedByMove(m.sourcePosition,m.targetPosition,m.howMany,!1)[0]),q}(d.range,r).map(l=>new mc(l,d.key,d.oldValue,d.newValue,d.baseVersion))),br(mc,Qr,(d,r)=>{if(d.range.end.isEqual(r.insertionPosition))return r.graveyardPosition||d.range.end.offset++,[d];if(d.range.start.hasSameParentAs(r.splitPosition)&&d.range.containsPosition(r.splitPosition)){const l=d.clone();return l.range=new zi(r.moveTargetPosition.clone(),d.range.end._getCombined(r.splitPosition,r.moveTargetPosition)),d.range.end=r.splitPosition.clone(),d.range.end.stickiness="toPrevious",[d,l]}return d.range=d.range._getTransformedBySplitOperation(r),[d]}),br(ka,mc,(d,r)=>{const l=[d];if(d.shouldReceiveAttributes&&d.position.hasSameParentAs(r.range.start)&&r.range.containsPosition(d.position)){const m=dp(d,r.key,r.newValue);m&&l.push(m)}return l}),br(ka,ka,(d,r,l)=>(d.position.isEqual(r.position)&&l.aIsStrong||(d.position=d.position._getTransformedByInsertOperation(r)),[d])),br(ka,ns,(d,r)=>(d.position=d.position._getTransformedByMoveOperation(r),[d])),br(ka,Qr,(d,r)=>(d.position=d.position._getTransformedBySplitOperation(r),[d])),br(ka,ya,(d,r)=>(d.position=d.position._getTransformedByMergeOperation(r),[d])),br(Sr,ka,(d,r)=>(d.oldRange&&(d.oldRange=d.oldRange._getTransformedByInsertOperation(r)[0]),d.newRange&&(d.newRange=d.newRange._getTransformedByInsertOperation(r)[0]),[d])),br(Sr,Sr,(d,r,l)=>{if(d.name==r.name){if(!l.aIsStrong)return[new fc(0)];d.oldRange=r.newRange?r.newRange.clone():null}return[d]}),br(Sr,ya,(d,r)=>(d.oldRange&&(d.oldRange=d.oldRange._getTransformedByMergeOperation(r)),d.newRange&&(d.newRange=d.newRange._getTransformedByMergeOperation(r)),[d])),br(Sr,ns,(d,r,l)=>{if(d.oldRange&&(d.oldRange=zi._createFromRanges(d.oldRange._getTransformedByMoveOperation(r))),d.newRange){if(l.abRelation){const m=zi._createFromRanges(d.newRange._getTransformedByMoveOperation(r));if("left"==l.abRelation.side&&r.targetPosition.isEqual(d.newRange.start))return d.newRange.start.path=l.abRelation.path,d.newRange.end=m.end,[d];if("right"==l.abRelation.side&&r.targetPosition.isEqual(d.newRange.end))return d.newRange.start=m.start,d.newRange.end.path=l.abRelation.path,[d]}d.newRange=zi._createFromRanges(d.newRange._getTransformedByMoveOperation(r))}return[d]}),br(Sr,Qr,(d,r,l)=>{if(d.oldRange&&(d.oldRange=d.oldRange._getTransformedBySplitOperation(r)),d.newRange){if(l.abRelation){const m=d.newRange._getTransformedBySplitOperation(r);return d.newRange.start.isEqual(r.splitPosition)&&l.abRelation.wasStartBeforeMergedElement?d.newRange.start=po._createAt(r.insertionPosition):d.newRange.start.isEqual(r.splitPosition)&&!l.abRelation.wasInLeftElement&&(d.newRange.start=po._createAt(r.moveTargetPosition)),d.newRange.end=d.newRange.end.isEqual(r.splitPosition)&&l.abRelation.wasInRightElement?po._createAt(r.moveTargetPosition):d.newRange.end.isEqual(r.splitPosition)&&l.abRelation.wasEndBeforeMergedElement?po._createAt(r.insertionPosition):m.end,[d]}d.newRange=d.newRange._getTransformedBySplitOperation(r)}return[d]}),br(ya,ka,(d,r)=>(d.sourcePosition.hasSameParentAs(r.position)&&(d.howMany+=r.howMany),d.sourcePosition=d.sourcePosition._getTransformedByInsertOperation(r),d.targetPosition=d.targetPosition._getTransformedByInsertOperation(r),[d])),br(ya,ya,(d,r,l)=>{if(d.sourcePosition.isEqual(r.sourcePosition)&&d.targetPosition.isEqual(r.targetPosition)){if(l.bWasUndone){const m=r.graveyardPosition.path.slice();return m.push(0),d.sourcePosition=new po(r.graveyardPosition.root,m),d.howMany=0,[d]}return[new fc(0)]}if(d.sourcePosition.isEqual(r.sourcePosition)&&!d.targetPosition.isEqual(r.targetPosition)&&!l.bWasUndone&&"splitAtSource"!=l.abRelation){const m="$graveyard"==d.targetPosition.root.rootName,b="$graveyard"==r.targetPosition.root.rootName;if(b&&!m||(!m||b)&&l.aIsStrong){const S=r.targetPosition._getTransformedByMergeOperation(r),q=d.targetPosition._getTransformedByMergeOperation(r);return[new ns(S,d.howMany,q,0)]}return[new fc(0)]}return d.sourcePosition.hasSameParentAs(r.targetPosition)&&(d.howMany+=r.howMany),d.sourcePosition=d.sourcePosition._getTransformedByMergeOperation(r),d.targetPosition=d.targetPosition._getTransformedByMergeOperation(r),d.graveyardPosition.isEqual(r.graveyardPosition)&&l.aIsStrong||(d.graveyardPosition=d.graveyardPosition._getTransformedByMergeOperation(r)),[d]}),br(ya,ns,(d,r,l)=>{const m=zi._createFromPositionAndShift(r.sourcePosition,r.howMany);return"remove"==r.type&&!l.bWasUndone&&!l.forceWeakRemove&&d.deletionPosition.hasSameParentAs(r.sourcePosition)&&m.containsPosition(d.sourcePosition)?[new fc(0)]:(d.sourcePosition.hasSameParentAs(r.targetPosition)&&(d.howMany+=r.howMany),d.sourcePosition.hasSameParentAs(r.sourcePosition)&&(d.howMany-=r.howMany),d.sourcePosition=d.sourcePosition._getTransformedByMoveOperation(r),d.targetPosition=d.targetPosition._getTransformedByMoveOperation(r),d.graveyardPosition.isEqual(r.targetPosition)||(d.graveyardPosition=d.graveyardPosition._getTransformedByMoveOperation(r)),[d])}),br(ya,Qr,(d,r,l)=>{if(r.graveyardPosition&&(d.graveyardPosition=d.graveyardPosition._getTransformedByDeletion(r.graveyardPosition,1),d.deletionPosition.isEqual(r.graveyardPosition)&&(d.howMany=r.howMany)),d.targetPosition.isEqual(r.splitPosition)){const m=0!=r.howMany,b=r.graveyardPosition&&d.deletionPosition.isEqual(r.graveyardPosition);if(m||b||"mergeTargetNotMoved"==l.abRelation)return d.sourcePosition=d.sourcePosition._getTransformedBySplitOperation(r),[d]}if(d.sourcePosition.isEqual(r.splitPosition)){if("mergeSourceNotMoved"==l.abRelation)return d.howMany=0,d.targetPosition=d.targetPosition._getTransformedBySplitOperation(r),[d];if("mergeSameElement"==l.abRelation||d.sourcePosition.offset>0)return d.sourcePosition=r.moveTargetPosition.clone(),d.targetPosition=d.targetPosition._getTransformedBySplitOperation(r),[d]}return d.sourcePosition.hasSameParentAs(r.splitPosition)&&(d.howMany=r.splitPosition.offset),d.sourcePosition=d.sourcePosition._getTransformedBySplitOperation(r),d.targetPosition=d.targetPosition._getTransformedBySplitOperation(r),[d]}),br(ns,ka,(d,r)=>{const l=zi._createFromPositionAndShift(d.sourcePosition,d.howMany)._getTransformedByInsertOperation(r,!1)[0];return d.sourcePosition=l.start,d.howMany=l.end.offset-l.start.offset,d.targetPosition.isEqual(r.position)||(d.targetPosition=d.targetPosition._getTransformedByInsertOperation(r)),[d]}),br(ns,ns,(d,r,l)=>{const m=zi._createFromPositionAndShift(d.sourcePosition,d.howMany),b=zi._createFromPositionAndShift(r.sourcePosition,r.howMany);let M,S=l.aIsStrong,q=!l.aIsStrong;if("insertBefore"==l.abRelation||"insertAfter"==l.baRelation?q=!0:"insertAfter"!=l.abRelation&&"insertBefore"!=l.baRelation||(q=!1),M=d.targetPosition.isEqual(r.targetPosition)&&q?d.targetPosition._getTransformedByDeletion(r.sourcePosition,r.howMany):d.targetPosition._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany),zp(d,r)&&zp(r,d))return[r.getReversed()];if(m.containsPosition(r.targetPosition)&&m.containsRange(b,!0))return m.start=m.start._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany),m.end=m.end._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany),D_([m],M);if(b.containsPosition(d.targetPosition)&&b.containsRange(m,!0))return m.start=m.start._getCombined(r.sourcePosition,r.getMovedRangeStart()),m.end=m.end._getCombined(r.sourcePosition,r.getMovedRangeStart()),D_([m],M);const B=_s(d.sourcePosition.getParentPath(),r.sourcePosition.getParentPath());if("prefix"==B||"extension"==B)return m.start=m.start._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany),m.end=m.end._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany),D_([m],M);"remove"!=d.type||"remove"==r.type||l.aWasUndone||l.forceWeakRemove?"remove"==d.type||"remove"!=r.type||l.bWasUndone||l.forceWeakRemove||(S=!1):S=!0;const at=[],_t=m.getDifference(b);for(const _e of _t){_e.start=_e.start._getTransformedByDeletion(r.sourcePosition,r.howMany),_e.end=_e.end._getTransformedByDeletion(r.sourcePosition,r.howMany);const Be="same"==_s(_e.start.getParentPath(),r.getMovedRangeStart().getParentPath()),mn=_e._getTransformedByInsertion(r.getMovedRangeStart(),r.howMany,Be);at.push(...mn)}const Zt=m.getIntersection(b);return null!==Zt&&S&&(Zt.start=Zt.start._getCombined(r.sourcePosition,r.getMovedRangeStart()),Zt.end=Zt.end._getCombined(r.sourcePosition,r.getMovedRangeStart()),0===at.length?at.push(Zt):1==at.length?b.start.isBefore(m.start)||b.start.isEqual(m.start)?at.unshift(Zt):at.push(Zt):at.splice(1,0,Zt)),0===at.length?[new fc(d.baseVersion)]:D_(at,M)}),br(ns,Qr,(d,r,l)=>{let m=d.targetPosition.clone();d.targetPosition.isEqual(r.insertionPosition)&&r.graveyardPosition&&"moveTargetAfter"!=l.abRelation||(m=d.targetPosition._getTransformedBySplitOperation(r));const b=zi._createFromPositionAndShift(d.sourcePosition,d.howMany);if(b.end.isEqual(r.insertionPosition))return r.graveyardPosition||d.howMany++,d.targetPosition=m,[d];if(b.start.hasSameParentAs(r.splitPosition)&&b.containsPosition(r.splitPosition)){let S=new zi(r.splitPosition,b.end);return S=S._getTransformedBySplitOperation(r),D_([new zi(b.start,r.splitPosition),S],m)}d.targetPosition.isEqual(r.splitPosition)&&"insertAtSource"==l.abRelation&&(m=r.moveTargetPosition),d.targetPosition.isEqual(r.insertionPosition)&&"insertBetween"==l.abRelation&&(m=d.targetPosition);const M=[b._getTransformedBySplitOperation(r)];if(r.graveyardPosition){const S=b.start.isEqual(r.graveyardPosition)||b.containsPosition(r.graveyardPosition);d.howMany>1&&S&&!l.aWasUndone&&M.push(zi._createFromPositionAndShift(r.insertionPosition,1))}return D_(M,m)}),br(ns,ya,(d,r,l)=>{const m=zi._createFromPositionAndShift(d.sourcePosition,d.howMany);if(r.deletionPosition.hasSameParentAs(d.sourcePosition)&&m.containsPosition(r.sourcePosition))if("remove"!=d.type||l.forceWeakRemove){if(1==d.howMany)return l.bWasUndone?(d.sourcePosition=r.graveyardPosition.clone(),d.targetPosition=d.targetPosition._getTransformedByMergeOperation(r),[d]):[new fc(0)]}else if(!l.aWasUndone){const M=[];let S=r.graveyardPosition.clone(),q=r.targetPosition._getTransformedByMergeOperation(r);d.howMany>1&&(M.push(new ns(d.sourcePosition,d.howMany-1,d.targetPosition,0)),S=S._getTransformedByMove(d.sourcePosition,d.targetPosition,d.howMany-1),q=q._getTransformedByMove(d.sourcePosition,d.targetPosition,d.howMany-1));const B=r.deletionPosition._getCombined(d.sourcePosition,d.targetPosition),at=new ns(S,1,B,0),_t=at.getMovedRangeStart().path.slice();_t.push(0);const Zt=new po(at.targetPosition.root,_t);q=q._getTransformedByMove(S,B,1);const _e=new ns(q,r.howMany,Zt,0);return M.push(at),M.push(_e),M}const b=zi._createFromPositionAndShift(d.sourcePosition,d.howMany)._getTransformedByMergeOperation(r);return d.sourcePosition=b.start,d.howMany=b.end.offset-b.start.offset,d.targetPosition=d.targetPosition._getTransformedByMergeOperation(r),[d]}),br(Hr,ka,(d,r)=>(d.position=d.position._getTransformedByInsertOperation(r),[d])),br(Hr,ya,(d,r)=>d.position.isEqual(r.deletionPosition)?(d.position=r.graveyardPosition.clone(),d.position.stickiness="toNext",[d]):(d.position=d.position._getTransformedByMergeOperation(r),[d])),br(Hr,ns,(d,r)=>(d.position=d.position._getTransformedByMoveOperation(r),[d])),br(Hr,Hr,(d,r,l)=>{if(d.position.isEqual(r.position)){if(!l.aIsStrong)return[new fc(0)];d.oldName=r.newName}return[d]}),br(Hr,Qr,(d,r)=>{if("same"==_s(d.position.path,r.splitPosition.getParentPath())&&!r.graveyardPosition){const l=new Hr(d.position.getShiftedBy(1),d.oldName,d.newName,0);return[d,l]}return d.position=d.position._getTransformedBySplitOperation(r),[d]}),br(bs,bs,(d,r,l)=>{if(d.root===r.root&&d.key===r.key){if(!l.aIsStrong||d.newValue===r.newValue)return[new fc(0)];d.oldValue=r.newValue}return[d]}),br(Qr,ka,(d,r)=>(d.splitPosition.hasSameParentAs(r.position)&&d.splitPosition.offset{if(!d.graveyardPosition&&!l.bWasUndone&&d.splitPosition.hasSameParentAs(r.sourcePosition)){const m=r.graveyardPosition.path.slice();m.push(0);const b=new po(r.graveyardPosition.root,m),M=Qr.getInsertionPosition(new po(r.graveyardPosition.root,m)),S=new Qr(b,0,null,0);return S.insertionPosition=M,d.splitPosition=d.splitPosition._getTransformedByMergeOperation(r),d.insertionPosition=Qr.getInsertionPosition(d.splitPosition),d.graveyardPosition=S.insertionPosition.clone(),d.graveyardPosition.stickiness="toNext",[S,d]}return d.splitPosition.hasSameParentAs(r.deletionPosition)&&!d.splitPosition.isAfter(r.deletionPosition)&&d.howMany--,d.splitPosition.hasSameParentAs(r.targetPosition)&&(d.howMany+=r.howMany),d.splitPosition=d.splitPosition._getTransformedByMergeOperation(r),d.insertionPosition=Qr.getInsertionPosition(d.splitPosition),d.graveyardPosition&&(d.graveyardPosition=d.graveyardPosition._getTransformedByMergeOperation(r)),[d]}),br(Qr,ns,(d,r,l)=>{const m=zi._createFromPositionAndShift(r.sourcePosition,r.howMany);if(d.graveyardPosition){const b=m.start.isEqual(d.graveyardPosition)||m.containsPosition(d.graveyardPosition);if(!l.bWasUndone&&b){const M=d.splitPosition._getTransformedByMoveOperation(r),S=d.graveyardPosition._getTransformedByMoveOperation(r),q=S.path.slice();q.push(0);const B=new po(S.root,q);return[new ns(M,d.howMany,B,0)]}d.graveyardPosition=d.graveyardPosition._getTransformedByMoveOperation(r)}return d.splitPosition.hasSameParentAs(r.sourcePosition)&&m.containsPosition(d.splitPosition)?(d.howMany-=r.howMany-(d.splitPosition.offset-r.sourcePosition.offset),d.splitPosition.hasSameParentAs(r.targetPosition)&&d.splitPosition.offset{if(d.splitPosition.isEqual(r.splitPosition)){if(!d.graveyardPosition&&!r.graveyardPosition)return[new fc(0)];if(d.graveyardPosition&&r.graveyardPosition&&d.graveyardPosition.isEqual(r.graveyardPosition))return[new fc(0)];if("splitBefore"==l.abRelation)return d.howMany=0,d.graveyardPosition=d.graveyardPosition._getTransformedBySplitOperation(r),[d]}if(d.graveyardPosition&&r.graveyardPosition&&d.graveyardPosition.isEqual(r.graveyardPosition)){const m="$graveyard"==d.splitPosition.root.rootName,b="$graveyard"==r.splitPosition.root.rootName;if(b&&!m||(!m||b)&&l.aIsStrong){const S=[];return r.howMany&&S.push(new ns(r.moveTargetPosition,r.howMany,r.splitPosition,0)),d.howMany&&S.push(new ns(d.splitPosition,d.howMany,d.moveTargetPosition,0)),S}return[new fc(0)]}if(d.graveyardPosition&&(d.graveyardPosition=d.graveyardPosition._getTransformedBySplitOperation(r)),d.splitPosition.isEqual(r.insertionPosition)&&"splitBefore"==l.abRelation)return d.howMany++,[d];if(r.splitPosition.isEqual(d.insertionPosition)&&"splitBefore"==l.baRelation){const m=r.insertionPosition.path.slice();m.push(0);const b=new po(r.insertionPosition.root,m);return[d,new ns(d.insertionPosition,1,b,0)]}return d.splitPosition.hasSameParentAs(r.splitPosition)&&d.splitPosition.offsetthis.clearStack())}refresh(){this.isEnabled=this._stack.length>0}addBatch(r){const l=this.editor.model.document.selection,m={ranges:l.hasOwnRange?Array.from(l.getRanges()):[],isBackward:l.isBackward};this._stack.push({batch:r,selection:m}),this.refresh()}clearStack(){this._stack=[],this.refresh()}_restoreSelection(r,l,m){const b=this.editor.model,M=b.document,S=[],q=r.map(at=>at.getTransformedByOperations(m)),B=q.flat();for(const at of q){const _t=at.filter(_e=>!Sm(_e,B));A2(_t);const Zt=_t.find(_e=>_e.root!=M.graveyard);Zt&&S.push(Zt)}S.length&&b.change(at=>{at.setSelection(S,{backward:l})})}_undo(r,l){const m=this.editor.model,b=m.document;this._createdBatches.add(l);const M=r.operations.slice().filter(S=>S.isDocumentOperation);M.reverse();for(const S of M){const B=Array.from(b.history.getOperations(S.baseVersion+1)),at=F1([S.getReversed()],B,{useRelations:!0,document:this.editor.model.document,padWithNoOps:!1,forceWeakRemove:!0}).operationsA;for(const _t of at)l.addOperation(_t),m.applyOperation(_t),b.history.setOperationAsUndone(S,_t)}}}function A2(d){d.sort((r,l)=>r.start.isBefore(l.start)?-1:1);for(let r=1;rl!==d&&l.containsRange(d,!0))}class w0 extends U0{execute(r=null){const l=r?this._stack.findIndex(M=>M.batch==r):this._stack.length-1,m=this._stack.splice(l,1)[0],b=this.editor.model.createBatch("transparent");this.editor.model.enqueueChange(b,()=>{this._undo(m.batch,b);const M=this.editor.model.document.history.getOperations(m.batch.baseVersion);this._restoreSelection(m.selection.ranges,m.selection.isBackward,M),this.fire("revert",m.batch,b)}),this.refresh()}}class M0 extends U0{execute(){const r=this._stack.pop(),l=this.editor.model.createBatch("transparent");this.editor.model.enqueueChange(l,()=>{const b=this.editor.model.document.history.getOperations(r.batch.operations[r.batch.operations.length-1].baseVersion+1);this._restoreSelection(r.selection.ranges,r.selection.isBackward,b),this._undo(r.batch,l)}),this.refresh()}}class If extends Eo{static get pluginName(){return"UndoEditing"}constructor(r){super(r),this._batchRegistry=new WeakSet}init(){const r=this.editor;this._undoCommand=new w0(r),this._redoCommand=new M0(r),r.commands.add("undo",this._undoCommand),r.commands.add("redo",this._redoCommand),this.listenTo(r.model,"applyOperation",(l,m)=>{const b=m[0];if(!b.isDocumentOperation)return;const M=b.batch,S=this._redoCommand._createdBatches.has(M),q=this._undoCommand._createdBatches.has(M);this._batchRegistry.has(M)||"transparent"==M.type&&!S&&!q||(S?this._undoCommand.addBatch(M):q||(this._undoCommand.addBatch(M),this._redoCommand.clearStack()),this._batchRegistry.add(M))},{priority:"highest"}),this.listenTo(this._undoCommand,"revert",(l,m,b)=>{this._redoCommand.addBatch(b)}),r.keystrokes.set("CTRL+Z","undo"),r.keystrokes.set("CTRL+Y","redo"),r.keystrokes.set("CTRL+SHIFT+Z","redo")}}var Ea='',qf='';class Z0 extends Eo{init(){const r=this.editor,l=r.locale,m=r.t,b="ltr"==l.uiLanguageDirection?Ea:qf,M="ltr"==l.uiLanguageDirection?qf:Ea;this._addButton("undo",m("Undo"),"CTRL+Z",b),this._addButton("redo",m("Redo"),"CTRL+Y",M)}_addButton(r,l,m,b){const M=this.editor;M.ui.componentFactory.add(r,S=>{const q=M.commands.get(r),B=new Rs(S);return B.set({label:l,icon:b,keystroke:m,tooltip:!0}),B.bind("isEnabled").to(q,"isEnabled"),this.listenTo(B,"execute",()=>{M.execute(r),M.editing.view.focus()}),B})}}class Rf extends Eo{static get requires(){return[If,Z0]}static get pluginName(){return"Undo"}}class U2{constructor(r){this.context=r}destroy(){this.stopListening()}static get isContextPlugin(){return!0}}io(U2,kt);class D0 extends U2{static get pluginName(){return"PendingActions"}init(){this.set("hasAny",!1),this._actions=new Nr({idProperty:"_id"}),this._actions.delegate("add","remove").to(this)}add(r){if("string"!=typeof r)throw new Qn.b("pendingactions-add-invalid-message: The message must be a string.",this);const l=Object.create(kt);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 Hf{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((m,b)=>{l.onload=()=>{const M=l.result;this._data=M,m(M)},l.onerror=()=>{b("error")},l.onabort=()=>{b("aborted")},this._reader.readAsDataURL(r)})}abort(){this._reader.abort()}}io(Hf,kt);class N1 extends Eo{static get pluginName(){return"FileRepository"}static get requires(){return[D0]}init(){this.loaders=new Nr,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(Qn.a)("filerepository-no-upload-adapter: Upload adapter is not defined.")),null;const l=new Yf(Promise.resolve(r),this.createUploadAdapter);return this.loaders.add(l),this._loadersMap.set(r,l),r instanceof Promise&&l.file.then(m=>{this._loadersMap.set(m,l)}).catch(()=>{}),l.on("change:uploaded",()=>{let m=0;for(const b of this.loaders)m+=b.uploaded;this.uploaded=m}),l.on("change:uploadTotal",()=>{let m=0;for(const b of this.loaders)b.uploadTotal&&(m+=b.uploadTotal);this.uploadTotal=m}),l}destroyLoader(r){const l=r instanceof Yf?r:this.getLoader(r);l._destroy(),this.loaders.remove(l),this._loadersMap.forEach((m,b)=>{m===l&&this._loadersMap.delete(b)})}_updatePendingAction(){const r=this.editor.plugins.get(D0);if(this.loaders.length){if(!this._pendingAction){const l=this.editor.t,m=b=>`${l("Upload in progress")} ${parseInt(b)}%.`;this._pendingAction=r.add(m(this.uploadedPercent)),this._pendingAction.bind("message").to(this,"uploadedPercent",m)}}else r.remove(this._pendingAction),this._pendingAction=null}}io(N1,kt);class Yf{constructor(r,l){this.id=vr(),this._filePromiseWrapper=this._createFilePromiseWrapper(r),this._adapter=l(this),this._reader=new Hf,this.set("status","idle"),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(m,b)=>b?m/b*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 Qn.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 Qn.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((m,b)=>{l.rejecter=b,l.isFulfilled=!1,r.then(M=>{l.isFulfilled=!0,m(M)}).catch(M=>{l.isFulfilled=!0,b(M)})}),l}}io(Yf,kt);class P0 extends Eo{static get requires(){return[N1]}static get pluginName(){return"CKFinderUploadAdapter"}init(){const r=this.editor.config.get("ckfinder.uploadUrl");r&&(this.editor.plugins.get(N1).createUploadAdapter=l=>new P_(l,r,this.editor.t))}}class P_{constructor(r,l,m){this.loader=r,this.url=l,this.t=m}upload(){return this.loader.file.then(r=>new Promise((l,m)=>{this._initRequest(),this._initListeners(l,m,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,m){const b=this.xhr,M=this.loader,S=(0,this.t)("Cannot upload file:")+` ${m.name}.`;b.addEventListener("error",()=>l(S)),b.addEventListener("abort",()=>l()),b.addEventListener("load",()=>{const q=b.response;if(!q||!q.uploaded)return l(q&&q.error&&q.error.message?q.error.message:S);r({default:q.url})}),b.upload&&b.upload.addEventListener("progress",q=>{q.lengthComputable&&(M.uploadTotal=q.total,M.uploaded=q.loaded)})}_sendRequest(r){const l=new FormData;l.append("upload",r),l.append("ckCsrfToken",function mg(){let d=function(m){m=m.toLowerCase();const b=document.cookie.split(";");for(const M of b){const S=M.split("=");if(decodeURIComponent(S[0].trim().toLowerCase())===m)return decodeURIComponent(S[1])}return null}("ckCsrfToken");var l;return d&&40==d.length||(d=function(m){let b="";const M=new Uint8Array(40);window.crypto.getRandomValues(M);for(let S=0;S.5?q.toUpperCase():q}return b}(),l=d,document.cookie=encodeURIComponent("ckCsrfToken")+"="+encodeURIComponent(l)+";path=/"),d}()),this.xhr.send(l)}}function eu(d){const r=d.next();return r.done?null:r.value}function Uc(d,r,l,m){let b,M=null;"function"==typeof m?b=m:(M=d.commands.get(m),b=()=>{d.execute(m)}),d.model.document.on("change:data",(S,q)=>{if(M&&!M.isEnabled||!r.isEnabled)return;const B=eu(d.model.document.selection.getRanges());if(!B.isCollapsed||"transparent"==q.type)return;const at=Array.from(d.model.document.differ.getChanges()),_t=at[0];if(1!=at.length||"insert"!==_t.type||"$text"!=_t.name||1!=_t.length)return;const Zt=_t.position.parent;if(Zt.is("element","codeBlock")||M&&!0===M.value)return;const _e=Zt.getChild(0),Be=d.model.createRangeOn(_e);if(!Be.containsRange(B)&&!B.end.isEqual(Be.end))return;const mn=l.exec(_e.data.substr(0,B.end.offset));mn&&d.model.enqueueChange(Mn=>{const In=Mn.createPositionAt(Zt,0),Gn=Mn.createPositionAt(Zt,mn[0].length),Fi=new Pp(In,Gn);!1!==b({match:mn})&&Mn.remove(Fi),Fi.detach()})})}function dd(d,r,l,m){let b,M;l instanceof RegExp?b=l:M=l,M=M||(S=>{let q;const B=[],at=[];for(;null!==(q=b.exec(S))&&!(q&&q.length<4);){let{index:_t,1:Zt,2:_e,3:Be}=q;_t+=q[0].length-(Zt+_e+Be).length;const In=[_t+Zt.length+_e.length,_t+Zt.length+_e.length+Be.length];B.push([_t,_t+Zt.length]),B.push(In),at.push([_t+Zt.length,_t+Zt.length+_e.length])}return{remove:B,format:at}}),d.model.document.on("change:data",(S,q)=>{if("transparent"==q.type||!r.isEnabled)return;const B=d.model,at=B.document.selection;if(!at.isCollapsed)return;const _t=Array.from(B.document.differ.getChanges()),Zt=_t[0];if(1!=_t.length||"insert"!==Zt.type||"$text"!=Zt.name||1!=Zt.length)return;const _e=at.focus,Be=_e.parent,{text:mn,range:Mn}=function(Ji,Do){let ba=Ji.start;return{text:Array.from(Ji.getItems()).reduce((Yc,cs)=>!cs.is("$text")&&!cs.is("$textProxy")||cs.getAttribute("code")?(ba=Do.createPositionAfter(cs),""):Yc+cs.data,""),range:Do.createRange(ba,Ji.end)}}(B.createRange(B.createPositionAt(Be,0),_e),B),In=M(mn),Gn=_g(Mn.start,In.format,B),Fi=_g(Mn.start,In.remove,B);Gn.length&&Fi.length&&B.enqueueChange(Ji=>{if(!1!==m(Ji,Gn))for(const Do of Fi.reverse())Ji.remove(Do)})})}function _g(d,r,l){return r.filter(m=>void 0!==m[0]&&void 0!==m[1]).map(m=>l.createRange(d.getShiftedBy(m[0]),d.getShiftedBy(m[1])))}function pd(d,r){return(l,m)=>{if(!d.commands.get(r).isEnabled)return!1;const b=d.model.schema.getValidRanges(m,r);for(const M of b)l.setAttribute(r,!0,M);l.removeSelectionAttribute(r)}}class Fa extends Ha{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,m=l.document.selection,b=void 0===r.forceValue?!this.value:r.forceValue;l.change(M=>{if(m.isCollapsed)b?M.setSelectionAttribute(this.attributeKey,!0):M.removeSelectionAttribute(this.attributeKey);else{const S=l.schema.getValidRanges(m.getRanges(),this.attributeKey);for(const q of S)b?M.setAttribute(this.attributeKey,b,q):M.removeAttribute(this.attributeKey,q)}})}_getValueFromFirstAllowedNode(){const r=this.editor.model,l=r.schema,m=r.document.selection;if(m.isCollapsed)return m.hasAttribute(this.attributeKey);for(const b of m.getRanges())for(const M of b.getItems())if(l.checkAttribute(M,this.attributeKey))return M.hasAttribute(this.attributeKey);return!1}}class zf extends Eo{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 m=l.getStyle("font-weight");return m?"bold"==m||Number(m)>=600?{name:!0,styles:["font-weight"]}:void 0:null}]}),r.commands.add("bold",new Fa(r,"bold")),r.keystrokes.set("CTRL+B","bold")}}class Yu extends Eo{init(){const r=this.editor,l=r.t;r.ui.componentFactory.add("bold",m=>{const b=r.commands.get("bold"),M=new Rs(m);return M.set({label:l("Bold"),icon:'',keystroke:"CTRL+B",tooltip:!0,isToggleable:!0}),M.bind("isOn","isEnabled").to(b,"value","isEnabled"),this.listenTo(M,"execute",()=>{r.execute("bold"),r.editing.view.focus()}),M})}}class Rc extends Eo{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 Fa(r,"italic")),r.keystrokes.set("CTRL+I","italic")}}class w2 extends Eo{init(){const r=this.editor,l=r.t;r.ui.componentFactory.add("italic",m=>{const b=r.commands.get("italic"),M=new Rs(m);return M.set({label:l("Italic"),icon:'',keystroke:"CTRL+I",tooltip:!0,isToggleable:!0}),M.bind("isOn","isEnabled").to(b,"value","isEnabled"),this.listenTo(M,"execute",()=>{r.execute("italic"),r.editing.view.focus()}),M})}}class I1 extends Ha{refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(r={}){const l=this.editor.model,m=l.schema,M=Array.from(l.document.selection.getSelectedBlocks()),S=void 0===r.forceValue?!this.value:r.forceValue;l.change(q=>{if(S){const B=M.filter(at=>M2(at)||k0(m,at));this._applyQuote(q,B)}else this._removeQuote(q,M.filter(M2))})}_getValue(){const r=eu(this.editor.model.document.selection.getSelectedBlocks());return!(!r||!M2(r))}_checkEnabled(){if(this.value)return!0;const l=this.editor.model.schema,m=eu(this.editor.model.document.selection.getSelectedBlocks());return!!m&&k0(l,m)}_removeQuote(r,l){Y3(r,l).reverse().forEach(m=>{if(m.start.isAtStart&&m.end.isAtEnd)return void r.unwrap(m.start.parent);if(m.start.isAtStart){const M=r.createPositionBefore(m.start.parent);return void r.move(m,M)}m.end.isAtEnd||r.split(m.end);const b=r.createPositionAfter(m.end.parent);r.move(m,b)})}_applyQuote(r,l){const m=[];Y3(r,l).reverse().forEach(b=>{let M=M2(b.start);M||(M=r.createElement("blockQuote"),r.wrap(b,M)),m.push(M)}),m.reverse().reduce((b,M)=>b.nextSibling==M?(r.merge(r.createPositionAfter(b)),b):M)}}function M2(d){return"blockQuote"==d.parent.name?d.parent:null}function Y3(d,r){let l,m=0;const b=[];for(;m{if(m.endsWith("blockQuote")&&"blockQuote"==b.name)return!1}),r.conversion.elementToElement({model:"blockQuote",view:"blockquote"}),r.model.document.registerPostFixer(m=>{const b=r.model.document.differ.getChanges();for(const M of b)if("insert"==M.type){const S=M.position.nodeAfter;if(!S)continue;if(S.is("element","blockQuote")&&S.isEmpty)return m.remove(S),!0;if(S.is("element","blockQuote")&&!l.checkChild(M.position,S))return m.unwrap(S),!0;if(S.is("element")){const q=m.createRangeIn(S);for(const B of q.getItems())if(B.is("element","blockQuote")&&!l.checkChild(m.createPositionBefore(B),B))return m.unwrap(B),!0}}else if("remove"==M.type){const S=M.position.parent;if(S.is("element","blockQuote")&&S.isEmpty)return m.remove(S),!0}return!1})}afterInit(){const r=this.editor.commands.get("blockQuote");this.listenTo(this.editor.editing.view.document,"enter",(l,m)=>{const b=this.editor.model.document,M=b.selection.getLastPosition().parent;b.selection.isCollapsed&&M.isEmpty&&r.value&&(this.editor.execute("blockQuote"),this.editor.editing.view.scrollToTheSelection(),m.preventDefault(),l.stop())})}}p(43);class Z2 extends Eo{init(){const r=this.editor,l=r.t;r.ui.componentFactory.add("blockQuote",m=>{const b=r.commands.get("blockQuote"),M=new Rs(m);return M.set({label:l("Block quote"),icon:'',tooltip:!0,isToggleable:!0}),M.bind("isOn","isEnabled").to(b,"value","isEnabled"),this.listenTo(M,"execute",()=>{r.execute("blockQuote"),r.editing.view.focus()}),M})}}class D2 extends Eo{static get pluginName(){return"CKFinderUI"}init(){const r=this.editor,m=r.t;r.ui.componentFactory.add("ckfinder",b=>{const M=r.commands.get("ckfinder"),S=new Rs(b);return S.set({label:m("Insert image or file"),icon:'',tooltip:!0}),S.bind("isEnabled").to(M),S.on("execute",()=>{r.execute("ckfinder"),r.editing.view.focus()}),S})}}class P2 extends Co{observe(r){this.listenTo(r,"load",(l,m)=>{"IMG"==m.target.tagName&&this._fireEvents(m)},{useCapture:!0})}_fireEvents(r){this.isEnabled&&(this.document.fire("layoutChanged"),this.document.fire("imageLoaded",r))}}class zu{constructor(){this._stack=[]}add(r,l){const m=this._stack,b=m[0];this._insertDescriptor(r);const M=m[0];b===M||Om(b,M)||this.fire("change:top",{oldDescriptor:b,newDescriptor:M,writer:l})}remove(r,l){const m=this._stack,b=m[0];this._removeDescriptor(r);const M=m[0];b===M||Om(b,M)||this.fire("change:top",{oldDescriptor:b,newDescriptor:M,writer:l})}_insertDescriptor(r){const l=this._stack,m=l.findIndex(M=>M.id===r.id);if(Om(r,l[m]))return;m>-1&&l.splice(m,1);let b=0;for(;l[b]&&q1(l[b],r);)b++;l.splice(b,0,r)}_removeDescriptor(r){const l=this._stack,m=l.findIndex(b=>b.id===r);m>-1&&l.splice(m,1)}}function Om(d,r){return d&&r&&d.priority==r.priority&&Mr(d.classes)==Mr(r.classes)}function q1(d,r){return d.priority>r.priority||!(d.priorityMr(r.classes)}function Mr(d){return Array.isArray(d)?d.sort().join(","):d}io(zu,Za),p(45);const ss=hu("px"),fg=ft.document.body;class $a extends Xo{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",m=>"ck-balloon-panel_"+m),l.if("isVisible","ck-balloon-panel_visible"),l.if("withArrow","ck-balloon-panel_with-arrow"),l.to("class")],style:{top:l.to("top",ss),left:l.to("left",ss)}},children:this.content})}show(){this.isVisible=!0}hide(){this.isVisible=!1}attachTo(r){this.show();const l=$a.defaultPositions,m=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:fg,fitInViewport:!0},r),b=$a._getOptimalPosition(m),M=parseInt(b.left),S=parseInt(b.top);Object.assign(this,{top:S,left:M,position:b.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=Vf(r.target),m=r.limiter?Vf(r.limiter):fg;this.listenTo(ft.document,"scroll",(b,M)=>{const S=M.target,q=l&&S.contains(l),B=m&&S.contains(m);!q&&!B&&l&&m||this.attachTo(r)},{useCapture:!0}),this.listenTo(ft.window,"resize",()=>{this.attachTo(r)})}_stopPinning(){this.stopListening(ft.document,"scroll"),this.stopListening(ft.window,"resize")}}function Vf(d){return As(d)?d:vt(d)?d.commonAncestorContainer:"function"==typeof d?Vf(d()):null}function wc(d,r){return d.top-r.height-$a.arrowVerticalOffset}function nu(d){return d.bottom+$a.arrowVerticalOffset}function pp(d,r,l){return d&&mp(d)&&!l.isInline(r)}function Ld(d){return d.getAttribute("widget-type-around")}function mp(d){return!!d.is("element")&&!!d.getCustomProperty("widget")}function c1(d,r,l={}){if(!d.is("containerElement"))throw new Qn.b("widget-to-widget-wrong-element-type: The element passed to toWidget() must be a container element instance.",null,{element:d});return r.setAttribute("contenteditable","false",d),r.addClass("ck-widget",d),r.setCustomProperty("widget",!0,d),d.getFillerOffset=R1,l.label&&r.setCustomProperty("widgetLabel",l.label,d),l.hasSelectionHandle&&function(b,M){const S=M.createUIElement("div",{class:"ck ck-widget__selection-handle"},function(q){const B=this.toDomElement(q),at=new Tm;return at.set("content",''),at.render(),B.appendChild(at.element),B});M.insert(M.createPositionAt(b,0),S),M.addClass(["ck-widget_with-selection-handle"],b)}(d,r),S_(d,r,(b,M,S)=>S.addClass(m(M.classes),b),(b,M,S)=>S.removeClass(m(M.classes),b)),d;function m(b){return Array.isArray(b)?b:[b]}}function S_(d,r,l,m){const b=new zu;b.on("change:top",(M,S)=>{S.oldDescriptor&&m(d,S.oldDescriptor,S.writer),S.newDescriptor&&l(d,S.newDescriptor,S.writer)}),r.setCustomProperty("addHighlight",(M,S,q)=>b.add(S,q),d),r.setCustomProperty("removeHighlight",(M,S,q)=>b.remove(S,q),d)}function r6(d){const r=d.getCustomProperty("widgetLabel");return r?"function"==typeof r?r():r:""}function iu(d,r){return r.addClass(["ck-editor__editable","ck-editor__nested-editable"],d),r.setAttribute("contenteditable",d.isReadOnly?"false":"true",d),d.on("change:isReadOnly",(l,m,b)=>{r.setAttribute("contenteditable",b?"false":"true",d)}),d.on("change:isFocused",(l,m,b)=>{b?r.addClass("ck-editor__nested-editable_focused",d):r.removeClass("ck-editor__nested-editable_focused",d)}),d}function _p(d,r){const l=d.getSelectedElement();if(l){const b=Ld(d);if(b)return r.createPositionAt(l,b);if(r.schema.isBlock(l))return r.createPositionAfter(l)}const m=d.getSelectedBlocks().next().value;if(m){if(m.isEmpty)return r.createPositionAt(m,0);const b=r.createPositionAfter(m);return d.focus.isTouching(b)?b:r.createPositionBefore(m)}return d.focus}function gu(d,r){const l=new Ds(ft.window),m=l.getIntersection(d),b=r.height+$a.arrowVerticalOffset;if(d.top-b>l.top||d.bottom+b!b.is("element","image"))}function ou(d){const r=[];for(const l of d.getChildren())r.push(l),l.is("element")&&r.push(...l.getChildren());return r.find(l=>l.is("element","img"))}function hp(d){return l=>{l.on(`attribute:${d}:image`,r)};function r(l,m,b){if(!b.consumable.consume(m.item,l.name))return;const M=b.writer,S=ou(b.mapper.toViewElement(m.item));M.setAttribute(m.attributeKey,m.attributeNewValue||"",S)}}$a.arrowHorizontalOffset=25,$a.arrowVerticalOffset=10,$a._getOptimalPosition=U_,$a.defaultPositions={northWestArrowSouthWest:(d,r)=>({top:wc(d,r),left:d.left-$a.arrowHorizontalOffset,name:"arrow_sw"}),northWestArrowSouthMiddleWest:(d,r)=>({top:wc(d,r),left:d.left-.25*r.width-$a.arrowHorizontalOffset,name:"arrow_smw"}),northWestArrowSouth:(d,r)=>({top:wc(d,r),left:d.left-r.width/2,name:"arrow_s"}),northWestArrowSouthMiddleEast:(d,r)=>({top:wc(d,r),left:d.left-.75*r.width+$a.arrowHorizontalOffset,name:"arrow_sme"}),northWestArrowSouthEast:(d,r)=>({top:wc(d,r),left:d.left-r.width+$a.arrowHorizontalOffset,name:"arrow_se"}),northArrowSouthWest:(d,r)=>({top:wc(d,r),left:d.left+d.width/2-$a.arrowHorizontalOffset,name:"arrow_sw"}),northArrowSouthMiddleWest:(d,r)=>({top:wc(d,r),left:d.left+d.width/2-.25*r.width-$a.arrowHorizontalOffset,name:"arrow_smw"}),northArrowSouth:(d,r)=>({top:wc(d,r),left:d.left+d.width/2-r.width/2,name:"arrow_s"}),northArrowSouthMiddleEast:(d,r)=>({top:wc(d,r),left:d.left+d.width/2-.75*r.width+$a.arrowHorizontalOffset,name:"arrow_sme"}),northArrowSouthEast:(d,r)=>({top:wc(d,r),left:d.left+d.width/2-r.width+$a.arrowHorizontalOffset,name:"arrow_se"}),northEastArrowSouthWest:(d,r)=>({top:wc(d,r),left:d.right-$a.arrowHorizontalOffset,name:"arrow_sw"}),northEastArrowSouthMiddleWest:(d,r)=>({top:wc(d,r),left:d.right-.25*r.width-$a.arrowHorizontalOffset,name:"arrow_smw"}),northEastArrowSouth:(d,r)=>({top:wc(d,r),left:d.right-r.width/2,name:"arrow_s"}),northEastArrowSouthMiddleEast:(d,r)=>({top:wc(d,r),left:d.right-.75*r.width+$a.arrowHorizontalOffset,name:"arrow_sme"}),northEastArrowSouthEast:(d,r)=>({top:wc(d,r),left:d.right-r.width+$a.arrowHorizontalOffset,name:"arrow_se"}),southWestArrowNorthWest:(d,r)=>({top:nu(d),left:d.left-$a.arrowHorizontalOffset,name:"arrow_nw"}),southWestArrowNorthMiddleWest:(d,r)=>({top:nu(d),left:d.left-.25*r.width-$a.arrowHorizontalOffset,name:"arrow_nmw"}),southWestArrowNorth:(d,r)=>({top:nu(d),left:d.left-r.width/2,name:"arrow_n"}),southWestArrowNorthMiddleEast:(d,r)=>({top:nu(d),left:d.left-.75*r.width+$a.arrowHorizontalOffset,name:"arrow_nme"}),southWestArrowNorthEast:(d,r)=>({top:nu(d),left:d.left-r.width+$a.arrowHorizontalOffset,name:"arrow_ne"}),southArrowNorthWest:(d,r)=>({top:nu(d),left:d.left+d.width/2-$a.arrowHorizontalOffset,name:"arrow_nw"}),southArrowNorthMiddleWest:(d,r)=>({top:nu(d),left:d.left+d.width/2-.25*r.width-$a.arrowHorizontalOffset,name:"arrow_nmw"}),southArrowNorth:(d,r)=>({top:nu(d),left:d.left+d.width/2-r.width/2,name:"arrow_n"}),southArrowNorthMiddleEast:(d,r)=>({top:nu(d),left:d.left+d.width/2-.75*r.width+$a.arrowHorizontalOffset,name:"arrow_nme"}),southArrowNorthEast:(d,r)=>({top:nu(d),left:d.left+d.width/2-r.width+$a.arrowHorizontalOffset,name:"arrow_ne"}),southEastArrowNorthWest:(d,r)=>({top:nu(d),left:d.right-$a.arrowHorizontalOffset,name:"arrow_nw"}),southEastArrowNorthMiddleWest:(d,r)=>({top:nu(d),left:d.right-.25*r.width-$a.arrowHorizontalOffset,name:"arrow_nmw"}),southEastArrowNorth:(d,r)=>({top:nu(d),left:d.right-r.width/2,name:"arrow_n"}),southEastArrowNorthMiddleEast:(d,r)=>({top:nu(d),left:d.right-.75*r.width+$a.arrowHorizontalOffset,name:"arrow_nme"}),southEastArrowNorthEast:(d,r)=>({top:nu(d),left:d.right-r.width+$a.arrowHorizontalOffset,name:"arrow_ne"})};class Ed extends Ha{refresh(){this.isEnabled=fp(this.editor.model)}execute(r){const l=this.editor.model;l.change(m=>{const b=Array.isArray(r.source)?r.source:[r.source];for(const M of b)Bf(m,l,{src:M})})}}class Sa extends Eo{static get pluginName(){return"ImageEditing"}init(){const r=this.editor,l=r.model.schema,m=r.t,b=r.conversion;r.editing.view.addObserver(P2),l.register("image",{isObject:!0,isBlock:!0,allowWhere:"$block",allowAttributes:["alt","src","srcset"]}),b.for("dataDowncast").elementToElement({model:"image",view:(M,S)=>S0(S)}),b.for("editingDowncast").elementToElement({model:"image",view:(M,S)=>{return q=S0(S),B=S,at=m("image widget"),B.setCustomProperty("image",!0,q),c1(q,B,{label:function(){const _t=ou(q).getAttribute("alt");return _t?`${_t} ${at}`:at}});var q,B,at}}),b.for("downcast").add(hp("src")).add(hp("alt")).add(function(){return S=>{S.on("attribute:srcset:image",M)};function M(S,q,B){if(!B.consumable.consume(q.item,S.name))return;const at=B.writer,_t=ou(B.mapper.toViewElement(q.item));if(null===q.attributeNewValue){const Zt=q.attributeOldValue;Zt.data&&(at.removeAttribute("srcset",_t),at.removeAttribute("sizes",_t),Zt.width&&at.removeAttribute("width",_t))}else{const Zt=q.attributeNewValue;Zt.data&&(at.setAttribute("srcset",Zt.data,_t),at.setAttribute("sizes","100vw",_t),Zt.width&&at.setAttribute("width",Zt.width,_t))}}}()),b.for("upcast").elementToElement({view:{name:"img",attributes:{src:!0}},model:(M,S)=>S.createElement("image",{src:M.getAttribute("src")})}).attributeToAttribute({view:{name:"img",key:"alt"},model:"alt"}).attributeToAttribute({view:{name:"img",key:"srcset"},model:{key:"srcset",value:M=>{const S={data:M.getAttribute("srcset")};return M.hasAttribute("width")&&(S.width=M.getAttribute("width")),S}}}).add(function(){return S=>{S.on("element:figure",M)};function M(S,q,B){if(!B.consumable.test(q.viewItem,{name:!0,classes:"image"}))return;const at=ou(q.viewItem);if(!at||!at.hasAttribute("src")||!B.consumable.test(at,{name:!0}))return;const _t=B.convertItem(at,q.modelCursor),Zt=eu(_t.modelRange.getItems());Zt&&(B.convertChildren(q.viewItem,B.writer.createPositionAt(Zt,0)),q.modelRange=_t.modelRange,q.modelCursor=_t.modelCursor)}}()),r.commands.add("imageInsert",new Ed(r))}}function S0(d){const r=d.createEmptyElement("img"),l=d.createContainerElement("figure",{class:"image"});return d.insert(d.createPositionAt(l,0),r),l}class vu extends U1{constructor(r){super(r),this.domEventType="mousedown"}onDomEvent(r){this.fire(r.type,r)}}class O0 extends Eo{static get pluginName(){return"TwoStepCaretMovement"}constructor(r){super(r),this.attributes=new Set,this._overrideUid=null}init(){const r=this.editor,b=r.locale,M=r.model.document.selection;this.listenTo(r.editing.view.document,"keydown",(S,q)=>{if(!M.isCollapsed||q.shiftKey||q.altKey||q.ctrlKey)return;const B=q.keyCode==sa.arrowright,at=q.keyCode==sa.arrowleft;if(!B&&!at)return;const _t=b.contentLanguageDirection;let Zt=!1;Zt="ltr"===_t&&B||"rtl"===_t&&at?this._handleForwardMovement(q):this._handleBackwardMovement(q),!0===Zt&&S.stop()},{priority:as.get("high")+1}),this._isNextGravityRestorationSkipped=!1,this.listenTo(M,"change:range",(S,q)=>{this._isNextGravityRestorationSkipped?this._isNextGravityRestorationSkipped=!1:this._isGravityOverridden&&(!q.directChange&&gp(M.getFirstPosition(),this.attributes)||this._restoreGravity())})}registerAttribute(r){this.attributes.add(r)}_handleForwardMovement(r){const l=this.attributes,m=this.editor.model.document.selection,b=m.getFirstPosition();return!this._isGravityOverridden&&(!b.isAtStart||!Em(m,l))&&(gp(b,l)?(O_(r),this._overrideGravity(),!0):void 0)}_handleBackwardMovement(r){const l=this.attributes,m=this.editor.model,b=m.document.selection,M=b.getFirstPosition();return this._isGravityOverridden?(O_(r),this._restoreGravity(),Zr(m,l,M),!0):M.isAtStart?!!Em(b,l)&&(O_(r),Zr(m,l,M),!0):(q=l,gp(M.getShiftedBy(-1),q)?M.isAtEnd&&!Em(b,l)&&gp(M,l)?(O_(r),Zr(m,l,M),!0):(this._isNextGravityRestorationSkipped=!0,this._overrideGravity(),!1):void 0);var q}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 Em(d,r){for(const l of r)if(d.hasAttribute(l))return!0;return!1}function Zr(d,r,l){const m=l.nodeBefore;d.change(b=>{m?b.setSelectionAttribute(m.getAttributes()):b.removeSelectionAttribute(r)})}function O_(d){d.preventDefault()}function gp(d,r){const{nodeBefore:l,nodeAfter:m}=d;for(const b of r){const M=l?l.getAttribute(b):void 0;if((m?m.getAttribute(b):void 0)!==M)return!0}return!1}function Vu(d,r,l,m){return m.createRange(L0(d,r,l,!0,m),L0(d,r,l,!1,m))}function L0(d,r,l,m,b){let M=d.textNode||(m?d.nodeBefore:d.nodeAfter),S=null;for(;M&&M.getAttribute(r)==l;)S=M,M=m?M.previousSibling:M.nextSibling;return S?b.createPositionAt(S,m?"before":"after"):d}class _d{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,m,b)=>{if(!b.consumable.test(m.item,"attribute:linkHref"))return;const M=b.writer,S=M.document.selection;for(const q of this._definitions){const B=M.createAttributeElement("a",q.attributes,{priority:5});M.setCustomProperty("link",!0,B),q.callback(m.attributeNewValue)?m.item.is("selection")?M.wrap(S.getFirstRange(),B):M.wrap(b.mapper.toViewRange(m.range),B):M.unwrap(b.mapper.toViewRange(m.range),B)}},{priority:"high"})}}getDispatcherForLinkedImage(){return r=>{r.on("attribute:linkHref:image",(l,m,b)=>{const M=b.mapper.toViewElement(m.item),S=Array.from(M.getChildren()).find(q=>"a"===q.name);for(const q of this._definitions){const B=Wa(q.attributes);if(q.callback(m.attributeNewValue))for(const[at,_t]of B)"class"===at?b.writer.addClass(_t,S):b.writer.setAttribute(at,_t,S);else for(const[at,_t]of B)"class"===at?b.writer.removeClass(_t,S):b.writer.removeAttribute(at,S)}})}}}var gg=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),vg=function(d){return gg.test(d)},Jf="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",E0="\\ud83c[\\udffb-\\udfff]",Gf="[^\\ud800-\\udfff]",bg="(?:\\ud83c[\\udde6-\\uddff]){2}",F0="[\\ud800-\\udbff][\\udc00-\\udfff]",L_="(?:"+Jf+"|"+E0+")?",N0="[\\ufe0e\\ufe0f]?"+L_+"(?:\\u200d(?:"+[Gf,bg,F0].join("|")+")[\\ufe0e\\ufe0f]?"+L_+")*",I0="(?:"+[Gf+Jf+"?",Jf,bg,F0,"[\\ud800-\\udfff]"].join("|")+")",Fm=RegExp(E0+"(?="+E0+")|"+I0+N0,"g"),Cg=function(d){return vg(d)?function(d){return d.match(Fm)||[]}(d):function(d){return d.split("")}(d)},R0=function(r){r=Md(r);var l=vg(r)?Cg(r):void 0,m=l?l[0]:r.charAt(0),b=l?function(d,r,l){var m=d.length;return l=void 0===l?m:l,!r&&l>=m?d:Nc(d,r,l)}(l,1).join(""):r.slice(1);return m.toUpperCase()+b};const ql=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,fd=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i;function H0(d,r){const l=r.createAttributeElement("a",{href:d},{priority:5});return r.setCustomProperty("link",!0,l),l}function z3(d){return function(r){return r.replace(ql,"").match(fd)}(d=String(d))?d:"#"}function H1(d,r){return!!d&&d.is("element","image")&&r.checkAttribute("image","linkHref")}class Qf extends Ha{constructor(r){super(r),this.manualDecorators=new Nr,this.automaticDecorators=new _d}restoreManualDecoratorStates(){for(const r of this.manualDecorators)r.value=this._getDecoratorStateFromModel(r.id)}refresh(){const r=this.editor.model,l=r.document,m=eu(l.selection.getSelectedBlocks());H1(m,r.schema)?(this.value=m.getAttribute("linkHref"),this.isEnabled=r.schema.checkAttribute(m,"linkHref")):(this.value=l.selection.getAttribute("linkHref"),this.isEnabled=r.schema.checkAttributeInSelection(l.selection,"linkHref"));for(const b of this.manualDecorators)b.value=this._getDecoratorStateFromModel(b.id)}execute(r,l={}){const m=this.editor.model,b=m.document.selection,M=[],S=[];for(const q in l)l[q]?M.push(q):S.push(q);m.change(q=>{if(b.isCollapsed){const B=b.getFirstPosition();if(b.hasAttribute("linkHref")){const at=Vu(B,"linkHref",b.getAttribute("linkHref"),m);q.setAttribute("linkHref",r,at),M.forEach(_t=>{q.setAttribute(_t,!0,at)}),S.forEach(_t=>{q.removeAttribute(_t,at)}),q.setSelection(q.createPositionAfter(at.end.nodeBefore))}else if(""!==r){const at=Wa(b.getAttributes());at.set("linkHref",r),M.forEach(Zt=>{at.set(Zt,!0)});const _t=q.createText(r,at);m.insertContent(_t,B),q.setSelection(q.createPositionAfter(_t))}["linkHref",...M,...S].forEach(at=>{q.removeSelectionAttribute(at)})}else{const B=m.schema.getValidRanges(b.getRanges(),"linkHref"),at=[];for(const Zt of b.getSelectedBlocks())m.schema.checkAttribute(Zt,"linkHref")&&at.push(q.createRangeOn(Zt));const _t=at.slice();for(const Zt of B)this._isRangeToUpdate(Zt,at)&&_t.push(Zt);for(const Zt of _t)q.setAttribute("linkHref",r,Zt),M.forEach(_e=>{q.setAttribute(_e,!0,Zt)}),S.forEach(_e=>{q.removeAttribute(_e,Zt)})}})}_getDecoratorStateFromModel(r){const l=this.editor.model,m=l.document,b=eu(m.selection.getSelectedBlocks());return H1(b,l.schema)?b.getAttribute(r):m.selection.getAttribute(r)}_isRangeToUpdate(r,l){for(const m of l)if(m.containsRange(r))return!1;return!0}}class yg extends Ha{refresh(){const r=this.editor.model,l=r.document,m=eu(l.selection.getSelectedBlocks());this.isEnabled=H1(m,r.schema)?r.schema.checkAttribute(m,"linkHref"):r.schema.checkAttributeInSelection(l.selection,"linkHref")}execute(){const l=this.editor.model,m=l.document.selection,b=this.editor.commands.get("link");l.change(M=>{const S=m.isCollapsed?[Vu(m.getFirstPosition(),"linkHref",m.getAttribute("linkHref"),l)]:m.getRanges();for(const q of S)if(M.removeAttribute("linkHref",q),b)for(const B of b.manualDecorators)M.removeAttribute(B.id,q)})}}class E_{constructor({id:r,label:l,attributes:m,defaultValue:b}){this.id=r,this.set("value"),this.defaultValue=b,this.label=l,this.attributes=m}}io(E_,kt),p(47);const jf=/^(https?:)?\/\//;class Wf extends Eo{static get pluginName(){return"LinkEditing"}static get requires(){return[O0,H3,Mm]}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:H0}),r.conversion.for("editingDowncast").attributeToElement({model:"linkHref",view:(m,b)=>H0(z3(m),b)}),r.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{href:!0}},model:{key:"linkHref",value:m=>m.getAttribute("href")}}),r.commands.add("link",new Qf(r)),r.commands.add("unlink",new yg(r));const l=function(m,b){const M={"Open in a new tab":m("Open in a new tab"),Downloadable:m("Downloadable")};return b.forEach(S=>(S.label&&M[S.label]&&(S.label=M[S.label]),S)),b}(r.t,function(m){const b=[];if(m)for(const[M,S]of Object.entries(m)){const q=Object.assign({},S,{id:"link"+R0(M)});b.push(q)}return b}(r.config.get("link.decorators")));this._enableAutomaticDecorators(l.filter(m=>"automatic"===m.mode)),this._enableManualDecorators(l.filter(m=>"manual"===m.mode)),r.plugins.get(O0).registerAttribute("linkHref"),function(m,b,M,S){const q=m.editing.view,B=new Set;q.document.registerPostFixer(at=>{const _t=m.model.document.selection;let Zt=!1;if(_t.hasAttribute(b)){const _e=Vu(_t.getFirstPosition(),b,_t.getAttribute(b),m.model),Be=m.editing.mapper.toViewRange(_e);for(const mn of Be.getItems())mn.is("element","a")&&!mn.hasClass(S)&&(at.addClass(S,mn),B.add(mn),Zt=!0)}return Zt}),m.conversion.for("editingDowncast").add(at=>{function _t(){q.change(Zt=>{for(const _e of B.values())Zt.removeClass(S,_e),B.delete(_e)})}at.on("insert",_t,{priority:"highest"}),at.on("remove",_t,{priority:"highest"}),at.on("attribute",_t,{priority:"highest"}),at.on("selection",_t,{priority:"highest"})})}(r,"linkHref",0,"ck-link_selected"),this._enableInsertContentSelectionAttributesFixer(),this._enableClickingAfterLink(),this._enableTypingOverLink(),this._handleDeleteContentAfterLink()}_enableAutomaticDecorators(r){const l=this.editor,m=l.commands.get("link").automaticDecorators;l.config.get("link.addTargetToExternalLinks")&&m.add({id:"linkIsExternal",mode:"automatic",callback:b=>jf.test(b),attributes:{target:"_blank",rel:"noopener noreferrer"}}),m.add(r),m.length&&l.conversion.for("downcast").add(m.getDispatcher())}_enableManualDecorators(r){if(!r.length)return;const l=this.editor,m=l.commands.get("link").manualDecorators;r.forEach(b=>{l.model.schema.extend("$text",{allowAttributes:b.id}),m.add(new E_(b)),l.conversion.for("downcast").attributeToElement({model:b.id,view:(M,S)=>{if(M){const q=m.get(b.id).attributes,B=S.createAttributeElement("a",q,{priority:5});return S.setCustomProperty("link",!0,B),B}}}),l.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:m.get(b.id).attributes},model:{key:b.id}})})}_enableInsertContentSelectionAttributesFixer(){const r=this.editor,l=r.model,m=l.document.selection,b=r.commands.get("link");this.listenTo(l,"insertContent",()=>{const M=m.anchor.nodeBefore,S=m.anchor.nodeAfter;m.hasAttribute("linkHref")&&M&&M.hasAttribute("linkHref")&&(S&&S.hasAttribute("linkHref")||l.change(q=>{S2(q,b.manualDecorators)}))},{priority:"low"})}_enableClickingAfterLink(){const r=this.editor,l=r.commands.get("link");r.editing.view.addObserver(vu);let m=!1;this.listenTo(r.editing.view.document,"mousedown",()=>{m=!0}),this.listenTo(r.editing.view.document,"selectionChange",()=>{if(!m)return;m=!1;const b=r.model.document.selection;if(!b.isCollapsed||!b.hasAttribute("linkHref"))return;const M=b.getFirstPosition(),S=Vu(M,"linkHref",b.getAttribute("linkHref"),r.model);(M.isTouching(S.start)||M.isTouching(S.end))&&r.model.change(q=>{S2(q,l.manualDecorators)})})}_enableTypingOverLink(){const r=this.editor;let m,b;this.listenTo(r.editing.view.document,"delete",()=>{b=!0},{priority:"high"}),this.listenTo(r.model,"deleteContent",()=>{const M=r.model.document.selection;M.isCollapsed||(b?b=!1:Tg(r)&&function(S){const q=S.document.selection,B=q.getFirstPosition(),at=q.getLastPosition(),_t=B.nodeAfter;return!!(_t&&_t.is("$text")&&_t.hasAttribute("linkHref"))&&(_t===(at.textNode||at.nodeBefore)||Vu(B,"linkHref",_t.getAttribute("linkHref"),S).containsRange(S.createRange(B,at),!0))}(r.model)&&(m=M.getAttributes()))},{priority:"high"}),this.listenTo(r.model,"insertContent",(M,[S])=>{b=!1,Tg(r)&&m&&(r.model.change(q=>{for(const[B,at]of m)q.setAttribute(B,at,S)}),m=null)},{priority:"high"})}_handleDeleteContentAfterLink(){const r=this.editor,l=r.model,m=l.document.selection,b=r.editing.view,M=r.commands.get("link");let S=!1,q=!1;this.listenTo(b.document,"delete",(B,at)=>{q=at.domEvent.keyCode===sa.backspace},{priority:"high"}),this.listenTo(l,"deleteContent",()=>{S=!1;const B=m.getFirstPosition(),at=m.getAttribute("linkHref");if(!at)return;const _t=Vu(B,"linkHref",at,l);S=_t.containsPosition(B)||_t.end.isEqual(B)},{priority:"high"}),this.listenTo(l,"deleteContent",()=>{q&&(q=!1,S||r.model.enqueueChange(B=>{S2(B,M.manualDecorators)}))},{priority:"low"})}}function S2(d,r){d.removeSelectionAttribute("linkHref");for(const l of r)d.removeSelectionAttribute(l.id)}function Tg(d){return d.plugins.get("Input").isInput(d.model.change(r=>r.batch))}class Fd extends U2{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 $f extends Ha{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 Qn.b('ckfinder-unknown-openerMethod: The openerMethod config option must by "popup" or "modal".',r);const m=this.editor.config.get("ckfinder.options")||{};m.chooseFiles=!0;const b=m.onInit;m.language||(m.language=r.locale.uiLanguage),m.onInit=M=>{b&&b(M),M.on("files:choose",S=>{const q=S.data.files.toArray(),B=q.filter(Zt=>!Zt.isImage()),at=q.filter(Zt=>Zt.isImage());for(const Zt of B)r.execute("link",Zt.getUrl());const _t=[];for(const Zt of at){const _e=Zt.getUrl();_t.push(_e||M.request("file:getProxyUrl",{file:Zt}))}_t.length&&Nm(r,_t)}),M.on("file:choose:resizedImage",S=>{const q=S.data.resizedUrl;if(q)Nm(r,[q]);else{const B=r.plugins.get("Notification"),at=r.locale.t;B.showWarning(at("Could not obtain resized image URL."),{title:at("Selecting resized image failed"),namespace:"ckfinder"})}})},window.CKFinder[l](m)}}function Nm(d,r){if(d.commands.get("imageInsert").isEnabled)d.execute("imageInsert",{source:r});else{const l=d.plugins.get("Notification"),m=d.locale.t;l.showWarning(m("Could not insert image at the current position."),{title:m("Inserting image failed"),namespace:"ckfinder"})}}class V3 extends Eo{static get pluginName(){return"CKFinderEditing"}static get requires(){return[Fd,Sa,Wf]}init(){const r=this.editor;r.commands.add("ckfinder",new $f(r))}}const O2=/^data:(\S*?);base64,/;class Y0{constructor(r,l,m){if(!r)throw new Qn.b("fileuploader-missing-file: File must be provided as the first argument",null);if(!l)throw new Qn.b("fileuploader-missing-token: Token must be provided as the second argument.",null);if(!m)throw new Qn.b("fileuploader-missing-api-address: Api address must be provided as the third argument.",null);this.file=function(b){if("string"!=typeof b)return!1;const M=b.match(O2);return!(!M||!M.length)}(r)?function(b,M=512){try{const S=b.match(O2)[1],q=atob(b.replace(O2,"")),B=[];for(let at=0;atr(m)),this}onError(r){return this.once("error",(l,m)=>r(m)),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 m(b){return()=>r.fire("error",b)}l.addEventListener("error",m("Network Error")),l.addEventListener("abort",m("Abort")),l.upload&&l.upload.addEventListener("progress",b=>{b.lengthComputable&&this.fire("progress",{total:b.total,uploaded:b.loaded})}),l.addEventListener("load",()=>{const b=l.status,M=l.response;if(b<200||b>299)return this.fire("error",M.message||M.error)})}_sendRequest(){const r=new FormData,l=this.xhr;return r.append("file",this.file),new Promise((m,b)=>{l.addEventListener("load",()=>{const M=l.status,S=l.response;return M<200||M>299?b(S.message?new Qn.b("fileuploader-uploading-data-failed: Uploading file failed.",this,{message:S.message}):S.error):m(S)}),l.addEventListener("error",()=>b(new Error("Network Error"))),l.addEventListener("abort",()=>b(new Error("Abort"))),l.send(r)})}}io(Y0,Za);const Ag={refreshInterval:36e5,autoRefresh:!0};class hd{constructor(r,l=Ag){if(!r)throw new Qn.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 m=r,new Promise((b,M)=>{const S=new XMLHttpRequest;S.open("GET",m),S.addEventListener("load",()=>{const q=S.status,B=S.response;return q<200||q>299?M(new Qn.b("token-cannot-download-new-token: Cannot download new token from the provided url.",null)):b(B)}),S.addEventListener("error",()=>M(new Error("Network Error"))),S.addEventListener("abort",()=>M(new Error("Abort"))),S.send()});var m},this._options=Object.assign({},Ag,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=Ag){return new hd(r,l).init()}}io(hd,kt);var F_=hd;let Kf=(()=>{class d extends U2{static get pluginName(){return"CloudServices"}init(){const l=this.context.config.get("cloudServices")||{};for(const m in l)this[m]=l[m];if(this.tokenUrl)return this.token=new d.Token(this.tokenUrl),this.token.init();this.token=null}destroy(){super.destroy(),this.token&&this.token.destroy()}}return d.Token=F_,d})();class Y1 extends Eo{static get requires(){return[N1,Kf]}init(){const r=this.editor,l=r.plugins.get(Kf),m=l.token;m&&(this._uploadGateway=new Y1._UploadGateway(m,l.uploadUrl),r.plugins.get(N1).createUploadAdapter=M=>new Ug(this._uploadGateway,M))}}class Ug{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,m)=>{this.loader.uploadTotal=m.total,this.loader.uploaded=m.uploaded}),this.fileUploader.send()))}abort(){this.fileUploader.abort()}}Y1._UploadGateway=class{constructor(d,r){if(!d)throw new Qn.b("uploadgateway-missing-token: Token must be provided.",null);if(!r)throw new Qn.b("uploadgateway-missing-api-address: Api address must be provided.",null);this._token=d,this._apiAddress=r}upload(d){return new Y0(d,this._token,this._apiAddress)}},p(49);const Im=["before","after"],Xf=(new DOMParser).parseFromString('\n',"image/svg+xml").firstChild;class wg extends Eo{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",(m,b,M)=>{l.change(S=>{for(const q of l.document.roots)M?S.removeClass("ck-widget__type-around_disabled",q):S.addClass("ck-widget__type-around_disabled",q)}),M||r.model.change(S=>{S.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 m=this.editor,b=m.editing.view;m.execute("insertParagraph",{position:m.model.createPositionAt(r,l)}),b.focus(),b.scrollToTheSelection()}_listenToIfEnabled(r,l,m,b){this.listenTo(r,l,(...M)=>{this.isEnabled&&m(...M)},b)}_insertParagraphAccordingToFakeCaretPosition(){const r=this.editor.model.document.selection,l=Ld(r);if(!l)return!1;const m=r.getSelectedElement();return this._insertParagraph(m,l),!0}_enableTypeAroundUIInjection(){const r=this.editor,l=r.model.schema,m=r.locale.t,b={before:m("Insert paragraph before block"),after:m("Insert paragraph after block")};r.editing.downcastDispatcher.on("insert",(M,S,q)=>{const B=q.mapper.toViewElement(S.item);pp(B,S.item,l)&&function(at,_t,Zt){const _e=at.createUIElement("div",{class:"ck ck-reset_all ck-widget__type-around"},function(Be){const mn=this.toDomElement(Be);return function(Mn,In){for(const Gn of Im){const Fi=new yl({tag:"div",attributes:{class:["ck","ck-widget__type-around__button","ck-widget__type-around__button_"+Gn],title:In[Gn]},children:[Mn.ownerDocument.importNode(Xf,!0)]});Mn.appendChild(Fi.render())}}(mn,_t),function(Mn){const In=new yl({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});Mn.appendChild(In.render())}(mn),mn});at.insert(at.createPositionAt(Zt,"end"),_e)}(q.writer,b,B)},{priority:"low"})}_enableTypeAroundFakeCaretActivationUsingKeyboardArrows(){const r=this.editor,l=r.model,m=l.document.selection,b=l.schema;function S(q){return"ck-widget_type-around_show-fake-caret_"+q}this._listenToIfEnabled(r.editing.view.document,"keydown",(q,B)=>{Mu(B.keyCode)&&this._handleArrowKeyPress(q,B)},{priority:as.get("high")+10}),this._listenToIfEnabled(m,"change:range",(q,B)=>{B.directChange&&r.model.change(at=>{at.removeSelectionAttribute("widget-type-around")})}),this._listenToIfEnabled(l.document,"change:data",()=>{const q=m.getSelectedElement();q&&pp(r.editing.mapper.toViewElement(q),q,b)||r.model.change(B=>{B.removeSelectionAttribute("widget-type-around")})}),this._listenToIfEnabled(r.editing.downcastDispatcher,"selection",(q,B,at)=>{const _t=at.writer;if(this._currentFakeCaretModelElement){const mn=at.mapper.toViewElement(this._currentFakeCaretModelElement);mn&&(_t.removeClass(Im.map(S),mn),this._currentFakeCaretModelElement=null)}const Zt=B.selection.getSelectedElement();if(!Zt)return;const _e=at.mapper.toViewElement(Zt);if(!pp(_e,Zt,b))return;const Be=Ld(B.selection);Be&&(_t.addClass(S(Be),_e),this._currentFakeCaretModelElement=Zt)}),this._listenToIfEnabled(r.ui.focusTracker,"change:isFocused",(q,B,at)=>{at||r.model.change(_t=>{_t.removeSelectionAttribute("widget-type-around")})})}_handleArrowKeyPress(r,l){const m=this.editor,b=m.model,M=b.document.selection,S=b.schema,q=m.editing.view,B=Zd(l.keyCode,m.locale.contentLanguageDirection),at=q.document.selection.getSelectedElement();let _t;pp(at,m.editing.mapper.toModelElement(at),S)?_t=this._handleArrowKeyPressOnSelectedWidget(B):M.isCollapsed&&(_t=this._handleArrowKeyPressWhenSelectionNextToAWidget(B)),_t&&(l.preventDefault(),r.stop())}_handleArrowKeyPressOnSelectedWidget(r){const l=this.editor.model,m=Ld(l.document.selection);return l.change(b=>m?m!==(r?"after":"before")&&(b.removeSelectionAttribute("widget-type-around"),!0):(b.setSelectionAttribute("widget-type-around",r?"after":"before"),!0))}_handleArrowKeyPressWhenSelectionNextToAWidget(r){const l=this.editor,m=l.model,b=m.schema,M=l.plugins.get("Widget"),S=M._getObjectElementNextToSelection(r);return!!pp(l.editing.mapper.toViewElement(S),S,b)&&(m.change(q=>{M._setSelectionOverElement(S),q.setSelectionAttribute("widget-type-around",r?"before":"after")}),!0)}_enableInsertingParagraphsOnButtonClick(){const r=this.editor,l=r.editing.view;this._listenToIfEnabled(l.document,"mousedown",(m,b)=>{const M=b.domTarget.closest(".ck-widget__type-around__button");if(!M)return;const S=M.classList.contains("ck-widget__type-around__button_before")?"before":"after",q=function(at,_t){const Zt=at.closest(".ck-widget");return _t.mapDomToView(Zt)}(M,l.domConverter),B=r.editing.mapper.toModelElement(q);this._insertParagraph(B,S),b.preventDefault(),m.stop()})}_enableInsertingParagraphsOnEnterKeypress(){const r=this.editor,l=r.editing.view;this._listenToIfEnabled(l.document,"enter",(m,b)=>{const M=l.document.selection.getSelectedElement(),S=r.editing.mapper.toModelElement(M),q=r.model.schema;let B;this._insertParagraphAccordingToFakeCaretPosition()?B=!0:pp(M,S,q)&&(this._insertParagraph(S,b.isSoft?"before":"after"),B=!0),B&&(b.preventDefault(),m.stop())})}_enableInsertingParagraphsOnTypingKeystroke(){const l=[sa.enter,sa.delete,sa.backspace];this._listenToIfEnabled(this.editor.editing.view.document,"keydown",(m,b)=>{l.includes(b.keyCode)||T2(b)||this._insertParagraphAccordingToFakeCaretPosition()},{priority:as.get("high")+1})}_enableDeleteIntegration(){const r=this.editor,m=r.model,b=m.schema;this._listenToIfEnabled(r.editing.view.document,"delete",(M,S)=>{const q=Ld(m.document.selection);if(!q)return;const B=S.direction,at=m.document.selection.getSelectedElement(),_t="forward"==B;if("before"===q===_t)r.execute("delete",{selection:m.createSelection(at,"on")});else{const Zt=b.getNearestSelectionRange(m.createPositionAt(at,q),B);if(Zt)if(Zt.isCollapsed){const _e=m.createSelection(Zt.start);if(m.modifySelection(_e,{direction:B}),_e.focus.isEqual(Zt.start)){const Be=function(mn,Mn){let In=Mn;for(const Gn of Mn.getAncestors({parentFirst:!0})){if(Gn.childCount>1||mn.isLimit(Gn))break;In=Gn}return In}(b,Zt.start.parent);m.deleteContent(m.createSelection(Be,"on"),{doNotAutoparagraph:!0})}else m.change(Be=>{Be.setSelection(Zt),r.execute(_t?"forwardDelete":"delete")})}else m.change(_e=>{_e.setSelection(Zt),r.execute(_t?"forwardDelete":"delete")})}S.preventDefault(),M.stop()},{priority:as.get("high")+1})}_enableInsertContentIntegration(){const l=this.editor.model,m=l.document.selection;this._listenToIfEnabled(this.editor.model,"insertContent",(b,[M,S])=>{if(S&&!S.is("documentSelection"))return;const q=Ld(m);return q?(b.stop(),l.change(B=>{const at=m.getSelectedElement(),_t=l.createPositionAt(at,q),Zt=B.createSelection(_t),_e=l.insertContent(M,Zt);return B.setSelection(Zt),_e})):void 0},{priority:"high"})}}p(51);class qm extends Eo{static get pluginName(){return"Widget"}static get requires(){return[wg]}init(){const r=this.editor.editing.view,l=r.document;this._previouslySelected=new Set,this.editor.editing.downcastDispatcher.on("selection",(m,b,M)=>{this._clearPreviouslySelectedWidgets(M.writer);const S=M.writer,q=S.document.selection,B=q.getSelectedElement();let at=null;for(const _t of q.getRanges())for(const Zt of _t){const _e=Zt.item;mp(_e)&&!N_(_e,at)&&(S.addClass("ck-widget_selected",_e),this._previouslySelected.add(_e),at=_e,_e==B&&S.setSelection(q.getRanges(),{fake:!0,label:r6(B)}))}},{priority:"low"}),r.addObserver(vu),this.listenTo(l,"mousedown",(...m)=>this._onMousedown(...m)),this.listenTo(l,"keydown",(...m)=>{this._handleSelectionChangeOnArrowKeyPress(...m)},{priority:"high"}),this.listenTo(l,"keydown",(...m)=>{this._preventDefaultOnArrowKeyPress(...m)},{priority:as.get("high")-20}),this.listenTo(l,"delete",(m,b)=>{this._handleDelete("forward"==b.direction)&&(b.preventDefault(),m.stop())},{priority:"high"})}_onMousedown(r,l){const m=this.editor,b=m.editing.view,M=b.document;let S=l.target;if(function(B){for(;B;){if(B.is("editableElement")&&!B.is("rootElement"))return!0;if(mp(B))return!1;B=B.parent}return!1}(S)){if((Zs_isSafari||Zs_isGecko)&&l.domEvent.detail>=3){const B=m.editing.mapper,at=S.is("attributeElement")?S.findAncestor(Zt=>!Zt.is("attributeElement")):S,_t=B.toModelElement(at);l.preventDefault(),this.editor.model.change(Zt=>{Zt.setSelection(_t,"in")})}return}if(!mp(S)&&(S=S.findAncestor(mp),!S))return;l.preventDefault(),M.isFocused||b.focus();const q=m.editing.mapper.toModelElement(S);this._setSelectionOverElement(q)}_handleSelectionChangeOnArrowKeyPress(r,l){const m=l.keyCode;if(!Mu(m))return;const b=this.editor.model,M=b.schema,S=b.document.selection,q=S.getSelectedElement(),B=Zd(m,this.editor.locale.contentLanguageDirection);if(q&&M.isObject(q)){const _t=B?S.getLastPosition():S.getFirstPosition(),Zt=M.getNearestSelectionRange(_t,B?"forward":"backward");return void(Zt&&(b.change(_e=>{_e.setSelection(Zt)}),l.preventDefault(),r.stop()))}if(!S.isCollapsed)return;const at=this._getObjectElementNextToSelection(B);at&&M.isObject(at)&&(this._setSelectionOverElement(at),l.preventDefault(),r.stop())}_preventDefaultOnArrowKeyPress(r,l){if(!Mu(l.keyCode))return;const m=this.editor.model,b=m.schema,M=m.document.selection.getSelectedElement();M&&b.isObject(M)&&(l.preventDefault(),r.stop())}_handleDelete(r){if(this.editor.isReadOnly)return;const l=this.editor.model.document.selection;if(!l.isCollapsed)return;const m=this._getObjectElementNextToSelection(r);return m?(this.editor.model.change(b=>{let M=l.anchor.parent;for(;M.isEmpty;){const S=M;M=S.parent,b.remove(S)}this._setSelectionOverElement(m)}),!0):void 0}_setSelectionOverElement(r){this.editor.model.change(l=>{l.setSelection(l.createRangeOn(r))})}_getObjectElementNextToSelection(r){const l=this.editor.model,m=l.schema,M=l.createSelection(l.document.selection);l.modifySelection(M,{direction:r?"forward":"backward"});const S=r?M.focus.nodeBefore:M.focus.nodeAfter;return S&&m.isObject(S)?S:null}_clearPreviouslySelectedWidgets(r){for(const l of this._previouslySelected)r.removeClass("ck-widget_selected",l);this._previouslySelected.clear()}}function N_(d,r){return!!r&&Array.from(d.getAncestors()).includes(r)}class Mg extends Ha{refresh(){const r=this.editor.model.document.selection.getSelectedElement();this.isEnabled=Lm(r),this.value=!(!Lm(r)||!r.hasAttribute("alt"))&&r.getAttribute("alt")}execute(r){const l=this.editor.model,m=l.document.selection.getSelectedElement();l.change(b=>{b.setAttribute("alt",r.newValue,m)})}}class th extends Eo{static get pluginName(){return"ImageTextAlternativeEditing"}init(){this.editor.commands.add("imageTextAlternative",new Mg(this.editor))}}p(53);class eh extends Xo{constructor(r,l){super(r);const m="ck-labeled-field-view-"+vr(),b="ck-labeled-field-view-status-"+vr();this.fieldView=l(this,m,b),this.set("label"),this.set("isEnabled",!0),this.set("errorText",null),this.set("infoText",null),this.set("class"),this.labelView=this._createLabelView(m),this.statusView=this._createStatusView(b),this.bind("_statusText").to(this,"errorText",this,"infoText",(S,q)=>S||q);const M=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view",M.to("class"),M.if("isEnabled","ck-disabled",S=>!S)]},children:[this.labelView,this.fieldView,this.statusView]})}_createLabelView(r){const l=new v2(this.locale);return l.for=r,l.bind("text").to(this,"label"),l}_createStatusView(r){const l=new Xo(this.locale),m=this.bindTemplate;return l.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view__status",m.if("errorText","ck-labeled-field-view__status_error"),m.if("_statusText","ck-hidden",b=>!b)],id:r,role:m.if("errorText","alert")},children:[{text:m.to("_statusText")}]}),l}focus(){this.fieldView.focus()}}p(55);class s6 extends Xo{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,m,b)=>{r(b)})}select(){this.element.select()}focus(){this.element.focus()}}function Zg(d,r,l){const m=new s6(d.locale);return m.set({id:r,ariaDescribedById:l}),m.bind("isReadOnly").to(d,"isEnabled",b=>!b),m.bind("hasError").to(d,"errorText",b=>!!b),m.on("input",()=>{d.errorText=null}),m}function jr({view:d}){d.listenTo(d.element,"submit",(r,l)=>{l.preventDefault(),d.fire("submit")},{useCapture:!0})}var I_='',L2='';p(57);class z0 extends Xo{constructor(r){super(r);const l=this.locale.t;this.focusTracker=new Ac,this.keystrokes=new Il,this.labeledInput=this._createLabeledInputView(),this.saveButtonView=this._createButton(l("Save"),I_,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(l("Cancel"),L2,"ck-button-cancel","cancel"),this._focusables=new O1,this._focusCycler=new Rp({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),jr({view:this}),[this.labeledInput,this.saveButtonView,this.cancelButtonView].forEach(r=>{this._focusables.add(r),this.focusTracker.add(r.element)})}_createButton(r,l,m,b){const M=new Rs(this.locale);return M.set({label:r,icon:l,tooltip:!0}),M.extendTemplate({attributes:{class:m}}),b&&M.delegate("execute").to(this,b),M}_createLabeledInputView(){const r=this.locale.t,l=new eh(this.locale,Zg);return l.label=r("Text alternative"),l.fieldView.placeholder=r("Text alternative"),l}}p(59),p(61);const E2=hu("px");class Rl extends Eo{static get pluginName(){return"ContextualBalloon"}constructor(r){super(r),this.positionLimiter=()=>{const l=this.editor.editing.view,m=l.document.selection.editableElement;return m?l.domConverter.mapViewToDom(m.root):null},this.set("visibleView",null),this.view=new $a(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 Qn.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 m=this._idToStack.get(l);r.singleViewMode&&this.showStack(l),m.set(r.view,r),this._viewToStack.set(r.view,m),m===this._visibleStack&&this._showView(r)}remove(r){if(!this.hasView(r))throw new Qn.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 Qn.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 Dg(this.editor.locale),l=this.editor.locale.t;return this.view.content.add(r),r.bind("isNavigationVisible").to(this,"_numberOfStacks",this,"_singleViewMode",(m,b)=>!b&&m>1),r.on("change:isNavigationVisible",()=>this.updatePosition(),{priority:"low"}),r.bind("counter").to(this,"visibleView",this,"_numberOfStacks",(m,b)=>{if(b<2)return"";const M=Array.from(this._idToStack.values()).indexOf(this._visibleStack)+1;return l("%0 of %1",[M,b])}),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 B3(this.editor.locale,this.view);return r.bind("numberOfPanels").to(this,"_numberOfStacks",this,"_singleViewMode",(l,m)=>!m&&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:m=!0,singleViewMode:b=!1}){this.view.class=l,this.view.withArrow=m,this._rotatorView.showView(r),this.visibleView=r,this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition(),b&&(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 Dg extends Xo{constructor(r){super(r);const l=r.t,m=this.bindTemplate;this.set("isNavigationVisible",!0),this.focusTracker=new Ac,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",m.to("isNavigationVisible",b=>b?"":"ck-hidden")]},children:[this.buttonPrevView,{tag:"span",attributes:{class:["ck-balloon-rotator__counter"]},children:[{text:m.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 m=new Rs(this.locale);return m.set({label:r,icon:l,tooltip:!0}),m}}class B3 extends Xo{constructor(r,l){super(r);const m=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",m.to("numberOfPanels",b=>b?"":"ck-hidden")],style:{top:m.to("top",E2),left:m.to("left",E2),width:m.to("width",E2),height:m.to("height",E2)}},children:this.content}),this.on("change:numberOfPanels",(b,M,S,q)=>{S>q?this._addPanels(S-q):this._removePanels(q-S),this.updatePosition()})}_addPanels(r){for(;r--;){const l=new Xo;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:m,height:b}=new Ds(this._balloonPanelView.element);Object.assign(this,{top:r,left:l,width:m,height:b})}}}function V0(d){const r=d.editing.view,l=$a.defaultPositions;return{target:r.domConverter.viewToDom(r.document.selection.getSelectedElement()),positions:[l.northArrowSouth,l.northArrowSouthWest,l.northArrowSouthEast,l.southArrowNorth,l.southArrowNorthWest,l.southArrowNorthEast]}}class J3 extends Eo{static get requires(){return[Rl]}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",m=>{const b=r.commands.get("imageTextAlternative"),M=new Rs(m);return M.set({label:l("Change image text alternative"),icon:'',tooltip:!0}),M.bind("isEnabled").to(b,"isEnabled"),this.listenTo(M,"execute",()=>{this._showForm()}),M})}_createForm(){const r=this.editor,l=r.editing.view.document;this._balloon=this.editor.plugins.get("ContextualBalloon"),this._form=new z0(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",(m,b)=>{this._hideForm(!0),b()}),this.listenTo(r.ui,"update",()=>{md(l.selection)?this._isVisible&&function(m){const b=m.plugins.get("ContextualBalloon");if(md(m.editing.view.document.selection)){const M=V0(m);b.updatePosition(M)}}(r):this._hideForm(!0)}),Um({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"),m=this._form.labeledInput;this._isInBalloon||this._balloon.add({view:this._form,position:V0(r)}),m.fieldView.value=m.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 nh extends Eo{static get requires(){return[th,J3]}static get pluginName(){return"ImageTextAlternative"}}p(63);class ih extends Eo{static get requires(){return[Sa,qm,nh]}static get pluginName(){return"Image"}}class G3 extends Xo{constructor(r){super(r),this.buttonView=new Rs(r),this._fileInputView=new B0(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 B0 extends Xo{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 Pg(d){const r=d.map(l=>l.replace("+","\\+"));return new RegExp(`^image\\/(${r.join("|")})$`)}class kg extends Eo{init(){const r=this.editor,l=r.t;r.ui.componentFactory.add("imageUpload",m=>{const b=new G3(m),M=r.commands.get("imageUpload"),S=r.config.get("image.upload.types"),q=Pg(S);return b.set({acceptedType:S.map(B=>"image/"+B).join(","),allowMultipleFiles:!0}),b.buttonView.set({label:l("Insert image"),icon:'',tooltip:!0}),b.buttonView.bind("isEnabled").to(M),b.on("done",(B,at)=>{const _t=Array.from(at).filter(Zt=>q.test(Zt.type));_t.length&&r.execute("imageUpload",{file:_t})}),b})}}p(65),p(67),p(69);class Ss extends Eo{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,m){const b=this.editor,M=l.item,S=M.getAttribute("uploadId");if(!m.consumable.consume(l.item,r.name))return;const q=b.plugins.get(N1),B=S?l.attributeNewValue:null,at=this.placeholder,_t=b.editing.mapper.toViewElement(M),Zt=m.writer;if("reading"==B)return vp(_t,Zt),void Sg(at,_t,Zt);if("uploading"==B){const _e=q.loaders.get(S);return vp(_t,Zt),void(_e?(F2(_t,Zt),function(Be,mn,Mn,In){const Gn=function(Fi){const Ji=Fi.createUIElement("div",{class:"ck-progress-bar"});return Fi.setCustomProperty("progressBar",!0,Ji),Ji}(mn);mn.insert(mn.createPositionAt(Be,"end"),Gn),Mn.on("change:uploadedPercent",(Fi,Ji,Do)=>{In.change(ba=>{ba.setStyle("width",Do+"%",Gn)})})}(_t,Zt,_e,b.editing.view),function(Be,mn,Mn){if(Mn.data){const In=ou(Be);mn.setAttribute("src",Mn.data,In)}}(_t,Zt,_e)):Sg(at,_t,Zt))}"complete"==B&&q.loaders.get(S)&&function(_e,Be,mn){const Mn=Be.createUIElement("div",{class:"ck-image-upload-complete-icon"});Be.insert(Be.createPositionAt(_e,"end"),Mn),setTimeout(()=>{mn.change(In=>In.remove(In.createRangeOn(Mn)))},3e3)}(_t,Zt,b.editing.view),q_(_t,Zt,"progressBar"),F2(_t,Zt),Zt.removeClass("ck-appear",_t)}}function vp(d,r){d.hasClass("ck-appear")||r.addClass("ck-appear",d)}function Sg(d,r,l){r.hasClass("ck-image-upload-placeholder")||l.addClass("ck-image-upload-placeholder",r);const m=ou(r);m.getAttribute("src")!==d&&l.setAttribute("src",d,m),Vp(r,"placeholder")||l.insert(l.createPositionAfter(m),function(b){const M=b.createUIElement("div",{class:"ck-upload-placeholder-loader"});return b.setCustomProperty("placeholder",!0,M),M}(l))}function F2(d,r){d.hasClass("ck-image-upload-placeholder")&&r.removeClass("ck-image-upload-placeholder",d),q_(d,r,"placeholder")}function Vp(d,r){for(const l of d.getChildren())if(l.getCustomProperty(r))return l}function q_(d,r,l){const m=Vp(d,l);m&&r.remove(r.createRangeOn(m))}class oh{constructor(r){this.document=r}createDocumentFragment(r){return new Ll(this.document,r)}createElement(r,l,m){return new ec(this.document,r,l,m)}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,m){return m._insertChild(r,l)}removeChildren(r,l,m){return m._removeChildren(r,l)}remove(r){const l=r.parent;return l?this.removeChildren(l.getChildIndex(r),1,l):[]}replace(r,l){const m=r.parent;if(m){const b=m.getChildIndex(r);return this.removeChildren(b,1,m),this.insertChild(b,l,m),!0}return!1}unwrapElement(r){const l=r.parent;if(l){const m=l.getChildIndex(r);this.remove(r),this.insertChild(m,r.getChildren(),l)}}rename(r,l){const m=new ec(this.document,r,l.getAttributes(),l.getChildren());return this.replace(l,m)?m:null}setAttribute(r,l,m){m._setAttribute(r,l)}removeAttribute(r,l){l._removeAttribute(r)}addClass(r,l){l._addClass(r)}removeClass(r,l){l._removeClass(r)}setStyle(r,l,m){Jt(r)&&void 0===m&&(m=l),m._setStyle(r,l)}removeStyle(r,l){l._removeStyle(r)}setCustomProperty(r,l,m){m._setCustomProperty(r,l)}removeCustomProperty(r,l){return l._removeCustomProperty(r)}createPositionAt(r,l){return xi._createAt(r,l)}createPositionAfter(r){return xi._createAfter(r)}createPositionBefore(r){return xi._createBefore(r)}createRange(r,l){return new Yi(r,l)}createRangeOn(r){return Yi._createOn(r)}createRangeIn(r){return Yi._createIn(r)}createSelection(r,l,m){return new xa(r,l,m)}}class z1 extends Ha{refresh(){this.isEnabled=fp(this.editor.model)}execute(r){const l=this.editor,m=l.model,b=l.plugins.get(N1);m.change(M=>{const S=Array.isArray(r.file)?r.file:[r.file];for(const q of S)xp(M,m,b,q)})}}function xp(d,r,l,m){const b=l.createLoader(m);b&&Bf(d,r,{uploadId:b.id})}class ah extends Eo{static get requires(){return[N1,Fd,Mm]}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,m=r.model.schema,b=r.conversion,M=r.plugins.get(N1),S=Pg(r.config.get("image.upload.types"));m.extend("image",{allowAttributes:["uploadId","uploadStatus"]}),r.commands.add("imageUpload",new z1(r)),b.for("upcast").attributeToAttribute({view:{name:"img",key:"uploadId"},model:"uploadId"}),this.listenTo(r.editing.view.document,"clipboardInput",(q,B)=>{if(at=B.dataTransfer,Array.from(at.types).includes("text/html")&&""!==at.getData("text/html"))return;var at;const _t=Array.from(B.dataTransfer.files).filter(_e=>!!_e&&S.test(_e.type)),Zt=B.targetRanges.map(_e=>r.editing.mapper.toModelRange(_e));r.model.change(_e=>{_e.setSelection(Zt),_t.length&&(q.stop(),r.model.enqueueChange("default",()=>{r.execute("imageUpload",{file:_t})}))})}),this.listenTo(r.plugins.get(Mm),"inputTransformation",(q,B)=>{const at=Array.from(r.editing.view.createRangeIn(B.content)).filter(Zt=>{return!(!(_e=Zt.item).is("element","img")||!_e.getAttribute("src"))&&(_e.getAttribute("src").match(/^data:image\/\w+;base64,/g)||_e.getAttribute("src").match(/^blob:/g))&&!Zt.item.getAttribute("uploadProcessed");var _e}).map(Zt=>{return{promise:(_e=Zt.item,new Promise((Be,mn)=>{const Mn=_e.getAttribute("src");fetch(Mn).then(In=>In.blob()).then(In=>{const Gn=(ba=Mn,(Do=In).type?Do.type:ba.match(/data:(image\/\w+);base64/)?ba.match(/data:(image\/\w+);base64/)[1].toLowerCase():"image/jpeg"),Fi=Gn.replace("image/",""),Ji=new File([In],"image."+Fi,{type:Gn});var Do,ba;Be(Ji)}).catch(mn)})),imageElement:Zt.item};var _e});if(!at.length)return;const _t=new oh(r.editing.view.document);for(const Zt of at){_t.setAttribute("uploadProcessed",!0,Zt.imageElement);const _e=M.createLoader(Zt.promise);_e&&(_t.setAttribute("src","",Zt.imageElement),_t.setAttribute("uploadId",_e.id,Zt.imageElement))}}),r.editing.view.document.on("dragover",(q,B)=>{B.preventDefault()}),l.on("change",()=>{const q=l.differ.getChanges({includeChangesInGraveyard:!0});for(const B of q)if("insert"==B.type&&"$text"!=B.name){const at=B.position.nodeAfter,_t="$graveyard"==B.position.root.rootName;for(const Zt of Q3(r,at)){const _e=Zt.getAttribute("uploadId");if(!_e)continue;const Be=M.loaders.get(_e);Be&&(_t?Be.abort():"idle"==Be.status&&this._readAndUpload(Be,Zt))}}})}_readAndUpload(r,l){const m=this.editor,b=m.model,M=m.locale.t,S=m.plugins.get(N1),q=m.plugins.get(Fd);return b.enqueueChange("transparent",at=>{at.setAttribute("uploadStatus","reading",l)}),r.read().then(()=>{const at=r.upload();if(Zs_isSafari){const _t=ou(m.editing.mapper.toViewElement(l));m.editing.view.once("render",()=>{if(!_t.parent)return;const Zt=m.editing.view.domConverter.mapViewToDom(_t.parent);if(!Zt)return;const _e=Zt.style.display;Zt.style.display="none",Zt._ckHack=Zt.offsetHeight,Zt.style.display=_e})}return b.enqueueChange("transparent",_t=>{_t.setAttribute("uploadStatus","uploading",l)}),at}).then(at=>{b.enqueueChange("transparent",_t=>{_t.setAttributes({uploadStatus:"complete",src:at.default},l),this._parseAndSetSrcsetAttributeOnImage(at,l,_t)}),B()}).catch(at=>{if("error"!==r.status&&"aborted"!==r.status)throw at;"error"==r.status&&at&&q.showWarning(at,{title:M("Upload failed"),namespace:"upload"}),B(),b.enqueueChange("transparent",_t=>{_t.remove(l)})});function B(){b.enqueueChange("transparent",at=>{at.removeAttribute("uploadId",l),at.removeAttribute("uploadStatus",l)}),S.destroyLoader(r)}}_parseAndSetSrcsetAttributeOnImage(r,l,m){let b=0;const M=Object.keys(r).filter(S=>{const q=parseInt(S,10);if(!isNaN(q))return b=Math.max(b,q),!0}).map(S=>`${r[S]} ${S}w`).join(", ");""!=M&&m.setAttribute("srcset",{data:M,width:b},l)}}function Q3(d,r){return Array.from(d.model.createRangeOn(r)).filter(l=>l.item.is("element","image")).map(l=>l.item)}class j3 extends Eo{static get pluginName(){return"ImageUpload"}static get requires(){return[ah,kg,Ss]}}class xu extends Ha{refresh(){const r=this.editor.model,l=eu(r.document.selection.getSelectedBlocks());this.value=!!l&&l.is("element","paragraph"),this.isEnabled=!!l&&rh(l,r.schema)}execute(r={}){const l=this.editor.model,m=l.document;l.change(b=>{const M=(r.selection||m.selection).getSelectedBlocks();for(const S of M)!S.is("element","paragraph")&&rh(S,l.schema)&&b.rename(S,"paragraph")})}}function rh(d,r){return r.checkChild(d.parent,"paragraph")&&!r.isObject(d)}class N2 extends Ha{execute(r){const l=this.editor.model;let m=r.position;l.change(b=>{const M=b.createElement("paragraph");if(!l.schema.checkChild(m.parent,M)){const S=l.schema.findAllowedParent(m,M);if(!S)return;m=b.split(m,S).position}l.insertContent(M,m),b.setSelection(M,"in")})}}class Nd extends Eo{static get pluginName(){return"Paragraph"}init(){const r=this.editor,l=r.model,m=r.data;r.commands.add("paragraph",new xu(r)),r.commands.add("insertParagraph",new N2(r)),l.schema.register("paragraph",{inheritAllFrom:"$block"}),r.conversion.elementToElement({model:"paragraph",view:"p"}),r.conversion.for("upcast").elementToElement({model:(b,M)=>Nd.paragraphLikeElements.has(b.name)?b.isEmpty?null:M.createElement("paragraph"):null,converterPriority:"low"}),m.upcastDispatcher.on("element",(b,M,S)=>{S.consumable.test(M.viewItem,{name:M.viewItem.name})&&ch(M.viewItem,M.modelCursor,S.schema)&&Object.assign(M,sh(M.viewItem,M.modelCursor,S))},{priority:"low"}),m.upcastDispatcher.on("text",(b,M,S)=>{M.modelRange||ch(M.viewItem,M.modelCursor,S.schema)&&Object.assign(M,sh(M.viewItem,M.modelCursor,S))},{priority:"lowest"}),l.document.registerPostFixer(b=>this._autoparagraphEmptyRoots(b)),r.data.on("ready",()=>{l.enqueueChange("transparent",b=>this._autoparagraphEmptyRoots(b))},{priority:"lowest"})}_autoparagraphEmptyRoots(r){const l=this.editor.model;for(const m of l.document.getRootNames()){const b=l.document.getRoot(m);if(b.isEmpty&&"$graveyard"!=b.rootName&&l.schema.checkChild(b,"paragraph"))return r.insertElement("paragraph",b),!0}}}function sh(d,r,l){const m=l.writer.createElement("paragraph");return l.writer.insert(m,r),l.convertItem(d,l.writer.createPositionAt(m,0))}function ch(d,r,l){const m=l.createContext(r);return!!l.checkChild(m,"paragraph")&&!!l.checkChild(m.push("paragraph"),d)}Nd.paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td"]);class lh extends Ha{constructor(r,l){super(r),this.modelElements=l}refresh(){const r=eu(this.editor.model.document.selection.getSelectedBlocks());this.value=!!r&&this.modelElements.includes(r.name)&&r.name,this.isEnabled=!!r&&this.modelElements.some(l=>R_(r,l,this.editor.model.schema))}execute(r){const l=this.editor.model,m=l.document,b=r.value;l.change(M=>{const S=Array.from(m.selection.getSelectedBlocks()).filter(q=>R_(q,b,l.schema));for(const q of S)q.is("element",b)||M.rename(q,b)})}}function R_(d,r,l){return l.checkChild(d.parent,r)&&!l.isObject(d)}class Bp extends Eo{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[Nd]}init(){const r=this.editor,l=r.config.get("heading.options"),m=[];for(const b of l)"paragraph"!==b.model&&(r.model.schema.register(b.model,{inheritAllFrom:"$block"}),r.conversion.elementToElement(b),m.push(b.model));this._addDefaultH1Conversion(r),r.commands.add("heading",new lh(r,m))}afterInit(){const r=this.editor,l=r.commands.get("enter"),m=r.config.get("heading.options");l&&this.listenTo(l,"afterExecute",(b,M)=>{const S=r.model.document.selection.getFirstPosition().parent;m.some(q=>S.is("element",q.model))&&!S.is("element","paragraph")&&0===S.childCount&&M.writer.rename(S,"paragraph")})}_addDefaultH1Conversion(r){r.conversion.for("upcast").elementToElement({model:"heading1",view:"h1",converterPriority:as.get("low")+1})}}class H_{constructor(r,l){l&&Pt(this,l),r&&this.set(r)}}io(H_,kt),p(11);class J0 extends Eo{init(){const r=this.editor,l=r.t,m=function(S){const q=S.t,B={Paragraph:q("Paragraph"),"Heading 1":q("Heading 1"),"Heading 2":q("Heading 2"),"Heading 3":q("Heading 3"),"Heading 4":q("Heading 4"),"Heading 5":q("Heading 5"),"Heading 6":q("Heading 6")};return S.config.get("heading.options").map(at=>{const _t=B[at.title];return _t&&_t!=at.title&&(at.title=_t),at})}(r),b=l("Choose heading"),M=l("Heading");r.ui.componentFactory.add("heading",S=>{const q={},B=new Nr,at=r.commands.get("heading"),_t=r.commands.get("paragraph"),Zt=[at];for(const Be of m){const mn={type:"button",model:new H_({label:Be.title,class:Be.class,withText:!0})};"paragraph"===Be.model?(mn.model.bind("isOn").to(_t,"value"),mn.model.set("commandName","paragraph"),Zt.push(_t)):(mn.model.bind("isOn").to(at,"value",Mn=>Mn===Be.model),mn.model.set({commandName:"heading",commandValue:Be.model})),B.add(mn),q[Be.model]=Be.title}const _e=r1(S);return v0(_e,B),_e.buttonView.set({isOn:!1,withText:!0,tooltip:M}),_e.extendTemplate({attributes:{class:["ck-heading-dropdown"]}}),_e.bind("isEnabled").toMany(Zt,"isEnabled",(...Be)=>Be.some(mn=>mn)),_e.buttonView.bind("label").to(at,"value",_t,"value",(Be,mn)=>{const Mn=Be||mn&&"paragraph";return q[Mn]?q[Mn]:b}),this.listenTo(_e,"execute",Be=>{r.execute(Be.source.commandName,Be.source.commandValue?{value:Be.source.commandValue}:void 0),r.editing.view.focus()}),_e})}}function Y_(d){for(const r of d.getChildren())if(r&&r.is("element","caption"))return r;return null}function G0(d){const r=d.parent;return"figcaption"==d.name&&r&&"figure"==r.name&&r.hasClass("image")?{name:!0}:null}class uh extends Eo{static get pluginName(){return"ImageCaptionEditing"}init(){const r=this.editor,l=r.editing.view,b=r.data,M=r.editing,S=r.t;r.model.schema.register("caption",{allowIn:"image",allowContentOf:"$block",isLimit:!0}),r.model.document.registerPostFixer(B=>this._insertMissingModelCaptionElement(B)),r.conversion.for("upcast").elementToElement({view:G0,model:"caption"}),b.downcastDispatcher.on("insert:caption",Og(B=>B.createContainerElement("figcaption"),!1));const q=(B=l,at=S("Enter image caption"),_t=>{const Zt=_t.createEditableElement("figcaption");return _t.setCustomProperty("imageCaption",!0,Zt),Df({view:B,element:Zt,text:at}),iu(Zt,_t)});var B,at;M.downcastDispatcher.on("insert:caption",Og(q)),M.downcastDispatcher.on("insert",this._fixCaptionVisibility(B=>B.item),{priority:"high"}),M.downcastDispatcher.on("remove",this._fixCaptionVisibility(B=>B.position.parent),{priority:"high"}),l.document.registerPostFixer(B=>this._updateCaptionVisibility(B))}_updateCaptionVisibility(r){const l=this.editor.editing.mapper,m=this._lastSelectedCaption;let b;const M=this.editor.model.document.selection,S=M.getSelectedElement();if(S&&S.is("element","image")){const B=Y_(S);b=l.toViewElement(B)}const q=I2(M.getFirstPosition().parent);if(q&&(b=l.toViewElement(q)),b)return m?(m===b||(Rm(m,r),this._lastSelectedCaption=b),Jp(b,r)):(this._lastSelectedCaption=b,Jp(b,r));if(m){const B=Rm(m,r);return this._lastSelectedCaption=null,B}return!1}_fixCaptionVisibility(r){return(l,m,b)=>{const M=I2(r(m)),q=b.writer;if(M){const B=this.editor.editing.mapper.toViewElement(M);B&&(M.childCount?q.removeClass("ck-hidden",B):q.addClass("ck-hidden",B))}}}_insertMissingModelCaptionElement(r){const l=this.editor.model,m=l.document.differ.getChanges(),b=[];for(const M of m)if("insert"==M.type&&"$text"!=M.name){const S=M.position.nodeAfter;if(S.is("element","image")&&!Y_(S)&&b.push(S),!S.is("element","image")&&S.childCount)for(const q of l.createRangeIn(S).getItems())q.is("element","image")&&!Y_(q)&&b.push(q)}for(const M of b)r.appendElement("caption",M);return!!b.length}}function Og(d,r=!0){return(l,m,b)=>{const M=m.item;if((M.childCount||r)&&Lm(M.parent)){if(!b.consumable.consume(m.item,"insert"))return;const S=b.mapper.toViewElement(m.range.start.parent),q=d(b.writer),B=b.writer;M.childCount||B.addClass("ck-hidden",q),function(at,_t,Zt,_e){const Be=_e.writer.createPositionAt(Zt,"end");_e.writer.insert(Be,at),_e.mapper.bindElements(_t,at)}(q,m.item,S,b)}}}function I2(d){const r=d.getAncestors({includeSelf:!0}).find(l=>"caption"==l.name);return r&&r.parent&&"image"==r.parent.name?r:null}function Rm(d,r){return!d.childCount&&!d.hasClass("ck-hidden")&&(r.addClass("ck-hidden",d),!0)}function Jp(d,r){return!!d.hasClass("ck-hidden")&&(r.removeClass("ck-hidden",d),!0)}p(72);class Id extends Ha{constructor(r,l){super(r),this.defaultStyle=!1,this.styles=l.reduce((m,b)=>(m[b.name]=b,b.isDefault&&(this.defaultStyle=b.name),m),{})}refresh(){const r=this.editor.model.document.selection.getSelectedElement();if(this.isEnabled=Lm(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,m=this.editor.model,b=m.document.selection.getSelectedElement();m.change(M=>{this.styles[l].isDefault?M.removeAttribute("imageStyle",b):M.setAttribute("imageStyle",l,b)})}}function q2(d,r){for(const l of r)if(l.name===d)return l}var Gp='',z_='',Lg='',Hm='';const R2={full:{name:"full",title:"Full size image",icon:Gp,isDefault:!0},side:{name:"side",title:"Side image",icon:Hm,className:"image-style-side"},alignLeft:{name:"alignLeft",title:"Left aligned image",icon:z_,className:"image-style-align-left"},alignCenter:{name:"alignCenter",title:"Centered image",icon:Lg,className:"image-style-align-center"},alignRight:{name:"alignRight",title:"Right aligned image",icon:Hm,className:"image-style-align-right"}},Q0={full:Gp,left:z_,right:Hm,center:Lg};function j0(d=[]){return d.map(H2)}function H2(d){if("string"==typeof d){const r=d;R2[r]?d=Object.assign({},R2[r]):(console.warn(Object(Qn.a)("image-style-not-found: There is no such image style of given name."),{name:r}),d={name:r})}else if(R2[d.name]){const r=R2[d.name],l=Object.assign({},d);for(const m in r)Object.prototype.hasOwnProperty.call(d,m)||(l[m]=r[m]);d=l}return"string"==typeof d.icon&&Q0[d.icon]&&(d.icon=Q0[d.icon]),d}class W3 extends Eo{static get pluginName(){return"ImageStyleEditing"}init(){const r=this.editor,l=r.model.schema,m=r.data,b=r.editing;r.config.define("image.styles",["full","side"]);const M=j0(r.config.get("image.styles"));l.extend("image",{allowAttributes:"imageStyle"});const S=(q=M,(B,at,_t)=>{if(!_t.consumable.consume(at.item,B.name))return;const Zt=q2(at.attributeNewValue,q),_e=q2(at.attributeOldValue,q),Be=_t.mapper.toViewElement(at.item),mn=_t.writer;_e&&mn.removeClass(_e.className,Be),Zt&&mn.addClass(Zt.className,Be)});var q;b.downcastDispatcher.on("attribute:imageStyle:image",S),m.downcastDispatcher.on("attribute:imageStyle:image",S),m.upcastDispatcher.on("element:figure",function(q){const B=q.filter(at=>!at.isDefault);return(at,_t,Zt)=>{if(!_t.modelRange)return;const _e=_t.viewItem,Be=eu(_t.modelRange.getItems());if(Zt.schema.checkAttribute(Be,"imageStyle"))for(const mn of B)Zt.consumable.consume(_e,{classes:mn.className})&&Zt.writer.setAttribute("imageStyle",mn.name,Be)}}(M),{priority:"low"}),r.commands.add("imageStyle",new Id(r,M))}}p(74);class Eg extends Eo{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,m){for(const b of l)m[b.title]&&(b.title=m[b.title]);return l}(j0(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,b=>{const M=l.commands.get("imageStyle"),S=new Rs(b);return S.set({label:r.title,icon:r.icon,tooltip:!0,isToggleable:!0}),S.bind("isEnabled").to(M,"isEnabled"),S.bind("isOn").to(M,"value",q=>q===r.name),this.listenTo(S,"execute",()=>{l.execute("imageStyle",{value:r.name}),l.editing.view.focus()}),S})}}class Ym extends Eo{static get requires(){return[Rl]}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",m=>{(function(b){const M=b.getSelectedElement();return!(!M||!mp(M))})(r.editing.view.document.selection)&&m.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:m,getRelatedElement:b,balloonClassName:M="ck-toolbar-container"}){if(!m.length)return void console.warn(Object(Qn.a)("widget-toolbar-no-items: Trying to register a toolbar without items."),{toolbarId:r});const S=this.editor,q=S.t,B=new y2(S.locale);if(B.ariaLabel=l||q("Widget toolbar"),this._toolbarDefinitions.has(r))throw new Qn.b("widget-toolbar-duplicated: Toolbar with the given id was already added.",this,{toolbarId:r});B.fillFromConfig(m,S.ui.componentFactory),this._toolbarDefinitions.set(r,{view:B,getRelatedElement:b,balloonClassName:M})}_updateToolbarsVisibility(){let r=0,l=null,m=null;for(const b of this._toolbarDefinitions.values()){const M=b.getRelatedElement(this.editor.editing.view.document.selection);if(this.isEnabled&&M)if(this.editor.ui.focusTracker.isFocused){const S=M.getAncestors().length;S>r&&(r=S,l=M,m=b)}else this._isToolbarVisible(b)&&this._hideToolbar(b);else this._isToolbarInBalloon(b)&&this._hideToolbar(b)}m&&this._showToolbar(m,l)}_hideToolbar(r){this._balloon.remove(r.view),this.stopListening(this._balloon,"change:visibleView")}_showToolbar(r,l){this._isToolbarVisible(r)?W0(this.editor,l):this._isToolbarInBalloon(r)||(this._balloon.add({view:r.view,position:Y2(this.editor,l),balloonClassName:r.balloonClassName}),this.listenTo(this._balloon,"change:visibleView",()=>{for(const m of this._toolbarDefinitions.values())if(this._isToolbarVisible(m)){const b=m.getRelatedElement(this.editor.editing.view.document.selection);W0(this.editor,b)}}))}_isToolbarVisible(r){return this._balloon.visibleView===r.view}_isToolbarInBalloon(r){return this._balloon.hasView(r.view)}}function W0(d,r){const l=d.plugins.get("ContextualBalloon"),m=Y2(d,r);l.updatePosition(m)}function Y2(d,r){const m=$a.defaultPositions;return{target:d.editing.view.domConverter.mapViewToDom(r),positions:[m.northArrowSouth,m.northArrowSouthWest,m.northArrowSouthEast,m.southArrowNorth,m.southArrowNorthWest,m.southArrowNorthEast,gu]}}class bu extends Ha{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 dh extends Eo{static get pluginName(){return"IndentEditing"}init(){const r=this.editor;r.commands.add("indent",new bu(r)),r.commands.add("outdent",new bu(r))}}var z2='',V2='';class Fg extends Eo{static get pluginName(){return"IndentUI"}init(){const r=this.editor,l=r.locale,m=r.t,b="ltr"==l.uiLanguageDirection?z2:V2,M="ltr"==l.uiLanguageDirection?V2:z2;this._defineButton("indent",m("Increase indent"),b),this._defineButton("outdent",m("Decrease indent"),M)}_defineButton(r,l,m){const b=this.editor;b.ui.componentFactory.add(r,M=>{const S=b.commands.get(r),q=new Rs(M);return q.set({label:l,icon:m,tooltip:!0}),q.bind("isOn","isEnabled").to(S,"value","isEnabled"),this.listenTo(q,"execute",()=>{b.execute(r),b.editing.view.focus()}),q})}}class V_ extends U1{constructor(r){super(r),this.domEventType="click"}onDomEvent(r){this.fire(r.type,r)}}p(76);class $3 extends Xo{constructor(r,l,m){super(r);const b=r.t;this.focusTracker=new Ac,this.keystrokes=new Il,this.urlInputView=this._createUrlInput(m),this.saveButtonView=this._createButton(b("Save"),I_,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(b("Cancel"),L2,"ck-button-cancel","cancel"),this._manualDecoratorSwitches=this._createManualDecoratorSwitches(l),this.children=this._createFormChildren(l.manualDecorators),this._focusables=new O1,this._focusCycler=new Rp({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});const M=["ck","ck-link-form"];l.manualDecorators.length&&M.push("ck-link-form_layout-vertical"),this.setTemplate({tag:"form",attributes:{class:M,tabindex:"-1"},children:this.children})}getDecoratorSwitchesState(){return Array.from(this._manualDecoratorSwitches).reduce((r,l)=>(r[l.name]=l.isOn,r),{})}render(){super.render(),jr({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,m=new eh(this.locale,Zg);return m.label=l("Link URL"),m.fieldView.placeholder=r+"example.com",m}_createButton(r,l,m,b){const M=new Rs(this.locale);return M.set({label:r,icon:l,tooltip:!0}),M.extendTemplate({attributes:{class:m}}),b&&M.delegate("execute").to(this,b),M}_createManualDecoratorSwitches(r){const l=this.createCollection();for(const m of r.manualDecorators){const b=new Am(this.locale);b.set({name:m.id,label:m.label,withText:!0}),b.bind("isOn").toMany([m,r],"value",(M,S)=>void 0===S&&void 0===M?m.defaultValue:M),b.on("execute",()=>{m.set("value",!b.isOn)}),l.add(b)}return l}_createFormChildren(r){const l=this.createCollection();if(l.add(this.urlInputView),r.length){const m=new Xo;m.setTemplate({tag:"ul",children:this._manualDecoratorSwitches.map(b=>({tag:"li",children:[b],attributes:{class:["ck","ck-list__item"]}})),attributes:{class:["ck","ck-reset","ck-list"]}}),l.add(m)}return l.add(this.saveButtonView),l.add(this.cancelButtonView),l}}p(78);class D extends Xo{constructor(r){super(r);const l=r.t;this.focusTracker=new Ac,this.keystrokes=new Il,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 O1,this._focusCycler=new Rp({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,m){const b=new Rs(this.locale);return b.set({label:r,icon:l,tooltip:!0}),b.delegate("execute").to(this,m),b}_createPreviewButton(){const r=new Rs(this.locale),l=this.bindTemplate,m=this.t;return r.set({withText:!0,tooltip:m("Open link in new tab")}),r.extendTemplate({attributes:{class:["ck","ck-link-actions__preview"],href:l.to("href",b=>b&&z3(b)),target:"_blank",rel:"noopener noreferrer"}}),r.bind("label").to(this,"href",b=>b||m("This link has no URL")),r.bind("isEnabled").to(this,"href",b=>!!b),r.template.tag="a",r.template.eventListeners={},r}}const I=/^((\w+:(\/{2,})?)|(\W))/i,nt=/[\w-]+@[\w-]+\.+[\w-]+/i;class Qt extends Eo{static get requires(){return[Rl]}static get pluginName(){return"LinkUI"}init(){const r=this.editor;r.editing.view.addObserver(V_),this.actionsView=this._createActionsView(),this.formView=this._createFormView(),this._balloon=r.plugins.get(Rl),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),m=r.commands.get("link"),b=r.commands.get("unlink");return l.bind("href").to(m,"value"),l.editButtonView.bind("isEnabled").to(m),l.unlinkButtonView.bind("isEnabled").to(b),this.listenTo(l,"edit",()=>{this._addFormView()}),this.listenTo(l,"unlink",()=>{r.execute("unlink"),this._hideUI()}),l.keystrokes.set("Esc",(M,S)=>{this._hideUI(),S()}),l.keystrokes.set("Ctrl+K",(M,S)=>{this._addFormView(),S()}),l}_createFormView(){const r=this.editor,l=r.commands.get("link"),m=r.config.get("link.defaultProtocol"),b=new $3(r.locale,l,m);return b.urlInputView.fieldView.bind("value").to(l,"value"),b.urlInputView.bind("isReadOnly").to(l,"isEnabled",M=>!M),b.saveButtonView.bind("isEnabled").to(l),this.listenTo(b,"submit",()=>{const{value:M}=b.urlInputView.fieldView.element,S=!!m&&!I.test(M),q=nt.test(M);r.execute("link",M&&S?(q?"mailto:":m)+M:M,b.getDecoratorSwitchesState()),this._closeFormView()}),this.listenTo(b,"cancel",()=>{this._closeFormView()}),b.keystrokes.set("Esc",(M,S)=>{this._closeFormView(),S()}),b}_createToolbarLinkButton(){const r=this.editor,l=r.commands.get("link"),m=r.t;r.keystrokes.set("Ctrl+K",(b,M)=>{M(),this._showUI(!0)}),r.ui.componentFactory.add("link",b=>{const M=new Rs(b);return M.isEnabled=!0,M.label=m("Link"),M.icon='',M.keystroke="Ctrl+K",M.tooltip=!0,M.isToggleable=!0,M.bind("isEnabled").to(l,"isEnabled"),M.bind("isOn").to(l,"value",S=>!!S),this.listenTo(M,"execute",()=>this._showUI(!0)),M})}_enableUserBalloonInteractions(){this.listenTo(this.editor.editing.view.document,"click",()=>{this._getSelectedLinkElement()&&this._showUI()}),this.editor.keystrokes.set("Tab",(l,m)=>{this._areActionsVisible&&!this.actionsView.focusTracker.isFocused&&(this.actionsView.focus(),m())},{priority:"high"}),this.editor.keystrokes.set("Esc",(l,m)=>{this._isUIVisible&&(this._hideUI(),m())}),Um({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 m=this._getSelectedLinkElement(),b=S();const M=()=>{const q=this._getSelectedLinkElement(),B=S();m&&!q||!m&&B!==b?this._hideUI():this._isUIVisible&&this._balloon.updatePosition(this._getBalloonPositionData()),m=q,b=B};function S(){return l.selection.focus.getAncestors().reverse().find(q=>q.is("element"))}this.listenTo(r.ui,"update",M),this.listenTo(this._balloon,"change:visibleView",M)}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,m=this._getSelectedLinkElement();return{target:m?r.domConverter.mapViewToDom(m):r.domConverter.viewRangeToDom(l.selection.getFirstRange())}}_getSelectedLinkElement(){const r=this.editor.editing.view,l=r.document.selection;if(l.isCollapsed)return Oe(l.getFirstPosition());{const m=l.getFirstRange().getTrimmed(),b=Oe(m.start),M=Oe(m.end);return b&&b==M&&r.createRangeIn(b).getTrimmed().isEqual(m)?b: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 Oe(d){return d.getAncestors().find(r=>{return(l=r).is("attributeElement")&&!!l.getCustomProperty("link");var l})}class dn extends Ha{constructor(r,l){super(r),this.type=l}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(){const r=this.editor.model,m=Array.from(r.document.selection.getSelectedBlocks()).filter(M=>ci(M,r.schema)),b=!0===this.value;r.change(M=>{if(b){let S=m[m.length-1].nextSibling,q=Number.POSITIVE_INFINITY,B=[];for(;S&&"listItem"==S.name&&0!==S.getAttribute("listIndent");){const at=S.getAttribute("listIndent");at=l;)M>b.getAttribute("listIndent")&&(M=b.getAttribute("listIndent")),b.getAttribute("listIndent")==M&&d[r?"unshift":"push"](b),b=b[r?"previousSibling":"nextSibling"]}}function ci(d,r){return r.checkChild(d.parent,"listItem")&&!r.isObject(d)}class fi extends Ha{constructor(r,l){super(r),this._indentBy="forward"==l?1:-1}refresh(){this.isEnabled=this._checkEnabled()}execute(){const r=this.editor.model;let m=Array.from(r.document.selection.getSelectedBlocks());r.change(b=>{const M=m[m.length-1];let S=M.nextSibling;for(;S&&"listItem"==S.name&&S.getAttribute("listIndent")>M.getAttribute("listIndent");)m.push(S),S=S.nextSibling;this._indentBy<0&&(m=m.reverse());for(const q of m){const B=q.getAttribute("listIndent")+this._indentBy;B<0?b.rename(q,"paragraph"):b.setAttribute("listIndent",B,q)}})}_checkEnabled(){const r=eu(this.editor.model.document.selection.getSelectedBlocks());if(!r||!r.is("element","listItem"))return!1;if(this._indentBy>0){const l=r.getAttribute("listIndent"),m=r.getAttribute("listType");let b=r.previousSibling;for(;b&&b.is("element","listItem")&&b.getAttribute("listIndent")>=l;){if(b.getAttribute("listIndent")==l)return b.getAttribute("listType")==m;b=b.previousSibling}return!1}return!0}}function Xi(d,r,l,m){const b=r.parent,M=l.mapper,S=l.writer;let q=M.toViewPosition(m.createPositionBefore(d));const B=jo(d.previousSibling,{sameIndent:!0,smallerIndent:!0,listIndent:d.getAttribute("listIndent")}),at=d.previousSibling;if(B&&B.getAttribute("listIndent")==d.getAttribute("listIndent")){const _t=M.toViewElement(B);q=S.breakContainer(S.createPositionAfter(_t))}else if(at&&"listItem"==at.name){q=M.toViewPosition(m.createPositionAt(at,"end"));const _t=M.findMappedViewAncestor(q),Zt=function(_e){for(const Be of _e.getChildren())if("ul"==Be.name||"ol"==Be.name)return Be;return null}(_t);q=Zt?S.createPositionBefore(Zt):S.createPositionAt(_t,"end")}else q=M.toViewPosition(m.createPositionBefore(d));if(q=Ro(q),S.insert(q,b),at&&"listItem"==at.name){const _t=M.toViewElement(at),Zt=S.createRange(S.createPositionAt(_t,0),q).getWalker({ignoreElementEnd:!0});for(const _e of Zt)if(_e.item.is("element","li")){const Be=S.breakContainer(S.createPositionBefore(_e.item)),mn=_e.item.parent,Mn=S.createPositionAt(r,"end");eo(S,Mn.nodeBefore,Mn.nodeAfter),S.move(S.createRangeOn(mn),Mn),Zt.position=Be}}else{const _t=b.nextSibling;if(_t&&(_t.is("element","ul")||_t.is("element","ol"))){let Zt=null;for(const _e of _t.getChildren()){const Be=M.toModelElement(_e);if(!(Be&&Be.getAttribute("listIndent")>d.getAttribute("listIndent")))break;Zt=_e}Zt&&(S.breakContainer(S.createPositionAfter(Zt)),S.move(S.createRangeOn(Zt.parent),S.createPositionAt(r,"end")))}}eo(S,b,b.nextSibling),eo(S,b.previousSibling,b)}function eo(d,r,l){return!r||!l||"ul"!=r.name&&"ol"!=r.name||r.name!=l.name||r.getAttribute("class")!==l.getAttribute("class")?null:d.mergeContainers(d.createPositionAfter(r))}function Ro(d){return d.getLastMatchingPosition(r=>r.item.is("uiElement"))}function jo(d,r){const l=!!r.sameIndent,m=!!r.smallerIndent,b=r.listIndent;let M=d;for(;M&&"listItem"==M.name;){const S=M.getAttribute("listIndent");if(l&&b==S||m&&b>S)return M;M=M.previousSibling}return null}function ma(d,r,l,m){d.ui.componentFactory.add(r,b=>{const M=d.commands.get(r),S=new Rs(b);return S.set({label:l,icon:m,tooltip:!0,isToggleable:!0}),S.bind("isOn","isEnabled").to(M,"value","isEnabled"),S.on("execute",()=>{d.execute(r),d.editing.view.focus()}),S})}function ua(){const d=!this.isEmpty&&("ul"==this.getChild(0).name||"ol"==this.getChild(0).name);return this.isEmpty||d?0:id.call(this)}function la(d){return(r,l,m)=>{const b=m.consumable;if(!b.test(l.item,"insert")||!b.test(l.item,"attribute:listType")||!b.test(l.item,"attribute:listIndent"))return;b.consume(l.item,"insert"),b.consume(l.item,"attribute:listType"),b.consume(l.item,"attribute:listIndent");const M=l.item;Xi(M,function to(d,r){const l=r.mapper,m=r.writer,b="numbered"==d.getAttribute("listType")?"ol":"ul",M=function(q){const B=q.createContainerElement("li");return B.getFillerOffset=ua,B}(m),S=m.createContainerElement(b,null);return m.insert(m.createPositionAt(S,0),M),l.bindElements(d,M),M}(M,m),m,d)}}function er(d,r,l){if(!l.consumable.consume(r.item,"attribute:listType"))return;const m=l.mapper.toViewElement(r.item),b=l.writer;b.breakContainer(b.createPositionBefore(m)),b.breakContainer(b.createPositionAfter(m)),b.rename("numbered"==r.attributeNewValue?"ol":"ul",m.parent)}function Na(d,r,l){const m=l.mapper.toViewElement(r.item).parent,b=l.writer;eo(b,m,m.nextSibling),eo(b,m.previousSibling,m);for(const M of r.item.getChildren())l.consumable.consume(M,"insert")}function au(d,r,l){if("listItem"!=r.item.name){let m=l.mapper.toViewPosition(r.range.start);const b=l.writer,M=[];for(;("ul"==m.parent.name||"ol"==m.parent.name)&&(m=b.breakContainer(m),"li"==m.parent.name);){const S=m,q=b.createPositionAt(m.parent,"end");if(!S.isEqual(q)){const B=b.remove(b.createRange(S,q));M.push(B)}m=b.createPositionAfter(m.parent)}if(M.length>0){for(let S=0;S0){const B=eo(b,q,q.nextSibling);B&&B.parent==q&&m.offset--}}eo(b,m.nodeBefore,m.nodeAfter)}}}function hc(d,r,l){const m=l.mapper.toViewPosition(r.position);eo(l.writer,m.nodeBefore,m.nodeAfter)}function nl(d,r,l){if(l.consumable.consume(r.viewItem,{name:!0})){const m=l.writer,b=m.createElement("listItem"),M=function(at){let _t=0,Zt=at.parent;for(;Zt;){if(Zt.is("element","li"))_t++;else{const _e=Zt.previousSibling;_e&&_e.is("element","li")&&_t++}Zt=Zt.parent}return _t}(r.viewItem);m.setAttribute("listIndent",M,b),m.setAttribute("listType",r.viewItem.parent&&"ol"==r.viewItem.parent.name?"numbered":"bulleted",b);const q=l.splitToAllowedParent(b,r.modelCursor);if(!q)return;m.insert(b,q.position);const B=function(at,_t,Zt){const{writer:_e,schema:Be}=Zt;let mn=_e.createPositionAfter(at);for(const Mn of _t)if("ul"==Mn.name||"ol"==Mn.name)mn=Zt.convertItem(Mn,mn).modelCursor;else{const In=Zt.convertItem(Mn,_e.createPositionAt(at,"end")),Gn=In.modelRange.start.nodeAfter;Gn&&Gn.is("element")&&!Be.checkChild(at,Gn.name)&&(at=In.modelCursor.parent.is("element","listItem")?In.modelCursor.parent:ph(In.modelCursor),mn=_e.createPositionAfter(at))}return mn}(b,r.viewItem.getChildren(),l);r.modelRange=m.createRange(r.modelCursor,B),r.modelCursor=q.cursorParent?m.createPositionAt(q.cursorParent,0):r.modelRange.end}}function Cs(d,r,l){if(l.consumable.test(r.viewItem,{name:!0})){const m=Array.from(r.viewItem.getChildren());for(const b of m)!b.is("element","li")&&!qd(b)&&b._remove()}}function Hl(d,r,l){if(l.consumable.test(r.viewItem,{name:!0})){if(0===r.viewItem.childCount)return;const m=[...r.viewItem.getChildren()];let b=!1,M=!0;for(const S of m)b&&!qd(S)&&S._remove(),S.is("$text")?(M&&(S._data=S.data.replace(/^\s+/,"")),S.nextSibling&&!qd(S.nextSibling)||(S._data=S.data.replace(/\s+$/,""))):qd(S)&&(b=!0),M=!1}}function ru(d){return(r,l)=>{if(l.isPhantom)return;const m=l.modelPosition.nodeBefore;if(m&&m.is("element","listItem")){const b=l.mapper.toViewElement(m),M=b.getAncestors().find(qd),S=d.createPositionAt(b,0).getWalker();for(const q of S){if("elementStart"==q.type&&q.item.is("element","li")){l.viewPosition=q.previousPosition;break}if("elementEnd"==q.type&&q.item==M){l.viewPosition=q.nextPosition;break}}}}}function zm(d,[r,l]){let m,b=r.is("documentFragment")?r.getChild(0):r;if(m=l?this.createSelection(l):this.document.selection,b&&b.is("element","listItem")){const M=m.getFirstPosition();let S=null;if(M.parent.is("element","listItem")?S=M.parent:M.nodeBefore&&M.nodeBefore.is("element","listItem")&&(S=M.nodeBefore),S){const q=S.getAttribute("listIndent");if(q>0)for(;b&&b.is("element","listItem");)b._setAttribute("listIndent",b.getAttribute("listIndent")+q),b=b.nextSibling}}}function ph(d){const r=new el({startPosition:d});let l;do{l=r.next()}while(!l.value.item.is("element","listItem"));return l.value.item}function B_(d,r,l,m,b,M){const S=jo(r.nodeBefore,{sameIndent:!0,smallerIndent:!0,listIndent:d,foo:"b"}),q=b.mapper,B=b.writer,at=S?S.getAttribute("listIndent"):null;let _t;if(S)if(at==d){const Zt=q.toViewElement(S).parent;_t=B.createPositionAfter(Zt)}else{const Zt=M.createPositionAt(S,"end");_t=q.toViewPosition(Zt)}else _t=l;_t=Ro(_t);for(const Zt of[...m.getChildren()])qd(Zt)&&(_t=B.move(B.createRangeOn(Zt),_t).end,eo(B,Zt,Zt.nextSibling),eo(B,Zt.previousSibling,Zt))}function qd(d){return d.is("element","ol")||d.is("element","ul")}class K3 extends Eo{static get pluginName(){return"ListEditing"}static get requires(){return[Nd]}init(){const r=this.editor;r.model.schema.register("listItem",{inheritAllFrom:"$block",allowAttributes:["listType","listIndent"]});const l=r.data,m=r.editing;var b;r.model.document.registerPostFixer(q=>function(B,at){const _t=B.document.differ.getChanges(),Zt=new Map;let _e=!1;for(const In of _t)if("insert"==In.type&&"listItem"==In.name)Be(In.position);else if("insert"==In.type&&"listItem"!=In.name){if("$text"!=In.name){const Gn=In.position.nodeAfter;Gn.hasAttribute("listIndent")&&(at.removeAttribute("listIndent",Gn),_e=!0),Gn.hasAttribute("listType")&&(at.removeAttribute("listType",Gn),_e=!0);for(const Fi of Array.from(B.createRangeIn(Gn)).filter(Ji=>Ji.item.is("element","listItem")))Be(Fi.previousPosition)}Be(In.position.getShiftedBy(In.length))}else"remove"==In.type&&"listItem"==In.name?Be(In.position):("attribute"==In.type&&"listIndent"==In.attributeKey||"attribute"==In.type&&"listType"==In.attributeKey)&&Be(In.range.start);for(const In of Zt.values())mn(In),Mn(In);return _e;function Be(In){const Gn=In.nodeBefore;if(Gn&&Gn.is("element","listItem")){let Fi=Gn;if(Zt.has(Fi))return;for(let Ji=Fi.previousSibling;Ji&&Ji.is("element","listItem");Ji=Fi.previousSibling)if(Fi=Ji,Zt.has(Fi))return;Zt.set(Gn,Fi)}else{const Fi=In.nodeAfter;Fi&&Fi.is("element","listItem")&&Zt.set(Fi,Fi)}}function mn(In){let Gn=0,Fi=null;for(;In&&In.is("element","listItem");){const Ji=In.getAttribute("listIndent");if(Ji>Gn){let Do;null===Fi?(Fi=Ji-Gn,Do=Gn):(Fi>Ji&&(Fi=Ji),Do=Ji-Fi),at.setAttribute("listIndent",Do,In),_e=!0}else Fi=null,Gn=In.getAttribute("listIndent")+1;In=In.nextSibling}}function Mn(In){let Gn=[],Fi=null;for(;In&&In.is("element","listItem");){const Ji=In.getAttribute("listIndent");if(Fi&&Fi.getAttribute("listIndent")>Ji&&(Gn=Gn.slice(0,Ji+1)),0!=Ji)if(Gn[Ji]){const Do=Gn[Ji];In.getAttribute("listType")!=Do&&(at.setAttribute("listType",Do,In),_e=!0)}else Gn[Ji]=In.getAttribute("listType");Fi=In,In=In.nextSibling}}}(r.model,q)),m.mapper.registerViewToModelLength("li",Ng),l.mapper.registerViewToModelLength("li",Ng),m.mapper.on("modelToViewPosition",ru(m.view)),m.mapper.on("viewToModelPosition",(b=r.model,(q,B)=>{const at=B.viewPosition,_t=at.parent,Zt=B.mapper;if("ul"==_t.name||"ol"==_t.name){if(at.isAtEnd){const _e=Zt.toModelElement(at.nodeBefore),Be=Zt.getModelLength(at.nodeBefore);B.modelPosition=b.createPositionBefore(_e).getShiftedBy(Be)}else{const _e=Zt.toModelElement(at.nodeAfter);B.modelPosition=b.createPositionBefore(_e)}q.stop()}else if("li"==_t.name&&at.nodeBefore&&("ul"==at.nodeBefore.name||"ol"==at.nodeBefore.name)){const _e=Zt.toModelElement(_t);let Be=1,mn=at.nodeBefore;for(;mn&&qd(mn);)Be+=Zt.getModelLength(mn),mn=mn.previousSibling;B.modelPosition=b.createPositionBefore(_e).getShiftedBy(Be),q.stop()}})),l.mapper.on("modelToViewPosition",ru(m.view)),r.conversion.for("editingDowncast").add(q=>{var B;q.on("insert",au,{priority:"high"}),q.on("insert:listItem",la(r.model)),q.on("attribute:listType:listItem",er,{priority:"high"}),q.on("attribute:listType:listItem",Na,{priority:"low"}),q.on("attribute:listIndent:listItem",(B=r.model,(at,_t,Zt)=>{if(!Zt.consumable.consume(_t.item,"attribute:listIndent"))return;const _e=Zt.mapper.toViewElement(_t.item),Be=Zt.writer;Be.breakContainer(Be.createPositionBefore(_e)),Be.breakContainer(Be.createPositionAfter(_e));const mn=_e.parent,Mn=mn.previousSibling,In=Be.createRangeOn(mn);Be.remove(In),Mn&&Mn.nextSibling&&eo(Be,Mn,Mn.nextSibling),B_(_t.attributeOldValue+1,_t.range.start,In.start,_e,Zt,B),Xi(_t.item,_e,Zt,B);for(const Gn of _t.item.getChildren())Zt.consumable.consume(Gn,"insert")})),q.on("remove:listItem",function(B){return(at,_t,Zt)=>{const _e=Zt.mapper.toViewPosition(_t.position).getLastMatchingPosition(Fi=>!Fi.item.is("element","li")).nodeAfter,Be=Zt.writer;Be.breakContainer(Be.createPositionBefore(_e)),Be.breakContainer(Be.createPositionAfter(_e));const mn=_e.parent,Mn=mn.previousSibling,In=Be.createRangeOn(mn),Gn=Be.remove(In);Mn&&Mn.nextSibling&&eo(Be,Mn,Mn.nextSibling),B_(Zt.mapper.toModelElement(_e).getAttribute("listIndent")+1,_t.position,In.start,_e,Zt,B);for(const Fi of Be.createRangeIn(Gn).getItems())Zt.mapper.unbindViewElement(Fi);at.stop()}}(r.model)),q.on("remove",hc,{priority:"low"})}),r.conversion.for("dataDowncast").add(q=>{q.on("insert",au,{priority:"high"}),q.on("insert:listItem",la(r.model))}),r.conversion.for("upcast").add(q=>{q.on("element:ul",Cs,{priority:"high"}),q.on("element:ol",Cs,{priority:"high"}),q.on("element:li",Hl,{priority:"high"}),q.on("element:li",nl)}),r.model.on("insertContent",zm,{priority:"high"}),r.commands.add("numberedList",new dn(r,"numbered")),r.commands.add("bulletedList",new dn(r,"bulleted")),r.commands.add("indentList",new fi(r,"forward")),r.commands.add("outdentList",new fi(r,"backward"));const M=m.view.document;this.listenTo(M,"enter",(q,B)=>{const at=this.editor.model.document,_t=at.selection.getLastPosition().parent;at.selection.isCollapsed&&"listItem"==_t.name&&_t.isEmpty&&(this.editor.execute("outdentList"),B.preventDefault(),q.stop())}),this.listenTo(M,"delete",(q,B)=>{if("backward"!==B.direction)return;const at=this.editor.model.document.selection;if(!at.isCollapsed)return;const _t=at.getFirstPosition();if(!_t.isAtStart)return;const Zt=_t.parent;"listItem"===Zt.name&&(Zt.previousSibling&&"listItem"===Zt.previousSibling.name||(this.editor.execute("outdentList"),B.preventDefault(),q.stop()))},{priority:"high"});const S=q=>(B,at)=>{this.editor.commands.get(q).isEnabled&&(this.editor.execute(q),at())};r.keystrokes.set("Tab",S("indentList")),r.keystrokes.set("Shift+Tab",S("outdentList"))}afterInit(){const r=this.editor.commands,l=r.get("indent"),m=r.get("outdent");l&&l.registerChildCommand(r.get("indentList")),m&&m.registerChildCommand(r.get("outdentList"))}}function Ng(d){let r=1;for(const l of d.getChildren())if("ul"==l.name||"ol"==l.name)for(const m of l.getChildren())r+=Ng(m);return r}class c6 extends Eo{init(){const r=this.editor.t;ma(this.editor,"numberedList",r("Numbered List"),''),ma(this.editor,"bulletedList",r("Bulleted List"),'')}}function $0(d,r){return m=>{m.on("attribute:url:media",l)};function l(m,b,M){if(!M.consumable.consume(b.item,m.name))return;const S=b.attributeNewValue,q=M.writer,B=M.mapper.toViewElement(b.item),at=[...B.getChildren()].find(Zt=>Zt.getCustomProperty("media-content"));q.remove(at);const _t=d.getMediaViewElement(q,S,r);q.insert(q.createPositionAt(B,0),_t)}}function K0(d,r,l,m){const b=d.createContainerElement("figure",{class:"media"});return d.insert(d.createPositionAt(b,0),r.getMediaViewElement(d,l,m)),b}function X3(d){const r=d.getSelectedElement();return r&&r.is("element","media")?r:null}function t4(d,r,l){d.change(m=>{const b=m.createElement("media",{url:r});d.insertContent(b,l),m.setSelection(b,"on")})}class Ig extends Ha{refresh(){const r=this.editor.model,l=r.document.selection,m=r.schema,b=l.getFirstPosition(),M=X3(l);let S=b.parent;S!=S.root&&(S=S.parent),this.value=M?M.getAttribute("url"):null,this.isEnabled=m.checkChild(S,"media")}execute(r){const l=this.editor.model,m=l.document.selection,b=X3(m);if(b)l.change(M=>{M.setAttribute("url",r,b)});else{const M=_p(m,l);t4(l,r,M)}}}class e4{constructor(r,l){const m=l.providers,b=l.extraProviders||[],M=new Set(l.removeProviders),S=m.concat(b).filter(q=>{const B=q.name;return B?!M.has(B):(console.warn(Object(Qn.a)("media-embed-no-provider-name: The configured media provider has no name and cannot be used."),{provider:q}),!1)});this.locale=r,this.providerDefinitions=S}hasMedia(r){return!!this._getMedia(r)}getMediaViewElement(r,l,m){return this._getMedia(l).getViewElement(r,m)}_getMedia(r){if(!r)return new n4(this.locale);r=r.trim();for(const l of this.providerDefinitions){const m=l.html;let b=l.url;Array.isArray(b)||(b=[b]);for(const M of b){const S=this._getUrlMatches(r,M);if(S)return new n4(this.locale,r,S,m)}}return null}_getUrlMatches(r,l){let m=r.match(l);if(m)return m;let b=r.replace(/^https?:\/\//,"");return m=b.match(l),m||(b=b.replace(/^www\./,""),m=b.match(l),m||null)}}class n4{constructor(r,l,m,b){this.url=this._getValidUrl(l),this._t=r.t,this._match=m,this._previewRenderer=b}getViewElement(r,l){const m={};let b;if(l.renderForEditingView||l.renderMediaPreview&&this.url&&this._previewRenderer){this.url&&(m["data-oembed-url"]=this.url),l.renderForEditingView&&(m.class="ck-media__wrapper");const M=this._getPreviewHtml(l);b=r.createRawElement("div",m,function(S){S.innerHTML=M})}else this.url&&(m.url=this.url),b=r.createEmptyElement("oembed",m);return r.setCustomProperty("media-content",!0,b),b}_getPreviewHtml(r){return this._previewRenderer?this._previewRenderer(this._match):this.url&&r.renderForEditingView?this._getPlaceholderHtml():""}_getPlaceholderHtml(){const r=new h0,l=new Tm;return r.text=this._t("Open media in new tab"),l.content='',l.viewBox="0 0 64 42",new yl({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}}p(80);class X0 extends Eo{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 e4(r.locale,r.config.get("mediaEmbed"))}init(){const r=this.editor,l=r.model.schema,m=r.t,b=r.conversion,M=r.config.get("mediaEmbed.previewsInData"),S=this.registry;r.commands.add("mediaEmbed",new Ig(r)),l.register("media",{isObject:!0,isBlock:!0,allowWhere:"$block",allowAttributes:["url"]}),b.for("dataDowncast").elementToElement({model:"media",view:(q,B)=>{const at=q.getAttribute("url");return K0(B,S,at,{renderMediaPreview:at&&M})}}),b.for("dataDowncast").add($0(S,{renderMediaPreview:M})),b.for("editingDowncast").elementToElement({model:"media",view:(q,B)=>{const at=q.getAttribute("url");return Zt=K0(B,S,at,{renderForEditingView:!0}),_e=B,Be=m("media widget"),_e.setCustomProperty("media",!0,Zt),c1(Zt,_e,{label:Be});var Zt,_e,Be}}),b.for("editingDowncast").add($0(S,{renderForEditingView:!0})),b.for("upcast").elementToElement({view:{name:"oembed",attributes:{url:!0}},model:(q,B)=>{const at=q.getAttribute("url");if(S.hasMedia(at))return B.createElement("media",{url:at})}}).elementToElement({view:{name:"div",attributes:{"data-oembed-url":!0}},model:(q,B)=>{const at=q.getAttribute("data-oembed-url");if(S.hasMedia(at))return B.createElement("media",{url:at})}})}}const t3=/^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w.-]+)+[\w\-._~:/?#[\]@!$&'()*+,;=]+$/;class l6 extends Eo{static get requires(){return[Mm,Rf]}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(Mm),"inputTransformation",()=>{const m=l.selection.getFirstRange(),b=rc.fromPosition(m.start);b.stickiness="toPrevious";const M=rc.fromPosition(m.end);M.stickiness="toNext",l.once("change:data",()=>{this._embedMediaBetweenPositions(b,M),b.detach(),M.detach()},{priority:"high"})}),r.commands.get("undo").on("execute",()=>{this._timeoutId&&(ft.window.clearTimeout(this._timeoutId),this._positionToInsert.detach(),this._timeoutId=null,this._positionToInsert=null)},{priority:"high"})}_embedMediaBetweenPositions(r,l){const m=this.editor,b=m.plugins.get(X0).registry,M=new Pp(r,l),S=M.getWalker({ignoreElementEnd:!0});let q="";for(const B of S)B.item.is("$textProxy")&&(q+=B.item.data);q=q.trim(),q.match(t3)&&b.hasMedia(q)&&m.commands.get("mediaEmbed").isEnabled?(this._positionToInsert=rc.fromPosition(r),this._timeoutId=ft.window.setTimeout(()=>{m.model.change(B=>{let at;this._timeoutId=null,B.remove(M),M.detach(),"$graveyard"!==this._positionToInsert.root.rootName&&(at=this._positionToInsert),t4(m.model,q,at),this._positionToInsert.detach(),this._positionToInsert=null})},100)):M.detach()}}p(82);class i4 extends Xo{constructor(r,l){super(l);const m=l.t;this.focusTracker=new Ac,this.keystrokes=new Il,this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(m("Save"),I_,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(m("Cancel"),L2,"ck-button-cancel","cancel"),this._focusables=new O1,this._focusCycler=new Rp({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(),jr({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,m)=>{m.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 eh(this.locale,Zg),m=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,m.placeholder="https://example.com",m.on("input",()=>{l.infoText=m.element.value?this._urlInputViewInfoTip:this._urlInputViewInfoDefault}),l}_createButton(r,l,m,b){const M=new Rs(this.locale);return M.set({label:r,icon:l,tooltip:!0}),M.extendTemplate({attributes:{class:m}}),b&&M.delegate("execute").to(this,b),M}}class l1 extends Eo{static get requires(){return[X0]}static get pluginName(){return"MediaEmbedUI"}init(){const r=this.editor,l=r.commands.get("mediaEmbed"),m=r.plugins.get(X0).registry;r.ui.componentFactory.add("mediaEmbed",b=>{const M=r1(b),S=new i4((q=r.t,B=m,[at=>{if(!at.url.length)return q("The URL must not be empty.")},at=>{if(!B.hasMedia(at.url))return q("This media URL is not supported.")}]),r.locale);var q,B;return this._setUpDropdown(M,S,l,r),this._setUpForm(M,S,l),M})}_setUpDropdown(r,l,m){const b=this.editor,M=b.t,S=r.buttonView;function q(){b.editing.view.focus(),r.isOpen=!1}r.bind("isEnabled").to(m),r.panelView.children.add(l),S.set({label:M("Insert media"),icon:'',tooltip:!0}),S.on("open",()=>{l.url=m.value||"",l.urlInputView.fieldView.select(),l.focus()},{priority:"low"}),r.on("submit",()=>{l.isValid()&&(b.execute("mediaEmbed",l.url),q())}),r.on("change:isOpen",()=>l.resetFormStatus()),r.on("cancel",()=>q())}_setUpForm(r,l,m){l.delegate("submit","cancel").to(r),l.urlInputView.bind("value").to(m,"value"),l.urlInputView.bind("isReadOnly").to(m,"isEnabled",b=>!b),l.saveButtonView.bind("isEnabled").to(m)}}function mh(d,r,l){const m=r.parent,b=l.createElement(d.type),M=m.getChildIndex(r)+1;return l.insertChild(M,b,m),b}function u1(d){const r={},l=d.getStyle("mso-list");if(l){const m=l.match(/(^|\s+)l(\d+)/i),b=l.match(/\s*lfo(\d+)/i),M=l.match(/\s*level(\d+)/i);m&&b&&M&&(r.id=m[2],r.order=b[1],r.indent=M[1])}return r}p(84);const V1=/id=("|')docs-internal-guid-[-0-9a-f]+("|')/i;class e3{constructor(r){this.document=r}isActive(r){return V1.test(r)}execute(r){const l=new oh(this.document);(function(m,b){for(const M of m.getChildren())if(M.is("element","b")&&"normal"===M.getStyle("font-weight")){const S=m.getChildIndex(M);b.remove(M),b.insertChild(S,M.getChildren(),m)}})(r.content,l),function(m,b){for(const M of b.createRangeIn(m)){const S=M.item;if(S.is("element","li")){const q=S.getChild(0);q.is("element","p")&&b.unwrapElement(q)}}}(r.content,l)}}function u6(d){return d.replace(/(\s+)<\/span>/g,(r,l)=>1===l.length?" ":Array(l.length+1).join("\xa0 ").substr(0,l.length))}const _h=//i,d6=/xmlns:o="urn:schemas-microsoft-com/i;class n3{constructor(r){this.document=r}isActive(r){return _h.test(r)||d6.test(r)}execute(r){const{body:l,stylesString:m}=function Rg(d,r){const l=new DOMParser,m=u6(u6(function(B){const at=B.match(/<\/body>(.*?)(<\/html>|$)/);return at&&at[1]&&(B=B.slice(0,at.index)+B.slice(at.index).replace(at[1],"")),B}(d=d.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},h.prototype.json=function(x,t){return t=t||this.step,typeof JSON>"u"?x:"string"==typeof x?JSON.stringify(JSON.parse(x),null,t):"object"==typeof x?JSON.stringify(x,null,t):x},h.prototype.css=function(x,v){var t=x.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=v?j(v):this.shift;for(P=0;P/g,"").replace(/[ \r\n\t]{1,}xmlns/g," xmlns")).replace(/>\s{0,}<")},h.prototype.jsonmin=function(x){return typeof JSON>"u"?x:JSON.stringify(JSON.parse(x),null,0)},h.prototype.cssmin=function(x,v){return(v?x:x.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,"*/")},h.prototype.sqlmin=function(x){return x.replace(/\s{1,}/g," ").replace(/\s{1,}\(/,"(").replace(/\s{1,}\)/,")")},X.exports=new h},67824:(X,j,h)=>{"use strict";function u(p){for(var x in p)j.hasOwnProperty(x)||(j[x]=p[x])}Object.defineProperty(j,"__esModule",{value:!0}),u(h(95085)),u(h(26243)),u(h(91786)),u(h(30225)),u(h(76767)),u(h(30345)),u(h(15675)),u(h(86461)),u(h(58802)),u(h(33900)),u(h(88866)),u(h(94655)),u(h(4068)),u(h(33858)),u(h(98237)),u(h(83292))},95085:function(X,j,h){"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(j,"__esModule",{value:!0});var p=h(15675),x=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=p.Layout.dragStart,w.dragend=w.dragEnd=p.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}(p.Layout);j.LayoutAdaptor=x,j.adaptor=function v(t){return new x(t)}},83292:(X,j,h)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});var u=h(15675),p=h(76767);j.gridify=function x(T,U,w,P){T.cola.start(0,0,0,10,!1);var O=function v(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 p.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})},j.powerGraphGridLayout=function t(T,U,w){var P;T.nodes.forEach(function(V,W){return V.index=W}),(new u.Layout).avoidOverlaps(!1).nodes(T.nodes).links(T.links).powerGraphGroups(function(V){(P=V).groups.forEach(function(W){return W.padding=w})});var O=T.nodes.length,L=[],N=T.nodes.slice(0);return N.forEach(function(V,W){return V.index=W}),P.groups.forEach(function(V){var W=V.index=V.id+O;N.push(V),typeof V.leaves<"u"&&V.leaves.forEach(function(tt){return L.push({source:W,target:tt.index})}),typeof V.groups<"u"&&V.groups.forEach(function(tt){return L.push({source:W,target:tt.id+O})})}),P.powerEdges.forEach(function(V){L.push({source:V.source.index,target:V.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(V){(P=V).groups.forEach(function(W){W.padding=w})}).start(50,0,100,0,!1),powerGraph:P}}},26243:(X,j,h)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});var u=h(49346),p=h(22487);j.d3adaptor=function x(t){return!t||function v(t){return t.version&&null!==t.version.match(/^3\./)}(t)?new u.D3StyleLayoutAdaptor:new p.D3StyleLayoutAdaptor(t)}},49346:function(X,j,h){"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(j,"__esModule",{value:!0});var p=h(15675),x=function(t){function T(){var U=t.call(this)||this;U.event=d3.dispatch(p.EventType[p.EventType.start],p.EventType[p.EventType.tick],p.EventType[p.EventType.end]);var w=U;return U.drag=function(){if(!O)var O=d3.behavior.drag().origin(p.Layout.dragOrigin).on("dragstart.d3adaptor",p.Layout.dragStart).on("drag.d3adaptor",function(L){p.Layout.drag(L,d3.event),w.resume()}).on("dragend.d3adaptor",p.Layout.dragEnd);if(!arguments.length)return O;this.call(O)},U}return u(T,t),T.prototype.trigger=function(U){var w={type:p.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:p.EventType[U],w),this},T}(p.Layout);j.D3StyleLayoutAdaptor=x,j.d3adaptor=function v(){return new x}},22487:function(X,j,h){"use strict";var v,u=this&&this.__extends||(v=function(t,T){return(v=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}v(t,T),t.prototype=null===T?Object.create(T):(U.prototype=T.prototype,new U)});Object.defineProperty(j,"__esModule",{value:!0});var p=h(15675),x=function(v){function t(T){var U=v.call(this)||this;U.d3Context=T,U.event=T.dispatch(p.EventType[p.EventType.start],p.EventType[p.EventType.tick],p.EventType[p.EventType.end]);var w=U;return U.drag=function(){if(!O)var O=T.drag().subject(p.Layout.dragOrigin).on("start.d3adaptor",p.Layout.dragStart).on("drag.d3adaptor",function(L){p.Layout.drag(L,T.event),w.resume()}).on("end.d3adaptor",p.Layout.dragEnd);if(!arguments.length)return O;arguments[0].call(O)},U}return u(t,v),t.prototype.trigger=function(T){var U={type:p.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 v.prototype.tick.call(T)&&U.stop()})},t.prototype.on=function(T,U){return this.event.on("string"==typeof T?T:p.EventType[T],U),this},t}(p.Layout);j.D3StyleLayoutAdaptor=x},91786:(X,j)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});var h=function(){function x(){this.locks={}}return x.prototype.add=function(v,t){this.locks[v]=t},x.prototype.clear=function(){this.locks={}},x.prototype.isEmpty=function(){for(var v in this.locks)return!1;return!0},x.prototype.apply=function(v){for(var t in this.locks)v(Number(t),this.locks[t])},x}();j.Locks=h;var u=function(){function x(v,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 p,this.project=null,this.x=v,this.k=v.length;var U=this.n=v[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 h,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 ct=this.offsetDir();for(U=0;U1&&bt>Dt||!isFinite(Dt)){for(U=0;U1&&(wt=1);var qt=Dt*Dt,Jt=2*wt*(bt-Dt)/(qt*bt),yt=bt*bt*bt,At=2*-wt/(qt*yt);for(isFinite(Jt)||console.log(Jt),U=0;U0?ce-(fe+1)*pt:ce-(fe-1)*pt)&&st<=xt&&(this.scaleSnapByMaxH?(this.g[U][N]+=L*Bt*st,this.H[U][N][N]+=L*Bt):(this.g[U][N]+=Bt*st,this.H[U][N][N]+=Bt))}this.locks.isEmpty()||this.locks.apply(function(Fe,Ge){for(U=0;U0;)for(var w=t;w-- >0;)T(U,w)},x.prototype.matrixApply=function(v){x.mApply(this.k,this.n,v)},x.prototype.computeNextPosition=function(v,t){var T=this;this.computeDerivatives(v);var U=this.computeStepSize(this.g);if(this.stepAndProject(v,t,this.g,U),this.project){this.matrixApply(function(P,O){return T.e[P][O]=v[P][O]-t[P][O]});var w=this.computeStepSize(this.e);w=Math.max(.2,Math.min(w,1)),this.stepAndProject(v,t,this.e,w)}},x.prototype.run=function(v){for(var t=Number.MAX_VALUE,T=!1;!T&&v-- >0;){var U=this.rungeKutta();T=Math.abs(t/U-1)>16)/this.range},x.prototype.getNextBetween=function(v,t){return v+this.getNext()*(t-v)},x}();j.PseudoRandom=p},30225:function(X,j,h){"use strict";var ve,u=this&&this.__extends||(ve=function(fe,Le){return(ve=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Fe,Ge){Fe.__proto__=Ge}||function(Fe,Ge){for(var Gt in Ge)Ge.hasOwnProperty(Gt)&&(Fe[Gt]=Ge[Gt])})(fe,Le)},function(fe,Le){function Fe(){this.constructor=fe}ve(fe,Le),fe.prototype=null===Le?Object.create(Le):(Fe.prototype=Le.prototype,new Fe)});Object.defineProperty(j,"__esModule",{value:!0});var p=h(4068),x=function ve(){};j.Point=x;var v=function ve(fe,Le,Fe,Ge){this.x1=fe,this.y1=Le,this.x2=Fe,this.y2=Ge};j.LineSegment=v;var t=function(ve){function fe(){return null!==ve&&ve.apply(this,arguments)||this}return u(fe,ve),fe}(x);function T(ve,fe,Le){return(fe.x-ve.x)*(Le.y-ve.y)-(Le.x-ve.x)*(fe.y-ve.y)}function U(ve,fe,Le){return T(ve,fe,Le)>0}function w(ve,fe,Le){return T(ve,fe,Le)<0}function V(ve,fe){var Le=fe.slice(0);return Le.push(fe[0]),{rtan:W(ve,Le),ltan:tt(ve,Le)}}function W(ve,fe){var Fe,Ge,Gt,ne,Le=fe.length-1;if(w(ve,fe[1],fe[0])&&!U(ve,fe[Le-1],fe[0]))return 0;for(Fe=0,Ge=Le;;){if(Ge-Fe==1)return U(ve,fe[Fe],fe[Ge])?Fe:Ge;if((ne=w(ve,fe[(Gt=Math.floor((Fe+Ge)/2))+1],fe[Gt]))&&!U(ve,fe[Gt-1],fe[Gt]))return Gt;U(ve,fe[Fe+1],fe[Fe])?ne||U(ve,fe[Fe],fe[Gt])?Ge=Gt:Fe=Gt:ne&&w(ve,fe[Fe],fe[Gt])?Ge=Gt:Fe=Gt}}function tt(ve,fe){var Fe,Ge,Gt,ne,Le=fe.length-1;if(U(ve,fe[Le-1],fe[0])&&!w(ve,fe[1],fe[0]))return 0;for(Fe=0,Ge=Le;;){if(Ge-Fe==1)return w(ve,fe[Fe],fe[Ge])?Fe:Ge;if(ne=w(ve,fe[(Gt=Math.floor((Fe+Ge)/2))+1],fe[Gt]),U(ve,fe[Gt-1],fe[Gt])&&!ne)return Gt;w(ve,fe[Fe+1],fe[Fe])?ne?w(ve,fe[Fe],fe[Gt])?Ge=Gt:Fe=Gt:Ge=Gt:ne?Fe=Gt:U(ve,fe[Fe],fe[Gt])?Ge=Gt:Fe=Gt}}function st(ve,fe,Le,Fe,Ge,Gt){var Te,ne;ne=Fe(ve[Te=Le(fe[0],ve)],fe);for(var jt=!1;!jt;){for(jt=!0;Te===ve.length-1&&(Te=0),!Ge(fe[ne],ve[Te],ve[Te+1]);)++Te;for(;0===ne&&(ne=fe.length-1),!Gt(ve[Te],fe[ne],fe[ne-1]);)--ne,jt=!1}return{t1:Te,t2:ne}}function bt(ve,fe){return st(ve,fe,W,tt,U,w)}j.PolyPoint=t,j.isLeft=T,j.ConvexHull=function P(ve){var Fe,fe=ve.slice(0).sort(function(Me,en){return Me.x!==en.x?en.x-Me.x:en.y-Me.y}),Le=ve.length,Gt=fe[0].x;for(Fe=1;Fe=0&&fe[Fe].x===Xt;Fe--);for(jt=Fe+1,Fe=Te;++Fe<=jt;)if(!(T(fe[0],fe[jt],fe[Fe])>=0&&Fe1&&!(T(ne[ne.length-2],ne[ne.length-1],fe[Fe])>0);)ne.length-=1;0!=Fe&&ne.push(fe[Fe])}re!=jt&&ne.push(fe[re]);var oe=ne.length;for(Fe=jt;--Fe>=Te;)if(!(T(fe[re],fe[Te],fe[Fe])>=0&&Fe>Te)){for(;ne.length>oe&&!(T(ne[ne.length-2],ne[ne.length-1],fe[Fe])>0);)ne.length-=1;0!=Fe&&ne.push(fe[Fe])}}return ne},j.clockwiseRadialSweep=function O(ve,fe,Le){fe.slice(0).sort(function(Fe,Ge){return Math.atan2(Fe.y-ve.y,Fe.x-ve.x)-Math.atan2(Ge.y-ve.y,Ge.x-ve.x)}).forEach(Le)},j.tangent_PolyPolyC=st,j.LRtangent_PolyPolyC=function ct(ve,fe){var Le=bt(fe,ve);return{t1:Le.t2,t2:Le.t1}},j.RLtangent_PolyPolyC=bt,j.LLtangent_PolyPolyC=function Dt(ve,fe){return st(ve,fe,tt,tt,w,w)},j.RRtangent_PolyPolyC=function wt(ve,fe){return st(ve,fe,W,W,U,U)};var qt=function ve(fe,Le){this.t1=fe,this.t2=Le};j.BiTangent=qt;var Jt=function ve(){};j.BiTangents=Jt;var yt=function(ve){function fe(){return null!==ve&&ve.apply(this,arguments)||this}return u(fe,ve),fe}(x);j.TVGPoint=yt;var At=function ve(fe,Le,Fe,Ge){this.id=fe,this.polyid=Le,this.polyvertid=Fe,this.p=Ge,Ge.vv=this};j.VisibilityVertex=At;var xt=function(){function ve(fe,Le){this.source=fe,this.target=Le}return ve.prototype.length=function(){var fe=this.source.p.x-this.target.p.x,Le=this.source.p.y-this.target.p.y;return Math.sqrt(fe*fe+Le*Le)},ve}();j.VisibilityEdge=xt;var pt=function(){function ve(fe,Le){if(this.P=fe,this.V=[],this.E=[],Le)this.V=Le.V.slice(0),this.E=Le.E.slice(0);else{for(var Fe=fe.length,Ge=0;Ge0&&this.E.push(new xt(Gt[Te-1].vv,jt))}Gt.length>1&&this.E.push(new xt(Gt[0].vv,Gt[Gt.length-1].vv))}for(Ge=0;Ge0)return!0;return!1},ve}();function Ot(ve,fe){for(var Le=[],Fe=1,Ge=fe.length;Fe=0&&_n>=0&&xe<0&&vn>=0&&ke>=0&&un<0?Ge.ll=new qt(Gt,Te):en<=0&&_n<=0&&xe>0&&vn<=0&&ke<=0&&un>0?Ge.rr=new qt(Gt,Te):en<=0&&_n>0&&xe<=0&&vn>=0&&ke<0&&un>=0?Ge.rl=new qt(Gt,Te):en>=0&&_n<0&&xe>=0&&vn<=0&&ke>0&&un<=0&&(Ge.lr=new qt(Gt,Te))}return Ge}function ce(ve,fe){return!ve.every(function(Le){return!function St(ve,fe){for(var Le=1,Fe=fe.length;Le0)return!0}return!1}},76767:(X,j,h)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});var u=h(4068),p=h(98237),x=h(33858),v=function w(P,O,L){this.id=P,this.rect=O,this.children=L,this.leaf=typeof L>"u"||0===L.length};j.NodeWrapper=v;var t=function w(P,O,L,N,V){void 0===N&&(N=null),void 0===V&&(V=null),this.id=P,this.x=O,this.y=L,this.node=N,this.line=V};j.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(),V=w.findMatch(P,N);L.length>=V.length?(this.length=L.length,this.si=L.si,this.ti=L.ti,this.reversed=!1):(this.length=V.length,this.si=V.si,this.ti=O.length-V.ti-V.length,this.reversed=!0)}return w.findMatch=function(P,O){for(var L=P.length,N=O.length,V={length:0,si:-1,ti:-1},W=new Array(L),tt=0;ttV.length&&(V.length=ct,V.si=tt-ct+1,V.ti=st-ct+1)}else W[tt][st]=0}return V},w.prototype.getSequence=function(){return this.length>=0?this.s.slice(this.si,this.si+this.length):[]},w}();j.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(yt,At){return new v(At,O.getBounds(yt),O.getChildren(yt))}),this.leaves=this.nodes.filter(function(yt){return yt.leaf}),this.groups=this.nodes.filter(function(yt){return!yt.leaf}),this.cols=this.getGridLines("x"),this.rows=this.getGridLines("y"),this.groups.forEach(function(yt){return yt.children.forEach(function(At){return N.nodes[At].parent=yt})}),this.root={children:[]},this.nodes.forEach(function(yt){typeof yt.parent>"u"&&(yt.parent=N.root,N.root.children.push(yt.id)),yt.ports=[]}),this.backToFront=this.nodes.slice(0),this.backToFront.sort(function(yt,At){return N.getDepth(yt)-N.getDepth(At)}),this.backToFront.slice(0).reverse().filter(function(yt){return!yt.leaf}).forEach(function(yt){var At=u.Rectangle.empty();yt.children.forEach(function(xt){return At=At.union(N.nodes[xt].rect)}),yt.rect=At.inflate(N.groupPadding)});var W=this.midPoints(this.cols.map(function(yt){return yt.pos})),tt=this.midPoints(this.rows.map(function(yt){return yt.pos})),st=W[0],ct=W[W.length-1],bt=tt[0],Dt=tt[tt.length-1],wt=this.rows.map(function(yt){return{x1:st,x2:ct,y1:yt.pos,y2:yt.pos}}).concat(tt.map(function(yt){return{x1:st,x2:ct,y1:yt,y2:yt}})),qt=this.cols.map(function(yt){return{x1:yt.pos,x2:yt.pos,y1:bt,y2:Dt}}).concat(W.map(function(yt){return{x1:yt,x2:yt,y1:bt,y2:Dt}})),Jt=wt.concat(qt);Jt.forEach(function(yt){return yt.verts=[]}),this.verts=[],this.edges=[],wt.forEach(function(yt){return qt.forEach(function(At){var xt=new t(N.verts.length,At.x1,yt.y1);yt.verts.push(xt),At.verts.push(xt),N.verts.push(xt);for(var pt=N.backToFront.length;pt-- >0;){var Ot=N.backToFront[pt],Bt=Ot.rect,St=Math.abs(xt.x-Bt.cx()),ce=Math.abs(xt.y-Bt.cy());if(St0;){var N=L.filter(function(W){return W.rect["overlap"+P.toUpperCase()](L[0].rect)}),V={nodes:N,pos:this.avg(N.map(function(W){return W.rect["c"+P]()}))};O.push(V),V.nodes.forEach(function(W){return L.splice(L.indexOf(W),1)})}return O.sort(function(W,tt){return W.pos-tt.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)&&bt.push(Dt={pos:st[0][O],segments:[]}),Dt.segments.push(st)}return bt},w.nudgeSegs=function(P,O,L,N,V,W){var tt=N.length;if(!(tt<=1)){for(var st=N.map(function(Ot){return new p.Variable(Ot[0][P])}),ct=[],bt=0;bt=0&&ct.push(new p.Constraint(st[At],st[xt],W))}new p.Solver(st,ct).solve(),st.forEach(function(Ot,Bt){var St=N[Bt],ce=Ot.position();St[0][P]=St[1][P]=ce;var Vt=L[St.edgeid];St.i>0&&(Vt[St.i-1][1][P]=ce),St.iMath.PI||V<-Math.PI)&&(V=N-L),V},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(V,W){return typeof O[V]<"u"&&O[V][W]}},w.orderEdges=function(P){for(var O=[],L=0;L=V.length||tt.ti+tt.length>=W.length)){O.push({l:L,r:N});continue}tt.si+tt.length>=V.length||tt.ti+tt.length>=W.length?(st=V[tt.si+1],bt=V[tt.si-1],ct=W[tt.ti-1]):(st=V[tt.si+tt.length-2],ct=V[tt.si+tt.length],bt=W[tt.ti+tt.length]),w.isLeft(st,ct,bt)?O.push({l:N,r:L}):O.push({l:L,r:N})}}return w.getOrder(O)},w.makeSegments=function(P){function O(ct){return{x:ct.x,y:ct.y}}for(var N=[],V=O(P[0]),W=1;W1&&ve>1?1e3:0}).reverse().map(function(xt){return L.verts[xt]});return At.push(this.nodes[V.id].ports[0]),At.filter(function(xt,pt){return!(pt0&&xt.node===V&&At[pt-1].node===V)})},w.getRoutePath=function(P,O,L,N){var tt,st,ct,Vt,ve,V={routepath:"M "+P[0][0].x+" "+P[0][0].y+" ",arrowpath:""};if(P.length>1)for(var W=0;W0?st-=bt/Math.abs(bt)*O:ct-=Dt/Math.abs(Dt)*O,V.routepath+="L "+st+" "+ct+" ";var wt=P[W+1],qt=wt[0].x,Jt=wt[0].y;bt=wt[1].x-qt,Dt=wt[1].y-Jt;var pt,Ot,xt=w.angleBetween2Lines(tt,wt)<0?1:0;Math.abs(bt)>0?(pt=qt+bt/Math.abs(bt)*O,Ot=Jt):(pt=qt,Ot=Jt+Dt/Math.abs(Dt)*O);var Bt=Math.abs(pt-st),St=Math.abs(Ot-ct);V.routepath+="A "+Bt+" "+St+" 0 0 "+xt+" "+pt+" "+Ot+" "}else{var ce=[st,ct];Math.abs(bt)>0?(Vt=[st-=bt/Math.abs(bt)*N,ct+L],ve=[st,ct-L]):(Vt=[st+L,ct-=Dt/Math.abs(Dt)*N],ve=[st-L,ct]),V.routepath+="L "+st+" "+ct+" ",N>0&&(V.arrowpath="M "+ce[0]+" "+ce[1]+" L "+Vt[0]+" "+Vt[1]+" L "+ve[0]+" "+ve[1])}}else bt=(st=(tt=P[0])[1].x)-tt[0].x,Dt=(ct=tt[1].y)-tt[0].y,ce=[st,ct],Math.abs(bt)>0?(Vt=[st-=bt/Math.abs(bt)*N,ct+L],ve=[st,ct-L]):(Vt=[st+L,ct-=Dt/Math.abs(Dt)*N],ve=[st-L,ct]),V.routepath+="L "+st+" "+ct+" ",N>0&&(V.arrowpath="M "+ce[0]+" "+ce[1]+" L "+Vt[0]+" "+Vt[1]+" L "+ve[0]+" "+ve[1]);return V},w}();j.GridRouter=U},30345:(X,j)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});var h_GOLDEN_SECTION=(1+Math.sqrt(5))/2;j.applyPacking=function u(x,v,t,W,V,w){void 0===V&&(V=1),void 0===w&&(w=!0);var L=v,N=t,tt=(V=typeof V<"u"?V:1,W=typeof W<"u"?W:0,0),st=0,ct=0,bt=0,Dt=[];function yt(Ot,Bt){Dt=[],tt=0,st=0,bt=0;for(var St=0;St=Ot.height&&Dt[ce].x+Dt[ce].width+Ot.width+10-Bt<=1e-4){St=Dt[ce];break}Dt.push(Ot),void 0!==St?(Ot.x=St.x+St.width+10,Ot.y=St.bottom,Ot.space_left=Ot.height,Ot.bottom=Ot.y,St.space_left-=Ot.height+10,St.bottom+=Ot.height+10):(Ot.y=bt,bt+=Ot.height+10,Ot.x=0,Ot.bottom=Ot.y,Ot.space_left=Ot.height),Ot.y+Ot.height-st>-1e-4&&(st=Ot.y+Ot.height-0),Ot.x+Ot.width-tt>-1e-4&&(tt=Ot.x+Ot.width-0)}0!=x.length&&(function wt(Ot){Ot.forEach(function(St){!function Bt(St){var ce=Number.MAX_VALUE,Vt=Number.MAX_VALUE,ve=0,fe=0;St.array.forEach(function(Le){var Fe=typeof Le.width<"u"?Le.width:W,Ge=typeof Le.height<"u"?Le.height:W;Fe/=2,Ge/=2,ve=Math.max(Le.x+Fe,ve),ce=Math.min(Le.x-Fe,ce),fe=Math.max(Le.y+Ge,fe),Vt=Math.min(Le.y-Ge,Vt)}),St.width=ve-ce,St.height=fe-Vt}(St)})}(x),function Jt(Ot,Bt){var St=Number.POSITIVE_INFINITY,ce=0;Ot.sort(function(re,Xt){return Xt.height-re.height});for(var Vt=ne=ct=Ot.reduce(function(re,Xt){return re.widthct||Te>1e-4;){if(1!=Ge){var ne=ve-(ve-Vt)/h_GOLDEN_SECTION;Le=yt(Ot,ne)}if(0!=Ge){var jt=Vt+(ve-Vt)/h_GOLDEN_SECTION;Fe=yt(Ot,jt)}if(Gt=Math.abs(ne-jt),Te=Math.abs(Le-Fe),LeFe?(Vt=ne,ne=jt,Le=Fe,Ge=1):(ve=jt,jt=ne,Fe=Le,Ge=0),fe++>100)break}yt(Ot,ce)}(x),w&&function qt(Ot){Ot.forEach(function(Bt){var St={x:0,y:0};Bt.array.forEach(function(ve){St.x+=ve.x,St.y+=ve.y}),St.x/=Bt.array.length,St.y/=Bt.array.length;var Vt_x=Bt.x-(St.x-Bt.width/2)+L/2-tt/2,Vt_y=Bt.y-(St.y-Bt.height/2)+N/2-st/2;Bt.array.forEach(function(ve){ve.x+=Vt_x,ve.y+=Vt_y})})}(x))},j.separateGraphs=function p(x,v){for(var t={},T={},U=[],w=0,P=0;P{"use strict";Object.defineProperty(j,"__esModule",{value:!0});var w,L,u=h(33900),p=h(58802),x=h(91786),v=h(4068),t=h(33858),T=h(30225),U=h(30345);function P(L){return typeof L.leaves<"u"||typeof L.groups<"u"}(L=w=j.EventType||(j.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(V){return"function"==typeof N._linkType?N._linkType(V):0}}}return L.prototype.on=function(N,V){return this.event||(this.event={}),"string"==typeof N?this.event[w[N]]=V:this.event[N]=V,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 W.py>"u")&&(W.px=W.x,W.py=W.y),this._descent.locks.add(tt,[W.px,W.py]));var ct=this._descent.rungeKutta();return 0===ct?this._alpha=0:typeof this._lastStress<"u"&&(this._alpha=ct),this._lastStress=ct,this.updateNodePositions(),this.trigger({type:w.tick,alpha:this._alpha,stress:this._lastStress}),!1},L.prototype.updateNodePositions=function(){for(var W,N=this._descent.x[0],V=this._descent.x[1],tt=this._nodes.length;tt--;)(W=this._nodes[tt]).x=N[tt],W.y=V[tt]},L.prototype.nodes=function(N){if(!N){if(0===this._nodes.length&&this._links.length>0){var V=0;this._links.forEach(function(tt){V=Math.max(V,tt.source,tt.target)}),this._nodes=new Array(++V);for(var W=0;W"u"&&(W.padding=1),typeof W.leaves<"u"&&W.leaves.forEach(function(tt,st){"number"==typeof tt&&((W.leaves[st]=V._nodes[tt]).parent=W)}),typeof W.groups<"u"&&W.groups.forEach(function(tt,st){"number"==typeof tt&&((W.groups[st]=V._groups[tt]).parent=W)})}),this._rootGroup.leaves=this._nodes.filter(function(W){return typeof W.parent>"u"}),this._rootGroup.groups=this._groups.filter(function(W){return typeof W.parent>"u"}),this):this._groups},L.prototype.powerGraphGroups=function(N){var V=u.getGroups(this._nodes,this._links,this.linkAccessor,this._rootGroup);return this.groups(V.groups),N(V),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,V){return arguments.length||(N="y"),this._directedLinkConstraints={axis:N,getMinSeparation:"number"==typeof V?function(){return V}:V},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,V){N.length=V},L.prototype.getLinkType=function(N){return"function"==typeof this._linkType?this._linkType(N):0},L.prototype.symmetricDiffLinkLengths=function(N,V){var W=this;return void 0===V&&(V=1),this.linkDistance(function(tt){return N*tt.length}),this._linkLengthCalculator=function(){return p.symmetricDiffLinkLengths(W._links,W.linkAccessor,V)},this},L.prototype.jaccardLinkLengths=function(N,V){var W=this;return void 0===V&&(V=1),this.linkDistance(function(tt){return N*tt.length}),this._linkLengthCalculator=function(){return p.jaccardLinkLengths(W._links,W.linkAccessor,V)},this},L.prototype.start=function(N,V,W,tt,st,ct){var bt=this;void 0===N&&(N=0),void 0===V&&(V=0),void 0===W&&(W=0),void 0===tt&&(tt=0),void 0===st&&(st=!0),void 0===ct&&(ct=!0);var ce,qt=this.nodes().length,Jt=qt+2*this._groups.length,At=this._canvasSize[0],xt=this._canvasSize[1],pt=new Array(Jt),Ot=new Array(Jt),Bt=null,St=this._avoidOverlaps;this._nodes.forEach(function(Gt,Te){Gt.index=Te,typeof Gt.x>"u"&&(Gt.x=At/2,Gt.y=xt/2),pt[Te]=Gt.x,Ot[Te]=Gt.y}),this._linkLengthCalculator&&this._linkLengthCalculator(),this._distanceMatrix?ce=this._distanceMatrix:(ce=new t.Calculator(Jt,this._links,L.getSourceIndex,L.getTargetIndex,function(Gt){return bt.getLinkLength(Gt)}).DistanceMatrix(),Bt=x.Descent.createSquareMatrix(Jt,function(){return 2}),this._links.forEach(function(Gt){"number"==typeof Gt.source&&(Gt.source=bt._nodes[Gt.source]),"number"==typeof Gt.target&&(Gt.target=bt._nodes[Gt.target])}),this._links.forEach(function(Gt){var Te=L.getSourceIndex(Gt),ne=L.getTargetIndex(Gt);Bt[Te][ne]=Bt[ne][Te]=Gt.weight||1}));var Vt=x.Descent.createSquareMatrix(Jt,function(Gt,Te){return ce[Gt][Te]});if(this._rootGroup&&typeof this._rootGroup.groups<"u"){var Dt=qt;this._groups.forEach(function(Te){(function(Te,ne,jt,re){Bt[Te][ne]=Bt[ne][Te]=jt,Vt[Te][ne]=Vt[ne][Te]=.1})(Dt,Dt+1,bt._groupCompactness),pt[Dt]=0,Ot[Dt++]=0,pt[Dt]=0,Ot[Dt++]=0})}else this._rootGroup={leaves:this._nodes,groups:[]};var fe=this._constraints||[];for(this._directedLinkConstraints&&(this.linkAccessor.getMinSeparation=this._directedLinkConstraints.getMinSeparation,fe=fe.concat(p.generateDirectedEdgeConstraints(qt,this._links,this._directedLinkConstraints.axis,this.linkAccessor))),this.avoidOverlaps(!1),this._descent=new x.Descent([pt,Ot],Vt),this._descent.locks.clear(),Dt=0;Dt0&&(this._descent.project=new v.Projection(this._nodes,this._groups,this._rootGroup,fe).projectFunctions()),this._descent.run(V),this.separateOverlappingComponents(At,xt,ct),this.avoidOverlaps(St),St&&(this._nodes.forEach(function(Gt,Te){Gt.x=pt[Te],Gt.y=Ot[Te]}),this._descent.project=new v.Projection(this._nodes,this._groups,this._rootGroup,fe,!0).projectFunctions(),this._nodes.forEach(function(Gt,Te){pt[Te]=Gt.x,Ot[Te]=Gt.y})),this._descent.G=Bt,this._descent.run(W),tt){this._descent.snapStrength=1e3,this._descent.snapGridSize=this._nodes[0].width,this._descent.numGridSnapNodes=qt,this._descent.scaleSnapByMaxH=qt!=Jt;var Ge=x.Descent.createSquareMatrix(Jt,function(Gt,Te){return Gt>=qt||Te>=qt?Bt[Gt][Te]:0});this._descent.G=Ge,this._descent.run(tt)}return this.updateNodePositions(),this.separateOverlappingComponents(At,xt,ct),st?this.resume():this},L.prototype.initialLayout=function(N,V,W){if(this._groups.length>0&&N>0){var tt=this._nodes.length,st=this._links.map(function(bt){return{source:bt.source.index,target:bt.target.index}}),ct=this._nodes.map(function(bt){return{index:bt.index}});this._groups.forEach(function(bt,Dt){ct.push({index:bt.index=tt+Dt})}),this._groups.forEach(function(bt,Dt){typeof bt.leaves<"u"&&bt.leaves.forEach(function(wt){return st.push({source:bt.index,target:wt.index})}),typeof bt.groups<"u"&&bt.groups.forEach(function(wt){return st.push({source:bt.index,target:wt.index})})}),(new L).size(this.size()).nodes(ct).links(st).avoidOverlaps(!1).linkDistance(this.linkDistance()).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(N,0,0,0,!1),this._nodes.forEach(function(bt){V[bt.index]=ct[bt.index].x,W[bt.index]=ct[bt.index].y})}else this._descent.run(N)},L.prototype.separateOverlappingComponents=function(N,V,W){var tt=this;if(void 0===W&&(W=!0),!this._distanceMatrix&&this._handleDisconnected){var st=this._descent.x[0],ct=this._descent.x[1];this._nodes.forEach(function(Dt,wt){Dt.x=st[wt],Dt.y=ct[wt]});var bt=U.separateGraphs(this._nodes,this._links);U.applyPacking(bt,N,V,this._defaultNodeSize,1,W),this._nodes.forEach(function(Dt,wt){tt._descent.x[0][wt]=Dt.x,tt._descent.x[1][wt]=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(V){return V.bounds.inflate(-N).vertices()}))},L.prototype.routeEdge=function(N,V,W){void 0===V&&(V=5);var tt=[],st=new T.TangentVisibilityGraph(this._visibilityGraph.P,{V:this._visibilityGraph.V,E:this._visibilityGraph.E}),ct={x:N.source.x,y:N.source.y},bt={x:N.target.x,y:N.target.y},Dt=st.addPoint(ct,N.source.index),wt=st.addPoint(bt,N.target.index);st.addEdgeIfVisible(ct,bt,N.source.index,N.target.index),typeof W<"u"&&W(st);var xt=new t.Calculator(st.V.length,st.E,function(Vt){return Vt.source.id},function(Vt){return Vt.target.id},function(Vt){return Vt.length()}).PathFromNodeToNode(Dt.id,wt.id);if(1===xt.length||xt.length===st.V.length){var pt=v.makeEdgeBetween(N.source.innerBounds,N.target.innerBounds,V);tt=[pt.sourceIntersection,pt.arrowStart]}else{for(var Ot=xt.length-2,Bt=st.V[xt[Ot]].p,St=st.V[xt[0]].p,ce=(tt=[N.source.innerBounds.rayIntersection(Bt.x,Bt.y)],Ot);ce>=0;--ce)tt.push(st.V[xt[ce]].p);tt.push(v.makeEdgeTo(St,N.target.innerBounds,V))}return tt},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,V){typeof N.leaves<"u"&&N.leaves.forEach(function(W){W.fixed|=2,L.stopNode(W),W._dragGroupOffsetX=W.x-V.x,W._dragGroupOffsetY=W.y-V.y}),typeof N.groups<"u"&&N.groups.forEach(function(W){return L.storeOffset(W,V)})},L.dragOrigin=function(N){return P(N)?{x:N.bounds.cx(),y:N.bounds.cy()}:N},L.drag=function(N,V){P(N)?(typeof N.leaves<"u"&&N.leaves.forEach(function(W){N.bounds.setXCentre(V.x),N.bounds.setYCentre(V.y),W.px=W._dragGroupOffsetX+V.x,W.py=W._dragGroupOffsetY+V.y}),typeof N.groups<"u"&&N.groups.forEach(function(W){return L.drag(W,V)})):(N.px=V.x,N.py=V.y)},L.dragEnd=function(N){P(N)?(typeof N.leaves<"u"&&N.leaves.forEach(function(V){L.dragEnd(V),delete V._dragGroupOffsetX,delete V._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}();j.Layout=O},86461:(X,j,h)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});var u=h(33858),p=h(91786),x=h(4068),v=h(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,V){var W=V[L.target]-V[L.source];return N+W*W},0))},P}();j.Link3D=t,j.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 V=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 W=0;W"u"&&(tt[Dt]=Math.random())}V.result[0][st]=tt.x,V.result[1][st]=tt.y,V.result[2][st]=tt.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,V=new w;this.useJaccardLinkLengths&&v.jaccardLinkLengths(this.links,V,1.5),this.links.forEach(function(Dt){return Dt.length*=L.idealLinkLength});var W=new u.Calculator(N,this.links,function(Dt){return Dt.source},function(Dt){return Dt.target},function(Dt){return Dt.length}).DistanceMatrix(),tt=p.Descent.createSquareMatrix(N,function(Dt,wt){return W[Dt][wt]}),st=p.Descent.createSquareMatrix(N,function(){return 2});this.links.forEach(function(Dt){var wt=Dt.source,qt=Dt.target;return st[wt][qt]=st[qt][wt]=1}),this.descent=new p.Descent(this.result,tt),this.descent.threshold=.001,this.descent.G=st,this.constraints&&(this.descent.project=new x.Projection(this.nodes,null,null,this.constraints).projectFunctions());for(var ct=0;ct{"use strict";function h(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 x(w,P,O,L){var N=function p(w,P){var O={},L=function(N,V){typeof O[N]>"u"&&(O[N]={}),O[N][V]={}};return w.forEach(function(N){var V=P.getSourceIndex(N),W=P.getTargetIndex(N);L(V,W),L(W,V)}),O}(w,L);w.forEach(function(V){var W=N[L.getSourceIndex(V)],tt=N[L.getTargetIndex(V)];L.setLength(V,1+P*O(W,tt))})}function U(w,P,O){var L=[],N=0,V=[],W=[];function tt(xt){xt.index=xt.lowlink=N++,V.push(xt),xt.onStack=!0;for(var pt=0,Ot=xt.out;pt"u"?(tt(Bt),xt.lowlink=Math.min(xt.lowlink,Bt.lowlink)):Bt.onStack&&(xt.lowlink=Math.min(xt.lowlink,Bt.index))}if(xt.lowlink===xt.index){for(var St=[];V.length&&((Bt=V.pop()).onStack=!1,St.push(Bt),Bt!==xt););W.push(St.map(function(ce){return ce.id}))}}for(var st=0;st"u"&&tt(At)}return W}Object.defineProperty(j,"__esModule",{value:!0}),j.symmetricDiffLinkLengths=function v(w,P,O){void 0===O&&(O=1),x(w,O,function(L,N){return Math.sqrt(h(L,N)-u(L,N))},P)},j.jaccardLinkLengths=function t(w,P,O){void 0===O&&(O=1),x(w,O,function(L,N){return Math.min(Object.keys(L).length,Object.keys(N).length)<1.1?0:u(L,N)/h(L,N)},P)},j.generateDirectedEdgeConstraints=function T(w,P,O,L){var N=U(w,P,L),V={};N.forEach(function(tt,st){return tt.forEach(function(ct){return V[ct]=st})});var W=[];return P.forEach(function(tt){var st=L.getSourceIndex(tt),ct=L.getTargetIndex(tt);V[st]!==V[ct]&&W.push({axis:O,left:st,right:ct,gap:L.getMinSeparation(tt)})}),W},j.stronglyConnectedComponents=U},33900:(X,j)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});var h=function P(O,L,N){this.source=O,this.target=L,this.type=N};j.PowerEdge=h;var u=function(){function P(O,L,N,V){var W=this;if(this.linkAccessor=N,this.modules=new Array(O),this.roots=[],V)this.initModulesFromGroup(V);else{this.roots.push(new t);for(var tt=0;tt=this.R))return this.merge(N.a,N.b,O),!0}},P.prototype.nEdges=function(O,L){var N=O.incoming.intersection(L.incoming),V=O.outgoing.intersection(L.outgoing);return this.R-N.count()-V.count()},P.prototype.getGroupHierarchy=function(O){var L=this,N=[];return p(this.roots[0],{},N),this.allEdges().forEach(function(tt){var st=L.modules[tt.source],ct=L.modules[tt.target];O.push(new h(typeof st.gid>"u"?tt.source:N[st.gid],typeof ct.gid>"u"?tt.target:N[ct.gid],tt.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 p(P,O,L){P.forAll(function(N){if(N.isLeaf())O.leaves||(O.leaves=[]),O.leaves.push(N.id);else{var V=O;if(N.gid=L.length,!N.isIsland()||N.isPredefined()){if(V={id:N.gid},N.isPredefined())for(var W in N.definition)V[W]=N.definition[W];O.groups||(O.groups=[]),O.groups.push(N.gid),L.push(V)}p(N.children,V,L)}})}j.Configuration=u;var x=function(){function P(O,L,N,V,W){void 0===L&&(L=new T),void 0===N&&(N=new T),void 0===V&&(V=new t),this.id=O,this.outgoing=L,this.incoming=N,this.children=V,this.definition=W}return P.prototype.getEdges=function(O){var L=this;this.outgoing.forAll(function(N,V){N.forAll(function(W){O.push(new h(L.id,W.id,V))})})},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}();j.Module=x;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 v(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}();j.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,V){if(V in O.sets){var W=N.intersection(O.sets[V]),tt=W.count();tt>0&&(L.sets[V]=W,L.n+=tt)}}),L},P}();j.LinkSets=T,j.getGroups=function w(P,O,L,N){for(var W=new u(P.length,O,L,N);W.greedyMerge(););var tt=[],st=W.getGroupHierarchy(tt);return tt.forEach(function(ct){var bt=function(Dt){var wt=ct[Dt];"number"==typeof wt&&(ct[Dt]=P[wt])};bt("source"),bt("target")}),{groups:st,powerEdges:tt}}},88866:(X,j)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});var h=function(){function p(x){this.elem=x,this.subheaps=[]}return p.prototype.toString=function(x){for(var v="",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 p(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}();j.TreeBase=u;var p=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}();j.Iterator=p;var x=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}(),v=function(t){function T(U){var w=t.call(this)||this;return w._root=null,w._comparator=U,w.size=0,w}return h(T,t),T.prototype.insert=function(U){var w=!1;if(null===this._root)this._root=new x(U),w=!0,this.size++;else{var P=new x(void 0),O=!1,L=!1,N=null,V=P,W=null,tt=this._root;for(V.right=this._root;;){if(null===tt?(tt=new x(U),W.set_child(O,tt),w=!0,this.size++):T.is_red(tt.left)&&T.is_red(tt.right)&&(tt.red=!0,tt.left.red=!1,tt.right.red=!1),T.is_red(tt)&&T.is_red(W)){var st=V.right===N;tt===W.get_child(L)?V.set_child(st,T.single_rotate(N,!L)):V.set_child(st,T.double_rotate(N,!L))}var ct=this._comparator(tt.data,U);if(0===ct)break;L=O,null!==N&&(V=N),N=W,W=tt,tt=tt.get_child(O=ct<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 x(void 0),P=w;P.right=this._root;for(var O=null,L=null,N=null,V=!0;null!==P.get_child(V);){var W=V;L=O,O=P,P=P.get_child(V);var tt=this._comparator(U,P.data);if(V=tt>0,0===tt&&(N=P),!T.is_red(P)&&!T.is_red(P.get_child(V)))if(T.is_red(P.get_child(!V))){var st=T.single_rotate(P,V);O.set_child(W,st),O=st}else if(!T.is_red(P.get_child(!V))){var ct=O.get_child(!W);if(null!==ct)if(T.is_red(ct.get_child(!W))||T.is_red(ct.get_child(W))){var bt=L.right===O;T.is_red(ct.get_child(W))?L.set_child(bt,T.double_rotate(O,W)):T.is_red(ct.get_child(!W))&&L.set_child(bt,T.single_rotate(O,W));var Dt=L.get_child(bt);Dt.red=!0,P.red=!0,Dt.left.red=!1,Dt.right.red=!1}else O.red=!1,ct.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);j.RBTree=v},4068:function(X,j,h){"use strict";var xt,u=this&&this.__extends||(xt=function(pt,Ot){return(xt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Bt,St){Bt.__proto__=St}||function(Bt,St){for(var ce in St)St.hasOwnProperty(ce)&&(Bt[ce]=St[ce])})(pt,Ot)},function(pt,Ot){function Bt(){this.constructor=pt}xt(pt,Ot),pt.prototype=null===Ot?Object.create(Ot):(Bt.prototype=Ot.prototype,new Bt)});Object.defineProperty(j,"__esModule",{value:!0});var p=h(98237),x=h(94655);function v(xt){return xt.bounds=typeof xt.leaves<"u"?xt.leaves.reduce(function(pt,Ot){return Ot.bounds.union(pt)},t.empty()):t.empty(),typeof xt.groups<"u"&&(xt.bounds=xt.groups.reduce(function(pt,Ot){return v(Ot).union(pt)},xt.bounds)),xt.bounds=xt.bounds.inflate(xt.padding),xt.bounds}j.computeGroupBounds=v;var t=function(){function xt(pt,Ot,Bt,St){this.x=pt,this.X=Ot,this.y=Bt,this.Y=St}return xt.empty=function(){return new xt(Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY)},xt.prototype.cx=function(){return(this.x+this.X)/2},xt.prototype.cy=function(){return(this.y+this.Y)/2},xt.prototype.overlapX=function(pt){var Ot=this.cx(),Bt=pt.cx();return Ot<=Bt&&pt.x0?Bt[0]:null},xt.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}]},xt.lineIntersection=function(pt,Ot,Bt,St,ce,Vt,ve,fe){var Le=Bt-pt,Fe=ve-ce,Ge=St-Ot,Gt=fe-Vt,Te=Gt*Le-Fe*Ge;if(0==Te)return null;var ne=pt-ce,jt=Ot-Vt,Xt=(Fe*jt-Gt*ne)/Te,Me=(Le*jt-Ge*ne)/Te;return Xt>=0&&Xt<=1&&Me>=0&&Me<=1?{x:pt+Xt*Le,y:Ot+Xt*Ge}:null},xt.prototype.inflate=function(pt){return new xt(this.x-pt,this.X+pt,this.y-pt,this.Y+pt)},xt}();j.Rectangle=t,j.makeEdgeBetween=function T(xt,pt,Ot){var Bt=xt.rayIntersection(pt.cx(),pt.cy())||{x:xt.cx(),y:xt.cy()},St=pt.rayIntersection(xt.cx(),xt.cy())||{x:pt.cx(),y:pt.cy()},ce=St.x-Bt.x,Vt=St.y-Bt.y,ve=Math.sqrt(ce*ce+Vt*Vt),fe=ve-Ot;return{sourceIntersection:Bt,targetIntersection:St,arrowStart:{x:Bt.x+fe*ce/ve,y:Bt.y+fe*Vt/ve}}},j.makeEdgeTo=function U(xt,pt,Ot){var Bt=pt.rayIntersection(xt.x,xt.y);Bt||(Bt={x:pt.cx(),y:pt.cy()});var St=Bt.x-xt.x,ce=Bt.y-xt.y,Vt=Math.sqrt(St*St+ce*ce);return{x:Bt.x-Ot*St/Vt,y:Bt.y-Ot*ce/Vt}};var w=function xt(pt,Ot,Bt){this.v=pt,this.r=Ot,this.pos=Bt,this.prev=L(),this.next=L()},P=function xt(pt,Ot,Bt){this.isOpen=pt,this.v=Ot,this.pos=Bt};function O(xt,pt){return xt.pos>pt.pos?1:xt.pos0&&(xt[Bt].insert(ce),ce[St].insert(xt))};Ot("next","prev"),Ot("prev","next")}};function W(xt,pt,Ot,Bt){void 0===Bt&&(Bt=!1);var St=xt.padding,ce=typeof xt.groups<"u"?xt.groups.length:0,Vt=typeof xt.leaves<"u"?xt.leaves.length:0,ve=ce?xt.groups.reduce(function(_n,xe){return _n.concat(W(xe,pt,Ot,!0))},[]):[],fe=(Bt?2:0)+Vt+ce,Le=new Array(fe),Fe=new Array(fe),Ge=0,Gt=function(_n,xe){Fe[Ge]=_n,Le[Ge++]=xe};if(Bt){var Te=xt.bounds,ne=pt.getCentre(Te),jt=pt.getSize(Te)/2,re=pt.getOpen(Te),Xt=pt.getClose(Te),oe=ne-jt+St/2,Me=ne+jt-St/2;xt.minVar.desiredPosition=oe,Gt(pt.makeRect(re,Xt,oe,St),xt.minVar),xt.maxVar.desiredPosition=Me,Gt(pt.makeRect(re,Xt,Me,St),xt.maxVar)}Vt&&xt.leaves.forEach(function(_n){return Gt(_n.bounds,_n.variable)}),ce&&xt.groups.forEach(function(_n){var xe=_n.bounds;Gt(pt.makeRect(pt.getOpen(xe),pt.getClose(xe),pt.getCentre(xe),pt.getSize(xe)),_n.minVar)});var en=tt(Fe,Le,pt,Ot);return ce&&(Le.forEach(function(_n){_n.cOut=[],_n.cIn=[]}),en.forEach(function(_n){_n.left.cOut.push(_n),_n.right.cIn.push(_n)}),xt.groups.forEach(function(_n){var xe=(_n.padding-pt.getSize(_n.bounds))/2;_n.minVar.cIn.forEach(function(vn){return vn.gap+=xe}),_n.minVar.cOut.forEach(function(vn){vn.left=_n.maxVar,vn.gap+=xe})})),ve.concat(en)}function tt(xt,pt,Ot,Bt){var St,ce=xt.length,Vt=2*ce;console.assert(pt.length>=ce);var ve=new Array(Vt);for(St=0;Stve[Bt]&&(ve[Bt]=fe)}Vt=ve})}},xt.prototype.createAlignment=function(pt){var Ot=this,Bt=this.nodes[pt.offsets[0].node].variable;this.makeFeasible(pt);var St="x"===pt.axis?this.xConstraints:this.yConstraints;pt.offsets.slice(1).forEach(function(ce){St.push(new p.Constraint(Bt,Ot.nodes[ce.node].variable,ce.offset,!0))})},xt.prototype.createConstraints=function(pt){var Ot=this,Bt=function(St){return typeof St.type>"u"||"separation"===St.type};this.xConstraints=pt.filter(function(St){return"x"===St.axis&&Bt(St)}).map(function(St){return Ot.createSeparation(St)}),this.yConstraints=pt.filter(function(St){return"y"===St.axis&&Bt(St)}).map(function(St){return Ot.createSeparation(St)}),pt.filter(function(St){return"alignment"===St.type}).forEach(function(St){return Ot.createAlignment(St)})},xt.prototype.setupVariablesAndBounds=function(pt,Ot,Bt,St){this.nodes.forEach(function(ce,Vt){ce.fixed?(ce.variable.weight=ce.fixedWeight?ce.fixedWeight:1e3,Bt[Vt]=St(ce)):ce.variable.weight=1;var ve=(ce.width||0)/2,fe=(ce.height||0)/2,Le=pt[Vt],Fe=Ot[Vt];ce.bounds=new t(Le-ve,Le+ve,Fe-fe,Fe+fe)})},xt.prototype.xProject=function(pt,Ot,Bt){!this.rootGroup&&!this.avoidOverlaps&&!this.xConstraints||this.project(pt,Ot,pt,Bt,function(St){return St.px},this.xConstraints,wt,function(St){return St.bounds.setXCentre(Bt[St.variable.index]=St.variable.position())},function(St){var ce=Bt[St.minVar.index]=St.minVar.position(),Vt=Bt[St.maxVar.index]=St.maxVar.position(),ve=St.padding/2;St.bounds.x=ce-ve,St.bounds.X=Vt+ve})},xt.prototype.yProject=function(pt,Ot,Bt){!this.rootGroup&&!this.yConstraints||this.project(pt,Ot,Ot,Bt,function(St){return St.py},this.yConstraints,qt,function(St){return St.bounds.setYCentre(Bt[St.variable.index]=St.variable.position())},function(St){var ce=Bt[St.minVar.index]=St.minVar.position(),Vt=Bt[St.maxVar.index]=St.maxVar.position(),ve=St.padding/2;St.bounds.y=ce-ve,St.bounds.Y=Vt+ve})},xt.prototype.projectFunctions=function(){var pt=this;return[function(Ot,Bt,St){return pt.xProject(Ot,Bt,St)},function(Ot,Bt,St){return pt.yProject(Ot,Bt,St)}]},xt.prototype.project=function(pt,Ot,Bt,St,ce,Vt,ve,fe,Le){this.setupVariablesAndBounds(pt,Ot,St,ce),this.rootGroup&&this.avoidOverlaps&&(v(this.rootGroup),Vt=Vt.concat(ve(this.rootGroup))),this.solve(this.variables,Vt,Bt,St),this.nodes.forEach(fe),this.rootGroup&&this.avoidOverlaps&&(this.groups.forEach(Le),v(this.rootGroup))},xt.prototype.solve=function(pt,Ot,Bt,St){var ce=new p.Solver(pt,Ot);ce.setStartingPositions(Bt),ce.setDesiredPositions(St),ce.solve()},xt}();j.Projection=At},33858:(X,j,h)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});var u=h(88866),p=function T(U,w){this.id=U,this.distance=w},x=function T(U){this.id=U,this.neighbours=[]},v=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 x(N);for(N=this.es.length;N--;){var V=this.es[N],W=P(V),tt=O(V),st=L(V);this.neighbours[W].neighbours.push(new p(tt,st)),this.neighbours[tt].neighbours.push(new p(W,st))}}return T.prototype.DistanceMatrix=function(){for(var U=new Array(this.n),w=0;wct&&(tt.d=ct,tt.prev=V,P.reduceKey(tt.q,tt,function(Dt,wt){return Dt.q=wt}))}}return L},T}();j.Calculator=t},98237:(X,j)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});var h=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}();j.PositionStats=h;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}();j.Constraint=u;var p=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}();j.Variable=p;var x=function(){function U(w){this.vars=[],w.offset=0,this.ps=new h(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}();j.Solver=t,j.removeOverlapInOneDimension=function T(U,w,P){for(var O=U.map(function(yt){return new p(yt.desiredCenter)}),L=[],N=U.length,V=0;V{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 p(v){var t=x(v);return h(t)}function x(v){if(!h.o(u,v)){var t=new Error("Cannot find module '"+v+"'");throw t.code="MODULE_NOT_FOUND",t}return u[v]}p.keys=function(){return Object.keys(u)},p.resolve=x,X.exports=p,p.id=46700},7100:(X,j,h)=>{"use strict";h.d(j,{AB:()=>Sn,EC:()=>ai,K:()=>on,g2:()=>pn});var u=h(84080),p=h(94650),x=h(42654),v=h(8929),t=h(36787),T=h(29521),U=h(72986),w=h(1059),P=h(7625),O=h(80013),L=h(92198),N=h(99602),V=h(36895),W=h(3238),tt=h(40445),st=h(4859),ct=h(21281),bt=h(98184),Dt=h(24006),wt=h(59549),qt=h(284),Jt=h(97392),yt=h(65412),At=h(83353);const xt=["ngx-mat-calendar-body",""];function pt(Q,Et){if(1&Q&&(p.TgZ(0,"tr",2)(1,"td",3),p._uU(2),p.qZA()()),2&Q){const J=p.oxw();p.xp6(1),p.Udp("padding-top",J._cellPadding)("padding-bottom",J._cellPadding),p.uIk("colspan",J.numCols),p.xp6(1),p.hij(" ",J.label," ")}}function Ot(Q,Et){if(1&Q&&(p.TgZ(0,"td",7),p._uU(1),p.qZA()),2&Q){const J=p.oxw(2);p.Udp("padding-top",J._cellPadding)("padding-bottom",J._cellPadding),p.uIk("colspan",J._firstRowOffset),p.xp6(1),p.hij(" ",J._firstRowOffset>=J.labelMinRequiredCells?J.label:""," ")}}function Bt(Q,Et){if(1&Q){const J=p.EpF();p.TgZ(0,"td",8),p.NdJ("click",function(He){const Ki=p.CHM(J).$implicit,wo=p.oxw(2);return p.KtG(wo._cellClicked(Ki,He))}),p.TgZ(1,"div",9),p._uU(2),p.qZA(),p._UZ(3,"div",10),p.qZA()}if(2&Q){const J=Et.$implicit,Lt=Et.index,He=p.oxw().index,zn=p.oxw();p.Udp("width",zn._cellWidth)("padding-top",zn._cellPadding)("padding-bottom",zn._cellPadding),p.ekj("mat-calendar-body-disabled",!J.enabled)("mat-calendar-body-active",zn._isActiveCell(He,Lt))("mat-calendar-body-range-start",zn._isRangeStart(J.compareValue))("mat-calendar-body-range-end",zn._isRangeEnd(J.compareValue))("mat-calendar-body-in-range",zn._isInRange(J.compareValue))("mat-calendar-body-comparison-bridge-start",zn._isComparisonBridgeStart(J.compareValue,He,Lt))("mat-calendar-body-comparison-bridge-end",zn._isComparisonBridgeEnd(J.compareValue,He,Lt))("mat-calendar-body-comparison-start",zn._isComparisonStart(J.compareValue))("mat-calendar-body-comparison-end",zn._isComparisonEnd(J.compareValue))("mat-calendar-body-in-comparison-range",zn._isInComparisonRange(J.compareValue))("mat-calendar-body-preview-start",zn._isPreviewStart(J.compareValue))("mat-calendar-body-preview-end",zn._isPreviewEnd(J.compareValue))("mat-calendar-body-in-preview",zn._isInPreview(J.compareValue)),p.Q6J("ngClass",J.cssClasses)("tabindex",zn._isActiveCell(He,Lt)?0:-1),p.uIk("data-mat-row",He)("data-mat-col",Lt)("aria-label",J.ariaLabel)("aria-disabled",!J.enabled||null)("aria-selected",zn._isSelected(J)),p.xp6(1),p.ekj("mat-calendar-body-selected",zn._isSelected(J))("mat-calendar-body-today",zn.todayValue===J.compareValue),p.xp6(1),p.hij(" ",J.displayValue," ")}}function St(Q,Et){if(1&Q&&(p.TgZ(0,"tr",4),p.YNc(1,Ot,2,6,"td",5),p.YNc(2,Bt,4,44,"td",6),p.qZA()),2&Q){const J=Et.$implicit,Lt=Et.index,He=p.oxw();p.xp6(1),p.Q6J("ngIf",0===Lt&&He._firstRowOffset),p.xp6(1),p.Q6J("ngForOf",J)}}function ce(Q,Et){if(1&Q&&(p.TgZ(0,"th",5),p._uU(1),p.qZA()),2&Q){const J=Et.$implicit;p.uIk("aria-label",J.long),p.xp6(1),p.Oqu(J.narrow)}}const Vt=["*"];function ve(Q,Et){}function fe(Q,Et){if(1&Q){const J=p.EpF();p.TgZ(0,"ngx-mat-month-view",5),p.NdJ("activeDateChange",function(He){p.CHM(J);const zn=p.oxw();return p.KtG(zn.activeDate=He)})("selectedChange",function(He){p.CHM(J);const zn=p.oxw();return p.KtG(zn._dateSelected(He))})("_userSelection",function(){p.CHM(J);const He=p.oxw();return p.KtG(He._userSelected())}),p.qZA()}if(2&Q){const J=p.oxw();p.Q6J("activeDate",J.activeDate)("selected",J.selected)("dateFilter",J.dateFilter)("maxDate",J.maxDate)("minDate",J.minDate)("dateClass",J.dateClass)}}function Le(Q,Et){if(1&Q){const J=p.EpF();p.TgZ(0,"ngx-mat-year-view",6),p.NdJ("activeDateChange",function(He){p.CHM(J);const zn=p.oxw();return p.KtG(zn.activeDate=He)})("monthSelected",function(He){p.CHM(J);const zn=p.oxw();return p.KtG(zn._monthSelectedInYearView(He))})("selectedChange",function(He){p.CHM(J);const zn=p.oxw();return p.KtG(zn._goToDateInView(He,"month"))}),p.qZA()}if(2&Q){const J=p.oxw();p.Q6J("activeDate",J.activeDate)("selected",J.selected)("dateFilter",J.dateFilter)("maxDate",J.maxDate)("minDate",J.minDate)}}function Fe(Q,Et){if(1&Q){const J=p.EpF();p.TgZ(0,"ngx-mat-multi-year-view",7),p.NdJ("activeDateChange",function(He){p.CHM(J);const zn=p.oxw();return p.KtG(zn.activeDate=He)})("yearSelected",function(He){p.CHM(J);const zn=p.oxw();return p.KtG(zn._yearSelectedInMultiYearView(He))})("selectedChange",function(He){p.CHM(J);const zn=p.oxw();return p.KtG(zn._goToDateInView(He,"year"))}),p.qZA()}if(2&Q){const J=p.oxw();p.Q6J("activeDate",J.activeDate)("selected",J.selected)("dateFilter",J.dateFilter)("maxDate",J.maxDate)("minDate",J.minDate)}}function Ge(Q,Et){if(1&Q){const J=p.EpF();p.TgZ(0,"td")(1,"button",10),p.NdJ("click",function(){p.CHM(J);const He=p.oxw(2);return p.KtG(He.change("second",!0))}),p.TgZ(2,"mat-icon"),p._uU(3,"expand_less"),p.qZA()()()}if(2&Q){const J=p.oxw(2);p.xp6(1),p.Q6J("disabled",J.disabled||J.disableMinute)}}function Gt(Q,Et){1&Q&&p._UZ(0,"td",6)}function Te(Q,Et){1&Q&&p._UZ(0,"td")}function ne(Q,Et){if(1&Q){const J=p.EpF();p.TgZ(0,"tr")(1,"td")(2,"button",10),p.NdJ("click",function(){p.CHM(J);const He=p.oxw();return p.KtG(He.change("hour",!0))}),p.TgZ(3,"mat-icon"),p._uU(4,"expand_less"),p.qZA()()(),p._UZ(5,"td"),p.TgZ(6,"td")(7,"button",10),p.NdJ("click",function(){p.CHM(J);const He=p.oxw();return p.KtG(He.change("minute",!0))}),p.TgZ(8,"mat-icon"),p._uU(9,"expand_less"),p.qZA()()(),p._UZ(10,"td"),p.YNc(11,Ge,4,1,"td",3),p.YNc(12,Gt,1,0,"td",8),p.YNc(13,Te,1,0,"td",3),p.qZA()}if(2&Q){const J=p.oxw();p.xp6(2),p.Q6J("disabled",J.disabled),p.xp6(5),p.Q6J("disabled",J.disabled||J.disableMinute),p.xp6(4),p.Q6J("ngIf",J.showSeconds),p.xp6(1),p.Q6J("ngIf",J.enableMeridian),p.xp6(1),p.Q6J("ngIf",J.enableMeridian)}}function jt(Q,Et){1&Q&&(p.TgZ(0,"td",6),p._uU(1,":"),p.qZA())}function re(Q,Et){if(1&Q){const J=p.EpF();p.TgZ(0,"td")(1,"mat-form-field",4)(2,"input",11),p.NdJ("input",function(He){p.CHM(J);const zn=p.oxw();return p.KtG(zn.formatInput(He.target))})("keydown.ArrowUp",function(He){return p.CHM(J),p.oxw().change("second",!0),p.KtG(He.preventDefault())})("keydown.ArrowDown",function(He){return p.CHM(J),p.oxw().change("second",!1),p.KtG(He.preventDefault())})("blur",function(){p.CHM(J);const He=p.oxw();return p.KtG(He.change("second"))}),p.qZA()()()}}function Xt(Q,Et){1&Q&&p._UZ(0,"td",6)}function oe(Q,Et){if(1&Q){const J=p.EpF();p.TgZ(0,"td",12)(1,"button",13),p.NdJ("click",function(){p.CHM(J);const He=p.oxw();return p.KtG(He.toggleMeridian())}),p._uU(2),p.qZA()()}if(2&Q){const J=p.oxw();p.xp6(1),p.Q6J("color",J.color)("disabled",J.disabled),p.xp6(1),p.hij(" ",J.meridian," ")}}function Me(Q,Et){1&Q&&p._UZ(0,"td")}function en(Q,Et){if(1&Q){const J=p.EpF();p.TgZ(0,"td")(1,"button",14),p.NdJ("click",function(){p.CHM(J);const He=p.oxw(2);return p.KtG(He.change("second",!1))}),p.TgZ(2,"mat-icon"),p._uU(3,"expand_more"),p.qZA()()()}if(2&Q){const J=p.oxw(2);p.xp6(1),p.Q6J("disabled",J.disabled||J.disableMinute)}}function _n(Q,Et){1&Q&&p._UZ(0,"td",6)}function xe(Q,Et){1&Q&&p._UZ(0,"td")}function vn(Q,Et){if(1&Q){const J=p.EpF();p.TgZ(0,"tr")(1,"td")(2,"button",14),p.NdJ("click",function(){p.CHM(J);const He=p.oxw();return p.KtG(He.change("hour",!1))}),p.TgZ(3,"mat-icon"),p._uU(4,"expand_more"),p.qZA()()(),p._UZ(5,"td"),p.TgZ(6,"td")(7,"button",14),p.NdJ("click",function(){p.CHM(J);const He=p.oxw();return p.KtG(He.change("minute",!1))}),p.TgZ(8,"mat-icon"),p._uU(9,"expand_more"),p.qZA()()(),p.YNc(10,Me,1,0,"td",3),p.YNc(11,en,4,1,"td",3),p.YNc(12,_n,1,0,"td",8),p.YNc(13,xe,1,0,"td",3),p.qZA()}if(2&Q){const J=p.oxw();p.xp6(2),p.Q6J("disabled",J.disabled),p.xp6(5),p.Q6J("disabled",J.disabled||J.disableMinute),p.xp6(3),p.Q6J("ngIf",J.showSeconds),p.xp6(1),p.Q6J("ngIf",J.showSeconds),p.xp6(1),p.Q6J("ngIf",J.enableMeridian),p.xp6(1),p.Q6J("ngIf",J.enableMeridian)}}function ke(Q,Et){if(1&Q){const J=p.EpF();p.TgZ(0,"div",6)(1,"ngx-mat-timepicker",7),p.NdJ("ngModelChange",function(He){p.CHM(J);const zn=p.oxw(2);return p.KtG(zn.datepicker._selected=He)}),p.qZA()()}if(2&Q){const J=p.oxw(2);p.ekj("disable-seconds",!J.datepicker._showSeconds),p.xp6(1),p.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 un(Q,Et){1&Q&&(p.TgZ(0,"mat-icon"),p._uU(1,"done"),p.qZA())}function Dn(Q,Et){}function ii(Q,Et){if(1&Q){const J=p.EpF();p.ynx(0),p.YNc(1,ke,2,12,"div",2),p.TgZ(2,"div",3)(3,"button",4),p.NdJ("click",function(){p.CHM(J);const He=p.oxw();return p.KtG(He.datepicker.ok())}),p.YNc(4,un,2,0,"mat-icon",1),p.YNc(5,Dn,0,0,"ng-template",5),p.qZA()(),p.BQk()}if(2&Q){const J=p.oxw();p.xp6(1),p.Q6J("ngIf",!J.datepicker._hideTime),p.xp6(2),p.Q6J("color",J.datepicker._color)("disabled",!J.valid),p.xp6(1),p.Q6J("ngIf",!J.datepicker._customIcon),p.xp6(1),p.Q6J("cdkPortalOutlet",J._templateCustomIconPortal)}}const _i=new p.OlP("ngx-mat-date-formats");class oi{constructor(Et,J,Lt,He,zn={},Ki=Et,wo){this.value=Et,this.displayValue=J,this.ariaLabel=Lt,this.enabled=He,this.cssClasses=zn,this.compareValue=Ki,this.rawValue=wo}}let Qe=(()=>{class Q{constructor(J,Lt){this._elementRef=J,this._ngZone=Lt,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new p.vpe,this.previewChange=new p.vpe,this._enterHandler=He=>{if(this._skipNextFocus&&"focus"===He.type)this._skipNextFocus=!1;else if(He.target&&this.isRange){const zn=this._getCellFromElement(He.target);zn&&this._ngZone.run(()=>this.previewChange.emit({value:zn.enabled?zn:null,event:He}))}},this._leaveHandler=He=>{null!==this.previewEnd&&this.isRange&&He.target&&te(He.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:He}))},Lt.runOutsideAngular(()=>{const He=J.nativeElement;He.addEventListener("mouseenter",this._enterHandler,!0),He.addEventListener("focus",this._enterHandler,!0),He.addEventListener("mouseleave",this._leaveHandler,!0),He.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(J,Lt){J.enabled&&this.selectedValueChange.emit({value:J.value,event:Lt})}_isSelected(J){return this.startValue===J.compareValue||this.endValue===J.compareValue}ngOnChanges(J){const Lt=J.numCols,{rows:He,numCols:zn}=this;(J.rows||Lt)&&(this._firstRowOffset=He&&He.length&&He[0].length?zn-He[0].length:0),(J.cellAspectRatio||Lt||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/zn+"%"),(Lt||!this._cellWidth)&&(this._cellWidth=100/zn+"%")}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,Lt){let He=J*this.numCols+Lt;return J&&(He-=this._firstRowOffset),He==this.activeCell}_focusActiveCell(J=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.asObservable().pipe((0,U.q)(1)).subscribe(()=>{const Lt=this._elementRef.nativeElement.querySelector(".ngx-mat-calendar-body-active");Lt&&(J||(this._skipNextFocus=!0),Lt.focus())})})}_isRangeStart(J){return it(J,this.startValue,this.endValue)}_isRangeEnd(J){return K(J,this.startValue,this.endValue)}_isInRange(J){return Tt(J,this.startValue,this.endValue,this.isRange)}_isComparisonStart(J){return it(J,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(J,Lt,He){if(!this._isComparisonStart(J)||this._isRangeStart(J)||!this._isInRange(J))return!1;let zn=this.rows[Lt][He-1];if(!zn){const Ki=this.rows[Lt-1];zn=Ki&&Ki[Ki.length-1]}return zn&&!this._isRangeEnd(zn.compareValue)}_isComparisonBridgeEnd(J,Lt,He){if(!this._isComparisonEnd(J)||this._isRangeEnd(J)||!this._isInRange(J))return!1;let zn=this.rows[Lt][He+1];if(!zn){const Ki=this.rows[Lt+1];zn=Ki&&Ki[0]}return zn&&!this._isRangeStart(zn.compareValue)}_isComparisonEnd(J){return K(J,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(J){return Tt(J,this.comparisonStart,this.comparisonEnd,this.isRange)}_isPreviewStart(J){return it(J,this.previewStart,this.previewEnd)}_isPreviewEnd(J){return K(J,this.previewStart,this.previewEnd)}_isInPreview(J){return Tt(J,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(J){let Lt;if(te(J)?Lt=J:te(J.parentNode)&&(Lt=J.parentNode),Lt){const He=Lt.getAttribute("data-ngx-mat-row"),zn=Lt.getAttribute("data-ngx-mat-col");if(He&&zn)return this.rows[parseInt(He)][parseInt(zn)]}return null}}return Q.\u0275fac=function(J){return new(J||Q)(p.Y36(p.SBq),p.Y36(p.R0b))},Q.\u0275cmp=p.Xpm({type:Q,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:[p.TTD],attrs:xt,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,Lt){1&J&&(p.YNc(0,pt,3,6,"tr",0),p.YNc(1,St,3,2,"tr",1)),2&J&&(p.Q6J("ngIf",Lt._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}),Q})();function te(Q){return"TD"===Q.nodeName}function it(Q,Et,J){return null!==J&&Et!==J&&Q=Et&&Q===J}function Tt(Q,Et,J,Lt){return Lt&&null!==Et&&null!==J&&Et!==J&&Q>=Et&&Q<=J}class Rt extends W._A{isSameTime(Et,J){return null==Et||null==J||this.getHour(Et)===this.getHour(J)&&this.getMinute(Et)===this.getMinute(J)&&this.getSecond(Et)===this.getSecond(J)}copyTime(Et,J){this.setHour(Et,this.getHour(J)),this.setMinute(Et,this.getMinute(J)),this.setSecond(Et,this.getSecond(J))}compareDateWithTime(Et,J,Lt){let He=super.compareDate(Et,J)||this.getHour(Et)-this.getHour(J)||this.getMinute(Et)-this.getMinute(J);return Lt&&(He=He||this.getSecond(Et)-this.getSecond(J)),He}setTimeByDefaultValues(Et,J){if(!Array.isArray(J))throw Error("@Input DefaultTime should be an array");this.setHour(Et,J[0]||0),this.setMinute(Et,J[1]||0),this.setSecond(Et,J[2]||0)}}const le=new p.OlP("NGX_MAT_DATE_RANGE_SELECTION_STRATEGY");let be=(()=>{class Q{constructor(J){this._dateAdapter=J}selectionFinished(J,Lt){let{start:He,end:zn}=Lt;return null==He?He=J:null==zn&&J&&this._dateAdapter.compareDate(J,He)>=0?zn=J:(He=J,zn=null),new N.C0(He,zn)}createPreview(J,Lt){let He=null,zn=null;return Lt.start&&!Lt.end&&J&&(He=Lt.start,zn=J),new N.C0(He,zn)}}return Q.\u0275fac=function(J){return new(J||Q)(p.LFG(Rt))},Q.\u0275prov=p.Yz7({token:Q,factory:Q.\u0275fac}),Q})();const De={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 Yn(Q){const Et=Q.toString();return Et.length>1?Et:`0${Et}`}function Vn(Q){return Error(`NgxMatDatepicker: No provider found for ${Q}. You must import one of the following modules at your application root: NgxMatNativeDateModule, NgxMatMomentModule, or provide a custom implementation.`)}let Ye=(()=>{class Q{constructor(J,Lt,He,zn,Ki){if(this._changeDetectorRef=J,this._dateFormats=Lt,this._dateAdapter=He,this._dir=zn,this._rangeStrategy=Ki,this._rerenderSubscription=x.w.EMPTY,this.selectedChange=new p.vpe,this._userSelection=new p.vpe,this.activeDateChange=new p.vpe,!this._dateAdapter)throw Vn("NgxMatDateAdapter");if(!this._dateFormats)throw Vn("NGX_MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(J){const Lt=this._activeDate,He=this._getValidDateOrNull(this._dateAdapter.deserialize(J))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(He,this.minDate,this.maxDate),this._hasSameMonthAndYear(Lt,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 Lt=J.value,He=this._dateAdapter.getYear(this.activeDate),zn=this._dateAdapter.getMonth(this.activeDate),Ki=this._dateAdapter.createDate(He,zn,Lt);let wo,dr;this._selected instanceof N.C0?(wo=this._getDateInCurrentMonth(this._selected.start),dr=this._getDateInCurrentMonth(this._selected.end)):wo=dr=this._getDateInCurrentMonth(this._selected),(wo!==Lt||dr!==Lt)&&this.selectedChange.emit(Ki),this._userSelection.emit({value:Ki,event:J.event})}_handleCalendarBodyKeydown(J){const Lt=this._activeDate,He=this._isRtl();switch(J.keyCode){case T.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,He?1:-1);break;case T.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,He?-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(Lt,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:Lt}){if(this._rangeStrategy){const zn=this._rangeStrategy.createPreview(Lt?Lt.rawValue:null,this.selected,J);this._previewStart=this._getCellCompareValue(zn.start),this._previewEnd=this._getCellCompareValue(zn.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const J=this._dateAdapter.getFirstDayOfWeek(),Lt=this._dateAdapter.getDayOfWeekNames("narrow");let zn=this._dateAdapter.getDayOfWeekNames("long").map((Ki,wo)=>({long:Ki,narrow:Lt[wo]}));this._weekdays=zn.slice(J).concat(zn.slice(0,J))}_createWeekCells(){const J=this._dateAdapter.getNumDaysInMonth(this.activeDate),Lt=this._dateAdapter.getDateNames();this._weeks=[[]];for(let He=0,zn=this._firstWeekOffset;He=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,Lt){return!(!J||!Lt||this._dateAdapter.getMonth(J)!=this._dateAdapter.getMonth(Lt)||this._dateAdapter.getYear(J)!=this._dateAdapter.getYear(Lt))}_getCellCompareValue(J){if(J){const Lt=this._dateAdapter.getYear(J),He=this._dateAdapter.getMonth(J),zn=this._dateAdapter.getDate(J);return new Date(Lt,He,zn).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 Q.\u0275fac=function(J){return new(J||Q)(p.Y36(p.sBO),p.Y36(_i,8),p.Y36(Rt,8),p.Y36(tt.Is,8),p.Y36(le,8))},Q.\u0275cmp=p.Xpm({type:Q,selectors:[["ngx-mat-month-view"]],viewQuery:function(J,Lt){if(1&J&&p.Gf(Qe,5),2&J){let He;p.iGM(He=p.CRH())&&(Lt._matCalendarBody=He.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,Lt){1&J&&(p.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),p.YNc(3,ce,2,2,"th",2),p.qZA(),p.TgZ(4,"tr"),p._UZ(5,"th",3),p.qZA()(),p.TgZ(6,"tbody",4),p.NdJ("selectedValueChange",function(zn){return Lt._dateSelected(zn)})("previewChange",function(zn){return Lt._previewChanged(zn)})("keydown",function(zn){return Lt._handleCalendarBodyKeydown(zn)}),p.qZA()()),2&J&&(p.xp6(3),p.Q6J("ngForOf",Lt._weekdays),p.xp6(3),p.Q6J("label",Lt._monthLabel)("rows",Lt._weeks)("todayValue",Lt._todayDate)("startValue",Lt._rangeStart)("endValue",Lt._rangeEnd)("comparisonStart",Lt._comparisonRangeStart)("comparisonEnd",Lt._comparisonRangeEnd)("previewStart",Lt._previewStart)("previewEnd",Lt._previewEnd)("isRange",Lt._isRange)("labelMinRequiredCells",3)("activeCell",Lt._dateAdapter.getDate(Lt.activeDate)-1))},dependencies:[V.sg,Qe],encapsulation:2,changeDetection:0}),Q})(),se=(()=>{class Q{constructor(J,Lt,He){if(this._changeDetectorRef=J,this._dateAdapter=Lt,this._dir=He,this._rerenderSubscription=x.w.EMPTY,this.selectedChange=new p.vpe,this.yearSelected=new p.vpe,this.activeDateChange=new p.vpe,!this._dateAdapter)throw Vn("NgxMatDateAdapter");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(J){let Lt=this._activeDate;const He=this._getValidDateOrNull(this._dateAdapter.deserialize(J))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(He,this.minDate,this.maxDate),ze(this._dateAdapter,Lt,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 Lt=this._dateAdapter.getYear(this._activeDate)-ie(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let He=0,zn=[];He<24;He++)zn.push(Lt+He),4==zn.length&&(this._years.push(zn.map(Ki=>this._createCellForYear(Ki))),zn=[]);this._changeDetectorRef.markForCheck()}_yearSelected(J){const Lt=J.value;this.yearSelected.emit(this._dateAdapter.createDate(Lt,0,1));let He=this._dateAdapter.getMonth(this.activeDate),zn=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(Lt,He,1));this.selectedChange.emit(this._dateAdapter.createDate(Lt,He,Math.min(this._dateAdapter.getDate(this.activeDate),zn)))}_handleCalendarBodyKeydown(J){const Lt=this._activeDate,He=this._isRtl();switch(J.keyCode){case T.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,He?1:-1);break;case T.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,He?-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,-ie(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case T.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-ie(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(Lt,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),J.preventDefault()}_getActiveCell(){return ie(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(J){let Lt=this._dateAdapter.getYearName(this._dateAdapter.createDate(J,0,1));return new oi(J,Lt,Lt,this._shouldEnableYear(J))}_shouldEnableYear(J){if(null==J||this.maxDate&&J>this._dateAdapter.getYear(this.maxDate)||this.minDate&&J{class Q{constructor(J,Lt,He,zn){if(this._changeDetectorRef=J,this._dateFormats=Lt,this._dateAdapter=He,this._dir=zn,this._rerenderSubscription=x.w.EMPTY,this.selectedChange=new p.vpe,this.monthSelected=new p.vpe,this.activeDateChange=new p.vpe,!this._dateAdapter)throw Vn("NgxMatDateAdapter");if(!this._dateFormats)throw Vn("NGX_MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(J){let Lt=this._activeDate;const He=this._getValidDateOrNull(this._dateAdapter.deserialize(J))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(He,this.minDate,this.maxDate),this._dateAdapter.getYear(Lt)!==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 Lt=J.value,He=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Lt,1);this.monthSelected.emit(He);const zn=this._dateAdapter.getNumDaysInMonth(He);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Lt,Math.min(this._dateAdapter.getDate(this.activeDate),zn)))}_handleCalendarBodyKeydown(J){const Lt=this._activeDate,He=this._isRtl();switch(J.keyCode){case T.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,He?1:-1);break;case T.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,He?-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(Lt,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(Lt=>Lt.map(He=>this._createCellForMonth(He,J[He]))),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,Lt){let He=this._dateAdapter.format(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),J,1),this._dateFormats.display.monthYearA11yLabel);return new oi(J,Lt.toLocaleUpperCase(),He,this._shouldEnableMonth(J))}_shouldEnableMonth(J){const Lt=this._dateAdapter.getYear(this.activeDate);if(null==J||this._isYearAndMonthAfterMaxDate(Lt,J)||this._isYearAndMonthBeforeMinDate(Lt,J))return!1;if(!this.dateFilter)return!0;for(let zn=this._dateAdapter.createDate(Lt,J,1);this._dateAdapter.getMonth(zn)==J;zn=this._dateAdapter.addCalendarDays(zn,1))if(this.dateFilter(zn))return!0;return!1}_isYearAndMonthAfterMaxDate(J,Lt){if(this.maxDate){const He=this._dateAdapter.getYear(this.maxDate),zn=this._dateAdapter.getMonth(this.maxDate);return J>He||J===He&&Lt>zn}return!1}_isYearAndMonthBeforeMinDate(J,Lt){if(this.minDate){const He=this._dateAdapter.getYear(this.minDate),zn=this._dateAdapter.getMonth(this.minDate);return J{class Q{constructor(J,Lt,He,zn,Ki){this._intl=J,this.calendar=Lt,this._dateAdapter=He,this._dateFormats=zn,this.calendar.stateChanges.subscribe(()=>Ki.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 Lt=this._dateAdapter.getYear(this.calendar.activeDate)-ie(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),He=Lt+24-1;return function Je(Q,Et){return`${Q} \u2013 ${Et}`}(this._dateAdapter.getYearName(this._dateAdapter.createDate(Lt,0,1)),this._dateAdapter.getYearName(this._dateAdapter.createDate(He,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,Lt){return"month"==this.calendar.currentView?this._dateAdapter.getYear(J)==this._dateAdapter.getYear(Lt)&&this._dateAdapter.getMonth(J)==this._dateAdapter.getMonth(Lt):"year"==this.calendar.currentView?this._dateAdapter.getYear(J)==this._dateAdapter.getYear(Lt):ze(this._dateAdapter,J,Lt,this.calendar.minDate,this.calendar.maxDate)}}return Q.\u0275fac=function(J){return new(J||Q)(p.Y36(N.S8),p.Y36((0,p.Gpc)(()=>Nt)),p.Y36(Rt,8),p.Y36(_i,8),p.Y36(p.sBO))},Q.\u0275cmp=p.Xpm({type:Q,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,Lt){1&J&&(p.F$t(),p.TgZ(0,"div",0)(1,"div",1)(2,"button",2),p.NdJ("click",function(){return Lt.currentPeriodClicked()}),p._uU(3),p._UZ(4,"div",3),p.qZA(),p._UZ(5,"div",4),p.Hsn(6),p.TgZ(7,"button",5),p.NdJ("click",function(){return Lt.previousClicked()}),p.qZA(),p.TgZ(8,"button",6),p.NdJ("click",function(){return Lt.nextClicked()}),p.qZA()()()),2&J&&(p.xp6(2),p.uIk("aria-label",Lt.periodButtonLabel),p.xp6(1),p.hij(" ",Lt.periodButtonText," "),p.xp6(1),p.ekj("mat-calendar-invert","month"!=Lt.calendar.currentView),p.xp6(3),p.Q6J("disabled",!Lt.previousEnabled()),p.uIk("aria-label",Lt.prevButtonLabel),p.xp6(1),p.Q6J("disabled",!Lt.nextEnabled()),p.uIk("aria-label",Lt.nextButtonLabel))},dependencies:[st.lW],encapsulation:2,changeDetection:0}),Q})(),Nt=(()=>{class Q{constructor(J,Lt,He,zn){if(this._dateAdapter=Lt,this._dateFormats=He,this._changeDetectorRef=zn,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new p.vpe,this.yearSelected=new p.vpe,this.monthSelected=new p.vpe,this._userSelection=new p.vpe,this.stateChanges=new v.xQ,!this._dateAdapter)throw Vn("NgxDateAdapter");if(!this._dateFormats)throw Vn("NGX_MAT_DATE_FORMATS");this._intlChanges=J.changes.subscribe(()=>{zn.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||ge),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 Lt=J.minDate||J.maxDate||J.dateFilter;if(Lt&&!Lt.firstChange){const He=this._getCurrentViewComponent();He&&(this._changeDetectorRef.detectChanges(),He._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,Lt){this.activeDate=J,this.currentView=Lt}_getValidDateOrNull(J){return this._dateAdapter.isDateInstance(J)&&this._dateAdapter.isValid(J)?J:null}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return Q.\u0275fac=function(J){return new(J||Q)(p.Y36(N.S8),p.Y36(Rt,8),p.Y36(_i,8),p.Y36(p.sBO))},Q.\u0275cmp=p.Xpm({type:Q,selectors:[["ngx-mat-calendar"]],viewQuery:function(J,Lt){if(1&J&&(p.Gf(Ye,5),p.Gf(sn,5),p.Gf(se,5)),2&J){let He;p.iGM(He=p.CRH())&&(Lt.monthView=He.first),p.iGM(He=p.CRH())&&(Lt.yearView=He.first),p.iGM(He=p.CRH())&&(Lt.multiYearView=He.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:[p.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,Lt){1&J&&(p.YNc(0,ve,0,0,"ng-template",0),p.TgZ(1,"div",1),p.YNc(2,fe,1,6,"ngx-mat-month-view",2),p.YNc(3,Le,1,5,"ngx-mat-year-view",3),p.YNc(4,Fe,1,5,"ngx-mat-multi-year-view",4),p.qZA()),2&J&&(p.Q6J("cdkPortalOutlet",Lt._calendarHeaderPortal),p.xp6(1),p.Q6J("ngSwitch",Lt.currentView),p.xp6(1),p.Q6J("ngSwitchCase","month"),p.xp6(1),p.Q6J("ngSwitchCase","year"),p.xp6(1),p.Q6J("ngSwitchCase","multi-year"))},dependencies:[V.RF,V.n9,u.Pl,Ye,sn,se],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}),Q})(),Se=(()=>{class Q{constructor(J,Lt,He){if(this._dateAdapter=J,this.cd=Lt,this.formBuilder=He,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 v.xQ,this.pattern=Di,!this._dateAdapter)throw Vn("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,Lt){const He=this._getNextValueByProp(J,Lt);this.form.controls[J].setValue(Yn(He),{onlySelf:!1,emitEvent:!1}),this._updateModel()}_updateHourMinuteSecond(){let J=this._dateAdapter.getHour(this._model);const Lt=this._dateAdapter.getMinute(this._model),He=this._dateAdapter.getSecond(this._model);this.enableMeridian&&(J>=De.meridian?(J-=De.meridian,this.meridian="PM"):this.meridian="AM",0===J&&(J=De.meridian)),this.form.controls.hour.setValue(Yn(J)),this.form.controls.minute.setValue(Yn(Lt)),this.form.controls.second.setValue(Yn(He))}_updateModel(){let J=this.hour;this.enableMeridian&&("AM"===this.meridian&&J===De.meridian?J=0:"PM"===this.meridian&&J!==De.meridian&&(J+=De.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,Lt){const He=J[0].toUpperCase()+J.slice(1),zn=De[`min${He}`];let wo,Ki=De[`max${He}`];return"hour"===J&&this.enableMeridian&&(Ki=De.meridian),null==Lt?(wo=this[J]%Ki,"hour"===J&&this.enableMeridian&&0===wo&&(wo=Ki)):(wo=Lt?this[J]+this[`step${He}`]:this[J]-this[`step${He}`],"hour"===J&&this.enableMeridian?(wo%=Ki+1,0===wo&&(wo=Lt?1:Ki)):wo%=Ki,wo=Lt?wo>Ki?wo-Ki+zn:wo:woQ),multi:!0}]),p.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,Lt){1&J&&(p.TgZ(0,"form",0)(1,"table",1)(2,"tbody",2),p.YNc(3,ne,14,5,"tr",3),p.TgZ(4,"tr")(5,"td")(6,"mat-form-field",4)(7,"input",5),p.NdJ("input",function(zn){return Lt.formatInput(zn.target)})("keydown.ArrowUp",function(zn){return Lt.change("hour",!0),zn.preventDefault()})("keydown.ArrowDown",function(zn){return Lt.change("hour",!1),zn.preventDefault()})("blur",function(){return Lt.change("hour")}),p.qZA()()(),p.TgZ(8,"td",6),p._uU(9,":"),p.qZA(),p.TgZ(10,"td")(11,"mat-form-field",4)(12,"input",7),p.NdJ("input",function(zn){return Lt.formatInput(zn.target)})("keydown.ArrowUp",function(zn){return Lt.change("minute",!0),zn.preventDefault()})("keydown.ArrowDown",function(zn){return Lt.change("minute",!1),zn.preventDefault()})("blur",function(){return Lt.change("minute")}),p.qZA()()(),p.YNc(13,jt,2,0,"td",8),p.YNc(14,re,3,0,"td",3),p.YNc(15,Xt,1,0,"td",8),p.YNc(16,oe,3,3,"td",9),p.qZA(),p.YNc(17,vn,14,6,"tr",3),p.qZA()()()),2&J&&(p.Q6J("formGroup",Lt.form),p.xp6(3),p.Q6J("ngIf",Lt.showSpinners),p.xp6(10),p.Q6J("ngIf",Lt.showSeconds),p.xp6(1),p.Q6J("ngIf",Lt.showSeconds),p.xp6(1),p.Q6J("ngIf",Lt.enableMeridian),p.xp6(1),p.Q6J("ngIf",Lt.enableMeridian),p.xp6(1),p.Q6J("ngIf",Lt.showSpinners))},dependencies:[V.O5,wt.KE,qt.Nt,Dt._Y,Dt.Fj,Dt.JJ,Dt.JL,Dt.nD,Dt.sg,Dt.u,Jt.Hw,st.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}),Q})(),zt=0;const Ae=(0,W.pj)(class{constructor(Q){this._elementRef=Q}});let Ie=(()=>{class Q extends Ae{constructor(J,Lt,He){super(J),this.cd=Lt,this._viewContainerRef=He}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 Q.\u0275fac=function(J){return new(J||Q)(p.Y36(p.SBq),p.Y36(p.sBO),p.Y36(p.s_b))},Q.\u0275cmp=p.Xpm({type:Q,selectors:[["ngx-mat-datetime-content"]],viewQuery:function(J,Lt){if(1&J&&(p.Gf(Nt,5),p.Gf(Se,5)),2&J){let He;p.iGM(He=p.CRH())&&(Lt._calendar=He.first),p.iGM(He=p.CRH())&&(Lt._timePicker=He.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(J,Lt){2&J&&(p.d8E("@transformPanel","enter"),p.ekj("mat-datepicker-content-touch",Lt.datepicker.touchUi))},inputs:{color:"color"},exportAs:["ngxMatDatetimeContent"],features:[p.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,Lt){1&J&&(p.TgZ(0,"ngx-mat-calendar",0),p.NdJ("selectedChange",function(zn){return Lt.datepicker.select(zn)})("yearSelected",function(zn){return Lt.datepicker._selectYear(zn)})("monthSelected",function(zn){return Lt.datepicker._selectMonth(zn)}),p.qZA(),p.YNc(1,ii,6,5,"ng-container",1)),2&J&&(p.Q6J("id",Lt.datepicker.id)("ngClass",Lt.datepicker.panelClass)("startAt",Lt.datepicker.startAt)("startView",Lt.datepicker.startView)("minDate",Lt.datepicker._minDate)("maxDate",Lt.datepicker._maxDate)("dateFilter",Lt.datepicker._dateFilter)("headerComponent",Lt.datepicker.calendarHeaderComponent)("selected",Lt.datepicker._selected)("dateClass",Lt.datepicker.dateClass)("@fadeInCalendar","enter"),p.xp6(1),p.Q6J("ngIf",Lt.isViewMonth))},dependencies:[V.mk,V.O5,u.Pl,Dt.JJ,Dt.On,Jt.Hw,st.lW,Se,Nt],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}),Q})(),Sn=(()=>{class Q{constructor(J,Lt,He,zn,Ki,wo,dr,pr){if(this._dialog=J,this._overlay=Lt,this._ngZone=He,this._viewContainerRef=zn,this._dateAdapter=wo,this._dir=dr,this._document=pr,this.startView="month",this._defaultColor="primary",this._touchUi=!1,this._hideTime=!1,this.yearSelected=new p.vpe,this.monthSelected=new p.vpe,this.openedStream=new p.vpe,this.closedStream=new p.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=x.w.EMPTY,this.stateChanges=new v.xQ,this._selectedChanged=new v.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 Vn("NgxMatDateAdapter");this._scrollStrategy=Ki}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,ct.Ig)(J)}get hideTime(){return this._hideTime}set hideTime(J){this._hideTime=(0,ct.Ig)(J)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(J){const Lt=(0,ct.Ig)(J);Lt!==this._disabled&&(this._disabled=Lt,this.stateChanges.next(Lt))}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(),Lt=this._maxValidator();return null==J&&null==Lt}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(Lt=>this._selected=Lt)}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(Ie,{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(Ie,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 bt.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)(Lt=>Lt.keyCode===T.hY||this.datepickerInput&&Lt.altKey&&Lt.keyCode===T.LH))).subscribe(Lt=>{Lt&&Lt.preventDefault(),this._hasBackdrop&&Lt?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 Q.\u0275fac=function(J){return new(J||Q)(p.Y36(yt.uw),p.Y36(bt.aV),p.Y36(p.R0b),p.Y36(p.s_b),p.Y36(N.Uu),p.Y36(Rt,8),p.Y36(tt.Is,8),p.Y36(V.K0,8))},Q.\u0275cmp=p.Xpm({type:Q,selectors:[["ngx-mat-datetime-picker"]],contentQueries:function(J,Lt,He){if(1&J&&p.Suo(He,p.Rgc,5),2&J){let zn;p.iGM(zn=p.CRH())&&(Lt._customIcon=zn.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,Lt){},encapsulation:2,changeDetection:0}),Q})();const Ei={provide:Dt.JU,useExisting:(0,p.Gpc)(()=>pn),multi:!0},Vi={provide:Dt.Cf,useExisting:(0,p.Gpc)(()=>pn),multi:!0};class cn{constructor(Et,J){this.target=Et,this.targetElement=J,this.value=this.target.value}}let bi,pn=(()=>{class Q{constructor(J,Lt,He,zn){if(this._elementRef=J,this._dateAdapter=Lt,this._dateFormats=He,this._formField=zn,this.dateChange=new p.vpe,this.dateInput=new p.vpe,this._valueChange=new p.vpe,this.stateChanges=new p.vpe,this._onTouched=()=>{},this._cvaOnChange=()=>{},this._validatorOnChange=()=>{},this._datepickerSubscription=x.w.EMPTY,this._localeSubscription=x.w.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatetimePickerParse:{text:this._elementRef.nativeElement.value}},this._minValidator=Ki=>{const wo=this._getValidDateOrNull(this._dateAdapter.deserialize(Ki.value));return!this.min||!wo||this._dateAdapter.compareDateWithTime(this.min,wo,this._datepicker.showSeconds)<=0?null:{matDatetimePickerMin:{min:this.min,actual:wo}}},this._maxValidator=Ki=>{const wo=this._getValidDateOrNull(this._dateAdapter.deserialize(Ki.value));return!this.max||!wo||this._dateAdapter.compareDateWithTime(this.max,wo,this._datepicker.showSeconds)>=0?null:{matDatetimePickerMax:{max:this.max,actual:wo}}},this._filterValidator=Ki=>{const wo=this._getValidDateOrNull(this._dateAdapter.deserialize(Ki.value));return this._dateFilter&&wo&&!this._dateFilter(wo)?{matDatetimePickerFilter:!0}:null},this._validator=Dt.kI.compose([this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]),this._lastValueValid=!1,!this._dateAdapter)throw Vn("NgxMatDateAdapter");if(!this._dateFormats)throw Vn("NGX_MAT_DATE_FORMATS");this._localeSubscription=Lt.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(Lt=>{this.value=Lt,this._cvaOnChange(Lt),this._onTouched(),this.dateInput.emit(new cn(this,this._elementRef.nativeElement)),this.dateChange.emit(new cn(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 Lt=this.value;this._value=J,this._formatValue(J),this._dateAdapter.sameDate(Lt,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 Lt=null!=J&&"false"!=`${J}`,He=this._elementRef.nativeElement;this._disabled!==Lt&&(this._disabled=Lt,this.stateChanges.emit(void 0)),Lt&&He.blur&&He.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 Lt=this._lastValueValid;let He=this._dateAdapter.parse(J,this._dateFormats.parse.dateInput);this._lastValueValid=!He||this._dateAdapter.isValid(He),He=this._getValidDateOrNull(He);const zn=this._dateAdapter.isSameTime(He,this._value);null!=He&&(!zn||!this._dateAdapter.sameDate(He,this._value))||null==He&&null!=this._value?(this._value=He,this._cvaOnChange(He),this._valueChange.emit(He),this.dateInput.emit(new cn(this,this._elementRef.nativeElement))):Lt!==this._lastValueValid&&this._validatorOnChange()}_onChange(){this.dateChange.emit(new cn(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 Q.\u0275fac=function(J){return new(J||Q)(p.Y36(p.SBq),p.Y36(Rt,8),p.Y36(_i,8),p.Y36(wt.KE,8))},Q.\u0275dir=p.lG2({type:Q,selectors:[["input","ngxMatDatetimePicker",""]],hostVars:5,hostBindings:function(J,Lt){1&J&&p.NdJ("input",function(zn){return Lt._onInput(zn.target.value)})("change",function(){return Lt._onChange()})("blur",function(){return Lt._onBlur()})("focus",function(){return Lt._onFocus()})("keydown",function(zn){return Lt._onKeydown(zn)}),2&J&&(p.Ikx("disabled",Lt.disabled),p.uIk("aria-haspopup",Lt._datepicker?"dialog":null)("aria-owns",(null==Lt._datepicker?null:Lt._datepicker.opened)&&Lt._datepicker.id||null)("min",Lt.min?Lt._dateAdapter.toIso8601(Lt.min):null)("max",Lt.max?Lt._dateAdapter.toIso8601(Lt.max):null))},inputs:{ngxMatDatetimePicker:"ngxMatDatetimePicker",ngxMatDatetimePickerFilter:"ngxMatDatetimePickerFilter",value:"value",min:"min",max:"max",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},exportAs:["ngxMatDatetimePickerInput"],features:[p._Bn([Ei,Vi,{provide:qt.Jk,useExisting:Q}])]}),Q})(),We=(()=>{class Q{}return Q.\u0275fac=function(J){return new(J||Q)},Q.\u0275mod=p.oAB({type:Q}),Q.\u0275inj=p.cJS({imports:[V.ez,qt.c,Dt.UX,Dt.u5,Jt.Ps,st.ot]}),Q})(),ai=(()=>{class Q{}return Q.\u0275fac=function(J){return new(J||Q)},Q.\u0275mod=p.oAB({type:Q}),Q.\u0275inj=p.cJS({providers:[N.Lv,{provide:le,useClass:be}],imports:[V.ez,N.FA,yt.Is,u.eL,Dt.u5,Jt.Ps,st.ot,qt.c,We]}),Q})();try{bi=typeof Intl<"u"}catch{bi=!1}const so={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"]},To=Aa(31,Q=>String(Q+1)),Lo={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},ha=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Aa(Q,Et){const J=Array(Q);for(let Lt=0;Lt{class Q extends Rt{constructor(J,Lt){super(),this.useUtcForDisplay=!0,super.setLocale(J),this.useUtcForDisplay=!Lt.TRIDENT,this._clampDate=Lt.TRIDENT||Lt.EDGE}getYear(J){return J.getFullYear()}getMonth(J){return J.getMonth()}getDate(J){return J.getDate()}getDayOfWeek(J){return J.getDay()}getMonthNames(J){if(bi){const Lt=new Intl.DateTimeFormat(this.locale,{month:J,timeZone:"utc"});return Aa(12,He=>this._stripDirectionalityCharacters(this._format(Lt,new Date(2017,He,1))))}return so[J]}getDateNames(){if(bi){const J=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Aa(31,Lt=>this._stripDirectionalityCharacters(this._format(J,new Date(2017,0,Lt+1))))}return To}getDayOfWeekNames(J){if(bi){const Lt=new Intl.DateTimeFormat(this.locale,{weekday:J,timeZone:"utc"});return Aa(7,He=>this._stripDirectionalityCharacters(this._format(Lt,new Date(2017,0,He+1))))}return Lo[J]}getYearName(J){if(bi){const Lt=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(Lt,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,Lt,He){if(Lt<0||Lt>11)throw Error(`Invalid month index "${Lt}". Month index has to be between 0 and 11.`);if(He<1)throw Error(`Invalid date "${He}". Date has to be greater than 0.`);let zn=this._createDateWithOverflow(J,Lt,He);if(zn.getMonth()!=Lt)throw Error(`Invalid date "${He}" for month with index "${Lt}".`);return zn}today(){return new Date}parse(J){return"number"==typeof J?new Date(J):J?new Date(Date.parse(J)):null}format(J,Lt){if(!this.isValid(J))throw Error("NativeDateAdapter: Cannot format invalid date.");if(bi){this._clampDate&&(J.getFullYear()<1||J.getFullYear()>9999)&&(J=this.clone(J)).setFullYear(Math.max(1,Math.min(9999,J.getFullYear()))),Lt={...Lt,timeZone:"utc"};const He=new Intl.DateTimeFormat(this.locale,Lt);return this._stripDirectionalityCharacters(this._format(He,J))}return this._stripDirectionalityCharacters(J.toDateString())}addCalendarYears(J,Lt){return this.addCalendarMonths(J,12*Lt)}addCalendarMonths(J,Lt){let He=this._createDateWithOverflow(this.getYear(J),this.getMonth(J)+Lt,this.getDate(J));return this.getMonth(He)!=((this.getMonth(J)+Lt)%12+12)%12&&(He=this._createDateWithOverflow(this.getYear(He),this.getMonth(He),0)),He}addCalendarDays(J,Lt){return this._createDateWithOverflow(this.getYear(J),this.getMonth(J),this.getDate(J)+Lt)}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(ha.test(J)){let Lt=new Date(J);if(this.isValid(Lt))return Lt}}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,Lt){J.setHours(Lt)}setMinute(J,Lt){J.setMinutes(Lt)}setSecond(J,Lt){J.setSeconds(Lt)}_createDateWithOverflow(J,Lt,He){const zn=new Date(J,Lt,He);return J>=0&&J<100&&zn.setFullYear(this.getYear(zn)-1900),zn}_2digit(J){return("00"+J).slice(-2)}_stripDirectionalityCharacters(J){return J.replace(/[\u200e\u200f]/g,"")}_format(J,Lt){const He=new Date;return He.setUTCFullYear(Lt.getFullYear(),Lt.getMonth(),Lt.getDate()),He.setUTCHours(Lt.getHours(),Lt.getMinutes(),Lt.getSeconds(),Lt.getMilliseconds()),J.format(He)}}return Q.\u0275fac=function(J){return new(J||Q)(p.LFG(W.Ad,8),p.LFG(At.t4))},Q.\u0275prov=p.Yz7({token:Q,factory:Q.\u0275fac}),Q})();const Rn={year:"numeric",month:"numeric",day:"numeric",hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"},Re={parse:{dateInput:Rn},display:{dateInput:Rn,monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let we=(()=>{class Q{}return Q.\u0275fac=function(J){return new(J||Q)},Q.\u0275mod=p.oAB({type:Q}),Q.\u0275inj=p.cJS({providers:[{provide:Rt,useClass:Ne}],imports:[At.ud]}),Q})(),on=(()=>{class Q{}return Q.\u0275fac=function(J){return new(J||Q)},Q.\u0275mod=p.oAB({type:Q}),Q.\u0275inj=p.cJS({providers:[{provide:_i,useValue:Re}],imports:[we]}),Q})()},37340:(X,j,h)=>{"use strict";h.d(j,{F4:()=>O,IO:()=>tt,LC:()=>p,SB:()=>P,X$:()=>v,ZE:()=>Dt,ZN:()=>bt,_j:()=>u,eR:()=>L,jt:()=>t,k1:()=>wt,l3:()=>x,oB:()=>w,pV:()=>V,ru:()=>T,vP:()=>U});class u{}class p{}const x="*";function v(qt,Jt){return{type:7,name:qt,definitions:Jt,options:{}}}function t(qt,Jt=null){return{type:4,styles:Jt,timings:qt}}function T(qt,Jt=null){return{type:3,steps:qt,options:Jt}}function U(qt,Jt=null){return{type:2,steps:qt,options:Jt}}function w(qt){return{type:6,styles:qt,offset:null}}function P(qt,Jt,yt){return{type:0,name:qt,styles:Jt,options:yt}}function O(qt){return{type:5,steps:qt}}function L(qt,Jt,yt=null){return{type:1,expr:qt,animation:Jt,options:yt}}function V(qt=null){return{type:9,options:qt}}function tt(qt,Jt,yt=null){return{type:11,selector:qt,animation:Jt,options:yt}}function ct(qt){Promise.resolve().then(qt)}class bt{constructor(Jt=0,yt=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=Jt+yt}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Jt=>Jt()),this._onDoneFns=[])}onStart(Jt){this._originalOnStartFns.push(Jt),this._onStartFns.push(Jt)}onDone(Jt){this._originalOnDoneFns.push(Jt),this._onDoneFns.push(Jt)}onDestroy(Jt){this._onDestroyFns.push(Jt)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){ct(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(Jt=>Jt()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(Jt=>Jt()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(Jt){this._position=this.totalTime?Jt*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(Jt){const yt="start"==Jt?this._onStartFns:this._onDoneFns;yt.forEach(At=>At()),yt.length=0}}class Dt{constructor(Jt){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=Jt;let yt=0,At=0,xt=0;const pt=this.players.length;0==pt?ct(()=>this._onFinish()):this.players.forEach(Ot=>{Ot.onDone(()=>{++yt==pt&&this._onFinish()}),Ot.onDestroy(()=>{++At==pt&&this._onDestroy()}),Ot.onStart(()=>{++xt==pt&&this._onStart()})}),this.totalTime=this.players.reduce((Ot,Bt)=>Math.max(Ot,Bt.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Jt=>Jt()),this._onDoneFns=[])}init(){this.players.forEach(Jt=>Jt.init())}onStart(Jt){this._onStartFns.push(Jt)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(Jt=>Jt()),this._onStartFns=[])}onDone(Jt){this._onDoneFns.push(Jt)}onDestroy(Jt){this._onDestroyFns.push(Jt)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(Jt=>Jt.play())}pause(){this.players.forEach(Jt=>Jt.pause())}restart(){this.players.forEach(Jt=>Jt.restart())}finish(){this._onFinish(),this.players.forEach(Jt=>Jt.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(Jt=>Jt.destroy()),this._onDestroyFns.forEach(Jt=>Jt()),this._onDestroyFns=[])}reset(){this.players.forEach(Jt=>Jt.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(Jt){const yt=Jt*this.totalTime;this.players.forEach(At=>{const xt=At.totalTime?Math.min(1,yt/At.totalTime):1;At.setPosition(xt)})}getPosition(){const Jt=this.players.reduce((yt,At)=>null===yt||At.totalTime>yt.totalTime?At:yt,null);return null!=Jt?Jt.getPosition():0}beforeDestroy(){this.players.forEach(Jt=>{Jt.beforeDestroy&&Jt.beforeDestroy()})}triggerCallback(Jt){const yt="start"==Jt?this._onStartFns:this._onDoneFns;yt.forEach(At=>At()),yt.length=0}}const wt="!"},12687:(X,j,h)=>{"use strict";h.d(j,{$s:()=>Bt,Em:()=>fe,Kd:()=>mi,X6:()=>te,ic:()=>Fe,kH:()=>Vn,mK:()=>un,qV:()=>ke,qm:()=>Ee,rt:()=>Xe,s1:()=>ve,tE:()=>Yn,yG:()=>it});var u=h(36895),p=h(94650),x=h(83353),v=h(8929),t=h(42654),T=h(591),U=h(21086),w=h(29521),P=h(22868),O=h(80013),L=h(92198),N=h(24850),V=h(72986),W=h(31307),tt=h(75778),st=h(7625),ct=h(21281),bt=h(49643),Dt=h(62289);function yt(se,ze){return(se.getAttribute(ze)||"").match(/\S+/g)||[]}const xt="cdk-describedby-message",pt="cdk-describedby-host";let Ot=0,Bt=(()=>{class se{constructor(ie,rn){this._platform=rn,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Ot++,this._document=ie,this._id=(0,p.f3M)(p.AFp)+"-"+Ot++}describe(ie,rn,fn){if(!this._canBeDescribed(ie,rn))return;const sn=St(rn,fn);"string"!=typeof rn?(ce(rn,this._id),this._messageRegistry.set(sn,{messageElement:rn,referenceCount:0})):this._messageRegistry.has(sn)||this._createMessageElement(rn,fn),this._isElementDescribedByMessage(ie,sn)||this._addMessageReference(ie,sn)}removeDescription(ie,rn,fn){if(!rn||!this._isElementNode(ie))return;const sn=St(rn,fn);if(this._isElementDescribedByMessage(ie,sn)&&this._removeMessageReference(ie,sn),"string"==typeof rn){const ge=this._messageRegistry.get(sn);ge&&0===ge.referenceCount&&this._deleteMessageElement(sn)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const ie=this._document.querySelectorAll(`[${pt}="${this._id}"]`);for(let rn=0;rn0!=fn.indexOf(xt));ie.setAttribute("aria-describedby",rn.join(" "))}_addMessageReference(ie,rn){const fn=this._messageRegistry.get(rn);(function qt(se,ze,ie){const rn=yt(se,ze);rn.some(fn=>fn.trim()==ie.trim())||(rn.push(ie.trim()),se.setAttribute(ze,rn.join(" ")))})(ie,"aria-describedby",fn.messageElement.id),ie.setAttribute(pt,this._id),fn.referenceCount++}_removeMessageReference(ie,rn){const fn=this._messageRegistry.get(rn);fn.referenceCount--,function Jt(se,ze,ie){const fn=yt(se,ze).filter(sn=>sn!=ie.trim());fn.length?se.setAttribute(ze,fn.join(" ")):se.removeAttribute(ze)}(ie,"aria-describedby",fn.messageElement.id),ie.removeAttribute(pt)}_isElementDescribedByMessage(ie,rn){const fn=yt(ie,"aria-describedby"),sn=this._messageRegistry.get(rn),ge=sn&&sn.messageElement.id;return!!ge&&-1!=fn.indexOf(ge)}_canBeDescribed(ie,rn){if(!this._isElementNode(ie))return!1;if(rn&&"object"==typeof rn)return!0;const fn=null==rn?"":`${rn}`.trim(),sn=ie.getAttribute("aria-label");return!(!fn||sn&&sn.trim()===fn)}_isElementNode(ie){return ie.nodeType===this._document.ELEMENT_NODE}}return se.\u0275fac=function(ie){return new(ie||se)(p.LFG(u.K0),p.LFG(x.t4))},se.\u0275prov=p.Yz7({token:se,factory:se.\u0275fac,providedIn:"root"}),se})();function St(se,ze){return"string"==typeof se?`${ze||""}/${se}`:se}function ce(se,ze){se.id||(se.id=`${xt}-${ze}-${Ot++}`)}class Vt{constructor(ze){this._items=ze,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new v.xQ,this._typeaheadSubscription=t.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=ie=>ie.disabled,this._pressedLetters=[],this.tabOut=new v.xQ,this.change=new v.xQ,ze instanceof p.n_E&&ze.changes.subscribe(ie=>{if(this._activeItem){const fn=ie.toArray().indexOf(this._activeItem);fn>-1&&fn!==this._activeItemIndex&&(this._activeItemIndex=fn)}})}skipPredicate(ze){return this._skipPredicateFn=ze,this}withWrap(ze=!0){return this._wrap=ze,this}withVerticalOrientation(ze=!0){return this._vertical=ze,this}withHorizontalOrientation(ze){return this._horizontal=ze,this}withAllowedModifierKeys(ze){return this._allowedModifierKeys=ze,this}withTypeAhead(ze=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,P.b)(ie=>this._pressedLetters.push(ie)),(0,O.b)(ze),(0,L.h)(()=>this._pressedLetters.length>0),(0,N.U)(()=>this._pressedLetters.join(""))).subscribe(ie=>{const rn=this._getItemsArray();for(let fn=1;fn!ze[sn]||this._allowedModifierKeys.indexOf(sn)>-1);switch(ie){case w.Mf:return void this.tabOut.next();case w.JH:if(this._vertical&&fn){this.setNextItemActive();break}return;case w.LH:if(this._vertical&&fn){this.setPreviousItemActive();break}return;case w.SV:if(this._horizontal&&fn){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case w.oh:if(this._horizontal&&fn){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case w.Sd:if(this._homeAndEnd&&fn){this.setFirstItemActive();break}return;case w.uR:if(this._homeAndEnd&&fn){this.setLastItemActive();break}return;default:return void((fn||(0,w.Vb)(ze,"shiftKey"))&&(ze.key&&1===ze.key.length?this._letterKeyStream.next(ze.key.toLocaleUpperCase()):(ie>=w.A&&ie<=w.Z||ie>=w.xE&&ie<=w.aO)&&this._letterKeyStream.next(String.fromCharCode(ie))))}this._pressedLetters=[],ze.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(ze){const ie=this._getItemsArray(),rn="number"==typeof ze?ze:ie.indexOf(ze);this._activeItem=ie[rn]??null,this._activeItemIndex=rn}_setActiveItemByDelta(ze){this._wrap?this._setActiveInWrapMode(ze):this._setActiveInDefaultMode(ze)}_setActiveInWrapMode(ze){const ie=this._getItemsArray();for(let rn=1;rn<=ie.length;rn++){const fn=(this._activeItemIndex+ze*rn+ie.length)%ie.length;if(!this._skipPredicateFn(ie[fn]))return void this.setActiveItem(fn)}}_setActiveInDefaultMode(ze){this._setActiveItemByIndex(this._activeItemIndex+ze,ze)}_setActiveItemByIndex(ze,ie){const rn=this._getItemsArray();if(rn[ze]){for(;this._skipPredicateFn(rn[ze]);)if(!rn[ze+=ie])return;this.setActiveItem(ze)}}_getItemsArray(){return this._items instanceof p.n_E?this._items.toArray():this._items}}class ve extends Vt{setActiveItem(ze){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(ze),this.activeItem&&this.activeItem.setActiveStyles()}}class fe extends Vt{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(ze){return this._origin=ze,this}setActiveItem(ze){super.setActiveItem(ze),this.activeItem&&this.activeItem.focus(this._origin)}}let Fe=(()=>{class se{constructor(ie){this._platform=ie}isDisabled(ie){return ie.hasAttribute("disabled")}isVisible(ie){return function Gt(se){return!!(se.offsetWidth||se.offsetHeight||"function"==typeof se.getClientRects&&se.getClientRects().length)}(ie)&&"visible"===getComputedStyle(ie).visibility}isTabbable(ie){if(!this._platform.isBrowser)return!1;const rn=function Ge(se){try{return se.frameElement}catch{return null}}(function xe(se){return se.ownerDocument&&se.ownerDocument.defaultView||window}(ie));if(rn&&(-1===Me(rn)||!this.isVisible(rn)))return!1;let fn=ie.nodeName.toLowerCase(),sn=Me(ie);return ie.hasAttribute("contenteditable")?-1!==sn:!("iframe"===fn||"object"===fn||this._platform.WEBKIT&&this._platform.IOS&&!function en(se){let ze=se.nodeName.toLowerCase(),ie="input"===ze&&se.type;return"text"===ie||"password"===ie||"select"===ze||"textarea"===ze}(ie))&&("audio"===fn?!!ie.hasAttribute("controls")&&-1!==sn:"video"===fn?-1!==sn&&(null!==sn||this._platform.FIREFOX||ie.hasAttribute("controls")):ie.tabIndex>=0)}isFocusable(ie,rn){return function _n(se){return!function ne(se){return function re(se){return"input"==se.nodeName.toLowerCase()}(se)&&"hidden"==se.type}(se)&&(function Te(se){let ze=se.nodeName.toLowerCase();return"input"===ze||"select"===ze||"button"===ze||"textarea"===ze}(se)||function jt(se){return function Xt(se){return"a"==se.nodeName.toLowerCase()}(se)&&se.hasAttribute("href")}(se)||se.hasAttribute("contenteditable")||oe(se))}(ie)&&!this.isDisabled(ie)&&(rn?.ignoreVisibility||this.isVisible(ie))}}return se.\u0275fac=function(ie){return new(ie||se)(p.LFG(x.t4))},se.\u0275prov=p.Yz7({token:se,factory:se.\u0275fac,providedIn:"root"}),se})();function oe(se){if(!se.hasAttribute("tabindex")||void 0===se.tabIndex)return!1;let ze=se.getAttribute("tabindex");return!(!ze||isNaN(parseInt(ze,10)))}function Me(se){if(!oe(se))return null;const ze=parseInt(se.getAttribute("tabindex")||"",10);return isNaN(ze)?-1:ze}class vn{constructor(ze,ie,rn,fn,sn=!1){this._element=ze,this._checker=ie,this._ngZone=rn,this._document=fn,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,sn||this.attachAnchors()}get enabled(){return this._enabled}set enabled(ze){this._enabled=ze,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(ze,this._startAnchor),this._toggleAnchorTabIndex(ze,this._endAnchor))}destroy(){const ze=this._startAnchor,ie=this._endAnchor;ze&&(ze.removeEventListener("focus",this.startAnchorListener),ze.remove()),ie&&(ie.removeEventListener("focus",this.endAnchorListener),ie.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(ze){return new Promise(ie=>{this._executeOnStable(()=>ie(this.focusInitialElement(ze)))})}focusFirstTabbableElementWhenReady(ze){return new Promise(ie=>{this._executeOnStable(()=>ie(this.focusFirstTabbableElement(ze)))})}focusLastTabbableElementWhenReady(ze){return new Promise(ie=>{this._executeOnStable(()=>ie(this.focusLastTabbableElement(ze)))})}_getRegionBoundary(ze){const ie=this._element.querySelectorAll(`[cdk-focus-region-${ze}], [cdkFocusRegion${ze}], [cdk-focus-${ze}]`);return"start"==ze?ie.length?ie[0]:this._getFirstTabbableElement(this._element):ie.length?ie[ie.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(ze){const ie=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(ie){if(!this._checker.isFocusable(ie)){const rn=this._getFirstTabbableElement(ie);return rn?.focus(ze),!!rn}return ie.focus(ze),!0}return this.focusFirstTabbableElement(ze)}focusFirstTabbableElement(ze){const ie=this._getRegionBoundary("start");return ie&&ie.focus(ze),!!ie}focusLastTabbableElement(ze){const ie=this._getRegionBoundary("end");return ie&&ie.focus(ze),!!ie}hasAttached(){return this._hasAttached}_getFirstTabbableElement(ze){if(this._checker.isFocusable(ze)&&this._checker.isTabbable(ze))return ze;const ie=ze.children;for(let rn=0;rn=0;rn--){const fn=ie[rn].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(ie[rn]):null;if(fn)return fn}return null}_createAnchor(){const ze=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,ze),ze.classList.add("cdk-visually-hidden"),ze.classList.add("cdk-focus-trap-anchor"),ze.setAttribute("aria-hidden","true"),ze}_toggleAnchorTabIndex(ze,ie){ze?ie.setAttribute("tabindex","0"):ie.removeAttribute("tabindex")}toggleAnchors(ze){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(ze,this._startAnchor),this._toggleAnchorTabIndex(ze,this._endAnchor))}_executeOnStable(ze){this._ngZone.isStable?ze():this._ngZone.onStable.pipe((0,V.q)(1)).subscribe(ze)}}let ke=(()=>{class se{constructor(ie,rn,fn){this._checker=ie,this._ngZone=rn,this._document=fn}create(ie,rn=!1){return new vn(ie,this._checker,this._ngZone,this._document,rn)}}return se.\u0275fac=function(ie){return new(ie||se)(p.LFG(Fe),p.LFG(p.R0b),p.LFG(u.K0))},se.\u0275prov=p.Yz7({token:se,factory:se.\u0275fac,providedIn:"root"}),se})(),un=(()=>{class se{constructor(ie,rn,fn){this._elementRef=ie,this._focusTrapFactory=rn,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(ie){this.focusTrap.enabled=(0,ct.Ig)(ie)}get autoCapture(){return this._autoCapture}set autoCapture(ie){this._autoCapture=(0,ct.Ig)(ie)}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(ie){const rn=ie.autoCapture;rn&&!rn.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,x.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return se.\u0275fac=function(ie){return new(ie||se)(p.Y36(p.SBq),p.Y36(ke),p.Y36(u.K0))},se.\u0275dir=p.lG2({type:se,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[p.TTD]}),se})();function te(se){return 0===se.buttons||0===se.offsetX&&0===se.offsetY}function it(se){const ze=se.touches&&se.touches[0]||se.changedTouches&&se.changedTouches[0];return!(!ze||-1!==ze.identifier||null!=ze.radiusX&&1!==ze.radiusX||null!=ze.radiusY&&1!==ze.radiusY)}const K=new p.OlP("cdk-input-modality-detector-options"),Tt={ignoreKeys:[w.zL,w.jx,w.b2,w.MW,w.JU]},le=(0,x.i$)({passive:!0,capture:!0});let be=(()=>{class se{constructor(ie,rn,fn,sn){this._platform=ie,this._mostRecentTarget=null,this._modality=new T.X(null),this._lastTouchMs=0,this._onKeydown=ge=>{this._options?.ignoreKeys?.some(Nt=>Nt===ge.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,x.sA)(ge))},this._onMousedown=ge=>{Date.now()-this._lastTouchMs<650||(this._modality.next(te(ge)?"keyboard":"mouse"),this._mostRecentTarget=(0,x.sA)(ge))},this._onTouchstart=ge=>{it(ge)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,x.sA)(ge))},this._options={...Tt,...sn},this.modalityDetected=this._modality.pipe((0,W.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,tt.x)()),ie.isBrowser&&rn.runOutsideAngular(()=>{fn.addEventListener("keydown",this._onKeydown,le),fn.addEventListener("mousedown",this._onMousedown,le),fn.addEventListener("touchstart",this._onTouchstart,le)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,le),document.removeEventListener("mousedown",this._onMousedown,le),document.removeEventListener("touchstart",this._onTouchstart,le))}}return se.\u0275fac=function(ie){return new(ie||se)(p.LFG(x.t4),p.LFG(p.R0b),p.LFG(u.K0),p.LFG(K,8))},se.\u0275prov=p.Yz7({token:se,factory:se.\u0275fac,providedIn:"root"}),se})();const De=new p.OlP("liveAnnouncerElement",{providedIn:"root",factory:function hn(){return null}}),qn=new p.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let mi=(()=>{class se{constructor(ie,rn,fn,sn){this._ngZone=rn,this._defaultOptions=sn,this._document=fn,this._liveElement=ie||this._createLiveElement()}announce(ie,...rn){const fn=this._defaultOptions;let sn,ge;return 1===rn.length&&"number"==typeof rn[0]?ge=rn[0]:[sn,ge]=rn,this.clear(),clearTimeout(this._previousTimeout),sn||(sn=fn&&fn.politeness?fn.politeness:"polite"),null==ge&&fn&&(ge=fn.duration),this._liveElement.setAttribute("aria-live",sn),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(Nt=>this._currentResolve=Nt)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=ie,"number"==typeof ge&&(this._previousTimeout=setTimeout(()=>this.clear(),ge)),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 ie="cdk-live-announcer-element",rn=this._document.getElementsByClassName(ie),fn=this._document.createElement("div");for(let sn=0;sn{class se{constructor(ie,rn,fn,sn,ge){this._ngZone=ie,this._platform=rn,this._inputModalityDetector=fn,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 v.xQ,this._rootNodeFocusAndBlurListener=Nt=>{for(let zt=(0,x.sA)(Nt);zt;zt=zt.parentElement)"focus"===Nt.type?this._onFocus(Nt,zt):this._onBlur(Nt,zt)},this._document=sn,this._detectionMode=ge?.detectionMode||0}monitor(ie,rn=!1){const fn=(0,ct.fI)(ie);if(!this._platform.isBrowser||1!==fn.nodeType)return(0,U.of)(null);const sn=(0,x.kV)(fn)||this._getDocument(),ge=this._elementInfo.get(fn);if(ge)return rn&&(ge.checkChildren=!0),ge.subject;const Nt={checkChildren:rn,subject:new v.xQ,rootNode:sn};return this._elementInfo.set(fn,Nt),this._registerGlobalListeners(Nt),Nt.subject}stopMonitoring(ie){const rn=(0,ct.fI)(ie),fn=this._elementInfo.get(rn);fn&&(fn.subject.complete(),this._setClasses(rn),this._elementInfo.delete(rn),this._removeGlobalListeners(fn))}focusVia(ie,rn,fn){const sn=(0,ct.fI)(ie);sn===this._getDocument().activeElement?this._getClosestElementsInfo(sn).forEach(([Nt,Se])=>this._originChanged(Nt,rn,Se)):(this._setOrigin(rn),"function"==typeof sn.focus&&sn.focus(fn))}ngOnDestroy(){this._elementInfo.forEach((ie,rn)=>this.stopMonitoring(rn))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(ie){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(ie)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:ie&&this._isLastInteractionFromInputLabel(ie)?"mouse":"program"}_shouldBeAttributedToTouch(ie){return 1===this._detectionMode||!!ie?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(ie,rn){ie.classList.toggle("cdk-focused",!!rn),ie.classList.toggle("cdk-touch-focused","touch"===rn),ie.classList.toggle("cdk-keyboard-focused","keyboard"===rn),ie.classList.toggle("cdk-mouse-focused","mouse"===rn),ie.classList.toggle("cdk-program-focused","program"===rn)}_setOrigin(ie,rn=!1){this._ngZone.runOutsideAngular(()=>{this._origin=ie,this._originFromTouchInteraction="touch"===ie&&rn,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(ie,rn){const fn=this._elementInfo.get(rn),sn=(0,x.sA)(ie);!fn||!fn.checkChildren&&rn!==sn||this._originChanged(rn,this._getFocusOrigin(sn),fn)}_onBlur(ie,rn){const fn=this._elementInfo.get(rn);!fn||fn.checkChildren&&ie.relatedTarget instanceof Node&&rn.contains(ie.relatedTarget)||(this._setClasses(rn),this._emitOrigin(fn,null))}_emitOrigin(ie,rn){ie.subject.observers.length&&this._ngZone.run(()=>ie.subject.next(rn))}_registerGlobalListeners(ie){if(!this._platform.isBrowser)return;const rn=ie.rootNode,fn=this._rootNodeFocusListenerCount.get(rn)||0;fn||this._ngZone.runOutsideAngular(()=>{rn.addEventListener("focus",this._rootNodeFocusAndBlurListener,hi),rn.addEventListener("blur",this._rootNodeFocusAndBlurListener,hi)}),this._rootNodeFocusListenerCount.set(rn,fn+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,st.R)(this._stopInputModalityDetector)).subscribe(sn=>{this._setOrigin(sn,!0)}))}_removeGlobalListeners(ie){const rn=ie.rootNode;if(this._rootNodeFocusListenerCount.has(rn)){const fn=this._rootNodeFocusListenerCount.get(rn);fn>1?this._rootNodeFocusListenerCount.set(rn,fn-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(ie,rn,fn){this._setClasses(ie,rn),this._emitOrigin(fn,rn),this._lastFocusOrigin=rn}_getClosestElementsInfo(ie){const rn=[];return this._elementInfo.forEach((fn,sn)=>{(sn===ie||fn.checkChildren&&sn.contains(ie))&&rn.push([sn,fn])}),rn}_isLastInteractionFromInputLabel(ie){const{_mostRecentTarget:rn,mostRecentModality:fn}=this._inputModalityDetector;if("mouse"!==fn||!rn||rn===ie||"INPUT"!==ie.nodeName&&"TEXTAREA"!==ie.nodeName||ie.disabled)return!1;const sn=ie.labels;if(sn)for(let ge=0;ge{class se{constructor(ie,rn){this._elementRef=ie,this._focusMonitor=rn,this._focusOrigin=null,this.cdkFocusChange=new p.vpe}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const ie=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(ie,1===ie.nodeType&&ie.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(rn=>{this._focusOrigin=rn,this.cdkFocusChange.emit(rn)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return se.\u0275fac=function(ie){return new(ie||se)(p.Y36(p.SBq),p.Y36(Yn))},se.\u0275dir=p.lG2({type:se,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),se})();const Je="cdk-high-contrast-black-on-white",gn="cdk-high-contrast-white-on-black",Ye="cdk-high-contrast-active";let Ee=(()=>{class se{constructor(ie,rn){this._platform=ie,this._document=rn,this._breakpointSubscription=(0,p.f3M)(Dt.Yg).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const ie=this._document.createElement("div");ie.style.backgroundColor="rgb(1,2,3)",ie.style.position="absolute",this._document.body.appendChild(ie);const rn=this._document.defaultView||window,fn=rn&&rn.getComputedStyle?rn.getComputedStyle(ie):null,sn=(fn&&fn.backgroundColor||"").replace(/ /g,"");switch(ie.remove(),sn){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 ie=this._document.body.classList;ie.remove(Ye,Je,gn),this._hasCheckedHighContrastMode=!0;const rn=this.getHighContrastMode();1===rn?ie.add(Ye,Je):2===rn&&ie.add(Ye,gn)}}}return se.\u0275fac=function(ie){return new(ie||se)(p.LFG(x.t4),p.LFG(u.K0))},se.\u0275prov=p.Yz7({token:se,factory:se.\u0275fac,providedIn:"root"}),se})(),Xe=(()=>{class se{constructor(ie){ie._applyBodyHighContrastModeCssClasses()}}return se.\u0275fac=function(ie){return new(ie||se)(p.LFG(Ee))},se.\u0275mod=p.oAB({type:se}),se.\u0275inj=p.cJS({imports:[bt.Q8]}),se})()},40445:(X,j,h)=>{"use strict";h.d(j,{Is:()=>U,vT:()=>P});var u=h(94650),p=h(36895);const x=new u.OlP("cdk-dir-doc",{providedIn:"root",factory:function v(){return(0,u.f3M)(p.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 W=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)||W||"ltr")}}ngOnDestroy(){this.change.complete()}}return O.\u0275fac=function(N){return new(N||O)(u.LFG(x,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:(X,j,h)=>{"use strict";h.d(j,{TU:()=>v});var u=h(36895),p=h(94650);class x{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 v=(()=>{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 x(O,this._document)}}return w.\u0275fac=function(O){return new(O||w)(p.LFG(u.K0))},w.\u0275prov=p.Yz7({token:w,factory:w.\u0275fac,providedIn:"root"}),w})()},21281:(X,j,h)=>{"use strict";h.d(j,{Eq:()=>t,HM:()=>T,Ig:()=>p,du:()=>w,fI:()=>U,su:()=>x,t6:()=>v});var u=h(94650);function p(P){return null!=P&&"false"!=`${P}`}function x(P,O=0){return v(P)?Number(P):O}function v(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 V of N){const W=`${V}`.trim();W&&L.push(W)}}return L}},95017:(X,j,h)=>{"use strict";h.d(j,{A8:()=>L,Ov:()=>P,Z9:()=>t,eX:()=>w,k:()=>N,o2:()=>v,yy:()=>U});var u=h(71762),p=h(8929),x=h(94650);class v{}function t(V){return V&&"function"==typeof V.connect&&!(V instanceof u.c)}class U{applyChanges(W,tt,st,ct,bt){W.forEachOperation((Dt,wt,qt)=>{let Jt,yt;if(null==Dt.previousIndex){const At=st(Dt,wt,qt);Jt=tt.createEmbeddedView(At.templateRef,At.context,At.index),yt=1}else null==qt?(tt.remove(wt),yt=3):(Jt=tt.get(wt),tt.move(Jt,qt),yt=2);bt&&bt({context:Jt?.context,operation:yt,record:Dt})})}detach(){}}class w{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(W,tt,st,ct,bt){W.forEachOperation((Dt,wt,qt)=>{let Jt,yt;null==Dt.previousIndex?(Jt=this._insertView(()=>st(Dt,wt,qt),qt,tt,ct(Dt)),yt=Jt?1:0):null==qt?(this._detachAndCacheView(wt,tt),yt=3):(Jt=this._moveView(wt,qt,tt,ct(Dt)),yt=2),bt&&bt({context:Jt?.context,operation:yt,record:Dt})})}detach(){for(const W of this._viewCache)W.destroy();this._viewCache=[]}_insertView(W,tt,st,ct){const bt=this._insertViewFromCache(tt,st);if(bt)return void(bt.context.$implicit=ct);const Dt=W();return st.createEmbeddedView(Dt.templateRef,Dt.context,Dt.index)}_detachAndCacheView(W,tt){const st=tt.detach(W);this._maybeCacheView(st,tt)}_moveView(W,tt,st,ct){const bt=st.get(W);return st.move(bt,tt),bt.context.$implicit=ct,bt}_maybeCacheView(W,tt){if(this._viewCache.lengththis._markSelected(bt)):this._markSelected(tt[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...W){this._verifyValueAssignment(W),W.forEach(st=>this._markSelected(st));const tt=this._hasQueuedChanges();return this._emitChangeEvent(),tt}deselect(...W){this._verifyValueAssignment(W),W.forEach(st=>this._unmarkSelected(st));const tt=this._hasQueuedChanges();return this._emitChangeEvent(),tt}setSelection(...W){this._verifyValueAssignment(W);const tt=this.selected,st=new Set(W);W.forEach(bt=>this._markSelected(bt)),tt.filter(bt=>!st.has(bt)).forEach(bt=>this._unmarkSelected(bt));const ct=this._hasQueuedChanges();return this._emitChangeEvent(),ct}toggle(W){return this.isSelected(W)?this.deselect(W):this.select(W)}clear(W=!0){this._unmarkAll();const tt=this._hasQueuedChanges();return W&&this._emitChangeEvent(),tt}isSelected(W){if(this.compareWith){for(const tt of this._selection)if(this.compareWith(tt,W))return!0;return!1}return this._selection.has(W)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(W){this._multiple&&this.selected&&this._selected.sort(W)}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(W){this.isSelected(W)||(this._multiple||this._unmarkAll(),this.isSelected(W)||this._selection.add(W),this._emitChanges&&this._selectedToEmit.push(W))}_unmarkSelected(W){this.isSelected(W)&&(this._selection.delete(W),this._emitChanges&&this._deselectedToEmit.push(W))}_unmarkAll(){this.isEmpty()||this._selection.forEach(W=>this._unmarkSelected(W))}_verifyValueAssignment(W){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}}let L=(()=>{class V{constructor(){this._listeners=[]}notify(tt,st){for(let ct of this._listeners)ct(tt,st)}listen(tt){return this._listeners.push(tt),()=>{this._listeners=this._listeners.filter(st=>tt!==st)}}ngOnDestroy(){this._listeners=[]}}return V.\u0275fac=function(tt){return new(tt||V)},V.\u0275prov=x.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})();const N=new x.OlP("_ViewRepeater")},53977:(X,j,h)=>{"use strict";h.d(j,{Zt:()=>rn,Wj:()=>Je,_t:()=>fn,bA:()=>un});var u=h(94650),p=h(36895),x=h(67376),v=h(83353),t=h(21281),T=h(12687),U=h(8929),w=h(42654),P=h(56498),O=h(20353),L=h(84241);function V(sn){const{subscriber:ge,counter:Nt,period:Se}=sn;ge.next(Nt),this.schedule({subscriber:ge,counter:Nt+1,period:Se},Se)}var W=h(90352),tt=h(36787),st=h(7625),ct=h(1059),bt=h(24850),Dt=h(72986),wt=h(22868),qt=h(87545),Jt=h(40445);function yt(sn,ge,Nt){for(let Se in ge)if(ge.hasOwnProperty(Se)){const zt=ge[Se];zt?sn.setProperty(Se,zt,Nt?.has(Se)?"important":""):sn.removeProperty(Se)}return sn}function At(sn,ge){const Nt=ge?"":"none";yt(sn.style,{"touch-action":ge?"":"none","-webkit-user-drag":ge?"":"none","-webkit-tap-highlight-color":ge?"":"transparent","user-select":Nt,"-ms-user-select":Nt,"-webkit-user-select":Nt,"-moz-user-select":Nt})}function xt(sn,ge,Nt){yt(sn.style,{position:ge?"":"fixed",top:ge?"":"0",opacity:ge?"":"0",left:ge?"":"-999em"},Nt)}function pt(sn,ge){return ge&&"none"!=ge?sn+" "+ge:sn}function Ot(sn){const ge=sn.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(sn)*ge}function St(sn,ge){return sn.getPropertyValue(ge).split(",").map(Se=>Se.trim())}function ce(sn){const ge=sn.getBoundingClientRect();return{top:ge.top,right:ge.right,bottom:ge.bottom,left:ge.left,width:ge.width,height:ge.height,x:ge.x,y:ge.y}}function Vt(sn,ge,Nt){const{top:Se,bottom:zt,left:Ae,right:Ie}=sn;return Nt>=Se&&Nt<=zt&&ge>=Ae&&ge<=Ie}function ve(sn,ge,Nt){sn.top+=ge,sn.bottom=sn.top+sn.height,sn.left+=Nt,sn.right=sn.left+sn.width}function fe(sn,ge,Nt,Se){const{top:zt,right:Ae,bottom:Ie,left:Sn,width:Ei,height:Vi}=sn,cn=Ei*ge,pn=Vi*ge;return Se>zt-pn&&SeSn-cn&&Nt{this.positions.set(Nt,{scrollPosition:{top:Nt.scrollTop,left:Nt.scrollLeft},clientRect:ce(Nt)})})}handleScroll(ge){const Nt=(0,v.sA)(ge),Se=this.positions.get(Nt);if(!Se)return null;const zt=Se.scrollPosition;let Ae,Ie;if(Nt===this._document){const Vi=this.getViewportScrollPosition();Ae=Vi.top,Ie=Vi.left}else Ae=Nt.scrollTop,Ie=Nt.scrollLeft;const Sn=zt.top-Ae,Ei=zt.left-Ie;return this.positions.forEach((Vi,cn)=>{Vi.clientRect&&Nt!==cn&&Nt.contains(cn)&&ve(Vi.clientRect,Sn,Ei)}),zt.top=Ae,zt.left=Ie,{top:Sn,left:Ei}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function Fe(sn){const ge=sn.cloneNode(!0),Nt=ge.querySelectorAll("[id]"),Se=sn.nodeName.toLowerCase();ge.removeAttribute("id");for(let zt=0;zt{if(this.beforeStarted.next(),this._handles.length){const Ei=this._getTargetHandle(Sn);Ei&&!this._disabledHandles.has(Ei)&&!this.disabled&&this._initializeDragSequence(Ei,Sn)}else this.disabled||this._initializeDragSequence(this._rootElement,Sn)},this._pointerMove=Sn=>{const Ei=this._getPointerPositionOnPage(Sn);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(Sn),bi=this._dropContainer;if(!ai)return void this._endDragSequence(Sn);(!bi||!bi.isDragging()&&!bi.isReceiving())&&(Sn.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(Sn)))}return}Sn.preventDefault();const Vi=this._getConstrainedPointerPosition(Ei);if(this._hasMoved=!0,this._lastKnownPointerPosition=Ei,this._updatePointerDirectionDelta(Vi),this._dropContainer)this._updateActiveDropContainer(Vi,Ei);else{const cn=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,pn=this._activeTransform;pn.x=Vi.x-cn.x+this._passiveTransform.x,pn.y=Vi.y-cn.y+this._passiveTransform.y,this._applyRootElementTransform(pn.x,pn.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:Vi,event:Sn,distance:this._getDragDistance(Vi),delta:this._pointerDirectionDelta})})},this._pointerUp=Sn=>{this._endDragSequence(Sn)},this._nativeDragStart=Sn=>{if(this._handles.length){const Ei=this._getTargetHandle(Sn);Ei&&!this._disabledHandles.has(Ei)&&!this.disabled&&Sn.preventDefault()}else this.disabled||Sn.preventDefault()},this.withRootElement(ge).withParent(Nt.parentDragRef||null),this._parentPositions=new Le(Se),Ie.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(ge){const Nt=(0,t.Ig)(ge);Nt!==this._disabled&&(this._disabled=Nt,this._toggleNativeDragInteractions(),this._handles.forEach(Se=>At(Se,Nt)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(ge){this._handles=ge.map(Se=>(0,t.fI)(Se)),this._handles.forEach(Se=>At(Se,this.disabled)),this._toggleNativeDragInteractions();const Nt=new Set;return this._disabledHandles.forEach(Se=>{this._handles.indexOf(Se)>-1&&Nt.add(Se)}),this._disabledHandles=Nt,this}withPreviewTemplate(ge){return this._previewTemplate=ge,this}withPlaceholderTemplate(ge){return this._placeholderTemplate=ge,this}withRootElement(ge){const Nt=(0,t.fI)(ge);return Nt!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{Nt.addEventListener("mousedown",this._pointerDown,re),Nt.addEventListener("touchstart",this._pointerDown,jt),Nt.addEventListener("dragstart",this._nativeDragStart,re)}),this._initialTransform=void 0,this._rootElement=Nt),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(ge){return this._boundaryElement=ge?(0,t.fI)(ge):null,this._resizeSubscription.unsubscribe(),ge&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(ge){return this._parentDragRef=ge,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(ge){!this._disabledHandles.has(ge)&&this._handles.indexOf(ge)>-1&&(this._disabledHandles.add(ge),At(ge,!0))}enableHandle(ge){this._disabledHandles.has(ge)&&(this._disabledHandles.delete(ge),At(ge,this.disabled))}withDirection(ge){return this._direction=ge,this}_withDropContainer(ge){this._dropContainer=ge}getFreeDragPosition(){const ge=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:ge.x,y:ge.y}}setFreeDragPosition(ge){return this._activeTransform={x:0,y:0},this._passiveTransform.x=ge.x,this._passiveTransform.y=ge.y,this._dropContainer||this._applyRootElementTransform(ge.x,ge.y),this}withPreviewContainer(ge){return this._previewContainer=ge,this}_sortFromLastPointerPosition(){const ge=this._lastKnownPointerPosition;ge&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(ge),ge)}_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(ge){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:ge}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(ge),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const Nt=this._getPointerPositionOnPage(ge);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(Nt),dropPoint:Nt,event:ge})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(ge){xe(ge)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const Nt=this._dropContainer;if(Nt){const Se=this._rootElement,zt=Se.parentNode,Ae=this._placeholder=this._createPlaceholderElement(),Ie=this._anchor=this._anchor||this._document.createComment(""),Sn=this._getShadowRoot();zt.insertBefore(Ie,Se),this._initialTransform=Se.style.transform||"",this._preview=this._createPreviewElement(),xt(Se,!1,oe),this._document.body.appendChild(zt.replaceChild(Ae,Se)),this._getPreviewInsertionPoint(zt,Sn).appendChild(this._preview),this.started.next({source:this,event:ge}),Nt.start(),this._initialContainer=Nt,this._initialIndex=Nt.getItemIndex(this)}else this.started.next({source:this,event:ge}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(Nt?Nt.getScrollableParents():[])}_initializeDragSequence(ge,Nt){this._parentDragRef&&Nt.stopPropagation();const Se=this.isDragging(),zt=xe(Nt),Ae=!zt&&0!==Nt.button,Ie=this._rootElement,Sn=(0,v.sA)(Nt),Ei=!zt&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),Vi=zt?(0,T.yG)(Nt):(0,T.X6)(Nt);if(Sn&&Sn.draggable&&"mousedown"===Nt.type&&Nt.preventDefault(),Se||Ae||Ei||Vi)return;if(this._handles.length){const We=Ie.style;this._rootElementTapHighlight=We.webkitTapHighlightColor||"",We.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(We=>this._updateOnScroll(We)),this._boundaryElement&&(this._boundaryRect=ce(this._boundaryElement));const cn=this._previewTemplate;this._pickupPositionInElement=cn&&cn.template&&!cn.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,ge,Nt);const pn=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(Nt);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:pn.x,y:pn.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,Nt)}_cleanupDragArtifacts(ge){xt(this._rootElement,!0,oe),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 Nt=this._dropContainer,Se=Nt.getItemIndex(this),zt=this._getPointerPositionOnPage(ge),Ae=this._getDragDistance(zt),Ie=Nt._isOverContainer(zt.x,zt.y);this.ended.next({source:this,distance:Ae,dropPoint:zt,event:ge}),this.dropped.next({item:this,currentIndex:Se,previousIndex:this._initialIndex,container:Nt,previousContainer:this._initialContainer,isPointerOverContainer:Ie,distance:Ae,dropPoint:zt,event:ge}),Nt.drop(this,Se,this._initialIndex,this._initialContainer,Ie,Ae,zt,ge),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:ge,y:Nt},{x:Se,y:zt}){let Ae=this._initialContainer._getSiblingContainerFromPosition(this,ge,Nt);!Ae&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(ge,Nt)&&(Ae=this._initialContainer),Ae&&Ae!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=Ae,this._dropContainer.enter(this,ge,Nt,Ae===this._initialContainer&&Ae.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:Ae,currentIndex:Ae.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(Se,zt),this._dropContainer._sortItem(this,ge,Nt,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(ge,Nt):this._applyPreviewTransform(ge-this._pickupPositionInElement.x,Nt-this._pickupPositionInElement.y))}_createPreviewElement(){const ge=this._previewTemplate,Nt=this.previewClass,Se=ge?ge.template:null;let zt;if(Se&&ge){const Ae=ge.matchSize?this._initialClientRect:null,Ie=ge.viewContainer.createEmbeddedView(Se,ge.context);Ie.detectChanges(),zt=vn(Ie,this._document),this._previewRef=Ie,ge.matchSize?ke(zt,Ae):zt.style.transform=en(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else zt=Fe(this._rootElement),ke(zt,this._initialClientRect),this._initialTransform&&(zt.style.transform=this._initialTransform);return yt(zt.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},oe),At(zt,!1),zt.classList.add("cdk-drag-preview"),zt.setAttribute("dir",this._direction),Nt&&(Array.isArray(Nt)?Nt.forEach(Ae=>zt.classList.add(Ae)):zt.classList.add(Nt)),zt}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const ge=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(ge.left,ge.top);const Nt=function Bt(sn){const ge=getComputedStyle(sn),Nt=St(ge,"transition-property"),Se=Nt.find(Sn=>"transform"===Sn||"all"===Sn);if(!Se)return 0;const zt=Nt.indexOf(Se),Ae=St(ge,"transition-duration"),Ie=St(ge,"transition-delay");return Ot(Ae[zt])+Ot(Ie[zt])}(this._preview);return 0===Nt?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(Se=>{const zt=Ie=>{(!Ie||(0,v.sA)(Ie)===this._preview&&"transform"===Ie.propertyName)&&(this._preview?.removeEventListener("transitionend",zt),Se(),clearTimeout(Ae))},Ae=setTimeout(zt,1.5*Nt);this._preview.addEventListener("transitionend",zt)}))}_createPlaceholderElement(){const ge=this._placeholderTemplate,Nt=ge?ge.template:null;let Se;return Nt?(this._placeholderRef=ge.viewContainer.createEmbeddedView(Nt,ge.context),this._placeholderRef.detectChanges(),Se=vn(this._placeholderRef,this._document)):Se=Fe(this._rootElement),Se.style.pointerEvents="none",Se.classList.add("cdk-drag-placeholder"),Se}_getPointerPositionInElement(ge,Nt,Se){const zt=Nt===this._rootElement?null:Nt,Ae=zt?zt.getBoundingClientRect():ge,Ie=xe(Se)?Se.targetTouches[0]:Se,Sn=this._getViewportScrollPosition();return{x:Ae.left-ge.left+(Ie.pageX-Ae.left-Sn.left),y:Ae.top-ge.top+(Ie.pageY-Ae.top-Sn.top)}}_getPointerPositionOnPage(ge){const Nt=this._getViewportScrollPosition(),Se=xe(ge)?ge.touches[0]||ge.changedTouches[0]||{pageX:0,pageY:0}:ge,zt=Se.pageX-Nt.left,Ae=Se.pageY-Nt.top;if(this._ownerSVGElement){const Ie=this._ownerSVGElement.getScreenCTM();if(Ie){const Sn=this._ownerSVGElement.createSVGPoint();return Sn.x=zt,Sn.y=Ae,Sn.matrixTransform(Ie.inverse())}}return{x:zt,y:Ae}}_getConstrainedPointerPosition(ge){const Nt=this._dropContainer?this._dropContainer.lockAxis:null;let{x:Se,y:zt}=this.constrainPosition?this.constrainPosition(ge,this,this._initialClientRect,this._pickupPositionInElement):ge;if("x"===this.lockAxis||"x"===Nt?zt=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===Nt)&&(Se=this._pickupPositionOnPage.x),this._boundaryRect){const{x:Ae,y:Ie}=this._pickupPositionInElement,Sn=this._boundaryRect,{width:Ei,height:Vi}=this._getPreviewRect(),cn=Sn.top+Ie,pn=Sn.bottom-(Vi-Ie);Se=_n(Se,Sn.left+Ae,Sn.right-(Ei-Ae)),zt=_n(zt,cn,pn)}return{x:Se,y:zt}}_updatePointerDirectionDelta(ge){const{x:Nt,y:Se}=ge,zt=this._pointerDirectionDelta,Ae=this._pointerPositionAtLastDirectionChange,Ie=Math.abs(Nt-Ae.x),Sn=Math.abs(Se-Ae.y);return Ie>this._config.pointerDirectionChangeThreshold&&(zt.x=Nt>Ae.x?1:-1,Ae.x=Nt),Sn>this._config.pointerDirectionChangeThreshold&&(zt.y=Se>Ae.y?1:-1,Ae.y=Se),zt}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const ge=this._handles.length>0||!this.isDragging();ge!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=ge,At(this._rootElement,ge))}_removeRootElementListeners(ge){ge.removeEventListener("mousedown",this._pointerDown,re),ge.removeEventListener("touchstart",this._pointerDown,jt),ge.removeEventListener("dragstart",this._nativeDragStart,re)}_applyRootElementTransform(ge,Nt){const Se=en(ge,Nt),zt=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=zt.transform&&"none"!=zt.transform?zt.transform:""),zt.transform=pt(Se,this._initialTransform)}_applyPreviewTransform(ge,Nt){const Se=this._previewTemplate?.template?void 0:this._initialTransform,zt=en(ge,Nt);this._preview.style.transform=pt(zt,Se)}_getDragDistance(ge){const Nt=this._pickupPositionOnPage;return Nt?{x:ge.x-Nt.x,y:ge.y-Nt.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:ge,y:Nt}=this._passiveTransform;if(0===ge&&0===Nt||this.isDragging()||!this._boundaryElement)return;const Se=this._rootElement.getBoundingClientRect(),zt=this._boundaryElement.getBoundingClientRect();if(0===zt.width&&0===zt.height||0===Se.width&&0===Se.height)return;const Ae=zt.left-Se.left,Ie=Se.right-zt.right,Sn=zt.top-Se.top,Ei=Se.bottom-zt.bottom;zt.width>Se.width?(Ae>0&&(ge+=Ae),Ie>0&&(ge-=Ie)):ge=0,zt.height>Se.height?(Sn>0&&(Nt+=Sn),Ei>0&&(Nt-=Ei)):Nt=0,(ge!==this._passiveTransform.x||Nt!==this._passiveTransform.y)&&this.setFreeDragPosition({y:Nt,x:ge})}_getDragStartDelay(ge){const Nt=this.dragStartDelay;return"number"==typeof Nt?Nt:xe(ge)?Nt.touch:Nt?Nt.mouse:0}_updateOnScroll(ge){const Nt=this._parentPositions.handleScroll(ge);if(Nt){const Se=(0,v.sA)(ge);this._boundaryRect&&Se!==this._boundaryElement&&Se.contains(this._boundaryElement)&&ve(this._boundaryRect,Nt.top,Nt.left),this._pickupPositionOnPage.x+=Nt.left,this._pickupPositionOnPage.y+=Nt.top,this._dropContainer||(this._activeTransform.x-=Nt.left,this._activeTransform.y-=Nt.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,v.kV)(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(ge,Nt){const Se=this._previewContainer||"global";if("parent"===Se)return ge;if("global"===Se){const zt=this._document;return Nt||zt.fullscreenElement||zt.webkitFullscreenElement||zt.mozFullScreenElement||zt.msFullscreenElement||zt.body}return(0,t.fI)(Se)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(ge){return this._handles.find(Nt=>ge.target&&(ge.target===Nt||Nt.contains(ge.target)))}}function en(sn,ge){return`translate3d(${Math.round(sn)}px, ${Math.round(ge)}px, 0)`}function _n(sn,ge,Nt){return Math.max(ge,Math.min(Nt,sn))}function xe(sn){return"t"===sn.type[0]}function vn(sn,ge){const Nt=sn.rootNodes;if(1===Nt.length&&Nt[0].nodeType===ge.ELEMENT_NODE)return Nt[0];const Se=ge.createElement("div");return Nt.forEach(zt=>Se.appendChild(zt)),Se}function ke(sn,ge){sn.style.width=`${ge.width}px`,sn.style.height=`${ge.height}px`,sn.style.transform=en(ge.left,ge.top)}function un(sn,ge,Nt){const Se=_i(ge,sn.length-1),zt=_i(Nt,sn.length-1);if(Se===zt)return;const Ae=sn[Se],Ie=zt0)return null;const Sn="horizontal"===this.orientation,Ei=Ae.findIndex(To=>To.drag===ge),Vi=Ae[Ie],pn=Vi.clientRect,We=Ei>Ie?1:-1,ai=this._getItemOffsetPx(Ae[Ei].clientRect,pn,We),bi=this._getSiblingOffsetPx(Ei,Ae,We),so=Ae.slice();return un(Ae,Ei,Ie),Ae.forEach((To,Lo)=>{if(so[Lo]===To)return;const ha=To.drag===ge,Aa=ha?ai:bi,Ne=ha?ge.getPlaceholderElement():To.drag.getRootElement();To.offset+=Aa,Sn?(Ne.style.transform=pt(`translate3d(${Math.round(To.offset)}px, 0, 0)`,To.initialTransform),ve(To.clientRect,0,Aa)):(Ne.style.transform=pt(`translate3d(0, ${Math.round(To.offset)}px, 0)`,To.initialTransform),ve(To.clientRect,Aa,0))}),this._previousSwap.overlaps=Vt(pn,Nt,Se),this._previousSwap.drag=Vi.drag,this._previousSwap.delta=Sn?zt.x:zt.y,{previousIndex:Ei,currentIndex:Ie}}enter(ge,Nt,Se,zt){const Ae=null==zt||zt<0?this._getItemIndexFromPointerPosition(ge,Nt,Se):zt,Ie=this._activeDraggables,Sn=Ie.indexOf(ge),Ei=ge.getPlaceholderElement();let Vi=Ie[Ae];if(Vi===ge&&(Vi=Ie[Ae+1]),!Vi&&(null==Ae||-1===Ae||Ae-1&&Ie.splice(Sn,1),Vi&&!this._dragDropRegistry.isDragging(Vi)){const cn=Vi.getRootElement();cn.parentElement.insertBefore(Ei,cn),Ie.splice(Ae,0,ge)}else(0,t.fI)(this._element).appendChild(Ei),Ie.push(ge);Ei.style.transform="",this._cacheItemPositions()}withItems(ge){this._activeDraggables=ge.slice(),this._cacheItemPositions()}withSortPredicate(ge){this._sortPredicate=ge}reset(){this._activeDraggables.forEach(ge=>{const Nt=ge.getRootElement();if(Nt){const Se=this._itemPositions.find(zt=>zt.drag===ge)?.initialTransform;Nt.style.transform=Se||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(ge){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(Se=>Se.drag===ge)}updateOnScroll(ge,Nt){this._itemPositions.forEach(({clientRect:Se})=>{ve(Se,ge,Nt)}),this._itemPositions.forEach(({drag:Se})=>{this._dragDropRegistry.isDragging(Se)&&Se._sortFromLastPointerPosition()})}_cacheItemPositions(){const ge="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(Nt=>{const Se=Nt.getVisibleElement();return{drag:Nt,offset:0,initialTransform:Se.style.transform||"",clientRect:ce(Se)}}).sort((Nt,Se)=>ge?Nt.clientRect.left-Se.clientRect.left:Nt.clientRect.top-Se.clientRect.top)}_getItemOffsetPx(ge,Nt,Se){const zt="horizontal"===this.orientation;let Ae=zt?Nt.left-ge.left:Nt.top-ge.top;return-1===Se&&(Ae+=zt?Nt.width-ge.width:Nt.height-ge.height),Ae}_getSiblingOffsetPx(ge,Nt,Se){const zt="horizontal"===this.orientation,Ae=Nt[ge].clientRect,Ie=Nt[ge+-1*Se];let Sn=Ae[zt?"width":"height"]*Se;if(Ie){const Ei=zt?"left":"top",Vi=zt?"right":"bottom";-1===Se?Sn-=Ie.clientRect[Ei]-Ae[Vi]:Sn+=Ae[Ei]-Ie.clientRect[Vi]}return Sn}_shouldEnterAsFirstChild(ge,Nt){if(!this._activeDraggables.length)return!1;const Se=this._itemPositions,zt="horizontal"===this.orientation;if(Se[0].drag!==this._activeDraggables[0]){const Ie=Se[Se.length-1].clientRect;return zt?ge>=Ie.right:Nt>=Ie.bottom}{const Ie=Se[0].clientRect;return zt?ge<=Ie.left:Nt<=Ie.top}}_getItemIndexFromPointerPosition(ge,Nt,Se,zt){const Ae="horizontal"===this.orientation,Ie=this._itemPositions.findIndex(({drag:Sn,clientRect:Ei})=>{if(Sn===ge)return!1;if(zt){const Vi=Ae?zt.x:zt.y;if(Sn===this._previousSwap.drag&&this._previousSwap.overlaps&&Vi===this._previousSwap.delta)return!1}return Ae?Nt>=Math.floor(Ei.left)&&Nt=Math.floor(Ei.top)&&Se!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(sn=0,ge=O.P){return(!(0,L.k)(sn)||sn<0)&&(sn=0),(!ge||"function"!=typeof ge.schedule)&&(ge=O.P),new P.y(Nt=>(Nt.add(ge.schedule(V,sn,{subscriber:Nt,counter:0,period:sn})),Nt))}(0,W.Z).pipe((0,st.R)(this._stopScrollTimers)).subscribe(()=>{const Ie=this._scrollNode,Sn=this.autoScrollStep;1===this._verticalScrollDirection?Ie.scrollBy(0,-Sn):2===this._verticalScrollDirection&&Ie.scrollBy(0,Sn),1===this._horizontalScrollDirection?Ie.scrollBy(-Sn,0):2===this._horizontalScrollDirection&&Ie.scrollBy(Sn,0)})},this.element=(0,t.fI)(ge),this._document=Se,this.withScrollableParents([this.element]),Nt.registerDropContainer(this),this._parentPositions=new Le(Se),this._sortStrategy=new oi(this.element,Nt),this._sortStrategy.withSortPredicate((Ie,Sn)=>this.sortPredicate(Ie,Sn,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(ge,Nt,Se,zt){this._draggingStarted(),null==zt&&this.sortingDisabled&&(zt=this._draggables.indexOf(ge)),this._sortStrategy.enter(ge,Nt,Se,zt),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:ge,container:this,currentIndex:this.getItemIndex(ge)})}exit(ge){this._reset(),this.exited.next({item:ge,container:this})}drop(ge,Nt,Se,zt,Ae,Ie,Sn,Ei={}){this._reset(),this.dropped.next({item:ge,currentIndex:Nt,previousIndex:Se,container:this,previousContainer:zt,isPointerOverContainer:Ae,distance:Ie,dropPoint:Sn,event:Ei})}withItems(ge){const Nt=this._draggables;return this._draggables=ge,ge.forEach(Se=>Se._withDropContainer(this)),this.isDragging()&&(Nt.filter(zt=>zt.isDragging()).every(zt=>-1===ge.indexOf(zt))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(ge){return this._sortStrategy.direction=ge,this}connectedTo(ge){return this._siblings=ge.slice(),this}withOrientation(ge){return this._sortStrategy.orientation=ge,this}withScrollableParents(ge){const Nt=(0,t.fI)(this.element);return this._scrollableElements=-1===ge.indexOf(Nt)?[Nt,...ge]:ge.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(ge){return this._isDragging?this._sortStrategy.getItemIndex(ge):this._draggables.indexOf(ge)}isReceiving(){return this._activeSiblings.size>0}_sortItem(ge,Nt,Se,zt){if(this.sortingDisabled||!this._clientRect||!fe(this._clientRect,.05,Nt,Se))return;const Ae=this._sortStrategy.sort(ge,Nt,Se,zt);Ae&&this.sorted.next({previousIndex:Ae.previousIndex,currentIndex:Ae.currentIndex,container:this,item:ge})}_startScrollingIfNecessary(ge,Nt){if(this.autoScrollDisabled)return;let Se,zt=0,Ae=0;if(this._parentPositions.positions.forEach((Ie,Sn)=>{Sn===this._document||!Ie.clientRect||Se||fe(Ie.clientRect,.05,ge,Nt)&&([zt,Ae]=function Rt(sn,ge,Nt,Se){const zt=K(ge,Se),Ae=Tt(ge,Nt);let Ie=0,Sn=0;if(zt){const Ei=sn.scrollTop;1===zt?Ei>0&&(Ie=1):sn.scrollHeight-Ei>sn.clientHeight&&(Ie=2)}if(Ae){const Ei=sn.scrollLeft;1===Ae?Ei>0&&(Sn=1):sn.scrollWidth-Ei>sn.clientWidth&&(Sn=2)}return[Ie,Sn]}(Sn,Ie.clientRect,ge,Nt),(zt||Ae)&&(Se=Sn))}),!zt&&!Ae){const{width:Ie,height:Sn}=this._viewportRuler.getViewportSize(),Ei={width:Ie,height:Sn,top:0,right:Ie,bottom:Sn,left:0};zt=K(Ei,Nt),Ae=Tt(Ei,ge),Se=window}Se&&(zt!==this._verticalScrollDirection||Ae!==this._horizontalScrollDirection||Se!==this._scrollNode)&&(this._verticalScrollDirection=zt,this._horizontalScrollDirection=Ae,this._scrollNode=Se,(zt||Ae)&&Se?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const ge=(0,t.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=ge.msScrollSnapType||ge.scrollSnapType||"",ge.scrollSnapType=ge.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const ge=(0,t.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(ge).clientRect}_reset(){this._isDragging=!1;const ge=(0,t.fI)(this.element).style;ge.scrollSnapType=ge.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(Nt=>Nt._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(ge,Nt){return null!=this._clientRect&&Vt(this._clientRect,ge,Nt)}_getSiblingContainerFromPosition(ge,Nt,Se){return this._siblings.find(zt=>zt._canReceive(ge,Nt,Se))}_canReceive(ge,Nt,Se){if(!this._clientRect||!Vt(this._clientRect,Nt,Se)||!this.enterPredicate(ge,this))return!1;const zt=this._getShadowRoot().elementFromPoint(Nt,Se);if(!zt)return!1;const Ae=(0,t.fI)(this.element);return zt===Ae||Ae.contains(zt)}_startReceiving(ge,Nt){const Se=this._activeSiblings;!Se.has(ge)&&Nt.every(zt=>this.enterPredicate(zt,this)||this._draggables.indexOf(zt)>-1)&&(Se.add(ge),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(ge){this._activeSiblings.delete(ge),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(ge=>{if(this.isDragging()){const Nt=this._parentPositions.handleScroll(ge);Nt&&this._sortStrategy.updateOnScroll(Nt.top,Nt.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const ge=(0,v.kV)((0,t.fI)(this.element));this._cachedShadowRoot=ge||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const ge=this._sortStrategy.getActiveItemsSnapshot().filter(Nt=>Nt.isDragging());this._siblings.forEach(Nt=>Nt._startReceiving(this,ge))}}function K(sn,ge){const{top:Nt,bottom:Se,height:zt}=sn,Ae=.05*zt;return ge>=Nt-Ae&&ge<=Nt+Ae?1:ge>=Se-Ae&&ge<=Se+Ae?2:0}function Tt(sn,ge){const{left:Nt,right:Se,width:zt}=sn,Ae=.05*zt;return ge>=Nt-Ae&&ge<=Nt+Ae?1:ge>=Se-Ae&&ge<=Se+Ae?2:0}const le=(0,v.i$)({passive:!1,capture:!0});let be=(()=>{class sn{constructor(Nt,Se){this._ngZone=Nt,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=Se}registerDropContainer(Nt){this._dropInstances.has(Nt)||this._dropInstances.add(Nt)}registerDragItem(Nt){this._dragInstances.add(Nt),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,le)})}removeDropContainer(Nt){this._dropInstances.delete(Nt)}removeDragItem(Nt){this._dragInstances.delete(Nt),this.stopDragging(Nt),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,le)}startDragging(Nt,Se){if(!(this._activeDragInstances.indexOf(Nt)>-1)&&(this._activeDragInstances.push(Nt),1===this._activeDragInstances.length)){const zt=Se.type.startsWith("touch");this._globalListeners.set(zt?"touchend":"mouseup",{handler:Ae=>this.pointerUp.next(Ae),options:!0}).set("scroll",{handler:Ae=>this.scroll.next(Ae),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:le}),zt||this._globalListeners.set("mousemove",{handler:Ae=>this.pointerMove.next(Ae),options:le}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((Ae,Ie)=>{this._document.addEventListener(Ie,Ae.handler,Ae.options)})})}}stopDragging(Nt){const Se=this._activeDragInstances.indexOf(Nt);Se>-1&&(this._activeDragInstances.splice(Se,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(Nt){return this._activeDragInstances.indexOf(Nt)>-1}scrolled(Nt){const Se=[this.scroll];return Nt&&Nt!==this._document&&Se.push(new P.y(zt=>this._ngZone.runOutsideAngular(()=>{const Ie=Sn=>{this._activeDragInstances.length&&zt.next(Sn)};return Nt.addEventListener("scroll",Ie,!0),()=>{Nt.removeEventListener("scroll",Ie,!0)}}))),(0,tt.T)(...Se)}ngOnDestroy(){this._dragInstances.forEach(Nt=>this.removeDragItem(Nt)),this._dropInstances.forEach(Nt=>this.removeDropContainer(Nt)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((Nt,Se)=>{this._document.removeEventListener(Se,Nt.handler,Nt.options)}),this._globalListeners.clear()}}return sn.\u0275fac=function(Nt){return new(Nt||sn)(u.LFG(u.R0b),u.LFG(p.K0))},sn.\u0275prov=u.Yz7({token:sn,factory:sn.\u0275fac,providedIn:"root"}),sn})();const De={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let hn=(()=>{class sn{constructor(Nt,Se,zt,Ae){this._document=Nt,this._ngZone=Se,this._viewportRuler=zt,this._dragDropRegistry=Ae}createDrag(Nt,Se=De){return new Me(Nt,Se,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(Nt){return new it(Nt,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return sn.\u0275fac=function(Nt){return new(Nt||sn)(u.LFG(p.K0),u.LFG(u.R0b),u.LFG(x.rL),u.LFG(be))},sn.\u0275prov=u.Yz7({token:sn,factory:sn.\u0275fac,providedIn:"root"}),sn})();const qn=new u.OlP("CDK_DRAG_PARENT"),mi=new u.OlP("CdkDropListGroup"),bo=new u.OlP("CDK_DRAG_CONFIG");let Yn=0;const Vn=new u.OlP("CdkDropList");let Je=(()=>{class sn{constructor(Nt,Se,zt,Ae,Ie,Sn,Ei){this.element=Nt,this._changeDetectorRef=zt,this._scrollDispatcher=Ae,this._dir=Ie,this._group=Sn,this._destroyed=new U.xQ,this.connectedTo=[],this.id="cdk-drop-list-"+Yn++,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=Se.createDropList(Nt),this._dropListRef.data=this,Ei&&this._assignDefaults(Ei),this._dropListRef.enterPredicate=(Vi,cn)=>this.enterPredicate(Vi.data,cn.data),this._dropListRef.sortPredicate=(Vi,cn,pn)=>this.sortPredicate(Vi,cn.data,pn.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),sn._dropLists.push(this),Sn&&Sn._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(Nt){this._dropListRef.disabled=this._disabled=(0,t.Ig)(Nt)}addItem(Nt){this._unsortedItems.add(Nt),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(Nt){this._unsortedItems.delete(Nt),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((Nt,Se)=>Nt._dragRef.getVisibleElement().compareDocumentPosition(Se._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const Nt=sn._dropLists.indexOf(this);Nt>-1&&sn._dropLists.splice(Nt,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(Nt){this._dir&&this._dir.change.pipe((0,ct.O)(this._dir.value),(0,st.R)(this._destroyed)).subscribe(Se=>Nt.withDirection(Se)),Nt.beforeStarted.subscribe(()=>{const Se=(0,t.Eq)(this.connectedTo).map(zt=>"string"==typeof zt?sn._dropLists.find(Ie=>Ie.id===zt):zt);if(this._group&&this._group._items.forEach(zt=>{-1===Se.indexOf(zt)&&Se.push(zt)}),!this._scrollableParentsResolved){const zt=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(Ae=>Ae.getElementRef().nativeElement);this._dropListRef.withScrollableParents(zt),this._scrollableParentsResolved=!0}Nt.disabled=this.disabled,Nt.lockAxis=this.lockAxis,Nt.sortingDisabled=(0,t.Ig)(this.sortingDisabled),Nt.autoScrollDisabled=(0,t.Ig)(this.autoScrollDisabled),Nt.autoScrollStep=(0,t.su)(this.autoScrollStep,2),Nt.connectedTo(Se.filter(zt=>zt&&zt!==this).map(zt=>zt._dropListRef)).withOrientation(this.orientation)})}_handleEvents(Nt){Nt.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),Nt.entered.subscribe(Se=>{this.entered.emit({container:this,item:Se.item.data,currentIndex:Se.currentIndex})}),Nt.exited.subscribe(Se=>{this.exited.emit({container:this,item:Se.item.data}),this._changeDetectorRef.markForCheck()}),Nt.sorted.subscribe(Se=>{this.sorted.emit({previousIndex:Se.previousIndex,currentIndex:Se.currentIndex,container:this,item:Se.item.data})}),Nt.dropped.subscribe(Se=>{this.dropped.emit({previousIndex:Se.previousIndex,currentIndex:Se.currentIndex,previousContainer:Se.previousContainer.data,container:Se.container.data,item:Se.item.data,isPointerOverContainer:Se.isPointerOverContainer,distance:Se.distance,dropPoint:Se.dropPoint,event:Se.event}),this._changeDetectorRef.markForCheck()})}_assignDefaults(Nt){const{lockAxis:Se,draggingDisabled:zt,sortingDisabled:Ae,listAutoScrollDisabled:Ie,listOrientation:Sn}=Nt;this.disabled=zt??!1,this.sortingDisabled=Ae??!1,this.autoScrollDisabled=Ie??!1,this.orientation=Sn||"vertical",Se&&(this.lockAxis=Se)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(Nt=>Nt._dragRef))}}return sn._dropLists=[],sn.\u0275fac=function(Nt){return new(Nt||sn)(u.Y36(u.SBq),u.Y36(hn),u.Y36(u.sBO),u.Y36(x.mF),u.Y36(Jt.Is,8),u.Y36(mi,12),u.Y36(bo,8))},sn.\u0275dir=u.lG2({type:sn,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(Nt,Se){2&Nt&&(u.uIk("id",Se.id),u.ekj("cdk-drop-list-disabled",Se.disabled)("cdk-drop-list-dragging",Se._dropListRef.isDragging())("cdk-drop-list-receiving",Se._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:Vn,useExisting:sn}])]}),sn})();const gn=new u.OlP("CdkDragHandle"),Ee=new u.OlP("CdkDragPlaceholder"),se=new u.OlP("CdkDragPreview");let rn=(()=>{class sn{constructor(Nt,Se,zt,Ae,Ie,Sn,Ei,Vi,cn,pn,We){this.element=Nt,this.dropContainer=Se,this._ngZone=Ae,this._viewContainerRef=Ie,this._dir=Ei,this._changeDetectorRef=cn,this._selfHandle=pn,this._parentDrag=We,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 bi=this._dragRef.moved.pipe((0,bt.U)(so=>({source:this,pointerPosition:so.pointerPosition,event:so.event,delta:so.delta,distance:so.distance}))).subscribe(ai);return()=>{bi.unsubscribe()}}),this._dragRef=Vi.createDrag(Nt,{dragStartThreshold:Sn&&null!=Sn.dragStartThreshold?Sn.dragStartThreshold:5,pointerDirectionChangeThreshold:Sn&&null!=Sn.pointerDirectionChangeThreshold?Sn.pointerDirectionChangeThreshold:5,zIndex:Sn?.zIndex}),this._dragRef.data=this,sn._dragInstances.push(this),Sn&&this._assignDefaults(Sn),Se&&(this._dragRef._withDropContainer(Se._dropListRef),Se.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(Nt){this._disabled=(0,t.Ig)(Nt),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(Nt){this._dragRef.setFreeDragPosition(Nt)}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,Dt.q)(1),(0,st.R)(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(Nt){const Se=Nt.rootElementSelector,zt=Nt.freeDragPosition;Se&&!Se.firstChange&&this._updateRootElement(),zt&&!zt.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const Nt=sn._dragInstances.indexOf(this);Nt>-1&&sn._dragInstances.splice(Nt,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){const Nt=this.element.nativeElement;let Se=Nt;this.rootElementSelector&&(Se=void 0!==Nt.closest?Nt.closest(this.rootElementSelector):Nt.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(Se||Nt)}_getBoundaryElement(){const Nt=this.boundaryElement;return Nt?"string"==typeof Nt?this.element.nativeElement.closest(Nt):(0,t.fI)(Nt):null}_syncInputs(Nt){Nt.beforeStarted.subscribe(()=>{if(!Nt.isDragging()){const Se=this._dir,zt=this.dragStartDelay,Ae=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,Ie=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;Nt.disabled=this.disabled,Nt.lockAxis=this.lockAxis,Nt.dragStartDelay="object"==typeof zt&&zt?zt:(0,t.su)(zt),Nt.constrainPosition=this.constrainPosition,Nt.previewClass=this.previewClass,Nt.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(Ae).withPreviewTemplate(Ie).withPreviewContainer(this.previewContainer||"global"),Se&&Nt.withDirection(Se.value)}}),Nt.beforeStarted.pipe((0,Dt.q)(1)).subscribe(()=>{if(this._parentDrag)return void Nt.withParent(this._parentDrag._dragRef);let Se=this.element.nativeElement.parentElement;for(;Se;){if(Se.classList.contains("cdk-drag")){Nt.withParent(sn._dragInstances.find(zt=>zt.element.nativeElement===Se)?._dragRef||null);break}Se=Se.parentElement}})}_handleEvents(Nt){Nt.started.subscribe(Se=>{this.started.emit({source:this,event:Se.event}),this._changeDetectorRef.markForCheck()}),Nt.released.subscribe(Se=>{this.released.emit({source:this,event:Se.event})}),Nt.ended.subscribe(Se=>{this.ended.emit({source:this,distance:Se.distance,dropPoint:Se.dropPoint,event:Se.event}),this._changeDetectorRef.markForCheck()}),Nt.entered.subscribe(Se=>{this.entered.emit({container:Se.container.data,item:this,currentIndex:Se.currentIndex})}),Nt.exited.subscribe(Se=>{this.exited.emit({container:Se.container.data,item:this})}),Nt.dropped.subscribe(Se=>{this.dropped.emit({previousIndex:Se.previousIndex,currentIndex:Se.currentIndex,previousContainer:Se.previousContainer.data,container:Se.container.data,isPointerOverContainer:Se.isPointerOverContainer,item:this,distance:Se.distance,dropPoint:Se.dropPoint,event:Se.event})})}_assignDefaults(Nt){const{lockAxis:Se,dragStartDelay:zt,constrainPosition:Ae,previewClass:Ie,boundaryElement:Sn,draggingDisabled:Ei,rootElementSelector:Vi,previewContainer:cn}=Nt;this.disabled=Ei??!1,this.dragStartDelay=zt||0,Se&&(this.lockAxis=Se),Ae&&(this.constrainPosition=Ae),Ie&&(this.previewClass=Ie),Sn&&(this.boundaryElement=Sn),Vi&&(this.rootElementSelector=Vi),cn&&(this.previewContainer=cn)}_setupHandlesListener(){this._handles.changes.pipe((0,ct.O)(this._handles),(0,wt.b)(Nt=>{const Se=Nt.filter(zt=>zt._parentDrag===this).map(zt=>zt.element);this._selfHandle&&this.rootElementSelector&&Se.push(this.element),this._dragRef.withHandles(Se)}),(0,qt.w)(Nt=>(0,tt.T)(...Nt.map(Se=>Se._stateChanges.pipe((0,ct.O)(Se))))),(0,st.R)(this._destroyed)).subscribe(Nt=>{const Se=this._dragRef,zt=Nt.element.nativeElement;Nt.disabled?Se.disableHandle(zt):Se.enableHandle(zt)})}}return sn._dragInstances=[],sn.\u0275fac=function(Nt){return new(Nt||sn)(u.Y36(u.SBq),u.Y36(Vn,12),u.Y36(p.K0),u.Y36(u.R0b),u.Y36(u.s_b),u.Y36(bo,8),u.Y36(Jt.Is,8),u.Y36(hn),u.Y36(u.sBO),u.Y36(gn,10),u.Y36(qn,12))},sn.\u0275dir=u.lG2({type:sn,selectors:[["","cdkDrag",""]],contentQueries:function(Nt,Se,zt){if(1&Nt&&(u.Suo(zt,se,5),u.Suo(zt,Ee,5),u.Suo(zt,gn,5)),2&Nt){let Ae;u.iGM(Ae=u.CRH())&&(Se._previewTemplate=Ae.first),u.iGM(Ae=u.CRH())&&(Se._placeholderTemplate=Ae.first),u.iGM(Ae=u.CRH())&&(Se._handles=Ae)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(Nt,Se){2&Nt&&u.ekj("cdk-drag-disabled",Se.disabled)("cdk-drag-dragging",Se._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:sn}]),u.TTD]}),sn})(),fn=(()=>{class sn{}return sn.\u0275fac=function(Nt){return new(Nt||sn)},sn.\u0275mod=u.oAB({type:sn}),sn.\u0275inj=u.cJS({providers:[hn],imports:[x.ZD]}),sn})()},29521:(X,j,h)=>{"use strict";h.d(j,{A:()=>ne,JH:()=>wt,JU:()=>T,K5:()=>t,Ku:()=>V,LH:()=>bt,L_:()=>N,MW:()=>qn,Mf:()=>x,SV:()=>Dt,Sd:()=>st,VM:()=>W,Vb:()=>cc,Z:()=>hn,ZH:()=>p,aO:()=>Le,b2:()=>Er,hY:()=>L,jx:()=>U,oh:()=>ct,uR:()=>tt,xE:()=>xt,yY:()=>At,zL:()=>w});const p=8,x=9,t=13,T=16,U=17,w=18,L=27,N=32,V=33,W=34,tt=35,st=36,ct=37,bt=38,Dt=39,wt=40,At=46,xt=48,Le=57,ne=65,hn=90,qn=91,Er=224;function cc(nr,...ds){return ds.length?ds.some(Tr=>nr[Tr]):nr.altKey||nr.shiftKey||nr.ctrlKey||nr.metaKey}},62289:(X,j,h)=>{"use strict";h.d(j,{Yg:()=>wt,u3:()=>Jt,xu:()=>W});var u=h(94650),p=h(21281),x=h(8929),v=h(23426),t=h(61221),T=h(56498),U=h(72986),w=h(31307),P=h(80013),O=h(24850),L=h(1059),N=h(7625),V=h(83353);let W=(()=>{class yt{}return yt.\u0275fac=function(xt){return new(xt||yt)},yt.\u0275mod=u.oAB({type:yt}),yt.\u0275inj=u.cJS({}),yt})();const tt=new Set;let st,ct=(()=>{class yt{constructor(xt){this._platform=xt,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Dt}matchMedia(xt){return(this._platform.WEBKIT||this._platform.BLINK)&&function bt(yt){if(!tt.has(yt))try{st||(st=document.createElement("style"),st.setAttribute("type","text/css"),document.head.appendChild(st)),st.sheet&&(st.sheet.insertRule(`@media ${yt} {body{ }}`,0),tt.add(yt))}catch(At){console.error(At)}}(xt),this._matchMedia(xt)}}return yt.\u0275fac=function(xt){return new(xt||yt)(u.LFG(V.t4))},yt.\u0275prov=u.Yz7({token:yt,factory:yt.\u0275fac,providedIn:"root"}),yt})();function Dt(yt){return{matches:"all"===yt||""===yt,media:yt,addListener:()=>{},removeListener:()=>{}}}let wt=(()=>{class yt{constructor(xt,pt){this._mediaMatcher=xt,this._zone=pt,this._queries=new Map,this._destroySubject=new x.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(xt){return qt((0,p.Eq)(xt)).some(Ot=>this._registerQuery(Ot).mql.matches)}observe(xt){const Ot=qt((0,p.Eq)(xt)).map(St=>this._registerQuery(St).observable);let Bt=(0,v.aj)(Ot);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)(St=>{const ce={matches:!1,breakpoints:{}};return St.forEach(({matches:Vt,query:ve})=>{ce.matches=ce.matches||Vt,ce.breakpoints[ve]=Vt}),ce}))}_registerQuery(xt){if(this._queries.has(xt))return this._queries.get(xt);const pt=this._mediaMatcher.matchMedia(xt),Bt={observable:new T.y(St=>{const ce=Vt=>this._zone.run(()=>St.next(Vt));return pt.addListener(ce),()=>{pt.removeListener(ce)}}).pipe((0,L.O)(pt),(0,O.U)(({matches:St})=>({query:xt,matches:St})),(0,N.R)(this._destroySubject)),mql:pt};return this._queries.set(xt,Bt),Bt}}return yt.\u0275fac=function(xt){return new(xt||yt)(u.LFG(ct),u.LFG(u.R0b))},yt.\u0275prov=u.Yz7({token:yt,factory:yt.\u0275fac,providedIn:"root"}),yt})();function qt(yt){return yt.map(At=>At.split(",")).reduce((At,xt)=>At.concat(xt)).map(At=>At.trim())}const Jt={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:(X,j,h)=>{"use strict";h.d(j,{Q8:()=>P,wD:()=>w});var u=h(21281),p=h(94650),x=h(56498),v=h(8929),t=h(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=p.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,V)=>this._cleanupObserver(V))}observe(N){const V=(0,u.fI)(N);return new x.y(W=>{const st=this._observeElement(V).subscribe(W);return()=>{st.unsubscribe(),this._unobserveElement(V)}})}_observeElement(N){if(this._observedElements.has(N))this._observedElements.get(N).count++;else{const V=new v.xQ,W=this._mutationObserverFactory.create(tt=>V.next(tt));W&&W.observe(N,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(N,{observer:W,stream:V,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:V,stream:W}=this._observedElements.get(N);V&&V.disconnect(),W.complete(),this._observedElements.delete(N)}}}return O.\u0275fac=function(N){return new(N||O)(p.LFG(T))},O.\u0275prov=p.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"}),O})(),w=(()=>{class O{constructor(N,V,W){this._contentObserver=N,this._elementRef=V,this._ngZone=W,this.event=new p.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)(p.Y36(U),p.Y36(p.SBq),p.Y36(p.R0b))},O.\u0275dir=p.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=p.oAB({type:O}),O.\u0275inj=p.cJS({providers:[T]}),O})()},98184:(X,j,h)=>{"use strict";h.d(j,{Iu:()=>Le,U8:()=>oi,X_:()=>At,Xj:()=>fe,_G:()=>Gt,aV:()=>xe,pI:()=>Dn,xu:()=>un});var u=h(67376),p=h(36895),x=h(94650),v=h(21281),t=h(83353),T=h(40445),U=h(84080),w=h(8929),P=h(42654),O=h(36787),L=h(72986),N=h(7625),V=h(44290),W=h(29521);const tt=(0,t.Mq)();class st{constructor(it,K){this._viewportRuler=it,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=K}attach(){}enable(){if(this._canBeEnabled()){const it=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=it.style.left||"",this._previousHTMLStyles.top=it.style.top||"",it.style.left=(0,v.HM)(-this._previousScrollPosition.left),it.style.top=(0,v.HM)(-this._previousScrollPosition.top),it.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const it=this._document.documentElement,Tt=it.style,Rt=this._document.body.style,le=Tt.scrollBehavior||"",be=Rt.scrollBehavior||"";this._isEnabled=!1,Tt.left=this._previousHTMLStyles.left,Tt.top=this._previousHTMLStyles.top,it.classList.remove("cdk-global-scrollblock"),tt&&(Tt.scrollBehavior=Rt.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),tt&&(Tt.scrollBehavior=le,Rt.scrollBehavior=be)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const K=this._document.body,Tt=this._viewportRuler.getViewportSize();return K.scrollHeight>Tt.height||K.scrollWidth>Tt.width}}class bt{constructor(it,K,Tt,Rt){this._scrollDispatcher=it,this._ngZone=K,this._viewportRuler=Tt,this._config=Rt,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(it){this._overlayRef=it}enable(){if(this._scrollSubscription)return;const it=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=it.subscribe(()=>{const K=this._viewportRuler.getViewportScrollPosition().top;Math.abs(K-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=it.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Dt{enable(){}disable(){}attach(){}}function wt(te,it){return it.some(K=>te.bottomK.bottom||te.rightK.right)}function qt(te,it){return it.some(K=>te.topK.bottom||te.leftK.right)}class Jt{constructor(it,K,Tt,Rt){this._scrollDispatcher=it,this._viewportRuler=K,this._ngZone=Tt,this._config=Rt,this._scrollSubscription=null}attach(it){this._overlayRef=it}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 K=this._overlayRef.overlayElement.getBoundingClientRect(),{width:Tt,height:Rt}=this._viewportRuler.getViewportSize();wt(K,[{width:Tt,height:Rt,bottom:Rt,right:Tt,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 yt=(()=>{class te{constructor(K,Tt,Rt,le){this._scrollDispatcher=K,this._viewportRuler=Tt,this._ngZone=Rt,this.noop=()=>new Dt,this.close=be=>new bt(this._scrollDispatcher,this._ngZone,this._viewportRuler,be),this.block=()=>new st(this._viewportRuler,this._document),this.reposition=be=>new Jt(this._scrollDispatcher,this._viewportRuler,this._ngZone,be),this._document=le}}return te.\u0275fac=function(K){return new(K||te)(x.LFG(u.mF),x.LFG(u.rL),x.LFG(x.R0b),x.LFG(p.K0))},te.\u0275prov=x.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})();class At{constructor(it){if(this.scrollStrategy=new Dt,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,it){const K=Object.keys(it);for(const Tt of K)void 0!==it[Tt]&&(this[Tt]=it[Tt])}}}class Ot{constructor(it,K){this.connectionPair=it,this.scrollableViewProperties=K}}let ce=(()=>{class te{constructor(K){this._attachedOverlays=[],this._document=K}ngOnDestroy(){this.detach()}add(K){this.remove(K),this._attachedOverlays.push(K)}remove(K){const Tt=this._attachedOverlays.indexOf(K);Tt>-1&&this._attachedOverlays.splice(Tt,1),0===this._attachedOverlays.length&&this.detach()}}return te.\u0275fac=function(K){return new(K||te)(x.LFG(p.K0))},te.\u0275prov=x.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})(),Vt=(()=>{class te extends ce{constructor(K,Tt){super(K),this._ngZone=Tt,this._keydownListener=Rt=>{const le=this._attachedOverlays;for(let be=le.length-1;be>-1;be--)if(le[be]._keydownEvents.observers.length>0){const De=le[be]._keydownEvents;this._ngZone?this._ngZone.run(()=>De.next(Rt)):De.next(Rt);break}}}add(K){super.add(K),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 te.\u0275fac=function(K){return new(K||te)(x.LFG(p.K0),x.LFG(x.R0b,8))},te.\u0275prov=x.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})(),ve=(()=>{class te extends ce{constructor(K,Tt,Rt){super(K),this._platform=Tt,this._ngZone=Rt,this._cursorStyleIsSet=!1,this._pointerDownListener=le=>{this._pointerDownEventTarget=(0,t.sA)(le)},this._clickListener=le=>{const be=(0,t.sA)(le),De="click"===le.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:be;this._pointerDownEventTarget=null;const hn=this._attachedOverlays.slice();for(let qn=hn.length-1;qn>-1;qn--){const mi=hn[qn];if(mi._outsidePointerEvents.observers.length<1||!mi.hasAttached())continue;if(mi.overlayElement.contains(be)||mi.overlayElement.contains(De))break;const Di=mi._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>Di.next(le)):Di.next(le)}}}add(K){if(super.add(K),!this._isAttached){const Tt=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(Tt)):this._addEventListeners(Tt),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=Tt.style.cursor,Tt.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const K=this._document.body;K.removeEventListener("pointerdown",this._pointerDownListener,!0),K.removeEventListener("click",this._clickListener,!0),K.removeEventListener("auxclick",this._clickListener,!0),K.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(K.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(K){K.addEventListener("pointerdown",this._pointerDownListener,!0),K.addEventListener("click",this._clickListener,!0),K.addEventListener("auxclick",this._clickListener,!0),K.addEventListener("contextmenu",this._clickListener,!0)}}return te.\u0275fac=function(K){return new(K||te)(x.LFG(p.K0),x.LFG(t.t4),x.LFG(x.R0b,8))},te.\u0275prov=x.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})(),fe=(()=>{class te{constructor(K,Tt){this._platform=Tt,this._document=K}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const K="cdk-overlay-container";if(this._platform.isBrowser||(0,t.Oy)()){const Rt=this._document.querySelectorAll(`.${K}[platform="server"], .${K}[platform="test"]`);for(let le=0;lethis._backdropClick.next(Di),this._backdropTransitionendHandler=Di=>{this._disposeBackdrop(Di.target)},this._keydownEvents=new w.xQ,this._outsidePointerEvents=new w.xQ,Rt.scrollStrategy&&(this._scrollStrategy=Rt.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=Rt.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(it){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const K=this._portalOutlet.attach(it);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 K?.onDestroy&&K.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),K}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const it=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),it}dispose(){const it=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,it&&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(it){it!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=it,this.hasAttached()&&(it.attach(this),this.updatePosition()))}updateSize(it){this._config={...this._config,...it},this._updateElementSize()}setDirection(it){this._config={...this._config,direction:it},this._updateElementDirection()}addPanelClass(it){this._pane&&this._toggleClasses(this._pane,it,!0)}removePanelClass(it){this._pane&&this._toggleClasses(this._pane,it,!1)}getDirection(){const it=this._config.direction;return it?"string"==typeof it?it:it.value:"ltr"}updateScrollStrategy(it){it!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=it,this.hasAttached()&&(it.attach(this),it.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const it=this._pane.style;it.width=(0,v.HM)(this._config.width),it.height=(0,v.HM)(this._config.height),it.minWidth=(0,v.HM)(this._config.minWidth),it.minHeight=(0,v.HM)(this._config.minHeight),it.maxWidth=(0,v.HM)(this._config.maxWidth),it.maxHeight=(0,v.HM)(this._config.maxHeight)}_togglePointerEvents(it){this._pane.style.pointerEvents=it?"":"none"}_attachBackdrop(){const it="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(it)})}):this._backdropElement.classList.add(it)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const it=this._backdropElement;if(it){if(this._animationsDisabled)return void this._disposeBackdrop(it);it.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{it.addEventListener("transitionend",this._backdropTransitionendHandler)}),it.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(it)},500))}}_toggleClasses(it,K,Tt){const Rt=(0,v.Eq)(K||[]).filter(le=>!!le);Rt.length&&(Tt?it.classList.add(...Rt):it.classList.remove(...Rt))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const it=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()),it.unsubscribe())})})}_disposeScrollStrategy(){const it=this._scrollStrategy;it&&(it.disable(),it.detach&&it.detach())}_disposeBackdrop(it){it&&(it.removeEventListener("click",this._backdropClickHandler),it.removeEventListener("transitionend",this._backdropTransitionendHandler),it.remove(),this._backdropElement===it&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const Fe="cdk-overlay-connected-position-bounding-box",Ge=/([A-Za-z%]+)$/;class Gt{constructor(it,K,Tt,Rt,le){this._viewportRuler=K,this._document=Tt,this._platform=Rt,this._overlayContainer=le,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(it)}get positions(){return this._preferredPositions}attach(it){this._validatePositions(),it.hostElement.classList.add(Fe),this._overlayRef=it,this._boundingBox=it.hostElement,this._pane=it.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 it=this._originRect,K=this._overlayRect,Tt=this._viewportRect,Rt=this._containerRect,le=[];let be;for(let De of this._preferredPositions){let hn=this._getOriginPoint(it,Rt,De),qn=this._getOverlayPoint(hn,K,De),mi=this._getOverlayFit(qn,K,Tt,De);if(mi.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(De,hn);this._canFitWithFlexibleDimensions(mi,qn,Tt)?le.push({position:De,origin:hn,overlayRect:K,boundingBoxRect:this._calculateBoundingBoxRect(hn,De)}):(!be||be.overlayFit.visibleAreahn&&(hn=mi,De=qn)}return this._isPushed=!1,void this._applyPosition(De.position,De.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(be.position,be.originPoint);this._applyPosition(be.position,be.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Te(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Fe),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const it=this._lastPosition;if(it){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const K=this._getOriginPoint(this._originRect,this._containerRect,it);this._applyPosition(it,K)}else this.apply()}withScrollableContainers(it){return this._scrollables=it,this}withPositions(it){return this._preferredPositions=it,-1===it.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(it){return this._viewportMargin=it,this}withFlexibleDimensions(it=!0){return this._hasFlexibleDimensions=it,this}withGrowAfterOpen(it=!0){return this._growAfterOpen=it,this}withPush(it=!0){return this._canPush=it,this}withLockedPosition(it=!0){return this._positionLocked=it,this}setOrigin(it){return this._origin=it,this}withDefaultOffsetX(it){return this._offsetX=it,this}withDefaultOffsetY(it){return this._offsetY=it,this}withTransformOriginOn(it){return this._transformOriginSelector=it,this}_getOriginPoint(it,K,Tt){let Rt,le;if("center"==Tt.originX)Rt=it.left+it.width/2;else{const be=this._isRtl()?it.right:it.left,De=this._isRtl()?it.left:it.right;Rt="start"==Tt.originX?be:De}return K.left<0&&(Rt-=K.left),le="center"==Tt.originY?it.top+it.height/2:"top"==Tt.originY?it.top:it.bottom,K.top<0&&(le-=K.top),{x:Rt,y:le}}_getOverlayPoint(it,K,Tt){let Rt,le;return Rt="center"==Tt.overlayX?-K.width/2:"start"===Tt.overlayX?this._isRtl()?-K.width:0:this._isRtl()?0:-K.width,le="center"==Tt.overlayY?-K.height/2:"top"==Tt.overlayY?0:-K.height,{x:it.x+Rt,y:it.y+le}}_getOverlayFit(it,K,Tt,Rt){const le=jt(K);let{x:be,y:De}=it,hn=this._getOffset(Rt,"x"),qn=this._getOffset(Rt,"y");hn&&(be+=hn),qn&&(De+=qn);let bo=0-De,hi=De+le.height-Tt.height,Yn=this._subtractOverflows(le.width,0-be,be+le.width-Tt.width),Vn=this._subtractOverflows(le.height,bo,hi),Je=Yn*Vn;return{visibleArea:Je,isCompletelyWithinViewport:le.width*le.height===Je,fitsInViewportVertically:Vn===le.height,fitsInViewportHorizontally:Yn==le.width}}_canFitWithFlexibleDimensions(it,K,Tt){if(this._hasFlexibleDimensions){const Rt=Tt.bottom-K.y,le=Tt.right-K.x,be=ne(this._overlayRef.getConfig().minHeight),De=ne(this._overlayRef.getConfig().minWidth),qn=it.fitsInViewportHorizontally||null!=De&&De<=le;return(it.fitsInViewportVertically||null!=be&&be<=Rt)&&qn}return!1}_pushOverlayOnScreen(it,K,Tt){if(this._previousPushAmount&&this._positionLocked)return{x:it.x+this._previousPushAmount.x,y:it.y+this._previousPushAmount.y};const Rt=jt(K),le=this._viewportRect,be=Math.max(it.x+Rt.width-le.width,0),De=Math.max(it.y+Rt.height-le.height,0),hn=Math.max(le.top-Tt.top-it.y,0),qn=Math.max(le.left-Tt.left-it.x,0);let mi=0,Di=0;return mi=Rt.width<=le.width?qn||-be:it.xYn&&!this._isInitialRender&&!this._growAfterOpen&&(be=it.y-Yn/2)}if("end"===K.overlayX&&!Rt||"start"===K.overlayX&&Rt)bo=Tt.width-it.x+this._viewportMargin,mi=it.x-this._viewportMargin;else if("start"===K.overlayX&&!Rt||"end"===K.overlayX&&Rt)Di=it.x,mi=Tt.right-it.x;else{const hi=Math.min(Tt.right-it.x+Tt.left,it.x),Yn=this._lastBoundingBoxSize.width;mi=2*hi,Di=it.x-hi,mi>Yn&&!this._isInitialRender&&!this._growAfterOpen&&(Di=it.x-Yn/2)}return{top:be,left:Di,bottom:De,right:bo,width:mi,height:le}}_setBoundingBoxStyles(it,K){const Tt=this._calculateBoundingBoxRect(it,K);!this._isInitialRender&&!this._growAfterOpen&&(Tt.height=Math.min(Tt.height,this._lastBoundingBoxSize.height),Tt.width=Math.min(Tt.width,this._lastBoundingBoxSize.width));const Rt={};if(this._hasExactPosition())Rt.top=Rt.left="0",Rt.bottom=Rt.right=Rt.maxHeight=Rt.maxWidth="",Rt.width=Rt.height="100%";else{const le=this._overlayRef.getConfig().maxHeight,be=this._overlayRef.getConfig().maxWidth;Rt.height=(0,v.HM)(Tt.height),Rt.top=(0,v.HM)(Tt.top),Rt.bottom=(0,v.HM)(Tt.bottom),Rt.width=(0,v.HM)(Tt.width),Rt.left=(0,v.HM)(Tt.left),Rt.right=(0,v.HM)(Tt.right),Rt.alignItems="center"===K.overlayX?"center":"end"===K.overlayX?"flex-end":"flex-start",Rt.justifyContent="center"===K.overlayY?"center":"bottom"===K.overlayY?"flex-end":"flex-start",le&&(Rt.maxHeight=(0,v.HM)(le)),be&&(Rt.maxWidth=(0,v.HM)(be))}this._lastBoundingBoxSize=Tt,Te(this._boundingBox.style,Rt)}_resetBoundingBoxStyles(){Te(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Te(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(it,K){const Tt={},Rt=this._hasExactPosition(),le=this._hasFlexibleDimensions,be=this._overlayRef.getConfig();if(Rt){const mi=this._viewportRuler.getViewportScrollPosition();Te(Tt,this._getExactOverlayY(K,it,mi)),Te(Tt,this._getExactOverlayX(K,it,mi))}else Tt.position="static";let De="",hn=this._getOffset(K,"x"),qn=this._getOffset(K,"y");hn&&(De+=`translateX(${hn}px) `),qn&&(De+=`translateY(${qn}px)`),Tt.transform=De.trim(),be.maxHeight&&(Rt?Tt.maxHeight=(0,v.HM)(be.maxHeight):le&&(Tt.maxHeight="")),be.maxWidth&&(Rt?Tt.maxWidth=(0,v.HM)(be.maxWidth):le&&(Tt.maxWidth="")),Te(this._pane.style,Tt)}_getExactOverlayY(it,K,Tt){let Rt={top:"",bottom:""},le=this._getOverlayPoint(K,this._overlayRect,it);return this._isPushed&&(le=this._pushOverlayOnScreen(le,this._overlayRect,Tt)),"bottom"===it.overlayY?Rt.bottom=this._document.documentElement.clientHeight-(le.y+this._overlayRect.height)+"px":Rt.top=(0,v.HM)(le.y),Rt}_getExactOverlayX(it,K,Tt){let be,Rt={left:"",right:""},le=this._getOverlayPoint(K,this._overlayRect,it);return this._isPushed&&(le=this._pushOverlayOnScreen(le,this._overlayRect,Tt)),be=this._isRtl()?"end"===it.overlayX?"left":"right":"end"===it.overlayX?"right":"left","right"===be?Rt.right=this._document.documentElement.clientWidth-(le.x+this._overlayRect.width)+"px":Rt.left=(0,v.HM)(le.x),Rt}_getScrollVisibility(){const it=this._getOriginRect(),K=this._pane.getBoundingClientRect(),Tt=this._scrollables.map(Rt=>Rt.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:qt(it,Tt),isOriginOutsideView:wt(it,Tt),isOverlayClipped:qt(K,Tt),isOverlayOutsideView:wt(K,Tt)}}_subtractOverflows(it,...K){return K.reduce((Tt,Rt)=>Tt-Math.max(Rt,0),it)}_getNarrowedViewportRect(){const it=this._document.documentElement.clientWidth,K=this._document.documentElement.clientHeight,Tt=this._viewportRuler.getViewportScrollPosition();return{top:Tt.top+this._viewportMargin,left:Tt.left+this._viewportMargin,right:Tt.left+it-this._viewportMargin,bottom:Tt.top+K-this._viewportMargin,width:it-2*this._viewportMargin,height:K-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(it,K){return"x"===K?it.offsetX??this._offsetX:it.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(it){this._pane&&(0,v.Eq)(it).forEach(K=>{""!==K&&-1===this._appliedPanelClasses.indexOf(K)&&(this._appliedPanelClasses.push(K),this._pane.classList.add(K))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(it=>{this._pane.classList.remove(it)}),this._appliedPanelClasses=[])}_getOriginRect(){const it=this._origin;if(it instanceof x.SBq)return it.nativeElement.getBoundingClientRect();if(it instanceof Element)return it.getBoundingClientRect();const K=it.width||0,Tt=it.height||0;return{top:it.y,bottom:it.y+Tt,left:it.x,right:it.x+K,height:Tt,width:K}}}function Te(te,it){for(let K in it)it.hasOwnProperty(K)&&(te[K]=it[K]);return te}function ne(te){if("number"!=typeof te&&null!=te){const[it,K]=te.split(Ge);return K&&"px"!==K?null:parseFloat(it)}return te||null}function jt(te){return{top:Math.floor(te.top),right:Math.floor(te.right),bottom:Math.floor(te.bottom),left:Math.floor(te.left),width:Math.floor(te.width),height:Math.floor(te.height)}}const oe="cdk-global-overlay-wrapper";class Me{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(it){const K=it.getConfig();this._overlayRef=it,this._width&&!K.width&&it.updateSize({width:this._width}),this._height&&!K.height&&it.updateSize({height:this._height}),it.hostElement.classList.add(oe),this._isDisposed=!1}top(it=""){return this._bottomOffset="",this._topOffset=it,this._alignItems="flex-start",this}left(it=""){return this._xOffset=it,this._xPosition="left",this}bottom(it=""){return this._topOffset="",this._bottomOffset=it,this._alignItems="flex-end",this}right(it=""){return this._xOffset=it,this._xPosition="right",this}start(it=""){return this._xOffset=it,this._xPosition="start",this}end(it=""){return this._xOffset=it,this._xPosition="end",this}width(it=""){return this._overlayRef?this._overlayRef.updateSize({width:it}):this._width=it,this}height(it=""){return this._overlayRef?this._overlayRef.updateSize({height:it}):this._height=it,this}centerHorizontally(it=""){return this.left(it),this._xPosition="center",this}centerVertically(it=""){return this.top(it),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const it=this._overlayRef.overlayElement.style,K=this._overlayRef.hostElement.style,Tt=this._overlayRef.getConfig(),{width:Rt,height:le,maxWidth:be,maxHeight:De}=Tt,hn=!("100%"!==Rt&&"100vw"!==Rt||be&&"100%"!==be&&"100vw"!==be),qn=!("100%"!==le&&"100vh"!==le||De&&"100%"!==De&&"100vh"!==De),mi=this._xPosition,Di=this._xOffset,bo="rtl"===this._overlayRef.getConfig().direction;let hi="",Yn="",Vn="";hn?Vn="flex-start":"center"===mi?(Vn="center",bo?Yn=Di:hi=Di):bo?"left"===mi||"end"===mi?(Vn="flex-end",hi=Di):("right"===mi||"start"===mi)&&(Vn="flex-start",Yn=Di):"left"===mi||"start"===mi?(Vn="flex-start",hi=Di):("right"===mi||"end"===mi)&&(Vn="flex-end",Yn=Di),it.position=this._cssPosition,it.marginLeft=hn?"0":hi,it.marginTop=qn?"0":this._topOffset,it.marginBottom=this._bottomOffset,it.marginRight=hn?"0":Yn,K.justifyContent=Vn,K.alignItems=qn?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const it=this._overlayRef.overlayElement.style,K=this._overlayRef.hostElement,Tt=K.style;K.classList.remove(oe),Tt.justifyContent=Tt.alignItems=it.marginTop=it.marginBottom=it.marginLeft=it.marginRight=it.position="",this._overlayRef=null,this._isDisposed=!0}}let en=(()=>{class te{constructor(K,Tt,Rt,le){this._viewportRuler=K,this._document=Tt,this._platform=Rt,this._overlayContainer=le}global(){return new Me}flexibleConnectedTo(K){return new Gt(K,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return te.\u0275fac=function(K){return new(K||te)(x.LFG(u.rL),x.LFG(p.K0),x.LFG(t.t4),x.LFG(fe))},te.\u0275prov=x.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})(),_n=0,xe=(()=>{class te{constructor(K,Tt,Rt,le,be,De,hn,qn,mi,Di,bo,hi){this.scrollStrategies=K,this._overlayContainer=Tt,this._componentFactoryResolver=Rt,this._positionBuilder=le,this._keyboardDispatcher=be,this._injector=De,this._ngZone=hn,this._document=qn,this._directionality=mi,this._location=Di,this._outsideClickDispatcher=bo,this._animationsModuleType=hi}create(K){const Tt=this._createHostElement(),Rt=this._createPaneElement(Tt),le=this._createPortalOutlet(Rt),be=new At(K);return be.direction=be.direction||this._directionality.value,new Le(le,Tt,Rt,be,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(K){const Tt=this._document.createElement("div");return Tt.id="cdk-overlay-"+_n++,Tt.classList.add("cdk-overlay-pane"),K.appendChild(Tt),Tt}_createHostElement(){const K=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(K),K}_createPortalOutlet(K){return this._appRef||(this._appRef=this._injector.get(x.z2F)),new U.u0(K,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return te.\u0275fac=function(K){return new(K||te)(x.LFG(yt),x.LFG(fe),x.LFG(x._Vd),x.LFG(en),x.LFG(Vt),x.LFG(x.zs3),x.LFG(x.R0b),x.LFG(p.K0),x.LFG(T.Is),x.LFG(p.Ye),x.LFG(ve),x.LFG(x.QbO,8))},te.\u0275prov=x.Yz7({token:te,factory:te.\u0275fac}),te})();const vn=[{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"}],ke=new x.OlP("cdk-connected-overlay-scroll-strategy");let un=(()=>{class te{constructor(K){this.elementRef=K}}return te.\u0275fac=function(K){return new(K||te)(x.Y36(x.SBq))},te.\u0275dir=x.lG2({type:te,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),te})(),Dn=(()=>{class te{constructor(K,Tt,Rt,le,be){this._overlay=K,this._dir=be,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 x.vpe,this.positionChange=new x.vpe,this.attach=new x.vpe,this.detach=new x.vpe,this.overlayKeydown=new x.vpe,this.overlayOutsideClick=new x.vpe,this._templatePortal=new U.UE(Tt,Rt),this._scrollStrategyFactory=le,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(K){this._offsetX=K,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(K){this._offsetY=K,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(K){this._hasBackdrop=(0,v.Ig)(K)}get lockPosition(){return this._lockPosition}set lockPosition(K){this._lockPosition=(0,v.Ig)(K)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(K){this._flexibleDimensions=(0,v.Ig)(K)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(K){this._growAfterOpen=(0,v.Ig)(K)}get push(){return this._push}set push(K){this._push=(0,v.Ig)(K)}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(K){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),K.origin&&this.open&&this._position.apply()),K.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=vn);const K=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=K.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=K.detachments().subscribe(()=>this.detach.emit()),K.keydownEvents().subscribe(Tt=>{this.overlayKeydown.next(Tt),Tt.keyCode===W.hY&&!this.disableClose&&!(0,W.Vb)(Tt)&&(Tt.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(Tt=>{this.overlayOutsideClick.next(Tt)})}_buildConfig(){const K=this._position=this.positionStrategy||this._createPositionStrategy(),Tt=new At({direction:this._dir,positionStrategy:K,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(Tt.width=this.width),(this.height||0===this.height)&&(Tt.height=this.height),(this.minWidth||0===this.minWidth)&&(Tt.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(Tt.minHeight=this.minHeight),this.backdropClass&&(Tt.backdropClass=this.backdropClass),this.panelClass&&(Tt.panelClass=this.panelClass),Tt}_updatePositionStrategy(K){const Tt=this.positions.map(Rt=>({originX:Rt.originX,originY:Rt.originY,overlayX:Rt.overlayX,overlayY:Rt.overlayY,offsetX:Rt.offsetX||this.offsetX,offsetY:Rt.offsetY||this.offsetY,panelClass:Rt.panelClass||void 0}));return K.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(Tt).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const K=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(K),K}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof un?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(K=>{this.backdropClick.emit(K)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,V.o)(()=>this.positionChange.observers.length>0)).subscribe(K=>{this.positionChange.emit(K),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return te.\u0275fac=function(K){return new(K||te)(x.Y36(xe),x.Y36(x.Rgc),x.Y36(x.s_b),x.Y36(ke),x.Y36(T.Is,8))},te.\u0275dir=x.lG2({type:te,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:[x.TTD]}),te})();const _i={provide:ke,deps:[xe],useFactory:function ii(te){return()=>te.scrollStrategies.reposition()}};let oi=(()=>{class te{}return te.\u0275fac=function(K){return new(K||te)},te.\u0275mod=x.oAB({type:te}),te.\u0275inj=x.cJS({providers:[xe,_i],imports:[T.vT,U.eL,u.Cl,u.Cl]}),te})()},83353:(X,j,h)=>{"use strict";h.d(j,{Mq:()=>W,Oy:()=>qt,_i:()=>tt,ht:()=>Dt,i$:()=>L,kV:()=>bt,qK:()=>w,sA:()=>wt,t4:()=>v,ud:()=>t});var u=h(94650),p=h(36895);let x;try{x=typeof Intl<"u"&&Intl.v8BreakIterator}catch{x=!1}let T,v=(()=>{class Jt{constructor(At){this._platformId=At,this.isBrowser=this._platformId?(0,p.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&&!x)&&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 Jt.\u0275fac=function(At){return new(At||Jt)(u.LFG(u.Lbi))},Jt.\u0275prov=u.Yz7({token:Jt,factory:Jt.\u0275fac,providedIn:"root"}),Jt})(),t=(()=>{class Jt{}return Jt.\u0275fac=function(At){return new(At||Jt)},Jt.\u0275mod=u.oAB({type:Jt}),Jt.\u0275inj=u.cJS({}),Jt})();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 Jt=document.createElement("input");return T=new Set(U.filter(yt=>(Jt.setAttribute("type",yt),Jt.type===yt))),T}let P,N,V,st;function L(Jt){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}()?Jt:!!Jt.capture}function W(){if(null==V){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return V=!1,V;if("scrollBehavior"in document.documentElement.style)V=!0;else{const Jt=Element.prototype.scrollTo;V=!!Jt&&!/\{\s*\[native code\]\s*\}/.test(Jt.toString())}}return V}function tt(){if("object"!=typeof document||!document)return 0;if(null==N){const Jt=document.createElement("div"),yt=Jt.style;Jt.dir="rtl",yt.width="1px",yt.overflow="auto",yt.visibility="hidden",yt.pointerEvents="none",yt.position="absolute";const At=document.createElement("div"),xt=At.style;xt.width="2px",xt.height="1px",Jt.appendChild(At),document.body.appendChild(Jt),N=0,0===Jt.scrollLeft&&(Jt.scrollLeft=1,N=0===Jt.scrollLeft?1:2),Jt.remove()}return N}function bt(Jt){if(function ct(){if(null==st){const Jt=typeof document<"u"?document.head:null;st=!(!Jt||!Jt.createShadowRoot&&!Jt.attachShadow)}return st}()){const yt=Jt.getRootNode?Jt.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&yt instanceof ShadowRoot)return yt}return null}function Dt(){let Jt=typeof document<"u"&&document?document.activeElement:null;for(;Jt&&Jt.shadowRoot;){const yt=Jt.shadowRoot.activeElement;if(yt===Jt)break;Jt=yt}return Jt}function wt(Jt){return Jt.composedPath?Jt.composedPath()[0]:Jt.target}function qt(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},84080:(X,j,h)=>{"use strict";h.d(j,{C5:()=>O,Pl:()=>Dt,UE:()=>L,eL:()=>qt,en:()=>V,ig:()=>ct,u0:()=>tt});var u=h(94650),p=h(36895);class P{attach(At){return this._attachedHost=At,At.attach(this)}detach(){let At=this._attachedHost;null!=At&&(this._attachedHost=null,At.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(At){this._attachedHost=At}}class O extends P{constructor(At,xt,pt,Ot){super(),this.component=At,this.viewContainerRef=xt,this.injector=pt,this.componentFactoryResolver=Ot}}class L extends P{constructor(At,xt,pt,Ot){super(),this.templateRef=At,this.viewContainerRef=xt,this.context=pt,this.injector=Ot}get origin(){return this.templateRef.elementRef}attach(At,xt=this.context){return this.context=xt,super.attach(At)}detach(){return this.context=void 0,super.detach()}}class N extends P{constructor(At){super(),this.element=At instanceof u.SBq?At.nativeElement:At}}class V{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(At){return At instanceof O?(this._attachedPortal=At,this.attachComponentPortal(At)):At instanceof L?(this._attachedPortal=At,this.attachTemplatePortal(At)):this.attachDomPortal&&At instanceof N?(this._attachedPortal=At,this.attachDomPortal(At)):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(At){this._disposeFn=At}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class tt extends V{constructor(At,xt,pt,Ot,Bt){super(),this.outletElement=At,this._componentFactoryResolver=xt,this._appRef=pt,this._defaultInjector=Ot,this.attachDomPortal=St=>{const ce=St.element,Vt=this._document.createComment("dom-portal");ce.parentNode.insertBefore(Vt,ce),this.outletElement.appendChild(ce),this._attachedPortal=St,super.setDisposeFn(()=>{Vt.parentNode&&Vt.parentNode.replaceChild(ce,Vt)})},this._document=Bt}attachComponentPortal(At){const pt=(At.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(At.component);let Ot;return At.viewContainerRef?(Ot=At.viewContainerRef.createComponent(pt,At.viewContainerRef.length,At.injector||At.viewContainerRef.injector),this.setDisposeFn(()=>Ot.destroy())):(Ot=pt.create(At.injector||this._defaultInjector||u.zs3.NULL),this._appRef.attachView(Ot.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(Ot.hostView),Ot.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(Ot)),this._attachedPortal=At,Ot}attachTemplatePortal(At){let xt=At.viewContainerRef,pt=xt.createEmbeddedView(At.templateRef,At.context,{injector:At.injector});return pt.rootNodes.forEach(Ot=>this.outletElement.appendChild(Ot)),pt.detectChanges(),this.setDisposeFn(()=>{let Ot=xt.indexOf(pt);-1!==Ot&&xt.remove(Ot)}),this._attachedPortal=At,pt}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(At){return At.hostView.rootNodes[0]}}let ct=(()=>{class yt extends L{constructor(xt,pt){super(xt,pt)}}return yt.\u0275fac=function(xt){return new(xt||yt)(u.Y36(u.Rgc),u.Y36(u.s_b))},yt.\u0275dir=u.lG2({type:yt,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[u.qOj]}),yt})(),Dt=(()=>{class yt extends V{constructor(xt,pt,Ot){super(),this._componentFactoryResolver=xt,this._viewContainerRef=pt,this._isInitialized=!1,this.attached=new u.vpe,this.attachDomPortal=Bt=>{const St=Bt.element,ce=this._document.createComment("dom-portal");Bt.setAttachedHost(this),St.parentNode.insertBefore(ce,St),this._getRootNode().appendChild(St),this._attachedPortal=Bt,super.setDisposeFn(()=>{ce.parentNode&&ce.parentNode.replaceChild(St,ce)})},this._document=Ot}get portal(){return this._attachedPortal}set portal(xt){this.hasAttached()&&!xt&&!this._isInitialized||(this.hasAttached()&&super.detach(),xt&&super.attach(xt),this._attachedPortal=xt||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(xt){xt.setAttachedHost(this);const pt=null!=xt.viewContainerRef?xt.viewContainerRef:this._viewContainerRef,Bt=(xt.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(xt.component),St=pt.createComponent(Bt,pt.length,xt.injector||pt.injector);return pt!==this._viewContainerRef&&this._getRootNode().appendChild(St.hostView.rootNodes[0]),super.setDisposeFn(()=>St.destroy()),this._attachedPortal=xt,this._attachedRef=St,this.attached.emit(St),St}attachTemplatePortal(xt){xt.setAttachedHost(this);const pt=this._viewContainerRef.createEmbeddedView(xt.templateRef,xt.context,{injector:xt.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=xt,this._attachedRef=pt,this.attached.emit(pt),pt}_getRootNode(){const xt=this._viewContainerRef.element.nativeElement;return xt.nodeType===xt.ELEMENT_NODE?xt:xt.parentNode}}return yt.\u0275fac=function(xt){return new(xt||yt)(u.Y36(u._Vd),u.Y36(u.s_b),u.Y36(p.K0))},yt.\u0275dir=u.lG2({type:yt,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[u.qOj]}),yt})(),qt=(()=>{class yt{}return yt.\u0275fac=function(xt){return new(xt||yt)},yt.\u0275mod=u.oAB({type:yt}),yt.\u0275inj=u.cJS({}),yt})()},67376:(X,j,h)=>{"use strict";h.d(j,{Cl:()=>Ge,PQ:()=>yt,ZD:()=>Fe,mF:()=>Jt,rL:()=>xt});var u=h(21281),p=h(94650),x=h(8929),v=h(21086),t=h(56498),T=h(23753),P=(h(90352),h(8139),h(57138)),O=h(92198),L=h(7625),N=h(83353),V=h(36895),W=h(40445);let Jt=(()=>{class Gt{constructor(ne,jt,re){this._ngZone=ne,this._platform=jt,this._scrolled=new x.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=re}register(ne){this.scrollContainers.has(ne)||this.scrollContainers.set(ne,ne.elementScrolled().subscribe(()=>this._scrolled.next(ne)))}deregister(ne){const jt=this.scrollContainers.get(ne);jt&&(jt.unsubscribe(),this.scrollContainers.delete(ne))}scrolled(ne=20){return this._platform.isBrowser?new t.y(jt=>{this._globalSubscription||this._addGlobalListener();const re=ne>0?this._scrolled.pipe((0,P.e)(ne)).subscribe(jt):this._scrolled.subscribe(jt);return this._scrolledCount++,()=>{re.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,v.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((ne,jt)=>this.deregister(jt)),this._scrolled.complete()}ancestorScrolled(ne,jt){const re=this.getAncestorScrollContainers(ne);return this.scrolled(jt).pipe((0,O.h)(Xt=>!Xt||re.indexOf(Xt)>-1))}getAncestorScrollContainers(ne){const jt=[];return this.scrollContainers.forEach((re,Xt)=>{this._scrollableContainsElement(Xt,ne)&&jt.push(Xt)}),jt}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(ne,jt){let re=(0,u.fI)(jt),Xt=ne.getElementRef().nativeElement;do{if(re==Xt)return!0}while(re=re.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const ne=this._getWindow();return(0,T.R)(ne.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return Gt.\u0275fac=function(ne){return new(ne||Gt)(p.LFG(p.R0b),p.LFG(N.t4),p.LFG(V.K0,8))},Gt.\u0275prov=p.Yz7({token:Gt,factory:Gt.\u0275fac,providedIn:"root"}),Gt})(),yt=(()=>{class Gt{constructor(ne,jt,re,Xt){this.elementRef=ne,this.scrollDispatcher=jt,this.ngZone=re,this.dir=Xt,this._destroyed=new x.xQ,this._elementScrolled=new t.y(oe=>this.ngZone.runOutsideAngular(()=>(0,T.R)(this.elementRef.nativeElement,"scroll").pipe((0,L.R)(this._destroyed)).subscribe(oe)))}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(ne){const jt=this.elementRef.nativeElement,re=this.dir&&"rtl"==this.dir.value;null==ne.left&&(ne.left=re?ne.end:ne.start),null==ne.right&&(ne.right=re?ne.start:ne.end),null!=ne.bottom&&(ne.top=jt.scrollHeight-jt.clientHeight-ne.bottom),re&&0!=(0,N._i)()?(null!=ne.left&&(ne.right=jt.scrollWidth-jt.clientWidth-ne.left),2==(0,N._i)()?ne.left=ne.right:1==(0,N._i)()&&(ne.left=ne.right?-ne.right:ne.right)):null!=ne.right&&(ne.left=jt.scrollWidth-jt.clientWidth-ne.right),this._applyScrollToOptions(ne)}_applyScrollToOptions(ne){const jt=this.elementRef.nativeElement;(0,N.Mq)()?jt.scrollTo(ne):(null!=ne.top&&(jt.scrollTop=ne.top),null!=ne.left&&(jt.scrollLeft=ne.left))}measureScrollOffset(ne){const jt="left",Xt=this.elementRef.nativeElement;if("top"==ne)return Xt.scrollTop;if("bottom"==ne)return Xt.scrollHeight-Xt.clientHeight-Xt.scrollTop;const oe=this.dir&&"rtl"==this.dir.value;return"start"==ne?ne=oe?"right":jt:"end"==ne&&(ne=oe?jt:"right"),oe&&2==(0,N._i)()?ne==jt?Xt.scrollWidth-Xt.clientWidth-Xt.scrollLeft:Xt.scrollLeft:oe&&1==(0,N._i)()?ne==jt?Xt.scrollLeft+Xt.scrollWidth-Xt.clientWidth:-Xt.scrollLeft:ne==jt?Xt.scrollLeft:Xt.scrollWidth-Xt.clientWidth-Xt.scrollLeft}}return Gt.\u0275fac=function(ne){return new(ne||Gt)(p.Y36(p.SBq),p.Y36(Jt),p.Y36(p.R0b),p.Y36(W.Is,8))},Gt.\u0275dir=p.lG2({type:Gt,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),Gt})(),xt=(()=>{class Gt{constructor(ne,jt,re){this._platform=ne,this._change=new x.xQ,this._changeListener=Xt=>{this._change.next(Xt)},this._document=re,jt.runOutsideAngular(()=>{if(ne.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 ne=this._getWindow();ne.removeEventListener("resize",this._changeListener),ne.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const ne={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),ne}getViewportRect(){const ne=this.getViewportScrollPosition(),{width:jt,height:re}=this.getViewportSize();return{top:ne.top,left:ne.left,bottom:ne.top+re,right:ne.left+jt,height:re,width:jt}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const ne=this._document,jt=this._getWindow(),re=ne.documentElement,Xt=re.getBoundingClientRect();return{top:-Xt.top||ne.body.scrollTop||jt.scrollY||re.scrollTop||0,left:-Xt.left||ne.body.scrollLeft||jt.scrollX||re.scrollLeft||0}}change(ne=20){return ne>0?this._change.pipe((0,P.e)(ne)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const ne=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:ne.innerWidth,height:ne.innerHeight}:{width:0,height:0}}}return Gt.\u0275fac=function(ne){return new(ne||Gt)(p.LFG(N.t4),p.LFG(p.R0b),p.LFG(V.K0,8))},Gt.\u0275prov=p.Yz7({token:Gt,factory:Gt.\u0275fac,providedIn:"root"}),Gt})(),Fe=(()=>{class Gt{}return Gt.\u0275fac=function(ne){return new(ne||Gt)},Gt.\u0275mod=p.oAB({type:Gt}),Gt.\u0275inj=p.cJS({}),Gt})(),Ge=(()=>{class Gt{}return Gt.\u0275fac=function(ne){return new(ne||Gt)},Gt.\u0275mod=p.oAB({type:Gt}),Gt.\u0275inj=p.cJS({imports:[W.vT,Fe,W.vT,Fe]}),Gt})()},12138:(X,j,h)=>{"use strict";h.d(j,{B8:()=>wt,KL:()=>V,U5:()=>yt,be:()=>Dt,gx:()=>bt,po:()=>Jt,st:()=>qt,u6:()=>W});var u=h(12687),p=h(40445),x=h(21281),v=h(29521),t=h(94650),T=h(83353),U=h(8929),w=h(21086),P=h(1059),O=h(7625);function L(At,xt){1&At&&t.Hsn(0)}const N=["*"];let V=(()=>{class At{constructor(pt){this._elementRef=pt}focus(){this._elementRef.nativeElement.focus()}}return At.\u0275fac=function(pt){return new(pt||At)(t.Y36(t.SBq))},At.\u0275dir=t.lG2({type:At,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),At})(),W=(()=>{class At{constructor(pt){this.template=pt}}return At.\u0275fac=function(pt){return new(pt||At)(t.Y36(t.Rgc))},At.\u0275dir=t.lG2({type:At,selectors:[["","cdkStepLabel",""]]}),At})(),tt=0;const bt=new t.OlP("STEPPER_GLOBAL_OPTIONS");let Dt=(()=>{class At{constructor(pt,Ot){this._stepper=pt,this.interacted=!1,this.interactedStream=new t.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=Ot||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}get editable(){return this._editable}set editable(pt){this._editable=(0,x.Ig)(pt)}get optional(){return this._optional}set optional(pt){this._optional=(0,x.Ig)(pt)}get completed(){return this._completedOverride??this._getDefaultCompleted()}set completed(pt){this._completedOverride=(0,x.Ig)(pt)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return this._customError??this._getDefaultError()}set hasError(pt){this._customError=(0,x.Ig)(pt)}_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 At.\u0275fac=function(pt){return new(pt||At)(t.Y36((0,t.Gpc)(()=>wt)),t.Y36(bt,8))},At.\u0275cmp=t.Xpm({type:At,selectors:[["cdk-step"]],contentQueries:function(pt,Ot,Bt){if(1&pt&&t.Suo(Bt,W,5),2&pt){let St;t.iGM(St=t.CRH())&&(Ot.stepLabel=St.first)}},viewQuery:function(pt,Ot){if(1&pt&&t.Gf(t.Rgc,7),2&pt){let Bt;t.iGM(Bt=t.CRH())&&(Ot.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(pt,Ot){1&pt&&(t.F$t(),t.YNc(0,L,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),At})(),wt=(()=>{class At{constructor(pt,Ot,Bt){this._dir=pt,this._changeDetectorRef=Ot,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=tt++}get linear(){return this._linear}set linear(pt){this._linear=(0,x.Ig)(pt)}get selectedIndex(){return this._selectedIndex}set selectedIndex(pt){const Ot=(0,x.su)(pt);this.steps&&this._steps?(this._isValidIndex(Ot),this.selected?._markAsInteracted(),this._selectedIndex!==Ot&&!this._anyControlsInvalidOrPending(Ot)&&(Ot>=this._selectedIndex||this.steps.toArray()[Ot].editable)&&this._updateSelectedItemIndex(Ot)):this._selectedIndex=Ot}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(pt){this.selectedIndex=pt&&this.steps?this.steps.toArray().indexOf(pt):-1}get orientation(){return this._orientation}set orientation(pt){this._orientation=pt,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===pt)}ngAfterContentInit(){this._steps.changes.pipe((0,P.O)(this._steps),(0,O.R)(this._destroyed)).subscribe(pt=>{this.steps.reset(pt.filter(Ot=>Ot._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe((0,P.O)(this._stepHeader),(0,O.R)(this._destroyed)).subscribe(pt=>{this._sortedHeaders.reset(pt.toArray().sort((Ot,Bt)=>Ot._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(pt=>this._keyManager.withHorizontalOrientation(pt)),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(pt=>pt.reset()),this._stateChanged()}_getStepLabelId(pt){return`cdk-step-label-${this._groupId}-${pt}`}_getStepContentId(pt){return`cdk-step-content-${this._groupId}-${pt}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(pt){const Ot=pt-this._selectedIndex;return Ot<0?"rtl"===this._layoutDirection()?"next":"previous":Ot>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(pt,Ot="number"){const Bt=this.steps.toArray()[pt],St=this._isCurrentStep(pt);return Bt._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(Bt,St):this._getGuidelineLogic(Bt,St,Ot)}_getDefaultIndicatorLogic(pt,Ot){return pt._showError()&&pt.hasError&&!Ot?"error":!pt.completed||Ot?"number":pt.editable?"edit":"done"}_getGuidelineLogic(pt,Ot,Bt="number"){return pt._showError()&&pt.hasError&&!Ot?"error":pt.completed&&!Ot?"done":pt.completed&&Ot?Bt:pt.editable&&Ot?"edit":Bt}_isCurrentStep(pt){return this._selectedIndex===pt}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(pt){const Ot=this.steps.toArray();this.selectionChange.emit({selectedIndex:pt,previouslySelectedIndex:this._selectedIndex,selectedStep:Ot[pt],previouslySelectedStep:Ot[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(pt):this._keyManager.updateActiveItem(pt),this._selectedIndex=pt,this._stateChanged()}_onKeydown(pt){const Ot=(0,v.Vb)(pt),Bt=pt.keyCode,St=this._keyManager;null==St.activeItemIndex||Ot||Bt!==v.L_&&Bt!==v.K5?St.onKeydown(pt):(this.selectedIndex=St.activeItemIndex,pt.preventDefault())}_anyControlsInvalidOrPending(pt){return!!(this._linear&&pt>=0)&&this.steps.toArray().slice(0,pt).some(Ot=>{const Bt=Ot.stepControl;return(Bt?Bt.invalid||Bt.pending||!Ot.interacted:!Ot.completed)&&!Ot.optional&&!Ot._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const pt=this._elementRef.nativeElement,Ot=(0,T.ht)();return pt===Ot||pt.contains(Ot)}_isValidIndex(pt){return pt>-1&&(!this.steps||pt{class At{constructor(pt){this._stepper=pt,this.type="submit"}}return At.\u0275fac=function(pt){return new(pt||At)(t.Y36(wt))},At.\u0275dir=t.lG2({type:At,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(pt,Ot){1&pt&&t.NdJ("click",function(){return Ot._stepper.next()}),2&pt&&t.Ikx("type",Ot.type)},inputs:{type:"type"}}),At})(),Jt=(()=>{class At{constructor(pt){this._stepper=pt,this.type="button"}}return At.\u0275fac=function(pt){return new(pt||At)(t.Y36(wt))},At.\u0275dir=t.lG2({type:At,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(pt,Ot){1&pt&&t.NdJ("click",function(){return Ot._stepper.previous()}),2&pt&&t.Ikx("type",Ot.type)},inputs:{type:"type"}}),At})(),yt=(()=>{class At{}return At.\u0275fac=function(pt){return new(pt||At)},At.\u0275mod=t.oAB({type:At}),At.\u0275inj=t.cJS({imports:[p.vT]}),At})()},39349:(X,j,h)=>{"use strict";h.d(j,{IC:()=>V,Ky:()=>W,Lq:()=>L});var u=h(83353),p=h(94650),x=h(21281),v=h(68896),t=h(8929),T=h(23753),U=h(57138),w=h(7625),P=h(36895);const O=(0,u.i$)({passive:!0});let L=(()=>{class tt{constructor(ct,bt){this._platform=ct,this._ngZone=bt,this._monitoredElements=new Map}monitor(ct){if(!this._platform.isBrowser)return v.E;const bt=(0,x.fI)(ct),Dt=this._monitoredElements.get(bt);if(Dt)return Dt.subject;const wt=new t.xQ,qt="cdk-text-field-autofilled",Jt=yt=>{"cdk-text-field-autofill-start"!==yt.animationName||bt.classList.contains(qt)?"cdk-text-field-autofill-end"===yt.animationName&&bt.classList.contains(qt)&&(bt.classList.remove(qt),this._ngZone.run(()=>wt.next({target:yt.target,isAutofilled:!1}))):(bt.classList.add(qt),this._ngZone.run(()=>wt.next({target:yt.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{bt.addEventListener("animationstart",Jt,O),bt.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(bt,{subject:wt,unlisten:()=>{bt.removeEventListener("animationstart",Jt,O)}}),wt}stopMonitoring(ct){const bt=(0,x.fI)(ct),Dt=this._monitoredElements.get(bt);Dt&&(Dt.unlisten(),Dt.subject.complete(),bt.classList.remove("cdk-text-field-autofill-monitored"),bt.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(bt))}ngOnDestroy(){this._monitoredElements.forEach((ct,bt)=>this.stopMonitoring(bt))}}return tt.\u0275fac=function(ct){return new(ct||tt)(p.LFG(u.t4),p.LFG(p.R0b))},tt.\u0275prov=p.Yz7({token:tt,factory:tt.\u0275fac,providedIn:"root"}),tt})(),V=(()=>{class tt{constructor(ct,bt,Dt,wt){this._elementRef=ct,this._platform=bt,this._ngZone=Dt,this._destroyed=new t.xQ,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=qt=>{this._hasFocus="focus"===qt.type},this._document=wt,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(ct){this._minRows=(0,x.su)(ct),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(ct){this._maxRows=(0,x.su)(ct),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(ct){ct=(0,x.Ig)(ct),this._enabled!==ct&&((this._enabled=ct)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(ct){this._cachedPlaceholderHeight=void 0,ct?this._textareaElement.setAttribute("placeholder",ct):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const ct=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;ct&&(this._textareaElement.style.minHeight=ct)}_setMaxHeight(){const ct=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;ct&&(this._textareaElement.style.maxHeight=ct)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{const ct=this._getWindow();(0,T.R)(ct,"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 ct=this._textareaElement.cloneNode(!1);ct.rows=1,ct.style.position="absolute",ct.style.visibility="hidden",ct.style.border="none",ct.style.padding="0",ct.style.height="",ct.style.minHeight="",ct.style.maxHeight="",ct.style.overflow="hidden",this._textareaElement.parentNode.appendChild(ct),this._cachedLineHeight=ct.clientHeight,ct.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const ct=this._textareaElement,bt=ct.style.marginBottom||"",Dt=this._platform.FIREFOX,wt=Dt&&this._hasFocus,qt=Dt?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";wt&&(ct.style.marginBottom=`${ct.clientHeight}px`),ct.classList.add(qt);const Jt=ct.scrollHeight-4;return ct.classList.remove(qt),wt&&(ct.style.marginBottom=bt),Jt}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const ct=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=ct}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(ct=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const bt=this._elementRef.nativeElement,Dt=bt.value;if(!ct&&this._minRows===this._previousMinRows&&Dt===this._previousValue)return;const wt=this._measureScrollHeight(),qt=Math.max(wt,this._cachedPlaceholderHeight||0);bt.style.height=`${qt}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(bt)):setTimeout(()=>this._scrollToCaretPosition(bt))}),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(ct){const{selectionStart:bt,selectionEnd:Dt}=ct;!this._destroyed.isStopped&&this._hasFocus&&ct.setSelectionRange(bt,Dt)}}return tt.\u0275fac=function(ct){return new(ct||tt)(p.Y36(p.SBq),p.Y36(u.t4),p.Y36(p.R0b),p.Y36(P.K0,8))},tt.\u0275dir=p.lG2({type:tt,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(ct,bt){1&ct&&p.NdJ("input",function(){return bt._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),tt})(),W=(()=>{class tt{}return tt.\u0275fac=function(ct){return new(ct||tt)},tt.\u0275mod=p.oAB({type:tt}),tt.\u0275inj=p.cJS({}),tt})()},57851:(X,j,h)=>{"use strict";h.d(j,{C2:()=>V,HI:()=>tt,Hs:()=>xt,Ud:()=>Vt,VY:()=>W,XJ:()=>ce,Xx:()=>Bt,_0:()=>At,cu:()=>st,nZ:()=>fe,rO:()=>bt});var u=h(95017),p=h(54715),x=h(8929),v=h(591),t=h(21086),T=h(72986),U=h(92198),w=h(7625),P=h(94650),O=h(21281),L=h(40445);class N{constructor(){this.expansionModel=new u.Ov(!0)}toggle(Fe){this.expansionModel.toggle(this._trackByValue(Fe))}expand(Fe){this.expansionModel.select(this._trackByValue(Fe))}collapse(Fe){this.expansionModel.deselect(this._trackByValue(Fe))}isExpanded(Fe){return this.expansionModel.isSelected(this._trackByValue(Fe))}toggleDescendants(Fe){this.expansionModel.isSelected(this._trackByValue(Fe))?this.collapseDescendants(Fe):this.expandDescendants(Fe)}collapseAll(){this.expansionModel.clear()}expandDescendants(Fe){let Ge=[Fe];Ge.push(...this.getDescendants(Fe)),this.expansionModel.select(...Ge.map(Gt=>this._trackByValue(Gt)))}collapseDescendants(Fe){let Ge=[Fe];Ge.push(...this.getDescendants(Fe)),this.expansionModel.deselect(...Ge.map(Gt=>this._trackByValue(Gt)))}_trackByValue(Fe){return this.trackBy?this.trackBy(Fe):Fe}}class V extends N{constructor(Fe,Ge,Gt){super(),this.getLevel=Fe,this.isExpandable=Ge,this.options=Gt,this.options&&(this.trackBy=this.options.trackBy)}getDescendants(Fe){const Gt=[];for(let Te=this.dataNodes.indexOf(Fe)+1;Tethis._trackByValue(Fe)))}}class W extends N{constructor(Fe,Ge){super(),this.getChildren=Fe,this.options=Ge,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();const Fe=this.dataNodes.reduce((Ge,Gt)=>[...Ge,...this.getDescendants(Gt),Gt],[]);this.expansionModel.select(...Fe.map(Ge=>this._trackByValue(Ge)))}getDescendants(Fe){const Ge=[];return this._getDescendants(Ge,Fe),Ge.splice(1)}_getDescendants(Fe,Ge){Fe.push(Ge);const Gt=this.getChildren(Ge);Array.isArray(Gt)?Gt.forEach(Te=>this._getDescendants(Fe,Te)):(0,p.b)(Gt)&&Gt.pipe((0,T.q)(1),(0,U.h)(Boolean)).subscribe(Te=>{for(const ne of Te)this._getDescendants(Fe,ne)})}}const tt=new P.OlP("CDK_TREE_NODE_OUTLET_NODE");let st=(()=>{class Le{constructor(Ge,Gt){this.viewContainer=Ge,this._node=Gt}}return Le.\u0275fac=function(Ge){return new(Ge||Le)(P.Y36(P.s_b),P.Y36(tt,8))},Le.\u0275dir=P.lG2({type:Le,selectors:[["","cdkTreeNodeOutlet",""]]}),Le})();class ct{constructor(Fe){this.$implicit=Fe}}let bt=(()=>{class Le{constructor(Ge){this.template=Ge}}return Le.\u0275fac=function(Ge){return new(Ge||Le)(P.Y36(P.Rgc))},Le.\u0275dir=P.lG2({type:Le,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),Le})(),At=(()=>{class Le{constructor(Ge,Gt){this._differs=Ge,this._changeDetectorRef=Gt,this._onDestroy=new x.xQ,this._levels=new Map,this.viewChange=new v.X({start:0,end:Number.MAX_VALUE})}get dataSource(){return this._dataSource}set dataSource(Ge){this._dataSource!==Ge&&this._switchDataSource(Ge)}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 Ge=this._nodeDefs.filter(Gt=>!Gt.when);this._defaultNodeDef=Ge[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(Ge){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),Ge||this._nodeOutlet.viewContainer.clear(),this._dataSource=Ge,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let Ge;(0,u.Z9)(this._dataSource)?Ge=this._dataSource.connect(this):(0,p.b)(this._dataSource)?Ge=this._dataSource:Array.isArray(this._dataSource)&&(Ge=(0,t.of)(this._dataSource)),Ge&&(this._dataSubscription=Ge.pipe((0,w.R)(this._onDestroy)).subscribe(Gt=>this.renderNodeChanges(Gt)))}renderNodeChanges(Ge,Gt=this._dataDiffer,Te=this._nodeOutlet.viewContainer,ne){const jt=Gt.diff(Ge);!jt||(jt.forEachOperation((re,Xt,oe)=>{if(null==re.previousIndex)this.insertNode(Ge[oe],oe,Te,ne);else if(null==oe)Te.remove(Xt),this._levels.delete(re.item);else{const Me=Te.get(Xt);Te.move(Me,oe)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(Ge,Gt){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(ne=>ne.when&&ne.when(Gt,Ge))||this._defaultNodeDef}insertNode(Ge,Gt,Te,ne){const jt=this._getNodeDef(Ge,Gt),re=new ct(Ge);re.level=this.treeControl.getLevel?this.treeControl.getLevel(Ge):typeof ne<"u"&&this._levels.has(ne)?this._levels.get(ne)+1:0,this._levels.set(Ge,re.level),(Te||this._nodeOutlet.viewContainer).createEmbeddedView(jt.template,re,Gt),xt.mostRecentTreeNode&&(xt.mostRecentTreeNode.data=Ge)}}return Le.\u0275fac=function(Ge){return new(Ge||Le)(P.Y36(P.ZZ4),P.Y36(P.sBO))},Le.\u0275cmp=P.Xpm({type:Le,selectors:[["cdk-tree"]],contentQueries:function(Ge,Gt,Te){if(1&Ge&&P.Suo(Te,bt,5),2&Ge){let ne;P.iGM(ne=P.CRH())&&(Gt._nodeDefs=ne)}},viewQuery:function(Ge,Gt){if(1&Ge&&P.Gf(st,7),2&Ge){let Te;P.iGM(Te=P.CRH())&&(Gt._nodeOutlet=Te.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(Ge,Gt){1&Ge&&P.GkF(0,0)},dependencies:[st],encapsulation:2}),Le})(),xt=(()=>{class Le{constructor(Ge,Gt){this._elementRef=Ge,this._tree=Gt,this._destroyed=new x.xQ,this._dataChanges=new x.xQ,Le.mostRecentTreeNode=this,this.role="treeitem"}get role(){return"treeitem"}set role(Ge){this._elementRef.nativeElement.setAttribute("role",Ge)}get data(){return this._data}set data(Ge){Ge!==this._data&&(this._data=Ge,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 pt(Le){let Fe=Le.parentElement;for(;Fe&&!Ot(Fe);)Fe=Fe.parentElement;return Fe?Fe.classList.contains("cdk-nested-tree-node")?(0,O.su)(Fe.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngOnDestroy(){Le.mostRecentTreeNode===this&&(Le.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return Le.mostRecentTreeNode=null,Le.\u0275fac=function(Ge){return new(Ge||Le)(P.Y36(P.SBq),P.Y36(At))},Le.\u0275dir=P.lG2({type:Le,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(Ge,Gt){2&Ge&&P.uIk("aria-expanded",Gt.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]}),Le})();function Ot(Le){const Fe=Le.classList;return!(!Fe?.contains("cdk-nested-tree-node")&&!Fe?.contains("cdk-tree"))}let Bt=(()=>{class Le extends xt{constructor(Ge,Gt,Te){super(Ge,Gt),this._differs=Te}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);const Ge=this._tree.treeControl.getChildren(this.data);Array.isArray(Ge)?this.updateChildrenNodes(Ge):(0,p.b)(Ge)&&Ge.pipe((0,w.R)(this._destroyed)).subscribe(Gt=>this.updateChildrenNodes(Gt)),this.nodeOutlet.changes.pipe((0,w.R)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(Ge){const Gt=this._getNodeOutlet();Ge&&(this._children=Ge),Gt&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,Gt.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const Ge=this._getNodeOutlet();Ge&&(Ge.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const Ge=this.nodeOutlet;return Ge&&Ge.find(Gt=>!Gt._node||Gt._node===this)}}return Le.\u0275fac=function(Ge){return new(Ge||Le)(P.Y36(P.SBq),P.Y36(At),P.Y36(P.ZZ4))},Le.\u0275dir=P.lG2({type:Le,selectors:[["cdk-nested-tree-node"]],contentQueries:function(Ge,Gt,Te){if(1&Ge&&P.Suo(Te,st,5),2&Ge){let ne;P.iGM(ne=P.CRH())&&(Gt.nodeOutlet=ne)}},hostAttrs:[1,"cdk-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[P._Bn([{provide:xt,useExisting:Le},{provide:tt,useExisting:Le}]),P.qOj]}),Le})();const St=/([A-Za-z%]+)$/;let ce=(()=>{class Le{constructor(Ge,Gt,Te,ne){this._treeNode=Ge,this._tree=Gt,this._element=Te,this._dir=ne,this._destroyed=new x.xQ,this.indentUnits="px",this._indent=40,this._setPadding(),ne&&ne.change.pipe((0,w.R)(this._destroyed)).subscribe(()=>this._setPadding(!0)),Ge._dataChanges.subscribe(()=>this._setPadding())}get level(){return this._level}set level(Ge){this._setLevelInput(Ge)}get indent(){return this._indent}set indent(Ge){this._setIndentInput(Ge)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const Ge=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,Gt=this._level??Ge;return"number"==typeof Gt?`${Gt*this._indent}${this.indentUnits}`:null}_setPadding(Ge=!1){const Gt=this._paddingIndent();if(Gt!==this._currentPadding||Ge){const Te=this._element.nativeElement,ne=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",jt="paddingLeft"===ne?"paddingRight":"paddingLeft";Te.style[ne]=Gt||"",Te.style[jt]="",this._currentPadding=Gt}}_setLevelInput(Ge){this._level=(0,O.su)(Ge,null),this._setPadding()}_setIndentInput(Ge){let Gt=Ge,Te="px";if("string"==typeof Ge){const ne=Ge.split(St);Gt=ne[0],Te=ne[1]||Te}this.indentUnits=Te,this._indent=(0,O.su)(Gt),this._setPadding()}}return Le.\u0275fac=function(Ge){return new(Ge||Le)(P.Y36(xt),P.Y36(At),P.Y36(P.SBq),P.Y36(L.Is,8))},Le.\u0275dir=P.lG2({type:Le,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),Le})(),Vt=(()=>{class Le{constructor(Ge,Gt){this._tree=Ge,this._treeNode=Gt,this._recursive=!1}get recursive(){return this._recursive}set recursive(Ge){this._recursive=(0,O.Ig)(Ge)}_toggle(Ge){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),Ge.stopPropagation()}}return Le.\u0275fac=function(Ge){return new(Ge||Le)(P.Y36(At),P.Y36(xt))},Le.\u0275dir=P.lG2({type:Le,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(Ge,Gt){1&Ge&&P.NdJ("click",function(ne){return Gt._toggle(ne)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),Le})(),fe=(()=>{class Le{}return Le.\u0275fac=function(Ge){return new(Ge||Le)},Le.\u0275mod=P.oAB({type:Le}),Le.\u0275inj=P.cJS({}),Le})()},36895:(X,j,h)=>{"use strict";h.d(j,{Do:()=>wt,ED:()=>js,EM:()=>Ur,H9:()=>Wl,HT:()=>t,JF:()=>ms,JJ:()=>Dl,K0:()=>U,Mx:()=>zn,NF:()=>$l,Nd:()=>Wc,O5:()=>nr,Ov:()=>uc,PC:()=>ps,PM:()=>Pr,RF:()=>Sc,S$:()=>ct,V_:()=>O,Ye:()=>qt,b0:()=>Dt,bD:()=>qa,ez:()=>ed,i8:()=>Qc,mk:()=>Ki,n9:()=>Ml,q:()=>x,qS:()=>He,rS:()=>$s,sg:()=>ja,tP:()=>Hs,uU:()=>ll,w_:()=>T});var u=h(94650);let p=null;function x(){return p}function t(Pt){p||(p=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 x().getBaseHref(this._doc)}onPopState(Yt){const Ve=x().getGlobalEventTarget(this._doc,"window");return Ve.addEventListener("popstate",Yt,!1),()=>Ve.removeEventListener("popstate",Yt)}onHashChange(Yt){const Ve=x().getGlobalEventTarget(this._doc,"window");return Ve.addEventListener("hashchange",Yt,!1),()=>Ve.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,Ve,Ln){N()?this._history.pushState(Yt,Ve,Ln):this.location.hash=Ln}replaceState(Yt,Ve,Ln){N()?this._history.replaceState(Yt,Ve,Ln):this.location.hash=Ln}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 V(){return new L((0,u.LFG)(U))}()},providedIn:"platform"}),Pt})();function N(){return!!window.history.pushState}function W(Pt,de){if(0==Pt.length)return de;if(0==de.length)return Pt;let Yt=0;return Pt.endsWith("/")&&Yt++,de.startsWith("/")&&Yt++,2==Yt?Pt+de.substring(1):1==Yt?Pt+de:Pt+"/"+de}function tt(Pt){const de=Pt.match(/#|\?|$/),Yt=de&&de.index||Pt.length;return Pt.slice(0,Yt-("/"===Pt[Yt-1]?1:0))+Pt.slice(Yt)}function st(Pt){return Pt&&"?"!==Pt[0]?"?"+Pt:Pt}let ct=(()=>{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 bt=new u.OlP("appBaseHref");let Dt=(()=>{class Pt extends ct{constructor(Yt,Ve){super(),this._platformLocation=Yt,this._removeListenerFns=[],this._baseHref=Ve??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 W(this._baseHref,Yt)}path(Yt=!1){const Ve=this._platformLocation.pathname+st(this._platformLocation.search),Ln=this._platformLocation.hash;return Ln&&Yt?`${Ve}${Ln}`:Ve}pushState(Yt,Ve,Ln,kt){const ue=this.prepareExternalUrl(Ln+st(kt));this._platformLocation.pushState(Yt,Ve,ue)}replaceState(Yt,Ve,Ln,kt){const ue=this.prepareExternalUrl(Ln+st(kt));this._platformLocation.replaceState(Yt,Ve,ue)}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(bt,8))},Pt.\u0275prov=u.Yz7({token:Pt,factory:Pt.\u0275fac,providedIn:"root"}),Pt})(),wt=(()=>{class Pt extends ct{constructor(Yt,Ve){super(),this._platformLocation=Yt,this._baseHref="",this._removeListenerFns=[],null!=Ve&&(this._baseHref=Ve)}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 Ve=this._platformLocation.hash;return null==Ve&&(Ve="#"),Ve.length>0?Ve.substring(1):Ve}prepareExternalUrl(Yt){const Ve=W(this._baseHref,Yt);return Ve.length>0?"#"+Ve:Ve}pushState(Yt,Ve,Ln,kt){let ue=this.prepareExternalUrl(Ln+st(kt));0==ue.length&&(ue=this._platformLocation.pathname),this._platformLocation.pushState(Yt,Ve,ue)}replaceState(Yt,Ve,Ln,kt){let ue=this.prepareExternalUrl(Ln+st(kt));0==ue.length&&(ue=this._platformLocation.pathname),this._platformLocation.replaceState(Yt,Ve,ue)}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(bt,8))},Pt.\u0275prov=u.Yz7({token:Pt,factory:Pt.\u0275fac}),Pt})(),qt=(()=>{class Pt{constructor(Yt){this._subject=new u.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=Yt;const Ve=this._locationStrategy.getBaseHref();this._baseHref=tt(At(Ve)),this._locationStrategy.onPopState(Ln=>{this._subject.emit({url:this.path(!0),pop:!0,state:Ln.state,type:Ln.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(Yt=!1){return this.normalize(this._locationStrategy.path(Yt))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(Yt,Ve=""){return this.path()==this.normalize(Yt+st(Ve))}normalize(Yt){return Pt.stripTrailingSlash(function yt(Pt,de){return Pt&&de.startsWith(Pt)?de.substring(Pt.length):de}(this._baseHref,At(Yt)))}prepareExternalUrl(Yt){return Yt&&"/"!==Yt[0]&&(Yt="/"+Yt),this._locationStrategy.prepareExternalUrl(Yt)}go(Yt,Ve="",Ln=null){this._locationStrategy.pushState(Ln,"",Yt,Ve),this._notifyUrlChangeListeners(this.prepareExternalUrl(Yt+st(Ve)),Ln)}replaceState(Yt,Ve="",Ln=null){this._locationStrategy.replaceState(Ln,"",Yt,Ve),this._notifyUrlChangeListeners(this.prepareExternalUrl(Yt+st(Ve)),Ln)}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(Ve=>{this._notifyUrlChangeListeners(Ve.url,Ve.state)})),()=>{const Ve=this._urlChangeListeners.indexOf(Yt);this._urlChangeListeners.splice(Ve,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(Yt="",Ve){this._urlChangeListeners.forEach(Ln=>Ln(Yt,Ve))}subscribe(Yt,Ve,Ln){return this._subject.subscribe({next:Yt,error:Ve,complete:Ln})}}return Pt.normalizeQueryParams=st,Pt.joinWithSlash=W,Pt.stripTrailingSlash=tt,Pt.\u0275fac=function(Yt){return new(Yt||Pt)(u.LFG(ct))},Pt.\u0275prov=u.Yz7({token:Pt,factory:function(){return function Jt(){return new qt((0,u.LFG)(ct))}()},providedIn:"root"}),Pt})();function At(Pt){return Pt.replace(/\/index.html$/,"")}const xt={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 pt=(()=>((pt=pt||{})[pt.Decimal=0]="Decimal",pt[pt.Percent=1]="Percent",pt[pt.Currency=2]="Currency",pt[pt.Scientific=3]="Scientific",pt))(),Bt=(()=>((Bt=Bt||{})[Bt.Format=0]="Format",Bt[Bt.Standalone=1]="Standalone",Bt))(),St=(()=>((St=St||{})[St.Narrow=0]="Narrow",St[St.Abbreviated=1]="Abbreviated",St[St.Wide=2]="Wide",St[St.Short=3]="Short",St))(),ce=(()=>((ce=ce||{})[ce.Short=0]="Short",ce[ce.Medium=1]="Medium",ce[ce.Long=2]="Long",ce[ce.Full=3]="Full",ce))(),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 jt(Pt,de){return oi((0,u.cg1)(Pt)[u.wAp.DateFormat],de)}function re(Pt,de){return oi((0,u.cg1)(Pt)[u.wAp.TimeFormat],de)}function Xt(Pt,de){return oi((0,u.cg1)(Pt)[u.wAp.DateTimeFormat],de)}function oe(Pt,de){const Yt=(0,u.cg1)(Pt),Ve=Yt[u.wAp.NumberSymbols][de];if(typeof Ve>"u"){if(de===Vt.CurrencyDecimal)return Yt[u.wAp.NumberSymbols][Vt.Decimal];if(de===Vt.CurrencyGroup)return Yt[u.wAp.NumberSymbols][Vt.Group]}return Ve}function Me(Pt,de){return(0,u.cg1)(Pt)[u.wAp.NumberFormats][de]}function un(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,de){for(let Yt=de;Yt>-1;Yt--)if(typeof Pt[Yt]<"u")return Pt[Yt];throw new Error("Locale data API: locale data undefined")}function Qe(Pt){const[de,Yt]=Pt.split(":");return{hours:+de,minutes:+Yt}}const Tt=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Rt={},le=/((?:[^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 be=(()=>((be=be||{})[be.Short=0]="Short",be[be.ShortGMT=1]="ShortGMT",be[be.Long=2]="Long",be[be.Extended=3]="Extended",be))(),De=(()=>((De=De||{})[De.FullYear=0]="FullYear",De[De.Month=1]="Month",De[De.Date=2]="Date",De[De.Hours=3]="Hours",De[De.Minutes=4]="Minutes",De[De.Seconds=5]="Seconds",De[De.FractionalSeconds=6]="FractionalSeconds",De[De.Day=7]="Day",De))(),hn=(()=>((hn=hn||{})[hn.DayPeriods=0]="DayPeriods",hn[hn.Days=1]="Days",hn[hn.Months=2]="Months",hn[hn.Eras=3]="Eras",hn))();function qn(Pt,de,Yt,Ve){let Ln=function Ae(Pt){if(Sn(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[Ln,kt=1,ue=1]=Pt.split("-").map(Ce=>+Ce);return mi(Ln,kt-1,ue)}const Yt=parseFloat(Pt);if(!isNaN(Pt-Yt))return new Date(Yt);let Ve;if(Ve=Pt.match(Tt))return function Ie(Pt){const de=new Date(0);let Yt=0,Ve=0;const Ln=Pt[8]?de.setUTCFullYear:de.setFullYear,kt=Pt[8]?de.setUTCHours:de.setHours;Pt[9]&&(Yt=Number(Pt[9]+Pt[10]),Ve=Number(Pt[9]+Pt[11])),Ln.call(de,Number(Pt[1]),Number(Pt[2])-1,Number(Pt[3]));const ue=Number(Pt[4]||0)-Yt,Ce=Number(Pt[5]||0)-Ve,Ke=Number(Pt[6]||0),bn=Math.floor(1e3*parseFloat("0."+(Pt[7]||0)));return kt.call(de,ue,Ce,Ke,bn),de}(Ve)}const de=new Date(Pt);if(!Sn(de))throw new Error(`Unable to convert "${Pt}" into a date`);return de}(Pt);de=Di(Yt,de)||de;let Ce,ue=[];for(;de;){if(Ce=le.exec(de),!Ce){ue.push(de);break}{ue=ue.concat(Ce.slice(1));const Xn=ue.pop();if(!Xn)break;de=Xn}}let Ke=Ln.getTimezoneOffset();Ve&&(Ke=Nt(Ve,Ke),Ln=function zt(Pt,de,Yt){const Ve=Yt?-1:1,Ln=Pt.getTimezoneOffset();return function Se(Pt,de){return(Pt=new Date(Pt.getTime())).setMinutes(Pt.getMinutes()+de),Pt}(Pt,Ve*(Nt(de,Ln)-Ln))}(Ln,Ve,!0));let bn="";return ue.forEach(Xn=>{const ei=function ge(Pt){if(sn[Pt])return sn[Pt];let de;switch(Pt){case"G":case"GG":case"GGG":de=gn(hn.Eras,St.Abbreviated);break;case"GGGG":de=gn(hn.Eras,St.Wide);break;case"GGGGG":de=gn(hn.Eras,St.Narrow);break;case"y":de=Vn(De.FullYear,1,0,!1,!0);break;case"yy":de=Vn(De.FullYear,2,0,!0,!0);break;case"yyy":de=Vn(De.FullYear,3,0,!1,!0);break;case"yyyy":de=Vn(De.FullYear,4,0,!1,!0);break;case"Y":de=fn(1);break;case"YY":de=fn(2,!0);break;case"YYY":de=fn(3);break;case"YYYY":de=fn(4);break;case"M":case"L":de=Vn(De.Month,1,1);break;case"MM":case"LL":de=Vn(De.Month,2,1);break;case"MMM":de=gn(hn.Months,St.Abbreviated);break;case"MMMM":de=gn(hn.Months,St.Wide);break;case"MMMMM":de=gn(hn.Months,St.Narrow);break;case"LLL":de=gn(hn.Months,St.Abbreviated,Bt.Standalone);break;case"LLLL":de=gn(hn.Months,St.Wide,Bt.Standalone);break;case"LLLLL":de=gn(hn.Months,St.Narrow,Bt.Standalone);break;case"w":de=rn(1);break;case"ww":de=rn(2);break;case"W":de=rn(1,!0);break;case"d":de=Vn(De.Date,1);break;case"dd":de=Vn(De.Date,2);break;case"c":case"cc":de=Vn(De.Day,1);break;case"ccc":de=gn(hn.Days,St.Abbreviated,Bt.Standalone);break;case"cccc":de=gn(hn.Days,St.Wide,Bt.Standalone);break;case"ccccc":de=gn(hn.Days,St.Narrow,Bt.Standalone);break;case"cccccc":de=gn(hn.Days,St.Short,Bt.Standalone);break;case"E":case"EE":case"EEE":de=gn(hn.Days,St.Abbreviated);break;case"EEEE":de=gn(hn.Days,St.Wide);break;case"EEEEE":de=gn(hn.Days,St.Narrow);break;case"EEEEEE":de=gn(hn.Days,St.Short);break;case"a":case"aa":case"aaa":de=gn(hn.DayPeriods,St.Abbreviated);break;case"aaaa":de=gn(hn.DayPeriods,St.Wide);break;case"aaaaa":de=gn(hn.DayPeriods,St.Narrow);break;case"b":case"bb":case"bbb":de=gn(hn.DayPeriods,St.Abbreviated,Bt.Standalone,!0);break;case"bbbb":de=gn(hn.DayPeriods,St.Wide,Bt.Standalone,!0);break;case"bbbbb":de=gn(hn.DayPeriods,St.Narrow,Bt.Standalone,!0);break;case"B":case"BB":case"BBB":de=gn(hn.DayPeriods,St.Abbreviated,Bt.Format,!0);break;case"BBBB":de=gn(hn.DayPeriods,St.Wide,Bt.Format,!0);break;case"BBBBB":de=gn(hn.DayPeriods,St.Narrow,Bt.Format,!0);break;case"h":de=Vn(De.Hours,1,-12);break;case"hh":de=Vn(De.Hours,2,-12);break;case"H":de=Vn(De.Hours,1);break;case"HH":de=Vn(De.Hours,2);break;case"m":de=Vn(De.Minutes,1);break;case"mm":de=Vn(De.Minutes,2);break;case"s":de=Vn(De.Seconds,1);break;case"ss":de=Vn(De.Seconds,2);break;case"S":de=Vn(De.FractionalSeconds,1);break;case"SS":de=Vn(De.FractionalSeconds,2);break;case"SSS":de=Vn(De.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":de=Ee(be.Short);break;case"ZZZZZ":de=Ee(be.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":de=Ee(be.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":de=Ee(be.Long);break;default:return null}return sn[Pt]=de,de}(Xn);bn+=ei?ei(Ln,Yt,Ke):"''"===Xn?"'":Xn.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),bn}function mi(Pt,de,Yt){const Ve=new Date(0);return Ve.setFullYear(Pt,de,Yt),Ve.setHours(0,0,0),Ve}function Di(Pt,de){const Yt=function fe(Pt){return(0,u.cg1)(Pt)[u.wAp.LocaleId]}(Pt);if(Rt[Yt]=Rt[Yt]||{},Rt[Yt][de])return Rt[Yt][de];let Ve="";switch(de){case"shortDate":Ve=jt(Pt,ce.Short);break;case"mediumDate":Ve=jt(Pt,ce.Medium);break;case"longDate":Ve=jt(Pt,ce.Long);break;case"fullDate":Ve=jt(Pt,ce.Full);break;case"shortTime":Ve=re(Pt,ce.Short);break;case"mediumTime":Ve=re(Pt,ce.Medium);break;case"longTime":Ve=re(Pt,ce.Long);break;case"fullTime":Ve=re(Pt,ce.Full);break;case"short":const Ln=Di(Pt,"shortTime"),kt=Di(Pt,"shortDate");Ve=bo(Xt(Pt,ce.Short),[Ln,kt]);break;case"medium":const ue=Di(Pt,"mediumTime"),Ce=Di(Pt,"mediumDate");Ve=bo(Xt(Pt,ce.Medium),[ue,Ce]);break;case"long":const Ke=Di(Pt,"longTime"),bn=Di(Pt,"longDate");Ve=bo(Xt(Pt,ce.Long),[Ke,bn]);break;case"full":const Xn=Di(Pt,"fullTime"),ei=Di(Pt,"fullDate");Ve=bo(Xt(Pt,ce.Full),[Xn,ei])}return Ve&&(Rt[Yt][de]=Ve),Ve}function bo(Pt,de){return de&&(Pt=Pt.replace(/\{([^}]+)}/g,function(Yt,Ve){return null!=de&&Ve in de?de[Ve]:Yt})),Pt}function hi(Pt,de,Yt="-",Ve,Ln){let kt="";(Pt<0||Ln&&Pt<=0)&&(Ln?Pt=1-Pt:(Pt=-Pt,kt=Yt));let ue=String(Pt);for(;ue.length0||Ce>-Yt)&&(Ce+=Yt),Pt===De.Hours)0===Ce&&-12===Yt&&(Ce=12);else if(Pt===De.FractionalSeconds)return function Yn(Pt,de){return hi(Pt,3).substring(0,de)}(Ce,de);const Ke=oe(ue,Vt.MinusSign);return hi(Ce,de,Ke,Ve,Ln)}}function gn(Pt,de,Yt=Bt.Format,Ve=!1){return function(Ln,kt){return function Ye(Pt,de,Yt,Ve,Ln,kt){switch(Yt){case hn.Months:return function Ge(Pt,de,Yt){const Ve=(0,u.cg1)(Pt),kt=oi([Ve[u.wAp.MonthsFormat],Ve[u.wAp.MonthsStandalone]],de);return oi(kt,Yt)}(de,Ln,Ve)[Pt.getMonth()];case hn.Days:return function Fe(Pt,de,Yt){const Ve=(0,u.cg1)(Pt),kt=oi([Ve[u.wAp.DaysFormat],Ve[u.wAp.DaysStandalone]],de);return oi(kt,Yt)}(de,Ln,Ve)[Pt.getDay()];case hn.DayPeriods:const ue=Pt.getHours(),Ce=Pt.getMinutes();if(kt){const bn=function Dn(Pt){const de=(0,u.cg1)(Pt);return un(de),(de[u.wAp.ExtraData][2]||[]).map(Ve=>"string"==typeof Ve?Qe(Ve):[Qe(Ve[0]),Qe(Ve[1])])}(de),Xn=function ii(Pt,de,Yt){const Ve=(0,u.cg1)(Pt);un(Ve);const kt=oi([Ve[u.wAp.ExtraData][0],Ve[u.wAp.ExtraData][1]],de)||[];return oi(kt,Yt)||[]}(de,Ln,Ve),ei=bn.findIndex(Ai=>{if(Array.isArray(Ai)){const[wi,xo]=Ai,xi=ue>=wi.hours&&Ce>=wi.minutes,Yi=ue0?Math.floor(Ln/60):Math.ceil(Ln/60);switch(Pt){case be.Short:return(Ln>=0?"+":"")+hi(ue,2,kt)+hi(Math.abs(Ln%60),2,kt);case be.ShortGMT:return"GMT"+(Ln>=0?"+":"")+hi(ue,1,kt);case be.Long:return"GMT"+(Ln>=0?"+":"")+hi(ue,2,kt)+":"+hi(Math.abs(Ln%60),2,kt);case be.Extended:return 0===Ve?"Z":(Ln>=0?"+":"")+hi(ue,2,kt)+":"+hi(Math.abs(Ln%60),2,kt);default:throw new Error(`Unknown zone width "${Pt}"`)}}}function ie(Pt){return mi(Pt.getFullYear(),Pt.getMonth(),Pt.getDate()+(4-Pt.getDay()))}function rn(Pt,de=!1){return function(Yt,Ve){let Ln;if(de){const kt=new Date(Yt.getFullYear(),Yt.getMonth(),1).getDay()-1,ue=Yt.getDate();Ln=1+Math.floor((ue+kt)/7)}else{const kt=ie(Yt),ue=function ze(Pt){const de=mi(Pt,0,1).getDay();return mi(Pt,0,1+(de<=4?4:11)-de)}(kt.getFullYear()),Ce=kt.getTime()-ue.getTime();Ln=1+Math.round(Ce/6048e5)}return hi(Ln,Pt,oe(Ve,Vt.MinusSign))}}function fn(Pt,de=!1){return function(Yt,Ve){return hi(ie(Yt).getFullYear(),Pt,oe(Ve,Vt.MinusSign),de)}}const sn={};function Nt(Pt,de){Pt=Pt.replace(/:/g,"");const Yt=Date.parse("Jan 01, 1970 00:00:00 "+Pt)/6e4;return isNaN(Yt)?de:Yt}function Sn(Pt){return Pt instanceof Date&&!isNaN(Pt.valueOf())}const Ei=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function Lo(Pt,de,Yt,Ve,Ln,kt,ue=!1){let Ce="",Ke=!1;if(isFinite(Pt)){let bn=function we(Pt){let Ve,Ln,kt,ue,Ce,de=Math.abs(Pt)+"",Yt=0;for((Ln=de.indexOf("."))>-1&&(de=de.replace(".","")),(kt=de.search(/e/i))>0?(Ln<0&&(Ln=kt),Ln+=+de.slice(kt+1),de=de.substring(0,kt)):Ln<0&&(Ln=de.length),kt=0;"0"===de.charAt(kt);kt++);if(kt===(Ce=de.length))Ve=[0],Ln=1;else{for(Ce--;"0"===de.charAt(Ce);)Ce--;for(Ln-=kt,Ve=[],ue=0;kt<=Ce;kt++,ue++)Ve[ue]=Number(de.charAt(kt))}return Ln>22&&(Ve=Ve.splice(0,21),Yt=Ln-1,Ln=1),{digits:Ve,exponent:Yt,integerLen:Ln}}(Pt);ue&&(bn=function Re(Pt){if(0===Pt.digits[0])return Pt;const de=Pt.digits.length-Pt.integerLen;return Pt.exponent?Pt.exponent+=2:(0===de?Pt.digits.push(0,0):1===de&&Pt.digits.push(0),Pt.integerLen+=2),Pt}(bn));let Xn=de.minInt,ei=de.minFrac,Ai=de.maxFrac;if(kt){const oa=kt.match(Ei);if(null===oa)throw new Error(`${kt} is not a valid digit info`);const xa=oa[1],Xr=oa[3],vs=oa[5];null!=xa&&(Xn=Q(xa)),null!=Xr&&(ei=Q(Xr)),null!=vs?Ai=Q(vs):null!=Xr&&ei>Ai&&(Ai=ei)}!function on(Pt,de,Yt){if(de>Yt)throw new Error(`The minimum number of digits after fraction (${de}) is higher than the maximum (${Yt}).`);let Ve=Pt.digits,Ln=Ve.length-Pt.integerLen;const kt=Math.min(Math.max(de,Ln),Yt);let ue=kt+Pt.integerLen,Ce=Ve[ue];if(ue>0){Ve.splice(Math.max(Pt.integerLen,ue));for(let ei=ue;ei=5)if(ue-1<0){for(let ei=0;ei>ue;ei--)Ve.unshift(0),Pt.integerLen++;Ve.unshift(1),Pt.integerLen++}else Ve[ue-1]++;for(;Ln=bn?xo.pop():Ke=!1),Ai>=10?1:0},0);Xn&&(Ve.unshift(Xn),Pt.integerLen++)}(bn,ei,Ai);let wi=bn.digits,xo=bn.integerLen;const xi=bn.exponent;let Yi=[];for(Ke=wi.every(oa=>!oa);xo0?Yi=wi.splice(xo,wi.length):(Yi=wi,wi=[0]);const pa=[];for(wi.length>=de.lgSize&&pa.unshift(wi.splice(-de.lgSize,wi.length).join(""));wi.length>de.gSize;)pa.unshift(wi.splice(-de.gSize,wi.length).join(""));wi.length&&pa.unshift(wi.join("")),Ce=pa.join(oe(Yt,Ve)),Yi.length&&(Ce+=oe(Yt,Ln)+Yi.join("")),xi&&(Ce+=oe(Yt,Vt.Exponential)+"+"+xi)}else Ce=oe(Yt,Vt.Infinity);return Ce=Pt<0&&!Ke?de.negPre+Ce+de.negSuf:de.posPre+Ce+de.posSuf,Ce}function Rn(Pt,de="-"){const Yt={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},Ve=Pt.split(";"),Ln=Ve[0],kt=Ve[1],ue=-1!==Ln.indexOf(".")?Ln.split("."):[Ln.substring(0,Ln.lastIndexOf("0")+1),Ln.substring(Ln.lastIndexOf("0")+1)],Ce=ue[0],Ke=ue[1]||"";Yt.posPre=Ce.substring(0,Ce.indexOf("#"));for(let Xn=0;Xn{class Pt{constructor(Yt,Ve,Ln,kt){this._iterableDiffers=Yt,this._keyValueDiffers=Ve,this._ngEl=Ln,this._renderer=kt,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(Ve=>this._toggleClass(Ve.key,Ve.currentValue)),Yt.forEachChangedItem(Ve=>this._toggleClass(Ve.key,Ve.currentValue)),Yt.forEachRemovedItem(Ve=>{Ve.previousValue&&this._toggleClass(Ve.key,!1)})}_applyIterableChanges(Yt){Yt.forEachAddedItem(Ve=>{if("string"!=typeof Ve.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,u.AaK)(Ve.item)}`);this._toggleClass(Ve.item,!0)}),Yt.forEachRemovedItem(Ve=>this._toggleClass(Ve.item,!1))}_applyClasses(Yt){Yt&&(Array.isArray(Yt)||Yt instanceof Set?Yt.forEach(Ve=>this._toggleClass(Ve,!0)):Object.keys(Yt).forEach(Ve=>this._toggleClass(Ve,!!Yt[Ve])))}_removeClasses(Yt){Yt&&(Array.isArray(Yt)||Yt instanceof Set?Yt.forEach(Ve=>this._toggleClass(Ve,!1)):Object.keys(Yt).forEach(Ve=>this._toggleClass(Ve,!1)))}_toggleClass(Yt,Ve){(Yt=Yt.trim())&&Yt.split(/\s+/g).forEach(Ln=>{Ve?this._renderer.addClass(this._ngEl.nativeElement,Ln):this._renderer.removeClass(this._ngEl.nativeElement,Ln)})}}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 $r{constructor(de,Yt,Ve,Ln){this.$implicit=de,this.ngForOf=Yt,this.index=Ve,this.count=Ln}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,Ve,Ln){this._viewContainer=Yt,this._template=Ve,this._differs=Ln,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 Ve=this._viewContainer;Yt.forEachOperation((Ln,kt,ue)=>{if(null==Ln.previousIndex)Ve.createEmbeddedView(this._template,new $r(Ln.item,this._ngForOf,-1,-1),null===ue?void 0:ue);else if(null==ue)Ve.remove(null===kt?void 0:kt);else if(null!==kt){const Ce=Ve.get(kt);Ve.move(Ce,ue),Er(Ce,Ln)}});for(let Ln=0,kt=Ve.length;Ln{Er(Ve.get(Ln.currentIndex),Ln)})}static ngTemplateContextGuard(Yt,Ve){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 Er(Pt,de){Pt.context.$implicit=de.item}let nr=(()=>{class Pt{constructor(Yt,Ve){this._viewContainer=Yt,this._context=new ds,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Ve}set ngIf(Yt){this._context.$implicit=this._context.ngIf=Yt,this._updateView()}set ngIfThen(Yt){Tr("ngIfThen",Yt),this._thenTemplateRef=Yt,this._thenViewRef=null,this._updateView()}set ngIfElse(Yt){Tr("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,Ve){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 ds{constructor(){this.$implicit=null,this.ngIf=null}}function Tr(Pt,de){if(de&&!de.createEmbeddedView)throw new Error(`${Pt} must be a TemplateRef, but received '${(0,u.AaK)(de)}'.`)}class Ar{constructor(de,Yt){this._viewContainerRef=de,this._templateRef=Yt,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(de){de&&!this._created?this.create():!de&&this._created&&this.destroy()}}let Sc=(()=>{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 Ve=Yt==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Ve,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Ve}_updateDefaultCases(Yt){if(this._defaultViews&&Yt!==this._defaultUsed){this._defaultUsed=Yt;for(let Ve=0;Ve{class Pt{constructor(Yt,Ve,Ln){this.ngSwitch=Ln,Ln._addCase(),this._view=new Ar(Yt,Ve)}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(Sc,9))},Pt.\u0275dir=u.lG2({type:Pt,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),Pt})(),js=(()=>{class Pt{constructor(Yt,Ve,Ln){Ln._addDefault(new Ar(Yt,Ve))}}return Pt.\u0275fac=function(Yt){return new(Yt||Pt)(u.Y36(u.s_b),u.Y36(u.Rgc),u.Y36(Sc,9))},Pt.\u0275dir=u.lG2({type:Pt,selectors:[["","ngSwitchDefault",""]],standalone:!0}),Pt})(),ps=(()=>{class Pt{constructor(Yt,Ve,Ln){this._ngEl=Yt,this._differs=Ve,this._renderer=Ln,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,Ve){const[Ln,kt]=Yt.split("."),ue=-1===Ln.indexOf("-")?void 0:u.JOm.DashCase;null!=Ve?this._renderer.setStyle(this._ngEl.nativeElement,Ln,kt?`${Ve}${kt}`:Ve,ue):this._renderer.removeStyle(this._ngEl.nativeElement,Ln,ue)}_applyChanges(Yt){Yt.forEachRemovedItem(Ve=>this._setStyle(Ve.key,null)),Yt.forEachAddedItem(Ve=>this._setStyle(Ve.key,Ve.currentValue)),Yt.forEachChangedItem(Ve=>this._setStyle(Ve.key,Ve.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 Ve=this._viewContainerRef;if(this._viewRef&&Ve.remove(Ve.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:Ln,ngTemplateOutletContext:kt,ngTemplateOutletInjector:ue}=this;this._viewRef=Ve.createEmbeddedView(Ln,kt,ue?{injector:ue}: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 Fr(Pt,de){return new u.vHH(2100,!1)}class Ud{createSubscription(de,Yt){return de.subscribe({next:Yt,error:Ve=>{throw Ve}})}dispose(de){de.unsubscribe()}}class jd{createSubscription(de,Yt){return de.then(Yt,Ve=>{throw Ve})}dispose(de){}}const Gc=new jd,lc=new Ud;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,Ve=>this._updateLatestValue(Yt,Ve))}_selectStrategy(Yt){if((0,u.QGY)(Yt))return Gc;if((0,u.F4k)(Yt))return lc;throw Fr()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(Yt,Ve){Yt===this._obj&&(this._latestValue=Ve,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})(),Qc=(()=>{class Pt{transform(Yt){if(null==Yt)return null;if("string"!=typeof Yt)throw Fr();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 jc=/(?:[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 $s=(()=>{class Pt{transform(Yt){if(null==Yt)return null;if("string"!=typeof Yt)throw Fr();return Yt.replace(jc,Ve=>Ve[0].toUpperCase()+Ve.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 Ks=new u.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let ll=(()=>{class Pt{constructor(Yt,Ve){this.locale=Yt,this.defaultTimezone=Ve}transform(Yt,Ve="mediumDate",Ln,kt){if(null==Yt||""===Yt||Yt!=Yt)return null;try{return qn(Yt,Ve,kt||this.locale,Ln??this.defaultTimezone??void 0)}catch(ue){throw Fr()}}}return Pt.\u0275fac=function(Yt){return new(Yt||Pt)(u.Y36(u.soG,16),u.Y36(Ks,24))},Pt.\u0275pipe=u.Yjl({name:"date",type:Pt,pure:!0,standalone:!0}),Pt})(),Wc=(()=>{class Pt{constructor(Yt){this.differs=Yt,this.keyValues=[],this.compareFn=Xs}transform(Yt,Ve=Xs){if(!Yt||!(Yt instanceof Map)&&"object"!=typeof Yt)return null;this.differ||(this.differ=this.differs.find(Yt).create());const Ln=this.differ.diff(Yt),kt=Ve!==this.compareFn;return Ln&&(this.keyValues=[],Ln.forEachItem(ue=>{this.keyValues.push(function Ys(Pt,de){return{key:Pt,value:de}}(ue.key,ue.currentValue))})),(Ln||kt)&&(this.keyValues.sort(Ve),this.compareFn=Ve),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 Xs(Pt,de){const Yt=Pt.key,Ve=de.key;if(Yt===Ve)return 0;if(void 0===Yt)return 1;if(void 0===Ve)return-1;if(null===Yt)return 1;if(null===Ve)return-1;if("string"==typeof Yt&&"string"==typeof Ve)return Yt{class Pt{constructor(Yt){this._locale=Yt}transform(Yt,Ve,Ln){if(!Ca(Yt))return null;Ln=Ln||this._locale;try{return function Ne(Pt,de,Yt){return Lo(Pt,Rn(Me(de,pt.Decimal),oe(de,Vt.MinusSign)),de,Vt.Group,Vt.Decimal,Yt)}(ir(Yt),Ln,Ve)}catch(kt){throw Fr()}}}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})(),Wl=(()=>{class Pt{constructor(Yt,Ve="USD"){this._locale=Yt,this._defaultCurrencyCode=Ve}transform(Yt,Ve=this._defaultCurrencyCode,Ln="symbol",kt,ue){if(!Ca(Yt))return null;ue=ue||this._locale,"boolean"==typeof Ln&&(Ln=Ln?"symbol":"code");let Ce=Ve||this._defaultCurrencyCode;"code"!==Ln&&(Ce="symbol"===Ln||"symbol-narrow"===Ln?function te(Pt,de,Yt="en"){const Ve=function vn(Pt){return(0,u.cg1)(Pt)[u.wAp.Currencies]}(Yt)[Pt]||xt[Pt]||[],Ln=Ve[1];return"narrow"===de&&"string"==typeof Ln?Ln:Ve[0]||Pt}(Ce,"symbol"===Ln?"wide":"narrow",ue):Ln);try{return function ha(Pt,de,Yt,Ve,Ln){const ue=Rn(Me(de,pt.Currency),oe(de,Vt.MinusSign));return ue.minFrac=function K(Pt){let de;const Yt=xt[Pt];return Yt&&(de=Yt[2]),"number"==typeof de?de:2}(Ve),ue.maxFrac=ue.minFrac,Lo(Pt,ue,de,Vt.CurrencyGroup,Vt.CurrencyDecimal,Ln).replace("\xa4",Yt).replace("\xa4","").trim()}(ir(Yt),ue,Ce,Ve,kt)}catch(Ke){throw Fr()}}}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 Ca(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 ed=(()=>{class Pt{}return Pt.\u0275fac=function(Yt){return new(Yt||Pt)},Pt.\u0275mod=u.oAB({type:Pt}),Pt.\u0275inj=u.cJS({}),Pt})();const qa="browser";function $l(Pt){return Pt===qa}function Pr(Pt){return"server"===Pt}let Ur=(()=>{class Pt{}return Pt.\u0275prov=(0,u.Yz7)({token:Pt,providedIn:"root",factory:()=>new vr((0,u.LFG)(U),window)}),Pt})();class vr{constructor(de,Yt){this.document=de,this.window=Yt,this.offset=()=>[0,0]}setOffset(de){this.offset=Array.isArray(de)?()=>de:de}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(de){this.supportsScrolling()&&this.window.scrollTo(de[0],de[1])}scrollToAnchor(de){if(!this.supportsScrolling())return;const Yt=function Qn(Pt,de){const Yt=Pt.getElementById(de)||Pt.getElementsByName(de)[0];if(Yt)return Yt;if("function"==typeof Pt.createTreeWalker&&Pt.body&&(Pt.body.createShadowRoot||Pt.body.attachShadow)){const Ve=Pt.createTreeWalker(Pt.body,NodeFilter.SHOW_ELEMENT);let Ln=Ve.currentNode;for(;Ln;){const kt=Ln.shadowRoot;if(kt){const ue=kt.getElementById(de)||kt.querySelector(`[name="${de}"]`);if(ue)return ue}Ln=Ve.nextNode()}}return null}(this.document,de);Yt&&(this.scrollToElement(Yt),Yt.focus())}setHistoryScrollRestoration(de){if(this.supportScrollRestoration()){const Yt=this.window.history;Yt&&Yt.scrollRestoration&&(Yt.scrollRestoration=de)}}scrollToElement(de){const Yt=de.getBoundingClientRect(),Ve=Yt.left+this.window.pageXOffset,Ln=Yt.top+this.window.pageYOffset,kt=this.offset();this.window.scrollTo(Ve-kt[0],Ln-kt[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const de=as(this.window.history)||as(Object.getPrototypeOf(this.window.history));return!(!de||!de.writable&&!de.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function as(Pt){return Object.getOwnPropertyDescriptor(Pt,"scrollRestoration")}class ms{}},80529:(X,j,h)=>{"use strict";h.d(j,{JF:()=>K,LE:()=>bt,PG:()=>w,TP:()=>Fe,Zn:()=>ce,eN:()=>fe});var u=h(36895),p=h(94650),x=h(21086),v=h(56498),t=h(21406),T=h(92198),U=h(24850);class w{}class P{}class O{constructor(be){this.normalizedNames=new Map,this.lazyUpdate=null,be?this.lazyInit="string"==typeof be?()=>{this.headers=new Map,be.split("\n").forEach(De=>{const hn=De.indexOf(":");if(hn>0){const qn=De.slice(0,hn),mi=qn.toLowerCase(),Di=De.slice(hn+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(be).forEach(De=>{let hn=be[De];const qn=De.toLowerCase();"string"==typeof hn&&(hn=[hn]),hn.length>0&&(this.headers.set(qn,hn),this.maybeSetNormalizedName(De,qn))})}:this.headers=new Map}has(be){return this.init(),this.headers.has(be.toLowerCase())}get(be){this.init();const De=this.headers.get(be.toLowerCase());return De&&De.length>0?De[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(be){return this.init(),this.headers.get(be.toLowerCase())||null}append(be,De){return this.clone({name:be,value:De,op:"a"})}set(be,De){return this.clone({name:be,value:De,op:"s"})}delete(be,De){return this.clone({name:be,value:De,op:"d"})}maybeSetNormalizedName(be,De){this.normalizedNames.has(De)||this.normalizedNames.set(De,be)}init(){this.lazyInit&&(this.lazyInit instanceof O?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(be=>this.applyUpdate(be)),this.lazyUpdate=null))}copyFrom(be){be.init(),Array.from(be.headers.keys()).forEach(De=>{this.headers.set(De,be.headers.get(De)),this.normalizedNames.set(De,be.normalizedNames.get(De))})}clone(be){const De=new O;return De.lazyInit=this.lazyInit&&this.lazyInit instanceof O?this.lazyInit:this,De.lazyUpdate=(this.lazyUpdate||[]).concat([be]),De}applyUpdate(be){const De=be.name.toLowerCase();switch(be.op){case"a":case"s":let hn=be.value;if("string"==typeof hn&&(hn=[hn]),0===hn.length)return;this.maybeSetNormalizedName(be.name,De);const qn=("a"===be.op?this.headers.get(De):void 0)||[];qn.push(...hn),this.headers.set(De,qn);break;case"d":const mi=be.value;if(mi){let Di=this.headers.get(De);if(!Di)return;Di=Di.filter(bo=>-1===mi.indexOf(bo)),0===Di.length?(this.headers.delete(De),this.normalizedNames.delete(De)):this.headers.set(De,Di)}else this.headers.delete(De),this.normalizedNames.delete(De)}}forEach(be){this.init(),Array.from(this.normalizedNames.keys()).forEach(De=>be(this.normalizedNames.get(De),this.headers.get(De)))}}class N{encodeKey(be){return st(be)}encodeValue(be){return st(be)}decodeKey(be){return decodeURIComponent(be)}decodeValue(be){return decodeURIComponent(be)}}const W=/%(\d[a-f0-9])/gi,tt={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function st(le){return encodeURIComponent(le).replace(W,(be,De)=>tt[De]??be)}function ct(le){return`${le}`}class bt{constructor(be={}){if(this.updates=null,this.cloneFrom=null,this.encoder=be.encoder||new N,be.fromString){if(be.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function V(le,be){const De=new Map;return le.length>0&&le.replace(/^\?/,"").split("&").forEach(qn=>{const mi=qn.indexOf("="),[Di,bo]=-1==mi?[be.decodeKey(qn),""]:[be.decodeKey(qn.slice(0,mi)),be.decodeValue(qn.slice(mi+1))],hi=De.get(Di)||[];hi.push(bo),De.set(Di,hi)}),De}(be.fromString,this.encoder)}else be.fromObject?(this.map=new Map,Object.keys(be.fromObject).forEach(De=>{const hn=be.fromObject[De],qn=Array.isArray(hn)?hn.map(ct):[ct(hn)];this.map.set(De,qn)})):this.map=null}has(be){return this.init(),this.map.has(be)}get(be){this.init();const De=this.map.get(be);return De?De[0]:null}getAll(be){return this.init(),this.map.get(be)||null}keys(){return this.init(),Array.from(this.map.keys())}append(be,De){return this.clone({param:be,value:De,op:"a"})}appendAll(be){const De=[];return Object.keys(be).forEach(hn=>{const qn=be[hn];Array.isArray(qn)?qn.forEach(mi=>{De.push({param:hn,value:mi,op:"a"})}):De.push({param:hn,value:qn,op:"a"})}),this.clone(De)}set(be,De){return this.clone({param:be,value:De,op:"s"})}delete(be,De){return this.clone({param:be,value:De,op:"d"})}toString(){return this.init(),this.keys().map(be=>{const De=this.encoder.encodeKey(be);return this.map.get(be).map(hn=>De+"="+this.encoder.encodeValue(hn)).join("&")}).filter(be=>""!==be).join("&")}clone(be){const De=new bt({encoder:this.encoder});return De.cloneFrom=this.cloneFrom||this,De.updates=(this.updates||[]).concat(be),De}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(be=>this.map.set(be,this.cloneFrom.map.get(be))),this.updates.forEach(be=>{switch(be.op){case"a":case"s":const De=("a"===be.op?this.map.get(be.param):void 0)||[];De.push(ct(be.value)),this.map.set(be.param,De);break;case"d":if(void 0===be.value){this.map.delete(be.param);break}{let hn=this.map.get(be.param)||[];const qn=hn.indexOf(ct(be.value));-1!==qn&&hn.splice(qn,1),hn.length>0?this.map.set(be.param,hn):this.map.delete(be.param)}}}),this.cloneFrom=this.updates=null)}}class wt{constructor(){this.map=new Map}set(be,De){return this.map.set(be,De),this}get(be){return this.map.has(be)||this.map.set(be,be.defaultValue()),this.map.get(be)}delete(be){return this.map.delete(be),this}has(be){return this.map.has(be)}keys(){return this.map.keys()}}function Jt(le){return typeof ArrayBuffer<"u"&&le instanceof ArrayBuffer}function yt(le){return typeof Blob<"u"&&le instanceof Blob}function At(le){return typeof FormData<"u"&&le instanceof FormData}class pt{constructor(be,De,hn,qn){let mi;if(this.url=De,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=be.toUpperCase(),function qt(le){switch(le){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||qn?(this.body=void 0!==hn?hn:null,mi=qn):mi=hn,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 wt),this.params){const Di=this.params.toString();if(0===Di.length)this.urlWithParams=De;else{const bo=De.indexOf("?");this.urlWithParams=De+(-1===bo?"?":boJe.set(gn,be.setHeaders[gn]),hi)),be.setParams&&(Yn=Object.keys(be.setParams).reduce((Je,gn)=>Je.set(gn,be.setParams[gn]),Yn)),new pt(De,hn,mi,{params:Yn,headers:hi,context:Vn,reportProgress:bo,responseType:qn,withCredentials:Di})}}var Ot=(()=>((Ot=Ot||{})[Ot.Sent=0]="Sent",Ot[Ot.UploadProgress=1]="UploadProgress",Ot[Ot.ResponseHeader=2]="ResponseHeader",Ot[Ot.DownloadProgress=3]="DownloadProgress",Ot[Ot.Response=4]="Response",Ot[Ot.User=5]="User",Ot))();class Bt{constructor(be,De=200,hn="OK"){this.headers=be.headers||new O,this.status=void 0!==be.status?be.status:De,this.statusText=be.statusText||hn,this.url=be.url||null,this.ok=this.status>=200&&this.status<300}}class St extends Bt{constructor(be={}){super(be),this.type=Ot.ResponseHeader}clone(be={}){return new St({headers:be.headers||this.headers,status:void 0!==be.status?be.status:this.status,statusText:be.statusText||this.statusText,url:be.url||this.url||void 0})}}class ce extends Bt{constructor(be={}){super(be),this.type=Ot.Response,this.body=void 0!==be.body?be.body:null}clone(be={}){return new ce({body:void 0!==be.body?be.body:this.body,headers:be.headers||this.headers,status:void 0!==be.status?be.status:this.status,statusText:be.statusText||this.statusText,url:be.url||this.url||void 0})}}class Vt extends Bt{constructor(be){super(be,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${be.url||"(unknown url)"}`:`Http failure response for ${be.url||"(unknown url)"}: ${be.status} ${be.statusText}`,this.error=be.error||null}}function ve(le,be){return{body:be,headers:le.headers,context:le.context,observe:le.observe,params:le.params,reportProgress:le.reportProgress,responseType:le.responseType,withCredentials:le.withCredentials}}let fe=(()=>{class le{constructor(De){this.handler=De}request(De,hn,qn={}){let mi;if(De instanceof pt)mi=De;else{let hi,Yn;hi=qn.headers instanceof O?qn.headers:new O(qn.headers),qn.params&&(Yn=qn.params instanceof bt?qn.params:new bt({fromObject:qn.params})),mi=new pt(De,hn,void 0!==qn.body?qn.body:null,{headers:hi,context:qn.context,params:Yn,reportProgress:qn.reportProgress,responseType:qn.responseType||"json",withCredentials:qn.withCredentials})}const Di=(0,x.of)(mi).pipe((0,t.b)(hi=>this.handler.handle(hi)));if(De instanceof pt||"events"===qn.observe)return Di;const bo=Di.pipe((0,T.h)(hi=>hi instanceof ce));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(De,hn={}){return this.request("DELETE",De,hn)}get(De,hn={}){return this.request("GET",De,hn)}head(De,hn={}){return this.request("HEAD",De,hn)}jsonp(De,hn){return this.request("JSONP",De,{params:(new bt).append(hn,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(De,hn={}){return this.request("OPTIONS",De,hn)}patch(De,hn,qn={}){return this.request("PATCH",De,ve(qn,hn))}post(De,hn,qn={}){return this.request("POST",De,ve(qn,hn))}put(De,hn,qn={}){return this.request("PUT",De,ve(qn,hn))}}return le.\u0275fac=function(De){return new(De||le)(p.LFG(w))},le.\u0275prov=p.Yz7({token:le,factory:le.\u0275fac}),le})();class Le{constructor(be,De){this.next=be,this.interceptor=De}handle(be){return this.interceptor.intercept(be,this.next)}}const Fe=new p.OlP("HTTP_INTERCEPTORS");let Ge=(()=>{class le{intercept(De,hn){return hn.handle(De)}}return le.\u0275fac=function(De){return new(De||le)},le.\u0275prov=p.Yz7({token:le,factory:le.\u0275fac}),le})();const _n=/^\)\]\}',?\n/;let vn=(()=>{class le{constructor(De){this.xhrFactory=De}handle(De){if("JSONP"===De.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new v.y(hn=>{const qn=this.xhrFactory.build();if(qn.open(De.method,De.urlWithParams),De.withCredentials&&(qn.withCredentials=!0),De.headers.forEach((Ye,Ee)=>qn.setRequestHeader(Ye,Ee.join(","))),De.headers.has("Accept")||qn.setRequestHeader("Accept","application/json, text/plain, */*"),!De.headers.has("Content-Type")){const Ye=De.detectContentTypeHeader();null!==Ye&&qn.setRequestHeader("Content-Type",Ye)}if(De.responseType){const Ye=De.responseType.toLowerCase();qn.responseType="json"!==Ye?Ye:"text"}const mi=De.serializeBody();let Di=null;const bo=()=>{if(null!==Di)return Di;const Ye=qn.statusText||"OK",Ee=new O(qn.getAllResponseHeaders()),Xe=function xe(le){return"responseURL"in le&&le.responseURL?le.responseURL:/^X-Request-URL:/m.test(le.getAllResponseHeaders())?le.getResponseHeader("X-Request-URL"):null}(qn)||De.url;return Di=new St({headers:Ee,status:qn.status,statusText:Ye,url:Xe}),Di},hi=()=>{let{headers:Ye,status:Ee,statusText:Xe,url:se}=bo(),ze=null;204!==Ee&&(ze=typeof qn.response>"u"?qn.responseText:qn.response),0===Ee&&(Ee=ze?200:0);let ie=Ee>=200&&Ee<300;if("json"===De.responseType&&"string"==typeof ze){const rn=ze;ze=ze.replace(_n,"");try{ze=""!==ze?JSON.parse(ze):null}catch(fn){ze=rn,ie&&(ie=!1,ze={error:fn,text:ze})}}ie?(hn.next(new ce({body:ze,headers:Ye,status:Ee,statusText:Xe,url:se||void 0})),hn.complete()):hn.error(new Vt({error:ze,headers:Ye,status:Ee,statusText:Xe,url:se||void 0}))},Yn=Ye=>{const{url:Ee}=bo(),Xe=new Vt({error:Ye,status:qn.status||0,statusText:qn.statusText||"Unknown Error",url:Ee||void 0});hn.error(Xe)};let Vn=!1;const Je=Ye=>{Vn||(hn.next(bo()),Vn=!0);let Ee={type:Ot.DownloadProgress,loaded:Ye.loaded};Ye.lengthComputable&&(Ee.total=Ye.total),"text"===De.responseType&&!!qn.responseText&&(Ee.partialText=qn.responseText),hn.next(Ee)},gn=Ye=>{let Ee={type:Ot.UploadProgress,loaded:Ye.loaded};Ye.lengthComputable&&(Ee.total=Ye.total),hn.next(Ee)};return qn.addEventListener("load",hi),qn.addEventListener("error",Yn),qn.addEventListener("timeout",Yn),qn.addEventListener("abort",Yn),De.reportProgress&&(qn.addEventListener("progress",Je),null!==mi&&qn.upload&&qn.upload.addEventListener("progress",gn)),qn.send(mi),hn.next({type:Ot.Sent}),()=>{qn.removeEventListener("error",Yn),qn.removeEventListener("abort",Yn),qn.removeEventListener("load",hi),qn.removeEventListener("timeout",Yn),De.reportProgress&&(qn.removeEventListener("progress",Je),null!==mi&&qn.upload&&qn.upload.removeEventListener("progress",gn)),qn.readyState!==qn.DONE&&qn.abort()}})}}return le.\u0275fac=function(De){return new(De||le)(p.LFG(u.JF))},le.\u0275prov=p.Yz7({token:le,factory:le.\u0275fac}),le})();const ke=new p.OlP("XSRF_COOKIE_NAME"),un=new p.OlP("XSRF_HEADER_NAME");class Dn{}let ii=(()=>{class le{constructor(De,hn,qn){this.doc=De,this.platform=hn,this.cookieName=qn,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const De=this.doc.cookie||"";return De!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,u.Mx)(De,this.cookieName),this.lastCookieString=De),this.lastToken}}return le.\u0275fac=function(De){return new(De||le)(p.LFG(u.K0),p.LFG(p.Lbi),p.LFG(ke))},le.\u0275prov=p.Yz7({token:le,factory:le.\u0275fac}),le})(),_i=(()=>{class le{constructor(De,hn){this.tokenService=De,this.headerName=hn}intercept(De,hn){const qn=De.url.toLowerCase();if("GET"===De.method||"HEAD"===De.method||qn.startsWith("http://")||qn.startsWith("https://"))return hn.handle(De);const mi=this.tokenService.getToken();return null!==mi&&!De.headers.has(this.headerName)&&(De=De.clone({headers:De.headers.set(this.headerName,mi)})),hn.handle(De)}}return le.\u0275fac=function(De){return new(De||le)(p.LFG(Dn),p.LFG(un))},le.\u0275prov=p.Yz7({token:le,factory:le.\u0275fac}),le})(),oi=(()=>{class le{constructor(De,hn){this.backend=De,this.injector=hn,this.chain=null}handle(De){if(null===this.chain){const hn=this.injector.get(Fe,[]);this.chain=hn.reduceRight((qn,mi)=>new Le(qn,mi),this.backend)}return this.chain.handle(De)}}return le.\u0275fac=function(De){return new(De||le)(p.LFG(P),p.LFG(p.zs3))},le.\u0275prov=p.Yz7({token:le,factory:le.\u0275fac}),le})(),it=(()=>{class le{static disable(){return{ngModule:le,providers:[{provide:_i,useClass:Ge}]}}static withOptions(De={}){return{ngModule:le,providers:[De.cookieName?{provide:ke,useValue:De.cookieName}:[],De.headerName?{provide:un,useValue:De.headerName}:[]]}}}return le.\u0275fac=function(De){return new(De||le)},le.\u0275mod=p.oAB({type:le}),le.\u0275inj=p.cJS({providers:[_i,{provide:Fe,useExisting:_i,multi:!0},{provide:Dn,useClass:ii},{provide:ke,useValue:"XSRF-TOKEN"},{provide:un,useValue:"X-XSRF-TOKEN"}]}),le})(),K=(()=>{class le{}return le.\u0275fac=function(De){return new(De||le)},le.\u0275mod=p.oAB({type:le}),le.\u0275inj=p.cJS({providers:[fe,{provide:w,useClass:oi},vn,{provide:P,useExisting:vn}],imports:[it.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),le})()},94650:(X,j,h)=>{"use strict";h.d(j,{$8M:()=>Sl,$Z:()=>_p,AFp:()=>z8,ALo:()=>_8,AaK:()=>w,AsE:()=>U4,B6R:()=>ze,BQk:()=>Hg,CHM:()=>or,CRH:()=>w8,CZH:()=>R4,CqO:()=>Vm,D6c:()=>gy,DdM:()=>s8,Dn7:()=>v8,EJc:()=>H7,EiD:()=>g2,EpF:()=>d6,F$t:()=>Yg,F4k:()=>Gs,FYo:()=>og,FiY:()=>oc,G48:()=>ty,Gf:()=>_v,GfV:()=>s1,GkF:()=>_h,Gpc:()=>L,Gre:()=>p3,HOy:()=>u3,Hsn:()=>r3,Ikx:()=>M,JOm:()=>Lu,JVY:()=>Jh,Jf7:()=>Pm,KtG:()=>Kr,L6k:()=>p2,LAX:()=>xm,LFG:()=>ic,LSH:()=>y_,Lbi:()=>F7,Lck:()=>JC,MAs:()=>i4,MGl:()=>hh,MMx:()=>$5,NdJ:()=>fh,O4$:()=>Si,OlP:()=>Un,Oqu:()=>A4,PXZ:()=>ob,Q6J:()=>l1,QGY:()=>n3,QP$:()=>Sn,QbO:()=>I7,Qsj:()=>ao,R0b:()=>Wp,RDi:()=>rc,Rgc:()=>I4,SBq:()=>Zm,Sil:()=>G8,Suo:()=>U8,TTD:()=>lu,TgZ:()=>u1,Tol:()=>g4,Udp:()=>l3,VKq:()=>c8,W1O:()=>Z8,WFA:()=>o4,WLB:()=>l8,XFs:()=>oi,Xpm:()=>se,Xts:()=>x2,Y36:()=>iu,YKP:()=>O6,YNc:()=>t3,Yjl:()=>Se,Yz7:()=>re,Z0I:()=>en,ZZ4:()=>Rv,_Bn:()=>j5,_UZ:()=>e3,_Vd:()=>wm,_c5:()=>fy,_uU:()=>x6,aQg:()=>Y4,c2e:()=>q7,cJS:()=>oe,cg1:()=>_e,d8E:()=>S,dDg:()=>nb,dqk:()=>qn,dwT:()=>Zt,eBb:()=>Il,eFA:()=>rb,ekj:()=>h4,eoX:()=>ib,evT:()=>T2,f3M:()=>Up,g9A:()=>B8,gM2:()=>E6,h0i:()=>h3,hGG:()=>hy,hij:()=>Jg,iGM:()=>mv,ifc:()=>hn,ip1:()=>Y8,jDz:()=>t8,kL8:()=>mn,kYT:()=>sn,kcU:()=>vo,lG2:()=>Nt,lcZ:()=>h8,lnq:()=>b6,lqb:()=>up,lri:()=>tb,mCW:()=>cd,n5z:()=>Kd,n_E:()=>F6,oAB:()=>fn,oJD:()=>$h,oxw:()=>a4,pB0:()=>Ip,q3G:()=>hs,qLn:()=>Yp,qOj:()=>V2,qZA:()=>V1,qzn:()=>S1,rWj:()=>eb,s9C:()=>zg,sBO:()=>_b,sIi:()=>fi,s_b:()=>N6,soG:()=>G6,tb:()=>J8,tp0:()=>wp,uIk:()=>au,uOi:()=>T_,vHH:()=>tt,vpe:()=>J1,wAp:()=>Gn,xDo:()=>w4,xi3:()=>g8,xp6:()=>qf,ynx:()=>Rg,z2F:()=>t5,z3N:()=>Js,zSh:()=>lp,zs3:()=>dd});var u=h(8929),p=h(42654),x=h(56498),v=h(36787),t=h(12474);function T(f){for(let g in f)if(f[g]===T)return g;throw Error("Could not find renamed property on target object.")}function U(f,g){for(const y in g)g.hasOwnProperty(y)&&!f.hasOwnProperty(y)&&(f[y]=g[y])}function w(f){if("string"==typeof f)return f;if(Array.isArray(f))return"["+f.map(w).join(", ")+"]";if(null==f)return""+f;if(f.overriddenName)return`${f.overriddenName}`;if(f.name)return`${f.name}`;const g=f.toString();if(null==g)return""+g;const y=g.indexOf("\n");return-1===y?g:g.substring(0,y)}function P(f,g){return null==f||""===f?null===g?"":g:null==g||""===g?f:f+" "+g}const O=T({__forward_ref__:T});function L(f){return f.__forward_ref__=L,f.toString=function(){return w(this())},f}function N(f){return V(f)?f():f}function V(f){return"function"==typeof f&&f.hasOwnProperty(O)&&f.__forward_ref__===L}class tt extends Error{constructor(g,y){super(function st(f,g){return`NG0${Math.abs(f)}${g?": "+g.trim():""}`}(g,y)),this.code=g}}function ct(f){return"string"==typeof f?f:null==f?"":String(f)}function Jt(f,g){throw new tt(-201,!1)}function Ge(f,g){null==f&&function Gt(f,g,y,k){throw new Error(`ASSERTION ERROR: ${f}`+(null==k?"":` [Expected=> ${y} ${k} ${g} <=Actual]`))}(g,f,null,"!=")}function re(f){return{token:f.token,providedIn:f.providedIn||null,factory:f.factory,value:void 0}}function oe(f){return{providers:f.providers||[],imports:f.imports||[]}}function Me(f){return _n(f,un)||_n(f,ii)}function en(f){return null!==Me(f)}function _n(f,g){return f.hasOwnProperty(g)?f[g]:null}function ke(f){return f&&(f.hasOwnProperty(Dn)||f.hasOwnProperty(_i))?f[Dn]:null}const un=T({\u0275prov:T}),Dn=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 Qe;function it(f){const g=Qe;return Qe=f,g}function K(f,g,y){const k=Me(f);return k&&"root"==k.providedIn?void 0===k.value?k.value=k.factory():k.value:y&oi.Optional?null:void 0!==g?g:void Jt(w(f))}function Rt(f){return{toString:f}.toString()}var le=(()=>((le=le||{})[le.OnPush=0]="OnPush",le[le.Default=1]="Default",le))(),hn=(()=>{return(f=hn||(hn={}))[f.Emulated=0]="Emulated",f[f.None=2]="None",f[f.ShadowDom=3]="ShadowDom",hn;var f})();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=[],Yn=T({\u0275cmp:T}),Vn=T({\u0275dir:T}),Je=T({\u0275pipe:T}),gn=T({\u0275mod:T}),Ye=T({\u0275fac:T}),Ee=T({__NG_ELEMENT_ID__:T});let Xe=0;function se(f){return Rt(()=>{const y=!0===f.standalone,k={},F={type:f.type,providersResolver:null,decls:f.decls,vars:f.vars,factory:null,template:f.template||null,consts:f.consts||null,ngContentSelectors:f.ngContentSelectors,hostBindings:f.hostBindings||null,hostVars:f.hostVars||0,hostAttrs:f.hostAttrs||null,contentQueries:f.contentQueries||null,declaredInputs:k,inputs:null,outputs:null,exportAs:f.exportAs||null,onPush:f.changeDetection===le.OnPush,directiveDefs:null,pipeDefs:null,standalone:y,dependencies:y&&f.dependencies||null,getStandaloneInjector:null,selectors:f.selectors||hi,viewQuery:f.viewQuery||null,features:f.features||null,data:f.data||{},encapsulation:f.encapsulation||hn.Emulated,id:"c"+Xe++,styles:f.styles||hi,_:null,setInput:null,schemas:f.schemas||null,tView:null},H=f.dependencies,ot=f.features;return F.inputs=ge(f.inputs,k),F.outputs=ge(f.outputs),ot&&ot.forEach(Ct=>Ct(F)),F.directiveDefs=H?()=>("function"==typeof H?H():H).map(ie).filter(rn):null,F.pipeDefs=H?()=>("function"==typeof H?H():H).map(Ie).filter(rn):null,F})}function ze(f,g,y){const k=f.\u0275cmp;k.directiveDefs=()=>("function"==typeof g?g():g).map(ie),k.pipeDefs=()=>("function"==typeof y?y():y).map(Ie)}function ie(f){return zt(f)||Ae(f)}function rn(f){return null!==f}function fn(f){return Rt(()=>({type:f.type,bootstrap:f.bootstrap||hi,declarations:f.declarations||hi,imports:f.imports||hi,exports:f.exports||hi,transitiveCompileScopes:null,schemas:f.schemas||null,id:f.id||null}))}function sn(f,g){return Rt(()=>{const y=Ei(f,!0);y.declarations=g.declarations||hi,y.imports=g.imports||hi,y.exports=g.exports||hi})}function ge(f,g){if(null==f)return bo;const y={};for(const k in f)if(f.hasOwnProperty(k)){let F=f[k],H=F;Array.isArray(F)&&(H=F[1],F=F[0]),y[F]=k,g&&(g[F]=H)}return y}const Nt=se;function Se(f){return{type:f.type,name:f.name,factory:null,pure:!1!==f.pure,standalone:!0===f.standalone,onDestroy:f.type.prototype.ngOnDestroy||null}}function zt(f){return f[Yn]||null}function Ae(f){return f[Vn]||null}function Ie(f){return f[Je]||null}function Sn(f){const g=zt(f)||Ae(f)||Ie(f);return null!==g&&g.standalone}function Ei(f,g){const y=f[gn]||null;if(!y&&!0===g)throw new Error(`Type ${w(f)} does not have '\u0275mod' property.`);return y}const Q=16,J=18;function Tr(f){return Array.isArray(f)&&"object"==typeof f[1]}function Ar(f){return Array.isArray(f)&&!0===f[1]}function Sc(f){return 0!=(8&f.flags)}function Ml(f){return 2==(2&f.flags)}function js(f){return 1==(1&f.flags)}function Ls(f){return null!==f.template}function Ws(f){return 0!=(256&f[2])}function Xs(f,g){return f.hasOwnProperty(Ye)?f[Ye]:null}class Dl{constructor(g,y,k){this.previousValue=g,this.currentValue=y,this.firstChange=k}isFirstChange(){return this.firstChange}}function lu(){return Wl}function Wl(f){return f.type.prototype.ngOnChanges&&(f.setInput=ir),Ca}function Ca(){const f=Tu(this),g=f?.current;if(g){const y=f.previous;if(y===bo)f.previous=g;else for(let k in g)y[k]=g[k];f.current=null,this.ngOnChanges(g)}}function ir(f,g,y,k){const F=Tu(f)||function ed(f,g){return f[bc]=g}(f,{previous:bo,current:null}),H=F.current||(F.current={}),ot=F.previous,Ct=this.declaredInputs[y],It=ot[Ct];H[Ct]=new Dl(It&&It.currentValue,g,ot===bo),f[k]=g}lu.ngInherit=!0;const bc="__ngSimpleChanges__";function Tu(f){return f[bc]||null}function Va(f){for(;Array.isArray(f);)f=f[0];return f}function as(f,g){return Va(g[f])}function Qn(f,g){return Va(g[f.index])}function ms(f,g){return f.data[g]}function Za(f,g){return f[g]}function rs(f,g){const y=g[f];return Tr(y)?y:y[0]}function ws(f){return 64==(64&f[2])}function tc(f,g){return null==g?null:f[g]}function Ns(f){f[J]=0}function Ba(f,g){f[5]+=g;let y=f,k=f[3];for(;null!==k&&(1===g&&1===y[5]||-1===g&&0===y[5]);)k[5]+=g,y=k,k=k[3]}const io={lFrame:ut(null),bindingsEnabled:!0};function Cc(){return io.bindingsEnabled}function Gi(){return io.lFrame.lView}function da(){return io.lFrame.tView}function or(f){return io.lFrame.contextLView=f,f[8]}function Kr(f){return io.lFrame.contextLView=null,f}function Wa(){let f=ae();for(;null!==f&&64===f.type;)f=f.parent;return f}function ae(){return io.lFrame.currentTNode}function Ft(f,g){const y=io.lFrame;y.currentTNode=f,y.isParent=g}function et(){return io.lFrame.isParent}function Mi(){io.lFrame.isParent=!1}function Ir(){const f=io.lFrame;let g=f.bindingRootIndex;return-1===g&&(g=f.bindingRootIndex=f.tView.bindingStartIndex),g}function qr(){return io.lFrame.bindingIndex}function Ja(){return io.lFrame.bindingIndex++}function Kc(f){const g=io.lFrame,y=g.bindingIndex;return g.bindingIndex=g.bindingIndex+f,y}function x1(f,g){const y=io.lFrame;y.bindingIndex=y.bindingRootIndex=f,du(g)}function du(f){io.lFrame.currentDirectiveIndex=f}function Fc(f){const g=io.lFrame.currentDirectiveIndex;return-1===g?null:f[g]}function Nc(){return io.lFrame.currentQueryIndex}function dl(f){io.lFrame.currentQueryIndex=f}function tp(f){const g=f[1];return 2===g.type?g.declTNode:1===g.type?f[6]:null}function Pl(f,g,y){if(y&oi.SkipSelf){let F=g,H=f;for(;!(F=F.parent,null!==F||y&oi.Host||(F=tp(H),null===F||(H=H[15],10&F.type))););if(null===F)return!1;g=F,f=H}const k=io.lFrame=Bi();return k.currentTNode=g,k.lView=f,!0}function yc(f){const g=Bi(),y=f[1];io.lFrame=g,g.currentTNode=y.firstChild,g.lView=f,g.tView=y,g.contextLView=f,g.bindingIndex=y.bindingStartIndex,g.inI18n=!1}function Bi(){const f=io.lFrame,g=null===f?null:f.child;return null===g?ut(f):g}function ut(f){const g={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:f,child:null,inI18n:!1};return null!==f&&(f.child=g),g}function pu(){const f=io.lFrame;return io.lFrame=f.parent,f.currentTNode=null,f.lView=null,f}const Kl=pu;function wa(){const f=pu();f.isParent=!0,f.tView=null,f.selectedIndex=-1,f.contextLView=null,f.elementDepthCount=0,f.currentDirectiveIndex=-1,f.currentNamespace=null,f.bindingRootIndex=-1,f.bindingIndex=-1,f.currentQueryIndex=0}function Rr(){return io.lFrame.selectedIndex}function gs(f){io.lFrame.selectedIndex=f}function Pa(){const f=io.lFrame;return ms(f.tView,f.selectedIndex)}function Si(){io.lFrame.currentNamespace="svg"}function vo(){!function ln(){io.lFrame.currentNamespace=null}()}function Zi(f,g){for(let y=g.directiveStart,k=g.directiveEnd;y=k)break}else g[It]<0&&(f[J]+=65536),(Ct>11>16&&(3&f[2])===g){f[2]+=2048;try{H.call(Ct)}finally{}}}else try{H.call(Ct)}finally{}}class Uu{constructor(g,y,k){this.factory=g,this.resolving=!1,this.canSeeViewProviders=y,this.injectImpl=k}}function Ve(f,g,y){let k=0;for(;kg){ot=H-1;break}}}for(;H>16}(f),k=g;for(;y>0;)k=k[15],y--;return k}let Ai=!0;function wi(f){const g=Ai;return Ai=f,g}let pa=0;const oa={};function Xr(f,g){const y=Ms(f,g);if(-1!==y)return y;const k=g[1];k.firstCreatePass&&(f.injectorIndex=g.length,vs(k.data,f),vs(g,null),vs(k.blueprint,null));const F=ts(f,g),H=f.injectorIndex;if(Ke(F)){const ot=bn(F),Ct=ei(F,g),It=Ct[1].data;for(let he=0;he<8;he++)g[H+he]=Ct[ot+he]|It[ot+he]}return g[H+8]=F,H}function vs(f,g){f.push(0,0,0,0,0,0,0,0,g)}function Ms(f,g){return-1===f.injectorIndex||f.parent&&f.parent.injectorIndex===f.injectorIndex||null===g[f.injectorIndex+8]?-1:f.injectorIndex}function ts(f,g){if(f.parent&&-1!==f.parent.injectorIndex)return f.parent.injectorIndex;let y=0,k=null,F=g;for(;null!==F;){if(k=ip(F),null===k)return-1;if(y++,F=F[15],-1!==k.injectorIndex)return k.injectorIndex|y<<16}return-1}function Jr(f,g,y){!function xa(f,g,y){let k;"string"==typeof y?k=y.charCodeAt(0)||0:y.hasOwnProperty(Ee)&&(k=y[Ee]),null==k&&(k=y[Ee]=pa++);const F=255&k;g.data[f+(F>>5)]|=1<=0?255&g:Zd:g}(y);if("function"==typeof H){if(!Pl(g,f,k))return k&oi.Host?wr(F,0,k):Vs(g,y,k,F);try{const ot=H(k);if(null!=ot||k&oi.Optional)return ot;Jt()}finally{Kl()}}else if("number"==typeof H){let ot=null,Ct=Ms(f,g),It=-1,he=k&oi.Host?g[Q][6]:null;for((-1===Ct||k&oi.SkipSelf)&&(It=-1===Ct?ts(f,g):g[Ct+8],-1!==It&&Mu(k,!1)?(ot=g[1],Ct=bn(It),g=ei(It,g)):Ct=-1);-1!==Ct;){const je=g[1];if(kl(H,Ct,je.data)){const Tn=mr(Ct,g,y,ot,k,he);if(Tn!==oa)return Tn}It=g[Ct+8],-1!==It&&Mu(k,g[1].data[Ct+8]===he)&&kl(H,Ct,g)?(ot=je,Ct=bn(It),g=ei(It,g)):Ct=-1}}return F}function mr(f,g,y,k,F,H){const ot=g[1],Ct=ot.data[f+8],je=sa(Ct,ot,y,null==k?Ml(Ct)&&Ai:k!=ot&&0!=(3&Ct.type),F&oi.Host&&H===Ct);return null!==je?hr(g,ot,je,Ct):oa}function sa(f,g,y,k,F){const H=f.providerIndexes,ot=g.data,Ct=1048575&H,It=f.directiveStart,je=H>>20,ri=F?Ct+je:f.directiveEnd;for(let Ti=k?Ct:Ct+je;Ti=It&&ji.type===y)return Ti}if(F){const Ti=ot[It];if(Ti&&Ls(Ti)&&Ti.type===y)return It}return null}function hr(f,g,y,k){let F=f[y];const H=g.data;if(function tr(f){return f instanceof Uu}(F)){const ot=F;ot.resolving&&function Dt(f,g){const y=g?`. Dependency path: ${g.join(" > ")} > ${f}`:"";throw new tt(-200,`Circular dependency in DI detected for ${f}${y}`)}(function bt(f){return"function"==typeof f?f.name||f.toString():"object"==typeof f&&null!=f&&"function"==typeof f.type?f.type.name||f.type.toString():ct(f)}(H[y]));const Ct=wi(ot.canSeeViewProviders);ot.resolving=!0;const It=ot.injectImpl?it(ot.injectImpl):null;Pl(f,k,oi.Default);try{F=f[y]=ot.factory(void 0,H,f,k),g.firstCreatePass&&y>=k.directiveStart&&function Oi(f,g,y){const{ngOnChanges:k,ngOnInit:F,ngDoCheck:H}=g.type.prototype;if(k){const ot=Wl(g);(y.preOrderHooks||(y.preOrderHooks=[])).push(f,ot),(y.preOrderCheckHooks||(y.preOrderCheckHooks=[])).push(f,ot)}F&&(y.preOrderHooks||(y.preOrderHooks=[])).push(0-f,F),H&&((y.preOrderHooks||(y.preOrderHooks=[])).push(f,H),(y.preOrderCheckHooks||(y.preOrderCheckHooks=[])).push(f,H))}(y,H[y],g)}finally{null!==It&&it(It),wi(Ct),ot.resolving=!1,Kl()}}return F}function kl(f,g,y){return!!(y[g+(f>>5)]&1<{const g=f.prototype.constructor,y=g[Ye]||Zu(g),k=Object.prototype;let F=Object.getPrototypeOf(f.prototype).constructor;for(;F&&F!==k;){const H=F[Ye]||Zu(F);if(H&&H!==y)return H;F=Object.getPrototypeOf(F)}return H=>new H})}function Zu(f){return V(f)?()=>{const g=Zu(N(f));return g&&g()}:Xs(f)}function ip(f){const g=f[1],y=g.type;return 2===y?g.declTNode:1===y?f[6]:null}function Sl(f){return function es(f,g){if("class"===g)return f.classes;if("style"===g)return f.styles;const y=f.attrs;if(y){const k=y.length;let F=0;for(;F{const k=function b1(f){return function(...y){if(f){const k=f(...y);for(const F in k)this[F]=k[F]}}}(g);function F(...H){if(this instanceof F)return k.apply(this,H),this;const ot=new F(...H);return Ct.annotation=ot,Ct;function Ct(It,he,je){const Tn=It.hasOwnProperty(Ll)?It[Ll]:Object.defineProperty(It,Ll,{value:[]})[Ll];for(;Tn.length<=je;)Tn.push(null);return(Tn[je]=Tn[je]||[]).push(ot),It}}return y&&(F.prototype=Object.create(y.prototype)),F.prototype.ngMetadataName=f,F.annotationCls=F,F})}class Un{constructor(g,y){this._desc=g,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof y?this.__NG_ELEMENT_ID__=y:void 0!==y&&(this.\u0275prov=re({token:this,providedIn:y.providedIn||"root",factory:y.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function pc(f,g){void 0===g&&(g=f);for(let y=0;yArray.isArray(y)?Du(y,g):g(y))}function Xd(f,g,y){g>=f.length?f.push(y):f.splice(g,0,y)}function Fl(f,g){return g>=f.length-1?f.pop():f.splice(g,1)[0]}function mu(f,g){const y=[];for(let k=0;k=0?f[1|k]=y:(k=~k,function ft(f,g,y,k){let F=f.length;if(F==g)f.push(y,k);else if(1===F)f.push(k,f[0]),f[0]=y;else{for(F--,f.push(f[F-1],f[F]);F>g;)f[F]=f[F-2],F--;f[g]=y,f[g+1]=k}}(f,k,g,y)),k}function me(f,g){const y=Pn(f,g);if(y>=0)return f[1|y]}function Pn(f,g){return function qe(f,g,y){let k=0,F=f.length>>y;for(;F!==k;){const H=k+(F-k>>1),ot=f[H<g?F=H:k=H+1}return~(F<((Lu=Lu||{})[Lu.Important=1]="Important",Lu[Lu.DashCase=2]="DashCase",Lu))();const _m=new Map;let mf=0;const Bs="__ngContext__";function Ps(f,g){Tr(g)?(f[Bs]=g[20],function Pp(f){_m.set(f[20],f)}(g)):f[Bs]=g}function r2(f,g){return undefined(f,g)}function l_(f){const g=f[3];return Ar(g)?g[3]:g}function c2(f){return yf(f[13])}function u_(f){return yf(f[4])}function yf(f){for(;null!==f&&!Ar(f);)f=f[4];return f}function _u(f,g,y,k,F){if(null!=k){let H,ot=!1;Ar(k)?H=k:Tr(k)&&(ot=!0,k=k[0]);const Ct=Va(k);0===f&&null!==y?null==F?ks(g,y,Ct):o1(g,y,Ct,F||null,!0):1===f&&null!==y?o1(g,y,Ct,F||null,!0):2===f?function p_(f,g,y){const k=gm(f,g);k&&function Af(f,g,y,k){f.removeChild(g,y,k)}(f,k,g,y)}(g,Ct,ot):3===f&&g.destroyNode(Ct),null!=H&&function m_(f,g,y,k,F){const H=y[7];H!==Va(y)&&_u(g,f,k,H,F);for(let Ct=10;Ct0&&(f[y-1][4]=k[4]);const H=Fl(f,10+g);!function c0(f,g){sp(f,g,g[11],2,null,null),g[0]=null,g[6]=null}(k[1],k);const ot=H[19];null!==ot&&ot.detachView(H[1]),k[3]=null,k[4]=null,k[2]&=-65}return k}function Nu(f,g){if(!(128&g[2])){const y=g[11];y.destroyNode&&sp(f,g,y,3,null,null),function Lp(f){let g=f[13];if(!g)return Iu(f[1],f);for(;g;){let y=null;if(Tr(g))y=g[13];else{const k=g[10];k&&(y=k)}if(!y){for(;g&&!g[4]&&g!==f;)Tr(g)&&Iu(g[1],g),g=g[3];null===g&&(g=f),Tr(g)&&Iu(g[1],g),y=g&&g[4]}g=y}}(g)}}function Iu(f,g){if(!(128&g[2])){g[2]&=-65,g[2]|=128,function u2(f,g){let y;if(null!=f&&null!=(y=f.destroyHooks))for(let k=0;k=0?k[F=he]():k[F=-he].unsubscribe(),H+=2}else{const ot=k[F=y[H+1]];y[H].call(ot)}if(null!==k){for(let H=F+1;Hf,createScript:f=>f,createScriptURL:f=>f})}catch{}return qu}()?.createHTML(f)||f}function rc(f){tu=f}function bl(){if(void 0===v_&&(v_=null,qn.trustedTypes))try{v_=qn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:f=>f,createScript:f=>f,createScriptURL:f=>f})}catch{}return v_}function Cl(f){return bl()?.createHTML(f)||f}function Uf(f){return bl()?.createScriptURL(f)||f}class a1{constructor(g){this.changingThisBreaksApplicationSecurity=g}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class L3 extends a1{getTypeName(){return"HTML"}}class vm extends a1{getTypeName(){return"Style"}}class k1 extends a1{getTypeName(){return"Script"}}class u0 extends a1{getTypeName(){return"URL"}}class wf extends a1{getTypeName(){return"ResourceURL"}}function Js(f){return f instanceof a1?f.changingThisBreaksApplicationSecurity:f}function S1(f,g){const y=function Mf(f){return f instanceof a1&&f.getTypeName()||null}(f);if(null!=y&&y!==g){if("ResourceURL"===y&&"URL"===g)return!0;throw new Error(`Required a safe ${g}, got a ${y} (see https://g.co/ng/security#xss)`)}return y===g}function Jh(f){return new L3(f)}function p2(f){return new vm(f)}function Il(f){return new k1(f)}function xm(f){return new u0(f)}function Ip(f){return new wf(f)}class x_{constructor(g){this.inertDocumentHelper=g}getInertBodyElement(g){g=""+g;try{const y=(new window.DOMParser).parseFromString(ac(g),"text/html").body;return null===y?this.inertDocumentHelper.getInertBodyElement(g):(y.removeChild(y.firstChild),y)}catch{return null}}}class Gh{constructor(g){if(this.defaultDoc=g,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const y=this.inertDocument.createElement("html");this.inertDocument.appendChild(y);const k=this.inertDocument.createElement("body");y.appendChild(k)}}getInertBodyElement(g){const y=this.inertDocument.createElement("template");if("content"in y)return y.innerHTML=ac(g),y;const k=this.inertDocument.createElement("body");return k.innerHTML=ac(g),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(k),k}stripCustomNsAttrs(g){const y=g.attributes;for(let F=y.length-1;0"),!0}endElement(g){const y=g.nodeName.toLowerCase();Qh.hasOwnProperty(y)&&!kd.hasOwnProperty(y)&&(this.buf.push(""))}chars(g){this.buf.push(Wh(g))}checkClobberedElement(g,y){if(y&&(g.compareDocumentPosition(y)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${g.outerHTML}`);return y}}const d0=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,b_=/([^\#-~ |!])/g;function Wh(f){return f.replace(/&/g,"&").replace(d0,function(g){return"&#"+(1024*(g.charCodeAt(0)-55296)+(g.charCodeAt(1)-56320)+65536)+";"}).replace(b_,function(g){return"&#"+g.charCodeAt(0)+";"}).replace(//g,">")}let C_;function g2(f,g){let y=null;try{C_=C_||function Zf(f){const g=new Gh(f);return function m2(){try{return!!(new window.DOMParser).parseFromString(ac(""),"text/html")}catch{return!1}}()?new x_(g):g}(f);let k=g?String(g):"";y=C_.getInertBodyElement(k);let F=5,H=k;do{if(0===F)throw new Error("Failed to sanitize html because the input is unstable");F--,k=H,H=y.innerHTML,y=C_.getInertBodyElement(k)}while(k!==H);return ac((new h2).sanitizeChildren(kf(y)||y))}finally{if(y){const k=kf(y)||y;for(;k.firstChild;)k.removeChild(k.firstChild)}}}function kf(f){return"content"in f&&function p0(f){return f.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===f.nodeName}(f)?f.content:null}var hs=(()=>((hs=hs||{})[hs.NONE=0]="NONE",hs[hs.HTML=1]="HTML",hs[hs.STYLE=2]="STYLE",hs[hs.SCRIPT=3]="SCRIPT",hs[hs.URL=4]="URL",hs[hs.RESOURCE_URL=5]="RESOURCE_URL",hs))();function $h(f){const g=A_();return g?Cl(g.sanitize(hs.HTML,f)||""):S1(f,"HTML")?Cl(Js(f)):g2(function Bh(){return void 0!==tu?tu:typeof document<"u"?document:void 0}(),ct(f))}function y_(f){const g=A_();return g?g.sanitize(hs.URL,f)||"":S1(f,"URL")?Js(f):cd(ct(f))}function T_(f){const g=A_();if(g)return Uf(g.sanitize(hs.RESOURCE_URL,f)||"");if(S1(f,"ResourceURL"))return Uf(Js(f));throw new tt(904,!1)}function A_(){const f=Gi();return f&&f[12]}const x2=new Un("ENVIRONMENT_INITIALIZER"),f0=new Un("INJECTOR",-1),hu=new Un("INJECTOR_DEF_TYPES");class Sd{get(g,y=Is){if(y===Is){const k=new Error(`NullInjectorError: No provider for ${w(g)}!`);throw k.name="NullInjectorError",k}return y}}function F3(...f){return{\u0275providers:Rp(0,f)}}function Rp(f,...g){const y=[],k=new Set;let F;return Du(g,H=>{const ot=H;Sf(ot,y,[],k)&&(F||(F=[]),F.push(ot))}),void 0!==F&&Cm(F,y),y}function Cm(f,g){for(let y=0;y{g.push(H)})}}function Sf(f,g,y,k){if(!(f=N(f)))return!1;let F=null,H=ke(f);const ot=!H&&zt(f);if(H||ot){if(ot&&!ot.standalone)return!1;F=f}else{const It=f.ngModule;if(H=ke(It),!H)return!1;F=It}const Ct=k.has(F);if(ot){if(Ct)return!1;if(k.add(F),ot.dependencies){const It="function"==typeof ot.dependencies?ot.dependencies():ot.dependencies;for(const he of It)Sf(he,g,y,k)}}else{if(!H)return!1;{if(null!=H.imports&&!Ct){let he;k.add(F);try{Du(H.imports,je=>{Sf(je,g,y,k)&&(he||(he=[]),he.push(je))})}finally{}void 0!==he&&Cm(he,g)}if(!Ct){const he=Xs(F)||(()=>new F);g.push({provide:F,useFactory:he,deps:hi},{provide:hu,useValue:F,multi:!0},{provide:x2,useValue:()=>ic(F),multi:!0})}const It=H.providers;null==It||Ct||Du(It,je=>{g.push(je)})}}return F!==f&&void 0!==f.providers}const Kh=T({provide:String,useValue:T});function ym(f){return null!==f&&"object"==typeof f&&Kh in f}function Od(f){return"function"==typeof f}const lp=new Un("Set Injector scope."),Tm={},h0={};let Rs;function C2(){return void 0===Rs&&(Rs=new Sd),Rs}class up{}class g0 extends up{constructor(g,y,k,F){super(),this.parent=y,this.source=k,this.scopes=F,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,eg(g,ot=>this.processProvider(ot)),this.records.set(f0,r1(void 0,this)),F.has("environment")&&this.records.set(up,r1(void 0,this));const H=this.records.get(lp);null!=H&&"string"==typeof H.value&&this.scopes.add(H.value),this.injectorDefTypes=new Set(this.get(hu.multi,hi,oi.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const g of this._ngOnDestroyHooks)g.ngOnDestroy();for(const g of this._onDestroyHooks)g()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(g){this._onDestroyHooks.push(g)}runInContext(g){this.assertNotDestroyed();const y=Tc(this),k=it(void 0);try{return g()}finally{Tc(y),it(k)}}get(g,y=Is,k=oi.Default){this.assertNotDestroyed();const F=Tc(this),H=it(void 0);try{if(!(k&oi.SkipSelf)){let Ct=this.records.get(g);if(void 0===Ct){const It=function N3(f){return"function"==typeof f||"object"==typeof f&&f instanceof Un}(g)&&Me(g);Ct=It&&this.injectableDefInScope(It)?r1(Xh(g),Tm):null,this.records.set(g,Ct)}if(null!=Ct)return this.hydrate(g,Ct)}return(k&oi.Self?C2():this.parent).get(g,y=k&oi.Optional&&y===Is?null:y)}catch(ot){if("NullInjectorError"===ot.name){if((ot[Ap]=ot[Ap]||[]).unshift(w(g)),F)throw ot;return function op(f,g,y,k){const F=f[Ap];throw g[i_]&&F.unshift(g[i_]),f.message=function t2(f,g,y,k=null){f=f&&"\n"===f.charAt(0)&&"\u0275"==f.charAt(1)?f.slice(2):f;let F=w(g);if(Array.isArray(g))F=g.map(w).join(" -> ");else if("object"==typeof g){let H=[];for(let ot in g)if(g.hasOwnProperty(ot)){let Ct=g[ot];H.push(ot+":"+("string"==typeof Ct?JSON.stringify(Ct):w(Ct)))}F=`{${H.join(", ")}}`}return`${y}${k?"("+k+")":""}[${F}]: ${f.replace(lf,"\n ")}`}("\n"+f.message,F,y,k),f.ngTokenPath=F,f[Ap]=null,f}(ot,g,"R3InjectorError",this.source)}throw ot}finally{it(H),Tc(F)}}resolveInjectorInitializers(){const g=Tc(this),y=it(void 0);try{const k=this.get(x2.multi,hi,oi.Self);for(const F of k)F()}finally{Tc(g),it(y)}}toString(){const g=[],y=this.records;for(const k of y.keys())g.push(w(k));return`R3Injector[${g.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new tt(205,!1)}processProvider(g){let y=Od(g=N(g))?g:N(g&&g.provide);const k=function Am(f){return ym(f)?r1(void 0,f.useValue):r1(Um(f),Tm)}(g);if(Od(g)||!0!==g.multi)this.records.get(y);else{let F=this.records.get(y);F||(F=r1(void 0,Tm,!0),F.factory=()=>od(F.multi),this.records.set(y,F)),y=g,F.multi.push(g)}this.records.set(y,k)}hydrate(g,y){return y.value===Tm&&(y.value=h0,y.value=y.factory()),"object"==typeof y.value&&y.value&&function y2(f){return null!==f&&"object"==typeof f&&"function"==typeof f.ngOnDestroy}(y.value)&&this._ngOnDestroyHooks.add(y.value),y.value}injectableDefInScope(g){if(!g.providedIn)return!1;const y=N(g.providedIn);return"string"==typeof y?"any"===y||this.scopes.has(y):this.injectorDefTypes.has(y)}}function Xh(f){const g=Me(f),y=null!==g?g.factory:Xs(f);if(null!==y)return y;if(f instanceof Un)throw new tt(204,!1);if(f instanceof Function)return function tg(f){const g=f.length;if(g>0)throw mu(g,"?"),new tt(204,!1);const y=function xe(f){const g=f&&(f[un]||f[ii]);if(g){const y=function vn(f){if(f.hasOwnProperty("name"))return f.name;const g=(""+f).match(/^function\s*([^\s(]+)/);return null===g?"":g[1]}(f);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.`),g}return null}(f);return null!==y?()=>y.factory(f):()=>new f}(f);throw new tt(204,!1)}function Um(f,g,y){let k;if(Od(f)){const F=N(f);return Xs(F)||Xh(F)}if(ym(f))k=()=>N(f.useValue);else if(function Hp(f){return!(!f||!f.useFactory)}(f))k=()=>f.useFactory(...od(f.deps||[]));else if(function U_(f){return!(!f||!f.useExisting)}(f))k=()=>ic(N(f.useExisting));else{const F=N(f&&(f.useClass||f.provide));if(!function v0(f){return!!f.deps}(f))return Xs(F)||Xh(F);k=()=>new F(...od(f.deps))}return k}function r1(f,g,y=!1){return{factory:f,value:g,multi:y?[]:void 0}}function Of(f){return!!f.\u0275providers}function eg(f,g){for(const y of f)Array.isArray(y)?eg(y,g):Of(y)?eg(y.\u0275providers,g):g(y)}class Lf{}class b0{resolveComponentFactory(g){throw function Eo(f){const g=Error(`No component factory found for ${w(f)}. Did you add it to @NgModule.entryComponents?`);return g.ngComponent=f,g}(g)}}let wm=(()=>{class f{}return f.NULL=new b0,f})();function Mm(){return Ha(Wa(),Gi())}function Ha(f,g){return new Zm(Qn(f,g))}let Zm=(()=>{class f{constructor(y){this.nativeElement=y}}return f.__NG_ELEMENT_ID__=Mm,f})();function ig(f){return f instanceof Zm?f.nativeElement:f}class og{}let ao=(()=>{class f{}return f.__NG_ELEMENT_ID__=()=>function q3(){const f=Gi(),y=rs(Wa().index,f);return(Tr(y)?y:f)[11]}(),f})(),C0=(()=>{class f{}return f.\u0275prov=re({token:f,providedIn:"root",factory:()=>null}),f})();class s1{constructor(g){this.full=g,this.major=g.split(".")[0],this.minor=g.split(".")[1],this.patch=g.split(".").slice(2).join(".")}}const Ef=new s1("14.3.0"),Ff={};function M_(f){return f.ngOriginalError}class Yp{constructor(){this._console=console}handleError(g){const y=this._findOriginalError(g);this._console.error("ERROR",g),y&&this._console.error("ORIGINAL ERROR",y)}_findOriginalError(g){let y=g&&M_(g);for(;y&&M_(y);)y=M_(y);return y||null}}function Pm(f){return f.ownerDocument.defaultView}function T2(f){return f.ownerDocument}function E1(f){return f instanceof Function?f():f}function ug(f,g,y){let k=f.length;for(;;){const F=f.indexOf(g,y);if(-1===F)return F;if(0===F||f.charCodeAt(F-1)<=32){const H=g.length;if(F+H===k||f.charCodeAt(F+H)<=32)return F}y=F+1}}const br="ng-template";function ld(f,g,y){let k=0;for(;kH?"":F[Tn+1].toLowerCase();const Ti=8&k?ri:null;if(Ti&&-1!==ug(Ti,he,0)||2&k&&he!==ri){if(ud(k))return!1;ot=!0}}}}else{if(!ot&&!ud(k)&&!ud(It))return!1;if(ot&&ud(It))continue;ot=!1,k=It|1&k}}return ud(k)||ot}function ud(f){return 0==(1&f)}function pg(f,g,y,k){if(null===g)return-1;let F=0;if(k||!y){let H=!1;for(;F-1)for(y++;y0?'="'+Ct+'"':"")+"]"}else 8&k?F+="."+ot:4&k&&(F+=" "+ot);else""!==F&&!ud(ot)&&(g+=Sm(H,F),F=""),k=ot,H=H||!ud(k);y++}return""!==F&&(g+=Sm(H,F)),g}const Ea={};function qf(f){Z0(da(),Gi(),Rr()+f,!1)}function Z0(f,g,y,k){if(!k)if(3==(3&g[2])){const H=f.preOrderCheckHooks;null!==H&&No(g,H,y)}else{const H=f.preOrderHooks;null!==H&&ea(g,H,0,y)}gs(y)}function eu(f,g=null,y=null,k){const F=Uc(f,g,y,k);return F.resolveInjectorInitializers(),F}function Uc(f,g=null,y=null,k,F=new Set){const H=[y||hi,F3(f)];return k=k||("object"==typeof f?void 0:w(f)),new g0(H,g||C2(),k||null,F)}let dd=(()=>{class f{static create(y,k){if(Array.isArray(y))return eu({name:""},k,y,"");{const F=y.name??"";return eu({name:F},y.parent,y.providers,F)}}}return f.THROW_IF_NOT_FOUND=Is,f.NULL=new Sd,f.\u0275prov=re({token:f,providedIn:"any",factory:()=>ic(f0)}),f.__NG_ELEMENT_ID__=-1,f})();function iu(f,g=oi.Default){const y=Gi();return null===y?ic(f,g):Zs(Wa(),y,N(f),g)}function _p(){throw new Error("invalid")}function R1(f,g){return f<<17|g<<2}function md(f){return f>>17&32767}function fp(f){return 2|f}function ou(f){return(131068&f)>>2}function hp(f,g){return-131069&f|g<<2}function Sa(f){return 1|f}function O2(f,g){const y=f.contentQueries;if(null!==y)for(let k=0;k22&&Z0(f,g,22,!1),y(k,F)}finally{gs(H)}}function wg(f,g,y){if(Sc(g)){const F=g.directiveEnd;for(let H=g.directiveStart;H0;){const y=f[--g];if("number"==typeof y&&y<0)return y}return 0})(Ct)!=It&&Ct.push(It),Ct.push(k,F,ot)}}function kg(f,g){null!==f.hostBindings&&f.hostBindings(1,g)}function vp(f,g){g.flags|=2,(f.components||(f.components=[])).push(g.index)}function F2(f,g,y){if(y){if(g.exportAs)for(let k=0;k0&&sh(y)}}function sh(f){for(let k=c2(f);null!==k;k=u_(k))for(let F=10;F0&&sh(H)}const y=f[1].components;if(null!==y)for(let k=0;k0&&sh(F)}}function ch(f,g){const y=rs(g,f),k=y[1];(function lh(f,g){for(let y=g.length;y-1&&(hm(g,k),Fl(y,k))}this._attachedToViewContainer=!1}Nu(this._lView[1],this._lView)}onDestroy(g){jr(this._lView[1],this._lView,null,g)}markForCheck(){Bp(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){H_(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new tt(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function l0(f,g){sp(f,g,g[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(g){if(this._attachedToViewContainer)throw new tt(902,!1);this._appRef=g}}class Lg extends z_{constructor(g){super(g),this._view=g}detectChanges(){const g=this._view;H_(g[1],g,g[8],!1)}checkNoChanges(){}get context(){return null}}class Hm extends wm{constructor(g){super(),this.ngModule=g}resolveComponentFactory(g){const y=zt(g);return new H2(y,this.ngModule)}}function R2(f){const g=[];for(let y in f)f.hasOwnProperty(y)&&g.push({propName:f[y],templateName:y});return g}class j0{constructor(g,y){this.injector=g,this.parentInjector=y}get(g,y,k){const F=this.injector.get(g,Ff,k);return F!==Ff||y===Ff?F:this.parentInjector.get(g,y,k)}}class H2 extends Lf{constructor(g,y){super(),this.componentDef=g,this.ngModule=y,this.componentType=g.type,this.selector=function M0(f){return f.map(w0).join(",")}(g.selectors),this.ngContentSelectors=g.ngContentSelectors?g.ngContentSelectors:[],this.isBoundToModule=!!y}get inputs(){return R2(this.componentDef.inputs)}get outputs(){return R2(this.componentDef.outputs)}create(g,y,k,F){let H=(F=F||this.ngModule)instanceof up?F:F?.injector;H&&null!==this.componentDef.getStandaloneInjector&&(H=this.componentDef.getStandaloneInjector(H)||H);const ot=H?new j0(g,H):g,Ct=ot.get(og,null);if(null===Ct)throw new tt(407,!1);const It=ot.get(C0,null),he=Ct.createRenderer(null,this.componentDef),je=this.componentDef.selectors[0][0]||"div",Tn=k?function Zg(f,g,y){return f.selectRootElement(g,y===hn.ShadowDom)}(he,k,this.componentDef.encapsulation):Op(he,je,function Q0(f){const g=f.toLowerCase();return"svg"===g?"svg":"math"===g?"math":null}(je)),ri=this.componentDef.onPush?288:272,Ti=th(0,null,null,1,0,null,null,null,null,null),ji=hd(null,Ti,null,ri,null,null,Ct,he,It,ot,null);let Zo,Ho;yc(ji);try{const ca=function Y2(f,g,y,k,F,H){const ot=y[1];y[22]=f;const It=F_(ot,22,2,"#host",null),he=It.mergedAttrs=g.hostAttrs;null!==he&&(q2(It,he,!0),null!==f&&(Ve(F,f,he),null!==It.classes&&Vh(F,f,It.classes),null!==It.styles&&Np(F,f,It.styles)));const je=k.createRenderer(f,g),Tn=hd(y,Mg(g),null,g.onPush?32:16,y[22],It,k,je,H||null,null,null);return ot.firstCreatePass&&(Jr(Xr(It,y),ot,g.type),vp(ot,It),Vp(It,y.length,1)),R_(y,Tn),y[22]=Tn}(Tn,this.componentDef,ji,Ct,he);if(Tn)if(k)Ve(he,Tn,["ng-version",Ef.full]);else{const{attrs:Ta,classes:uo}=function If(f){const g=[],y=[];let k=1,F=2;for(;k0&&Vh(he,Tn,uo.join(" "))}if(Ho=ms(Ti,22),void 0!==y){const Ta=Ho.projection=[];for(let uo=0;uo=0;k--){const F=f[k];F.hostVars=g+=F.hostVars,F.hostAttrs=ue(F.hostAttrs,y=ue(y,F.hostAttrs))}}(k)}function V_(f){return f===bo?{}:f===hi?[]:f}function $3(f,g){const y=f.viewQuery;f.viewQuery=y?(k,F)=>{g(k,F),y(k,F)}:g}function D(f,g){const y=f.contentQueries;f.contentQueries=y?(k,F,H)=>{g(k,F,H),y(k,F,H)}:g}function I(f,g){const y=f.hostBindings;f.hostBindings=y?(k,F)=>{g(k,F),y(k,F)}:g}let dn=null;function Hn(){if(!dn){const f=qn.Symbol;if(f&&f.iterator)dn=f.iterator;else{const g=Object.getOwnPropertyNames(Map.prototype);for(let y=0;yCt(Va(is[k.index])):k.index;let Ia=null;if(!Ct&&It&&(Ia=function i3(f,g,y,k){const F=f.cleanup;if(null!=F)for(let H=0;HIt?Ct[It]:null}"string"==typeof ot&&(H+=2)}return null}(f,g,F,k.index)),null!==Ia)(Ia.__ngLastListenerFn__||Ia).__ngNextListenerFn__=H,Ia.__ngLastListenerFn__=H,Ti=!1;else{H=a3(k,g,Tn,H,!1);const is=y.listen(ca,F,H);ri.push(H,is),je&&je.push(F,uo,Ta,Ta+1)}}else H=a3(k,g,Tn,H,!1);const ji=k.outputs;let Zo;if(Ti&&null!==ji&&(Zo=ji[F])){const Ho=Zo.length;if(Ho)for(let ca=0;ca0;)g=g[15],f--;return g}(f,io.lFrame.contextLView))[8]}(f)}function w5(f,g){let y=null;const k=function zp(f){const g=f.attrs;if(null!=g){const y=g.indexOf(5);if(0==(1&y))return g[y+1]}return null}(f);for(let F=0;F=0}const Tl={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function l4(f){return f.substring(Tl.key,Tl.keyEnd)}function u4(f,g){const y=Tl.textEnd;return y===g?-1:(g=Tl.keyEnd=function s3(f,g,y){for(;g32;)g++;return g}(f,Tl.key=g,y),J2(f,g,y))}function J2(f,g,y){for(;g=0;y=u4(g,y))ee(f,l4(g),!0)}function d1(f,g,y,k){const F=Gi(),H=da(),ot=Kc(2);H.firstUpdatePass&&f6(H,f,ot,k),g!==Ea&&ua(F,ot,g)&&C4(H,H.data[Rr()],F,F[11],f,F[ot+1]=function y4(f,g){return null==f||("string"==typeof g?f+=g:"object"==typeof f&&(f=w(Js(f)))),f}(g,y),k,ot)}function Ju(f,g,y,k){const F=da(),H=Kc(2);F.firstUpdatePass&&f6(F,null,H,k);const ot=Gi();if(y!==Ea&&ua(ot,H,y)){const Ct=F.data[Rr()];if(T4(Ct,k)&&!v4(F,H)){let It=k?Ct.classesWithoutHost:Ct.stylesWithoutHost;null!==It&&(y=P(It,y||"")),qg(F,Ct,ot,y,k)}else!function P5(f,g,y,k,F,H,ot,Ct){F===Ea&&(F=hi);let It=0,he=0,je=0=f.expandoStartIndex}function f6(f,g,y,k){const F=f.data;if(null===F[y+1]){const H=F[Rr()],ot=v4(f,y);T4(H,k)&&null===g&&!ot&&(g=!1),g=function Z5(f,g,y,k){const F=Fc(f);let H=k?g.residualClasses:g.residualStyles;if(null===F)0===(k?g.classBindings:g.styleBindings)&&(y=Bg(y=x4(null,f,g,y,k),g.attrs,k),H=null);else{const ot=g.directiveStylingLast;if(-1===ot||f[ot]!==F)if(y=x4(F,f,g,y,k),null===H){let It=function h6(f,g,y){const k=y?g.classBindings:g.styleBindings;if(0!==ou(k))return f[md(k)]}(f,g,k);void 0!==It&&Array.isArray(It)&&(It=x4(null,f,g,It[1],k),It=Bg(It,g.attrs,k),function g6(f,g,y,k){f[md(y?g.classBindings:g.styleBindings)]=k}(f,g,k,It))}else H=function Hc(f,g,y){let k;const F=g.directiveEnd;for(let H=1+g.directiveStylingLast;H0)&&(he=!0)}else je=y;if(F)if(0!==It){const ri=md(f[Ct+1]);f[k+1]=R1(ri,Ct),0!==ri&&(f[ri+1]=hp(f[ri+1],k)),f[Ct+1]=function Bf(f,g){return 131071&f|g<<17}(f[Ct+1],k)}else f[k+1]=R1(Ct,0),0!==Ct&&(f[Ct+1]=hp(f[Ct+1],k)),Ct=k;else f[k+1]=R1(It,0),0===Ct?Ct=k:f[It+1]=hp(f[It+1],k),It=k;he&&(f[k+1]=fp(f[k+1])),Ya(f,je,k,!0),Ya(f,je,k,!1),function c4(f,g,y,k,F){const H=F?f.residualClasses:f.residualStyles;null!=H&&"string"==typeof g&&Pn(H,g)>=0&&(y[k+1]=Sa(y[k+1]))}(g,je,f,k,H),ot=R1(Ct,It),H?g.classBindings=ot:g.styleBindings=ot}(F,H,g,y,ot,k)}}function x4(f,g,y,k,F){let H=null;const ot=y.directiveEnd;let Ct=y.directiveStylingLast;for(-1===Ct?Ct=y.directiveStart:Ct++;Ct0;){const It=f[F],he=Array.isArray(It),je=he?It[1]:It,Tn=null===je;let ri=y[F+1];ri===Ea&&(ri=Tn?hi:void 0);let Ti=Tn?me(ri,k):je===k?ri:void 0;if(he&&!xh(Ti)&&(Ti=me(It,k)),xh(Ti)&&(Ct=Ti,ot))return Ct;const ji=f[F+1];F=ot?md(ji):ou(ji)}if(null!==g){let It=H?g.residualClasses:g.residualStyles;null!=It&&(Ct=me(It,k))}return Ct}function xh(f){return void 0!==f}function T4(f,g){return 0!=(f.flags&(g?16:32))}function x6(f,g=""){const y=Gi(),k=da(),F=f+22,H=k.firstCreatePass?F_(k,F,1,g,null):k.data[F],ot=y[F]=function Yh(f,g){return f.createText(g)}(y[11],g);Qr(k,y,ot,H),Ft(H,!1)}function A4(f){return Jg("",f,""),A4}function Jg(f,g,y){const k=Gi(),F=nl(k,f,g,y);return F!==Ea&&Id(k,Rr(),F),Jg}function U4(f,g,y,k,F){const H=Gi(),ot=function Cs(f,g,y,k,F,H){const Ct=la(f,qr(),y,F);return Kc(2),Ct?g+ct(y)+k+ct(F)+H:Ea}(H,f,g,y,k,F);return ot!==Ea&&Id(H,Rr(),ot),U4}function b6(f,g,y,k,F,H,ot){const Ct=Gi(),It=function Hl(f,g,y,k,F,H,ot,Ct){const he=er(f,qr(),y,F,ot);return Kc(3),he?g+ct(y)+k+ct(F)+H+ct(ot)+Ct:Ea}(Ct,f,g,y,k,F,H,ot);return It!==Ea&&Id(Ct,Rr(),It),b6}function u3(f,g,y,k,F,H,ot,Ct,It){const he=Gi(),je=function ru(f,g,y,k,F,H,ot,Ct,It,he){const Tn=Na(f,qr(),y,F,ot,It);return Kc(4),Tn?g+ct(y)+k+ct(F)+H+ct(ot)+Ct+ct(It)+he:Ea}(he,f,g,y,k,F,H,ot,Ct,It);return je!==Ea&&Id(he,Rr(),je),u3}function w4(f,g,y,k,F,H,ot,Ct,It,he,je){const Tn=Gi(),ri=function zm(f,g,y,k,F,H,ot,Ct,It,he,je,Tn){const ri=qr();let Ti=Na(f,ri,y,F,ot,It);return Ti=ua(f,ri+4,je)||Ti,Kc(5),Ti?g+ct(y)+k+ct(F)+H+ct(ot)+Ct+ct(It)+he+ct(je)+Tn:Ea}(Tn,f,g,y,k,F,H,ot,Ct,It,he,je);return ri!==Ea&&Id(Tn,Rr(),ri),w4}function p3(f,g,y){Ju(ee,Bu,nl(Gi(),f,g,y),!0)}function M(f,g,y){const k=Gi();return ua(k,Ja(),g)&&Rl(da(),Pa(),k,f,g,k[11],y,!0),M}function S(f,g,y){const k=Gi();if(ua(k,Ja(),g)){const H=da(),ot=Pa();Rl(H,ot,k,f,g,I2(Fc(H.data),ot,k),y,!0)}return S}const q=void 0;var at=["en",[["a","p"],["AM","PM"],q],[["AM","PM"],q,q],[["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"]],q,[["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"]],q,[["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}",q,"{1} 'at' {0}",q],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function B(f){const y=Math.floor(Math.abs(f)),k=f.toString().replace(/^[^.]*\.?/,"").length;return 1===y&&0===k?1:5}];let _t={};function Zt(f,g,y){"string"!=typeof g&&(y=g,g=f[Gn.LocaleId]),g=g.toLowerCase().replace(/_/g,"-"),_t[g]=f,y&&(_t[g][Gn.ExtraData]=y)}function _e(f){const g=function Fi(f){return f.toLowerCase().replace(/_/g,"-")}(f);let y=Mn(g);if(y)return y;const k=g.split("-")[0];if(y=Mn(k),y)return y;if("en"===k)return at;throw new tt(701,!1)}function mn(f){return _e(f)[Gn.PluralCase]}function Mn(f){return f in _t||(_t[f]=qn.ng&&qn.ng.common&&qn.ng.common.locales&&qn.ng.common.locales[f]),_t[f]}var Gn=(()=>((Gn=Gn||{})[Gn.LocaleId=0]="LocaleId",Gn[Gn.DayPeriodsFormat=1]="DayPeriodsFormat",Gn[Gn.DayPeriodsStandalone=2]="DayPeriodsStandalone",Gn[Gn.DaysFormat=3]="DaysFormat",Gn[Gn.DaysStandalone=4]="DaysStandalone",Gn[Gn.MonthsFormat=5]="MonthsFormat",Gn[Gn.MonthsStandalone=6]="MonthsStandalone",Gn[Gn.Eras=7]="Eras",Gn[Gn.FirstDayOfWeek=8]="FirstDayOfWeek",Gn[Gn.WeekendRange=9]="WeekendRange",Gn[Gn.DateFormat=10]="DateFormat",Gn[Gn.TimeFormat=11]="TimeFormat",Gn[Gn.DateTimeFormat=12]="DateTimeFormat",Gn[Gn.NumberSymbols=13]="NumberSymbols",Gn[Gn.NumberFormats=14]="NumberFormats",Gn[Gn.CurrencyCode=15]="CurrencyCode",Gn[Gn.CurrencySymbol=16]="CurrencySymbol",Gn[Gn.CurrencyName=17]="CurrencyName",Gn[Gn.Currencies=18]="Currencies",Gn[Gn.Directionality=19]="Directionality",Gn[Gn.PluralCase=20]="PluralCase",Gn[Gn.ExtraData=21]="ExtraData",Gn))();const ba="en-US";let Al=ba;function S6(f,g,y,k,F){if(f=N(f),Array.isArray(f))for(let H=0;H>20;if(Od(f)||!f.multi){const Ti=new Uu(It,F,iu),ji=Q5(Ct,g,F?je:je+ri,Tn);-1===ji?(Jr(Xr(he,ot),H,Ct),J5(H,f,g.length),g.push(Ct),he.directiveStart++,he.directiveEnd++,F&&(he.providerIndexes+=1048576),y.push(Ti),ot.push(Ti)):(y[ji]=Ti,ot[ji]=Ti)}else{const Ti=Q5(Ct,g,je+ri,Tn),ji=Q5(Ct,g,je,je+ri),Zo=Ti>=0&&y[Ti],Ho=ji>=0&&y[ji];if(F&&!Ho||!F&&!Zo){Jr(Xr(he,ot),H,Ct);const ca=function gi(f,g,y,k,F){const H=new Uu(f,y,iu);return H.multi=[],H.index=g,H.componentProviders=0,G5(H,F,k&&!y),H}(F?BC:VC,y.length,F,k,It);!F&&Ho&&(y[ji].providerFactory=ca),J5(H,f,g.length,0),g.push(Ct),he.directiveStart++,he.directiveEnd++,F&&(he.providerIndexes+=1048576),y.push(ca),ot.push(ca)}else J5(H,f,Ti>-1?Ti:ji,G5(y[F?ji:Ti],It,!F&&k));!F&&k&&Ho&&y[ji].componentProviders++}}}function J5(f,g,y,k){const F=Od(g),H=function b2(f){return!!f.useClass}(g);if(F||H){const It=(H?N(g.useClass):g).prototype.ngOnDestroy;if(It){const he=f.destroyHooks||(f.destroyHooks=[]);if(!F&&g.multi){const je=he.indexOf(y);-1===je?he.push(y,[k,It]):he[je+1].push(k,It)}else he.push(y,It)}}}function G5(f,g,y){return y&&f.componentProviders++,f.multi.push(g)-1}function Q5(f,g,y,k){for(let F=y;F{y.providersResolver=(k,F)=>function zC(f,g,y){const k=da();if(k.firstCreatePass){const F=Ls(f);S6(y,k.data,k.blueprint,F,!0),S6(g,k.data,k.blueprint,F,!1)}}(k,F?F(f):f,g)}}class h3{}class O6{}function JC(f,g){return new W5(f,g??null)}class W5 extends h3{constructor(g,y){super(),this._parent=y,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Hm(this);const k=Ei(g);this._bootstrapComponents=E1(k.bootstrap),this._r3Injector=Uc(g,y,[{provide:h3,useValue:this},{provide:wm,useValue:this.componentFactoryResolver}],w(g),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(g)}get injector(){return this._r3Injector}destroy(){const g=this._r3Injector;!g.destroyed&&g.destroy(),this.destroyCbs.forEach(y=>y()),this.destroyCbs=null}onDestroy(g){this.destroyCbs.push(g)}}class L6 extends O6{constructor(g){super(),this.moduleType=g}create(g){return new W5(this.moduleType,g)}}class GC extends h3{constructor(g,y,k){super(),this.componentFactoryResolver=new Hm(this),this.instance=null;const F=new g0([...g,{provide:h3,useValue:this},{provide:wm,useValue:this.componentFactoryResolver}],y||C2(),k,new Set(["environment"]));this.injector=F,F.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(g){this.injector.onDestroy(g)}}function $5(f,g,y=null){return new GC(f,g,y).injector}let QC=(()=>{class f{constructor(y){this._injector=y,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(y){if(!y.standalone)return null;if(!this.cachedInjectors.has(y.id)){const k=Rp(0,y.type),F=k.length>0?$5([k],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 f.\u0275prov=re({token:f,providedIn:"environment",factory:()=>new f(ic(up))}),f})();function t8(f){f.getStandaloneInjector=g=>g.get(QC).getOrCreateStandaloneInjector(f)}function s8(f,g,y){const k=Ir()+f,F=Gi();return F[k]===Ea?jo(F,k,y?g.call(y):g()):function ma(f,g){return f[g]}(F,k)}function c8(f,g,y,k){return nv(Gi(),Ir(),f,g,y,k)}function l8(f,g,y,k,F){return d8(Gi(),Ir(),f,g,y,k,F)}function F4(f,g){const y=f[g];return y===Ea?void 0:y}function nv(f,g,y,k,F,H){const ot=g+y;return ua(f,ot,F)?jo(f,ot+1,H?k.call(H,F):k(F)):F4(f,ot+1)}function d8(f,g,y,k,F,H,ot){const Ct=g+y;return la(f,Ct,F,H)?jo(f,Ct+2,ot?k.call(ot,F,H):k(F,H)):F4(f,Ct+2)}function _8(f,g){const y=da();let k;const F=f+22;y.firstCreatePass?(k=function f8(f,g){if(g)for(let y=g.length-1;y>=0;y--){const k=g[y];if(f===k.name)return k}}(g,y.pipeRegistry),y.data[F]=k,k.onDestroy&&(y.destroyHooks||(y.destroyHooks=[])).push(F,k.onDestroy)):k=y.data[F];const H=k.factory||(k.factory=Xs(k.type)),ot=it(iu);try{const Ct=wi(!1),It=H();return wi(Ct),function l6(f,g,y,k){y>=f.data.length&&(f.data[y]=null,f.blueprint[y]=null),g[y]=k}(y,Gi(),F,It),It}finally{it(ot)}}function h8(f,g,y){const k=f+22,F=Gi(),H=Za(F,k);return N4(F,k)?nv(F,Ir(),g,H.transform,y,H):H.transform(y)}function g8(f,g,y,k){const F=f+22,H=Gi(),ot=Za(H,F);return N4(H,F)?d8(H,Ir(),g,ot.transform,y,k,ot):ot.transform(y,k)}function v8(f,g,y,k,F){const H=f+22,ot=Gi(),Ct=Za(ot,H);return N4(ot,H)?function iv(f,g,y,k,F,H,ot,Ct){const It=g+y;return er(f,It,F,H,ot)?jo(f,It+3,Ct?k.call(Ct,F,H,ot):k(F,H,ot)):F4(f,It+3)}(ot,Ir(),g,Ct.transform,y,k,F,Ct):Ct.transform(y,k,F)}function E6(f,g,y,k,F,H){const ot=f+22,Ct=Gi(),It=Za(Ct,ot);return N4(Ct,ot)?function p8(f,g,y,k,F,H,ot,Ct,It){const he=g+y;return Na(f,he,F,H,ot,Ct)?jo(f,he+4,It?k.call(It,F,H,ot,Ct):k(F,H,ot,Ct)):F4(f,he+4)}(Ct,Ir(),g,It.transform,y,k,F,H,It):It.transform(y,k,F,H)}function N4(f,g){return f[1].data[g].pure}function ov(f){return g=>{setTimeout(f,void 0,g)}}const J1=class s7 extends u.xQ{constructor(g=!1){super(),this.__isAsync=g}emit(g){super.next(g)}subscribe(g,y,k){let F=g,H=y||(()=>null),ot=k;if(g&&"object"==typeof g){const It=g;F=It.next?.bind(It),H=It.error?.bind(It),ot=It.complete?.bind(It)}this.__isAsync&&(H=ov(H),F&&(F=ov(F)),ot&&(ot=ov(ot)));const Ct=super.subscribe({next:F,error:H,complete:ot});return g instanceof p.w&&g.add(Ct),Ct}};function c7(){return this._results[Hn()]()}class F6{constructor(g=!1){this._emitDistinctChangesOnly=g,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const y=Hn(),k=F6.prototype;k[y]||(k[y]=c7)}get changes(){return this._changes||(this._changes=new J1)}get(g){return this._results[g]}map(g){return this._results.map(g)}filter(g){return this._results.filter(g)}find(g){return this._results.find(g)}reduce(g,y){return this._results.reduce(g,y)}forEach(g){this._results.forEach(g)}some(g){return this._results.some(g)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(g,y){const k=this;k.dirty=!1;const F=pc(g);(this._changesDetected=!function qc(f,g,y){if(f.length!==g.length)return!1;for(let k=0;k{class f{}return f.__NG_ELEMENT_ID__=l7,f})();const av=I4,x8=class extends av{constructor(g,y,k){super(),this._declarationLView=g,this._declarationTContainer=y,this.elementRef=k}createEmbeddedView(g,y){const k=this._declarationTContainer.tViews,F=hd(this._declarationLView,k,g,16,null,k.declTNode,null,null,null,null,y||null);F[17]=this._declarationLView[this._declarationTContainer.index];const ot=this._declarationLView[19];return null!==ot&&(F[19]=ot.createEmbeddedView(k)),Ug(k,F,g),new z_(F)}};function l7(){return q4(Wa(),Gi())}function q4(f,g){return 4&f.type?new x8(g,f,Ha(f,g)):null}let N6=(()=>{class f{}return f.__NG_ELEMENT_ID__=u7,f})();function u7(){return sv(Wa(),Gi())}const b8=N6,C8=class extends b8{constructor(g,y,k){super(),this._lContainer=g,this._hostTNode=y,this._hostLView=k}get element(){return Ha(this._hostTNode,this._hostLView)}get injector(){return new _l(this._hostTNode,this._hostLView)}get parentInjector(){const g=ts(this._hostTNode,this._hostLView);if(Ke(g)){const y=ei(g,this._hostLView),k=bn(g);return new _l(y[1].data[k+8],y)}return new _l(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(g){const y=y8(this._lContainer);return null!==y&&y[g]||null}get length(){return this._lContainer.length-10}createEmbeddedView(g,y,k){let F,H;"number"==typeof k?F=k:null!=k&&(F=k.index,H=k.injector);const ot=g.createEmbeddedView(y||{},H);return this.insert(ot,F),ot}createComponent(g,y,k,F,H){const ot=g&&!function T1(f){return"function"==typeof f}(g);let Ct;if(ot)Ct=y;else{const Tn=y||{};Ct=Tn.index,k=Tn.injector,F=Tn.projectableNodes,H=Tn.environmentInjector||Tn.ngModuleRef}const It=ot?g:new H2(zt(g)),he=k||this.parentInjector;if(!H&&null==It.ngModule){const ri=(ot?he:this.parentInjector).get(up,null);ri&&(H=ri)}const je=It.create(he,F,void 0,H);return this.insert(je.hostView,Ct),je}insert(g,y){const k=g._lView,F=k[1];if(function Fs(f){return Ar(f[3])}(k)){const je=this.indexOf(g);if(-1!==je)this.detach(je);else{const Tn=k[3],ri=new C8(Tn,Tn[6],Tn[3]);ri.detach(ri.indexOf(g))}}const H=this._adjustIndex(y),ot=this._lContainer;!function qs(f,g,y,k){const F=10+k,H=y.length;k>0&&(y[F-1][4]=g),k0)k.push(ot[Ct/2]);else{const he=H[Ct+1],je=g[-It];for(let Tn=10;Tn{class f{constructor(y){this.appInits=y,this.resolve=B6,this.reject=B6,this.initialized=!1,this.done=!1,this.donePromise=new Promise((k,F)=>{this.resolve=k,this.reject=F})}runInitializers(){if(this.initialized)return;const y=[],k=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let F=0;F{H.subscribe({complete:Ct,error:It})});y.push(ot)}}Promise.all(y).then(()=>{k()}).catch(F=>{this.reject(F)}),0===y.length&&k(),this.initialized=!0}}return f.\u0275fac=function(y){return new(y||f)(ic(Y8,8))},f.\u0275prov=re({token:f,factory:f.\u0275fac,providedIn:"root"}),f})();const z8=new Un("AppId",{providedIn:"root",factory:function V8(){return`${J6()}${J6()}${J6()}`}});function J6(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const B8=new Un("Platform Initializer"),F7=new Un("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),J8=new Un("appBootstrapListener"),I7=new Un("AnimationModuleType");let q7=(()=>{class f{log(y){console.log(y)}warn(y){console.warn(y)}}return f.\u0275fac=function(y){return new(y||f)},f.\u0275prov=re({token:f,factory:f.\u0275fac,providedIn:"platform"}),f})();const G6=new Un("LocaleId",{providedIn:"root",factory:()=>Up(G6,oi.Optional|oi.SkipSelf)||function R7(){return typeof $localize<"u"&&$localize.locale||ba}()}),H7=new Un("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class z7{constructor(g,y){this.ngModuleFactory=g,this.componentFactories=y}}let G8=(()=>{class f{compileModuleSync(y){return new L6(y)}compileModuleAsync(y){return Promise.resolve(this.compileModuleSync(y))}compileModuleAndAllComponentsSync(y){const k=this.compileModuleSync(y),H=E1(Ei(y).declarations).reduce((ot,Ct)=>{const It=zt(Ct);return It&&ot.push(new H2(It)),ot},[]);return new z7(k,H)}compileModuleAndAllComponentsAsync(y){return Promise.resolve(this.compileModuleAndAllComponentsSync(y))}clearCache(){}clearCacheFor(y){}getModuleId(y){}}return f.\u0275fac=function(y){return new(y||f)},f.\u0275prov=re({token:f,factory:f.\u0275fac,providedIn:"root"}),f})();const B7=(()=>Promise.resolve(0))();function Q6(f){typeof Zone>"u"?B7.then(()=>{f&&f.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",f)}class Wp{constructor({enableLongStackTrace:g=!1,shouldCoalesceEventChangeDetection:y=!1,shouldCoalesceRunChangeDetection:k=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new J1(!1),this.onMicrotaskEmpty=new J1(!1),this.onStable=new J1(!1),this.onError=new J1(!1),typeof Zone>"u")throw new tt(908,!1);Zone.assertZonePatched();const F=this;if(F._nesting=0,F._outer=F._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const H=Zone.AsyncStackTaggingZoneSpec;F._inner=F._inner.fork(new H("Angular"))}Zone.TaskTrackingZoneSpec&&(F._inner=F._inner.fork(new Zone.TaskTrackingZoneSpec)),g&&Zone.longStackTraceZoneSpec&&(F._inner=F._inner.fork(Zone.longStackTraceZoneSpec)),F.shouldCoalesceEventChangeDetection=!k&&y,F.shouldCoalesceRunChangeDetection=k,F.lastRequestAnimationFrameId=-1,F.nativeRequestAnimationFrame=function $8(){let f=qn.requestAnimationFrame,g=qn.cancelAnimationFrame;if(typeof Zone<"u"&&f&&g){const y=f[Zone.__symbol__("OriginalDelegate")];y&&(f=y);const k=g[Zone.__symbol__("OriginalDelegate")];k&&(g=k)}return{nativeRequestAnimationFrame:f,nativeCancelAnimationFrame:g}}().nativeRequestAnimationFrame,function J7(f){const g=()=>{!function wv(f){f.isCheckStableRunning||-1!==f.lastRequestAnimationFrameId||(f.lastRequestAnimationFrameId=f.nativeRequestAnimationFrame.call(qn,()=>{f.fakeTopEventTask||(f.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{f.lastRequestAnimationFrameId=-1,Mv(f),f.isCheckStableRunning=!0,Uv(f),f.isCheckStableRunning=!1},void 0,()=>{},()=>{})),f.fakeTopEventTask.invoke()}),Mv(f))}(f)};f._inner=f._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(y,k,F,H,ot,Ct)=>{try{return X8(f),y.invokeTask(F,H,ot,Ct)}finally{(f.shouldCoalesceEventChangeDetection&&"eventTask"===H.type||f.shouldCoalesceRunChangeDetection)&&g(),Zv(f)}},onInvoke:(y,k,F,H,ot,Ct,It)=>{try{return X8(f),y.invoke(F,H,ot,Ct,It)}finally{f.shouldCoalesceRunChangeDetection&&g(),Zv(f)}},onHasTask:(y,k,F,H)=>{y.hasTask(F,H),k===F&&("microTask"==H.change?(f._hasPendingMicrotasks=H.microTask,Mv(f),Uv(f)):"macroTask"==H.change&&(f.hasPendingMacrotasks=H.macroTask))},onHandleError:(y,k,F,H)=>(y.handleError(F,H),f.runOutsideAngular(()=>f.onError.emit(H)),!1)})}(F)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Wp.isInAngularZone())throw new tt(909,!1)}static assertNotInAngularZone(){if(Wp.isInAngularZone())throw new tt(909,!1)}run(g,y,k){return this._inner.run(g,y,k)}runTask(g,y,k,F){const H=this._inner,ot=H.scheduleEventTask("NgZoneEvent: "+F,g,K8,B6,B6);try{return H.runTask(ot,y,k)}finally{H.cancelTask(ot)}}runGuarded(g,y,k){return this._inner.runGuarded(g,y,k)}runOutsideAngular(g){return this._outer.run(g)}}const K8={};function Uv(f){if(0==f._nesting&&!f.hasPendingMicrotasks&&!f.isStable)try{f._nesting++,f.onMicrotaskEmpty.emit(null)}finally{if(f._nesting--,!f.hasPendingMicrotasks)try{f.runOutsideAngular(()=>f.onStable.emit(null))}finally{f.isStable=!0}}}function Mv(f){f.hasPendingMicrotasks=!!(f._hasPendingMicrotasks||(f.shouldCoalesceEventChangeDetection||f.shouldCoalesceRunChangeDetection)&&-1!==f.lastRequestAnimationFrameId)}function X8(f){f._nesting++,f.isStable&&(f.isStable=!1,f.onUnstable.emit(null))}function Zv(f){f._nesting--,Uv(f)}class Dv{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new J1,this.onMicrotaskEmpty=new J1,this.onStable=new J1,this.onError=new J1}run(g,y,k){return g.apply(y,k)}runGuarded(g,y,k){return g.apply(y,k)}runOutsideAngular(g){return g()}runTask(g,y,k,F){return g.apply(y,k)}}const tb=new Un(""),eb=new Un("");let j6,nb=(()=>{class f{constructor(y,k,F){this._ngZone=y,this.registry=k,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,j6||(function G7(f){j6=f}(F),F.addToWindow(k)),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:()=>{Wp.assertNotInAngularZone(),Q6(()=>{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())Q6(()=>{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(k=>!k.updateCb||!k.updateCb(y)||(clearTimeout(k.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,k,F){let H=-1;k&&k>0&&(H=setTimeout(()=>{this._callbacks=this._callbacks.filter(ot=>ot.timeoutId!==H),y(this._didWork,this.getPendingTasks())},k)),this._callbacks.push({doneCb:y,timeoutId:H,updateCb:F})}whenStable(y,k,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,k,F),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(y){this.registry.registerApplication(y,this)}unregisterApplication(y){this.registry.unregisterApplication(y)}findProviders(y,k,F){return[]}}return f.\u0275fac=function(y){return new(y||f)(ic(Wp),ic(ib),ic(eb))},f.\u0275prov=re({token:f,factory:f.\u0275fac}),f})(),ib=(()=>{class f{constructor(){this._applications=new Map}registerApplication(y,k){this._applications.set(y,k)}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,k=!0){return j6?.findTestabilityInTree(this,y,k)??null}}return f.\u0275fac=function(y){return new(y||f)},f.\u0275prov=re({token:f,factory:f.\u0275fac,providedIn:"platform"}),f})(),Ch=null;const Pv=new Un("AllowMultipleToken"),kv=new Un("PlatformDestroyListeners");class ob{constructor(g,y){this.name=g,this.token=y}}function rb(f,g,y=[]){const k=`Platform: ${g}`,F=new Un(k);return(H=[])=>{let ot=$6();if(!ot||ot.injector.get(Pv,!1)){const Ct=[...y,...H,{provide:F,useValue:!0}];f?f(Ct):function j7(f){if(Ch&&!Ch.get(Pv,!1))throw new tt(400,!1);Ch=f;const g=f.get(Sv);(function ab(f){const g=f.get(B8,null);g&&g.forEach(y=>y())})(f)}(function sb(f=[],g){return dd.create({name:g,providers:[{provide:lp,useValue:"platform"},{provide:kv,useValue:new Set([()=>Ch=null])},...f]})}(Ct,k))}return function $7(f){const g=$6();if(!g)throw new tt(401,!1);return g}()}}function $6(){return Ch?.get(Sv)??null}let Sv=(()=>{class f{constructor(y){this._injector=y,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(y,k){const F=function cb(f,g){let y;return y="noop"===f?new Dv:("zone.js"===f?void 0:f)||new Wp(g),y}(k?.ngZone,function K6(f){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!f||!f.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!f||!f.ngZoneRunCoalescing)||!1}}(k)),H=[{provide:Wp,useValue:F}];return F.run(()=>{const ot=dd.create({providers:H,parent:this.injector,name:y.moduleType.name}),Ct=y.create(ot),It=Ct.injector.get(Yp,null);if(!It)throw new tt(402,!1);return F.runOutsideAngular(()=>{const he=F.onError.subscribe({next:je=>{It.handleError(je)}});Ct.onDestroy(()=>{H4(this._modules,Ct),he.unsubscribe()})}),function lb(f,g,y){try{const k=y();return n3(k)?k.catch(F=>{throw g.runOutsideAngular(()=>f.handleError(F)),F}):k}catch(k){throw g.runOutsideAngular(()=>f.handleError(k)),k}}(It,F,()=>{const he=Ct.injector.get(R4);return he.runInitializers(),he.donePromise.then(()=>(function al(f){Ge(f,"Expected localeId to be defined"),"string"==typeof f&&(Al=f.toLowerCase().replace(/_/g,"-"))}(Ct.injector.get(G6,ba)||ba),this._moduleDoBootstrap(Ct),Ct))})})}bootstrapModule(y,k=[]){const F=X6({},k);return function Q7(f,g,y){const k=new L6(y);return Promise.resolve(k)}(0,0,y).then(H=>this.bootstrapModuleFactory(H,F))}_moduleDoBootstrap(y){const k=y.injector.get(t5);if(y._bootstrapComponents.length>0)y._bootstrapComponents.forEach(F=>k.bootstrap(F));else{if(!y.instance.ngDoBootstrap)throw new tt(403,!1);y.instance.ngDoBootstrap(k)}this._modules.push(y)}onDestroy(y){this._destroyListeners.push(y)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new tt(404,!1);this._modules.slice().forEach(k=>k.destroy()),this._destroyListeners.forEach(k=>k());const y=this._injector.get(kv,null);y&&(y.forEach(k=>k()),y.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return f.\u0275fac=function(y){return new(y||f)(ic(dd))},f.\u0275prov=re({token:f,factory:f.\u0275fac,providedIn:"platform"}),f})();function X6(f,g){return Array.isArray(g)?g.reduce(X6,f):{...f,...g}}let t5=(()=>{class f{constructor(y,k,F){this._zone=y,this._injector=k,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 H=new x.y(Ct=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{Ct.next(this._stable),Ct.complete()})}),ot=new x.y(Ct=>{let It;this._zone.runOutsideAngular(()=>{It=this._zone.onStable.subscribe(()=>{Wp.assertNotInAngularZone(),Q6(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,Ct.next(!0))})})});const he=this._zone.onUnstable.subscribe(()=>{Wp.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{Ct.next(!1)}))});return()=>{It.unsubscribe(),he.unsubscribe()}});this.isStable=(0,v.T)(H,ot.pipe((0,t.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(y,k){const F=y instanceof Lf;if(!this._injector.get(R4).done)throw!F&&Sn(y),new tt(405,false);let ot;ot=F?y:this._injector.get(wm).resolveComponentFactory(y),this.componentTypes.push(ot.componentType);const Ct=function W6(f){return f.isBoundToModule}(ot)?void 0:this._injector.get(h3),he=ot.create(dd.NULL,[],k||ot.selector,Ct),je=he.location.nativeElement,Tn=he.injector.get(tb,null);return Tn?.registerApplication(je),he.onDestroy(()=>{this.detachView(he.hostView),H4(this.components,he),Tn?.unregisterApplication(je)}),this._loadComponent(he),he}tick(){if(this._runningTick)throw new tt(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 k=y;this._views.push(k),k.attachToAppRef(this)}detachView(y){const k=y;H4(this._views,k),k.detachFromAppRef()}_loadComponent(y){this.attachView(y.hostView),this.tick(),this.components.push(y),this._injector.get(J8,[]).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),()=>H4(this._destroyListeners,y)}destroy(){if(this._destroyed)throw new tt(406,!1);const y=this._injector;y.destroy&&!y.destroyed&&y.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return f.\u0275fac=function(y){return new(y||f)(ic(Wp),ic(up),ic(Yp))},f.\u0275prov=re({token:f,factory:f.\u0275fac,providedIn:"root"}),f})();function H4(f,g){const y=f.indexOf(g);y>-1&&f.splice(y,1)}let db=!0;function ty(){db=!1}let _b=(()=>{class f{}return f.__NG_ELEMENT_ID__=ny,f})();function ny(f){return function fb(f,g,y){if(Ml(f)&&!y){const k=rs(f.index,g);return new z_(k,k)}return 47&f.type?new z_(g[Q],g):null}(Wa(),Gi(),16==(16&f))}class vb{constructor(){}supports(g){return fi(g)}create(g){return new cy(g)}}const sy=(f,g)=>g;class cy{constructor(g){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=g||sy}forEachItem(g){let y;for(y=this._itHead;null!==y;y=y._next)g(y)}forEachOperation(g){let y=this._itHead,k=this._removalsHead,F=0,H=null;for(;y||k;){const ot=!k||y&&y.currentIndex{ot=this._trackByFn(F,Ct),null!==y&&Object.is(y.trackById,ot)?(k&&(y=this._verifyReinsertion(y,Ct,ot,F)),Object.is(y.item,Ct)||this._addIdentityChange(y,Ct)):(y=this._mismatch(y,Ct,ot,F),k=!0),y=y._next,F++}),this.length=F;return this._truncate(y),this.collection=g,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let g;for(g=this._previousItHead=this._itHead;null!==g;g=g._next)g._nextPrevious=g._next;for(g=this._additionsHead;null!==g;g=g._nextAdded)g.previousIndex=g.currentIndex;for(this._additionsHead=this._additionsTail=null,g=this._movesHead;null!==g;g=g._nextMoved)g.previousIndex=g.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(g,y,k,F){let H;return null===g?H=this._itTail:(H=g._prev,this._remove(g)),null!==(g=null===this._unlinkedRecords?null:this._unlinkedRecords.get(k,null))?(Object.is(g.item,y)||this._addIdentityChange(g,y),this._reinsertAfter(g,H,F)):null!==(g=null===this._linkedRecords?null:this._linkedRecords.get(k,F))?(Object.is(g.item,y)||this._addIdentityChange(g,y),this._moveAfter(g,H,F)):g=this._addAfter(new ly(y,k),H,F),g}_verifyReinsertion(g,y,k,F){let H=null===this._unlinkedRecords?null:this._unlinkedRecords.get(k,null);return null!==H?g=this._reinsertAfter(H,g._prev,F):g.currentIndex!=F&&(g.currentIndex=F,this._addToMoves(g,F)),g}_truncate(g){for(;null!==g;){const y=g._next;this._addToRemovals(this._unlink(g)),g=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(g,y,k){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(g);const F=g._prevRemoved,H=g._nextRemoved;return null===F?this._removalsHead=H:F._nextRemoved=H,null===H?this._removalsTail=F:H._prevRemoved=F,this._insertAfter(g,y,k),this._addToMoves(g,k),g}_moveAfter(g,y,k){return this._unlink(g),this._insertAfter(g,y,k),this._addToMoves(g,k),g}_addAfter(g,y,k){return this._insertAfter(g,y,k),this._additionsTail=null===this._additionsTail?this._additionsHead=g:this._additionsTail._nextAdded=g,g}_insertAfter(g,y,k){const F=null===y?this._itHead:y._next;return g._next=F,g._prev=y,null===F?this._itTail=g:F._prev=g,null===y?this._itHead=g:y._next=g,null===this._linkedRecords&&(this._linkedRecords=new Iv),this._linkedRecords.put(g),g.currentIndex=k,g}_remove(g){return this._addToRemovals(this._unlink(g))}_unlink(g){null!==this._linkedRecords&&this._linkedRecords.remove(g);const y=g._prev,k=g._next;return null===y?this._itHead=k:y._next=k,null===k?this._itTail=y:k._prev=y,g}_addToMoves(g,y){return g.previousIndex===y||(this._movesTail=null===this._movesTail?this._movesHead=g:this._movesTail._nextMoved=g),g}_addToRemovals(g){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Iv),this._unlinkedRecords.put(g),g.currentIndex=null,g._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=g,g._prevRemoved=null):(g._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=g),g}_addIdentityChange(g,y){return g.item=y,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=g:this._identityChangesTail._nextIdentityChange=g,g}}class ly{constructor(g,y){this.item=g,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 uy{constructor(){this._head=null,this._tail=null}add(g){null===this._head?(this._head=this._tail=g,g._nextDup=null,g._prevDup=null):(this._tail._nextDup=g,g._prevDup=this._tail,g._nextDup=null,this._tail=g)}get(g,y){let k;for(k=this._head;null!==k;k=k._nextDup)if((null===y||y<=k.currentIndex)&&Object.is(k.trackById,g))return k;return null}remove(g){const y=g._prevDup,k=g._nextDup;return null===y?this._head=k:y._nextDup=k,null===k?this._tail=y:k._prevDup=y,null===this._head}}class Iv{constructor(){this.map=new Map}put(g){const y=g.trackById;let k=this.map.get(y);k||(k=new uy,this.map.set(y,k)),k.add(g)}get(g,y){const F=this.map.get(g);return F?F.get(g,y):null}remove(g){const y=g.trackById;return this.map.get(y).remove(g)&&this.map.delete(y),g}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function xb(f,g,y){const k=f.previousIndex;if(null===k)return k;let F=0;return y&&k{if(y&&y.key===F)this._maybeAddToChanges(y,k),this._appendAfter=y,y=y._next;else{const H=this._getOrCreateRecordForKey(F,k);y=this._insertBeforeOrAppend(y,H)}}),y){y._prev&&(y._prev._next=null),this._removalsHead=y;for(let k=y;null!==k;k=k._nextRemoved)k===this._mapHead&&(this._mapHead=null),this._records.delete(k.key),k._nextRemoved=k._next,k.previousValue=k.currentValue,k.currentValue=null,k._prev=null,k._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(g,y){if(g){const k=g._prev;return y._next=g,y._prev=k,g._prev=y,k&&(k._next=y),g===this._mapHead&&(this._mapHead=y),this._appendAfter=g,g}return this._appendAfter?(this._appendAfter._next=y,y._prev=this._appendAfter):this._mapHead=y,this._appendAfter=y,null}_getOrCreateRecordForKey(g,y){if(this._records.has(g)){const F=this._records.get(g);this._maybeAddToChanges(F,y);const H=F._prev,ot=F._next;return H&&(H._next=ot),ot&&(ot._prev=H),F._next=null,F._prev=null,F}const k=new py(g);return this._records.set(g,k),k.currentValue=y,this._addToAdditions(k),k}_reset(){if(this.isDirty){let g;for(this._previousMapHead=this._mapHead,g=this._previousMapHead;null!==g;g=g._next)g._nextPrevious=g._next;for(g=this._changesHead;null!==g;g=g._nextChanged)g.previousValue=g.currentValue;for(g=this._additionsHead;null!=g;g=g._nextAdded)g.previousValue=g.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(g,y){Object.is(y,g.currentValue)||(g.previousValue=g.currentValue,g.currentValue=y,this._addToChanges(g))}_addToAdditions(g){null===this._additionsHead?this._additionsHead=this._additionsTail=g:(this._additionsTail._nextAdded=g,this._additionsTail=g)}_addToChanges(g){null===this._changesHead?this._changesHead=this._changesTail=g:(this._changesTail._nextChanged=g,this._changesTail=g)}_forEach(g,y){g instanceof Map?g.forEach(y):Object.keys(g).forEach(k=>y(g[k],k))}}class py{constructor(g){this.key=g,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 qv(){return new Rv([new vb])}let Rv=(()=>{class f{constructor(y){this.factories=y}static create(y,k){if(null!=k){const F=k.factories.slice();y=y.concat(F)}return new f(y)}static extend(y){return{provide:f,useFactory:k=>f.create(y,k||qv()),deps:[[f,new wp,new oc]]}}find(y){const k=this.factories.find(F=>F.supports(y));if(null!=k)return k;throw new tt(901,!1)}}return f.\u0275prov=re({token:f,providedIn:"root",factory:qv}),f})();function Cb(){return new Y4([new bb])}let Y4=(()=>{class f{constructor(y){this.factories=y}static create(y,k){if(k){const F=k.factories.slice();y=y.concat(F)}return new f(y)}static extend(y){return{provide:f,useFactory:k=>f.create(y,k||Cb()),deps:[[f,new wp,new oc]]}}find(y){const k=this.factories.find(F=>F.supports(y));if(k)return k;throw new tt(901,!1)}}return f.\u0275prov=re({token:f,providedIn:"root",factory:Cb}),f})();const fy=rb(null,"core",[]);let hy=(()=>{class f{constructor(y){}}return f.\u0275fac=function(y){return new(y||f)(ic(t5))},f.\u0275mod=fn({type:f}),f.\u0275inj=oe({}),f})();function gy(f){return"boolean"==typeof f?f:null!=f&&"false"!==f}},85863:(X,j,h)=>{"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}h.d(j,{Ar:()=>v,GK:()=>u,iQ:()=>x,kt:()=>P,tj:()=>T});const p="inline",x=["row","column","row-reverse","column-reverse"];function v(O){let[L,N,V]=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,V)}function t(O){O=O?.toLowerCase()??"";let[L,N,V]=O.split(" ");return x.find(W=>W===L)||(L=x[0]),N===p&&(N=V!==p?V:"",V=p),[L,U(N),!!V]}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 V in N)N.hasOwnProperty(V)&&(O[V]=N[V]);return O}},32233:(X,j,h)=>{"use strict";h.d(j,{Bs:()=>Dt,FL:()=>hi,IR:()=>V,Ot:()=>mi,QI:()=>qt,RK:()=>Jt,WU:()=>ct,g5:()=>st,iR:()=>it,wY:()=>bt,yB:()=>Qe});var u=h(94650),p=h(36895),x=h(591),v=h(56498),t=h(36787),T=h(8929),U=h(85863),w=h(92198),P=h(22868);const L={provide:u.tb,useFactory:function O(Yn,Vn){return()=>{if((0,p.NF)(Vn)){const Je=Array.from(Yn.querySelectorAll(`[class*=${N}]`)),gn=/\bflex-layout-.+?\b/g;Je.forEach(Ye=>{Ye.classList.contains(`${N}ssr`)&&Ye.parentNode?Ye.parentNode.removeChild(Ye):Ye.className.replace(gn,"")})}}},deps:[p.K0,u.Lbi],multi:!0},N="flex-layout-";let V=(()=>{class Yn{}return Yn.\u0275fac=function(Je){return new(Je||Yn)},Yn.\u0275mod=u.oAB({type:Yn}),Yn.\u0275inj=u.cJS({providers:[L]}),Yn})();class W{constructor(Vn=!1,Je="all",gn="",Ye="",Ee=0){this.matches=Vn,this.mediaQuery=Je,this.mqAlias=gn,this.suffix=Ye,this.priority=Ee,this.property=""}clone(){return new W(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let tt=(()=>{class Yn{constructor(){this.stylesheet=new Map}addStyleToElement(Je,gn,Ye){const Ee=this.stylesheet.get(Je);Ee?Ee.set(gn,Ye):this.stylesheet.set(Je,new Map([[gn,Ye]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(Je,gn){const Ye=this.stylesheet.get(Je);let Ee="";if(Ye){const Xe=Ye.get(gn);("number"==typeof Xe||"string"==typeof Xe)&&(Ee=Xe+"")}return Ee}}return Yn.\u0275fac=function(Je){return new(Je||Yn)},Yn.\u0275prov=u.Yz7({token:Yn,factory:Yn.\u0275fac,providedIn:"root"}),Yn})();const st={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},ct=new u.OlP("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>st}),bt=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 wt(Yn,Vn){return Yn=Yn?.clone()??new W,Vn&&(Yn.mqAlias=Vn.alias,Yn.mediaQuery=Vn.mediaQuery,Yn.suffix=Vn.suffix,Yn.priority=Vn.priority),Yn}class qt{constructor(){this.shouldCache=!0}sideEffect(Vn,Je,gn){}}let Jt=(()=>{class Yn{constructor(Je,gn,Ye,Ee){this._serverStylesheet=Je,this._serverModuleLoaded=gn,this._platformId=Ye,this.layoutConfig=Ee}applyStyleToElement(Je,gn,Ye=null){let Ee={};"string"==typeof gn&&(Ee[gn]=Ye,gn=Ee),Ee=this.layoutConfig.disableVendorPrefixes?gn:(0,U.GK)(gn),this._applyMultiValueStyleToElement(Ee,Je)}applyStyleToElements(Je,gn=[]){const Ye=this.layoutConfig.disableVendorPrefixes?Je:(0,U.GK)(Je);gn.forEach(Ee=>{this._applyMultiValueStyleToElement(Ye,Ee)})}getFlowDirection(Je){const gn="flex-direction";let Ye=this.lookupStyle(Je,gn);return[Ye||"row",this.lookupInlineStyle(Je,gn)||(0,p.PM)(this._platformId)&&this._serverModuleLoaded?Ye:""]}hasWrap(Je){return"wrap"===this.lookupStyle(Je,"flex-wrap")}lookupAttributeValue(Je,gn){return Je.getAttribute(gn)??""}lookupInlineStyle(Je,gn){return(0,p.NF)(this._platformId)?Je.style.getPropertyValue(gn):function yt(Yn,Vn){return pt(Yn)[Vn]??""}(Je,gn)}lookupStyle(Je,gn,Ye=!1){let Ee="";return Je&&((Ee=this.lookupInlineStyle(Je,gn))||((0,p.NF)(this._platformId)?Ye||(Ee=getComputedStyle(Je).getPropertyValue(gn)):this._serverModuleLoaded&&(Ee=this._serverStylesheet.getStyleForElement(Je,gn)))),Ee?Ee.trim():""}_applyMultiValueStyleToElement(Je,gn){Object.keys(Je).sort().forEach(Ye=>{const Ee=Je[Ye],Xe=Array.isArray(Ee)?Ee:[Ee];Xe.sort();for(let se of Xe)se=se?se+"":"",(0,p.NF)(this._platformId)||!this._serverModuleLoaded?(0,p.NF)(this._platformId)?gn.style.setProperty(Ye,se):At(gn,Ye,se):this._serverStylesheet.addStyleToElement(gn,Ye,se)})}}return Yn.\u0275fac=function(Je){return new(Je||Yn)(u.LFG(tt),u.LFG(bt),u.LFG(u.Lbi),u.LFG(ct))},Yn.\u0275prov=u.Yz7({token:Yn,factory:Yn.\u0275fac,providedIn:"root"}),Yn})();function At(Yn,Vn,Je){Vn=Vn.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const gn=pt(Yn);gn[Vn]=Je??"",function xt(Yn,Vn){let Je="";for(const gn in Vn)Vn[gn]&&(Je+=`${gn}:${Vn[gn]};`);Yn.setAttribute("style",Je)}(Yn,gn)}function pt(Yn){const Vn={},Je=Yn.getAttribute("style");if(Je){const gn=Je.split(/;+/g);for(let Ye=0;Ye0){const Xe=Ee.indexOf(":");if(-1===Xe)throw new Error(`Invalid CSS style: ${Ee}`);Vn[Ee.substr(0,Xe).trim()]=Ee.substr(Xe+1).trim()}}}return Vn}function Ot(Yn,Vn){return(Vn&&Vn.priority||0)-(Yn&&Yn.priority||0)}function Bt(Yn,Vn){return(Yn.priority||0)-(Vn.priority||0)}let St=(()=>{class Yn{constructor(Je,gn,Ye){this._zone=Je,this._platformId=gn,this._document=Ye,this.source=new x.X(new W(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const Je=[];return this.registry.forEach((gn,Ye)=>{gn.matches&&Je.push(Ye)}),Je}isActive(Je){return this.registry.get(Je)?.matches??this.registerQuery(Je).some(Ye=>Ye.matches)}observe(Je,gn=!1){if(Je&&Je.length){const Ye=this._observable$.pipe((0,w.h)(Xe=>!gn||Je.indexOf(Xe.mediaQuery)>-1)),Ee=new v.y(Xe=>{const se=this.registerQuery(Je);if(se.length){const ze=se.pop();se.forEach(ie=>{Xe.next(ie)}),this.source.next(ze)}Xe.complete()});return(0,t.T)(Ee,Ye)}return this._observable$}registerQuery(Je){const gn=Array.isArray(Je)?Je:[Je],Ye=[];return function Vt(Yn,Vn){const Je=Yn.filter(gn=>!ce[gn]);if(Je.length>0){const gn=Je.join(", ");try{const Ye=Vn.createElement("style");Ye.setAttribute("type","text/css"),Ye.styleSheet||Ye.appendChild(Vn.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${gn} {.fx-query-test{ }}\n`)),Vn.head.appendChild(Ye),Je.forEach(Ee=>ce[Ee]=Ye)}catch(Ye){console.error(Ye)}}}(gn,this._document),gn.forEach(Ee=>{const Xe=ze=>{this._zone.run(()=>this.source.next(new W(ze.matches,Ee)))};let se=this.registry.get(Ee);se||(se=this.buildMQL(Ee),se.addListener(Xe),this.pendingRemoveListenerFns.push(()=>se.removeListener(Xe)),this.registry.set(Ee,se)),se.matches&&Ye.push(new W(!0,Ee))}),Ye}ngOnDestroy(){let Je;for(;Je=this.pendingRemoveListenerFns.pop();)Je()}buildMQL(Je){return function fe(Yn,Vn){return Vn&&window.matchMedia("all").addListener?window.matchMedia(Yn):function ve(Yn){const Vn=new EventTarget;return Vn.matches="all"===Yn||""===Yn,Vn.media=Yn,Vn.addListener=()=>{},Vn.removeListener=()=>{},Vn.addEventListener=()=>{},Vn.dispatchEvent=()=>!1,Vn.onchange=null,Vn}(Yn)}(Je,(0,p.NF)(this._platformId))}}return Yn.\u0275fac=function(Je){return new(Je||Yn)(u.LFG(u.R0b),u.LFG(u.Lbi),u.LFG(p.K0))},Yn.\u0275prov=u.Yz7({token:Yn,factory:Yn.\u0275fac,providedIn:"root"}),Yn})();const ce={},Le=[{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}],Fe="(orientation: portrait) and (max-width: 599.98px)",Ge="(orientation: landscape) and (max-width: 959.98px)",Gt="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",Te="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",ne="(orientation: portrait) and (min-width: 840px)",jt="(orientation: landscape) and (min-width: 1280px)",re={HANDSET:`${Fe}, ${Ge}`,TABLET:`${Gt} , ${Te}`,WEB:`${ne}, ${jt} `,HANDSET_PORTRAIT:`${Fe}`,TABLET_PORTRAIT:`${Gt} `,WEB_PORTRAIT:`${ne}`,HANDSET_LANDSCAPE:`${Ge}`,TABLET_LANDSCAPE:`${Te}`,WEB_LANDSCAPE:`${jt}`},Xt=[{alias:"handset",priority:2e3,mediaQuery:re.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:re.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:re.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:re.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:re.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:re.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:re.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:re.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:re.WEB_PORTRAIT,overlapping:!0}],oe=/(\.|-|_)/g;function Me(Yn){let Vn=Yn.length>0?Yn.charAt(0):"",Je=Yn.length>1?Yn.slice(1):"";return Vn.toUpperCase()+Je}const vn=new u.OlP("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const Yn=(0,u.f3M)(Dt),Vn=(0,u.f3M)(ct),Je=[].concat.apply([],(Yn||[]).map(Ye=>Array.isArray(Ye)?Ye:[Ye]));return function xe(Yn,Vn=[]){const Je={};return Yn.forEach(gn=>{Je[gn.alias]=gn}),Vn.forEach(gn=>{Je[gn.alias]?(0,U.kt)(Je[gn.alias],gn):Je[gn.alias]=gn}),function _n(Yn){return Yn.forEach(Vn=>{Vn.suffix||(Vn.suffix=function en(Yn){return Yn.replace(oe,"|").split("|").map(Me).join("")}(Vn.alias),Vn.overlapping=!!Vn.overlapping)}),Yn}(Object.keys(Je).map(gn=>Je[gn]))}((Vn.disableDefaultBps?[]:Le).concat(Vn.addOrientationBps?Xt:[]),Je)}});let ke=(()=>{class Yn{constructor(Je){this.findByMap=new Map,this.items=[...Je].sort(Bt)}findByAlias(Je){return Je?this.findWithPredicate(Je,gn=>gn.alias===Je):null}findByQuery(Je){return this.findWithPredicate(Je,gn=>gn.mediaQuery===Je)}get overlappings(){return this.items.filter(Je=>Je.overlapping)}get aliases(){return this.items.map(Je=>Je.alias)}get suffixes(){return this.items.map(Je=>Je?.suffix??"")}findWithPredicate(Je,gn){let Ye=this.findByMap.get(Je);return Ye||(Ye=this.items.find(gn)??null,this.findByMap.set(Je,Ye)),Ye??null}}return Yn.\u0275fac=function(Je){return new(Je||Yn)(u.LFG(vn))},Yn.\u0275prov=u.Yz7({token:Yn,factory:Yn.\u0275fac,providedIn:"root"}),Yn})();const un="print",Dn={alias:un,mediaQuery:un,priority:1e3};let ii=(()=>{class Yn{constructor(Je,gn,Ye){this.breakpoints=Je,this.layoutConfig=gn,this._document=Ye,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new _i,this.deactivations=[]}withPrintQuery(Je){return[...Je,un]}isPrintEvent(Je){return Je.mediaQuery.startsWith(un)}get printAlias(){return[...this.layoutConfig.printWithBreakpoints??[]]}get printBreakPoints(){return this.printAlias.map(Je=>this.breakpoints.findByAlias(Je)).filter(Je=>null!==Je)}getEventBreakpoints({mediaQuery:Je}){const gn=this.breakpoints.findByQuery(Je);return(gn?[...this.printBreakPoints,gn]:this.printBreakPoints).sort(Ot)}updateEvent(Je){let gn=this.breakpoints.findByQuery(Je.mediaQuery);return this.isPrintEvent(Je)&&(gn=this.getEventBreakpoints(Je)[0],Je.mediaQuery=gn?.mediaQuery??""),wt(Je,gn)}registerBeforeAfterPrintHooks(Je){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const gn=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(Je,this.getEventBreakpoints(new W(!0,un))),Je.updateStyles())},Ye=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(Je),Je.updateStyles())};this._document.defaultView.addEventListener("beforeprint",gn),this._document.defaultView.addEventListener("afterprint",Ye),this.beforePrintEventListeners.push(gn),this.afterPrintEventListeners.push(Ye)}interceptEvents(Je){return gn=>{this.isPrintEvent(gn)?gn.matches&&!this.isPrinting?(this.startPrinting(Je,this.getEventBreakpoints(gn)),Je.updateStyles()):!gn.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(Je),Je.updateStyles()):this.collectActivations(Je,gn)}}blockPropagation(){return Je=>!(this.isPrinting||this.isPrintEvent(Je))}startPrinting(Je,gn){this.isPrinting=!0,this.formerActivations=Je.activatedBreakpoints,Je.activatedBreakpoints=this.queue.addPrintBreakpoints(gn)}stopPrinting(Je){Je.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(Je,gn){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!gn.matches){const Ye=this.breakpoints.findByQuery(gn.mediaQuery);if(Ye){const Ee=this.formerActivations&&this.formerActivations.includes(Ye),Xe=!this.formerActivations&&Je.activatedBreakpoints.includes(Ye);(Ee||Xe)&&(this.deactivations.push(Ye),this.deactivations.sort(Ot))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(Je=>this._document.defaultView.removeEventListener("beforeprint",Je)),this.afterPrintEventListeners.forEach(Je=>this._document.defaultView.removeEventListener("afterprint",Je)))}}return Yn.\u0275fac=function(Je){return new(Je||Yn)(u.LFG(ke),u.LFG(ct),u.LFG(p.K0))},Yn.\u0275prov=u.Yz7({token:Yn,factory:Yn.\u0275fac,providedIn:"root"}),Yn})();class _i{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(Vn){return Vn.push(Dn),Vn.sort(Ot),Vn.forEach(Je=>this.addBreakpoint(Je)),this.printBreakpoints}addBreakpoint(Vn){Vn&&void 0===this.printBreakpoints.find(gn=>gn.mediaQuery===Vn.mediaQuery)&&(this.printBreakpoints=function oi(Yn){return Yn?.mediaQuery.startsWith(un)??!1}(Vn)?[Vn,...this.printBreakpoints]:[...this.printBreakpoints,Vn])}clear(){this.printBreakpoints=[]}}let Qe=(()=>{class Yn{constructor(Je,gn,Ye){this.matchMedia=Je,this.breakpoints=gn,this.hook=Ye,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(Je){this._activatedBreakpoints=[...Je]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(Je){this._useFallbacks=Je}onMediaChange(Je){const gn=this.findByQuery(Je.mediaQuery);if(gn){Je=wt(Je,gn);const Ye=this.activatedBreakpoints.indexOf(gn);Je.matches&&-1===Ye?(this._activatedBreakpoints.push(gn),this._activatedBreakpoints.sort(Ot),this.updateStyles()):!Je.matches&&-1!==Ye&&(this._activatedBreakpoints.splice(Ye,1),this._activatedBreakpoints.sort(Ot),this.updateStyles())}}init(Je,gn,Ye,Ee,Xe=[]){te(this.updateMap,Je,gn,Ye),te(this.clearMap,Je,gn,Ee),this.buildElementKeyMap(Je,gn),this.watchExtraTriggers(Je,gn,Xe)}getValue(Je,gn,Ye){const Ee=this.elementMap.get(Je);if(Ee){const Xe=void 0!==Ye?Ee.get(Ye):this.getActivatedValues(Ee,gn);if(Xe)return Xe.get(gn)}}hasValue(Je,gn){const Ye=this.elementMap.get(Je);if(Ye){const Ee=this.getActivatedValues(Ye,gn);if(Ee)return void 0!==Ee.get(gn)||!1}return!1}setValue(Je,gn,Ye,Ee){let Xe=this.elementMap.get(Je);if(Xe){const ze=(Xe.get(Ee)??new Map).set(gn,Ye);Xe.set(Ee,ze),this.elementMap.set(Je,Xe)}else Xe=(new Map).set(Ee,(new Map).set(gn,Ye)),this.elementMap.set(Je,Xe);const se=this.getValue(Je,gn);void 0!==se&&this.updateElement(Je,gn,se)}trackValue(Je,gn){return this.subject.asObservable().pipe((0,w.h)(Ye=>Ye.element===Je&&Ye.key===gn))}updateStyles(){this.elementMap.forEach((Je,gn)=>{const Ye=new Set(this.elementKeyMap.get(gn));let Ee=this.getActivatedValues(Je);Ee&&Ee.forEach((Xe,se)=>{this.updateElement(gn,se,Xe),Ye.delete(se)}),Ye.forEach(Xe=>{if(Ee=this.getActivatedValues(Je,Xe),Ee){const se=Ee.get(Xe);this.updateElement(gn,Xe,se)}else this.clearElement(gn,Xe)})})}clearElement(Je,gn){const Ye=this.clearMap.get(Je);if(Ye){const Ee=Ye.get(gn);Ee&&(Ee(),this.subject.next({element:Je,key:gn,value:""}))}}updateElement(Je,gn,Ye){const Ee=this.updateMap.get(Je);if(Ee){const Xe=Ee.get(gn);Xe&&(Xe(Ye),this.subject.next({element:Je,key:gn,value:Ye}))}}releaseElement(Je){const gn=this.watcherMap.get(Je);gn&&(gn.forEach(Ee=>Ee.unsubscribe()),this.watcherMap.delete(Je));const Ye=this.elementMap.get(Je);Ye&&(Ye.forEach((Ee,Xe)=>Ye.delete(Xe)),this.elementMap.delete(Je))}triggerUpdate(Je,gn){const Ye=this.elementMap.get(Je);if(Ye){const Ee=this.getActivatedValues(Ye,gn);Ee&&(gn?this.updateElement(Je,gn,Ee.get(gn)):Ee.forEach((Xe,se)=>this.updateElement(Je,se,Xe)))}}buildElementKeyMap(Je,gn){let Ye=this.elementKeyMap.get(Je);Ye||(Ye=new Set,this.elementKeyMap.set(Je,Ye)),Ye.add(gn)}watchExtraTriggers(Je,gn,Ye){if(Ye&&Ye.length){let Ee=this.watcherMap.get(Je);if(Ee||(Ee=new Map,this.watcherMap.set(Je,Ee)),!Ee.get(gn)){const se=(0,t.T)(...Ye).subscribe(()=>{const ze=this.getValue(Je,gn);this.updateElement(Je,gn,ze)});Ee.set(gn,se)}}}findByQuery(Je){return this.breakpoints.findByQuery(Je)}getActivatedValues(Je,gn){for(let Ee=0;Eegn.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(Je)).pipe((0,P.b)(this.hook.interceptEvents(this)),(0,w.h)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return Yn.\u0275fac=function(Je){return new(Je||Yn)(u.LFG(St),u.LFG(ke),u.LFG(ii))},Yn.\u0275prov=u.Yz7({token:Yn,factory:Yn.\u0275fac,providedIn:"root"}),Yn})();function te(Yn,Vn,Je,gn){if(void 0!==gn){const Ye=Yn.get(Vn)??new Map;Ye.set(Je,gn),Yn.set(Vn,Ye)}}let it=(()=>{class Yn{constructor(Je,gn,Ye,Ee){this.elementRef=Je,this.styleBuilder=gn,this.styler=Ye,this.marshal=Ee,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(Je){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,Je,this.marshal.activatedAlias)}ngOnChanges(Je){Object.keys(Je).forEach(gn=>{if(-1!==this.inputs.indexOf(gn)){const Ye=gn.split(".").slice(1).join(".");this.setValue(Je[gn].currentValue,Ye)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(Je=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),Je)}addStyles(Je,gn){const Ye=this.styleBuilder,Ee=Ye.shouldCache;let Xe=this.styleCache.get(Je);(!Xe||!Ee)&&(Xe=Ye.buildStyles(Je,gn),Ee&&this.styleCache.set(Je,Xe)),this.mru={...Xe},this.applyStyleToElement(Xe),Ye.sideEffect(Je,Xe,gn)}clearStyles(){Object.keys(this.mru).forEach(Je=>{this.mru[Je]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(Je,gn=!1){if(Je){const[Ye,Ee]=this.styler.getFlowDirection(Je);if(!Ee&&gn){const Xe=(0,U.Ar)(Ye);this.styler.applyStyleToElements(Xe,[Je])}return Ye.trim()}return"row"}hasWrap(Je){return this.styler.hasWrap(Je)}applyStyleToElement(Je,gn,Ye=this.nativeElement){this.styler.applyStyleToElement(Ye,Je,gn)}setValue(Je,gn){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,Je,gn)}updateWithValue(Je){this.currentValue!==Je&&(this.addStyles(Je),this.currentValue=Je)}}return Yn.\u0275fac=function(Je){return new(Je||Yn)(u.Y36(u.SBq),u.Y36(qt),u.Y36(Jt),u.Y36(Qe))},Yn.\u0275dir=u.lG2({type:Yn,features:[u.TTD]}),Yn})();function mi(Yn,Vn="1",Je="1"){let gn=[Vn,Je,Yn],Ye=Yn.indexOf("calc");if(Ye>0){gn[2]=Di(Yn.substring(Ye).trim());let Ee=Yn.substr(0,Ye).trim().split(" ");2==Ee.length&&(gn[0]=Ee[0],gn[1]=Ee[1])}else if(0==Ye)gn[2]=Di(Yn.trim());else{let Ee=Yn.split(" ");gn=3===Ee.length?Ee:[Vn,Je,Yn]}return gn}function Di(Yn){return Yn.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}function hi(Yn,Vn){if(void 0===Vn)return Yn;const Je=gn=>{const Ye=+gn.slice(0,-"x".length);return Yn.endsWith("x")&&!isNaN(Ye)?`${Ye*Vn.value}${Vn.unit}`:Yn};return Yn.includes(" ")?Yn.split(" ").map(Je).join(" "):Je(Yn)}EventTarget},55829:(X,j,h)=>{"use strict";h.d(j,{Zl:()=>fe,aT:()=>Ge,b8:()=>Jt,oO:()=>st});var u=h(94650),p=h(32233),x=h(36895),v=h(21281),t=h(7625),T=h(11481);let V=(()=>{class Gt extends p.iR{constructor(ne,jt,re,Xt,oe,Me,en){super(ne,null,jt,re),this.ngClassInstance=en,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new x.mk(Xt,oe,ne,Me)),this.init(),this.setValue("","")}set klass(ne){this.ngClassInstance.klass=ne,this.setValue(ne,"")}updateWithValue(ne){this.ngClassInstance.ngClass=ne,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return Gt.\u0275fac=function(ne){return new(ne||Gt)(u.Y36(u.SBq),u.Y36(p.RK),u.Y36(p.yB),u.Y36(u.ZZ4),u.Y36(u.aQg),u.Y36(u.Qsj),u.Y36(x.mk,10))},Gt.\u0275dir=u.lG2({type:Gt,inputs:{klass:["class","klass"]},features:[u.qOj]}),Gt})();const W=["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 st=(()=>{class Gt extends V{constructor(){super(...arguments),this.inputs=W}}return Gt.\u0275fac=function(){let Te;return function(jt){return(Te||(Te=u.n5z(Gt)))(jt||Gt)}}(),Gt.\u0275dir=u.lG2({type:Gt,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]}),Gt})(),ct=(()=>{class Gt extends p.QI{buildStyles(ne,jt){return{display:"true"===ne?jt.display||(jt.isServer?"initial":""):"none"}}}return Gt.\u0275fac=function(){let Te;return function(jt){return(Te||(Te=u.n5z(Gt)))(jt||Gt)}}(),Gt.\u0275prov=u.Yz7({token:Gt,factory:Gt.\u0275fac,providedIn:"root"}),Gt})(),bt=(()=>{class Gt extends p.iR{constructor(ne,jt,re,Xt,oe,Me,en){super(ne,jt,re,Xt),this.layoutConfig=oe,this.platformId=Me,this.serverModuleLoaded=en,this.DIRECTIVE_KEY="show-hide",this.display="",this.hasLayout=!1,this.hasFlexChild=!1}ngAfterViewInit(){this.trackExtraTriggers();const ne=Array.from(this.nativeElement.children);for(let re=0;re{if(-1!==this.inputs.indexOf(jt)){const re=jt.split("."),Xt=re.slice(1).join("."),oe=ne[jt].currentValue;let Me=""===oe||0!==oe&&(0,v.Ig)(oe);"fxHide"===re[0]&&(Me=!Me),this.setValue(Me,Xt)}})}trackExtraTriggers(){this.hasLayout=this.marshal.hasValue(this.nativeElement,"layout"),["layout","layout-align"].forEach(ne=>{this.marshal.trackValue(this.nativeElement,ne).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(ne=!0){if(""===ne)return;const jt=(0,x.PM)(this.platformId);this.addStyles(ne?"true":"false",{display:this.display,isServer:jt}),jt&&this.serverModuleLoaded&&this.nativeElement.style.setProperty("display",""),this.marshal.triggerUpdate(this.parentElement,"layout-gap")}}return Gt.\u0275fac=function(ne){return new(ne||Gt)(u.Y36(u.SBq),u.Y36(ct),u.Y36(p.RK),u.Y36(p.yB),u.Y36(p.WU),u.Y36(u.Lbi),u.Y36(p.wY))},Gt.\u0275dir=u.lG2({type:Gt,features:[u.qOj,u.TTD]}),Gt})();const Dt=new WeakMap,wt=["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 Jt=(()=>{class Gt extends bt{constructor(){super(...arguments),this.inputs=wt}}return Gt.\u0275fac=function(){let Te;return function(jt){return(Te||(Te=u.n5z(Gt)))(jt||Gt)}}(),Gt.\u0275dir=u.lG2({type:Gt,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]}),Gt})();class yt{constructor(Te,ne,jt=!0){this.key=Te,this.value=ne,this.key=jt?Te.replace(/['"]/g,"").trim():Te.trim(),this.value=jt?ne.replace(/['"]/g,"").trim():ne.trim(),this.value=this.value.replace(/;/,"")}}function At(Gt){let Te=typeof Gt;return"object"===Te?Gt.constructor===Array?"array":Gt.constructor===Set?"set":"object":Te}function Bt(Gt){const[Te,...ne]=Gt.split(":");return new yt(Te,ne.join(":"))}function St(Gt,Te){return Te.key&&(Gt[Te.key]=Te.value),Gt}let ce=(()=>{class Gt extends p.iR{constructor(ne,jt,re,Xt,oe,Me,en,_n,xe){super(ne,null,jt,re),this.sanitizer=Xt,this.ngStyleInstance=en,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new x.PC(ne,oe,Me)),this.init();const vn=this.nativeElement.getAttribute("style")??"";this.fallbackStyles=this.buildStyleMap(vn),this.isServer=_n&&(0,x.PM)(xe)}updateWithValue(ne){const jt=this.buildStyleMap(ne);this.ngStyleInstance.ngStyle={...this.fallbackStyles,...jt},this.isServer&&this.applyStyleToElement(jt),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(ne){const jt=re=>this.sanitizer.sanitize(u.q3G.STYLE,re)??"";if(ne)switch(At(ne)){case"string":return Le(function xt(Gt,Te=";"){return String(Gt).trim().split(Te).map(ne=>ne.trim()).filter(ne=>""!==ne)}(ne),jt);case"array":return Le(ne,jt);default:return function Ot(Gt,Te){let ne=[];return"set"===At(Gt)?Gt.forEach(jt=>ne.push(jt)):Object.keys(Gt).forEach(jt=>{ne.push(`${jt}:${Gt[jt]}`)}),function pt(Gt,Te){return Gt.map(Bt).filter(jt=>!!jt).map(jt=>(Te&&(jt.value=Te(jt.value)),jt)).reduce(St,{})}(ne,Te)}(ne,jt)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return Gt.\u0275fac=function(ne){return new(ne||Gt)(u.Y36(u.SBq),u.Y36(p.RK),u.Y36(p.yB),u.Y36(T.H7),u.Y36(u.aQg),u.Y36(u.Qsj),u.Y36(x.PC,10),u.Y36(p.wY),u.Y36(u.Lbi))},Gt.\u0275dir=u.lG2({type:Gt,features:[u.qOj]}),Gt})();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 fe=(()=>{class Gt extends ce{constructor(){super(...arguments),this.inputs=Vt}}return Gt.\u0275fac=function(){let Te;return function(jt){return(Te||(Te=u.n5z(Gt)))(jt||Gt)}}(),Gt.\u0275dir=u.lG2({type:Gt,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]}),Gt})();function Le(Gt,Te){return Gt.map(Bt).filter(jt=>!!jt).map(jt=>(Te&&(jt.value=Te(jt.value)),jt)).reduce(St,{})}let Ge=(()=>{class Gt{}return Gt.\u0275fac=function(ne){return new(ne||Gt)},Gt.\u0275mod=u.oAB({type:Gt}),Gt.\u0275inj=u.cJS({imports:[p.IR]}),Gt})()},1576:(X,j,h)=>{"use strict";h.d(j,{SQ:()=>bt,Wh:()=>mi,XD:()=>it,ae:()=>Xe,s9:()=>Rt,xw:()=>L,yH:()=>ve});var u=h(94650),p=h(40445),x=h(32233),v=h(85863),t=h(8929),T=h(7625);let U=(()=>{class se extends x.QI{buildStyles(ie,{display:rn}){const fn=(0,v.Ar)(ie);return{...fn,display:"none"===rn?rn:fn.display}}}return se.\u0275fac=function(){let ze;return function(rn){return(ze||(ze=u.n5z(se)))(rn||se)}}(),se.\u0275prov=u.Yz7({token:se,factory:se.\u0275fac,providedIn:"root"}),se})();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 se extends x.iR{constructor(ie,rn,fn,sn,ge){super(ie,fn,rn,sn),this._config=ge,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(ie){const fn=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=N.get(fn)??new Map,N.set(fn,this.styleCache),this.currentValue!==ie&&(this.addStyles(ie,{display:fn}),this.currentValue=ie)}}return se.\u0275fac=function(ie){return new(ie||se)(u.Y36(u.SBq),u.Y36(x.RK),u.Y36(U),u.Y36(x.yB),u.Y36(x.WU))},se.\u0275dir=u.lG2({type:se,features:[u.qOj]}),se})(),L=(()=>{class se extends O{constructor(){super(...arguments),this.inputs=w}}return se.\u0275fac=function(){let ze;return function(rn){return(ze||(ze=u.n5z(se)))(rn||se)}}(),se.\u0275dir=u.lG2({type:se,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]}),se})();const N=new Map,V={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null};let W=(()=>{class se extends x.QI{constructor(ie,rn){super(),this._styler=ie,this._config=rn}buildStyles(ie,rn){return ie.endsWith(yt)?(ie=ie.slice(0,ie.indexOf(yt)),function xt(se,ze){const[ie,rn]=se.split(" "),sn=zt=>`-${zt}`;let ge="0px",Nt=sn(rn??ie),Se="0px";return"rtl"===ze?Se=sn(ie):ge=sn(ie),{margin:`0px ${ge} ${Nt} ${Se}`}}(ie=(0,x.FL)(ie,this._config.multiplier),rn.directionality)):{}}sideEffect(ie,rn,fn){const sn=fn.items;if(ie.endsWith(yt)){ie=ie.slice(0,ie.indexOf(yt));const ge=function At(se,ze){const[ie,rn]=se.split(" ");let sn="0px",Nt="0px";return"rtl"===ze?Nt=ie:sn=ie,{padding:`0px ${sn} ${rn??ie} ${Nt}`}}(ie=(0,x.FL)(ie,this._config.multiplier),fn.directionality);this._styler.applyStyleToElements(ge,fn.items)}else{ie=(0,x.FL)(ie,this._config.multiplier),ie=this.addFallbackUnit(ie);const ge=sn.pop(),Nt=function Ot(se,ze){const ie=pt(ze.directionality,ze.layout),rn={...V};return rn[ie]=se,rn}(ie,fn);this._styler.applyStyleToElements(Nt,sn),this._styler.applyStyleToElements(V,[ge])}}addFallbackUnit(ie){return isNaN(+ie)?ie:`${ie}${this._config.defaultUnit}`}}return se.\u0275fac=function(ie){return new(ie||se)(u.LFG(x.RK),u.LFG(x.WU))},se.\u0275prov=u.Yz7({token:se,factory:se.\u0275fac,providedIn:"root"}),se})();const tt=["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 ct=(()=>{class se extends x.iR{constructor(ie,rn,fn,sn,ge,Nt){super(ie,ge,sn,Nt),this.zone=rn,this.directionality=fn,this.styleUtils=sn,this.layout="row",this.DIRECTIVE_KEY="layout-gap",this.observerSubject=new t.xQ;const Se=[this.directionality.change,this.observerSubject.asObservable()];this.init(Se),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,T.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}get childrenNodes(){const ie=this.nativeElement.children,rn=[];for(let fn=ie.length;fn--;)rn[fn]=ie[fn];return rn}ngAfterContentInit(){this.buildChildObservable(),this.triggerUpdate()}ngOnDestroy(){super.ngOnDestroy(),this.observer&&this.observer.disconnect()}onLayoutChange(ie){const fn=ie.value.split(" ");this.layout=fn[0],v.iQ.find(sn=>sn===this.layout)||(this.layout="row"),this.triggerUpdate()}updateWithValue(ie){const rn=this.childrenNodes.filter(fn=>1===fn.nodeType&&this.willDisplay(fn)).sort((fn,sn)=>{const ge=+this.styler.lookupStyle(fn,"order"),Nt=+this.styler.lookupStyle(sn,"order");return isNaN(ge)||isNaN(Nt)||ge===Nt?0:ge>Nt?1:-1});if(rn.length>0){const fn=this.directionality.value,sn=this.layout;"row"===sn&&"rtl"===fn?this.styleCache=Dt:"row"===sn&&"rtl"!==fn?this.styleCache=qt:"column"===sn&&"rtl"===fn?this.styleCache=wt:"column"===sn&&"rtl"!==fn&&(this.styleCache=Jt),this.addStyles(ie,{directionality:fn,items:rn,layout:sn})}}clearStyles(){const ie=Object.keys(this.mru).length>0,rn=ie?"padding":pt(this.directionality.value,this.layout);ie&&super.clearStyles(),this.styleUtils.applyStyleToElements({[rn]:""},this.childrenNodes)}willDisplay(ie){const rn=this.marshal.getValue(ie,"show-hide");return!0===rn||void 0===rn&&"none"!==this.styleUtils.lookupStyle(ie,"display")}buildChildObservable(){this.zone.runOutsideAngular(()=>{typeof MutationObserver<"u"&&(this.observer=new MutationObserver(ie=>{ie.some(fn=>fn.addedNodes&&fn.addedNodes.length>0||fn.removedNodes&&fn.removedNodes.length>0)&&this.observerSubject.next()}),this.observer.observe(this.nativeElement,{childList:!0}))})}}return se.\u0275fac=function(ie){return new(ie||se)(u.Y36(u.SBq),u.Y36(u.R0b),u.Y36(p.Is),u.Y36(x.RK),u.Y36(W),u.Y36(x.yB))},se.\u0275dir=u.lG2({type:se,features:[u.qOj]}),se})(),bt=(()=>{class se extends ct{constructor(){super(...arguments),this.inputs=tt}}return se.\u0275fac=function(){let ze;return function(rn){return(ze||(ze=u.n5z(se)))(rn||se)}}(),se.\u0275dir=u.lG2({type:se,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]}),se})();const Dt=new Map,wt=new Map,qt=new Map,Jt=new Map,yt=" grid";function pt(se,ze){switch(ze){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":default:return"rtl"===se?"margin-left":"margin-right";case"row-reverse":return"rtl"===se?"margin-right":"margin-left"}}let Bt=(()=>{class se extends x.QI{constructor(ie){super(),this.layoutConfig=ie}buildStyles(ie,rn){let[fn,sn,...ge]=ie.split(" "),Nt=ge.join(" ");const Se=rn.direction.indexOf("column")>-1?"column":"row",zt=(0,v.tj)(Se)?"max-width":"max-height",Ae=(0,v.tj)(Se)?"min-width":"min-height",Ie=String(Nt).indexOf("calc")>-1,Sn=Ie||"auto"===Nt,Ei=String(Nt).indexOf("%")>-1&&!Ie,Vi=String(Nt).indexOf("px")>-1||String(Nt).indexOf("rem")>-1||String(Nt).indexOf("em")>-1||String(Nt).indexOf("vw")>-1||String(Nt).indexOf("vh")>-1;let cn=Ie||Vi;fn="0"==fn?0:fn,sn="0"==sn?0:sn;const pn=!fn&&!sn;let We={};const ai={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(Nt||""){case"":const bi=!1!==this.layoutConfig.useColumnBasisZero;Nt="row"===Se?"0%":bi?"0.000000001px":"auto";break;case"initial":case"nogrow":fn=0,Nt="auto";break;case"grow":Nt="100%";break;case"noshrink":sn=0,Nt="auto";break;case"auto":break;case"none":fn=0,sn=0,Nt="auto";break;default:!cn&&!Ei&&!isNaN(Nt)&&(Nt+="%"),"0%"===Nt&&(cn=!0),"0px"===Nt&&(Nt="0%"),We=(0,v.kt)(ai,Ie?{"flex-grow":fn,"flex-shrink":sn,"flex-basis":cn?Nt:"100%"}:{flex:`${fn} ${sn} ${cn?Nt:"100%"}`})}return We.flex||We["flex-grow"]||(We=(0,v.kt)(ai,Ie?{"flex-grow":fn,"flex-shrink":sn,"flex-basis":Nt}:{flex:`${fn} ${sn} ${Nt}`})),"0%"!==Nt&&"0px"!==Nt&&"0.000000001px"!==Nt&&"auto"!==Nt&&(We[Ae]=pn||cn&&fn?Nt:null,We[zt]=pn||!Sn&&sn?Nt:null),We[Ae]||We[zt]?rn.hasWrap&&(We[Ie?"flex-basis":"flex"]=We[zt]?Ie?We[zt]:`${fn} ${sn} ${We[zt]}`:Ie?We[Ae]:`${fn} ${sn} ${We[Ae]}`):We=(0,v.kt)(ai,Ie?{"flex-grow":fn,"flex-shrink":sn,"flex-basis":Nt}:{flex:`${fn} ${sn} ${Nt}`}),(0,v.kt)(We,{"box-sizing":"border-box"})}}return se.\u0275fac=function(ie){return new(ie||se)(u.LFG(x.WU))},se.\u0275prov=u.Yz7({token:se,factory:se.\u0275fac,providedIn:"root"}),se})();const St=["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 se extends x.iR{constructor(ie,rn,fn,sn,ge){super(ie,sn,rn,ge),this.layoutConfig=fn,this.marshal=ge,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(ie){this.flexShrink=ie||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(ie){this.flexGrow=ie||"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(ie){const fn=ie.value.split(" ");this.direction=fn[0],this.wrap=void 0!==fn[1]&&"wrap"===fn[1],this.triggerUpdate()}updateWithValue(ie){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 fn=this.direction,sn=fn.startsWith("row"),ge=this.wrap;sn&&ge?this.styleCache=Fe:sn&&!ge?this.styleCache=fe:!sn&&ge?this.styleCache=Ge:!sn&&!ge&&(this.styleCache=Le);const Nt=String(ie).replace(";",""),Se=(0,x.Ot)(Nt,this.flexGrow,this.flexShrink);this.addStyles(Se.join(" "),{direction:fn,hasWrap:ge})}triggerReflow(){const ie=this.activatedValue;if(void 0!==ie){const rn=(0,x.Ot)(ie+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,rn.join(" "))}}}return se.\u0275fac=function(ie){return new(ie||se)(u.Y36(u.SBq),u.Y36(x.RK),u.Y36(x.WU),u.Y36(Bt),u.Y36(x.yB))},se.\u0275dir=u.lG2({type:se,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[u.qOj]}),se})(),ve=(()=>{class se extends Vt{constructor(){super(...arguments),this.inputs=St}}return se.\u0275fac=function(){let ze;return function(rn){return(ze||(ze=u.n5z(se)))(rn||se)}}(),se.\u0275dir=u.lG2({type:se,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]}),se})();const fe=new Map,Le=new Map,Fe=new Map,Ge=new Map;let ii=(()=>{class se extends x.QI{buildStyles(ie){const rn={};switch(ie=ie||"stretch"){case"start":rn["align-self"]="flex-start";break;case"end":rn["align-self"]="flex-end";break;default:rn["align-self"]=ie}return rn}}return se.\u0275fac=function(){let ze;return function(rn){return(ze||(ze=u.n5z(se)))(rn||se)}}(),se.\u0275prov=u.Yz7({token:se,factory:se.\u0275fac,providedIn:"root"}),se})();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 Qe=(()=>{class se extends x.iR{constructor(ie,rn,fn,sn){super(ie,fn,rn,sn),this.DIRECTIVE_KEY="flex-align",this.styleCache=te,this.init()}}return se.\u0275fac=function(ie){return new(ie||se)(u.Y36(u.SBq),u.Y36(x.RK),u.Y36(ii),u.Y36(x.yB))},se.\u0275dir=u.lG2({type:se,features:[u.qOj]}),se})();const te=new Map;let it=(()=>{class se extends Qe{constructor(){super(...arguments),this.inputs=_i}}return se.\u0275fac=function(){let ze;return function(rn){return(ze||(ze=u.n5z(se)))(rn||se)}}(),se.\u0275dir=u.lG2({type:se,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]}),se})();const K={margin:0,width:"100%",height:"100%","min-width":"100%","min-height":"100%"};let Tt=(()=>{class se extends x.QI{buildStyles(ie){return K}}return se.\u0275fac=function(){let ze;return function(rn){return(ze||(ze=u.n5z(se)))(rn||se)}}(),se.\u0275prov=u.Yz7({token:se,factory:se.\u0275fac,providedIn:"root"}),se})(),Rt=(()=>{class se extends x.iR{constructor(ie,rn,fn,sn){super(ie,fn,rn,sn),this.styleCache=le,this.addStyles("")}}return se.\u0275fac=function(ie){return new(ie||se)(u.Y36(u.SBq),u.Y36(x.RK),u.Y36(Tt),u.Y36(x.yB))},se.\u0275dir=u.lG2({type:se,selectors:[["","fxFill",""],["","fxFlexFill",""]],features:[u.qOj]}),se})();const le=new Map;let be=(()=>{class se extends x.QI{buildStyles(ie,rn){const fn={},[sn,ge]=ie.split(" ");switch(sn){case"center":fn["justify-content"]="center";break;case"space-around":fn["justify-content"]="space-around";break;case"space-between":fn["justify-content"]="space-between";break;case"space-evenly":fn["justify-content"]="space-evenly";break;case"end":case"flex-end":fn["justify-content"]="flex-end";break;default:fn["justify-content"]="flex-start"}switch(ge){case"start":case"flex-start":fn["align-items"]=fn["align-content"]="flex-start";break;case"center":fn["align-items"]=fn["align-content"]="center";break;case"end":case"flex-end":fn["align-items"]=fn["align-content"]="flex-end";break;case"space-between":fn["align-content"]="space-between",fn["align-items"]="stretch";break;case"space-around":fn["align-content"]="space-around",fn["align-items"]="stretch";break;case"baseline":fn["align-content"]="stretch",fn["align-items"]="baseline";break;default:fn["align-items"]=fn["align-content"]="stretch"}return(0,v.kt)(fn,{display:rn.inline?"inline-flex":"flex","flex-direction":rn.layout,"box-sizing":"border-box","max-width":"stretch"===ge?(0,v.tj)(rn.layout)?null:"100%":null,"max-height":"stretch"===ge&&(0,v.tj)(rn.layout)?"100%":null})}}return se.\u0275fac=function(){let ze;return function(rn){return(ze||(ze=u.n5z(se)))(rn||se)}}(),se.\u0275prov=u.Yz7({token:se,factory:se.\u0275fac,providedIn:"root"}),se})();const De=["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 se extends x.iR{constructor(ie,rn,fn,sn){super(ie,fn,rn,sn),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(ie){const rn=this.layout||"row",fn=this.inline;"row"===rn&&fn?this.styleCache=Vn:"row"!==rn||fn?"row-reverse"===rn&&fn?this.styleCache=gn:"row-reverse"!==rn||fn?"column"===rn&&fn?this.styleCache=Je:"column"!==rn||fn?"column-reverse"===rn&&fn?this.styleCache=Ye:"column-reverse"===rn&&!fn&&(this.styleCache=Yn):this.styleCache=bo:this.styleCache=hi:this.styleCache=Di,this.addStyles(ie,{layout:rn,inline:fn})}onLayoutChange(ie){const rn=ie.value.split(" ");this.layout=rn[0],this.inline=ie.value.includes("inline"),v.iQ.find(fn=>fn===this.layout)||(this.layout="row"),this.triggerUpdate()}}return se.\u0275fac=function(ie){return new(ie||se)(u.Y36(u.SBq),u.Y36(x.RK),u.Y36(be),u.Y36(x.yB))},se.\u0275dir=u.lG2({type:se,features:[u.qOj]}),se})(),mi=(()=>{class se extends qn{constructor(){super(...arguments),this.inputs=De}}return se.\u0275fac=function(){let ze;return function(rn){return(ze||(ze=u.n5z(se)))(rn||se)}}(),se.\u0275dir=u.lG2({type:se,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]}),se})();const Di=new Map,bo=new Map,hi=new Map,Yn=new Map,Vn=new Map,Je=new Map,gn=new Map,Ye=new Map;let Xe=(()=>{class se{}return se.\u0275fac=function(ie){return new(ie||se)},se.\u0275mod=u.oAB({type:se}),se.\u0275inj=u.cJS({imports:[x.IR,p.vT]}),se})()},24006:(X,j,h)=>{"use strict";h.d(j,{CE:()=>Ys,Cf:()=>bt,F:()=>pr,Fd:()=>Va,Fj:()=>W,JJ:()=>oi,JL:()=>Qe,JU:()=>w,NI:()=>Er,On:()=>ps,Q7:()=>zs,QS:()=>Kr,UX:()=>ul,Zs:()=>ms,_Y:()=>Hs,a5:()=>un,kI:()=>qt,nD:()=>tc,nJ:()=>Ae,oH:()=>Ks,p4:()=>cc,qQ:()=>vr,qu:()=>da,sg:()=>td,u:()=>Dl,u5:()=>Lc,wV:()=>Fr,x0:()=>Es});var u=h(94650),p=h(36895),x=h(5254),v=h(30567),t=h(24850);let T=(()=>{class ae{constructor(Ft,et){this._renderer=Ft,this._elementRef=et,this.onChange=Mi=>{},this.onTouched=()=>{}}setProperty(Ft,et){this._renderer.setProperty(this._elementRef.nativeElement,Ft,et)}registerOnTouched(Ft){this.onTouched=Ft}registerOnChange(Ft){this.onChange=Ft}setDisabledState(Ft){this.setProperty("disabled",Ft)}}return ae.\u0275fac=function(Ft){return new(Ft||ae)(u.Y36(u.Qsj),u.Y36(u.SBq))},ae.\u0275dir=u.lG2({type:ae}),ae})(),U=(()=>{class ae extends T{}return ae.\u0275fac=function(){let $t;return function(et){return($t||($t=u.n5z(ae)))(et||ae)}}(),ae.\u0275dir=u.lG2({type:ae,features:[u.qOj]}),ae})();const w=new u.OlP("NgValueAccessor"),L={provide:w,useExisting:(0,u.Gpc)(()=>W),multi:!0},V=new u.OlP("CompositionEventMode");let W=(()=>{class ae extends T{constructor(Ft,et,Mi){super(Ft,et),this._compositionMode=Mi,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function N(){const ae=(0,p.q)()?(0,p.q)().getUserAgent():"";return/android (\d+)/.test(ae.toLowerCase())}())}writeValue(Ft){this.setProperty("value",Ft??"")}_handleInput(Ft){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(Ft)}_compositionStart(){this._composing=!0}_compositionEnd(Ft){this._composing=!1,this._compositionMode&&this.onChange(Ft)}}return ae.\u0275fac=function(Ft){return new(Ft||ae)(u.Y36(u.Qsj),u.Y36(u.SBq),u.Y36(V,8))},ae.\u0275dir=u.lG2({type:ae,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(Ft,et){1&Ft&&u.NdJ("input",function(Qo){return et._handleInput(Qo.target.value)})("blur",function(){return et.onTouched()})("compositionstart",function(){return et._compositionStart()})("compositionend",function(Qo){return et._compositionEnd(Qo.target.value)})},features:[u._Bn([L]),u.qOj]}),ae})();function st(ae){return null==ae||("string"==typeof ae||Array.isArray(ae))&&0===ae.length}function ct(ae){return null!=ae&&"number"==typeof ae.length}const bt=new u.OlP("NgValidators"),Dt=new u.OlP("NgAsyncValidators"),wt=/^(?=.{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 qt{static min($t){return Jt($t)}static max($t){return yt($t)}static required($t){return At($t)}static requiredTrue($t){return xt($t)}static email($t){return function pt(ae){return st(ae.value)||wt.test(ae.value)?null:{email:!0}}($t)}static minLength($t){return function Ot(ae){return $t=>st($t.value)||!ct($t.value)?null:$t.value.length{if(st(et.value))return null;const Mi=et.value;return $t.test(Mi)?null:{pattern:{requiredPattern:Ft,actualValue:Mi}}}}($t)}static nullValidator($t){return null}static compose($t){return Gt($t)}static composeAsync($t){return ne($t)}}function Jt(ae){return $t=>{if(st($t.value)||st(ae))return null;const Ft=parseFloat($t.value);return!isNaN(Ft)&&Ft{if(st($t.value)||st(ae))return null;const Ft=parseFloat($t.value);return!isNaN(Ft)&&Ft>ae?{max:{max:ae,actual:$t.value}}:null}}function At(ae){return st(ae.value)?{required:!0}:null}function xt(ae){return!0===ae.value?null:{required:!0}}function Bt(ae){return $t=>ct($t.value)&&$t.value.length>ae?{maxlength:{requiredLength:ae,actualLength:$t.value.length}}:null}function ce(ae){return null}function Vt(ae){return null!=ae}function ve(ae){return(0,u.QGY)(ae)?(0,x.D)(ae):ae}function fe(ae){let $t={};return ae.forEach(Ft=>{$t=null!=Ft?{...$t,...Ft}:$t}),0===Object.keys($t).length?null:$t}function Le(ae,$t){return $t.map(Ft=>Ft(ae))}function Ge(ae){return ae.map($t=>function Fe(ae){return!ae.validate}($t)?$t:Ft=>$t.validate(Ft))}function Gt(ae){if(!ae)return null;const $t=ae.filter(Vt);return 0==$t.length?null:function(Ft){return fe(Le(Ft,$t))}}function Te(ae){return null!=ae?Gt(Ge(ae)):null}function ne(ae){if(!ae)return null;const $t=ae.filter(Vt);return 0==$t.length?null:function(Ft){const et=Le(Ft,$t).map(ve);return(0,v.D)(et).pipe((0,t.U)(fe))}}function jt(ae){return null!=ae?ne(Ge(ae)):null}function re(ae,$t){return null===ae?[$t]:Array.isArray(ae)?[...ae,$t]:[ae,$t]}function Xt(ae){return ae._rawValidators}function oe(ae){return ae._rawAsyncValidators}function Me(ae){return ae?Array.isArray(ae)?ae:[ae]:[]}function en(ae,$t){return Array.isArray(ae)?ae.includes($t):ae===$t}function _n(ae,$t){const Ft=Me($t);return Me(ae).forEach(Mi=>{en(Ft,Mi)||Ft.push(Mi)}),Ft}function xe(ae,$t){return Me($t).filter(Ft=>!en(ae,Ft))}class vn{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=Te(this._rawValidators)}_setAsyncValidators($t){this._rawAsyncValidators=$t||[],this._composedAsyncValidatorFn=jt(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,Ft){return!!this.control&&this.control.hasError($t,Ft)}getError($t,Ft){return this.control?this.control.getError($t,Ft):null}}class ke extends vn{get formDirective(){return null}get path(){return null}}class un extends vn{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Dn{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 ae extends Dn{constructor(Ft){super(Ft)}}return ae.\u0275fac=function(Ft){return new(Ft||ae)(u.Y36(un,2))},ae.\u0275dir=u.lG2({type:ae,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Ft,et){2&Ft&&u.ekj("ng-untouched",et.isUntouched)("ng-touched",et.isTouched)("ng-pristine",et.isPristine)("ng-dirty",et.isDirty)("ng-valid",et.isValid)("ng-invalid",et.isInvalid)("ng-pending",et.isPending)},features:[u.qOj]}),ae})(),Qe=(()=>{class ae extends Dn{constructor(Ft){super(Ft)}}return ae.\u0275fac=function(Ft){return new(Ft||ae)(u.Y36(ke,10))},ae.\u0275dir=u.lG2({type:ae,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(Ft,et){2&Ft&&u.ekj("ng-untouched",et.isUntouched)("ng-touched",et.isTouched)("ng-pristine",et.isPristine)("ng-dirty",et.isDirty)("ng-valid",et.isValid)("ng-invalid",et.isInvalid)("ng-pending",et.isPending)("ng-submitted",et.isSubmitted)},features:[u.qOj]}),ae})();const Ye="VALID",Ee="INVALID",Xe="PENDING",se="DISABLED";function ze(ae){return(sn(ae)?ae.validators:ae)||null}function ie(ae){return Array.isArray(ae)?Te(ae):ae||null}function rn(ae,$t){return(sn($t)?$t.asyncValidators:ae)||null}function fn(ae){return Array.isArray(ae)?jt(ae):ae||null}function sn(ae){return null!=ae&&!Array.isArray(ae)&&"object"==typeof ae}function ge(ae,$t,Ft){const et=ae.controls;if(!($t?Object.keys(et):et).length)throw new u.vHH(1e3,"");if(!et[Ft])throw new u.vHH(1001,"")}function Nt(ae,$t,Ft){ae._forEachChild((et,Mi)=>{if(void 0===Ft[Mi])throw new u.vHH(1002,"")})}class Se{constructor($t,Ft){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=Ft,this._composedValidatorFn=ie(this._rawValidators),this._composedAsyncValidatorFn=fn(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===Ye}get invalid(){return this.status===Ee}get pending(){return this.status==Xe}get disabled(){return this.status===se}get enabled(){return this.status!==se}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=ie($t)}setAsyncValidators($t){this._rawAsyncValidators=$t,this._composedAsyncValidatorFn=fn($t)}addValidators($t){this.setValidators(_n($t,this._rawValidators))}addAsyncValidators($t){this.setAsyncValidators(_n($t,this._rawAsyncValidators))}removeValidators($t){this.setValidators(xe($t,this._rawValidators))}removeAsyncValidators($t){this.setAsyncValidators(xe($t,this._rawAsyncValidators))}hasValidator($t){return en(this._rawValidators,$t)}hasAsyncValidator($t){return en(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(Ft=>{Ft.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(Ft=>{Ft.markAsPristine({onlySelf:!0})}),this._parent&&!$t.onlySelf&&this._parent._updatePristine($t)}markAsPending($t={}){this.status=Xe,!1!==$t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!$t.onlySelf&&this._parent.markAsPending($t)}disable($t={}){const Ft=this._parentMarkedDirty($t.onlySelf);this.status=se,this.errors=null,this._forEachChild(et=>{et.disable({...$t,onlySelf:!0})}),this._updateValue(),!1!==$t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...$t,skipPristineCheck:Ft}),this._onDisabledChange.forEach(et=>et(!0))}enable($t={}){const Ft=this._parentMarkedDirty($t.onlySelf);this.status=Ye,this._forEachChild(et=>{et.enable({...$t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:$t.emitEvent}),this._updateAncestors({...$t,skipPristineCheck:Ft}),this._onDisabledChange.forEach(et=>et(!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===Ye||this.status===Xe)&&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(Ft=>Ft._updateTreeValidity($t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:$t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?se:Ye}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator($t){if(this.asyncValidator){this.status=Xe,this._hasOwnPendingAsyncValidator=!0;const Ft=ve(this.asyncValidator(this));this._asyncValidationSubscription=Ft.subscribe(et=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(et,{emitEvent:$t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors($t,Ft={}){this.errors=$t,this._updateControlsErrors(!1!==Ft.emitEvent)}get($t){let Ft=$t;return null==Ft||(Array.isArray(Ft)||(Ft=Ft.split(".")),0===Ft.length)?null:Ft.reduce((et,Mi)=>et&&et._find(Mi),this)}getError($t,Ft){const et=Ft?this.get(Ft):this;return et&&et.errors?et.errors[$t]:null}hasError($t,Ft){return!!this.getError($t,Ft)}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()?se:this.errors?Ee:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Xe)?Xe:this._anyControlsHaveStatus(Ee)?Ee:Ye}_anyControlsHaveStatus($t){return this._anyControls(Ft=>Ft.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){sn($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 Se{constructor($t,Ft,et){super(ze(Ft),rn(et,Ft)),this.controls=$t,this._initObservables(),this._setUpdateStrategy(Ft),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl($t,Ft){return this.controls[$t]?this.controls[$t]:(this.controls[$t]=Ft,Ft.setParent(this),Ft._registerOnCollectionChange(this._onCollectionChange),Ft)}addControl($t,Ft,et={}){this.registerControl($t,Ft),this.updateValueAndValidity({emitEvent:et.emitEvent}),this._onCollectionChange()}removeControl($t,Ft={}){this.controls[$t]&&this.controls[$t]._registerOnCollectionChange(()=>{}),delete this.controls[$t],this.updateValueAndValidity({emitEvent:Ft.emitEvent}),this._onCollectionChange()}setControl($t,Ft,et={}){this.controls[$t]&&this.controls[$t]._registerOnCollectionChange(()=>{}),delete this.controls[$t],Ft&&this.registerControl($t,Ft),this.updateValueAndValidity({emitEvent:et.emitEvent}),this._onCollectionChange()}contains($t){return this.controls.hasOwnProperty($t)&&this.controls[$t].enabled}setValue($t,Ft={}){Nt(this,0,$t),Object.keys($t).forEach(et=>{ge(this,!0,et),this.controls[et].setValue($t[et],{onlySelf:!0,emitEvent:Ft.emitEvent})}),this.updateValueAndValidity(Ft)}patchValue($t,Ft={}){null!=$t&&(Object.keys($t).forEach(et=>{const Mi=this.controls[et];Mi&&Mi.patchValue($t[et],{onlySelf:!0,emitEvent:Ft.emitEvent})}),this.updateValueAndValidity(Ft))}reset($t={},Ft={}){this._forEachChild((et,Mi)=>{et.reset($t[Mi],{onlySelf:!0,emitEvent:Ft.emitEvent})}),this._updatePristine(Ft),this._updateTouched(Ft),this.updateValueAndValidity(Ft)}getRawValue(){return this._reduceChildren({},($t,Ft,et)=>($t[et]=Ft.getRawValue(),$t))}_syncPendingControls(){let $t=this._reduceChildren(!1,(Ft,et)=>!!et._syncPendingControls()||Ft);return $t&&this.updateValueAndValidity({onlySelf:!0}),$t}_forEachChild($t){Object.keys(this.controls).forEach(Ft=>{const et=this.controls[Ft];et&&$t(et,Ft)})}_setUpControls(){this._forEachChild($t=>{$t.setParent(this),$t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls($t){for(const[Ft,et]of Object.entries(this.controls))if(this.contains(Ft)&&$t(et))return!0;return!1}_reduceValue(){return this._reduceChildren({},(Ft,et,Mi)=>((et.enabled||this.disabled)&&(Ft[Mi]=et.value),Ft))}_reduceChildren($t,Ft){let et=$t;return this._forEachChild((Mi,Qo)=>{et=Ft(et,Mi,Qo)}),et}_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 Ae=zt;class Sn extends zt{}function Vi(ae,$t){return[...$t.path,ae]}function cn(ae,$t){bi(ae,$t),$t.valueAccessor.writeValue(ae.value),ae.disabled&&$t.valueAccessor.setDisabledState?.(!0),function To(ae,$t){$t.valueAccessor.registerOnChange(Ft=>{ae._pendingValue=Ft,ae._pendingChange=!0,ae._pendingDirty=!0,"change"===ae.updateOn&&ha(ae,$t)})}(ae,$t),function Aa(ae,$t){const Ft=(et,Mi)=>{$t.valueAccessor.writeValue(et),Mi&&$t.viewToModelUpdate(et)};ae.registerOnChange(Ft),$t._registerOnDestroy(()=>{ae._unregisterOnChange(Ft)})}(ae,$t),function Lo(ae,$t){$t.valueAccessor.registerOnTouched(()=>{ae._pendingTouched=!0,"blur"===ae.updateOn&&ae._pendingChange&&ha(ae,$t),"submit"!==ae.updateOn&&ae.markAsTouched()})}(ae,$t),function ai(ae,$t){if($t.valueAccessor.setDisabledState){const Ft=et=>{$t.valueAccessor.setDisabledState(et)};ae.registerOnDisabledChange(Ft),$t._registerOnDestroy(()=>{ae._unregisterOnDisabledChange(Ft)})}}(ae,$t)}function pn(ae,$t,Ft=!0){const et=()=>{};$t.valueAccessor&&($t.valueAccessor.registerOnChange(et),$t.valueAccessor.registerOnTouched(et)),so(ae,$t),ae&&($t._invokeOnDestroyCallbacks(),ae._registerOnCollectionChange(()=>{}))}function We(ae,$t){ae.forEach(Ft=>{Ft.registerOnValidatorChange&&Ft.registerOnValidatorChange($t)})}function bi(ae,$t){const Ft=Xt(ae);null!==$t.validator?ae.setValidators(re(Ft,$t.validator)):"function"==typeof Ft&&ae.setValidators([Ft]);const et=oe(ae);null!==$t.asyncValidator?ae.setAsyncValidators(re(et,$t.asyncValidator)):"function"==typeof et&&ae.setAsyncValidators([et]);const Mi=()=>ae.updateValueAndValidity();We($t._rawValidators,Mi),We($t._rawAsyncValidators,Mi)}function so(ae,$t){let Ft=!1;if(null!==ae){if(null!==$t.validator){const Mi=Xt(ae);if(Array.isArray(Mi)&&Mi.length>0){const Qo=Mi.filter(Ua=>Ua!==$t.validator);Qo.length!==Mi.length&&(Ft=!0,ae.setValidators(Qo))}}if(null!==$t.asyncValidator){const Mi=oe(ae);if(Array.isArray(Mi)&&Mi.length>0){const Qo=Mi.filter(Ua=>Ua!==$t.asyncValidator);Qo.length!==Mi.length&&(Ft=!0,ae.setAsyncValidators(Qo))}}}const et=()=>{};return We($t._rawValidators,et),We($t._rawAsyncValidators,et),Ft}function ha(ae,$t){ae._pendingDirty&&ae.markAsDirty(),ae.setValue(ae._pendingValue,{emitModelToViewChange:!1}),$t.viewToModelUpdate(ae._pendingValue),ae._pendingChange=!1}function Ne(ae,$t){bi(ae,$t)}function Et(ae,$t){if(!ae.hasOwnProperty("model"))return!1;const Ft=ae.model;return!!Ft.isFirstChange()||!Object.is($t,Ft.currentValue)}function Lt(ae,$t){ae._syncPendingControls(),$t.forEach(Ft=>{const et=Ft.control;"submit"===et.updateOn&&et._pendingChange&&(Ft.viewToModelUpdate(et._pendingValue),et._pendingChange=!1)})}function He(ae,$t){if(!$t)return null;let Ft,et,Mi;return Array.isArray($t),$t.forEach(Qo=>{Qo.constructor===W?Ft=Qo:function J(ae){return Object.getPrototypeOf(ae.constructor)===U}(Qo)?et=Qo:Mi=Qo}),Mi||et||Ft||null}const wo={provide:ke,useExisting:(0,u.Gpc)(()=>pr)},dr=(()=>Promise.resolve())();let pr=(()=>{class ae extends ke{constructor(Ft,et){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new u.vpe,this.form=new zt({},Te(Ft),jt(et))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(Ft){dr.then(()=>{const et=this._findContainer(Ft.path);Ft.control=et.registerControl(Ft.name,Ft.control),cn(Ft.control,Ft),Ft.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(Ft)})}getControl(Ft){return this.form.get(Ft.path)}removeControl(Ft){dr.then(()=>{const et=this._findContainer(Ft.path);et&&et.removeControl(Ft.name),this._directives.delete(Ft)})}addFormGroup(Ft){dr.then(()=>{const et=this._findContainer(Ft.path),Mi=new zt({});Ne(Mi,Ft),et.registerControl(Ft.name,Mi),Mi.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(Ft){dr.then(()=>{const et=this._findContainer(Ft.path);et&&et.removeControl(Ft.name)})}getFormGroup(Ft){return this.form.get(Ft.path)}updateModel(Ft,et){dr.then(()=>{this.form.get(Ft.path).setValue(et)})}setValue(Ft){this.control.setValue(Ft)}onSubmit(Ft){return this.submitted=!0,Lt(this.form,this._directives),this.ngSubmit.emit(Ft),"dialog"===Ft?.target?.method}onReset(){this.resetForm()}resetForm(Ft){this.form.reset(Ft),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(Ft){return Ft.pop(),Ft.length?this.form.get(Ft):this.form}}return ae.\u0275fac=function(Ft){return new(Ft||ae)(u.Y36(bt,10),u.Y36(Dt,10))},ae.\u0275dir=u.lG2({type:ae,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Ft,et){1&Ft&&u.NdJ("submit",function(Qo){return et.onSubmit(Qo)})("reset",function(){return et.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[u._Bn([wo]),u.qOj]}),ae})();function $r(ae,$t){const Ft=ae.indexOf($t);Ft>-1&&ae.splice(Ft,1)}function ja(ae){return"object"==typeof ae&&null!==ae&&2===Object.keys(ae).length&&"value"in ae&&"disabled"in ae}const Er=class extends Se{constructor($t=null,Ft,et){super(ze(Ft),rn(et,Ft)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState($t),this._setUpdateStrategy(Ft),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),sn(Ft)&&(Ft.nonNullable||Ft.initialValueIsDefault)&&(this.defaultValue=ja($t)?$t.value:$t)}setValue($t,Ft={}){this.value=this._pendingValue=$t,this._onChange.length&&!1!==Ft.emitModelToViewChange&&this._onChange.forEach(et=>et(this.value,!1!==Ft.emitViewToModelChange)),this.updateValueAndValidity(Ft)}patchValue($t,Ft={}){this.setValue($t,Ft)}reset($t=this.defaultValue,Ft={}){this._applyFormState($t),this.markAsPristine(Ft),this.markAsUntouched(Ft),this.setValue(this.value,Ft),this._pendingChange=!1}_updateValue(){}_anyControls($t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange($t){this._onChange.push($t)}_unregisterOnChange($t){$r(this._onChange,$t)}registerOnDisabledChange($t){this._onDisabledChange.push($t)}_unregisterOnDisabledChange($t){$r(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=Er;let ds=(()=>{class ae extends ke{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Vi(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return ae.\u0275fac=function(){let $t;return function(et){return($t||($t=u.n5z(ae)))(et||ae)}}(),ae.\u0275dir=u.lG2({type:ae,features:[u.qOj]}),ae})();const Ws={provide:un,useExisting:(0,u.Gpc)(()=>ps)},Oc=(()=>Promise.resolve())();let ps=(()=>{class ae extends un{constructor(Ft,et,Mi,Qo,Ua){super(),this._changeDetectorRef=Ua,this.control=new Er,this._registered=!1,this.update=new u.vpe,this._parent=Ft,this._setValidators(et),this._setAsyncValidators(Mi),this.valueAccessor=He(0,Qo)}ngOnChanges(Ft){if(this._checkForErrors(),!this._registered||"name"in Ft){if(this._registered&&(this._checkName(),this.formDirective)){const et=Ft.name.previousValue;this.formDirective.removeControl({name:et,path:this._getPath(et)})}this._setUpControl()}"isDisabled"in Ft&&this._updateDisabled(Ft),Et(Ft,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(Ft){this.viewModel=Ft,this.update.emit(Ft)}_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(){cn(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(Ft){Oc.then(()=>{this.control.setValue(Ft,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(Ft){const et=Ft.isDisabled.currentValue,Mi=0!==et&&(0,u.D6c)(et);Oc.then(()=>{Mi&&!this.control.disabled?this.control.disable():!Mi&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(Ft){return this._parent?Vi(Ft,this._parent):[Ft]}}return ae.\u0275fac=function(Ft){return new(Ft||ae)(u.Y36(ke,9),u.Y36(bt,10),u.Y36(Dt,10),u.Y36(w,10),u.Y36(u.sBO,8))},ae.\u0275dir=u.lG2({type:ae,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([Ws]),u.qOj,u.TTD]}),ae})(),Hs=(()=>{class ae{}return ae.\u0275fac=function(Ft){return new(Ft||ae)},ae.\u0275dir=u.lG2({type:ae,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),ae})();const Qd={provide:w,useExisting:(0,u.Gpc)(()=>Fr),multi:!0};let Fr=(()=>{class ae extends U{writeValue(Ft){this.setProperty("value",Ft??"")}registerOnChange(Ft){this.onChange=et=>{Ft(""==et?null:parseFloat(et))}}}return ae.\u0275fac=function(){let $t;return function(et){return($t||($t=u.n5z(ae)))(et||ae)}}(),ae.\u0275dir=u.lG2({type:ae,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(Ft,et){1&Ft&&u.NdJ("input",function(Qo){return et.onChange(Qo.target.value)})("blur",function(){return et.onTouched()})},features:[u._Bn([Qd]),u.qOj]}),ae})(),Gc=(()=>{class ae{}return ae.\u0275fac=function(Ft){return new(Ft||ae)},ae.\u0275mod=u.oAB({type:ae}),ae.\u0275inj=u.cJS({}),ae})();const $s=new u.OlP("NgModelWithFormControlWarning"),xc={provide:un,useExisting:(0,u.Gpc)(()=>Ks)};let Ks=(()=>{class ae extends un{constructor(Ft,et,Mi,Qo){super(),this._ngModelWarningConfig=Qo,this.update=new u.vpe,this._ngModelWarningSent=!1,this._setValidators(Ft),this._setAsyncValidators(et),this.valueAccessor=He(0,Mi)}set isDisabled(Ft){}ngOnChanges(Ft){if(this._isControlChanged(Ft)){const et=Ft.form.previousValue;et&&pn(et,this,!1),cn(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}Et(Ft,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&pn(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(Ft){this.viewModel=Ft,this.update.emit(Ft)}_isControlChanged(Ft){return Ft.hasOwnProperty("form")}}return ae._ngModelWarningSentOnce=!1,ae.\u0275fac=function(Ft){return new(Ft||ae)(u.Y36(bt,10),u.Y36(Dt,10),u.Y36(w,10),u.Y36($s,8))},ae.\u0275dir=u.lG2({type:ae,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]}),ae})();const ll={provide:ke,useExisting:(0,u.Gpc)(()=>td)};let td=(()=>{class ae extends ke{constructor(Ft,et){super(),this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new u.vpe,this._setValidators(Ft),this._setAsyncValidators(et)}ngOnChanges(Ft){this._checkFormPresent(),Ft.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(so(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(Ft){const et=this.form.get(Ft.path);return cn(et,Ft),et.updateValueAndValidity({emitEvent:!1}),this.directives.push(Ft),et}getControl(Ft){return this.form.get(Ft.path)}removeControl(Ft){pn(Ft.control||null,Ft,!1),function zn(ae,$t){const Ft=ae.indexOf($t);Ft>-1&&ae.splice(Ft,1)}(this.directives,Ft)}addFormGroup(Ft){this._setUpFormContainer(Ft)}removeFormGroup(Ft){this._cleanUpFormContainer(Ft)}getFormGroup(Ft){return this.form.get(Ft.path)}addFormArray(Ft){this._setUpFormContainer(Ft)}removeFormArray(Ft){this._cleanUpFormContainer(Ft)}getFormArray(Ft){return this.form.get(Ft.path)}updateModel(Ft,et){this.form.get(Ft.path).setValue(et)}onSubmit(Ft){return this.submitted=!0,Lt(this.form,this.directives),this.ngSubmit.emit(Ft),"dialog"===Ft?.target?.method}onReset(){this.resetForm()}resetForm(Ft){this.form.reset(Ft),this.submitted=!1}_updateDomValue(){this.directives.forEach(Ft=>{const et=Ft.control,Mi=this.form.get(Ft.path);et!==Mi&&(pn(et||null,Ft),(ae=>ae instanceof Er)(Mi)&&(cn(Mi,Ft),Ft.control=Mi))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(Ft){const et=this.form.get(Ft.path);Ne(et,Ft),et.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(Ft){if(this.form){const et=this.form.get(Ft.path);et&&function Rn(ae,$t){return so(ae,$t)}(et,Ft)&&et.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){bi(this.form,this),this._oldForm&&so(this._oldForm,this)}_checkFormPresent(){}}return ae.\u0275fac=function(Ft){return new(Ft||ae)(u.Y36(bt,10),u.Y36(Dt,10))},ae.\u0275dir=u.lG2({type:ae,selectors:[["","formGroup",""]],hostBindings:function(Ft,et){1&Ft&&u.NdJ("submit",function(Qo){return et.onSubmit(Qo)})("reset",function(){return et.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[u._Bn([ll]),u.qOj,u.TTD]}),ae})();const jl={provide:ke,useExisting:(0,u.Gpc)(()=>Es)};let Es=(()=>{class ae extends ds{constructor(Ft,et,Mi){super(),this._parent=Ft,this._setValidators(et),this._setAsyncValidators(Mi)}_checkParentType(){Wc(this._parent)}}return ae.\u0275fac=function(Ft){return new(Ft||ae)(u.Y36(ke,13),u.Y36(bt,10),u.Y36(Dt,10))},ae.\u0275dir=u.lG2({type:ae,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[u._Bn([jl]),u.qOj]}),ae})();const Zl={provide:ke,useExisting:(0,u.Gpc)(()=>Ys)};let Ys=(()=>{class ae extends ke{constructor(Ft,et,Mi){super(),this._parent=Ft,this._setValidators(et),this._setAsyncValidators(Mi)}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 Vi(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){Wc(this._parent)}}return ae.\u0275fac=function(Ft){return new(Ft||ae)(u.Y36(ke,13),u.Y36(bt,10),u.Y36(Dt,10))},ae.\u0275dir=u.lG2({type:ae,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[u._Bn([Zl]),u.qOj]}),ae})();function Wc(ae){return!(ae instanceof Es||ae instanceof td||ae instanceof Ys)}const Xs={provide:un,useExisting:(0,u.Gpc)(()=>Dl)};let Dl=(()=>{class ae extends un{constructor(Ft,et,Mi,Qo,Ua){super(),this._ngModelWarningConfig=Ua,this._added=!1,this.update=new u.vpe,this._ngModelWarningSent=!1,this._parent=Ft,this._setValidators(et),this._setAsyncValidators(Mi),this.valueAccessor=He(0,Qo)}set isDisabled(Ft){}ngOnChanges(Ft){this._added||this._setUpControl(),Et(Ft,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(Ft){this.viewModel=Ft,this.update.emit(Ft)}get path(){return Vi(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 ae._ngModelWarningSentOnce=!1,ae.\u0275fac=function(Ft){return new(Ft||ae)(u.Y36(ke,13),u.Y36(bt,10),u.Y36(Dt,10),u.Y36(w,10),u.Y36($s,8))},ae.\u0275dir=u.lG2({type:ae,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[u._Bn([Xs]),u.qOj,u.TTD]}),ae})();function Pr(ae){return"number"==typeof ae?ae:parseFloat(ae)}let dc=(()=>{class ae{constructor(){this._validator=ce}ngOnChanges(Ft){if(this.inputName in Ft){const et=this.normalizeInput(Ft[this.inputName].currentValue);this._enabled=this.enabled(et),this._validator=this._enabled?this.createValidator(et):ce,this._onChange&&this._onChange()}}validate(Ft){return this._validator(Ft)}registerOnValidatorChange(Ft){this._onChange=Ft}enabled(Ft){return null!=Ft}}return ae.\u0275fac=function(Ft){return new(Ft||ae)},ae.\u0275dir=u.lG2({type:ae,features:[u.TTD]}),ae})();const za={provide:bt,useExisting:(0,u.Gpc)(()=>Va),multi:!0};let Va=(()=>{class ae extends dc{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=Ft=>Pr(Ft),this.createValidator=Ft=>yt(Ft)}}return ae.\u0275fac=function(){let $t;return function(et){return($t||($t=u.n5z(ae)))(et||ae)}}(),ae.\u0275dir=u.lG2({type:ae,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(Ft,et){2&Ft&&u.uIk("max",et._enabled?et.max:null)},inputs:{max:"max"},features:[u._Bn([za]),u.qOj]}),ae})();const Ur={provide:bt,useExisting:(0,u.Gpc)(()=>vr),multi:!0};let vr=(()=>{class ae extends dc{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=Ft=>Pr(Ft),this.createValidator=Ft=>Jt(Ft)}}return ae.\u0275fac=function(){let $t;return function(et){return($t||($t=u.n5z(ae)))(et||ae)}}(),ae.\u0275dir=u.lG2({type:ae,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(Ft,et){2&Ft&&u.uIk("min",et._enabled?et.min:null)},inputs:{min:"min"},features:[u._Bn([Ur]),u.qOj]}),ae})();const as={provide:bt,useExisting:(0,u.Gpc)(()=>zs),multi:!0},Qn={provide:bt,useExisting:(0,u.Gpc)(()=>ms),multi:!0};let zs=(()=>{class ae extends dc{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=u.D6c,this.createValidator=Ft=>At}enabled(Ft){return Ft}}return ae.\u0275fac=function(){let $t;return function(et){return($t||($t=u.n5z(ae)))(et||ae)}}(),ae.\u0275dir=u.lG2({type:ae,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(Ft,et){2&Ft&&u.uIk("required",et._enabled?"":null)},inputs:{required:"required"},features:[u._Bn([as]),u.qOj]}),ae})(),ms=(()=>{class ae extends zs{constructor(){super(...arguments),this.createValidator=Ft=>xt}}return ae.\u0275fac=function(){let $t;return function(et){return($t||($t=u.n5z(ae)))(et||ae)}}(),ae.\u0275dir=u.lG2({type:ae,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(Ft,et){2&Ft&&u.uIk("required",et._enabled?"":null)},features:[u._Bn([Qn]),u.qOj]}),ae})();const Fs={provide:bt,useExisting:(0,u.Gpc)(()=>tc),multi:!0};let tc=(()=>{class ae extends dc{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=Ft=>function $l(ae){return"number"==typeof ae?ae:parseInt(ae,10)}(Ft),this.createValidator=Ft=>Bt(Ft)}}return ae.\u0275fac=function(){let $t;return function(et){return($t||($t=u.n5z(ae)))(et||ae)}}(),ae.\u0275dir=u.lG2({type:ae,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(Ft,et){2&Ft&&u.uIk("maxlength",et._enabled?et.maxlength:null)},inputs:{maxlength:"maxlength"},features:[u._Bn([Fs]),u.qOj]}),ae})(),Br=(()=>{class ae{}return ae.\u0275fac=function(Ft){return new(Ft||ae)},ae.\u0275mod=u.oAB({type:ae}),ae.\u0275inj=u.cJS({imports:[Gc]}),ae})(),Lc=(()=>{class ae{}return ae.\u0275fac=function(Ft){return new(Ft||ae)},ae.\u0275mod=u.oAB({type:ae}),ae.\u0275inj=u.cJS({imports:[Br]}),ae})(),ul=(()=>{class ae{static withConfig(Ft){return{ngModule:ae,providers:[{provide:$s,useValue:Ft.warnOnNgModelWithFormControl}]}}}return ae.\u0275fac=function(Ft){return new(Ft||ae)},ae.\u0275mod=u.oAB({type:ae}),ae.\u0275inj=u.cJS({imports:[Br]}),ae})();class Cc extends Se{constructor($t,Ft,et){super(ze(Ft),rn(et,Ft)),this.controls=$t,this._initObservables(),this._setUpdateStrategy(Ft),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at($t){return this.controls[this._adjustIndex($t)]}push($t,Ft={}){this.controls.push($t),this._registerControl($t),this.updateValueAndValidity({emitEvent:Ft.emitEvent}),this._onCollectionChange()}insert($t,Ft,et={}){this.controls.splice($t,0,Ft),this._registerControl(Ft),this.updateValueAndValidity({emitEvent:et.emitEvent})}removeAt($t,Ft={}){let et=this._adjustIndex($t);et<0&&(et=0),this.controls[et]&&this.controls[et]._registerOnCollectionChange(()=>{}),this.controls.splice(et,1),this.updateValueAndValidity({emitEvent:Ft.emitEvent})}setControl($t,Ft,et={}){let Mi=this._adjustIndex($t);Mi<0&&(Mi=0),this.controls[Mi]&&this.controls[Mi]._registerOnCollectionChange(()=>{}),this.controls.splice(Mi,1),Ft&&(this.controls.splice(Mi,0,Ft),this._registerControl(Ft)),this.updateValueAndValidity({emitEvent:et.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue($t,Ft={}){Nt(this,0,$t),$t.forEach((et,Mi)=>{ge(this,!1,Mi),this.at(Mi).setValue(et,{onlySelf:!0,emitEvent:Ft.emitEvent})}),this.updateValueAndValidity(Ft)}patchValue($t,Ft={}){null!=$t&&($t.forEach((et,Mi)=>{this.at(Mi)&&this.at(Mi).patchValue(et,{onlySelf:!0,emitEvent:Ft.emitEvent})}),this.updateValueAndValidity(Ft))}reset($t=[],Ft={}){this._forEachChild((et,Mi)=>{et.reset($t[Mi],{onlySelf:!0,emitEvent:Ft.emitEvent})}),this._updatePristine(Ft),this._updateTouched(Ft),this.updateValueAndValidity(Ft)}getRawValue(){return this.controls.map($t=>$t.getRawValue())}clear($t={}){this.controls.length<1||(this._forEachChild(Ft=>Ft._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((Ft,et)=>!!et._syncPendingControls()||Ft,!1);return $t&&this.updateValueAndValidity({onlySelf:!0}),$t}_forEachChild($t){this.controls.forEach((Ft,et)=>{$t(Ft,et)})}_updateValue(){this.value=this.controls.filter($t=>$t.enabled||this.disabled).map($t=>$t.value)}_anyControls($t){return this.controls.some(Ft=>Ft.enabled&&$t(Ft))}_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 Gi(ae){return!!ae&&(void 0!==ae.asyncValidators||void 0!==ae.validators||void 0!==ae.updateOn)}let da=(()=>{class ae{constructor(){this.useNonNullable=!1}get nonNullable(){const Ft=new ae;return Ft.useNonNullable=!0,Ft}group(Ft,et=null){const Mi=this._reduceControls(Ft);let Qo={};return Gi(et)?Qo=et:null!==et&&(Qo.validators=et.validator,Qo.asyncValidators=et.asyncValidator),new zt(Mi,Qo)}record(Ft,et=null){const Mi=this._reduceControls(Ft);return new Sn(Mi,et)}control(Ft,et,Mi){let Qo={};return this.useNonNullable?(Gi(et)?Qo=et:(Qo.validators=et,Qo.asyncValidators=Mi),new Er(Ft,{...Qo,nonNullable:!0})):new Er(Ft,et,Mi)}array(Ft,et,Mi){const Qo=Ft.map(Ua=>this._createControl(Ua));return new Cc(Qo,et,Mi)}_reduceControls(Ft){const et={};return Object.keys(Ft).forEach(Mi=>{et[Mi]=this._createControl(Ft[Mi])}),et}_createControl(Ft){return Ft instanceof Er||Ft instanceof Se?Ft:Array.isArray(Ft)?this.control(Ft[0],Ft.length>1?Ft[1]:null,Ft.length>2?Ft[2]:null):this.control(Ft)}}return ae.\u0275fac=function(Ft){return new(Ft||ae)},ae.\u0275prov=u.Yz7({token:ae,factory:ae.\u0275fac,providedIn:ul}),ae})(),Kr=(()=>{class ae extends da{group(Ft,et=null){return super.group(Ft,et)}control(Ft,et,Mi){return super.control(Ft,et,Mi)}array(Ft,et,Mi){return super.array(Ft,et,Mi)}}return ae.\u0275fac=function(){let $t;return function(et){return($t||($t=u.n5z(ae)))(et||ae)}}(),ae.\u0275prov=u.Yz7({token:ae,factory:ae.\u0275fac,providedIn:ul}),ae})()},47957:(X,j,h)=>{"use strict";h.d(j,{Bb:()=>_n,XC:()=>Ge,ZL:()=>en});var u=h(12687),p=h(21281),x=h(83353),v=h(94650),t=h(3238),T=h(42654),U=h(8929),w=h(88514),P=h(36787),O=h(21086),L=h(23753),N=h(36895),V=h(98184),W=h(67376),tt=h(40445),st=h(29521),ct=h(84080),bt=h(24006),Dt=h(59549),wt=h(1059),qt=h(87545),Jt=h(72986),yt=h(92198),At=h(24850),xt=h(22868),pt=h(18583);const Ot=["panel"];function Bt(xe,vn){if(1&xe&&(v.TgZ(0,"div",0,1),v.Hsn(2),v.qZA()),2&xe){const ke=vn.id,un=v.oxw();v.Q6J("id",un.id)("ngClass",un._classList),v.uIk("aria-label",un.ariaLabel||null)("aria-labelledby",un._getPanelAriaLabelledby(ke))}}const St=["*"];let ce=0;class Vt{constructor(vn,ke){this.source=vn,this.option=ke}}const ve=(0,t.Kr)(class{}),fe=new v.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function Le(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1}}});let Fe=(()=>{class xe extends ve{constructor(ke,un,Dn,ii){super(),this._changeDetectorRef=ke,this._elementRef=un,this._activeOptionChanges=T.w.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new v.vpe,this.opened=new v.vpe,this.closed=new v.vpe,this.optionActivated=new v.vpe,this._classList={},this.id="mat-autocomplete-"+ce++,this.inertGroups=ii?.SAFARI||!1,this._autoActiveFirstOption=!!Dn.autoActiveFirstOption,this._autoSelectActiveOption=!!Dn.autoSelectActiveOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(ke){this._autoActiveFirstOption=(0,p.Ig)(ke)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(ke){this._autoSelectActiveOption=(0,p.Ig)(ke)}set classList(ke){this._classList=ke&&ke.length?(0,p.du)(ke).reduce((un,Dn)=>(un[Dn]=!0,un),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new u.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(ke=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[ke]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(ke){this.panel&&(this.panel.nativeElement.scrollTop=ke)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(ke){const un=new Vt(this,ke);this.optionSelected.emit(un)}_getPanelAriaLabelledby(ke){return this.ariaLabel?null:this.ariaLabelledby?(ke?ke+" ":"")+this.ariaLabelledby:ke}_setVisibilityClasses(ke){ke[this._visibleClass]=this.showPanel,ke[this._hiddenClass]=!this.showPanel}}return xe.\u0275fac=function(ke){return new(ke||xe)(v.Y36(v.sBO),v.Y36(v.SBq),v.Y36(fe),v.Y36(x.t4))},xe.\u0275dir=v.lG2({type:xe,viewQuery:function(ke,un){if(1&ke&&(v.Gf(v.Rgc,7),v.Gf(Ot,5)),2&ke){let Dn;v.iGM(Dn=v.CRH())&&(un.template=Dn.first),v.iGM(Dn=v.CRH())&&(un.panel=Dn.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:[v.qOj]}),xe})(),Ge=(()=>{class xe extends Fe{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return xe.\u0275fac=function(){let vn;return function(un){return(vn||(vn=v.n5z(xe)))(un||xe)}}(),xe.\u0275cmp=v.Xpm({type:xe,selectors:[["mat-autocomplete"]],contentQueries:function(ke,un,Dn){if(1&ke&&(v.Suo(Dn,t.K7,5),v.Suo(Dn,t.ey,5)),2&ke){let ii;v.iGM(ii=v.CRH())&&(un.optionGroups=ii),v.iGM(ii=v.CRH())&&(un.options=ii)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[v._Bn([{provide:t.HF,useExisting:xe}]),v.qOj],ngContentSelectors:St,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(ke,un){1&ke&&(v.F$t(),v.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}),xe})();const ne=new v.OlP("mat-autocomplete-scroll-strategy"),re={provide:ne,deps:[V.aV],useFactory:function jt(xe){return()=>xe.scrollStrategies.reposition()}},Xt={provide:bt.JU,useExisting:(0,v.Gpc)(()=>en),multi:!0};let Me=(()=>{class xe{constructor(ke,un,Dn,ii,_i,oi,Qe,te,it,K,Tt){this._element=ke,this._overlay=un,this._viewContainerRef=Dn,this._zone=ii,this._changeDetectorRef=_i,this._dir=Qe,this._formField=te,this._document=it,this._viewportRuler=K,this._defaults=Tt,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 Rt=this.autocomplete?this.autocomplete.options:null;return Rt?Rt.changes.pipe((0,wt.O)(Rt),(0,qt.w)(()=>(0,P.T)(...Rt.map(le=>le.onSelectionChange)))):this._zone.onStable.pipe((0,Jt.q)(1),(0,qt.w)(()=>this.optionSelections))}),this._scrollStrategy=oi}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(ke){this._autocompleteDisabled=(0,p.Ig)(ke)}ngAfterViewInit(){const ke=this._getWindow();typeof ke<"u"&&this._zone.runOutsideAngular(()=>ke.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(ke){ke.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const ke=this._getWindow();typeof ke<"u"&&ke.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,yt.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,yt.h)(()=>this._overlayAttached)):(0,O.of)()).pipe((0,At.U)(ke=>ke instanceof t.rN?ke: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,yt.h)(ke=>{const un=(0,x.sA)(ke),Dn=this._formField?this._formField._elementRef.nativeElement:null,ii=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&un!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!Dn||!Dn.contains(un))&&(!ii||!ii.contains(un))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(un)}))}writeValue(ke){Promise.resolve(null).then(()=>this._assignOptionValue(ke))}registerOnChange(ke){this._onChange=ke}registerOnTouched(ke){this._onTouched=ke}setDisabledState(ke){this._element.nativeElement.disabled=ke}_handleKeydown(ke){const un=ke.keyCode,Dn=(0,st.Vb)(ke);if(un===st.hY&&!Dn&&ke.preventDefault(),this.activeOption&&un===st.K5&&this.panelOpen&&!Dn)this.activeOption._selectViaInteraction(),this._resetActiveItem(),ke.preventDefault();else if(this.autocomplete){const ii=this.autocomplete._keyManager.activeItem,_i=un===st.LH||un===st.JH;un===st.Mf||_i&&!Dn&&this.panelOpen?this.autocomplete._keyManager.onKeydown(ke):_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(ke){let un=ke.target,Dn=un.value;"number"===un.type&&(Dn=""==Dn?null:parseFloat(Dn)),this._previousValue!==Dn&&(this._previousValue=Dn,this._pendingAutoselectedOption=null,this._onChange(Dn),this._canOpen()&&this._document.activeElement===ke.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(ke=!1){this._formField&&"auto"===this._formField.floatLabel&&(ke?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const ke=this._zone.onStable.pipe((0,Jt.q)(1)),un=this.autocomplete.options.changes.pipe((0,xt.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,pt.g)(0));return(0,P.T)(ke,un).pipe((0,qt.w)(()=>(this._zone.run(()=>{const Dn=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),Dn!==this.panelOpen&&(this.panelOpen?this.autocomplete.opened.emit():this.autocomplete.closed.emit())}),this.panelClosingActions)),(0,Jt.q)(1)).subscribe(Dn=>this._setValueAndClose(Dn))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(ke){const un=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(ke):ke;this._updateNativeInputValue(un??"")}_updateNativeInputValue(ke){this._formField?this._formField._control.value=ke:this._element.nativeElement.value=ke,this._previousValue=ke}_setValueAndClose(ke){const un=ke?ke.source:this._pendingAutoselectedOption;un&&(this._clearPreviousSelectedOption(un),this._assignOptionValue(un.value),this._onChange(un.value),this.autocomplete._emitSelectEvent(un),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(ke){this.autocomplete.options.forEach(un=>{un!==ke&&un.selected&&un.deselect()})}_attachOverlay(){let ke=this._overlayRef;ke?(this._positionStrategy.setOrigin(this._getConnectedElement()),ke.updateSize({width:this._getPanelWidth()})):(this._portal=new ct.UE(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),ke=this._overlay.create(this._getOverlayConfig()),this._overlayRef=ke,this._handleOverlayEvents(ke),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&ke&&ke.updateSize({width:this._getPanelWidth()})})),ke&&!ke.hasAttached()&&(ke.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const un=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&un!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){return new V.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const ke=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(ke),this._positionStrategy=ke,ke}_setStrategyPositions(ke){const un=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Dn=this._aboveClass,ii=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:Dn},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:Dn}];let _i;_i="above"===this.position?ii:"below"===this.position?un:[...un,...ii],ke.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 ke=this.autocomplete;ke.autoActiveFirstOption?ke._keyManager.setFirstItemActive():ke._keyManager.setActiveItem(-1)}_canOpen(){const ke=this._element.nativeElement;return!ke.readOnly&&!ke.disabled&&!this._autocompleteDisabled}_getWindow(){return this._document?.defaultView||window}_scrollToOption(ke){const un=this.autocomplete,Dn=(0,t.CB)(ke,un.options,un.optionGroups);if(0===ke&&1===Dn)un._setScrollTop(0);else if(un.panel){const ii=un.options.toArray()[ke];if(ii){const _i=ii._getHostElement(),oi=(0,t.jH)(_i.offsetTop,_i.offsetHeight,un._getScrollTop(),un.panel.nativeElement.offsetHeight);un._setScrollTop(oi)}}}_handleOverlayEvents(ke){ke.keydownEvents().subscribe(un=>{(un.keyCode===st.hY&&!(0,st.Vb)(un)||un.keyCode===st.LH&&(0,st.Vb)(un,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),un.stopPropagation(),un.preventDefault())}),ke.outsidePointerEvents().subscribe()}}return xe.\u0275fac=function(ke){return new(ke||xe)(v.Y36(v.SBq),v.Y36(V.aV),v.Y36(v.s_b),v.Y36(v.R0b),v.Y36(v.sBO),v.Y36(ne),v.Y36(tt.Is,8),v.Y36(Dt.G_,9),v.Y36(N.K0,8),v.Y36(W.rL),v.Y36(fe,8))},xe.\u0275dir=v.lG2({type:xe,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[v.TTD]}),xe})(),en=(()=>{class xe extends Me{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return xe.\u0275fac=function(){let vn;return function(un){return(vn||(vn=v.n5z(xe)))(un||xe)}}(),xe.\u0275dir=v.lG2({type:xe,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(ke,un){1&ke&&v.NdJ("focusin",function(){return un._handleFocus()})("blur",function(){return un._onTouched()})("input",function(ii){return un._handleInput(ii)})("keydown",function(ii){return un._handleKeydown(ii)})("click",function(){return un._handleClick()}),2&ke&&v.uIk("autocomplete",un.autocompleteAttribute)("role",un.autocompleteDisabled?null:"combobox")("aria-autocomplete",un.autocompleteDisabled?null:"list")("aria-activedescendant",un.panelOpen&&un.activeOption?un.activeOption.id:null)("aria-expanded",un.autocompleteDisabled?null:un.panelOpen.toString())("aria-owns",un.autocompleteDisabled||!un.panelOpen||null==un.autocomplete?null:un.autocomplete.id)("aria-haspopup",un.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[v._Bn([Xt]),v.qOj]}),xe})(),_n=(()=>{class xe{}return xe.\u0275fac=function(ke){return new(ke||xe)},xe.\u0275mod=v.oAB({type:xe}),xe.\u0275inj=v.cJS({providers:[re],imports:[V.U8,t.Ng,t.BQ,N.ez,W.ZD,t.Ng,t.BQ]}),xe})()},42673:(X,j,h)=>{"use strict";h.d(j,{g:()=>P,k:()=>w});var u=h(94650),p=h(3238),x=h(12687),v=h(21281);let t=0;const T=(0,p.Id)(class{}),U="mat-badge-content";let w=(()=>{class O extends T{constructor(N,V,W,tt,st){super(),this._ngZone=N,this._elementRef=V,this._ariaDescriber=W,this._renderer=tt,this._animationMode=st,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,v.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,v.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"),V="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(V)})}):N.classList.add(V),N}_updateRenderedContent(N){const V=`${N??""}`.trim();this._isInitialized&&V&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=V),this._content=V}_updateHostAriaDescription(N){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),N&&this._ariaDescriber.describe(this._elementRef.nativeElement,N),this._description=N}_setColor(N){const V=this._elementRef.nativeElement.classList;V.remove(`mat-badge-${this._color}`),N&&V.add(`mat-badge-${N}`)}_clearExistingBadges(){const N=this._elementRef.nativeElement.querySelectorAll(`:scope > .${U}`);for(const V of Array.from(N))V!==this._badgeElement&&V.remove()}}return O.\u0275fac=function(N){return new(N||O)(u.Y36(u.R0b),u.Y36(u.SBq),u.Y36(x.$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,V){2&N&&u.ekj("mat-badge-overlap",V.overlap)("mat-badge-above",V.isAbove())("mat-badge-below",!V.isAbove())("mat-badge-before",!V.isAfter())("mat-badge-after",V.isAfter())("mat-badge-small","small"===V.size)("mat-badge-medium","medium"===V.size)("mat-badge-large","large"===V.size)("mat-badge-hidden",V.hidden||!V.content)("mat-badge-disabled",V.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:[x.rt,p.BQ,p.BQ]}),O})()},90811:(X,j,h)=>{"use strict";h.d(j,{A9:()=>W,Yi:()=>st,vV:()=>ct});var u=h(12687),p=h(21281),x=h(95017),v=h(94650),t=h(24006),T=h(3238);const U=["button"],w=["*"],P=new v.OlP("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS"),O=new v.OlP("MatButtonToggleGroup"),L={provide:t.JU,useExisting:(0,v.Gpc)(()=>W),multi:!0};let N=0;class V{constructor(Dt,wt){this.source=Dt,this.value=wt}}let W=(()=>{class bt{constructor(wt,qt){this._changeDetector=wt,this._vertical=!1,this._multiple=!1,this._disabled=!1,this._controlValueAccessorChangeFn=()=>{},this._onTouched=()=>{},this._name="mat-button-toggle-group-"+N++,this.valueChange=new v.vpe,this.change=new v.vpe,this.appearance=qt&&qt.appearance?qt.appearance:"standard"}get name(){return this._name}set name(wt){this._name=wt,this._markButtonsForCheck()}get vertical(){return this._vertical}set vertical(wt){this._vertical=(0,p.Ig)(wt)}get value(){const wt=this._selectionModel?this._selectionModel.selected:[];return this.multiple?wt.map(qt=>qt.value):wt[0]?wt[0].value:void 0}set value(wt){this._setSelectionByValue(wt),this.valueChange.emit(this.value)}get selected(){const wt=this._selectionModel?this._selectionModel.selected:[];return this.multiple?wt:wt[0]||null}get multiple(){return this._multiple}set multiple(wt){this._multiple=(0,p.Ig)(wt),this._markButtonsForCheck()}get disabled(){return this._disabled}set disabled(wt){this._disabled=(0,p.Ig)(wt),this._markButtonsForCheck()}ngOnInit(){this._selectionModel=new x.Ov(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(wt=>wt.checked))}writeValue(wt){this.value=wt,this._changeDetector.markForCheck()}registerOnChange(wt){this._controlValueAccessorChangeFn=wt}registerOnTouched(wt){this._onTouched=wt}setDisabledState(wt){this.disabled=wt}_emitChangeEvent(wt){const qt=new V(wt,this.value);this._controlValueAccessorChangeFn(qt.value),this.change.emit(qt)}_syncButtonToggle(wt,qt,Jt=!1,yt=!1){!this.multiple&&this.selected&&!wt.checked&&(this.selected.checked=!1),this._selectionModel?qt?this._selectionModel.select(wt):this._selectionModel.deselect(wt):yt=!0,yt?Promise.resolve().then(()=>this._updateModelValue(wt,Jt)):this._updateModelValue(wt,Jt)}_isSelected(wt){return this._selectionModel&&this._selectionModel.isSelected(wt)}_isPrechecked(wt){return!(typeof this._rawValue>"u")&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(qt=>null!=wt.value&&qt===wt.value):wt.value===this._rawValue)}_setSelectionByValue(wt){this._rawValue=wt,this._buttonToggles&&(this.multiple&&wt?(Array.isArray(wt),this._clearSelection(),wt.forEach(qt=>this._selectValue(qt))):(this._clearSelection(),this._selectValue(wt)))}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(wt=>wt.checked=!1)}_selectValue(wt){const qt=this._buttonToggles.find(Jt=>null!=Jt.value&&Jt.value===wt);qt&&(qt.checked=!0,this._selectionModel.select(qt))}_updateModelValue(wt,qt){qt&&this._emitChangeEvent(wt),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(wt=>wt._markForCheck())}}return bt.\u0275fac=function(wt){return new(wt||bt)(v.Y36(v.sBO),v.Y36(P,8))},bt.\u0275dir=v.lG2({type:bt,selectors:[["mat-button-toggle-group"]],contentQueries:function(wt,qt,Jt){if(1&wt&&v.Suo(Jt,st,5),2&wt){let yt;v.iGM(yt=v.CRH())&&(qt._buttonToggles=yt)}},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(wt,qt){2&wt&&(v.uIk("aria-disabled",qt.disabled),v.ekj("mat-button-toggle-vertical",qt.vertical)("mat-button-toggle-group-appearance-standard","standard"===qt.appearance))},inputs:{appearance:"appearance",name:"name",vertical:"vertical",value:"value",multiple:"multiple",disabled:"disabled"},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[v._Bn([L,{provide:O,useExisting:bt}])]}),bt})();const tt=(0,T.Kr)(class{});let st=(()=>{class bt extends tt{constructor(wt,qt,Jt,yt,At,xt){super(),this._changeDetectorRef=qt,this._elementRef=Jt,this._focusMonitor=yt,this._checked=!1,this.ariaLabelledby=null,this._disabled=!1,this.change=new v.vpe;const pt=Number(At);this.tabIndex=pt||0===pt?pt:null,this.buttonToggleGroup=wt,this.appearance=xt&&xt.appearance?xt.appearance:"standard"}get buttonId(){return`${this.id}-button`}get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(wt){this._appearance=wt}get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(wt){const qt=(0,p.Ig)(wt);qt!==this._checked&&(this._checked=qt,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(wt){this._disabled=(0,p.Ig)(wt)}ngOnInit(){const wt=this.buttonToggleGroup;this.id=this.id||"mat-button-toggle-"+N++,wt&&(wt._isPrechecked(this)?this.checked=!0:wt._isSelected(this)!==this._checked&&wt._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){const wt=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),wt&&wt._isSelected(this)&&wt._syncButtonToggle(this,!1,!1,!0)}focus(wt){this._buttonElement.nativeElement.focus(wt)}_onButtonClick(){const wt=!!this._isSingleSelector()||!this._checked;wt!==this._checked&&(this._checked=wt,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.change.emit(new V(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 bt.\u0275fac=function(wt){return new(wt||bt)(v.Y36(O,8),v.Y36(v.sBO),v.Y36(v.SBq),v.Y36(u.tE),v.$8M("tabindex"),v.Y36(P,8))},bt.\u0275cmp=v.Xpm({type:bt,selectors:[["mat-button-toggle"]],viewQuery:function(wt,qt){if(1&wt&&v.Gf(U,5),2&wt){let Jt;v.iGM(Jt=v.CRH())&&(qt._buttonElement=Jt.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(wt,qt){1&wt&&v.NdJ("focus",function(){return qt.focus()}),2&wt&&(v.uIk("aria-label",null)("aria-labelledby",null)("id",qt.id)("name",null),v.ekj("mat-button-toggle-standalone",!qt.buttonToggleGroup)("mat-button-toggle-checked",qt.checked)("mat-button-toggle-disabled",qt.disabled)("mat-button-toggle-appearance-standard","standard"===qt.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:[v.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(wt,qt){if(1&wt&&(v.F$t(),v.TgZ(0,"button",0,1),v.NdJ("click",function(){return qt._onButtonClick()}),v.TgZ(2,"span",2),v.Hsn(3),v.qZA()(),v._UZ(4,"span",3)(5,"span",4)),2&wt){const Jt=v.MAs(1);v.Q6J("id",qt.buttonId)("disabled",qt.disabled||null),v.uIk("tabindex",qt.disabled?-1:qt.tabIndex)("aria-pressed",qt.checked)("name",qt._getButtonName())("aria-label",qt.ariaLabel)("aria-labelledby",qt.ariaLabelledby),v.xp6(5),v.Q6J("matRippleTrigger",Jt)("matRippleDisabled",qt.disableRipple||qt.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}),bt})(),ct=(()=>{class bt{}return bt.\u0275fac=function(wt){return new(wt||bt)},bt.\u0275mod=v.oAB({type:bt}),bt.\u0275inj=v.cJS({imports:[T.BQ,T.si,T.BQ]}),bt})()},4859:(X,j,h)=>{"use strict";h.d(j,{lW:()=>O,ot:()=>N});var u=h(94650),p=h(3238),x=h(12687);const v=["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,p.pj)((0,p.Id)((0,p.Kr)(class{constructor(V){this._elementRef=V}})));let O=(()=>{class V extends P{constructor(tt,st,ct){super(tt),this._focusMonitor=st,this._animationMode=ct,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const bt of w)this._hasHostAttributes(bt)&&this._getHostElement().classList.add(bt);tt.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(tt,st){tt?this._focusMonitor.focusVia(this._getHostElement(),tt,st):this._getHostElement().focus(st)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...tt){return tt.some(st=>this._getHostElement().hasAttribute(st))}}return V.\u0275fac=function(tt){return new(tt||V)(u.Y36(u.SBq),u.Y36(x.tE),u.Y36(u.QbO,8))},V.\u0275cmp=u.Xpm({type:V,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(tt,st){if(1&tt&&u.Gf(p.wG,5),2&tt){let ct;u.iGM(ct=u.CRH())&&(st.ripple=ct.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(tt,st){2&tt&&(u.uIk("disabled",st.disabled||null),u.ekj("_mat-animation-noopable","NoopAnimations"===st._animationMode)("mat-button-disabled",st.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[u.qOj],attrs:v,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(tt,st){1&tt&&(u.F$t(),u.TgZ(0,"span",0),u.Hsn(1),u.qZA(),u._UZ(2,"span",1)(3,"span",2)),2&tt&&(u.xp6(2),u.ekj("mat-button-ripple-round",st.isRoundButton||st.isIconButton),u.Q6J("matRippleDisabled",st._isRippleDisabled())("matRippleCentered",st.isIconButton)("matRippleTrigger",st._getHostElement()))},dependencies:[p.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}),V})(),N=(()=>{class V{}return V.\u0275fac=function(tt){return new(tt||V)},V.\u0275mod=u.oAB({type:V}),V.\u0275inj=u.cJS({imports:[p.si,p.BQ,p.BQ]}),V})()},73546:(X,j,h)=>{"use strict";h.d(j,{$j:()=>L,C1:()=>Jt,G2:()=>W,QW:()=>yt,a8:()=>wt,dk:()=>qt,dn:()=>P,hq:()=>N,n5:()=>O,nc:()=>st});var u=h(94650),p=h(3238);const x=["*",[["mat-card-footer"]]],v=["*","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 At{}return At.\u0275fac=function(pt){return new(pt||At)},At.\u0275dir=u.lG2({type:At,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),At})(),O=(()=>{class At{}return At.\u0275fac=function(pt){return new(pt||At)},At.\u0275dir=u.lG2({type:At,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),At})(),L=(()=>{class At{}return At.\u0275fac=function(pt){return new(pt||At)},At.\u0275dir=u.lG2({type:At,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),At})(),N=(()=>{class At{constructor(){this.align="start"}}return At.\u0275fac=function(pt){return new(pt||At)},At.\u0275dir=u.lG2({type:At,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(pt,Ot){2&pt&&u.ekj("mat-card-actions-align-end","end"===Ot.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),At})(),W=(()=>{class At{}return At.\u0275fac=function(pt){return new(pt||At)},At.\u0275dir=u.lG2({type:At,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-card-image"]}),At})(),st=(()=>{class At{}return At.\u0275fac=function(pt){return new(pt||At)},At.\u0275dir=u.lG2({type:At,selectors:[["","mat-card-md-image",""],["","matCardImageMedium",""]],hostAttrs:[1,"mat-card-md-image"]}),At})(),wt=(()=>{class At{constructor(pt){this._animationMode=pt}}return At.\u0275fac=function(pt){return new(pt||At)(u.Y36(u.QbO,8))},At.\u0275cmp=u.Xpm({type:At,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(pt,Ot){2&pt&&u.ekj("_mat-animation-noopable","NoopAnimations"===Ot._animationMode)},exportAs:["matCard"],ngContentSelectors:v,decls:2,vars:0,template:function(pt,Ot){1&pt&&(u.F$t(x),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}),At})(),qt=(()=>{class At{}return At.\u0275fac=function(pt){return new(pt||At)},At.\u0275cmp=u.Xpm({type:At,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:T,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(pt,Ot){1&pt&&(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}),At})(),Jt=(()=>{class At{}return At.\u0275fac=function(pt){return new(pt||At)},At.\u0275cmp=u.Xpm({type:At,selectors:[["mat-card-title-group"]],hostAttrs:[1,"mat-card-title-group"],ngContentSelectors:w,decls:4,vars:0,template:function(pt,Ot){1&pt&&(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}),At})(),yt=(()=>{class At{}return At.\u0275fac=function(pt){return new(pt||At)},At.\u0275mod=u.oAB({type:At}),At.\u0275inj=u.cJS({imports:[p.BQ,p.BQ]}),At})()},56709:(X,j,h)=>{"use strict";h.d(j,{e_:()=>qt,oG:()=>Dt,p9:()=>yt});var u=h(12687),p=h(21281),x=h(94650),v=h(24006),t=h(3238),T=h(49643);const U=["input"],w=["label"],P=function(At){return{enterDuration:At}},O=["*"],L=new x.OlP("mat-checkbox-default-options",{providedIn:"root",factory:N});function N(){return{color:"accent",clickAction:"check-indeterminate"}}let V=0;const W=N(),tt={provide:v.JU,useExisting:(0,x.Gpc)(()=>Dt),multi:!0};class st{}const ct=(0,t.sb)((0,t.pj)((0,t.Kr)((0,t.Id)(class{constructor(At){this._elementRef=At}}))));let bt=(()=>{class At extends ct{constructor(pt,Ot,Bt,St,ce,Vt,ve){super(Ot),this._changeDetectorRef=Bt,this._ngZone=St,this._animationMode=Vt,this._options=ve,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new x.vpe,this.indeterminateChange=new x.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||W,this.color=this.defaultColor=this._options.color||W.color,this.tabIndex=parseInt(ce)||0,this.id=this._uniqueId=`${pt}${++V}`}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(pt){this._required=(0,p.Ig)(pt)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(pt){const Ot=(0,p.Ig)(pt);Ot!=this.checked&&(this._checked=Ot,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(pt){const Ot=(0,p.Ig)(pt);Ot!==this.disabled&&(this._disabled=Ot,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(pt){const Ot=pt!=this._indeterminate;this._indeterminate=(0,p.Ig)(pt),Ot&&(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(pt){this.checked=!!pt}registerOnChange(pt){this._controlValueAccessorChangeFn=pt}registerOnTouched(pt){this._onTouched=pt}setDisabledState(pt){this.disabled=pt}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(pt){let Ot=this._currentCheckState,Bt=this._getAnimationTargetElement();if(Ot!==pt&&Bt&&(this._currentAnimationClass&&Bt.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(Ot,pt),this._currentCheckState=pt,this._currentAnimationClass.length>0)){Bt.classList.add(this._currentAnimationClass);const St=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{Bt.classList.remove(St)},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 pt=this._options?.clickAction;this.disabled||"noop"===pt?!this.disabled&&"noop"===pt&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==pt&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(pt){pt.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(pt,Ot){if("NoopAnimations"===this._animationMode)return"";switch(pt){case 0:if(1===Ot)return this._animationClasses.uncheckedToChecked;if(3==Ot)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===Ot?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===Ot?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===Ot?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(pt){const Ot=this._inputElement;Ot&&(Ot.nativeElement.indeterminate=pt)}}return At.\u0275fac=function(pt){x.$Z()},At.\u0275dir=x.lG2({type:At,viewQuery:function(pt,Ot){if(1&pt&&(x.Gf(U,5),x.Gf(w,5),x.Gf(t.wG,5)),2&pt){let Bt;x.iGM(Bt=x.CRH())&&(Ot._inputElement=Bt.first),x.iGM(Bt=x.CRH())&&(Ot._labelElement=Bt.first),x.iGM(Bt=x.CRH())&&(Ot.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:[x.qOj]}),At})(),Dt=(()=>{class At extends bt{constructor(pt,Ot,Bt,St,ce,Vt,ve){super("mat-checkbox-",pt,Ot,St,ce,Vt,ve),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(pt){const Ot=new st;return Ot.source=this,Ot.checked=pt,Ot}_getAnimationTargetElement(){return this._elementRef.nativeElement}ngAfterViewInit(){super.ngAfterViewInit(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(pt=>{pt||this._onBlur()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onInputClick(pt){pt.stopPropagation(),super._handleInputClick()}focus(pt,Ot){pt?this._focusMonitor.focusVia(this._inputElement,pt,Ot):this._inputElement.nativeElement.focus(Ot)}}return At.\u0275fac=function(pt){return new(pt||At)(x.Y36(x.SBq),x.Y36(x.sBO),x.Y36(u.tE),x.Y36(x.R0b),x.$8M("tabindex"),x.Y36(x.QbO,8),x.Y36(L,8))},At.\u0275cmp=x.Xpm({type:At,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(pt,Ot){2&pt&&(x.Ikx("id",Ot.id),x.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),x.ekj("mat-checkbox-indeterminate",Ot.indeterminate)("mat-checkbox-checked",Ot.checked)("mat-checkbox-disabled",Ot.disabled)("mat-checkbox-label-before","before"==Ot.labelPosition)("_mat-animation-noopable","NoopAnimations"===Ot._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[x._Bn([tt]),x.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(pt,Ot){if(1&pt&&(x.F$t(),x.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),x.NdJ("change",function(St){return Ot._onInteractionEvent(St)})("click",function(St){return Ot._onInputClick(St)}),x.qZA(),x.TgZ(5,"span",5),x._UZ(6,"span",6),x.qZA(),x._UZ(7,"span",7),x.TgZ(8,"span",8),x.O4$(),x.TgZ(9,"svg",9),x._UZ(10,"path",10),x.qZA(),x.kcU(),x._UZ(11,"span",11),x.qZA()(),x.TgZ(12,"span",12,13),x.NdJ("cdkObserveContent",function(){return Ot._onLabelTextChange()}),x.TgZ(14,"span",14),x._uU(15,"\xa0"),x.qZA(),x.Hsn(16),x.qZA()()),2&pt){const Bt=x.MAs(1),St=x.MAs(13);x.uIk("for",Ot.inputId),x.xp6(2),x.ekj("mat-checkbox-inner-container-no-side-margin",!St.textContent||!St.textContent.trim()),x.xp6(1),x.Q6J("id",Ot.inputId)("required",Ot.required)("checked",Ot.checked)("disabled",Ot.disabled)("tabIndex",Ot.tabIndex),x.uIk("value",Ot.value)("name",Ot.name)("aria-label",Ot.ariaLabel||null)("aria-labelledby",Ot.ariaLabelledby)("aria-checked",Ot._getAriaChecked())("aria-describedby",Ot.ariaDescribedby),x.xp6(2),x.Q6J("matRippleTrigger",Bt)("matRippleDisabled",Ot._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",x.VKq(19,P,"NoopAnimations"===Ot._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}),At})();const wt={provide:v.Cf,useExisting:(0,x.Gpc)(()=>qt),multi:!0};let qt=(()=>{class At extends v.Zs{}return At.\u0275fac=function(){let xt;return function(Ot){return(xt||(xt=x.n5z(At)))(Ot||At)}}(),At.\u0275dir=x.lG2({type:At,selectors:[["mat-checkbox","required","","formControlName",""],["mat-checkbox","required","","formControl",""],["mat-checkbox","required","","ngModel",""]],features:[x._Bn([wt]),x.qOj]}),At})(),Jt=(()=>{class At{}return At.\u0275fac=function(pt){return new(pt||At)},At.\u0275mod=x.oAB({type:At}),At.\u0275inj=x.cJS({}),At})(),yt=(()=>{class At{}return At.\u0275fac=function(pt){return new(pt||At)},At.\u0275mod=x.oAB({type:At}),At.\u0275inj=x.cJS({imports:[t.si,t.BQ,T.Q8,Jt,t.BQ,Jt]}),At})()},3238:(X,j,h)=>{"use strict";h.d(j,{yN:()=>bt,mZ:()=>Dt,_A:()=>Le,rD:()=>oe,sG:()=>Fe,Ad:()=>ve,K7:()=>qn,HF:()=>le,Y2:()=>te,BQ:()=>Jt,X2:()=>Me,uc:()=>xe,XK:()=>re,ey:()=>Yn,Ng:()=>gn,rN:()=>bo,nP:()=>Tt,us:()=>Rt,wG:()=>it,si:()=>K,IR:()=>oi,CB:()=>Vn,jH:()=>Je,pj:()=>Ot,Kr:()=>Bt,Id:()=>pt,FD:()=>ce,dB:()=>Vt,sb:()=>St,E0:()=>en});var u=h(94650),p=h(12687),x=h(40445),t=h(36895),T=h(83353),U=h(21281),w=h(56498),P=h(8929),O=h(1059),L=h(29521);function W(Ye,Ee){if(1&Ye&&u._UZ(0,"mat-pseudo-checkbox",4),2&Ye){const Xe=u.oxw();u.Q6J("state",Xe.selected?"checked":"unchecked")("disabled",Xe.disabled)}}function tt(Ye,Ee){if(1&Ye&&(u.TgZ(0,"span",5),u._uU(1),u.qZA()),2&Ye){const Xe=u.oxw();u.xp6(1),u.hij("(",Xe.group.label,")")}}const st=["*"];let bt=(()=>{class Ye{}return Ye.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",Ye.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",Ye.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",Ye.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",Ye})(),Dt=(()=>{class Ye{}return Ye.COMPLEX="375ms",Ye.ENTERING="225ms",Ye.EXITING="195ms",Ye})();const qt=new u.OlP("mat-sanity-checks",{providedIn:"root",factory:function wt(){return!0}});let Jt=(()=>{class Ye{constructor(Xe,se,ze){this._sanityChecks=se,this._document=ze,this._hasDoneGlobalChecks=!1,Xe._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(Xe){return!(0,T.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[Xe])}}return Ye.\u0275fac=function(Xe){return new(Xe||Ye)(u.LFG(p.qm),u.LFG(qt,8),u.LFG(t.K0))},Ye.\u0275mod=u.oAB({type:Ye}),Ye.\u0275inj=u.cJS({imports:[x.vT,x.vT]}),Ye})();function pt(Ye){return class extends Ye{constructor(...Ee){super(...Ee),this._disabled=!1}get disabled(){return this._disabled}set disabled(Ee){this._disabled=(0,U.Ig)(Ee)}}}function Ot(Ye,Ee){return class extends Ye{constructor(...Xe){super(...Xe),this.defaultColor=Ee,this.color=Ee}get color(){return this._color}set color(Xe){const se=Xe||this.defaultColor;se!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),se&&this._elementRef.nativeElement.classList.add(`mat-${se}`),this._color=se)}}}function Bt(Ye){return class extends Ye{constructor(...Ee){super(...Ee),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(Ee){this._disableRipple=(0,U.Ig)(Ee)}}}function St(Ye,Ee=0){return class extends Ye{constructor(...Xe){super(...Xe),this._tabIndex=Ee,this.defaultTabIndex=Ee}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(Xe){this._tabIndex=null!=Xe?(0,U.su)(Xe):this.defaultTabIndex}}}function ce(Ye){return class extends Ye{constructor(...Ee){super(...Ee),this.errorState=!1}updateErrorState(){const Ee=this.errorState,ie=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);ie!==Ee&&(this.errorState=ie,this.stateChanges.next())}}}function Vt(Ye){return class extends Ye{constructor(...Ee){super(...Ee),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new w.y(Xe=>{this._isInitialized?this._notifySubscriber(Xe):this._pendingSubscribers.push(Xe)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(Ee){Ee.next(),Ee.complete()}}}const ve=new u.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function fe(){return(0,u.f3M)(u.soG)}});class Le{constructor(){this._localeChanges=new P.xQ,this.localeChanges=this._localeChanges}getValidDateOrNull(Ee){return this.isDateInstance(Ee)&&this.isValid(Ee)?Ee:null}deserialize(Ee){return null==Ee||this.isDateInstance(Ee)&&this.isValid(Ee)?Ee:this.invalid()}setLocale(Ee){this.locale=Ee,this._localeChanges.next()}compareDate(Ee,Xe){return this.getYear(Ee)-this.getYear(Xe)||this.getMonth(Ee)-this.getMonth(Xe)||this.getDate(Ee)-this.getDate(Xe)}sameDate(Ee,Xe){if(Ee&&Xe){let se=this.isValid(Ee),ze=this.isValid(Xe);return se&&ze?!this.compareDate(Ee,Xe):se==ze}return Ee==Xe}clampDate(Ee,Xe,se){return Xe&&this.compareDate(Ee,Xe)<0?Xe:se&&this.compareDate(Ee,se)>0?se:Ee}}const Fe=new u.OlP("mat-date-formats"),Ge=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Gt(Ye,Ee){const Xe=Array(Ye);for(let se=0;se{class Ye extends Le{constructor(Xe,se){super(),this.useUtcForDisplay=!1,super.setLocale(Xe)}getYear(Xe){return Xe.getFullYear()}getMonth(Xe){return Xe.getMonth()}getDate(Xe){return Xe.getDate()}getDayOfWeek(Xe){return Xe.getDay()}getMonthNames(Xe){const se=new Intl.DateTimeFormat(this.locale,{month:Xe,timeZone:"utc"});return Gt(12,ze=>this._format(se,new Date(2017,ze,1)))}getDateNames(){const Xe=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Gt(31,se=>this._format(Xe,new Date(2017,0,se+1)))}getDayOfWeekNames(Xe){const se=new Intl.DateTimeFormat(this.locale,{weekday:Xe,timeZone:"utc"});return Gt(7,ze=>this._format(se,new Date(2017,0,ze+1)))}getYearName(Xe){const se=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(se,Xe)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(Xe){return this.getDate(this._createDateWithOverflow(this.getYear(Xe),this.getMonth(Xe)+1,0))}clone(Xe){return new Date(Xe.getTime())}createDate(Xe,se,ze){let ie=this._createDateWithOverflow(Xe,se,ze);return ie.getMonth(),ie}today(){return new Date}parse(Xe,se){return"number"==typeof Xe?new Date(Xe):Xe?new Date(Date.parse(Xe)):null}format(Xe,se){if(!this.isValid(Xe))throw Error("NativeDateAdapter: Cannot format invalid date.");const ze=new Intl.DateTimeFormat(this.locale,{...se,timeZone:"utc"});return this._format(ze,Xe)}addCalendarYears(Xe,se){return this.addCalendarMonths(Xe,12*se)}addCalendarMonths(Xe,se){let ze=this._createDateWithOverflow(this.getYear(Xe),this.getMonth(Xe)+se,this.getDate(Xe));return this.getMonth(ze)!=((this.getMonth(Xe)+se)%12+12)%12&&(ze=this._createDateWithOverflow(this.getYear(ze),this.getMonth(ze),0)),ze}addCalendarDays(Xe,se){return this._createDateWithOverflow(this.getYear(Xe),this.getMonth(Xe),this.getDate(Xe)+se)}toIso8601(Xe){return[Xe.getUTCFullYear(),this._2digit(Xe.getUTCMonth()+1),this._2digit(Xe.getUTCDate())].join("-")}deserialize(Xe){if("string"==typeof Xe){if(!Xe)return null;if(Ge.test(Xe)){let se=new Date(Xe);if(this.isValid(se))return se}}return super.deserialize(Xe)}isDateInstance(Xe){return Xe instanceof Date}isValid(Xe){return!isNaN(Xe.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(Xe,se,ze){const ie=new Date;return ie.setFullYear(Xe,se,ze),ie.setHours(0,0,0,0),ie}_2digit(Xe){return("00"+Xe).slice(-2)}_format(Xe,se){const ze=new Date;return ze.setUTCFullYear(se.getFullYear(),se.getMonth(),se.getDate()),ze.setUTCHours(se.getHours(),se.getMinutes(),se.getSeconds(),se.getMilliseconds()),Xe.format(ze)}}return Ye.\u0275fac=function(Xe){return new(Xe||Ye)(u.LFG(ve,8),u.LFG(T.t4))},Ye.\u0275prov=u.Yz7({token:Ye,factory:Ye.\u0275fac}),Ye})();const ne={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 jt=(()=>{class Ye{}return Ye.\u0275fac=function(Xe){return new(Xe||Ye)},Ye.\u0275mod=u.oAB({type:Ye}),Ye.\u0275inj=u.cJS({providers:[{provide:Le,useClass:Te}]}),Ye})(),re=(()=>{class Ye{}return Ye.\u0275fac=function(Xe){return new(Xe||Ye)},Ye.\u0275mod=u.oAB({type:Ye}),Ye.\u0275inj=u.cJS({providers:[{provide:Fe,useValue:ne}],imports:[jt]}),Ye})(),oe=(()=>{class Ye{isErrorState(Xe,se){return!!(Xe&&Xe.invalid&&(Xe.touched||se&&se.submitted))}}return Ye.\u0275fac=function(Xe){return new(Xe||Ye)},Ye.\u0275prov=u.Yz7({token:Ye,factory:Ye.\u0275fac,providedIn:"root"}),Ye})(),Me=(()=>{class Ye{}return Ye.\u0275fac=function(Xe){return new(Xe||Ye)},Ye.\u0275dir=u.lG2({type:Ye,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),Ye})();function en(Ye,Ee,Xe="mat"){Ye.changes.pipe((0,O.O)(Ye)).subscribe(({length:se})=>{_n(Ee,`${Xe}-2-line`,!1),_n(Ee,`${Xe}-3-line`,!1),_n(Ee,`${Xe}-multi-line`,!1),2===se||3===se?_n(Ee,`${Xe}-${se}-line`,!0):se>3&&_n(Ee,`${Xe}-multi-line`,!0)})}function _n(Ye,Ee,Xe){Ye.nativeElement.classList.toggle(Ee,Xe)}let xe=(()=>{class Ye{}return Ye.\u0275fac=function(Xe){return new(Xe||Ye)},Ye.\u0275mod=u.oAB({type:Ye}),Ye.\u0275inj=u.cJS({imports:[Jt,Jt]}),Ye})();class vn{constructor(Ee,Xe,se,ze=!1){this._renderer=Ee,this.element=Xe,this.config=se,this._animationForciblyDisabledThroughCss=ze,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const ke={enterDuration:225,exitDuration:150},Dn=(0,T.i$)({passive:!0}),ii=["mousedown","touchstart"],_i=["mouseup","mouseleave","touchend","touchcancel"];class oi{constructor(Ee,Xe,se,ze){this._target=Ee,this._ngZone=Xe,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,ze.isBrowser&&(this._containerElement=(0,U.fI)(se))}fadeInRipple(Ee,Xe,se={}){const ze=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),ie={...ke,...se.animation};se.centered&&(Ee=ze.left+ze.width/2,Xe=ze.top+ze.height/2);const rn=se.radius||function Qe(Ye,Ee,Xe){const se=Math.max(Math.abs(Ye-Xe.left),Math.abs(Ye-Xe.right)),ze=Math.max(Math.abs(Ee-Xe.top),Math.abs(Ee-Xe.bottom));return Math.sqrt(se*se+ze*ze)}(Ee,Xe,ze),fn=Ee-ze.left,sn=Xe-ze.top,ge=ie.enterDuration,Nt=document.createElement("div");Nt.classList.add("mat-ripple-element"),Nt.style.left=fn-rn+"px",Nt.style.top=sn-rn+"px",Nt.style.height=2*rn+"px",Nt.style.width=2*rn+"px",null!=se.color&&(Nt.style.backgroundColor=se.color),Nt.style.transitionDuration=`${ge}ms`,this._containerElement.appendChild(Nt);const Se=window.getComputedStyle(Nt),Ae=Se.transitionDuration,Ie="none"===Se.transitionProperty||"0s"===Ae||"0s, 0s"===Ae,Sn=new vn(this,Nt,se,Ie);Nt.style.transform="scale3d(1, 1, 1)",Sn.state=0,se.persistent||(this._mostRecentTransientRipple=Sn);let Ei=null;return!Ie&&(ge||ie.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const Vi=()=>this._finishRippleTransition(Sn),cn=()=>this._destroyRipple(Sn);Nt.addEventListener("transitionend",Vi),Nt.addEventListener("transitioncancel",cn),Ei={onTransitionEnd:Vi,onTransitionCancel:cn}}),this._activeRipples.set(Sn,Ei),(Ie||!ge)&&this._finishRippleTransition(Sn),Sn}fadeOutRipple(Ee){if(2===Ee.state||3===Ee.state)return;const Xe=Ee.element,se={...ke,...Ee.config.animation};Xe.style.transitionDuration=`${se.exitDuration}ms`,Xe.style.opacity="0",Ee.state=2,(Ee._animationForciblyDisabledThroughCss||!se.exitDuration)&&this._finishRippleTransition(Ee)}fadeOutAll(){this._getActiveRipples().forEach(Ee=>Ee.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(Ee=>{Ee.config.persistent||Ee.fadeOut()})}setupTriggerEvents(Ee){const Xe=(0,U.fI)(Ee);!Xe||Xe===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=Xe,this._registerEvents(ii))}handleEvent(Ee){"mousedown"===Ee.type?this._onMousedown(Ee):"touchstart"===Ee.type?this._onTouchStart(Ee):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(_i),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(Ee){0===Ee.state?this._startFadeOutTransition(Ee):2===Ee.state&&this._destroyRipple(Ee)}_startFadeOutTransition(Ee){const Xe=Ee===this._mostRecentTransientRipple,{persistent:se}=Ee.config;Ee.state=1,!se&&(!Xe||!this._isPointerDown)&&Ee.fadeOut()}_destroyRipple(Ee){const Xe=this._activeRipples.get(Ee)??null;this._activeRipples.delete(Ee),this._activeRipples.size||(this._containerRect=null),Ee===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),Ee.state=3,null!==Xe&&(Ee.element.removeEventListener("transitionend",Xe.onTransitionEnd),Ee.element.removeEventListener("transitioncancel",Xe.onTransitionCancel)),Ee.element.remove()}_onMousedown(Ee){const Xe=(0,p.X6)(Ee),se=this._lastTouchStartEvent&&Date.now(){!Ee.config.persistent&&(1===Ee.state||Ee.config.terminateOnPointerUp&&0===Ee.state)&&Ee.fadeOut()}))}_registerEvents(Ee){this._ngZone.runOutsideAngular(()=>{Ee.forEach(Xe=>{this._triggerElement.addEventListener(Xe,this,Dn)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(ii.forEach(Ee=>{this._triggerElement.removeEventListener(Ee,this,Dn)}),this._pointerUpEventsRegistered&&_i.forEach(Ee=>{this._triggerElement.removeEventListener(Ee,this,Dn)}))}}const te=new u.OlP("mat-ripple-global-options");let it=(()=>{class Ye{constructor(Xe,se,ze,ie,rn){this._elementRef=Xe,this._animationMode=rn,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=ie||{},this._rippleRenderer=new oi(this,se,Xe,ze)}get disabled(){return this._disabled}set disabled(Xe){Xe&&this.fadeOutAllNonPersistent(),this._disabled=Xe,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(Xe){this._trigger=Xe,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(Xe,se=0,ze){return"number"==typeof Xe?this._rippleRenderer.fadeInRipple(Xe,se,{...this.rippleConfig,...ze}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...Xe})}}return Ye.\u0275fac=function(Xe){return new(Xe||Ye)(u.Y36(u.SBq),u.Y36(u.R0b),u.Y36(T.t4),u.Y36(te,8),u.Y36(u.QbO,8))},Ye.\u0275dir=u.lG2({type:Ye,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(Xe,se){2&Xe&&u.ekj("mat-ripple-unbounded",se.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"]}),Ye})(),K=(()=>{class Ye{}return Ye.\u0275fac=function(Xe){return new(Xe||Ye)},Ye.\u0275mod=u.oAB({type:Ye}),Ye.\u0275inj=u.cJS({imports:[Jt,Jt]}),Ye})(),Tt=(()=>{class Ye{constructor(Xe){this._animationMode=Xe,this.state="unchecked",this.disabled=!1}}return Ye.\u0275fac=function(Xe){return new(Xe||Ye)(u.Y36(u.QbO,8))},Ye.\u0275cmp=u.Xpm({type:Ye,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(Xe,se){2&Xe&&u.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===se.state)("mat-pseudo-checkbox-checked","checked"===se.state)("mat-pseudo-checkbox-disabled",se.disabled)("_mat-animation-noopable","NoopAnimations"===se._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(Xe,se){},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}),Ye})(),Rt=(()=>{class Ye{}return Ye.\u0275fac=function(Xe){return new(Xe||Ye)},Ye.\u0275mod=u.oAB({type:Ye}),Ye.\u0275inj=u.cJS({imports:[Jt]}),Ye})();const le=new u.OlP("MAT_OPTION_PARENT_COMPONENT"),qn=new u.OlP("MatOptgroup");let Di=0;class bo{constructor(Ee,Xe=!1){this.source=Ee,this.isUserInput=Xe}}let hi=(()=>{class Ye{constructor(Xe,se,ze,ie){this._element=Xe,this._changeDetectorRef=se,this._parent=ze,this.group=ie,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(Xe){this._disabled=(0,U.Ig)(Xe)}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(Xe,se){const ze=this._getHostElement();"function"==typeof ze.focus&&ze.focus(se)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(Xe){(Xe.keyCode===L.K5||Xe.keyCode===L.L_)&&!(0,L.Vb)(Xe)&&(this._selectViaInteraction(),Xe.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 Xe=this.viewValue;Xe!==this._mostRecentViewValue&&(this._mostRecentViewValue=Xe,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(Xe=!1){this.onSelectionChange.emit(new bo(this,Xe))}}return Ye.\u0275fac=function(Xe){u.$Z()},Ye.\u0275dir=u.lG2({type:Ye,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),Ye})(),Yn=(()=>{class Ye extends hi{constructor(Xe,se,ze,ie){super(Xe,se,ze,ie)}}return Ye.\u0275fac=function(Xe){return new(Xe||Ye)(u.Y36(u.SBq),u.Y36(u.sBO),u.Y36(le,8),u.Y36(qn,8))},Ye.\u0275cmp=u.Xpm({type:Ye,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(Xe,se){1&Xe&&u.NdJ("click",function(){return se._selectViaInteraction()})("keydown",function(ie){return se._handleKeydown(ie)}),2&Xe&&(u.Ikx("id",se.id),u.uIk("tabindex",se._getTabIndex())("aria-selected",se._getAriaSelected())("aria-disabled",se.disabled.toString()),u.ekj("mat-selected",se.selected)("mat-option-multiple",se.multiple)("mat-active",se.active)("mat-option-disabled",se.disabled))},exportAs:["matOption"],features:[u.qOj],ngContentSelectors:st,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(Xe,se){1&Xe&&(u.F$t(),u.YNc(0,W,1,2,"mat-pseudo-checkbox",0),u.TgZ(1,"span",1),u.Hsn(2),u.qZA(),u.YNc(3,tt,2,1,"span",2),u._UZ(4,"div",3)),2&Xe&&(u.Q6J("ngIf",se.multiple),u.xp6(3),u.Q6J("ngIf",se.group&&se.group._inert),u.xp6(1),u.Q6J("matRippleTrigger",se._getHostElement())("matRippleDisabled",se.disabled||se.disableRipple))},dependencies:[it,t.O5,Tt],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}),Ye})();function Vn(Ye,Ee,Xe){if(Xe.length){let se=Ee.toArray(),ze=Xe.toArray(),ie=0;for(let rn=0;rnXe+se?Math.max(0,Ye-se+Ee):Xe}let gn=(()=>{class Ye{}return Ye.\u0275fac=function(Xe){return new(Xe||Ye)},Ye.\u0275mod=u.oAB({type:Ye}),Ye.\u0275inj=u.cJS({imports:[K,t.ez,Jt,Rt]}),Ye})()},99602:(X,j,h)=>{"use strict";h.d(j,{C0:()=>Dn,E2:()=>Xe,FA:()=>Re,Lv:()=>rn,Mq:()=>Nt,S8:()=>Me,Uu:()=>ze,hl:()=>Ei,nW:()=>cn});var u=h(12687),p=h(98184),x=h(84080),v=h(36895),t=h(94650),T=h(4859),U=h(67376),w=h(3238),P=h(8929),O=h(42654),L=h(36787),N=h(21086),V=h(29521),W=h(40445),tt=h(72986),st=h(1059),ct=h(92198),bt=h(21281),Dt=h(83353),wt=h(37340),qt=h(24006),Jt=h(59549),yt=h(284);const At=["mat-calendar-body",""];function xt(we,on){if(1&we&&(t.TgZ(0,"tr",2)(1,"td",3),t._uU(2),t.qZA()()),2&we){const Q=t.oxw();t.xp6(1),t.Udp("padding-top",Q._cellPadding)("padding-bottom",Q._cellPadding),t.uIk("colspan",Q.numCols),t.xp6(1),t.hij(" ",Q.label," ")}}function pt(we,on){if(1&we&&(t.TgZ(0,"td",3),t._uU(1),t.qZA()),2&we){const Q=t.oxw(2);t.Udp("padding-top",Q._cellPadding)("padding-bottom",Q._cellPadding),t.uIk("colspan",Q._firstRowOffset),t.xp6(1),t.hij(" ",Q._firstRowOffset>=Q.labelMinRequiredCells?Q.label:""," ")}}function Ot(we,on){if(1&we){const Q=t.EpF();t.TgZ(0,"td",7)(1,"button",8),t.NdJ("click",function(J){const He=t.CHM(Q).$implicit,zn=t.oxw(2);return t.KtG(zn._cellClicked(He,J))})("focus",function(J){const He=t.CHM(Q).$implicit,zn=t.oxw(2);return t.KtG(zn._emitActiveDateChange(He,J))}),t.TgZ(2,"div",9),t._uU(3),t.qZA(),t._UZ(4,"div",10),t.qZA()()}if(2&we){const Q=on.$implicit,Et=on.index,J=t.oxw().index,Lt=t.oxw();t.Udp("width",Lt._cellWidth)("padding-top",Lt._cellPadding)("padding-bottom",Lt._cellPadding),t.uIk("data-mat-row",J)("data-mat-col",Et),t.xp6(1),t.ekj("mat-calendar-body-disabled",!Q.enabled)("mat-calendar-body-active",Lt._isActiveCell(J,Et))("mat-calendar-body-range-start",Lt._isRangeStart(Q.compareValue))("mat-calendar-body-range-end",Lt._isRangeEnd(Q.compareValue))("mat-calendar-body-in-range",Lt._isInRange(Q.compareValue))("mat-calendar-body-comparison-bridge-start",Lt._isComparisonBridgeStart(Q.compareValue,J,Et))("mat-calendar-body-comparison-bridge-end",Lt._isComparisonBridgeEnd(Q.compareValue,J,Et))("mat-calendar-body-comparison-start",Lt._isComparisonStart(Q.compareValue))("mat-calendar-body-comparison-end",Lt._isComparisonEnd(Q.compareValue))("mat-calendar-body-in-comparison-range",Lt._isInComparisonRange(Q.compareValue))("mat-calendar-body-preview-start",Lt._isPreviewStart(Q.compareValue))("mat-calendar-body-preview-end",Lt._isPreviewEnd(Q.compareValue))("mat-calendar-body-in-preview",Lt._isInPreview(Q.compareValue)),t.Q6J("ngClass",Q.cssClasses)("tabindex",Lt._isActiveCell(J,Et)?0:-1),t.uIk("aria-label",Q.ariaLabel)("aria-disabled",!Q.enabled||null)("aria-pressed",Lt._isSelected(Q.compareValue))("aria-current",Lt.todayValue===Q.compareValue?"date":null),t.xp6(1),t.ekj("mat-calendar-body-selected",Lt._isSelected(Q.compareValue))("mat-calendar-body-comparison-identical",Lt._isComparisonIdentical(Q.compareValue))("mat-calendar-body-today",Lt.todayValue===Q.compareValue),t.xp6(1),t.hij(" ",Q.displayValue," ")}}function Bt(we,on){if(1&we&&(t.TgZ(0,"tr",4),t.YNc(1,pt,2,6,"td",5),t.YNc(2,Ot,5,47,"td",6),t.qZA()),2&we){const Q=on.$implicit,Et=on.index,J=t.oxw();t.xp6(1),t.Q6J("ngIf",0===Et&&J._firstRowOffset),t.xp6(1),t.Q6J("ngForOf",Q)}}function St(we,on){if(1&we&&(t.TgZ(0,"th",5)(1,"span",6),t._uU(2),t.qZA(),t.TgZ(3,"span",7),t._uU(4),t.qZA()()),2&we){const Q=on.$implicit;t.xp6(2),t.Oqu(Q.long),t.xp6(2),t.Oqu(Q.narrow)}}const ce=["*"];function Vt(we,on){}function ve(we,on){if(1&we){const Q=t.EpF();t.TgZ(0,"mat-month-view",5),t.NdJ("activeDateChange",function(J){t.CHM(Q);const Lt=t.oxw();return t.KtG(Lt.activeDate=J)})("_userSelection",function(J){t.CHM(Q);const Lt=t.oxw();return t.KtG(Lt._dateSelected(J))}),t.qZA()}if(2&we){const Q=t.oxw();t.Q6J("activeDate",Q.activeDate)("selected",Q.selected)("dateFilter",Q.dateFilter)("maxDate",Q.maxDate)("minDate",Q.minDate)("dateClass",Q.dateClass)("comparisonStart",Q.comparisonStart)("comparisonEnd",Q.comparisonEnd)}}function fe(we,on){if(1&we){const Q=t.EpF();t.TgZ(0,"mat-year-view",6),t.NdJ("activeDateChange",function(J){t.CHM(Q);const Lt=t.oxw();return t.KtG(Lt.activeDate=J)})("monthSelected",function(J){t.CHM(Q);const Lt=t.oxw();return t.KtG(Lt._monthSelectedInYearView(J))})("selectedChange",function(J){t.CHM(Q);const Lt=t.oxw();return t.KtG(Lt._goToDateInView(J,"month"))}),t.qZA()}if(2&we){const Q=t.oxw();t.Q6J("activeDate",Q.activeDate)("selected",Q.selected)("dateFilter",Q.dateFilter)("maxDate",Q.maxDate)("minDate",Q.minDate)("dateClass",Q.dateClass)}}function Le(we,on){if(1&we){const Q=t.EpF();t.TgZ(0,"mat-multi-year-view",7),t.NdJ("activeDateChange",function(J){t.CHM(Q);const Lt=t.oxw();return t.KtG(Lt.activeDate=J)})("yearSelected",function(J){t.CHM(Q);const Lt=t.oxw();return t.KtG(Lt._yearSelectedInMultiYearView(J))})("selectedChange",function(J){t.CHM(Q);const Lt=t.oxw();return t.KtG(Lt._goToDateInView(J,"year"))}),t.qZA()}if(2&we){const Q=t.oxw();t.Q6J("activeDate",Q.activeDate)("selected",Q.selected)("dateFilter",Q.dateFilter)("maxDate",Q.maxDate)("minDate",Q.minDate)("dateClass",Q.dateClass)}}function Fe(we,on){}const Ge=["button"];function Gt(we,on){1&we&&(t.O4$(),t.TgZ(0,"svg",3),t._UZ(1,"path",4),t.qZA())}const Te=[[["","matDatepickerToggleIcon",""]]],ne=["[matDatepickerToggleIcon]"];let Me=(()=>{class we{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(Q,Et){return`${Q} \u2013 ${Et}`}formatYearRangeLabel(Q,Et){return`${Q} to ${Et}`}}return we.\u0275fac=function(Q){return new(Q||we)},we.\u0275prov=t.Yz7({token:we,factory:we.\u0275fac,providedIn:"root"}),we})();class en{constructor(on,Q,Et,J,Lt={},He=on,zn){this.value=on,this.displayValue=Q,this.ariaLabel=Et,this.enabled=J,this.cssClasses=Lt,this.compareValue=He,this.rawValue=zn}}let _n=(()=>{class we{constructor(Q,Et){this._elementRef=Q,this._ngZone=Et,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 Lt=this._getCellFromElement(J.target);Lt&&this._ngZone.run(()=>this.previewChange.emit({value:Lt.enabled?Lt: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}))},Et.runOutsideAngular(()=>{const J=Q.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(Q,Et){Q.enabled&&this.selectedValueChange.emit({value:Q.value,event:Et})}_emitActiveDateChange(Q,Et){Q.enabled&&this.activeDateChange.emit({value:Q.value,event:Et})}_isSelected(Q){return this.startValue===Q||this.endValue===Q}ngOnChanges(Q){const Et=Q.numCols,{rows:J,numCols:Lt}=this;(Q.rows||Et)&&(this._firstRowOffset=J&&J.length&&J[0].length?Lt-J[0].length:0),(Q.cellAspectRatio||Et||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/Lt+"%"),(Et||!this._cellWidth)&&(this._cellWidth=100/Lt+"%")}ngOnDestroy(){const Q=this._elementRef.nativeElement;Q.removeEventListener("mouseenter",this._enterHandler,!0),Q.removeEventListener("focus",this._enterHandler,!0),Q.removeEventListener("mouseleave",this._leaveHandler,!0),Q.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(Q,Et){let J=Q*this.numCols+Et;return Q&&(J-=this._firstRowOffset),J==this.activeCell}_focusActiveCell(Q=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,tt.q)(1)).subscribe(()=>{setTimeout(()=>{const Et=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");Et&&(Q||(this._skipNextFocus=!0),Et.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(Q){return vn(Q,this.startValue,this.endValue)}_isRangeEnd(Q){return ke(Q,this.startValue,this.endValue)}_isInRange(Q){return un(Q,this.startValue,this.endValue,this.isRange)}_isComparisonStart(Q){return vn(Q,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(Q,Et,J){if(!this._isComparisonStart(Q)||this._isRangeStart(Q)||!this._isInRange(Q))return!1;let Lt=this.rows[Et][J-1];if(!Lt){const He=this.rows[Et-1];Lt=He&&He[He.length-1]}return Lt&&!this._isRangeEnd(Lt.compareValue)}_isComparisonBridgeEnd(Q,Et,J){if(!this._isComparisonEnd(Q)||this._isRangeEnd(Q)||!this._isInRange(Q))return!1;let Lt=this.rows[Et][J+1];if(!Lt){const He=this.rows[Et+1];Lt=He&&He[0]}return Lt&&!this._isRangeStart(Lt.compareValue)}_isComparisonEnd(Q){return ke(Q,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(Q){return un(Q,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(Q){return this.comparisonStart===this.comparisonEnd&&Q===this.comparisonStart}_isPreviewStart(Q){return vn(Q,this.previewStart,this.previewEnd)}_isPreviewEnd(Q){return ke(Q,this.previewStart,this.previewEnd)}_isInPreview(Q){return un(Q,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(Q){let Et;if(xe(Q)?Et=Q:xe(Q.parentNode)&&(Et=Q.parentNode),Et){const J=Et.getAttribute("data-mat-row"),Lt=Et.getAttribute("data-mat-col");if(J&&Lt)return this.rows[parseInt(J)][parseInt(Lt)]}return null}}return we.\u0275fac=function(Q){return new(Q||we)(t.Y36(t.SBq),t.Y36(t.R0b))},we.\u0275cmp=t.Xpm({type:we,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:At,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(Q,Et){1&Q&&(t.YNc(0,xt,3,6,"tr",0),t.YNc(1,Bt,3,2,"tr",1)),2&Q&&(t.Q6J("ngIf",Et._firstRowOffset=on&&we===Q}function un(we,on,Q,Et){return Et&&null!==on&&null!==Q&&on!==Q&&we>=on&&we<=Q}class Dn{constructor(on,Q){this.start=on,this.end=Q}}let ii=(()=>{class we{constructor(Q,Et){this.selection=Q,this._adapter=Et,this._selectionChanged=new P.xQ,this.selectionChanged=this._selectionChanged,this.selection=Q}updateSelection(Q,Et){const J=this.selection;this.selection=Q,this._selectionChanged.next({selection:Q,source:Et,oldValue:J})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(Q){return this._adapter.isDateInstance(Q)&&this._adapter.isValid(Q)}}return we.\u0275fac=function(Q){t.$Z()},we.\u0275prov=t.Yz7({token:we,factory:we.\u0275fac}),we})(),_i=(()=>{class we extends ii{constructor(Q){super(null,Q)}add(Q){super.updateSelection(Q,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const Q=new we(this._adapter);return Q.updateSelection(this.selection,this),Q}}return we.\u0275fac=function(Q){return new(Q||we)(t.LFG(w._A))},we.\u0275prov=t.Yz7({token:we,factory:we.\u0275fac}),we})();const te={provide:ii,deps:[[new t.FiY,new t.tp0,ii],w._A],useFactory:function Qe(we,on){return we||new _i(on)}},Tt=new t.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let hn=(()=>{class we{constructor(Q,Et,J,Lt,He){this._changeDetectorRef=Q,this._dateFormats=Et,this._dateAdapter=J,this._dir=Lt,this._rangeStrategy=He,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(Q){const Et=this._activeDate,J=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(J,this.minDate,this.maxDate),this._hasSameMonthAndYear(Et,this._activeDate)||this._init()}get selected(){return this._selected}set selected(Q){this._selected=Q instanceof Dn?Q:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(Q){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q))}get maxDate(){return this._maxDate}set maxDate(Q){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,st.O)(null)).subscribe(()=>this._init())}ngOnChanges(Q){const Et=Q.comparisonStart||Q.comparisonEnd;Et&&!Et.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(Q){const Et=Q.value,J=this._getDateFromDayOfMonth(Et);let Lt,He;this._selected instanceof Dn?(Lt=this._getDateInCurrentMonth(this._selected.start),He=this._getDateInCurrentMonth(this._selected.end)):Lt=He=this._getDateInCurrentMonth(this._selected),(Lt!==Et||He!==Et)&&this.selectedChange.emit(J),this._userSelection.emit({value:J,event:Q.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_updateActiveDate(Q){const J=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(Q.value),this._dateAdapter.compareDate(J,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(Q){const Et=this._activeDate,J=this._isRtl();switch(Q.keyCode){case V.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,J?1:-1);break;case V.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,J?-1:1);break;case V.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case V.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case V.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case V.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case V.Ku:this.activeDate=Q.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case V.VM:this.activeDate=Q.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case V.K5:case V.L_:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&Q.preventDefault());case V.hY:return void(null!=this._previewEnd&&!(0,V.Vb)(Q)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:Q}),Q.preventDefault(),Q.stopPropagation()));default:return}this._dateAdapter.compareDate(Et,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),Q.preventDefault()}_handleCalendarBodyKeyup(Q){(Q.keyCode===V.L_||Q.keyCode===V.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:Q}),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 Q=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(Q)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(Q){this._matCalendarBody._focusActiveCell(Q)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:Q,value:Et}){if(this._rangeStrategy){const Lt=this._rangeStrategy.createPreview(Et?Et.rawValue:null,this.selected,Q);this._previewStart=this._getCellCompareValue(Lt.start),this._previewEnd=this._getCellCompareValue(Lt.end),this._changeDetectorRef.detectChanges()}}_getDateFromDayOfMonth(Q){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),Q)}_initWeekdays(){const Q=this._dateAdapter.getFirstDayOfWeek(),Et=this._dateAdapter.getDayOfWeekNames("narrow");let Lt=this._dateAdapter.getDayOfWeekNames("long").map((He,zn)=>({long:He,narrow:Et[zn]}));this._weekdays=Lt.slice(Q).concat(Lt.slice(0,Q))}_createWeekCells(){const Q=this._dateAdapter.getNumDaysInMonth(this.activeDate),Et=this._dateAdapter.getDateNames();this._weeks=[[]];for(let J=0,Lt=this._firstWeekOffset;J=0)&&(!this.maxDate||this._dateAdapter.compareDate(Q,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(Q))}_getDateInCurrentMonth(Q){return Q&&this._hasSameMonthAndYear(Q,this.activeDate)?this._dateAdapter.getDate(Q):null}_hasSameMonthAndYear(Q,Et){return!(!Q||!Et||this._dateAdapter.getMonth(Q)!=this._dateAdapter.getMonth(Et)||this._dateAdapter.getYear(Q)!=this._dateAdapter.getYear(Et))}_getCellCompareValue(Q){if(Q){const Et=this._dateAdapter.getYear(Q),J=this._dateAdapter.getMonth(Q),Lt=this._dateAdapter.getDate(Q);return new Date(Et,J,Lt).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(Q){Q instanceof Dn?(this._rangeStart=this._getCellCompareValue(Q.start),this._rangeEnd=this._getCellCompareValue(Q.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(Q),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(Q){return!this.dateFilter||this.dateFilter(Q)}}return we.\u0275fac=function(Q){return new(Q||we)(t.Y36(t.sBO),t.Y36(w.sG,8),t.Y36(w._A,8),t.Y36(W.Is,8),t.Y36(Tt,8))},we.\u0275cmp=t.Xpm({type:we,selectors:[["mat-month-view"]],viewQuery:function(Q,Et){if(1&Q&&t.Gf(_n,5),2&Q){let J;t.iGM(J=t.CRH())&&(Et._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(Q,Et){1&Q&&(t.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),t.YNc(3,St,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(Lt){return Et._dateSelected(Lt)})("activeDateChange",function(Lt){return Et._updateActiveDate(Lt)})("previewChange",function(Lt){return Et._previewChanged(Lt)})("keyup",function(Lt){return Et._handleCalendarBodyKeyup(Lt)})("keydown",function(Lt){return Et._handleCalendarBodyKeydown(Lt)}),t.qZA()()),2&Q&&(t.xp6(3),t.Q6J("ngForOf",Et._weekdays),t.xp6(3),t.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:[v.sg,_n],encapsulation:2,changeDetection:0}),we})(),Di=(()=>{class we{constructor(Q,Et,J){this._changeDetectorRef=Q,this._dateAdapter=Et,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(Q){let Et=this._activeDate;const J=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(J,this.minDate,this.maxDate),bo(this._dateAdapter,Et,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(Q){this._selected=Q instanceof Dn?Q:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q)),this._setSelectedYear(Q)}get minDate(){return this._minDate}set minDate(Q){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q))}get maxDate(){return this._maxDate}set maxDate(Q){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,st.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)-hi(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let J=0,Lt=[];J<24;J++)Lt.push(Et+J),4==Lt.length&&(this._years.push(Lt.map(He=>this._createCellForYear(He))),Lt=[]);this._changeDetectorRef.markForCheck()}_yearSelected(Q){const Et=Q.value,J=this._dateAdapter.createDate(Et,0,1),Lt=this._getDateFromYear(Et);this.yearSelected.emit(J),this.selectedChange.emit(Lt)}_updateActiveDate(Q){const J=this._activeDate;this.activeDate=this._getDateFromYear(Q.value),this._dateAdapter.compareDate(J,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(Q){const Et=this._activeDate,J=this._isRtl();switch(Q.keyCode){case V.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,J?1:-1);break;case V.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,J?-1:1);break;case V.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case V.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case V.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-hi(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case V.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-hi(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case V.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Q.altKey?-240:-24);break;case V.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Q.altKey?240:24);break;case V.K5:case V.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Et,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),Q.preventDefault()}_handleCalendarBodyKeyup(Q){(Q.keyCode===V.L_||Q.keyCode===V.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:Q}),this._selectionKeyPressed=!1)}_getActiveCell(){return hi(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(Q){const Et=this._dateAdapter.getMonth(this.activeDate),J=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(Q,Et,1));return this._dateAdapter.createDate(Q,Et,Math.min(this._dateAdapter.getDate(this.activeDate),J))}_createCellForYear(Q){const Et=this._dateAdapter.createDate(Q,0,1),J=this._dateAdapter.getYearName(Et),Lt=this.dateClass?this.dateClass(Et,"multi-year"):void 0;return new en(Q,J,J,this._shouldEnableYear(Q),Lt)}_shouldEnableYear(Q){if(null==Q||this.maxDate&&Q>this._dateAdapter.getYear(this.maxDate)||this.minDate&&Q{class we{constructor(Q,Et,J,Lt){this._changeDetectorRef=Q,this._dateFormats=Et,this._dateAdapter=J,this._dir=Lt,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(Q){let Et=this._activeDate;const J=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(J,this.minDate,this.maxDate),this._dateAdapter.getYear(Et)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(Q){this._selected=Q instanceof Dn?Q:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q)),this._setSelectedMonth(Q)}get minDate(){return this._minDate}set minDate(Q){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q))}get maxDate(){return this._maxDate}set maxDate(Q){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,st.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(Q){const Et=Q.value,J=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Et,1);this.monthSelected.emit(J);const Lt=this._getDateFromMonth(Et);this.selectedChange.emit(Lt)}_updateActiveDate(Q){const J=this._activeDate;this.activeDate=this._getDateFromMonth(Q.value),this._dateAdapter.compareDate(J,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(Q){const Et=this._activeDate,J=this._isRtl();switch(Q.keyCode){case V.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,J?1:-1);break;case V.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,J?-1:1);break;case V.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case V.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case V.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case V.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case V.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Q.altKey?-10:-1);break;case V.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Q.altKey?10:1);break;case V.K5:case V.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Et,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),Q.preventDefault()}_handleCalendarBodyKeyup(Q){(Q.keyCode===V.L_||Q.keyCode===V.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:Q}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let Q=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(Et=>Et.map(J=>this._createCellForMonth(J,Q[J]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(Q){return Q&&this._dateAdapter.getYear(Q)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(Q):null}_getDateFromMonth(Q){const Et=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Q,1),J=this._dateAdapter.getNumDaysInMonth(Et);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Q,Math.min(this._dateAdapter.getDate(this.activeDate),J))}_createCellForMonth(Q,Et){const J=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Q,1),Lt=this._dateAdapter.format(J,this._dateFormats.display.monthYearA11yLabel),He=this.dateClass?this.dateClass(J,"year"):void 0;return new en(Q,Et.toLocaleUpperCase(),Lt,this._shouldEnableMonth(Q),He)}_shouldEnableMonth(Q){const Et=this._dateAdapter.getYear(this.activeDate);if(null==Q||this._isYearAndMonthAfterMaxDate(Et,Q)||this._isYearAndMonthBeforeMinDate(Et,Q))return!1;if(!this.dateFilter)return!0;for(let Lt=this._dateAdapter.createDate(Et,Q,1);this._dateAdapter.getMonth(Lt)==Q;Lt=this._dateAdapter.addCalendarDays(Lt,1))if(this.dateFilter(Lt))return!0;return!1}_isYearAndMonthAfterMaxDate(Q,Et){if(this.maxDate){const J=this._dateAdapter.getYear(this.maxDate),Lt=this._dateAdapter.getMonth(this.maxDate);return Q>J||Q===J&&Et>Lt}return!1}_isYearAndMonthBeforeMinDate(Q,Et){if(this.minDate){const J=this._dateAdapter.getYear(this.minDate),Lt=this._dateAdapter.getMonth(this.minDate);return Q{class we{constructor(Q,Et,J,Lt,He){this._intl=Q,this.calendar=Et,this._dateAdapter=J,this._dateFormats=Lt,this._buttonDescriptionId="mat-calendar-button-"+gn++,this.calendar.stateChanges.subscribe(()=>He.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)-hi(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),J=Et+24-1,Lt=this._dateAdapter.getYearName(this._dateAdapter.createDate(Et,0,1)),He=this._dateAdapter.getYearName(this._dateAdapter.createDate(J,0,1));return this._intl.formatYearRange(Lt,He)}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(Q,Et){return"month"==this.calendar.currentView?this._dateAdapter.getYear(Q)==this._dateAdapter.getYear(Et)&&this._dateAdapter.getMonth(Q)==this._dateAdapter.getMonth(Et):"year"==this.calendar.currentView?this._dateAdapter.getYear(Q)==this._dateAdapter.getYear(Et):bo(this._dateAdapter,Q,Et,this.calendar.minDate,this.calendar.maxDate)}}return we.\u0275fac=function(Q){return new(Q||we)(t.Y36(Me),t.Y36((0,t.Gpc)(()=>Ee)),t.Y36(w._A,8),t.Y36(w.sG,8),t.Y36(t.sBO))},we.\u0275cmp=t.Xpm({type:we,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:ce,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(Q,Et){1&Q&&(t.F$t(),t.TgZ(0,"div",0)(1,"div",1)(2,"button",2),t.NdJ("click",function(){return Et.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 Et.previousClicked()}),t.qZA(),t.TgZ(10,"button",7),t.NdJ("click",function(){return Et.nextClicked()}),t.qZA()()()),2&Q&&(t.xp6(2),t.uIk("aria-label",Et.periodButtonLabel)("aria-describedby",Et._buttonDescriptionId),t.xp6(1),t.uIk("id",Et._buttonDescriptionId),t.xp6(1),t.Oqu(Et.periodButtonText),t.xp6(1),t.ekj("mat-calendar-invert","month"!==Et.calendar.currentView),t.xp6(4),t.Q6J("disabled",!Et.previousEnabled()),t.uIk("aria-label",Et.prevButtonLabel),t.xp6(1),t.Q6J("disabled",!Et.nextEnabled()),t.uIk("aria-label",Et.nextButtonLabel))},dependencies:[T.lW],encapsulation:2,changeDetection:0}),we})(),Ee=(()=>{class we{constructor(Q,Et,J,Lt){this._dateAdapter=Et,this._dateFormats=J,this._changeDetectorRef=Lt,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=Q.changes.subscribe(()=>{Lt.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(Q){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q))}get selected(){return this._selected}set selected(Q){this._selected=Q instanceof Dn?Q:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q))}get minDate(){return this._minDate}set minDate(Q){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q))}get maxDate(){return this._maxDate}set maxDate(Q){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q))}get activeDate(){return this._clampedActiveDate}set activeDate(Q){this._clampedActiveDate=this._dateAdapter.clampDate(Q,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(Q){const Et=this._currentView!==Q?Q:null;this._currentView=Q,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),Et&&this.viewChanged.emit(Et)}ngAfterContentInit(){this._calendarHeaderPortal=new x.C5(this.headerComponent||Ye),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(Q){const Et=Q.minDate&&!this._dateAdapter.sameDate(Q.minDate.previousValue,Q.minDate.currentValue)?Q.minDate:void 0,J=Q.maxDate&&!this._dateAdapter.sameDate(Q.maxDate.previousValue,Q.maxDate.currentValue)?Q.maxDate:void 0,Lt=Et||J||Q.dateFilter;if(Lt&&!Lt.firstChange){const He=this._getCurrentViewComponent();He&&(this._changeDetectorRef.detectChanges(),He._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(Q){const Et=Q.value;(this.selected instanceof Dn||Et&&!this._dateAdapter.sameDate(Et,this.selected))&&this.selectedChange.emit(Et),this._userSelection.emit(Q)}_yearSelectedInMultiYearView(Q){this.yearSelected.emit(Q)}_monthSelectedInYearView(Q){this.monthSelected.emit(Q)}_goToDateInView(Q,Et){this.activeDate=Q,this.currentView=Et}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return we.\u0275fac=function(Q){return new(Q||we)(t.Y36(Me),t.Y36(w._A,8),t.Y36(w.sG,8),t.Y36(t.sBO))},we.\u0275cmp=t.Xpm({type:we,selectors:[["mat-calendar"]],viewQuery:function(Q,Et){if(1&Q&&(t.Gf(hn,5),t.Gf(Je,5),t.Gf(Di,5)),2&Q){let J;t.iGM(J=t.CRH())&&(Et.monthView=J.first),t.iGM(J=t.CRH())&&(Et.yearView=J.first),t.iGM(J=t.CRH())&&(Et.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([te]),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(Q,Et){1&Q&&(t.YNc(0,Vt,0,0,"ng-template",0),t.TgZ(1,"div",1),t.YNc(2,ve,1,8,"mat-month-view",2),t.YNc(3,fe,1,6,"mat-year-view",3),t.YNc(4,Le,1,6,"mat-multi-year-view",4),t.qZA()),2&Q&&(t.Q6J("cdkPortalOutlet",Et._calendarHeaderPortal),t.xp6(1),t.Q6J("ngSwitch",Et.currentView),t.xp6(1),t.Q6J("ngSwitchCase","month"),t.xp6(1),t.Q6J("ngSwitchCase","year"),t.xp6(1),t.Q6J("ngSwitchCase","multi-year"))},dependencies:[v.RF,v.n9,u.kH,x.Pl,hn,Je,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}),we})();const Xe={transformPanel:(0,wt.X$)("transformPanel",[(0,wt.eR)("void => enter-dropdown",(0,wt.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,wt.F4)([(0,wt.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,wt.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,wt.eR)("void => enter-dialog",(0,wt.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,wt.F4)([(0,wt.oB)({opacity:0,transform:"scale(0.7)"}),(0,wt.oB)({transform:"none",opacity:1})]))),(0,wt.eR)("* => void",(0,wt.jt)("100ms linear",(0,wt.oB)({opacity:0})))]),fadeInCalendar:(0,wt.X$)("fadeInCalendar",[(0,wt.SB)("void",(0,wt.oB)({opacity:0})),(0,wt.SB)("enter",(0,wt.oB)({opacity:1})),(0,wt.eR)("void => *",(0,wt.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let se=0;const ze=new t.OlP("mat-datepicker-scroll-strategy"),rn={provide:ze,deps:[p.aV],useFactory:function ie(we){return()=>we.scrollStrategies.reposition()}},fn=(0,w.pj)(class{constructor(we){this._elementRef=we}});let sn=(()=>{class we extends fn{constructor(Q,Et,J,Lt,He,zn){super(Q),this._changeDetectorRef=Et,this._globalModel=J,this._dateAdapter=Lt,this._rangeSelectionStrategy=He,this._subscriptions=new O.w,this._animationDone=new P.xQ,this._actionsPortal=null,this._closeButtonText=zn.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(Q){const Et=this._model.selection,J=Q.value,Lt=Et instanceof Dn;if(Lt&&this._rangeSelectionStrategy){const He=this._rangeSelectionStrategy.selectionFinished(J,Et,Q.event);this._model.updateSelection(He,this)}else J&&(Lt||!this._dateAdapter.sameDate(J,Et))&&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(Q,Et){this._model=Q?this._globalModel.clone():this._globalModel,this._actionsPortal=Q,Et&&this._changeDetectorRef.detectChanges()}}return we.\u0275fac=function(Q){return new(Q||we)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(ii),t.Y36(w._A),t.Y36(Tt,8),t.Y36(Me))},we.\u0275cmp=t.Xpm({type:we,selectors:[["mat-datepicker-content"]],viewQuery:function(Q,Et){if(1&Q&&t.Gf(Ee,5),2&Q){let J;t.iGM(J=t.CRH())&&(Et._calendar=J.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(Q,Et){1&Q&&t.WFA("@transformPanel.done",function(){return Et._animationDone.next()}),2&Q&&(t.d8E("@transformPanel",Et._animationState),t.ekj("mat-datepicker-content-touch",Et.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(Q,Et){if(1&Q&&(t.TgZ(0,"div",0)(1,"mat-calendar",1),t.NdJ("yearSelected",function(Lt){return Et.datepicker._selectYear(Lt)})("monthSelected",function(Lt){return Et.datepicker._selectMonth(Lt)})("viewChanged",function(Lt){return Et.datepicker._viewChanged(Lt)})("_userSelection",function(Lt){return Et._handleUserSelection(Lt)}),t.qZA(),t.YNc(2,Fe,0,0,"ng-template",2),t.TgZ(3,"button",3),t.NdJ("focus",function(){return Et._closeButtonFocused=!0})("blur",function(){return Et._closeButtonFocused=!1})("click",function(){return Et.datepicker.close()}),t._uU(4),t.qZA()()),2&Q){let J;t.ekj("mat-datepicker-content-container-with-custom-header",Et.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",Et._actionsPortal),t.uIk("aria-modal",!0)("aria-labelledby",null!==(J=Et._dialogLabelId)&&void 0!==J?J:void 0),t.xp6(1),t.Q6J("id",Et.datepicker.id)("ngClass",Et.datepicker.panelClass)("startAt",Et.datepicker.startAt)("startView",Et.datepicker.startView)("minDate",Et.datepicker._getMinDate())("maxDate",Et.datepicker._getMaxDate())("dateFilter",Et.datepicker._getDateFilter())("headerComponent",Et.datepicker.calendarHeaderComponent)("selected",Et._getSelected())("dateClass",Et.datepicker.dateClass)("comparisonStart",Et.comparisonStart)("comparisonEnd",Et.comparisonEnd)("@fadeInCalendar","enter"),t.xp6(1),t.Q6J("cdkPortalOutlet",Et._actionsPortal),t.xp6(1),t.ekj("cdk-visually-hidden",!Et._closeButtonFocused),t.Q6J("color",Et.color||"primary"),t.xp6(1),t.Oqu(Et._closeButtonText)}},dependencies:[v.mk,T.lW,u.mK,x.Pl,Ee],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:[Xe.transformPanel,Xe.fadeInCalendar]},changeDetection:0}),we})(),ge=(()=>{class we{constructor(Q,Et,J,Lt,He,zn,Ki){this._overlay=Q,this._ngZone=Et,this._viewContainerRef=J,this._dateAdapter=He,this._dir=zn,this._model=Ki,this._inputStateChanges=O.w.EMPTY,this._document=(0,t.f3M)(v.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-"+se++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new P.xQ,this._scrollStrategy=Lt}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(Q){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(Q){this._color=Q}get touchUi(){return this._touchUi}set touchUi(Q){this._touchUi=(0,bt.Ig)(Q)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(Q){const Et=(0,bt.Ig)(Q);Et!==this._disabled&&(this._disabled=Et,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(Q){this._restoreFocus=(0,bt.Ig)(Q)}get panelClass(){return this._panelClass}set panelClass(Q){this._panelClass=(0,bt.du)(Q)}get opened(){return this._opened}set opened(Q){(0,bt.Ig)(Q)?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(Q){const Et=Q.xPosition||Q.yPosition;if(Et&&!Et.firstChange&&this._overlayRef){const J=this._overlayRef.getConfig().positionStrategy;J instanceof p._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(Q){this._model.add(Q)}_selectYear(Q){this.yearSelected.emit(Q)}_selectMonth(Q){this.monthSelected.emit(Q)}_viewChanged(Q){this.viewChanged.emit(Q)}registerInput(Q){return this._inputStateChanges.unsubscribe(),this.datepickerInput=Q,this._inputStateChanges=Q.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(Q){this._actionsPortal=Q,this._componentRef?.instance._assignActions(Q,!0)}removeActions(Q){Q===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 Q=this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus,Et=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){const{instance:J,location:Lt}=this._componentRef;J._startExitAnimation(),J._animationDone.pipe((0,tt.q)(1)).subscribe(()=>{const He=this._document.activeElement;Q&&(!He||He===this._document.activeElement||Lt.nativeElement.contains(He))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}Q?setTimeout(Et):Et()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(Q){Q.datepicker=this,Q.color=this.color,Q._dialogLabelId=this.datepickerInput.getOverlayLabelId(),Q._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const Q=this.touchUi,Et=new x.C5(sn,this._viewContainerRef),J=this._overlayRef=this._overlay.create(new p.X_({positionStrategy:Q?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[Q?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:Q?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(Q?"dialog":"popup")}));this._getCloseStream(J).subscribe(Lt=>{Lt&&Lt.preventDefault(),this.close()}),J.keydownEvents().subscribe(Lt=>{const He=Lt.keyCode;(He===V.LH||He===V.JH||He===V.oh||He===V.SV||He===V.Ku||He===V.VM)&&Lt.preventDefault()}),this._componentRef=J.attach(Et),this._forwardContentValues(this._componentRef.instance),Q||this._ngZone.onStable.pipe((0,tt.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 Q=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(Q)}_setConnectedPositions(Q){const Et="end"===this.xPosition?"end":"start",J="start"===Et?"end":"start",Lt="above"===this.yPosition?"bottom":"top",He="top"===Lt?"bottom":"top";return Q.withPositions([{originX:Et,originY:He,overlayX:Et,overlayY:Lt},{originX:Et,originY:Lt,overlayX:Et,overlayY:He},{originX:J,originY:He,overlayX:J,overlayY:Lt},{originX:J,originY:Lt,overlayX:J,overlayY:He}])}_getCloseStream(Q){return(0,L.T)(Q.backdropClick(),Q.detachments(),Q.keydownEvents().pipe((0,ct.h)(Et=>Et.keyCode===V.hY&&!(0,V.Vb)(Et)||this.datepickerInput&&(0,V.Vb)(Et,"altKey")&&Et.keyCode===V.LH)))}}return we.\u0275fac=function(Q){return new(Q||we)(t.Y36(p.aV),t.Y36(t.R0b),t.Y36(t.s_b),t.Y36(ze),t.Y36(w._A,8),t.Y36(W.Is,8),t.Y36(ii))},we.\u0275dir=t.lG2({type:we,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]}),we})(),Nt=(()=>{class we extends ge{}return we.\u0275fac=function(){let on;return function(Et){return(on||(on=t.n5z(we)))(Et||we)}}(),we.\u0275cmp=t.Xpm({type:we,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[t._Bn([te,{provide:ge,useExisting:we}]),t.qOj],decls:0,vars:0,template:function(Q,Et){},encapsulation:2,changeDetection:0}),we})();class Se{constructor(on,Q){this.target=on,this.targetElement=Q,this.value=this.target.value}}let zt=(()=>{class we{constructor(Q,Et,J){this._elementRef=Q,this._dateAdapter=Et,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=Lt=>{const He=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Lt.value));return!He||this._matchesFilter(He)?null:{matDatepickerFilter:!0}},this._minValidator=Lt=>{const He=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Lt.value)),zn=this._getMinDate();return!zn||!He||this._dateAdapter.compareDate(zn,He)<=0?null:{matDatepickerMin:{min:zn,actual:He}}},this._maxValidator=Lt=>{const He=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Lt.value)),zn=this._getMaxDate();return!zn||!He||this._dateAdapter.compareDate(zn,He)>=0?null:{matDatepickerMax:{max:zn,actual:He}}},this._lastValueValid=!1,this._localeSubscription=Et.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(Q){this._assignValueProgrammatically(Q)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(Q){const Et=(0,bt.Ig)(Q),J=this._elementRef.nativeElement;this._disabled!==Et&&(this._disabled=Et,this.stateChanges.next(void 0)),Et&&this._isInitialized&&J.blur&&J.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(Q){this._model=Q,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(Et=>{if(this._shouldHandleChangeEvent(Et)){const J=this._getValueFromModel(Et.selection);this._lastValueValid=this._isValidValue(J),this._cvaOnChange(J),this._onTouched(),this._formatValue(J),this.dateInput.emit(new Se(this,this._elementRef.nativeElement)),this.dateChange.emit(new Se(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(Q){(function Ae(we,on){const Q=Object.keys(we);for(let Et of Q){const{previousValue:J,currentValue:Lt}=we[Et];if(!on.isDateInstance(J)||!on.isDateInstance(Lt))return!0;if(!on.sameDate(J,Lt))return!0}return!1})(Q,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(Q){this._validatorOnChange=Q}validate(Q){return this._validator?this._validator(Q):null}writeValue(Q){this._assignValueProgrammatically(Q)}registerOnChange(Q){this._cvaOnChange=Q}registerOnTouched(Q){this._onTouched=Q}setDisabledState(Q){this.disabled=Q}_onKeydown(Q){Q.altKey&&Q.keyCode===V.JH&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),Q.preventDefault())}_onInput(Q){const Et=this._lastValueValid;let J=this._dateAdapter.parse(Q,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(J),J=this._dateAdapter.getValidDateOrNull(J);const Lt=!this._dateAdapter.sameDate(J,this.value);!J||Lt?this._cvaOnChange(J):(Q&&!this.value&&this._cvaOnChange(J),Et!==this._lastValueValid&&this._validatorOnChange()),Lt&&(this._assignValue(J),this.dateInput.emit(new Se(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Se(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(Q){this._elementRef.nativeElement.value=null!=Q?this._dateAdapter.format(Q,this._dateFormats.display.dateInput):""}_assignValue(Q){this._model?(this._assignValueToModel(Q),this._pendingValue=null):this._pendingValue=Q}_isValidValue(Q){return!Q||this._dateAdapter.isValid(Q)}_parentDisabled(){return!1}_assignValueProgrammatically(Q){Q=this._dateAdapter.deserialize(Q),this._lastValueValid=this._isValidValue(Q),Q=this._dateAdapter.getValidDateOrNull(Q),this._assignValue(Q),this._formatValue(Q)}_matchesFilter(Q){const Et=this._getDateFilter();return!Et||Et(Q)}}return we.\u0275fac=function(Q){return new(Q||we)(t.Y36(t.SBq),t.Y36(w._A,8),t.Y36(w.sG,8))},we.\u0275dir=t.lG2({type:we,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[t.TTD]}),we})();const Ie={provide:qt.JU,useExisting:(0,t.Gpc)(()=>Ei),multi:!0},Sn={provide:qt.Cf,useExisting:(0,t.Gpc)(()=>Ei),multi:!0};let Ei=(()=>{class we extends zt{constructor(Q,Et,J,Lt){super(Q,Et,J),this._formField=Lt,this._closedSubscription=O.w.EMPTY,this._validator=qt.kI.compose(super._getValidators())}set matDatepicker(Q){Q&&(this._datepicker=Q,this._closedSubscription=Q.closedStream.subscribe(()=>this._onTouched()),this._registerModel(Q.registerInput(this)))}get min(){return this._min}set min(Q){const Et=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q));this._dateAdapter.sameDate(Et,this._min)||(this._min=Et,this._validatorOnChange())}get max(){return this._max}set max(Q){const Et=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q));this._dateAdapter.sameDate(Et,this._max)||(this._max=Et,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(Q){const Et=this._matchesFilter(this.value);this._dateFilter=Q,this._matchesFilter(this.value)!==Et&&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(Q){return Q}_assignValueToModel(Q){this._model&&this._model.updateSelection(Q,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(Q){return Q.source!==this}}return we.\u0275fac=function(Q){return new(Q||we)(t.Y36(t.SBq),t.Y36(w._A,8),t.Y36(w.sG,8),t.Y36(Jt.G_,8))},we.\u0275dir=t.lG2({type:we,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(Q,Et){1&Q&&t.NdJ("input",function(Lt){return Et._onInput(Lt.target.value)})("change",function(){return Et._onChange()})("blur",function(){return Et._onBlur()})("keydown",function(Lt){return Et._onKeydown(Lt)}),2&Q&&(t.Ikx("disabled",Et.disabled),t.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)("data-mat-calendar",Et._datepicker?Et._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[t._Bn([Ie,Sn,{provide:yt.Jk,useExisting:we}]),t.qOj]}),we})(),Vi=(()=>{class we{}return we.\u0275fac=function(Q){return new(Q||we)},we.\u0275dir=t.lG2({type:we,selectors:[["","matDatepickerToggleIcon",""]]}),we})(),cn=(()=>{class we{constructor(Q,Et,J){this._intl=Q,this._changeDetectorRef=Et,this._stateChanges=O.w.EMPTY;const Lt=Number(J);this.tabIndex=Lt||0===Lt?Lt:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(Q){this._disabled=(0,bt.Ig)(Q)}ngOnChanges(Q){Q.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(Q){this.datepicker&&!this.disabled&&(this.datepicker.open(),Q.stopPropagation())}_watchStateChanges(){const Q=this.datepicker?this.datepicker.stateChanges:(0,N.of)(),Et=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,Q,Et,J).subscribe(()=>this._changeDetectorRef.markForCheck())}}return we.\u0275fac=function(Q){return new(Q||we)(t.Y36(Me),t.Y36(t.sBO),t.$8M("tabindex"))},we.\u0275cmp=t.Xpm({type:we,selectors:[["mat-datepicker-toggle"]],contentQueries:function(Q,Et,J){if(1&Q&&t.Suo(J,Vi,5),2&Q){let Lt;t.iGM(Lt=t.CRH())&&(Et._customIcon=Lt.first)}},viewQuery:function(Q,Et){if(1&Q&&t.Gf(Ge,5),2&Q){let J;t.iGM(J=t.CRH())&&(Et._button=J.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(Q,Et){1&Q&&t.NdJ("click",function(Lt){return Et._open(Lt)}),2&Q&&(t.uIk("tabindex",null)("data-mat-calendar",Et.datepicker?Et.datepicker.id:null),t.ekj("mat-datepicker-toggle-active",Et.datepicker&&Et.datepicker.opened)("mat-accent",Et.datepicker&&"accent"===Et.datepicker.color)("mat-warn",Et.datepicker&&"warn"===Et.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[t.TTD],ngContentSelectors:ne,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(Q,Et){1&Q&&(t.F$t(Te),t.TgZ(0,"button",0,1),t.YNc(2,Gt,2,0,"svg",2),t.Hsn(3),t.qZA()),2&Q&&(t.Q6J("disabled",Et.disabled)("disableRipple",Et.disableRipple),t.uIk("aria-haspopup",Et.datepicker?"dialog":null)("aria-label",Et.ariaLabel||Et._intl.openCalendarLabel)("tabindex",Et.disabled?-1:Et.tabIndex),t.xp6(2),t.Q6J("ngIf",!Et._customIcon))},dependencies:[v.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}),we})(),Re=(()=>{class we{}return we.\u0275fac=function(Q){return new(Q||we)},we.\u0275mod=t.oAB({type:we}),we.\u0275inj=t.cJS({providers:[Me,rn],imports:[v.ez,T.ot,p.U8,u.rt,x.eL,w.BQ,U.ZD]}),we})()},65412:(X,j,h)=>{"use strict";h.d(j,{WI:()=>jt,uw:()=>vn,H8:()=>_i,ZT:()=>un,xY:()=>ii,Is:()=>Qe,so:()=>Te,uh:()=>Dn});var u=h(12687),p=h(98184),x=h(83353),v=h(84080),t=h(36895),T=h(94650),U=h(29521),w=h(8929),P=h(88514),O=h(21086),L=h(40445),N=h(1059);function V(te,it){}class W{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 st=(()=>{class te extends v.en{constructor(K,Tt,Rt,le,be,De,hn,qn){super(),this._elementRef=K,this._focusTrapFactory=Tt,this._config=le,this._interactivityChecker=be,this._ngZone=De,this._overlayRef=hn,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=Rt}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(K){this._portalOutlet.hasAttached();const Tt=this._portalOutlet.attachComponentPortal(K);return this._contentAttached(),Tt}attachTemplatePortal(K){this._portalOutlet.hasAttached();const Tt=this._portalOutlet.attachTemplatePortal(K);return this._contentAttached(),Tt}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(K,Tt){this._interactivityChecker.isFocusable(K)||(K.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Rt=()=>{K.removeEventListener("blur",Rt),K.removeEventListener("mousedown",Rt),K.removeAttribute("tabindex")};K.addEventListener("blur",Rt),K.addEventListener("mousedown",Rt)})),K.focus(Tt)}_focusByCssSelector(K,Tt){let Rt=this._elementRef.nativeElement.querySelector(K);Rt&&this._forceFocus(Rt,Tt)}_trapFocus(){const K=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||K.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(Tt=>{Tt||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 K=this._config.restoreFocus;let Tt=null;if("string"==typeof K?Tt=this._document.querySelector(K):"boolean"==typeof K?Tt=K?this._elementFocusedBeforeDialogWasOpened:null:K&&(Tt=K),this._config.restoreFocus&&Tt&&"function"==typeof Tt.focus){const Rt=(0,x.ht)(),le=this._elementRef.nativeElement;(!Rt||Rt===this._document.body||Rt===le||le.contains(Rt))&&(this._focusMonitor?(this._focusMonitor.focusVia(Tt,this._closeInteractionType),this._closeInteractionType=null):Tt.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const K=this._elementRef.nativeElement,Tt=(0,x.ht)();return K===Tt||K.contains(Tt)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,x.ht)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return te.\u0275fac=function(K){return new(K||te)(T.Y36(T.SBq),T.Y36(u.qV),T.Y36(t.K0,8),T.Y36(W),T.Y36(u.ic),T.Y36(T.R0b),T.Y36(p.Iu),T.Y36(u.tE))},te.\u0275cmp=T.Xpm({type:te,selectors:[["cdk-dialog-container"]],viewQuery:function(K,Tt){if(1&K&&T.Gf(v.Pl,7),2&K){let Rt;T.iGM(Rt=T.CRH())&&(Tt._portalOutlet=Rt.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(K,Tt){2&K&&T.uIk("id",Tt._config.id||null)("role",Tt._config.role)("aria-modal",Tt._config.ariaModal)("aria-labelledby",Tt._config.ariaLabel?null:Tt._ariaLabelledBy)("aria-label",Tt._config.ariaLabel)("aria-describedby",Tt._config.ariaDescribedBy||null)},features:[T.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(K,Tt){1&K&&T.YNc(0,V,0,0,"ng-template",0)},dependencies:[v.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),te})();class ct{constructor(it,K){this.overlayRef=it,this.config=K,this.closed=new w.xQ,this.disableClose=K.disableClose,this.backdropClick=it.backdropClick(),this.keydownEvents=it.keydownEvents(),this.outsidePointerEvents=it.outsidePointerEvents(),this.id=K.id,this.keydownEvents.subscribe(Tt=>{Tt.keyCode===U.hY&&!this.disableClose&&!(0,U.Vb)(Tt)&&(Tt.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(it,K){if(this.containerInstance){const Tt=this.closed;this.containerInstance._closeInteractionType=K?.focusOrigin||"program",this.overlayRef.dispose(),Tt.next(it),Tt.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(it="",K=""){return this.overlayRef.updateSize({width:it,height:K}),this}addPanelClass(it){return this.overlayRef.addPanelClass(it),this}removePanelClass(it){return this.overlayRef.removePanelClass(it),this}}const bt=new T.OlP("DialogScrollStrategy"),Dt=new T.OlP("DialogData"),wt=new T.OlP("DefaultDialogConfig"),Jt={provide:bt,deps:[p.aV],useFactory:function qt(te){return()=>te.scrollStrategies.block()}};let yt=0,At=(()=>{class te{constructor(K,Tt,Rt,le,be,De){this._overlay=K,this._injector=Tt,this._defaultOptions=Rt,this._parentDialog=le,this._overlayContainer=be,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=De}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(K,Tt){(Tt={...this._defaultOptions||new W,...Tt}).id=Tt.id||"cdk-dialog-"+yt++,Tt.id&&this.getDialogById(Tt.id);const le=this._getOverlayConfig(Tt),be=this._overlay.create(le),De=new ct(be,Tt),hn=this._attachContainer(be,De,Tt);return De.containerInstance=hn,this._attachDialogContent(K,De,hn,Tt),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(De),De.closed.subscribe(()=>this._removeOpenDialog(De,!0)),this.afterOpened.next(De),De}closeAll(){xt(this.openDialogs,K=>K.close())}getDialogById(K){return this.openDialogs.find(Tt=>Tt.id===K)}ngOnDestroy(){xt(this._openDialogsAtThisLevel,K=>{!1===K.config.closeOnDestroy&&this._removeOpenDialog(K,!1)}),xt(this._openDialogsAtThisLevel,K=>K.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(K){const Tt=new p.X_({positionStrategy:K.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:K.scrollStrategy||this._scrollStrategy(),panelClass:K.panelClass,hasBackdrop:K.hasBackdrop,direction:K.direction,minWidth:K.minWidth,minHeight:K.minHeight,maxWidth:K.maxWidth,maxHeight:K.maxHeight,width:K.width,height:K.height,disposeOnNavigation:K.closeOnNavigation});return K.backdropClass&&(Tt.backdropClass=K.backdropClass),Tt}_attachContainer(K,Tt,Rt){const le=Rt.injector||Rt.viewContainerRef?.injector,be=[{provide:W,useValue:Rt},{provide:ct,useValue:Tt},{provide:p.Iu,useValue:K}];let De;Rt.container?"function"==typeof Rt.container?De=Rt.container:(De=Rt.container.type,be.push(...Rt.container.providers(Rt))):De=st;const hn=new v.C5(De,Rt.viewContainerRef,T.zs3.create({parent:le||this._injector,providers:be}),Rt.componentFactoryResolver);return K.attach(hn).instance}_attachDialogContent(K,Tt,Rt,le){if(K instanceof T.Rgc){const be=this._createInjector(le,Tt,Rt,void 0);let De={$implicit:le.data,dialogRef:Tt};le.templateContext&&(De={...De,..."function"==typeof le.templateContext?le.templateContext():le.templateContext}),Rt.attachTemplatePortal(new v.UE(K,null,De,be))}else{const be=this._createInjector(le,Tt,Rt,this._injector),De=Rt.attachComponentPortal(new v.C5(K,le.viewContainerRef,be,le.componentFactoryResolver));Tt.componentInstance=De.instance}}_createInjector(K,Tt,Rt,le){const be=K.injector||K.viewContainerRef?.injector,De=[{provide:Dt,useValue:K.data},{provide:ct,useValue:Tt}];return K.providers&&("function"==typeof K.providers?De.push(...K.providers(Tt,K,Rt)):De.push(...K.providers)),K.direction&&(!be||!be.get(L.Is,null,T.XFs.Optional))&&De.push({provide:L.Is,useValue:{value:K.direction,change:(0,O.of)()}}),T.zs3.create({parent:be||le,providers:De})}_removeOpenDialog(K,Tt){const Rt=this.openDialogs.indexOf(K);Rt>-1&&(this.openDialogs.splice(Rt,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((le,be)=>{le?be.setAttribute("aria-hidden",le):be.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),Tt&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const K=this._overlayContainer.getContainerElement();if(K.parentElement){const Tt=K.parentElement.children;for(let Rt=Tt.length-1;Rt>-1;Rt--){const le=Tt[Rt];le!==K&&"SCRIPT"!==le.nodeName&&"STYLE"!==le.nodeName&&!le.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(le,le.getAttribute("aria-hidden")),le.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const K=this._parentDialog;return K?K._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return te.\u0275fac=function(K){return new(K||te)(T.LFG(p.aV),T.LFG(T.zs3),T.LFG(wt,8),T.LFG(te,12),T.LFG(p.Xj),T.LFG(bt))},te.\u0275prov=T.Yz7({token:te,factory:te.\u0275fac}),te})();function xt(te,it){let K=te.length;for(;K--;)it(te[K])}let pt=(()=>{class te{}return te.\u0275fac=function(K){return new(K||te)},te.\u0275mod=T.oAB({type:te}),te.\u0275inj=T.cJS({providers:[At,Jt],imports:[p.U8,v.eL,u.rt,v.eL]}),te})();var Ot=h(3238),Bt=h(36787),St=h(92198),ce=h(72986),Vt=h(37340);function ve(te,it){}const fe={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},Le={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})]),fe),(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})]),fe)])};class Fe{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=fe.params.enterAnimationDuration,this.exitAnimationDuration=fe.params.exitAnimationDuration}}let Ge=(()=>{class te extends st{constructor(K,Tt,Rt,le,be,De,hn,qn){super(K,Tt,Rt,le,be,De,hn,qn),this._animationStateChanged=new T.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(K){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:K})}}return te.\u0275fac=function(K){return new(K||te)(T.Y36(T.SBq),T.Y36(u.qV),T.Y36(t.K0,8),T.Y36(Fe),T.Y36(u.ic),T.Y36(T.R0b),T.Y36(p.Iu),T.Y36(u.tE))},te.\u0275cmp=T.Xpm({type:te,selectors:[["ng-component"]],features:[T.qOj],decls:0,vars:0,template:function(K,Tt){},encapsulation:2}),te})(),Gt=(()=>{class te extends Ge{constructor(K,Tt,Rt,le,be,De,hn,qn,mi){super(K,Tt,Rt,le,be,De,hn,mi),this._changeDetectorRef=qn,this._state="enter"}_onAnimationDone({toState:K,totalTime:Tt}){"enter"===K?this._openAnimationDone(Tt):"exit"===K&&this._animationStateChanged.next({state:"closed",totalTime:Tt})}_onAnimationStart({toState:K,totalTime:Tt}){"enter"===K?this._animationStateChanged.next({state:"opening",totalTime:Tt}):("exit"===K||"void"===K)&&this._animationStateChanged.next({state:"closing",totalTime:Tt})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||fe.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||fe.params.exitAnimationDuration}}}}return te.\u0275fac=function(K){return new(K||te)(T.Y36(T.SBq),T.Y36(u.qV),T.Y36(t.K0,8),T.Y36(Fe),T.Y36(u.ic),T.Y36(T.R0b),T.Y36(p.Iu),T.Y36(T.sBO),T.Y36(u.tE))},te.\u0275cmp=T.Xpm({type:te,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(K,Tt){1&K&&T.WFA("@dialogContainer.start",function(le){return Tt._onAnimationStart(le)})("@dialogContainer.done",function(le){return Tt._onAnimationDone(le)}),2&K&&(T.Ikx("id",Tt._config.id),T.uIk("aria-modal",Tt._config.ariaModal)("role",Tt._config.role)("aria-labelledby",Tt._config.ariaLabel?null:Tt._ariaLabelledBy)("aria-label",Tt._config.ariaLabel)("aria-describedby",Tt._config.ariaDescribedBy||null),T.d8E("@dialogContainer",Tt._getAnimationState()))},features:[T.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(K,Tt){1&K&&T.YNc(0,ve,0,0,"ng-template",0)},dependencies:[v.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:[Le.dialogContainer]}}),te})();class Te{constructor(it,K,Tt){this._ref=it,this._containerInstance=Tt,this._afterOpened=new w.xQ,this._beforeClosed=new w.xQ,this._state=0,this.disableClose=K.disableClose,this.id=it.id,Tt._animationStateChanged.pipe((0,St.h)(Rt=>"opened"===Rt.state),(0,ce.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),Tt._animationStateChanged.pipe((0,St.h)(Rt=>"closed"===Rt.state),(0,ce.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),it.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,Bt.T)(this.backdropClick(),this.keydownEvents().pipe((0,St.h)(Rt=>Rt.keyCode===U.hY&&!this.disableClose&&!(0,U.Vb)(Rt)))).subscribe(Rt=>{this.disableClose||(Rt.preventDefault(),ne(this,"keydown"===Rt.type?"keyboard":"mouse"))})}close(it){this._result=it,this._containerInstance._animationStateChanged.pipe((0,St.h)(K=>"closing"===K.state),(0,ce.q)(1)).subscribe(K=>{this._beforeClosed.next(it),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),K.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(it){let K=this._ref.config.positionStrategy;return it&&(it.left||it.right)?it.left?K.left(it.left):K.right(it.right):K.centerHorizontally(),it&&(it.top||it.bottom)?it.top?K.top(it.top):K.bottom(it.bottom):K.centerVertically(),this._ref.updatePosition(),this}updateSize(it="",K=""){return this._ref.updateSize(it,K),this}addPanelClass(it){return this._ref.addPanelClass(it),this}removePanelClass(it){return this._ref.removePanelClass(it),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function ne(te,it,K){return te._closeInteractionType=it,te.close(K)}const jt=new T.OlP("MatDialogData"),re=new T.OlP("mat-dialog-default-options"),Xt=new T.OlP("mat-dialog-scroll-strategy"),en={provide:Xt,deps:[p.aV],useFactory:function Me(te){return()=>te.scrollStrategies.block()}};let _n=0,xe=(()=>{class te{constructor(K,Tt,Rt,le,be,De,hn,qn,mi,Di){this._overlay=K,this._defaultOptions=Rt,this._parentDialog=le,this._dialogRefConstructor=hn,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=De,this._dialog=Tt.get(At)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const K=this._parentDialog;return K?K._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(K,Tt){let Rt;(Tt={...this._defaultOptions||new Fe,...Tt}).id=Tt.id||`${this._idPrefix}${_n++}`,Tt.scrollStrategy=Tt.scrollStrategy||this._scrollStrategy();const le=this._dialog.open(K,{...Tt,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:Fe,useValue:Tt},{provide:W,useValue:Tt}]},templateContext:()=>({dialogRef:Rt}),providers:(be,De,hn)=>(Rt=new this._dialogRefConstructor(be,Tt,hn),Rt.updatePosition(Tt?.position),[{provide:this._dialogContainerType,useValue:hn},{provide:this._dialogDataToken,useValue:De.data},{provide:this._dialogRefConstructor,useValue:Rt}])});return Rt.componentInstance=le.componentInstance,this.openDialogs.push(Rt),this.afterOpened.next(Rt),Rt.afterClosed().subscribe(()=>{const be=this.openDialogs.indexOf(Rt);be>-1&&(this.openDialogs.splice(be,1),this.openDialogs.length||this._getAfterAllClosed().next())}),Rt}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(K){return this.openDialogs.find(Tt=>Tt.id===K)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(K){let Tt=K.length;for(;Tt--;)K[Tt].close()}}return te.\u0275fac=function(K){T.$Z()},te.\u0275prov=T.Yz7({token:te,factory:te.\u0275fac}),te})(),vn=(()=>{class te extends xe{constructor(K,Tt,Rt,le,be,De,hn,qn){super(K,Tt,le,De,hn,be,Te,Gt,jt,qn)}}return te.\u0275fac=function(K){return new(K||te)(T.LFG(p.aV),T.LFG(T.zs3),T.LFG(t.Ye,8),T.LFG(re,8),T.LFG(Xt),T.LFG(te,12),T.LFG(p.Xj),T.LFG(T.QbO,8))},te.\u0275prov=T.Yz7({token:te,factory:te.\u0275fac}),te})(),ke=0,un=(()=>{class te{constructor(K,Tt,Rt){this.dialogRef=K,this._elementRef=Tt,this._dialog=Rt,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=oi(this._elementRef,this._dialog.openDialogs))}ngOnChanges(K){const Tt=K._matDialogClose||K._matDialogCloseResult;Tt&&(this.dialogResult=Tt.currentValue)}_onButtonClick(K){ne(this.dialogRef,0===K.screenX&&0===K.screenY?"keyboard":"mouse",this.dialogResult)}}return te.\u0275fac=function(K){return new(K||te)(T.Y36(Te,8),T.Y36(T.SBq),T.Y36(vn))},te.\u0275dir=T.lG2({type:te,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(K,Tt){1&K&&T.NdJ("click",function(le){return Tt._onButtonClick(le)}),2&K&&T.uIk("aria-label",Tt.ariaLabel||null)("type",Tt.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[T.TTD]}),te})(),Dn=(()=>{class te{constructor(K,Tt,Rt){this._dialogRef=K,this._elementRef=Tt,this._dialog=Rt,this.id="mat-dialog-title-"+ke++}ngOnInit(){this._dialogRef||(this._dialogRef=oi(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const K=this._dialogRef._containerInstance;K&&!K._ariaLabelledBy&&(K._ariaLabelledBy=this.id)})}}return te.\u0275fac=function(K){return new(K||te)(T.Y36(Te,8),T.Y36(T.SBq),T.Y36(vn))},te.\u0275dir=T.lG2({type:te,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(K,Tt){2&K&&T.Ikx("id",Tt.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),te})(),ii=(()=>{class te{}return te.\u0275fac=function(K){return new(K||te)},te.\u0275dir=T.lG2({type:te,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),te})(),_i=(()=>{class te{constructor(){this.align="start"}}return te.\u0275fac=function(K){return new(K||te)},te.\u0275dir=T.lG2({type:te,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(K,Tt){2&K&&T.ekj("mat-dialog-actions-align-center","center"===Tt.align)("mat-dialog-actions-align-end","end"===Tt.align)},inputs:{align:"align"}}),te})();function oi(te,it){let K=te.nativeElement.parentElement;for(;K&&!K.classList.contains("mat-dialog-container");)K=K.parentElement;return K?it.find(Tt=>Tt.id===K.id):null}let Qe=(()=>{class te{}return te.\u0275fac=function(K){return new(K||te)},te.\u0275mod=T.oAB({type:te}),te.\u0275inj=T.cJS({providers:[vn,en],imports:[pt,p.U8,v.eL,Ot.BQ,Ot.BQ]}),te})()},44850:(X,j,h)=>{"use strict";h.d(j,{d:()=>v,t:()=>t});var u=h(94650),p=h(21281),x=h(3238);let v=(()=>{class T{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(w){this._vertical=(0,p.Ig)(w)}get inset(){return this._inset}set inset(w){this._inset=(0,p.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:[x.BQ,x.BQ]}),T})()},37084:(X,j,h)=>{"use strict";h.d(j,{pp:()=>en,To:()=>_n,ib:()=>Te,u4:()=>oe,yz:()=>Xt,yK:()=>Me});var u=h(94650),p=h(95017),x=h(21281),v=h(8929),t=h(42654);let T=0;const U=new u.OlP("CdkAccordion");let w=(()=>{class xe{constructor(){this._stateChanges=new v.xQ,this._openCloseAllActions=new v.xQ,this.id="cdk-accordion-"+T++,this._multi=!1}get multi(){return this._multi}set multi(ke){this._multi=(0,x.Ig)(ke)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(ke){this._stateChanges.next(ke)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return xe.\u0275fac=function(ke){return new(ke||xe)},xe.\u0275dir=u.lG2({type:xe,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[u._Bn([{provide:U,useExisting:xe}]),u.TTD]}),xe})(),P=0,O=(()=>{class xe{constructor(ke,un,Dn){this.accordion=ke,this._changeDetectorRef=un,this._expansionDispatcher=Dn,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=Dn.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(ke){ke=(0,x.Ig)(ke),this._expanded!==ke&&(this._expanded=ke,this.expandedChange.emit(ke),ke?(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(ke){this._disabled=(0,x.Ig)(ke)}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(ke=>{this.disabled||(this.expanded=ke)})}}return xe.\u0275fac=function(ke){return new(ke||xe)(u.Y36(U,12),u.Y36(u.sBO),u.Y36(p.A8))},xe.\u0275dir=u.lG2({type:xe,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}])]}),xe})(),L=(()=>{class xe{}return xe.\u0275fac=function(ke){return new(ke||xe)},xe.\u0275mod=u.oAB({type:xe}),xe.\u0275inj=u.cJS({}),xe})();var N=h(84080),V=h(36895),W=h(3238),tt=h(12687),st=h(75778),ct=h(1059),bt=h(92198),Dt=h(72986),wt=h(29521),qt=h(68896),Jt=h(36787),yt=h(37340);const At=["body"];function xt(xe,vn){}const pt=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Ot=["mat-expansion-panel-header","*","mat-action-row"];function Bt(xe,vn){if(1&xe&&u._UZ(0,"span",2),2&xe){const ke=u.oxw();u.Q6J("@indicatorRotate",ke._getExpandedState())}}const St=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],ce=["mat-panel-title","mat-panel-description","*"],Vt=new u.OlP("MAT_ACCORDION"),ve="225ms cubic-bezier(0.4,0.0,0.2,1)",fe={indicatorRotate:(0,yt.X$)("indicatorRotate",[(0,yt.SB)("collapsed, void",(0,yt.oB)({transform:"rotate(0deg)"})),(0,yt.SB)("expanded",(0,yt.oB)({transform:"rotate(180deg)"})),(0,yt.eR)("expanded <=> collapsed, void => collapsed",(0,yt.jt)(ve))]),bodyExpansion:(0,yt.X$)("bodyExpansion",[(0,yt.SB)("collapsed, void",(0,yt.oB)({height:"0px",visibility:"hidden"})),(0,yt.SB)("expanded",(0,yt.oB)({height:"*",visibility:"visible"})),(0,yt.eR)("expanded <=> collapsed, void => collapsed",(0,yt.jt)(ve))])},Le=new u.OlP("MAT_EXPANSION_PANEL");let Fe=(()=>{class xe{constructor(ke,un){this._template=ke,this._expansionPanel=un}}return xe.\u0275fac=function(ke){return new(ke||xe)(u.Y36(u.Rgc),u.Y36(Le,8))},xe.\u0275dir=u.lG2({type:xe,selectors:[["ng-template","matExpansionPanelContent",""]]}),xe})(),Ge=0;const Gt=new u.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let Te=(()=>{class xe extends O{constructor(ke,un,Dn,ii,_i,oi,Qe){super(ke,un,Dn),this._viewContainerRef=ii,this._animationMode=oi,this._hideToggle=!1,this.afterExpand=new u.vpe,this.afterCollapse=new u.vpe,this._inputChanges=new v.xQ,this._headerId="mat-expansion-panel-header-"+Ge++,this._bodyAnimationDone=new v.xQ,this.accordion=ke,this._document=_i,this._bodyAnimationDone.pipe((0,st.x)((te,it)=>te.fromState===it.fromState&&te.toState===it.toState)).subscribe(te=>{"void"!==te.fromState&&("expanded"===te.toState?this.afterExpand.emit():"collapsed"===te.toState&&this.afterCollapse.emit())}),Qe&&(this.hideToggle=Qe.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(ke){this._hideToggle=(0,x.Ig)(ke)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(ke){this._togglePosition=ke}_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,ct.O)(null),(0,bt.h)(()=>this.expanded&&!this._portal),(0,Dt.q)(1)).subscribe(()=>{this._portal=new N.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(ke){this._inputChanges.next(ke)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const ke=this._document.activeElement,un=this._body.nativeElement;return ke===un||un.contains(ke)}return!1}}return xe.\u0275fac=function(ke){return new(ke||xe)(u.Y36(Vt,12),u.Y36(u.sBO),u.Y36(p.A8),u.Y36(u.s_b),u.Y36(V.K0),u.Y36(u.QbO,8),u.Y36(Gt,8))},xe.\u0275cmp=u.Xpm({type:xe,selectors:[["mat-expansion-panel"]],contentQueries:function(ke,un,Dn){if(1&ke&&u.Suo(Dn,Fe,5),2&ke){let ii;u.iGM(ii=u.CRH())&&(un._lazyContent=ii.first)}},viewQuery:function(ke,un){if(1&ke&&u.Gf(At,5),2&ke){let Dn;u.iGM(Dn=u.CRH())&&(un._body=Dn.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(ke,un){2&ke&&u.ekj("mat-expanded",un.expanded)("_mat-animation-noopable","NoopAnimations"===un._animationMode)("mat-expansion-panel-spacing",un._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:Le,useExisting:xe}]),u.qOj,u.TTD],ngContentSelectors:Ot,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(ke,un){1&ke&&(u.F$t(pt),u.Hsn(0),u.TgZ(1,"div",0,1),u.NdJ("@bodyExpansion.done",function(ii){return un._bodyAnimationDone.next(ii)}),u.TgZ(3,"div",2),u.Hsn(4,1),u.YNc(5,xt,0,0,"ng-template",3),u.qZA(),u.Hsn(6,2),u.qZA()),2&ke&&(u.xp6(1),u.Q6J("@bodyExpansion",un._getExpandedState())("id",un.id),u.uIk("aria-labelledby",un._headerId),u.xp6(4),u.Q6J("cdkPortalOutlet",un._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:[fe.bodyExpansion]},changeDetection:0}),xe})();class jt{}const re=(0,W.sb)(jt);let Xt=(()=>{class xe extends re{constructor(ke,un,Dn,ii,_i,oi,Qe){super(),this.panel=ke,this._element=un,this._focusMonitor=Dn,this._changeDetectorRef=ii,this._animationMode=oi,this._parentChangeSubscription=t.w.EMPTY;const te=ke.accordion?ke.accordion._stateChanges.pipe((0,bt.h)(it=>!(!it.hideToggle&&!it.togglePosition))):qt.E;this.tabIndex=parseInt(Qe||"")||0,this._parentChangeSubscription=(0,Jt.T)(ke.opened,ke.closed,te,ke._inputChanges.pipe((0,bt.h)(it=>!!(it.hideToggle||it.disabled||it.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),ke.closed.pipe((0,bt.h)(()=>ke._containsFocus())).subscribe(()=>Dn.focusVia(un,"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 ke=this._isExpanded();return ke&&this.expandedHeight?this.expandedHeight:!ke&&this.collapsedHeight?this.collapsedHeight:null}_keydown(ke){switch(ke.keyCode){case wt.L_:case wt.K5:(0,wt.Vb)(ke)||(ke.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(ke))}}focus(ke,un){ke?this._focusMonitor.focusVia(this._element,ke,un):this._element.nativeElement.focus(un)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(ke=>{ke&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return xe.\u0275fac=function(ke){return new(ke||xe)(u.Y36(Te,1),u.Y36(u.SBq),u.Y36(tt.tE),u.Y36(u.sBO),u.Y36(Gt,8),u.Y36(u.QbO,8),u.$8M("tabindex"))},xe.\u0275cmp=u.Xpm({type:xe,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(ke,un){1&ke&&u.NdJ("click",function(){return un._toggle()})("keydown",function(ii){return un._keydown(ii)}),2&ke&&(u.uIk("id",un.panel._headerId)("tabindex",un.tabIndex)("aria-controls",un._getPanelId())("aria-expanded",un._isExpanded())("aria-disabled",un.panel.disabled),u.Udp("height",un._getHeaderHeight()),u.ekj("mat-expanded",un._isExpanded())("mat-expansion-toggle-indicator-after","after"===un._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===un._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===un._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[u.qOj],ngContentSelectors:ce,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(ke,un){1&ke&&(u.F$t(St),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&ke&&(u.ekj("mat-content-hide-toggle",!un._showToggle()),u.xp6(4),u.Q6J("ngIf",un._showToggle()))},dependencies:[V.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:[fe.indicatorRotate]},changeDetection:0}),xe})(),oe=(()=>{class xe{}return xe.\u0275fac=function(ke){return new(ke||xe)},xe.\u0275dir=u.lG2({type:xe,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),xe})(),Me=(()=>{class xe{}return xe.\u0275fac=function(ke){return new(ke||xe)},xe.\u0275dir=u.lG2({type:xe,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),xe})(),en=(()=>{class xe 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(ke){this._hideToggle=(0,x.Ig)(ke)}ngAfterContentInit(){this._headers.changes.pipe((0,ct.O)(this._headers)).subscribe(ke=>{this._ownHeaders.reset(ke.filter(un=>un.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new tt.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(ke){this._keyManager.onKeydown(ke)}_handleHeaderFocus(ke){this._keyManager.updateActiveItem(ke)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return xe.\u0275fac=function(){let vn;return function(un){return(vn||(vn=u.n5z(xe)))(un||xe)}}(),xe.\u0275dir=u.lG2({type:xe,selectors:[["mat-accordion"]],contentQueries:function(ke,un,Dn){if(1&ke&&u.Suo(Dn,Xt,5),2&ke){let ii;u.iGM(ii=u.CRH())&&(un._headers=ii)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(ke,un){2&ke&&u.ekj("mat-accordion-multi",un.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[u._Bn([{provide:Vt,useExisting:xe}]),u.qOj]}),xe})(),_n=(()=>{class xe{}return xe.\u0275fac=function(ke){return new(ke||xe)},xe.\u0275mod=u.oAB({type:xe}),xe.\u0275inj=u.cJS({imports:[V.ez,W.BQ,L,N.eL]}),xe})()},59549:(X,j,h)=>{"use strict";h.d(j,{Eo:()=>Fe,G_:()=>_i,KE:()=>oi,R9:()=>xe,TO:()=>fe,bx:()=>re,hX:()=>Xt,lN:()=>Qe,o2:()=>ii,qo:()=>en});var u=h(49643),p=h(36895),x=h(94650),v=h(3238),t=h(40445),T=h(21281),U=h(8929),w=h(36787),P=h(23753),O=h(1059),L=h(7625),N=h(72986),V=h(37340),W=h(83353);const tt=["connectionContainer"],st=["inputContainer"],ct=["label"];function bt(te,it){1&te&&(x.ynx(0),x.TgZ(1,"div",14),x._UZ(2,"div",15)(3,"div",16)(4,"div",17),x.qZA(),x.TgZ(5,"div",18),x._UZ(6,"div",15)(7,"div",16)(8,"div",17),x.qZA(),x.BQk())}function Dt(te,it){if(1&te){const K=x.EpF();x.TgZ(0,"div",19),x.NdJ("cdkObserveContent",function(){x.CHM(K);const Rt=x.oxw();return x.KtG(Rt.updateOutlineGap())}),x.Hsn(1,1),x.qZA()}if(2&te){const K=x.oxw();x.Q6J("cdkObserveContentDisabled","outline"!=K.appearance)}}function wt(te,it){if(1&te&&(x.ynx(0),x.Hsn(1,2),x.TgZ(2,"span"),x._uU(3),x.qZA(),x.BQk()),2&te){const K=x.oxw(2);x.xp6(3),x.Oqu(K._control.placeholder)}}function qt(te,it){1&te&&x.Hsn(0,3,["*ngSwitchCase","true"])}function Jt(te,it){1&te&&(x.TgZ(0,"span",23),x._uU(1," *"),x.qZA())}function yt(te,it){if(1&te){const K=x.EpF();x.TgZ(0,"label",20,21),x.NdJ("cdkObserveContent",function(){x.CHM(K);const Rt=x.oxw();return x.KtG(Rt.updateOutlineGap())}),x.YNc(2,wt,4,1,"ng-container",12),x.YNc(3,qt,1,0,"ng-content",12),x.YNc(4,Jt,2,0,"span",22),x.qZA()}if(2&te){const K=x.oxw();x.ekj("mat-empty",K._control.empty&&!K._shouldAlwaysFloat())("mat-form-field-empty",K._control.empty&&!K._shouldAlwaysFloat())("mat-accent","accent"==K.color)("mat-warn","warn"==K.color),x.Q6J("cdkObserveContentDisabled","outline"!=K.appearance)("id",K._labelId)("ngSwitch",K._hasLabel()),x.uIk("for",K._control.id)("aria-owns",K._control.id),x.xp6(2),x.Q6J("ngSwitchCase",!1),x.xp6(1),x.Q6J("ngSwitchCase",!0),x.xp6(1),x.Q6J("ngIf",!K.hideRequiredMarker&&K._control.required&&!K._control.disabled)}}function At(te,it){1&te&&(x.TgZ(0,"div",24),x.Hsn(1,4),x.qZA())}function xt(te,it){if(1&te&&(x.TgZ(0,"div",25),x._UZ(1,"span",26),x.qZA()),2&te){const K=x.oxw();x.xp6(1),x.ekj("mat-accent","accent"==K.color)("mat-warn","warn"==K.color)}}function pt(te,it){if(1&te&&(x.TgZ(0,"div"),x.Hsn(1,5),x.qZA()),2&te){const K=x.oxw();x.Q6J("@transitionMessages",K._subscriptAnimationState)}}function Ot(te,it){if(1&te&&(x.TgZ(0,"div",30),x._uU(1),x.qZA()),2&te){const K=x.oxw(2);x.Q6J("id",K._hintLabelId),x.xp6(1),x.Oqu(K.hintLabel)}}function Bt(te,it){if(1&te&&(x.TgZ(0,"div",27),x.YNc(1,Ot,2,2,"div",28),x.Hsn(2,6),x._UZ(3,"div",29),x.Hsn(4,7),x.qZA()),2&te){const K=x.oxw();x.Q6J("@transitionMessages",K._subscriptAnimationState),x.xp6(1),x.Q6J("ngIf",K.hintLabel)}}const St=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],ce=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let Vt=0;const ve=new x.OlP("MatError");let fe=(()=>{class te{constructor(K,Tt){this.id="mat-error-"+Vt++,K||Tt.nativeElement.setAttribute("aria-live","polite")}}return te.\u0275fac=function(K){return new(K||te)(x.$8M("aria-live"),x.Y36(x.SBq))},te.\u0275dir=x.lG2({type:te,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(K,Tt){2&K&&x.uIk("id",Tt.id)},inputs:{id:"id"},features:[x._Bn([{provide:ve,useExisting:te}])]}),te})();const Le={transitionMessages:(0,V.X$)("transitionMessages",[(0,V.SB)("enter",(0,V.oB)({opacity:1,transform:"translateY(0%)"})),(0,V.eR)("void => enter",[(0,V.oB)({opacity:0,transform:"translateY(-5px)"}),(0,V.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Fe=(()=>{class te{}return te.\u0275fac=function(K){return new(K||te)},te.\u0275dir=x.lG2({type:te}),te})(),ne=0;const jt=new x.OlP("MatHint");let re=(()=>{class te{constructor(){this.align="start",this.id="mat-hint-"+ne++}}return te.\u0275fac=function(K){return new(K||te)},te.\u0275dir=x.lG2({type:te,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(K,Tt){2&K&&(x.uIk("id",Tt.id)("align",null),x.ekj("mat-form-field-hint-end","end"===Tt.align))},inputs:{align:"align",id:"id"},features:[x._Bn([{provide:jt,useExisting:te}])]}),te})(),Xt=(()=>{class te{}return te.\u0275fac=function(K){return new(K||te)},te.\u0275dir=x.lG2({type:te,selectors:[["mat-label"]]}),te})(),oe=(()=>{class te{}return te.\u0275fac=function(K){return new(K||te)},te.\u0275dir=x.lG2({type:te,selectors:[["mat-placeholder"]]}),te})();const Me=new x.OlP("MatPrefix");let en=(()=>{class te{}return te.\u0275fac=function(K){return new(K||te)},te.\u0275dir=x.lG2({type:te,selectors:[["","matPrefix",""]],features:[x._Bn([{provide:Me,useExisting:te}])]}),te})();const _n=new x.OlP("MatSuffix");let xe=(()=>{class te{}return te.\u0275fac=function(K){return new(K||te)},te.\u0275dir=x.lG2({type:te,selectors:[["","matSuffix",""]],features:[x._Bn([{provide:_n,useExisting:te}])]}),te})(),vn=0;const Dn=(0,v.pj)(class{constructor(te){this._elementRef=te}},"primary"),ii=new x.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),_i=new x.OlP("MatFormField");let oi=(()=>{class te extends Dn{constructor(K,Tt,Rt,le,be,De,hn){super(K),this._changeDetectorRef=Tt,this._dir=Rt,this._defaults=le,this._platform=be,this._ngZone=De,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-"+vn++,this._labelId="mat-form-field-label-"+vn++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==hn,this.appearance=le?.appearance||"legacy",le&&(this._hideRequiredMarker=Boolean(le.hideRequiredMarker),le.color&&(this.color=this.defaultColor=le.color))}get appearance(){return this._appearance}set appearance(K){const Tt=this._appearance;this._appearance=K||this._defaults?.appearance||"legacy","outline"===this._appearance&&Tt!==K&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(K){this._hideRequiredMarker=(0,T.Ig)(K)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(K){this._hintLabel=K,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(K){K!==this._floatLabel&&(this._floatLabel=K||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(K){this._explicitFormFieldControl=K}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const K=this._control;K.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${K.controlType}`),K.stateChanges.pipe((0,O.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),K.ngControl&&K.ngControl.valueChanges&&K.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(K){const Tt=this._control?this._control.ngControl:null;return Tt&&Tt[K]}_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 K=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&K.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const Tt=this._hintChildren?this._hintChildren.find(le=>"start"===le.align):null,Rt=this._hintChildren?this._hintChildren.find(le=>"end"===le.align):null;Tt?K.push(Tt.id):this._hintLabel&&K.push(this._hintLabelId),Rt&&K.push(Rt.id)}else this._errorChildren&&K.push(...this._errorChildren.map(Tt=>Tt.id));this._control.setDescribedByIds(K)}}_validateControlChild(){}updateOutlineGap(){const K=this._label?this._label.nativeElement:null,Tt=this._connectionContainerRef.nativeElement,Rt=".mat-form-field-outline-start",le=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!K||!K.children.length||!K.textContent.trim()){const mi=Tt.querySelectorAll(`${Rt}, ${le}`);for(let Di=0;Di0?.75*Yn+10:0}for(let mi=0;mi{class te{}return te.\u0275fac=function(K){return new(K||te)},te.\u0275mod=x.oAB({type:te}),te.\u0275inj=x.cJS({imports:[p.ez,v.BQ,u.Q8,v.BQ]}),te})()},90782:(X,j,h)=>{"use strict";h.d(j,{DX:()=>N,Il:()=>xt,N6:()=>pt});var u=h(94650),p=h(3238),x=h(21281),v=h(40445);const t=["*"];class P{constructor(){this.columnIndex=0,this.rowIndex=0}get rowCount(){return this.rowIndex+1}get rowspan(){const St=Math.max(...this.tracker);return St>1?this.rowCount+St-1:this.rowCount}update(St,ce){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(St),this.tracker.fill(0,0,this.tracker.length),this.positions=ce.map(Vt=>this._trackTile(Vt))}_trackTile(St){const ce=this._findMatchingGap(St.colspan);return this._markTilePosition(ce,St),this.columnIndex=ce+St.colspan,new O(this.rowIndex,ce)}_findMatchingGap(St){let ce=-1,Vt=-1;do{this.columnIndex+St>this.tracker.length?(this._nextRow(),ce=this.tracker.indexOf(0,this.columnIndex),Vt=this._findGapEndIndex(ce)):(ce=this.tracker.indexOf(0,this.columnIndex),-1!=ce?(Vt=this._findGapEndIndex(ce),this.columnIndex=ce+1):(this._nextRow(),ce=this.tracker.indexOf(0,this.columnIndex),Vt=this._findGapEndIndex(ce)))}while(Vt-ce{class Bt{constructor(ce,Vt){this._element=ce,this._gridList=Vt,this._rowspan=1,this._colspan=1}get rowspan(){return this._rowspan}set rowspan(ce){this._rowspan=Math.round((0,x.su)(ce))}get colspan(){return this._colspan}set colspan(ce){this._colspan=Math.round((0,x.su)(ce))}_setStyle(ce,Vt){this._element.nativeElement.style[ce]=Vt}}return Bt.\u0275fac=function(ce){return new(ce||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(ce,Vt){2&ce&&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(ce,Vt){1&ce&&(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 ct=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/;class bt{constructor(){this._rows=0,this._rowspan=0}init(St,ce,Vt,ve){this._gutterSize=yt(St),this._rows=ce.rowCount,this._rowspan=ce.rowspan,this._cols=Vt,this._direction=ve}getBaseTileSize(St,ce){return`(${St}% - (${this._gutterSize} * ${ce}))`}getTilePosition(St,ce){return 0===ce?"0":Jt(`(${St} + ${this._gutterSize}) * ${ce}`)}getTileSize(St,ce){return`(${St} * ${ce}) + (${ce-1} * ${this._gutterSize})`}setStyle(St,ce,Vt){let ve=100/this._cols,fe=(this._cols-1)/this._cols;this.setColStyles(St,Vt,ve,fe),this.setRowStyles(St,ce,ve,fe)}setColStyles(St,ce,Vt,ve){let fe=this.getBaseTileSize(Vt,ve);St._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(fe,ce)),St._setStyle("width",Jt(this.getTileSize(fe,St.colspan)))}getGutterSpan(){return`${this._gutterSize} * (${this._rowspan} - 1)`}getTileSpan(St){return`${this._rowspan} * ${this.getTileSize(St,1)}`}getComputedHeight(){return null}}class Dt extends bt{constructor(St){super(),this.fixedRowHeight=St}init(St,ce,Vt,ve){super.init(St,ce,Vt,ve),this.fixedRowHeight=yt(this.fixedRowHeight),ct.test(this.fixedRowHeight)}setRowStyles(St,ce){St._setStyle("top",this.getTilePosition(this.fixedRowHeight,ce)),St._setStyle("height",Jt(this.getTileSize(this.fixedRowHeight,St.rowspan)))}getComputedHeight(){return["height",Jt(`${this.getTileSpan(this.fixedRowHeight)} + ${this.getGutterSpan()}`)]}reset(St){St._setListStyle(["height",null]),St._tiles&&St._tiles.forEach(ce=>{ce._setStyle("top",null),ce._setStyle("height",null)})}}class wt extends bt{constructor(St){super(),this._parseRatio(St)}setRowStyles(St,ce,Vt,ve){this.baseTileHeight=this.getBaseTileSize(Vt/this.rowHeightRatio,ve),St._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,ce)),St._setStyle("paddingTop",Jt(this.getTileSize(this.baseTileHeight,St.rowspan)))}getComputedHeight(){return["paddingBottom",Jt(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(St){St._setListStyle(["paddingBottom",null]),St._tiles.forEach(ce=>{ce._setStyle("marginTop",null),ce._setStyle("paddingTop",null)})}_parseRatio(St){const ce=St.split(":");this.rowHeightRatio=parseFloat(ce[0])/parseFloat(ce[1])}}class qt extends bt{setRowStyles(St,ce){let fe=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);St._setStyle("top",this.getTilePosition(fe,ce)),St._setStyle("height",Jt(this.getTileSize(fe,St.rowspan)))}reset(St){St._tiles&&St._tiles.forEach(ce=>{ce._setStyle("top",null),ce._setStyle("height",null)})}}function Jt(Bt){return`calc(${Bt})`}function yt(Bt){return Bt.match(/([A-Za-z%]+)$/)?Bt:`${Bt}px`}let xt=(()=>{class Bt{constructor(ce,Vt){this._element=ce,this._dir=Vt,this._gutter="1px"}get cols(){return this._cols}set cols(ce){this._cols=Math.max(1,Math.round((0,x.su)(ce)))}get gutterSize(){return this._gutter}set gutterSize(ce){this._gutter=`${ce??""}`}get rowHeight(){return this._rowHeight}set rowHeight(ce){const Vt=`${ce??""}`;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(ce){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===ce?new qt:ce&&ce.indexOf(":")>-1?new wt(ce):new Dt(ce)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new P);const ce=this._tileCoordinator,Vt=this._tiles.filter(fe=>!fe._gridList||fe._gridList===this),ve=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,Vt),this._tileStyler.init(this.gutterSize,ce,this.cols,ve),Vt.forEach((fe,Le)=>{const Fe=ce.positions[Le];this._tileStyler.setStyle(fe,Fe.row,Fe.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(ce){ce&&(this._element.nativeElement.style[ce[0]]=ce[1])}}return Bt.\u0275fac=function(ce){return new(ce||Bt)(u.Y36(u.SBq),u.Y36(v.Is,8))},Bt.\u0275cmp=u.Xpm({type:Bt,selectors:[["mat-grid-list"]],contentQueries:function(ce,Vt,ve){if(1&ce&&u.Suo(ve,N,5),2&ce){let fe;u.iGM(fe=u.CRH())&&(Vt._tiles=fe)}},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(ce,Vt){2&ce&&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(ce,Vt){1&ce&&(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})(),pt=(()=>{class Bt{}return Bt.\u0275fac=function(ce){return new(ce||Bt)},Bt.\u0275mod=u.oAB({type:Bt}),Bt.\u0275inj=u.cJS({imports:[p.uc,p.BQ,p.uc,p.BQ]}),Bt})()},97392:(X,j,h)=>{"use strict";h.d(j,{Hw:()=>ne,Ps:()=>jt});var u=h(94650),p=h(3238),x=h(21281),v=h(36895),t=h(21086),T=h(61737),U=h(30567),w=h(42654),P=h(22868),O=h(24850),L=h(27221),N=h(40537),V=h(12474),W=h(72986),tt=h(80529),st=h(11481);const ct=["*"];let bt;function wt(re){return function Dt(){if(void 0===bt&&(bt=null,typeof window<"u")){const re=window;void 0!==re.trustedTypes&&(bt=re.trustedTypes.createPolicy("angular#components",{createHTML:Xt=>Xt}))}return bt}()?.createHTML(re)||re}function qt(re){return Error(`Unable to find icon with the name "${re}"`)}function yt(re){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${re}".`)}function At(re){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${re}".`)}class xt{constructor(Xt,oe,Me){this.url=Xt,this.svgText=oe,this.options=Me}}let pt=(()=>{class re{constructor(oe,Me,en,_n){this._httpClient=oe,this._sanitizer=Me,this._errorHandler=_n,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=en}addSvgIcon(oe,Me,en){return this.addSvgIconInNamespace("",oe,Me,en)}addSvgIconLiteral(oe,Me,en){return this.addSvgIconLiteralInNamespace("",oe,Me,en)}addSvgIconInNamespace(oe,Me,en,_n){return this._addSvgIconConfig(oe,Me,new xt(en,null,_n))}addSvgIconResolver(oe){return this._resolvers.push(oe),this}addSvgIconLiteralInNamespace(oe,Me,en,_n){const xe=this._sanitizer.sanitize(u.q3G.HTML,en);if(!xe)throw At(en);const vn=wt(xe);return this._addSvgIconConfig(oe,Me,new xt("",vn,_n))}addSvgIconSet(oe,Me){return this.addSvgIconSetInNamespace("",oe,Me)}addSvgIconSetLiteral(oe,Me){return this.addSvgIconSetLiteralInNamespace("",oe,Me)}addSvgIconSetInNamespace(oe,Me,en){return this._addSvgIconSetConfig(oe,new xt(Me,null,en))}addSvgIconSetLiteralInNamespace(oe,Me,en){const _n=this._sanitizer.sanitize(u.q3G.HTML,Me);if(!_n)throw At(Me);const xe=wt(_n);return this._addSvgIconSetConfig(oe,new xt("",xe,en))}registerFontClassAlias(oe,Me=oe){return this._fontCssClassesByAlias.set(oe,Me),this}classNameForFontAlias(oe){return this._fontCssClassesByAlias.get(oe)||oe}setDefaultFontSetClass(...oe){return this._defaultFontSetClass=oe,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(oe){const Me=this._sanitizer.sanitize(u.q3G.RESOURCE_URL,oe);if(!Me)throw yt(oe);const en=this._cachedIconsByUrl.get(Me);return en?(0,t.of)(St(en)):this._loadSvgIconFromConfig(new xt(oe,null)).pipe((0,P.b)(_n=>this._cachedIconsByUrl.set(Me,_n)),(0,O.U)(_n=>St(_n)))}getNamedSvgIcon(oe,Me=""){const en=ce(Me,oe);let _n=this._svgIconConfigs.get(en);if(_n)return this._getSvgFromConfig(_n);if(_n=this._getIconConfigFromResolvers(Me,oe),_n)return this._svgIconConfigs.set(en,_n),this._getSvgFromConfig(_n);const xe=this._iconSetConfigs.get(Me);return xe?this._getSvgFromIconSetConfigs(oe,xe):(0,T._)(qt(en))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(oe){return oe.svgText?(0,t.of)(St(this._svgElementFromConfig(oe))):this._loadSvgIconFromConfig(oe).pipe((0,O.U)(Me=>St(Me)))}_getSvgFromIconSetConfigs(oe,Me){const en=this._extractIconWithNameFromAnySet(oe,Me);if(en)return(0,t.of)(en);const _n=Me.filter(xe=>!xe.svgText).map(xe=>this._loadSvgIconSetFromConfig(xe).pipe((0,L.K)(vn=>{const un=`Loading icon set URL: ${this._sanitizer.sanitize(u.q3G.RESOURCE_URL,xe.url)} failed: ${vn.message}`;return this._errorHandler.handleError(new Error(un)),(0,t.of)(null)})));return(0,U.D)(_n).pipe((0,O.U)(()=>{const xe=this._extractIconWithNameFromAnySet(oe,Me);if(!xe)throw qt(oe);return xe}))}_extractIconWithNameFromAnySet(oe,Me){for(let en=Me.length-1;en>=0;en--){const _n=Me[en];if(_n.svgText&&_n.svgText.toString().indexOf(oe)>-1){const xe=this._svgElementFromConfig(_n),vn=this._extractSvgIconFromSet(xe,oe,_n.options);if(vn)return vn}}return null}_loadSvgIconFromConfig(oe){return this._fetchIcon(oe).pipe((0,P.b)(Me=>oe.svgText=Me),(0,O.U)(()=>this._svgElementFromConfig(oe)))}_loadSvgIconSetFromConfig(oe){return oe.svgText?(0,t.of)(null):this._fetchIcon(oe).pipe((0,P.b)(Me=>oe.svgText=Me))}_extractSvgIconFromSet(oe,Me,en){const _n=oe.querySelector(`[id="${Me}"]`);if(!_n)return null;const xe=_n.cloneNode(!0);if(xe.removeAttribute("id"),"svg"===xe.nodeName.toLowerCase())return this._setSvgAttributes(xe,en);if("symbol"===xe.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(xe),en);const vn=this._svgElementFromString(wt(""));return vn.appendChild(xe),this._setSvgAttributes(vn,en)}_svgElementFromString(oe){const Me=this._document.createElement("DIV");Me.innerHTML=oe;const en=Me.querySelector("svg");if(!en)throw Error(" tag not found");return en}_toSvgElement(oe){const Me=this._svgElementFromString(wt("")),en=oe.attributes;for(let _n=0;_nwt(un)),(0,N.x)(()=>this._inProgressUrlFetches.delete(xe)),(0,V.B)());return this._inProgressUrlFetches.set(xe,ke),ke}_addSvgIconConfig(oe,Me,en){return this._svgIconConfigs.set(ce(oe,Me),en),this}_addSvgIconSetConfig(oe,Me){const en=this._iconSetConfigs.get(oe);return en?en.push(Me):this._iconSetConfigs.set(oe,[Me]),this}_svgElementFromConfig(oe){if(!oe.svgElement){const Me=this._svgElementFromString(oe.svgText);this._setSvgAttributes(Me,oe.options),oe.svgElement=Me}return oe.svgElement}_getIconConfigFromResolvers(oe,Me){for(let en=0;enXt?Xt.pathname+Xt.search:""}}}),Ge=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Gt=Ge.map(re=>`[${re}]`).join(", "),Te=/^url\(['"]?#(.*?)['"]?\)$/;let ne=(()=>{class re extends ve{constructor(oe,Me,en,_n,xe,vn){super(oe),this._iconRegistry=Me,this._location=_n,this._errorHandler=xe,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=w.w.EMPTY,vn&&(vn.color&&(this.color=this.defaultColor=vn.color),vn.fontSet&&(this.fontSet=vn.fontSet)),en||oe.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(oe){this._inline=(0,x.Ig)(oe)}get svgIcon(){return this._svgIcon}set svgIcon(oe){oe!==this._svgIcon&&(oe?this._updateSvgIcon(oe):this._svgIcon&&this._clearSvgElement(),this._svgIcon=oe)}get fontSet(){return this._fontSet}set fontSet(oe){const Me=this._cleanupFontValue(oe);Me!==this._fontSet&&(this._fontSet=Me,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(oe){const Me=this._cleanupFontValue(oe);Me!==this._fontIcon&&(this._fontIcon=Me,this._updateFontIconClasses())}_splitIconName(oe){if(!oe)return["",""];const Me=oe.split(":");switch(Me.length){case 1:return["",Me[0]];case 2:return Me;default:throw Error(`Invalid icon name: "${oe}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const oe=this._elementsWithExternalReferences;if(oe&&oe.size){const Me=this._location.getPathname();Me!==this._previousPath&&(this._previousPath=Me,this._prependPathToReferences(Me))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(oe){this._clearSvgElement();const Me=this._location.getPathname();this._previousPath=Me,this._cacheChildrenWithExternalReferences(oe),this._prependPathToReferences(Me),this._elementRef.nativeElement.appendChild(oe)}_clearSvgElement(){const oe=this._elementRef.nativeElement;let Me=oe.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();Me--;){const en=oe.childNodes[Me];(1!==en.nodeType||"svg"===en.nodeName.toLowerCase())&&en.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const oe=this._elementRef.nativeElement,Me=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(en=>en.length>0);this._previousFontSetClass.forEach(en=>oe.classList.remove(en)),Me.forEach(en=>oe.classList.add(en)),this._previousFontSetClass=Me,this.fontIcon!==this._previousFontIconClass&&!Me.includes("mat-ligature-font")&&(this._previousFontIconClass&&oe.classList.remove(this._previousFontIconClass),this.fontIcon&&oe.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(oe){return"string"==typeof oe?oe.trim().split(" ")[0]:oe}_prependPathToReferences(oe){const Me=this._elementsWithExternalReferences;Me&&Me.forEach((en,_n)=>{en.forEach(xe=>{_n.setAttribute(xe.name,`url('${oe}#${xe.value}')`)})})}_cacheChildrenWithExternalReferences(oe){const Me=oe.querySelectorAll(Gt),en=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let _n=0;_n{const vn=Me[_n],ke=vn.getAttribute(xe),un=ke?ke.match(Te):null;if(un){let Dn=en.get(vn);Dn||(Dn=[],en.set(vn,Dn)),Dn.push({name:xe,value:un[1]})}})}_updateSvgIcon(oe){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),oe){const[Me,en]=this._splitIconName(oe);Me&&(this._svgNamespace=Me),en&&(this._svgName=en),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(en,Me).pipe((0,W.q)(1)).subscribe(_n=>this._setSvgElement(_n),_n=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${Me}:${en}! ${_n.message}`))})}}}return re.\u0275fac=function(oe){return new(oe||re)(u.Y36(u.SBq),u.Y36(pt),u.$8M("aria-hidden"),u.Y36(Le),u.Y36(u.qLn),u.Y36(fe,8))},re.\u0275cmp=u.Xpm({type:re,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(oe,Me){2&oe&&(u.uIk("data-mat-icon-type",Me._usingFontIcon()?"font":"svg")("data-mat-icon-name",Me._svgName||Me.fontIcon)("data-mat-icon-namespace",Me._svgNamespace||Me.fontSet)("fontIcon",Me._usingFontIcon()?Me.fontIcon:null),u.ekj("mat-icon-inline",Me.inline)("mat-icon-no-color","primary"!==Me.color&&"accent"!==Me.color&&"warn"!==Me.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[u.qOj],ngContentSelectors:ct,decls:1,vars:0,template:function(oe,Me){1&oe&&(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}),re})(),jt=(()=>{class re{}return re.\u0275fac=function(oe){return new(oe||re)},re.\u0275mod=u.oAB({type:re}),re.\u0275inj=u.cJS({imports:[p.BQ,p.BQ]}),re})()},284:(X,j,h)=>{"use strict";h.d(j,{Jk:()=>O,Nt:()=>W,c:()=>tt});var u=h(21281),p=h(83353),x=h(39349),v=h(94650),t=h(24006),T=h(3238),U=h(59549),w=h(8929);const O=new v.OlP("MAT_INPUT_VALUE_ACCESSOR"),L=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let N=0;const V=(0,T.FD)(class{constructor(st,ct,bt,Dt){this._defaultErrorStateMatcher=st,this._parentForm=ct,this._parentFormGroup=bt,this.ngControl=Dt,this.stateChanges=new w.xQ}});let W=(()=>{class st extends V{constructor(bt,Dt,wt,qt,Jt,yt,At,xt,pt,Ot){super(yt,qt,Jt,wt),this._elementRef=bt,this._platform=Dt,this._autofillMonitor=xt,this._formField=Ot,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(ce=>(0,p.qK)().has(ce)),this._iOSKeyupListener=ce=>{const Vt=ce.target;!Vt.value&&0===Vt.selectionStart&&0===Vt.selectionEnd&&(Vt.setSelectionRange(1,1),Vt.setSelectionRange(0,0))};const Bt=this._elementRef.nativeElement,St=Bt.nodeName.toLowerCase();this._inputValueAccessor=At||Bt,this._previousNativeValue=this.value,this.id=this.id,Dt.IOS&&pt.runOutsideAngular(()=>{bt.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===St,this._isTextarea="textarea"===St,this._isInFormField=!!Ot,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(bt){this._disabled=(0,u.Ig)(bt),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(bt){this._id=bt||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(t.kI.required)??!1}set required(bt){this._required=(0,u.Ig)(bt)}get type(){return this._type}set type(bt){this._type=bt||"text",this._validateType(),!this._isTextarea&&(0,p.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(bt){bt!==this.value&&(this._inputValueAccessor.value=bt,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(bt){this._readonly=(0,u.Ig)(bt)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(bt=>{this.autofilled=bt.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(bt){this._elementRef.nativeElement.focus(bt)}_focusChanged(bt){bt!==this.focused&&(this.focused=bt,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const bt=this._formField,Dt=bt&&"legacy"===bt.appearance&&!bt._hasLabel?.()?null:this.placeholder;if(Dt!==this._previousPlaceholder){const wt=this._elementRef.nativeElement;this._previousPlaceholder=Dt,Dt?wt.setAttribute("placeholder",Dt):wt.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const bt=this._elementRef.nativeElement.value;this._previousNativeValue!==bt&&(this._previousNativeValue=bt,this.stateChanges.next())}_validateType(){L.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let bt=this._elementRef.nativeElement.validity;return bt&&bt.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const bt=this._elementRef.nativeElement,Dt=bt.options[0];return this.focused||bt.multiple||!this.empty||!!(bt.selectedIndex>-1&&Dt&&Dt.label)}return this.focused||!this.empty}setDescribedByIds(bt){bt.length?this._elementRef.nativeElement.setAttribute("aria-describedby",bt.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const bt=this._elementRef.nativeElement;return this._isNativeSelect&&(bt.multiple||bt.size>1)}}return st.\u0275fac=function(bt){return new(bt||st)(v.Y36(v.SBq),v.Y36(p.t4),v.Y36(t.a5,10),v.Y36(t.F,8),v.Y36(t.sg,8),v.Y36(T.rD),v.Y36(O,10),v.Y36(x.Lq),v.Y36(v.R0b),v.Y36(U.G_,8))},st.\u0275dir=v.lG2({type:st,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(bt,Dt){1&bt&&v.NdJ("focus",function(){return Dt._focusChanged(!0)})("blur",function(){return Dt._focusChanged(!1)})("input",function(){return Dt._onInput()}),2&bt&&(v.Ikx("disabled",Dt.disabled)("required",Dt.required),v.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),v.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:[v._Bn([{provide:U.Eo,useExisting:st}]),v.qOj,v.TTD]}),st})(),tt=(()=>{class st{}return st.\u0275fac=function(bt){return new(bt||st)},st.\u0275mod=v.oAB({type:st}),st.\u0275inj=v.cJS({providers:[T.rD],imports:[x.Ky,U.lN,T.BQ,x.Ky,U.lN]}),st})()},96338:(X,j,h)=>{"use strict";h.d(j,{Hk:()=>xt,Nh:()=>Bt,Tg:()=>ce,gs:()=>St,i$:()=>pt,ie:()=>Gt});var u=h(36895),p=h(94650),x=h(3238),v=h(21281),t=h(8929),T=h(7625),N=(h(1059),h(12687),h(95017),h(29521),h(24006),h(44850));const V=["*"],tt=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],st=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],qt=(0,x.Id)((0,x.Kr)(class{})),Jt=(0,x.Kr)(class{}),yt=new p.OlP("MatList"),At=new p.OlP("MatNavList");let xt=(()=>{class Te extends qt{constructor(){super(...arguments),this._stateChanges=new t.xQ}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return Te.\u0275fac=function(){let ne;return function(re){return(ne||(ne=p.n5z(Te)))(re||Te)}}(),Te.\u0275cmp=p.Xpm({type:Te,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[p._Bn([{provide:At,useExisting:Te}]),p.qOj,p.TTD],ngContentSelectors:V,decls:1,vars:0,template:function(jt,re){1&jt&&(p.F$t(),p.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}),Te})(),pt=(()=>{class Te extends qt{constructor(jt){super(),this._elementRef=jt,this._stateChanges=new t.xQ,"action-list"===this._getListType()&&(jt.nativeElement.classList.add("mat-action-list"),jt.nativeElement.setAttribute("role","group"))}_getListType(){const jt=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===jt?"list":"mat-action-list"===jt?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return Te.\u0275fac=function(jt){return new(jt||Te)(p.Y36(p.SBq))},Te.\u0275cmp=p.Xpm({type:Te,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[p._Bn([{provide:yt,useExisting:Te}]),p.qOj,p.TTD],ngContentSelectors:V,decls:1,vars:0,template:function(jt,re){1&jt&&(p.F$t(),p.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}),Te})(),Ot=(()=>{class Te{}return Te.\u0275fac=function(jt){return new(jt||Te)},Te.\u0275dir=p.lG2({type:Te,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),Te})(),Bt=(()=>{class Te{}return Te.\u0275fac=function(jt){return new(jt||Te)},Te.\u0275dir=p.lG2({type:Te,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),Te})(),St=(()=>{class Te{}return Te.\u0275fac=function(jt){return new(jt||Te)},Te.\u0275dir=p.lG2({type:Te,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-subheader"]}),Te})(),ce=(()=>{class Te extends Jt{constructor(jt,re,Xt,oe){super(),this._element=jt,this._isInteractiveList=!1,this._destroyed=new t.xQ,this._disabled=!1,this._isInteractiveList=!!(Xt||oe&&"action-list"===oe._getListType()),this._list=Xt||oe;const Me=this._getHostElement();"button"===Me.nodeName.toLowerCase()&&!Me.hasAttribute("type")&&Me.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe((0,T.R)(this._destroyed)).subscribe(()=>{re.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(jt){this._disabled=(0,v.Ig)(jt)}ngAfterContentInit(){(0,x.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 Te.\u0275fac=function(jt){return new(jt||Te)(p.Y36(p.SBq),p.Y36(p.sBO),p.Y36(At,8),p.Y36(yt,8))},Te.\u0275cmp=p.Xpm({type:Te,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(jt,re,Xt){if(1&jt&&(p.Suo(Xt,Ot,5),p.Suo(Xt,Bt,5),p.Suo(Xt,x.X2,5)),2&jt){let oe;p.iGM(oe=p.CRH())&&(re._avatar=oe.first),p.iGM(oe=p.CRH())&&(re._icon=oe.first),p.iGM(oe=p.CRH())&&(re._lines=oe)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:4,hostBindings:function(jt,re){2&jt&&p.ekj("mat-list-item-disabled",re.disabled)("mat-list-item-with-avatar",re._avatar||re._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[p.qOj],ngContentSelectors:st,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(jt,re){1&jt&&(p.F$t(tt),p.TgZ(0,"span",0),p._UZ(1,"span",1),p.Hsn(2),p.TgZ(3,"span",2),p.Hsn(4,1),p.qZA(),p.Hsn(5,2),p.qZA()),2&jt&&(p.xp6(1),p.Q6J("matRippleTrigger",re._getHostElement())("matRippleDisabled",re._isRippleDisabled()))},dependencies:[x.wG],encapsulation:2,changeDetection:0}),Te})(),Gt=(()=>{class Te{}return Te.\u0275fac=function(jt){return new(jt||Te)},Te.\u0275mod=p.oAB({type:Te}),Te.\u0275inj=p.cJS({imports:[x.uc,x.si,x.BQ,x.us,u.ez,x.uc,x.BQ,x.us,N.t]}),Te})()},28255:(X,j,h)=>{"use strict";h.d(j,{OP:()=>ne,Tx:()=>ii,VK:()=>Me,p6:()=>Dn});var u=h(12687),p=h(21281),x=h(29521),v=h(94650),t=h(8929),T=h(42654),U=h(36787),w=h(21086),P=h(8139),O=h(1059),L=h(87545),N=h(72986),V=h(7625),W=h(92198),tt=h(18583),st=h(37340),ct=h(84080),bt=h(36895),Dt=h(3238),wt=h(40445),qt=h(98184),Jt=h(83353),yt=h(67376);const At=["mat-menu-item",""];function xt(_i,oi){1&_i&&(v.O4$(),v.TgZ(0,"svg",2),v._UZ(1,"polygon",3),v.qZA())}const pt=["*"];function Ot(_i,oi){if(1&_i){const Qe=v.EpF();v.TgZ(0,"div",0),v.NdJ("keydown",function(it){v.CHM(Qe);const K=v.oxw();return v.KtG(K._handleKeydown(it))})("click",function(){v.CHM(Qe);const it=v.oxw();return v.KtG(it.closed.emit("click"))})("@transformMenu.start",function(it){v.CHM(Qe);const K=v.oxw();return v.KtG(K._onAnimationStart(it))})("@transformMenu.done",function(it){v.CHM(Qe);const K=v.oxw();return v.KtG(K._onAnimationDone(it))}),v.TgZ(1,"div",1),v.Hsn(2),v.qZA()()}if(2&_i){const Qe=v.oxw();v.Q6J("id",Qe.panelId)("ngClass",Qe._classList)("@transformMenu",Qe._panelAnimationState),v.uIk("aria-label",Qe.ariaLabel||null)("aria-labelledby",Qe.ariaLabelledby||null)("aria-describedby",Qe.ariaDescribedby||null)}}const Bt={transformMenu:(0,st.X$)("transformMenu",[(0,st.SB)("void",(0,st.oB)({opacity:0,transform:"scale(0.8)"})),(0,st.eR)("void => enter",(0,st.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,st.oB)({opacity:1,transform:"scale(1)"}))),(0,st.eR)("* => void",(0,st.jt)("100ms 25ms linear",(0,st.oB)({opacity:0})))]),fadeInItems:(0,st.X$)("fadeInItems",[(0,st.SB)("showing",(0,st.oB)({opacity:1})),(0,st.eR)("void => *",[(0,st.oB)({opacity:0}),(0,st.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Vt=new v.OlP("MatMenuContent"),Gt=new v.OlP("MAT_MENU_PANEL"),Te=(0,Dt.Kr)((0,Dt.Id)(class{}));let ne=(()=>{class _i extends Te{constructor(Qe,te,it,K,Tt){super(),this._elementRef=Qe,this._document=te,this._focusMonitor=it,this._parentMenu=K,this._changeDetectorRef=Tt,this.role="menuitem",this._hovered=new t.xQ,this._focused=new t.xQ,this._highlighted=!1,this._triggersSubmenu=!1,K?.addItem?.(this)}focus(Qe,te){this._focusMonitor&&Qe?this._focusMonitor.focusVia(this._getHostElement(),Qe,te):this._getHostElement().focus(te),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(Qe){this.disabled&&(Qe.preventDefault(),Qe.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const Qe=this._elementRef.nativeElement.cloneNode(!0),te=Qe.querySelectorAll("mat-icon, .material-icons");for(let it=0;it{class _i{constructor(Qe,te,it,K){this._elementRef=Qe,this._ngZone=te,this._defaultOptions=it,this._changeDetectorRef=K,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new v.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 v.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+Xt++}get xPosition(){return this._xPosition}set xPosition(Qe){this._xPosition=Qe,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(Qe){this._yPosition=Qe,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(Qe){this._overlapTrigger=(0,p.Ig)(Qe)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(Qe){this._hasBackdrop=(0,p.Ig)(Qe)}set panelClass(Qe){const te=this._previousPanelClass;te&&te.length&&te.split(" ").forEach(it=>{this._classList[it]=!1}),this._previousPanelClass=Qe,Qe&&Qe.length&&(Qe.split(" ").forEach(it=>{this._classList[it]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(Qe){this.panelClass=Qe}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)(Qe=>(0,U.T)(...Qe.map(te=>te._focused)))).subscribe(Qe=>this._keyManager.updateActiveItem(Qe)),this._directDescendantItems.changes.subscribe(Qe=>{const te=this._keyManager;if("enter"===this._panelAnimationState&&te.activeItem?._hasFocus()){const it=Qe.toArray(),K=Math.max(0,Math.min(it.length-1,te.activeItemIndex||0));it[K]&&!it[K].disabled?te.setActiveItem(K):te.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)(te=>(0,U.T)(...te.map(it=>it._hovered))))}addItem(Qe){}removeItem(Qe){}_handleKeydown(Qe){const te=Qe.keyCode,it=this._keyManager;switch(te){case x.hY:(0,x.Vb)(Qe)||(Qe.preventDefault(),this.closed.emit("keydown"));break;case x.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case x.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(te===x.LH||te===x.JH)&&it.setFocusOrigin("keyboard"),void it.onKeydown(Qe)}Qe.stopPropagation()}focusFirstItem(Qe="program"){this._ngZone.onStable.pipe((0,N.q)(1)).subscribe(()=>{let te=null;if(this._directDescendantItems.length&&(te=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!te||!te.contains(document.activeElement)){const it=this._keyManager;it.setFocusOrigin(Qe).setFirstItemActive(),!it.activeItem&&te&&te.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(Qe){const te=Math.min(this._baseElevation+Qe,24),it=`${this._elevationPrefix}${te}`,K=Object.keys(this._classList).find(Tt=>Tt.startsWith(this._elevationPrefix));(!K||K===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[it]=!0,this._previousElevation=it)}setPositionClasses(Qe=this.xPosition,te=this.yPosition){const it=this._classList;it["mat-menu-before"]="before"===Qe,it["mat-menu-after"]="after"===Qe,it["mat-menu-above"]="above"===te,it["mat-menu-below"]="below"===te,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(Qe){this._animationDone.next(Qe),this._isAnimating=!1}_onAnimationStart(Qe){this._isAnimating=!0,"enter"===Qe.toState&&0===this._keyManager.activeItemIndex&&(Qe.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,O.O)(this._allItems)).subscribe(Qe=>{this._directDescendantItems.reset(Qe.filter(te=>te._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return _i.\u0275fac=function(Qe){return new(Qe||_i)(v.Y36(v.SBq),v.Y36(v.R0b),v.Y36(jt),v.Y36(v.sBO))},_i.\u0275dir=v.lG2({type:_i,contentQueries:function(Qe,te,it){if(1&Qe&&(v.Suo(it,Vt,5),v.Suo(it,ne,5),v.Suo(it,ne,4)),2&Qe){let K;v.iGM(K=v.CRH())&&(te.lazyContent=K.first),v.iGM(K=v.CRH())&&(te._allItems=K),v.iGM(K=v.CRH())&&(te.items=K)}},viewQuery:function(Qe,te){if(1&Qe&&v.Gf(v.Rgc,5),2&Qe){let it;v.iGM(it=v.CRH())&&(te.templateRef=it.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})(),Me=(()=>{class _i extends oe{constructor(Qe,te,it,K){super(Qe,te,it,K),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return _i.\u0275fac=function(Qe){return new(Qe||_i)(v.Y36(v.SBq),v.Y36(v.R0b),v.Y36(jt),v.Y36(v.sBO))},_i.\u0275cmp=v.Xpm({type:_i,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(Qe,te){2&Qe&&v.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[v._Bn([{provide:Gt,useExisting:_i}]),v.qOj],ngContentSelectors:pt,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(Qe,te){1&Qe&&(v.F$t(),v.YNc(0,Ot,3,6,"ng-template"))},dependencies:[bt.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 en=new v.OlP("mat-menu-scroll-strategy"),xe={provide:en,deps:[qt.aV],useFactory:function _n(_i){return()=>_i.scrollStrategies.reposition()}},ke=(0,Jt.i$)({passive:!0});let un=(()=>{class _i{constructor(Qe,te,it,K,Tt,Rt,le,be,De){this._overlay=Qe,this._element=te,this._viewContainerRef=it,this._menuItemInstance=Rt,this._dir=le,this._focusMonitor=be,this._ngZone=De,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=T.w.EMPTY,this._hoverSubscription=T.w.EMPTY,this._menuCloseSubscription=T.w.EMPTY,this._handleTouchStart=hn=>{(0,u.yG)(hn)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new v.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new v.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=K,this._parentMaterialMenu=Tt instanceof oe?Tt:void 0,te.nativeElement.addEventListener("touchstart",this._handleTouchStart,ke),Rt&&(Rt._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(Qe){this.menu=Qe}get menu(){return this._menu}set menu(Qe){Qe!==this._menu&&(this._menu=Qe,this._menuCloseSubscription.unsubscribe(),Qe&&(this._menuCloseSubscription=Qe.close.subscribe(te=>{this._destroyMenu(te),("click"===te||"tab"===te)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(te)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,ke),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 Qe=this.menu;if(this._menuOpen||!Qe)return;const te=this._createOverlay(Qe),it=te.getConfig(),K=it.positionStrategy;this._setPosition(Qe,K),it.hasBackdrop=Qe.hasBackdrop??!this.triggersSubmenu(),te.attach(this._getPortal(Qe)),Qe.lazyContent&&Qe.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(Qe),Qe instanceof oe&&(Qe._startAnimation(),Qe._directDescendantItems.changes.pipe((0,V.R)(Qe.close)).subscribe(()=>{K.withLockedPosition(!1).reapplyLastPosition(),K.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(Qe,te){this._focusMonitor&&Qe?this._focusMonitor.focusVia(this._element,Qe,te):this._element.nativeElement.focus(te)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(Qe){if(!this._overlayRef||!this.menuOpen)return;const te=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===Qe||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,te instanceof oe?(te._resetAnimation(),te.lazyContent?te._animationDone.pipe((0,W.h)(it=>"void"===it.toState),(0,N.q)(1),(0,V.R)(te.lazyContent._attached)).subscribe({next:()=>te.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),te?.lazyContent?.detach())}_initMenu(Qe){Qe.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,Qe.direction=this.dir,this._setMenuElevation(Qe),Qe.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(Qe){if(Qe.setElevation){let te=0,it=Qe.parentMenu;for(;it;)te++,it=it.parentMenu;Qe.setElevation(te)}}_setIsMenuOpen(Qe){this._menuOpen=Qe,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(Qe)}_createOverlay(Qe){if(!this._overlayRef){const te=this._getOverlayConfig(Qe);this._subscribeToPositions(Qe,te.positionStrategy),this._overlayRef=this._overlay.create(te),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(Qe){return new qt.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:Qe.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:Qe.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(Qe,te){Qe.setPositionClasses&&te.positionChanges.subscribe(it=>{const K="start"===it.connectionPair.overlayX?"after":"before",Tt="top"===it.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>Qe.setPositionClasses(K,Tt)):Qe.setPositionClasses(K,Tt)})}_setPosition(Qe,te){let[it,K]="before"===Qe.xPosition?["end","start"]:["start","end"],[Tt,Rt]="above"===Qe.yPosition?["bottom","top"]:["top","bottom"],[le,be]=[Tt,Rt],[De,hn]=[it,K],qn=0;if(this.triggersSubmenu()){if(hn=it="before"===Qe.xPosition?"start":"end",K=De="end"===it?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const mi=this._parentMaterialMenu.items.first;this._parentInnerPadding=mi?mi._getHostElement().offsetTop:0}qn="bottom"===Tt?this._parentInnerPadding:-this._parentInnerPadding}}else Qe.overlapTrigger||(le="top"===Tt?"bottom":"top",be="top"===Rt?"bottom":"top");te.withPositions([{originX:it,originY:le,overlayX:De,overlayY:Tt,offsetY:qn},{originX:K,originY:le,overlayX:hn,overlayY:Tt,offsetY:qn},{originX:it,originY:be,overlayX:De,overlayY:Rt,offsetY:-qn},{originX:K,originY:be,overlayX:hn,overlayY:Rt,offsetY:-qn}])}_menuClosingActions(){const Qe=this._overlayRef.backdropClick(),te=this._overlayRef.detachments(),it=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,w.of)(),K=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,W.h)(Tt=>Tt!==this._menuItemInstance),(0,W.h)(()=>this._menuOpen)):(0,w.of)();return(0,U.T)(Qe,it,K,te)}_handleMousedown(Qe){(0,u.X6)(Qe)||(this._openedBy=0===Qe.button?"mouse":void 0,this.triggersSubmenu()&&Qe.preventDefault())}_handleKeydown(Qe){const te=Qe.keyCode;(te===x.K5||te===x.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(te===x.SV&&"ltr"===this.dir||te===x.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(Qe){this.triggersSubmenu()?(Qe.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,W.h)(Qe=>Qe===this._menuItemInstance&&!Qe.disabled),(0,tt.g)(0,P.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof oe&&this.menu._isAnimating?this.menu._animationDone.pipe((0,N.q)(1),(0,tt.g)(0,P.E),(0,V.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(Qe){return(!this._portal||this._portal.templateRef!==Qe.templateRef)&&(this._portal=new ct.UE(Qe.templateRef,this._viewContainerRef)),this._portal}}return _i.\u0275fac=function(Qe){return new(Qe||_i)(v.Y36(qt.aV),v.Y36(v.SBq),v.Y36(v.s_b),v.Y36(en),v.Y36(Gt,8),v.Y36(ne,10),v.Y36(wt.Is,8),v.Y36(u.tE),v.Y36(v.R0b))},_i.\u0275dir=v.lG2({type:_i,hostVars:3,hostBindings:function(Qe,te){1&Qe&&v.NdJ("click",function(K){return te._handleClick(K)})("mousedown",function(K){return te._handleMousedown(K)})("keydown",function(K){return te._handleKeydown(K)}),2&Qe&&v.uIk("aria-haspopup",te.menu?"menu":null)("aria-expanded",te.menuOpen||null)("aria-controls",te.menuOpen?te.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})(),Dn=(()=>{class _i extends un{}return _i.\u0275fac=function(){let oi;return function(te){return(oi||(oi=v.n5z(_i)))(te||_i)}}(),_i.\u0275dir=v.lG2({type:_i,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[v.qOj]}),_i})(),ii=(()=>{class _i{}return _i.\u0275fac=function(Qe){return new(Qe||_i)},_i.\u0275mod=v.oAB({type:_i}),_i.\u0275inj=v.cJS({providers:[xe],imports:[bt.ez,Dt.BQ,Dt.si,qt.U8,yt.ZD,Dt.BQ]}),_i})()},98739:(X,j,h)=>{"use strict";h.d(j,{NW:()=>At,TU:()=>xt});var u=h(36895),p=h(94650),x=h(3238),v=h(4859),t=h(84385),T=h(10266),U=h(21281),w=h(8929),P=h(59549);function O(pt,Ot){if(1&pt&&(p.TgZ(0,"mat-option",19),p._uU(1),p.qZA()),2&pt){const Bt=Ot.$implicit;p.Q6J("value",Bt),p.xp6(1),p.hij(" ",Bt," ")}}function L(pt,Ot){if(1&pt){const Bt=p.EpF();p.TgZ(0,"mat-form-field",16)(1,"mat-select",17),p.NdJ("selectionChange",function(ce){p.CHM(Bt);const Vt=p.oxw(2);return p.KtG(Vt._changePageSize(ce.value))}),p.YNc(2,O,2,2,"mat-option",18),p.qZA()()}if(2&pt){const Bt=p.oxw(2);p.Q6J("appearance",Bt._formFieldAppearance)("color",Bt.color),p.xp6(1),p.Q6J("value",Bt.pageSize)("disabled",Bt.disabled)("panelClass",Bt.selectConfig.panelClass||"")("disableOptionCentering",Bt.selectConfig.disableOptionCentering)("aria-label",Bt._intl.itemsPerPageLabel),p.xp6(1),p.Q6J("ngForOf",Bt._displayedPageSizeOptions)}}function N(pt,Ot){if(1&pt&&(p.TgZ(0,"div",20),p._uU(1),p.qZA()),2&pt){const Bt=p.oxw(2);p.xp6(1),p.Oqu(Bt.pageSize)}}function V(pt,Ot){if(1&pt&&(p.TgZ(0,"div",12)(1,"div",13),p._uU(2),p.qZA(),p.YNc(3,L,3,8,"mat-form-field",14),p.YNc(4,N,2,1,"div",15),p.qZA()),2&pt){const Bt=p.oxw();p.xp6(2),p.hij(" ",Bt._intl.itemsPerPageLabel," "),p.xp6(1),p.Q6J("ngIf",Bt._displayedPageSizeOptions.length>1),p.xp6(1),p.Q6J("ngIf",Bt._displayedPageSizeOptions.length<=1)}}function W(pt,Ot){if(1&pt){const Bt=p.EpF();p.TgZ(0,"button",21),p.NdJ("click",function(){p.CHM(Bt);const ce=p.oxw();return p.KtG(ce.firstPage())}),p.O4$(),p.TgZ(1,"svg",7),p._UZ(2,"path",22),p.qZA()()}if(2&pt){const Bt=p.oxw();p.Q6J("matTooltip",Bt._intl.firstPageLabel)("matTooltipDisabled",Bt._previousButtonsDisabled())("matTooltipPosition","above")("disabled",Bt._previousButtonsDisabled()),p.uIk("aria-label",Bt._intl.firstPageLabel)}}function tt(pt,Ot){if(1&pt){const Bt=p.EpF();p.O4$(),p.kcU(),p.TgZ(0,"button",23),p.NdJ("click",function(){p.CHM(Bt);const ce=p.oxw();return p.KtG(ce.lastPage())}),p.O4$(),p.TgZ(1,"svg",7),p._UZ(2,"path",24),p.qZA()()}if(2&pt){const Bt=p.oxw();p.Q6J("matTooltip",Bt._intl.lastPageLabel)("matTooltipDisabled",Bt._nextButtonsDisabled())("matTooltipPosition","above")("disabled",Bt._nextButtonsDisabled()),p.uIk("aria-label",Bt._intl.lastPageLabel)}}let st=(()=>{class pt{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,St,ce)=>{if(0==ce||0==St)return`0 of ${ce}`;const Vt=Bt*St;return`${Vt+1} \u2013 ${Vt<(ce=Math.max(ce,0))?Math.min(Vt+St,ce):Vt+St} of ${ce}`}}}return pt.\u0275fac=function(Bt){return new(Bt||pt)},pt.\u0275prov=p.Yz7({token:pt,factory:pt.\u0275fac,providedIn:"root"}),pt})();const bt={provide:st,deps:[[new p.FiY,new p.tp0,st]],useFactory:function ct(pt){return pt||new st}},qt=new p.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),Jt=(0,x.Id)((0,x.dB)(class{}));let yt=(()=>{class pt extends Jt{constructor(Bt,St,ce){if(super(),this._intl=Bt,this._changeDetectorRef=St,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new p.vpe,this._intlChanges=Bt.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),ce){const{pageSize:Vt,pageSizeOptions:ve,hidePageSize:fe,showFirstLastButtons:Le}=ce;null!=Vt&&(this._pageSize=Vt),null!=ve&&(this._pageSizeOptions=ve),null!=fe&&(this._hidePageSize=fe),null!=Le&&(this._showFirstLastButtons=Le)}}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(St=>(0,U.su)(St)),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-St),this._changeDetectorRef.markForCheck())}_emitPageEvent(Bt){this.page.emit({previousPageIndex:Bt,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return pt.\u0275fac=function(Bt){p.$Z()},pt.\u0275dir=p.lG2({type:pt,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[p.qOj]}),pt})(),At=(()=>{class pt extends yt{constructor(Bt,St,ce){super(Bt,St,ce),ce&&null!=ce.formFieldAppearance&&(this._formFieldAppearance=ce.formFieldAppearance)}}return pt.\u0275fac=function(Bt){return new(Bt||pt)(p.Y36(st),p.Y36(p.sBO),p.Y36(qt,8))},pt.\u0275cmp=p.Xpm({type:pt,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[p.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,St){1&Bt&&(p.TgZ(0,"div",0)(1,"div",1),p.YNc(2,V,5,3,"div",2),p.TgZ(3,"div",3)(4,"div",4),p._uU(5),p.qZA(),p.YNc(6,W,3,5,"button",5),p.TgZ(7,"button",6),p.NdJ("click",function(){return St.previousPage()}),p.O4$(),p.TgZ(8,"svg",7),p._UZ(9,"path",8),p.qZA()(),p.kcU(),p.TgZ(10,"button",9),p.NdJ("click",function(){return St.nextPage()}),p.O4$(),p.TgZ(11,"svg",7),p._UZ(12,"path",10),p.qZA()(),p.YNc(13,tt,3,5,"button",11),p.qZA()()()),2&Bt&&(p.xp6(2),p.Q6J("ngIf",!St.hidePageSize),p.xp6(3),p.hij(" ",St._intl.getRangeLabel(St.pageIndex,St.pageSize,St.length)," "),p.xp6(1),p.Q6J("ngIf",St.showFirstLastButtons),p.xp6(1),p.Q6J("matTooltip",St._intl.previousPageLabel)("matTooltipDisabled",St._previousButtonsDisabled())("matTooltipPosition","above")("disabled",St._previousButtonsDisabled()),p.uIk("aria-label",St._intl.previousPageLabel),p.xp6(3),p.Q6J("matTooltip",St._intl.nextPageLabel)("matTooltipDisabled",St._nextButtonsDisabled())("matTooltipPosition","above")("disabled",St._nextButtonsDisabled()),p.uIk("aria-label",St._intl.nextPageLabel),p.xp6(3),p.Q6J("ngIf",St.showFirstLastButtons))},dependencies:[u.sg,u.O5,v.lW,P.KE,t.gD,x.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}),pt})(),xt=(()=>{class pt{}return pt.\u0275fac=function(Bt){return new(Bt||pt)},pt.\u0275mod=p.oAB({type:pt}),pt.\u0275inj=p.cJS({providers:[bt],imports:[u.ez,v.ot,t.LD,T.AV,x.BQ]}),pt})()},73162:(X,j,h)=>{"use strict";h.d(j,{Cv:()=>st,pW:()=>W});var u=h(94650),p=h(36895),x=h(3238),v=h(21281),t=h(42654),T=h(23753),U=h(92198);const w=["primaryValueBar"],P=(0,x.pj)(class{constructor(ct){this._elementRef=ct}},"primary"),O=new u.OlP("mat-progress-bar-location",{providedIn:"root",factory:function L(){const ct=(0,u.f3M)(p.K0),bt=ct?ct.location:null;return{getPathname:()=>bt?bt.pathname+bt.search:""}}}),N=new u.OlP("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");let V=0,W=(()=>{class ct extends P{constructor(Dt,wt,qt,Jt,yt,At){super(Dt),this._ngZone=wt,this._animationMode=qt,this._changeDetectorRef=At,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-"+V++;const xt=Jt?Jt.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${xt}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===qt,yt&&(yt.color&&(this.color=this.defaultColor=yt.color),this.mode=yt.mode||this.mode)}get value(){return this._value}set value(Dt){this._value=tt((0,v.su)(Dt)||0),this._changeDetectorRef?.markForCheck()}get bufferValue(){return this._bufferValue}set bufferValue(Dt){this._bufferValue=tt(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)(wt=>wt.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 ct.\u0275fac=function(Dt){return new(Dt||ct)(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))},ct.\u0275cmp=u.Xpm({type:ct,selectors:[["mat-progress-bar"]],viewQuery:function(Dt,wt){if(1&Dt&&u.Gf(w,5),2&Dt){let qt;u.iGM(qt=u.CRH())&&(wt._primaryValueBar=qt.first)}},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(Dt,wt){2&Dt&&(u.uIk("aria-valuenow","indeterminate"===wt.mode||"query"===wt.mode?null:wt.value)("mode",wt.mode),u.ekj("_mat-animation-noopable",wt._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,wt){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",wt.progressbarId),u.xp6(2),u.uIk("fill",wt._rectangleFillValue),u.xp6(1),u.Q6J("ngStyle",wt._bufferTransform()),u.xp6(1),u.Q6J("ngStyle",wt._primaryTransform()))},dependencies:[p.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}),ct})();function tt(ct,bt=0,Dt=100){return Math.max(bt,Math.min(Dt,ct))}let st=(()=>{class ct{}return ct.\u0275fac=function(Dt){return new(Dt||ct)},ct.\u0275mod=u.oAB({type:ct}),ct.\u0275inj=u.cJS({imports:[p.ez,x.BQ,x.BQ]}),ct})()},51572:(X,j,h)=>{"use strict";h.d(j,{Cq:()=>ct,Ou:()=>st});var u=h(21281),p=h(83353),x=h(67376),v=h(36895),t=h(94650),T=h(3238),U=h(42654);function w(Dt,wt){if(1&Dt&&(t.O4$(),t._UZ(0,"circle",4)),2&Dt){const qt=t.oxw(),Jt=t.MAs(1);t.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+qt._spinnerAnimationLabel)("stroke-dashoffset",qt._getStrokeDashOffset(),"px")("stroke-dasharray",qt._getStrokeCircumference(),"px")("stroke-width",qt._getCircleStrokeWidth(),"%")("transform-origin",qt._getCircleTransformOrigin(Jt)),t.uIk("r",qt._getCircleRadius())}}function P(Dt,wt){if(1&Dt&&(t.O4$(),t._UZ(0,"circle",4)),2&Dt){const qt=t.oxw(),Jt=t.MAs(1);t.Udp("stroke-dashoffset",qt._getStrokeDashOffset(),"px")("stroke-dasharray",qt._getStrokeCircumference(),"px")("stroke-width",qt._getCircleStrokeWidth(),"%")("transform-origin",qt._getCircleTransformOrigin(Jt)),t.uIk("r",qt._getCircleRadius())}}const N=(0,T.pj)(class{constructor(Dt){this._elementRef=Dt}},"primary"),V=new t.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function W(){return{diameter:100}}});class st extends N{constructor(wt,qt,Jt,yt,At,xt,pt,Ot){super(wt),this._document=Jt,this._diameter=100,this._value=0,this._resizeSubscription=U.w.EMPTY,this.mode="determinate";const Bt=st._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),Bt.has(Jt.head)||Bt.set(Jt.head,new Set([100])),this._noopAnimations="NoopAnimations"===yt&&!!At&&!At._forceAnimations,"mat-spinner"===wt.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),At&&(At.color&&(this.color=this.defaultColor=At.color),At.diameter&&(this.diameter=At.diameter),At.strokeWidth&&(this.strokeWidth=At.strokeWidth)),qt.isBrowser&&qt.SAFARI&&pt&&xt&&Ot&&(this._resizeSubscription=pt.change(150).subscribe(()=>{"indeterminate"===this.mode&&Ot.run(()=>xt.markForCheck())}))}get diameter(){return this._diameter}set diameter(wt){this._diameter=(0,u.su)(wt),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(wt){this._strokeWidth=(0,u.su)(wt)}get value(){return"determinate"===this.mode?this._value:0}set value(wt){this._value=Math.max(0,Math.min(100,(0,u.su)(wt)))}ngOnInit(){const wt=this._elementRef.nativeElement;this._styleRoot=(0,p.kV)(wt)||this._document.head,this._attachStyleNode(),wt.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const wt=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${wt} ${wt}`}_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(wt){const qt=50*(wt.currentScale??1);return`${qt}% ${qt}%`}_attachStyleNode(){const wt=this._styleRoot,qt=this._diameter,Jt=st._diameters;let yt=Jt.get(wt);if(!yt||!yt.has(qt)){const At=this._document.createElement("style");At.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),At.textContent=this._getAnimationText(),wt.appendChild(At),yt||(yt=new Set,Jt.set(wt,yt)),yt.add(qt)}}_getAnimationText(){const wt=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*wt).replace(/END_VALUE/g,""+.2*wt).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}st._diameters=new WeakMap,st.\u0275fac=function(wt){return new(wt||st)(t.Y36(t.SBq),t.Y36(p.t4),t.Y36(v.K0,8),t.Y36(t.QbO,8),t.Y36(V),t.Y36(t.sBO),t.Y36(x.rL),t.Y36(t.R0b))},st.\u0275cmp=t.Xpm({type:st,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(wt,qt){2&wt&&(t.uIk("aria-valuemin","determinate"===qt.mode?0:null)("aria-valuemax","determinate"===qt.mode?100:null)("aria-valuenow","determinate"===qt.mode?qt.value:null)("mode",qt.mode),t.Udp("width",qt.diameter,"px")("height",qt.diameter,"px"),t.ekj("_mat-animation-noopable",qt._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(wt,qt){1&wt&&(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&wt&&(t.Udp("width",qt.diameter,"px")("height",qt.diameter,"px"),t.Q6J("ngSwitch","indeterminate"===qt.mode),t.uIk("viewBox",qt._getViewBox()),t.xp6(2),t.Q6J("ngSwitchCase",!0),t.xp6(1),t.Q6J("ngSwitchCase",!1))},dependencies:[v.RF,v.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 ct=(()=>{class Dt{}return Dt.\u0275fac=function(qt){return new(qt||Dt)},Dt.\u0275mod=t.oAB({type:Dt}),Dt.\u0275inj=t.cJS({imports:[T.BQ,v.ez,T.BQ]}),Dt})()},71948:(X,j,h)=>{"use strict";h.d(j,{Fk:()=>Jt,U0:()=>qt,VQ:()=>ct});var u=h(94650),p=h(3238),x=h(12687),v=h(21281),t=h(95017),T=h(24006);const U=["input"],w=function(yt){return{enterDuration:yt}},P=["*"],O=new u.OlP("mat-radio-default-options",{providedIn:"root",factory:function L(){return{color:"accent"}}});let N=0;const V={provide:T.JU,useExisting:(0,u.Gpc)(()=>ct),multi:!0};class W{constructor(At,xt){this.source=At,this.value=xt}}const tt=new u.OlP("MatRadioGroup");let st=(()=>{class yt{constructor(xt){this._changeDetector=xt,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(xt){this._name=xt,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(xt){this._labelPosition="before"===xt?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(xt){this._value!==xt&&(this._value=xt,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(xt){this._selected=xt,this.value=xt?xt.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(xt){this._disabled=(0,v.Ig)(xt),this._markRadiosForCheck()}get required(){return this._required}set required(xt){this._required=(0,v.Ig)(xt),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(xt=>{xt.name=this.name,xt._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(pt=>{pt.checked=this.value===pt.value,pt.checked&&(this._selected=pt)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new W(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(xt=>xt._markForCheck())}writeValue(xt){this.value=xt,this._changeDetector.markForCheck()}registerOnChange(xt){this._controlValueAccessorChangeFn=xt}registerOnTouched(xt){this.onTouched=xt}setDisabledState(xt){this.disabled=xt,this._changeDetector.markForCheck()}}return yt.\u0275fac=function(xt){return new(xt||yt)(u.Y36(u.sBO))},yt.\u0275dir=u.lG2({type:yt,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),yt})(),ct=(()=>{class yt extends st{}return yt.\u0275fac=function(){let At;return function(pt){return(At||(At=u.n5z(yt)))(pt||yt)}}(),yt.\u0275dir=u.lG2({type:yt,selectors:[["mat-radio-group"]],contentQueries:function(xt,pt,Ot){if(1&xt&&u.Suo(Ot,qt,5),2&xt){let Bt;u.iGM(Bt=u.CRH())&&(pt._radios=Bt)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[u._Bn([V,{provide:tt,useExisting:yt}]),u.qOj]}),yt})();class bt{constructor(At){this._elementRef=At}}const Dt=(0,p.Kr)((0,p.sb)(bt));let wt=(()=>{class yt extends Dt{constructor(xt,pt,Ot,Bt,St,ce,Vt,ve){super(pt),this._changeDetector=Ot,this._focusMonitor=Bt,this._radioDispatcher=St,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=xt,this._noopAnimations="NoopAnimations"===ce,ve&&(this.tabIndex=(0,v.su)(ve,0)),this._removeUniqueSelectionListener=St.listen((fe,Le)=>{fe!==this.id&&Le===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(xt){const pt=(0,v.Ig)(xt);this._checked!==pt&&(this._checked=pt,pt&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!pt&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),pt&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(xt){this._value!==xt&&(this._value=xt,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===xt),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(xt){this._labelPosition=xt}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(xt){this._setDisabled((0,v.Ig)(xt))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(xt){this._required=(0,v.Ig)(xt)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(xt){this._color=xt}get inputId(){return`${this.id||this._uniqueId}-input`}focus(xt,pt){pt?this._focusMonitor.focusVia(this._inputElement,pt,xt):this._inputElement.nativeElement.focus(xt)}_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(xt=>{!xt&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new W(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(xt){xt.stopPropagation()}_onInputInteraction(xt){if(xt.stopPropagation(),!this.checked&&!this.disabled){const pt=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),pt&&this.radioGroup._emitChangeEvent())}}_setDisabled(xt){this._disabled!==xt&&(this._disabled=xt,this._changeDetector.markForCheck())}_updateTabIndex(){const xt=this.radioGroup;let pt;if(pt=xt&&xt.selected&&!this.disabled?xt.selected===this?this.tabIndex:-1:this.tabIndex,pt!==this._previousTabIndex){const Ot=this._inputElement?.nativeElement;Ot&&(Ot.setAttribute("tabindex",pt+""),this._previousTabIndex=pt)}}}return yt.\u0275fac=function(xt){u.$Z()},yt.\u0275dir=u.lG2({type:yt,viewQuery:function(xt,pt){if(1&xt&&u.Gf(U,5),2&xt){let Ot;u.iGM(Ot=u.CRH())&&(pt._inputElement=Ot.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]}),yt})(),qt=(()=>{class yt extends wt{constructor(xt,pt,Ot,Bt,St,ce,Vt,ve){super(xt,pt,Ot,Bt,St,ce,Vt,ve)}}return yt.\u0275fac=function(xt){return new(xt||yt)(u.Y36(tt,8),u.Y36(u.SBq),u.Y36(u.sBO),u.Y36(x.tE),u.Y36(t.A8),u.Y36(u.QbO,8),u.Y36(O,8),u.$8M("tabindex"))},yt.\u0275cmp=u.Xpm({type:yt,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(xt,pt){1&xt&&u.NdJ("focus",function(){return pt._inputElement.nativeElement.focus()}),2&xt&&(u.uIk("tabindex",null)("id",pt.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),u.ekj("mat-radio-checked",pt.checked)("mat-radio-disabled",pt.disabled)("_mat-animation-noopable",pt._noopAnimations)("mat-primary","primary"===pt.color)("mat-accent","accent"===pt.color)("mat-warn","warn"===pt.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(xt,pt){if(1&xt&&(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 pt._onInputInteraction(Bt)})("click",function(Bt){return pt._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&xt){const Ot=u.MAs(1);u.uIk("for",pt.inputId),u.xp6(5),u.Q6J("id",pt.inputId)("checked",pt.checked)("disabled",pt.disabled)("required",pt.required),u.uIk("name",pt.name)("value",pt.value)("aria-label",pt.ariaLabel)("aria-labelledby",pt.ariaLabelledby)("aria-describedby",pt.ariaDescribedby),u.xp6(2),u.Q6J("matRippleTrigger",Ot)("matRippleDisabled",pt._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",u.VKq(17,w,pt._noopAnimations?0:150)),u.xp6(2),u.ekj("mat-radio-label-before","before"==pt.labelPosition)}},dependencies:[p.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}),yt})(),Jt=(()=>{class yt{}return yt.\u0275fac=function(xt){return new(xt||yt)},yt.\u0275mod=u.oAB({type:yt}),yt.\u0275inj=u.cJS({imports:[p.si,p.BQ,p.BQ]}),yt})()},84385:(X,j,h)=>{"use strict";h.d(j,{LD:()=>oi,gD:()=>_i});var u=h(98184),p=h(36895),x=h(94650),v=h(3238),t=h(59549),T=h(67376),U=h(12687),w=h(40445),P=h(21281),O=h(95017),L=h(29521),N=h(24006),V=h(8929),W=h(88514),tt=h(36787),st=h(1059),ct=h(87545),bt=h(72986),Dt=h(92198),wt=h(24850),qt=h(75778),Jt=h(7625),yt=h(37340);const At=["trigger"],xt=["panel"];function pt(Qe,te){if(1&Qe&&(x.TgZ(0,"span",8),x._uU(1),x.qZA()),2&Qe){const it=x.oxw();x.xp6(1),x.Oqu(it.placeholder)}}function Ot(Qe,te){if(1&Qe&&(x.TgZ(0,"span",12),x._uU(1),x.qZA()),2&Qe){const it=x.oxw(2);x.xp6(1),x.Oqu(it.triggerValue)}}function Bt(Qe,te){1&Qe&&x.Hsn(0,0,["*ngSwitchCase","true"])}function St(Qe,te){if(1&Qe&&(x.TgZ(0,"span",9),x.YNc(1,Ot,2,1,"span",10),x.YNc(2,Bt,1,0,"ng-content",11),x.qZA()),2&Qe){const it=x.oxw();x.Q6J("ngSwitch",!!it.customTrigger),x.xp6(2),x.Q6J("ngSwitchCase",!0)}}function ce(Qe,te){if(1&Qe){const it=x.EpF();x.TgZ(0,"div",13)(1,"div",14,15),x.NdJ("@transformPanel.done",function(Tt){x.CHM(it);const Rt=x.oxw();return x.KtG(Rt._panelDoneAnimatingStream.next(Tt.toState))})("keydown",function(Tt){x.CHM(it);const Rt=x.oxw();return x.KtG(Rt._handleKeydown(Tt))}),x.Hsn(3,1),x.qZA()()}if(2&Qe){const it=x.oxw();x.Q6J("@transformPanelWrap",void 0),x.xp6(1),x.Gre("mat-select-panel ",it._getPanelTheme(),""),x.Udp("transform-origin",it._transformOrigin)("font-size",it._triggerFontSize,"px"),x.Q6J("ngClass",it.panelClass)("@transformPanel",it.multiple?"showing-multiple":"showing"),x.uIk("id",it.id+"-panel")("aria-multiselectable",it.multiple)("aria-label",it.ariaLabel||null)("aria-labelledby",it._getPanelAriaLabelledby())}}const Vt=[[["mat-select-trigger"]],"*"],ve=["mat-select-trigger","*"],fe={transformPanelWrap:(0,yt.X$)("transformPanelWrap",[(0,yt.eR)("* => void",(0,yt.IO)("@transformPanel",[(0,yt.pV)()],{optional:!0}))]),transformPanel:(0,yt.X$)("transformPanel",[(0,yt.SB)("void",(0,yt.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,yt.SB)("showing",(0,yt.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,yt.SB)("showing-multiple",(0,yt.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,yt.eR)("void => *",(0,yt.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,yt.eR)("* => void",(0,yt.jt)("100ms 25ms linear",(0,yt.oB)({opacity:0})))])};let Gt=0;const Me=new x.OlP("mat-select-scroll-strategy"),_n=new x.OlP("MAT_SELECT_CONFIG"),xe={provide:Me,deps:[u.aV],useFactory:function en(Qe){return()=>Qe.scrollStrategies.reposition()}};class vn{constructor(te,it){this.source=te,this.value=it}}const ke=(0,v.Kr)((0,v.sb)((0,v.Id)((0,v.FD)(class{constructor(Qe,te,it,K,Tt){this._elementRef=Qe,this._defaultErrorStateMatcher=te,this._parentForm=it,this._parentFormGroup=K,this.ngControl=Tt,this.stateChanges=new V.xQ}})))),un=new x.OlP("MatSelectTrigger");let ii=(()=>{class Qe extends ke{constructor(it,K,Tt,Rt,le,be,De,hn,qn,mi,Di,bo,hi,Yn){super(le,Rt,De,hn,mi),this._viewportRuler=it,this._changeDetectorRef=K,this._ngZone=Tt,this._dir=be,this._parentFormField=qn,this._liveAnnouncer=hi,this._defaultOptions=Yn,this._panelOpen=!1,this._compareWith=(Vn,Je)=>Vn===Je,this._uid="mat-select-"+Gt++,this._triggerAriaLabelledBy=null,this._destroy=new V.xQ,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+Gt++,this._panelDoneAnimatingStream=new V.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,W.P)(()=>{const Vn=this.options;return Vn?Vn.changes.pipe((0,st.O)(Vn),(0,ct.w)(()=>(0,tt.T)(...Vn.map(Je=>Je.onSelectionChange)))):this._ngZone.onStable.pipe((0,bt.q)(1),(0,ct.w)(()=>this.optionSelectionChanges))}),this.openedChange=new x.vpe,this._openedStream=this.openedChange.pipe((0,Dt.h)(Vn=>Vn),(0,wt.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,Dt.h)(Vn=>!Vn),(0,wt.U)(()=>{})),this.selectionChange=new x.vpe,this.valueChange=new x.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=Yn?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=Yn.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(it){this._placeholder=it,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(N.kI.required)??!1}set required(it){this._required=(0,P.Ig)(it),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(it){this._multiple=(0,P.Ig)(it)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(it){this._disableOptionCentering=(0,P.Ig)(it)}get compareWith(){return this._compareWith}set compareWith(it){this._compareWith=it,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(it){this._assignValue(it)&&this._onChange(it)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(it){this._typeaheadDebounceInterval=(0,P.su)(it)}get id(){return this._id}set id(it){this._id=it||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new O.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,qt.x)(),(0,Jt.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,Jt.R)(this._destroy)).subscribe(it=>{it.added.forEach(K=>K.select()),it.removed.forEach(K=>K.deselect())}),this.options.changes.pipe((0,st.O)(null),(0,Jt.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const it=this._getTriggerAriaLabelledby(),K=this.ngControl;if(it!==this._triggerAriaLabelledBy){const Tt=this._elementRef.nativeElement;this._triggerAriaLabelledBy=it,it?Tt.setAttribute("aria-labelledby",it):Tt.removeAttribute("aria-labelledby")}K&&(this._previousControl!==K.control&&(void 0!==this._previousControl&&null!==K.disabled&&K.disabled!==this.disabled&&(this.disabled=K.disabled),this._previousControl=K.control),this.updateErrorState())}ngOnChanges(it){(it.disabled||it.userAriaDescribedBy)&&this.stateChanges.next(),it.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(it){this._assignValue(it)}registerOnChange(it){this._onChange=it}registerOnTouched(it){this._onTouched=it}setDisabledState(it){this.disabled=it,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 it=this._selectionModel.selected.map(K=>K.viewValue);return this._isRtl()&&it.reverse(),it.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(it){this.disabled||(this.panelOpen?this._handleOpenKeydown(it):this._handleClosedKeydown(it))}_handleClosedKeydown(it){const K=it.keyCode,Tt=K===L.JH||K===L.LH||K===L.oh||K===L.SV,Rt=K===L.K5||K===L.L_,le=this._keyManager;if(!le.isTyping()&&Rt&&!(0,L.Vb)(it)||(this.multiple||it.altKey)&&Tt)it.preventDefault(),this.open();else if(!this.multiple){const be=this.selected;le.onKeydown(it);const De=this.selected;De&&be!==De&&this._liveAnnouncer.announce(De.viewValue,1e4)}}_handleOpenKeydown(it){const K=this._keyManager,Tt=it.keyCode,Rt=Tt===L.JH||Tt===L.LH,le=K.isTyping();if(Rt&&it.altKey)it.preventDefault(),this.close();else if(le||Tt!==L.K5&&Tt!==L.L_||!K.activeItem||(0,L.Vb)(it))if(!le&&this._multiple&&Tt===L.A&&it.ctrlKey){it.preventDefault();const be=this.options.some(De=>!De.disabled&&!De.selected);this.options.forEach(De=>{De.disabled||(be?De.select():De.deselect())})}else{const be=K.activeItemIndex;K.onKeydown(it),this._multiple&&Rt&&it.shiftKey&&K.activeItem&&K.activeItemIndex!==be&&K.activeItem._selectViaInteraction()}else it.preventDefault(),K.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,bt.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(it){if(this._selectionModel.selected.forEach(K=>K.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&it)Array.isArray(it),it.forEach(K=>this._selectOptionByValue(K)),this._sortValues();else{const K=this._selectOptionByValue(it);K?this._keyManager.updateActiveItem(K):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(it){const K=this.options.find(Tt=>{if(this._selectionModel.isSelected(Tt))return!1;try{return null!=Tt.value&&this._compareWith(Tt.value,it)}catch{return!1}});return K&&this._selectionModel.select(K),K}_assignValue(it){return!!(it!==this._value||this._multiple&&Array.isArray(it))&&(this.options&&this._setSelectionByValue(it),this._value=it,!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,Jt.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,Jt.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 it=(0,tt.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,Jt.R)(it)).subscribe(K=>{this._onSelect(K.source,K.isUserInput),K.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,tt.T)(...this.options.map(K=>K._stateChanges)).pipe((0,Jt.R)(it)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(it,K){const Tt=this._selectionModel.isSelected(it);null!=it.value||this._multiple?(Tt!==it.selected&&(it.selected?this._selectionModel.select(it):this._selectionModel.deselect(it)),K&&this._keyManager.setActiveItem(it),this.multiple&&(this._sortValues(),K&&this.focus())):(it.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(it.value)),Tt!==this._selectionModel.isSelected(it)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const it=this.options.toArray();this._selectionModel.sort((K,Tt)=>this.sortComparator?this.sortComparator(K,Tt,it):it.indexOf(K)-it.indexOf(Tt)),this.stateChanges.next()}}_propagateChanges(it){let K=null;K=this.multiple?this.selected.map(Tt=>Tt.value):this.selected?this.selected.value:it,this._value=K,this.valueChange.emit(K),this._onChange(K),this.selectionChange.emit(this._getChangeEvent(K)),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(it){this._elementRef.nativeElement.focus(it)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const it=this._parentFormField?.getLabelId();return this.ariaLabelledby?(it?it+" ":"")+this.ariaLabelledby:it}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const it=this._parentFormField?.getLabelId();let K=(it?it+" ":"")+this._valueId;return this.ariaLabelledby&&(K+=" "+this.ariaLabelledby),K}_panelDoneAnimating(it){this.openedChange.emit(it)}setDescribedByIds(it){it.length?this._elementRef.nativeElement.setAttribute("aria-describedby",it.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return Qe.\u0275fac=function(it){return new(it||Qe)(x.Y36(T.rL),x.Y36(x.sBO),x.Y36(x.R0b),x.Y36(v.rD),x.Y36(x.SBq),x.Y36(w.Is,8),x.Y36(N.F,8),x.Y36(N.sg,8),x.Y36(t.G_,8),x.Y36(N.a5,10),x.$8M("tabindex"),x.Y36(Me),x.Y36(U.Kd),x.Y36(_n,8))},Qe.\u0275dir=x.lG2({type:Qe,viewQuery:function(it,K){if(1&it&&(x.Gf(At,5),x.Gf(xt,5),x.Gf(u.pI,5)),2&it){let Tt;x.iGM(Tt=x.CRH())&&(K.trigger=Tt.first),x.iGM(Tt=x.CRH())&&(K.panel=Tt.first),x.iGM(Tt=x.CRH())&&(K._overlayDir=Tt.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:[x.qOj,x.TTD]}),Qe})(),_i=(()=>{class Qe 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(it,K,Tt){const Rt=this._getItemHeight();return Math.min(Math.max(0,Rt*it-K+Rt/2),Tt)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,Jt.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,bt.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(it){const K=(0,v.CB)(it,this.options,this.optionGroups),Tt=this._getItemHeight();this.panel.nativeElement.scrollTop=0===it&&1===K?0:(0,v.jH)((it+K)*Tt,Tt,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(it){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(it)}_getChangeEvent(it){return new vn(this,it)}_calculateOverlayOffsetX(){const it=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),K=this._viewportRuler.getViewportSize(),Tt=this._isRtl(),Rt=this.multiple?56:32;let le;if(this.multiple)le=40;else if(this.disableOptionCentering)le=16;else{let hn=this._selectionModel.selected[0]||this.options.first;le=hn&&hn.group?32:16}Tt||(le*=-1);const be=0-(it.left+le-(Tt?Rt:0)),De=it.right+le-K.width+(Tt?0:Rt);be>0?le+=be+8:De>0&&(le-=De+8),this._overlayDir.offsetX=Math.round(le),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(it,K,Tt){const Rt=this._getItemHeight(),le=(Rt-this._triggerRect.height)/2,be=Math.floor(256/Rt);let De;return this.disableOptionCentering?0:(De=0===this._scrollTop?it*Rt:this._scrollTop===Tt?(it-(this._getItemCount()-be))*Rt+(Rt-(this._getItemCount()*Rt-256)%Rt):K-Rt/2,Math.round(-1*De-le))}_checkOverlayWithinViewport(it){const K=this._getItemHeight(),Tt=this._viewportRuler.getViewportSize(),Rt=this._triggerRect.top-8,le=Tt.height-this._triggerRect.bottom-8,be=Math.abs(this._offsetY),hn=Math.min(this._getItemCount()*K,256)-be-this._triggerRect.height;hn>le?this._adjustPanelUp(hn,le):be>Rt?this._adjustPanelDown(be,Rt,it):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(it,K){const Tt=Math.round(it-K);this._scrollTop-=Tt,this._offsetY-=Tt,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(it,K,Tt){const Rt=Math.round(it-K);if(this._scrollTop+=Rt,this._offsetY+=Rt,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=Tt)return this._scrollTop=Tt,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const it=this._getItemHeight(),K=this._getItemCount(),Tt=Math.min(K*it,256),le=K*it-Tt;let be;be=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),be+=(0,v.CB)(be,this.options,this.optionGroups);const De=Tt/2;this._scrollTop=this._calculateOverlayScroll(be,De,le),this._offsetY=this._calculateOverlayOffsetY(be,De,le),this._checkOverlayWithinViewport(le)}_getOriginBasedOnOption(){const it=this._getItemHeight(),K=(it-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-K+it/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return Qe.\u0275fac=function(){let te;return function(K){return(te||(te=x.n5z(Qe)))(K||Qe)}}(),Qe.\u0275cmp=x.Xpm({type:Qe,selectors:[["mat-select"]],contentQueries:function(it,K,Tt){if(1&it&&(x.Suo(Tt,un,5),x.Suo(Tt,v.ey,5),x.Suo(Tt,v.K7,5)),2&it){let Rt;x.iGM(Rt=x.CRH())&&(K.customTrigger=Rt.first),x.iGM(Rt=x.CRH())&&(K.options=Rt),x.iGM(Rt=x.CRH())&&(K.optionGroups=Rt)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(it,K){1&it&&x.NdJ("keydown",function(Rt){return K._handleKeydown(Rt)})("focus",function(){return K._onFocus()})("blur",function(){return K._onBlur()}),2&it&&(x.uIk("id",K.id)("tabindex",K.tabIndex)("aria-controls",K.panelOpen?K.id+"-panel":null)("aria-expanded",K.panelOpen)("aria-label",K.ariaLabel||null)("aria-required",K.required.toString())("aria-disabled",K.disabled.toString())("aria-invalid",K.errorState)("aria-activedescendant",K._getAriaActiveDescendant()),x.ekj("mat-select-disabled",K.disabled)("mat-select-invalid",K.errorState)("mat-select-required",K.required)("mat-select-empty",K.empty)("mat-select-multiple",K.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[x._Bn([{provide:t.Eo,useExisting:Qe},{provide:v.HF,useExisting:Qe}]),x.qOj],ngContentSelectors:ve,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(it,K){if(1&it&&(x.F$t(Vt),x.TgZ(0,"div",0,1),x.NdJ("click",function(){return K.toggle()}),x.TgZ(3,"div",2),x.YNc(4,pt,2,1,"span",3),x.YNc(5,St,3,2,"span",4),x.qZA(),x.TgZ(6,"div",5),x._UZ(7,"div",6),x.qZA()(),x.YNc(8,ce,4,14,"ng-template",7),x.NdJ("backdropClick",function(){return K.close()})("attach",function(){return K._onAttached()})("detach",function(){return K.close()})),2&it){const Tt=x.MAs(1);x.uIk("aria-owns",K.panelOpen?K.id+"-panel":null),x.xp6(3),x.Q6J("ngSwitch",K.empty),x.uIk("id",K._valueId),x.xp6(1),x.Q6J("ngSwitchCase",!0),x.xp6(1),x.Q6J("ngSwitchCase",!1),x.xp6(3),x.Q6J("cdkConnectedOverlayPanelClass",K._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",K._scrollStrategy)("cdkConnectedOverlayOrigin",Tt)("cdkConnectedOverlayOpen",K.panelOpen)("cdkConnectedOverlayPositions",K._positions)("cdkConnectedOverlayMinWidth",null==K._triggerRect?null:K._triggerRect.width)("cdkConnectedOverlayOffsetY",K._offsetY)}},dependencies:[p.mk,p.RF,p.n9,p.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:[fe.transformPanelWrap,fe.transformPanel]},changeDetection:0}),Qe})(),oi=(()=>{class Qe{}return Qe.\u0275fac=function(it){return new(it||Qe)},Qe.\u0275mod=x.oAB({type:Qe}),Qe.\u0275inj=x.cJS({providers:[xe],imports:[p.ez,u.U8,v.Ng,v.BQ,T.ZD,t.lN,v.Ng,v.BQ]}),Qe})()},23267:(X,j,h)=>{"use strict";h.d(j,{JX:()=>Xt,Rh:()=>re,SJ:()=>Me,TM:()=>oe});var u=h(67376),p=h(36895),x=h(94650),v=h(3238),t=h(12687),T=h(40445),U=h(21281),w=h(29521),P=h(83353),O=h(8929),L=h(23753),N=h(36787),V=h(92198),W=h(24850),tt=h(77604),st=h(7625),ct=h(75778),bt=h(72986),Dt=h(1059),wt=h(80013),qt=h(37340);const Jt=["*"],yt=["content"];function At(en,_n){if(1&en){const xe=x.EpF();x.TgZ(0,"div",2),x.NdJ("click",function(){x.CHM(xe);const ke=x.oxw();return x.KtG(ke._onBackdropClicked())}),x.qZA()}if(2&en){const xe=x.oxw();x.ekj("mat-drawer-shown",xe._isShowingBackdrop())}}function xt(en,_n){1&en&&(x.TgZ(0,"mat-drawer-content"),x.Hsn(1,2),x.qZA())}const pt=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Ot=["mat-drawer","mat-drawer-content","*"];function Bt(en,_n){if(1&en){const xe=x.EpF();x.TgZ(0,"div",2),x.NdJ("click",function(){x.CHM(xe);const ke=x.oxw();return x.KtG(ke._onBackdropClicked())}),x.qZA()}if(2&en){const xe=x.oxw();x.ekj("mat-drawer-shown",xe._isShowingBackdrop())}}function St(en,_n){1&en&&(x.TgZ(0,"mat-sidenav-content"),x.Hsn(1,2),x.qZA())}const ce=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],Vt=["mat-sidenav","mat-sidenav-content","*"],fe={transformDrawer:(0,qt.X$)("transform",[(0,qt.SB)("open, open-instant",(0,qt.oB)({transform:"none",visibility:"visible"})),(0,qt.SB)("void",(0,qt.oB)({"box-shadow":"none",visibility:"hidden"})),(0,qt.eR)("void => open-instant",(0,qt.jt)("0ms")),(0,qt.eR)("void <=> open, open-instant => void",(0,qt.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},Fe=new x.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function Gt(){return!1}}),Ge=new x.OlP("MAT_DRAWER_CONTAINER");let Te=(()=>{class en extends u.PQ{constructor(xe,vn,ke,un,Dn){super(ke,un,Dn),this._changeDetectorRef=xe,this._container=vn}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return en.\u0275fac=function(xe){return new(xe||en)(x.Y36(x.sBO),x.Y36((0,x.Gpc)(()=>jt)),x.Y36(x.SBq),x.Y36(u.mF),x.Y36(x.R0b))},en.\u0275cmp=x.Xpm({type:en,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(xe,vn){2&xe&&x.Udp("margin-left",vn._container._contentMargins.left,"px")("margin-right",vn._container._contentMargins.right,"px")},features:[x._Bn([{provide:u.PQ,useExisting:en}]),x.qOj],ngContentSelectors:Jt,decls:1,vars:0,template:function(xe,vn){1&xe&&(x.F$t(),x.Hsn(0))},encapsulation:2,changeDetection:0}),en})(),ne=(()=>{class en{constructor(xe,vn,ke,un,Dn,ii,_i,oi){this._elementRef=xe,this._focusTrapFactory=vn,this._focusMonitor=ke,this._platform=un,this._ngZone=Dn,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 x.vpe(!0),this._openedStream=this.openedChange.pipe((0,V.h)(Qe=>Qe),(0,W.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,V.h)(Qe=>Qe.fromState!==Qe.toState&&0===Qe.toState.indexOf("open")),(0,tt.h)(void 0)),this._closedStream=this.openedChange.pipe((0,V.h)(Qe=>!Qe),(0,W.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,V.h)(Qe=>Qe.fromState!==Qe.toState&&"void"===Qe.toState),(0,tt.h)(void 0)),this._destroyed=new O.xQ,this.onPositionChanged=new x.vpe,this._modeChanged=new O.xQ,this.openedChange.subscribe(Qe=>{Qe?(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,V.h)(Qe=>Qe.keyCode===w.hY&&!this.disableClose&&!(0,w.Vb)(Qe)),(0,st.R)(this._destroyed)).subscribe(Qe=>this._ngZone.run(()=>{this.close(),Qe.stopPropagation(),Qe.preventDefault()}))}),this._animationEnd.pipe((0,ct.x)((Qe,te)=>Qe.fromState===te.fromState&&Qe.toState===te.toState)).subscribe(Qe=>{const{fromState:te,toState:it}=Qe;(0===it.indexOf("open")&&"void"===te||"void"===it&&0===te.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(xe){(xe="end"===xe?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(xe),this._position=xe,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(xe){this._mode=xe,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(xe){this._disableClose=(0,U.Ig)(xe)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(xe){("true"===xe||"false"===xe||null==xe)&&(xe=(0,U.Ig)(xe)),this._autoFocus=xe}get opened(){return this._opened}set opened(xe){this.toggle((0,U.Ig)(xe))}_forceFocus(xe,vn){this._interactivityChecker.isFocusable(xe)||(xe.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const ke=()=>{xe.removeEventListener("blur",ke),xe.removeEventListener("mousedown",ke),xe.removeAttribute("tabindex")};xe.addEventListener("blur",ke),xe.addEventListener("mousedown",ke)})),xe.focus(vn)}_focusByCssSelector(xe,vn){let ke=this._elementRef.nativeElement.querySelector(xe);ke&&this._forceFocus(ke,vn)}_takeFocus(){if(!this._focusTrap)return;const xe=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(vn=>{!vn&&"function"==typeof this._elementRef.nativeElement.focus&&xe.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(xe){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,xe):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const xe=this._doc.activeElement;return!!xe&&this._elementRef.nativeElement.contains(xe)}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(xe){return this.toggle(!0,xe)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(xe=!this.opened,vn){xe&&vn&&(this._openedVia=vn);const ke=this._setOpen(xe,!xe&&this._isFocusWithinDrawer(),this._openedVia||"program");return xe||(this._openedVia=null),ke}_setOpen(xe,vn,ke){return this._opened=xe,xe?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",vn&&this._restoreFocus(ke)),this._updateFocusTrapState(),new Promise(un=>{this.openedChange.pipe((0,bt.q)(1)).subscribe(Dn=>un(Dn?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(xe){const vn=this._elementRef.nativeElement,ke=vn.parentNode;"end"===xe?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),ke.insertBefore(this._anchor,vn)),ke.appendChild(vn)):this._anchor&&this._anchor.parentNode.insertBefore(vn,this._anchor)}}return en.\u0275fac=function(xe){return new(xe||en)(x.Y36(x.SBq),x.Y36(t.qV),x.Y36(t.tE),x.Y36(P.t4),x.Y36(x.R0b),x.Y36(t.ic),x.Y36(p.K0,8),x.Y36(Ge,8))},en.\u0275cmp=x.Xpm({type:en,selectors:[["mat-drawer"]],viewQuery:function(xe,vn){if(1&xe&&x.Gf(yt,5),2&xe){let ke;x.iGM(ke=x.CRH())&&(vn._content=ke.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(xe,vn){1&xe&&x.WFA("@transform.start",function(un){return vn._animationStarted.next(un)})("@transform.done",function(un){return vn._animationEnd.next(un)}),2&xe&&(x.uIk("align",null),x.d8E("@transform",vn._animationState),x.ekj("mat-drawer-end","end"===vn.position)("mat-drawer-over","over"===vn.mode)("mat-drawer-push","push"===vn.mode)("mat-drawer-side","side"===vn.mode)("mat-drawer-opened",vn.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:Jt,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(xe,vn){1&xe&&(x.F$t(),x.TgZ(0,"div",0,1),x.Hsn(2),x.qZA())},dependencies:[u.PQ],encapsulation:2,data:{animation:[fe.transformDrawer]},changeDetection:0}),en})(),jt=(()=>{class en{constructor(xe,vn,ke,un,Dn,ii=!1,_i){this._dir=xe,this._element=vn,this._ngZone=ke,this._changeDetectorRef=un,this._animationMode=_i,this._drawers=new x.n_E,this.backdropClick=new x.vpe,this._destroyed=new O.xQ,this._doCheckSubject=new O.xQ,this._contentMargins={left:null,right:null},this._contentMarginChanges=new O.xQ,xe&&xe.change.pipe((0,st.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),Dn.change().pipe((0,st.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(xe){this._autosize=(0,U.Ig)(xe)}get hasBackdrop(){return this._backdropOverride??(!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode)}set hasBackdrop(xe){this._backdropOverride=null==xe?null:(0,U.Ig)(xe)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe((0,Dt.O)(this._allDrawers),(0,st.R)(this._destroyed)).subscribe(xe=>{this._drawers.reset(xe.filter(vn=>!vn._container||vn._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,Dt.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(xe=>{this._watchDrawerToggle(xe),this._watchDrawerPosition(xe),this._watchDrawerMode(xe)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,wt.b)(10),(0,st.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(xe=>xe.open())}close(){this._drawers.forEach(xe=>xe.close())}updateContentMargins(){let xe=0,vn=0;if(this._left&&this._left.opened)if("side"==this._left.mode)xe+=this._left._getWidth();else if("push"==this._left.mode){const ke=this._left._getWidth();xe+=ke,vn-=ke}if(this._right&&this._right.opened)if("side"==this._right.mode)vn+=this._right._getWidth();else if("push"==this._right.mode){const ke=this._right._getWidth();vn+=ke,xe-=ke}xe=xe||null,vn=vn||null,(xe!==this._contentMargins.left||vn!==this._contentMargins.right)&&(this._contentMargins={left:xe,right:vn},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(xe){xe._animationStarted.pipe((0,V.h)(vn=>vn.fromState!==vn.toState),(0,st.R)(this._drawers.changes)).subscribe(vn=>{"open-instant"!==vn.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==xe.mode&&xe.openedChange.pipe((0,st.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(xe.opened))}_watchDrawerPosition(xe){!xe||xe.onPositionChanged.pipe((0,st.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,bt.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(xe){xe&&xe._modeChanged.pipe((0,st.R)((0,N.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(xe){const vn=this._element.nativeElement.classList,ke="mat-drawer-container-has-open";xe?vn.add(ke):vn.remove(ke)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(xe=>{"end"==xe.position?this._end=xe:this._start=xe}),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(xe=>xe&&!xe.disableClose&&this._canHaveBackdrop(xe)).forEach(xe=>xe._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(xe){return"side"!==xe.mode||!!this._backdropOverride}_isDrawerOpen(xe){return null!=xe&&xe.opened}}return en.\u0275fac=function(xe){return new(xe||en)(x.Y36(T.Is,8),x.Y36(x.SBq),x.Y36(x.R0b),x.Y36(x.sBO),x.Y36(u.rL),x.Y36(Fe),x.Y36(x.QbO,8))},en.\u0275cmp=x.Xpm({type:en,selectors:[["mat-drawer-container"]],contentQueries:function(xe,vn,ke){if(1&xe&&(x.Suo(ke,Te,5),x.Suo(ke,ne,5)),2&xe){let un;x.iGM(un=x.CRH())&&(vn._content=un.first),x.iGM(un=x.CRH())&&(vn._allDrawers=un)}},viewQuery:function(xe,vn){if(1&xe&&x.Gf(Te,5),2&xe){let ke;x.iGM(ke=x.CRH())&&(vn._userContent=ke.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(xe,vn){2&xe&&x.ekj("mat-drawer-container-explicit-backdrop",vn._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[x._Bn([{provide:Ge,useExisting:en}])],ngContentSelectors:Ot,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(xe,vn){1&xe&&(x.F$t(pt),x.YNc(0,At,1,2,"div",0),x.Hsn(1),x.Hsn(2,1),x.YNc(3,xt,2,0,"mat-drawer-content",1)),2&xe&&(x.Q6J("ngIf",vn.hasBackdrop),x.xp6(3),x.Q6J("ngIf",!vn._content))},dependencies:[p.O5,Te],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}),en})(),re=(()=>{class en extends Te{constructor(xe,vn,ke,un,Dn){super(xe,vn,ke,un,Dn)}}return en.\u0275fac=function(xe){return new(xe||en)(x.Y36(x.sBO),x.Y36((0,x.Gpc)(()=>oe)),x.Y36(x.SBq),x.Y36(u.mF),x.Y36(x.R0b))},en.\u0275cmp=x.Xpm({type:en,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(xe,vn){2&xe&&x.Udp("margin-left",vn._container._contentMargins.left,"px")("margin-right",vn._container._contentMargins.right,"px")},features:[x._Bn([{provide:u.PQ,useExisting:en}]),x.qOj],ngContentSelectors:Jt,decls:1,vars:0,template:function(xe,vn){1&xe&&(x.F$t(),x.Hsn(0))},encapsulation:2,changeDetection:0}),en})(),Xt=(()=>{class en extends ne{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(xe){this._fixedInViewport=(0,U.Ig)(xe)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(xe){this._fixedTopGap=(0,U.su)(xe)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(xe){this._fixedBottomGap=(0,U.su)(xe)}}return en.\u0275fac=function(){let _n;return function(vn){return(_n||(_n=x.n5z(en)))(vn||en)}}(),en.\u0275cmp=x.Xpm({type:en,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(xe,vn){2&xe&&(x.uIk("align",null),x.Udp("top",vn.fixedInViewport?vn.fixedTopGap:null,"px")("bottom",vn.fixedInViewport?vn.fixedBottomGap:null,"px"),x.ekj("mat-drawer-end","end"===vn.position)("mat-drawer-over","over"===vn.mode)("mat-drawer-push","push"===vn.mode)("mat-drawer-side","side"===vn.mode)("mat-drawer-opened",vn.opened)("mat-sidenav-fixed",vn.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[x.qOj],ngContentSelectors:Jt,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(xe,vn){1&xe&&(x.F$t(),x.TgZ(0,"div",0,1),x.Hsn(2),x.qZA())},dependencies:[u.PQ],encapsulation:2,data:{animation:[fe.transformDrawer]},changeDetection:0}),en})(),oe=(()=>{class en extends jt{}return en.\u0275fac=function(){let _n;return function(vn){return(_n||(_n=x.n5z(en)))(vn||en)}}(),en.\u0275cmp=x.Xpm({type:en,selectors:[["mat-sidenav-container"]],contentQueries:function(xe,vn,ke){if(1&xe&&(x.Suo(ke,re,5),x.Suo(ke,Xt,5)),2&xe){let un;x.iGM(un=x.CRH())&&(vn._content=un.first),x.iGM(un=x.CRH())&&(vn._allDrawers=un)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(xe,vn){2&xe&&x.ekj("mat-drawer-container-explicit-backdrop",vn._backdropOverride)},exportAs:["matSidenavContainer"],features:[x._Bn([{provide:Ge,useExisting:en}]),x.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(xe,vn){1&xe&&(x.F$t(ce),x.YNc(0,Bt,1,2,"div",0),x.Hsn(1),x.Hsn(2,1),x.YNc(3,St,2,0,"mat-sidenav-content",1)),2&xe&&(x.Q6J("ngIf",vn.hasBackdrop),x.xp6(3),x.Q6J("ngIf",!vn._content))},dependencies:[p.O5,re],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}),en})(),Me=(()=>{class en{}return en.\u0275fac=function(xe){return new(xe||en)},en.\u0275mod=x.oAB({type:en}),en.\u0275inj=x.cJS({imports:[p.ez,v.BQ,u.ZD,u.ZD,v.BQ]}),en})()},90455:(X,j,h)=>{"use strict";h.d(j,{Rr:()=>st,rP:()=>wt});var u=h(49643),p=h(94650),x=h(3238),v=h(12687),t=h(21281),T=h(24006);const U=["input"],w=function(qt){return{enterDuration:qt}},P=["*"],O=new p.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let L=0;const N={provide:T.JU,useExisting:(0,p.Gpc)(()=>st),multi:!0};class V{constructor(Jt,yt){this.source=Jt,this.checked=yt}}const W=(0,x.sb)((0,x.pj)((0,x.Kr)((0,x.Id)(class{constructor(qt){this._elementRef=qt}}))));let tt=(()=>{class qt extends W{constructor(yt,At,xt,pt,Ot,Bt,St){super(yt),this._focusMonitor=At,this._changeDetectorRef=xt,this.defaults=Ot,this._onChange=ce=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new p.vpe,this.toggleChange=new p.vpe,this.tabIndex=parseInt(pt)||0,this.color=this.defaultColor=Ot.color||"accent",this._noopAnimations="NoopAnimations"===Bt,this.id=this._uniqueId=`${St}${++L}`}get required(){return this._required}set required(yt){this._required=(0,t.Ig)(yt)}get checked(){return this._checked}set checked(yt){this._checked=(0,t.Ig)(yt),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(yt=>{"keyboard"===yt||"program"===yt?this._focused=!0:yt||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(yt){this.checked=!!yt}registerOnChange(yt){this._onChange=yt}registerOnTouched(yt){this._onTouched=yt}setDisabledState(yt){this.disabled=yt,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 qt.\u0275fac=function(yt){p.$Z()},qt.\u0275dir=p.lG2({type:qt,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:[p.qOj]}),qt})(),st=(()=>{class qt extends tt{constructor(yt,At,xt,pt,Ot,Bt){super(yt,At,xt,pt,Ot,Bt,"mat-slide-toggle-")}_createChangeEvent(yt){return new V(this,yt)}_onChangeEvent(yt){yt.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(yt){yt.stopPropagation()}focus(yt,At){At?this._focusMonitor.focusVia(this._inputElement,At,yt):this._inputElement.nativeElement.focus(yt)}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return qt.\u0275fac=function(yt){return new(yt||qt)(p.Y36(p.SBq),p.Y36(v.tE),p.Y36(p.sBO),p.$8M("tabindex"),p.Y36(O),p.Y36(p.QbO,8))},qt.\u0275cmp=p.Xpm({type:qt,selectors:[["mat-slide-toggle"]],viewQuery:function(yt,At){if(1&yt&&p.Gf(U,5),2&yt){let xt;p.iGM(xt=p.CRH())&&(At._inputElement=xt.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(yt,At){2&yt&&(p.Ikx("id",At.id),p.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),p.ekj("mat-checked",At.checked)("mat-disabled",At.disabled)("mat-slide-toggle-label-before","before"==At.labelPosition)("_mat-animation-noopable",At._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[p._Bn([N]),p.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(yt,At){if(1&yt&&(p.F$t(),p.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),p.NdJ("change",function(pt){return At._onChangeEvent(pt)})("click",function(pt){return At._onInputClick(pt)}),p.qZA(),p.TgZ(5,"span",5),p._UZ(6,"span",6),p.TgZ(7,"span",7),p._UZ(8,"span",8),p.qZA()()(),p.TgZ(9,"span",9,10),p.NdJ("cdkObserveContent",function(){return At._onLabelTextChange()}),p.TgZ(11,"span",11),p._uU(12,"\xa0"),p.qZA(),p.Hsn(13),p.qZA()()),2&yt){const xt=p.MAs(1),pt=p.MAs(10);p.uIk("for",At.inputId),p.xp6(2),p.ekj("mat-slide-toggle-bar-no-side-margin",!pt.textContent||!pt.textContent.trim()),p.xp6(1),p.Q6J("id",At.inputId)("required",At.required)("tabIndex",At.tabIndex)("checked",At.checked)("disabled",At.disabled),p.uIk("name",At.name)("aria-checked",At.checked)("aria-label",At.ariaLabel)("aria-labelledby",At.ariaLabelledby)("aria-describedby",At.ariaDescribedby),p.xp6(4),p.Q6J("matRippleTrigger",xt)("matRippleDisabled",At.disableRipple||At.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",p.VKq(18,w,At._noopAnimations?0:150))}},dependencies:[x.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}),qt})(),Dt=(()=>{class qt{}return qt.\u0275fac=function(yt){return new(yt||qt)},qt.\u0275mod=p.oAB({type:qt}),qt.\u0275inj=p.cJS({}),qt})(),wt=(()=>{class qt{}return qt.\u0275fac=function(yt){return new(yt||qt)},qt.\u0275mod=p.oAB({type:qt}),qt.\u0275inj=p.cJS({imports:[Dt,x.si,x.BQ,u.Q8,Dt,x.BQ]}),qt})()},17009:(X,j,h)=>{"use strict";h.d(j,{ZX:()=>At,ux:()=>Bt});var u=h(98184),p=h(84080),x=h(36895),v=h(94650),t=h(3238),T=h(4859),U=h(8929),w=h(83353),P=h(72986),O=h(7625),L=h(37340),N=h(12687),V=h(62289);function W(St,ce){if(1&St){const Vt=v.EpF();v.TgZ(0,"div",2)(1,"button",3),v.NdJ("click",function(){v.CHM(Vt);const fe=v.oxw();return v.KtG(fe.action())}),v._uU(2),v.qZA()()}if(2&St){const Vt=v.oxw();v.xp6(2),v.Oqu(Vt.data.action)}}function tt(St,ce){}const st=new v.OlP("MatSnackBarData");class ct{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const bt=Math.pow(2,31)-1;class Dt{constructor(ce,Vt){this._overlayRef=Vt,this._afterDismissed=new U.xQ,this._afterOpened=new U.xQ,this._onAction=new U.xQ,this._dismissedByAction=!1,this.containerInstance=ce,ce._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(ce){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(ce,bt))}_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 wt=(()=>{class St{constructor(Vt,ve){this.snackBarRef=Vt,this.data=ve}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return St.\u0275fac=function(Vt){return new(Vt||St)(v.Y36(Dt),v.Y36(st))},St.\u0275cmp=v.Xpm({type:St,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,ve){1&Vt&&(v.TgZ(0,"span",0),v._uU(1),v.qZA(),v.YNc(2,W,3,1,"div",1)),2&Vt&&(v.xp6(1),v.Oqu(ve.data.message),v.xp6(1),v.Q6J("ngIf",ve.hasAction))},dependencies:[x.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}),St})();const qt={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 Jt=(()=>{class St extends p.en{constructor(Vt,ve,fe,Le,Fe){super(),this._ngZone=Vt,this._elementRef=ve,this._changeDetectorRef=fe,this._platform=Le,this.snackBarConfig=Fe,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=Ge=>{this._assertNotAttached();const Gt=this._portalOutlet.attachDomPortal(Ge);return this._afterPortalAttached(),Gt},this._live="assertive"!==Fe.politeness||Fe.announcementMessage?"off"===Fe.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(Vt){this._assertNotAttached();const ve=this._portalOutlet.attachComponentPortal(Vt);return this._afterPortalAttached(),ve}attachTemplatePortal(Vt){this._assertNotAttached();const ve=this._portalOutlet.attachTemplatePortal(Vt);return this._afterPortalAttached(),ve}onAnimationEnd(Vt){const{fromState:ve,toState:fe}=Vt;if(("void"===fe&&"void"!==ve||"hidden"===fe)&&this._completeExit(),"visible"===fe){const Le=this._onEnter;this._ngZone.run(()=>{Le.next(),Le.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,ve=this.snackBarConfig.panelClass;ve&&(Array.isArray(ve)?ve.forEach(fe=>Vt.classList.add(fe)):Vt.classList.add(ve))}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const Vt=this._elementRef.nativeElement.querySelector("[aria-hidden]"),ve=this._elementRef.nativeElement.querySelector("[aria-live]");if(Vt&&ve){let fe=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&Vt.contains(document.activeElement)&&(fe=document.activeElement),Vt.removeAttribute("aria-hidden"),ve.appendChild(Vt),fe?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return St.\u0275fac=function(Vt){return new(Vt||St)(v.Y36(v.R0b),v.Y36(v.SBq),v.Y36(v.sBO),v.Y36(w.t4),v.Y36(ct))},St.\u0275dir=v.lG2({type:St,viewQuery:function(Vt,ve){if(1&Vt&&v.Gf(p.Pl,7),2&Vt){let fe;v.iGM(fe=v.CRH())&&(ve._portalOutlet=fe.first)}},features:[v.qOj]}),St})(),yt=(()=>{class St extends Jt{_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 St.\u0275fac=function(){let ce;return function(ve){return(ce||(ce=v.n5z(St)))(ve||St)}}(),St.\u0275cmp=v.Xpm({type:St,selectors:[["snack-bar-container"]],hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(Vt,ve){1&Vt&&v.WFA("@state.done",function(Le){return ve.onAnimationEnd(Le)}),2&Vt&&v.d8E("@state",ve._animationState)},features:[v.qOj],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(Vt,ve){1&Vt&&(v.TgZ(0,"div",0),v.YNc(1,tt,0,0,"ng-template",1),v.qZA(),v._UZ(2,"div")),2&Vt&&(v.xp6(2),v.uIk("aria-live",ve._live)("role",ve._role))},dependencies:[p.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:[qt.snackBarState]}}),St})(),At=(()=>{class St{}return St.\u0275fac=function(Vt){return new(Vt||St)},St.\u0275mod=v.oAB({type:St}),St.\u0275inj=v.cJS({imports:[u.U8,p.eL,x.ez,T.ot,t.BQ,t.BQ]}),St})();const xt=new v.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function pt(){return new ct}});let Ot=(()=>{class St{constructor(Vt,ve,fe,Le,Fe,Ge){this._overlay=Vt,this._live=ve,this._injector=fe,this._breakpointObserver=Le,this._parentSnackBar=Fe,this._defaultConfig=Ge,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,ve){return this._attach(Vt,ve)}openFromTemplate(Vt,ve){return this._attach(Vt,ve)}open(Vt,ve="",fe){const Le={...this._defaultConfig,...fe};return Le.data={message:Vt,action:ve},Le.announcementMessage===Vt&&(Le.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,Le)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(Vt,ve){const Le=v.zs3.create({parent:ve&&ve.viewContainerRef&&ve.viewContainerRef.injector||this._injector,providers:[{provide:ct,useValue:ve}]}),Fe=new p.C5(this.snackBarContainerComponent,ve.viewContainerRef,Le),Ge=Vt.attach(Fe);return Ge.instance.snackBarConfig=ve,Ge.instance}_attach(Vt,ve){const fe={...new ct,...this._defaultConfig,...ve},Le=this._createOverlay(fe),Fe=this._attachSnackBarContainer(Le,fe),Ge=new Dt(Fe,Le);if(Vt instanceof v.Rgc){const Gt=new p.UE(Vt,null,{$implicit:fe.data,snackBarRef:Ge});Ge.instance=Fe.attachTemplatePortal(Gt)}else{const Gt=this._createInjector(fe,Ge),Te=new p.C5(Vt,void 0,Gt),ne=Fe.attachComponentPortal(Te);Ge.instance=ne.instance}return this._breakpointObserver.observe(V.u3.HandsetPortrait).pipe((0,O.R)(Le.detachments())).subscribe(Gt=>{Le.overlayElement.classList.toggle(this.handsetCssClass,Gt.matches)}),fe.announcementMessage&&Fe._onAnnounce.subscribe(()=>{this._live.announce(fe.announcementMessage,fe.politeness)}),this._animateSnackBar(Ge,fe),this._openedSnackBarRef=Ge,this._openedSnackBarRef}_animateSnackBar(Vt,ve){Vt.afterDismissed().subscribe(()=>{this._openedSnackBarRef==Vt&&(this._openedSnackBarRef=null),ve.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{Vt.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):Vt.containerInstance.enter(),ve.duration&&ve.duration>0&&Vt.afterOpened().subscribe(()=>Vt._dismissAfter(ve.duration))}_createOverlay(Vt){const ve=new u.X_;ve.direction=Vt.direction;let fe=this._overlay.position().global();const Le="rtl"===Vt.direction,Fe="left"===Vt.horizontalPosition||"start"===Vt.horizontalPosition&&!Le||"end"===Vt.horizontalPosition&&Le,Ge=!Fe&&"center"!==Vt.horizontalPosition;return Fe?fe.left("0"):Ge?fe.right("0"):fe.centerHorizontally(),"top"===Vt.verticalPosition?fe.top("0"):fe.bottom("0"),ve.positionStrategy=fe,this._overlay.create(ve)}_createInjector(Vt,ve){return v.zs3.create({parent:Vt&&Vt.viewContainerRef&&Vt.viewContainerRef.injector||this._injector,providers:[{provide:Dt,useValue:ve},{provide:st,useValue:Vt.data}]})}}return St.\u0275fac=function(Vt){return new(Vt||St)(v.LFG(u.aV),v.LFG(N.Kd),v.LFG(v.zs3),v.LFG(V.Yg),v.LFG(St,12),v.LFG(xt))},St.\u0275prov=v.Yz7({token:St,factory:St.\u0275fac}),St})(),Bt=(()=>{class St extends Ot{constructor(Vt,ve,fe,Le,Fe,Ge){super(Vt,ve,fe,Le,Fe,Ge),this.simpleSnackBarComponent=wt,this.snackBarContainerComponent=yt,this.handsetCssClass="mat-snack-bar-handset"}}return St.\u0275fac=function(Vt){return new(Vt||St)(v.LFG(u.aV),v.LFG(N.Kd),v.LFG(v.zs3),v.LFG(V.Yg),v.LFG(St,12),v.LFG(xt))},St.\u0275prov=v.Yz7({token:St,factory:St.\u0275fac,providedIn:At}),St})()},96308:(X,j,h)=>{"use strict";h.d(j,{JX:()=>Bt,YE:()=>Dt,nU:()=>Ot});var u=h(94650),p=h(12687),x=h(21281),v=h(29521),t=h(3238),T=h(8929),U=h(36787),w=h(37340),P=h(36895);const O=["mat-sort-header",""];function L(St,ce){if(1&St){const Vt=u.EpF();u.TgZ(0,"div",3),u.NdJ("@arrowPosition.start",function(){u.CHM(Vt);const fe=u.oxw();return u.KtG(fe._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){u.CHM(Vt);const fe=u.oxw();return u.KtG(fe._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&St){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=["*"],ct=new u.OlP("MAT_SORT_DEFAULT_OPTIONS"),bt=(0,t.dB)((0,t.Id)(class{}));let Dt=(()=>{class St extends bt{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,x.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 fe=function wt(St,ce){let Vt=["asc","desc"];return"desc"==St&&Vt.reverse(),ce||Vt.push(""),Vt}(Vt.start||this.start,Vt?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear),Le=fe.indexOf(this.direction)+1;return Le>=fe.length&&(Le=0),fe[Le]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return St.\u0275fac=function(Vt){return new(Vt||St)(u.Y36(ct,8))},St.\u0275dir=u.lG2({type:St,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]}),St})();const qt=t.mZ.ENTERING+" "+t.yN.STANDARD_CURVE,Jt={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)(qt))]),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)(qt))]),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)(qt))]),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)(qt))]),arrowPosition:(0,w.X$)("arrowPosition",[(0,w.eR)("* => desc-to-hint, * => desc-to-active",(0,w.jt)(qt,(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)(qt,(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)(qt,(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)(qt,(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 yt=(()=>{class St{constructor(){this.changes=new T.xQ}}return St.\u0275fac=function(Vt){return new(Vt||St)},St.\u0275prov=u.Yz7({token:St,factory:St.\u0275fac,providedIn:"root"}),St})();const xt={provide:yt,deps:[[new u.FiY,new u.tp0,yt]],useFactory:function At(St){return St||new yt}},pt=(0,t.Id)(class{});let Ot=(()=>{class St extends pt{constructor(Vt,ve,fe,Le,Fe,Ge,Gt,Te){super(),this._intl=Vt,this._changeDetectorRef=ve,this._sort=fe,this._columnDef=Le,this._focusMonitor=Fe,this._elementRef=Ge,this._ariaDescriber=Gt,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",Te?.arrowPosition&&(this.arrowPosition=Te?.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,x.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 ve=!!Vt;ve!==this._showIndicatorHint&&(this._setIndicatorHintVisible(ve),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===v.L_||Vt.keyCode===v.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 St.\u0275fac=function(Vt){return new(Vt||St)(u.Y36(yt),u.Y36(u.sBO),u.Y36(Dt,8),u.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),u.Y36(p.tE),u.Y36(u.SBq),u.Y36(p.$s,8),u.Y36(ct,8))},St.\u0275cmp=u.Xpm({type:St,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(Vt,ve){1&Vt&&u.NdJ("click",function(){return ve._handleClick()})("keydown",function(Le){return ve._handleKeydown(Le)})("mouseenter",function(){return ve._setIndicatorHintVisible(!0)})("mouseleave",function(){return ve._setIndicatorHintVisible(!1)}),2&Vt&&(u.uIk("aria-sort",ve._getAriaSortAttribute()),u.ekj("mat-sort-header-disabled",ve._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,ve){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",ve._isSorted())("mat-sort-header-position-before","before"===ve.arrowPosition),u.uIk("tabindex",ve._isDisabled()?null:0)("role",ve._isDisabled()?null:"button"),u.xp6(3),u.Q6J("ngIf",ve._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:[Jt.indicator,Jt.leftPointer,Jt.rightPointer,Jt.arrowOpacity,Jt.arrowPosition,Jt.allowChildren]},changeDetection:0}),St})(),Bt=(()=>{class St{}return St.\u0275fac=function(Vt){return new(Vt||St)},St.\u0275mod=u.oAB({type:St}),St.\u0275inj=u.cJS({providers:[xt],imports:[P.ez,t.BQ]}),St})()},58425:(X,j,h)=>{"use strict";h.d(j,{C0:()=>ii,Ic:()=>oi,T5:()=>te,VY:()=>re,Vq:()=>_i,fd:()=>Qe,z9:()=>un});var u=h(84080),p=h(12138),x=h(36895),v=h(94650),t=h(4859),T=h(3238),U=h(97392),w=h(12687),P=h(8929),O=h(42654),L=h(40445),N=h(87545),V=h(24850),W=h(1059),tt=h(7625),st=h(75778),ct=h(37340);function bt(it,K){if(1&it&&v.GkF(0,8),2&it){const Tt=v.oxw();v.Q6J("ngTemplateOutlet",Tt.iconOverrides[Tt.state])("ngTemplateOutletContext",Tt._getIconContext())}}function Dt(it,K){if(1&it&&(v.TgZ(0,"span",13),v._uU(1),v.qZA()),2&it){const Tt=v.oxw(2);v.xp6(1),v.Oqu(Tt._getDefaultTextForState(Tt.state))}}function wt(it,K){if(1&it&&(v.TgZ(0,"span",14),v._uU(1),v.qZA()),2&it){const Tt=v.oxw(2);v.xp6(1),v.Oqu(Tt._intl.completedLabel)}}function qt(it,K){if(1&it&&(v.TgZ(0,"span",14),v._uU(1),v.qZA()),2&it){const Tt=v.oxw(2);v.xp6(1),v.Oqu(Tt._intl.editableLabel)}}function Jt(it,K){if(1&it&&(v.TgZ(0,"mat-icon",13),v._uU(1),v.qZA()),2&it){const Tt=v.oxw(2);v.xp6(1),v.Oqu(Tt._getDefaultTextForState(Tt.state))}}function yt(it,K){if(1&it&&(v.ynx(0,9),v.YNc(1,Dt,2,1,"span",10),v.YNc(2,wt,2,1,"span",11),v.YNc(3,qt,2,1,"span",11),v.YNc(4,Jt,2,1,"mat-icon",12),v.BQk()),2&it){const Tt=v.oxw();v.Q6J("ngSwitch",Tt.state),v.xp6(1),v.Q6J("ngSwitchCase","number"),v.xp6(1),v.Q6J("ngIf","done"===Tt.state),v.xp6(1),v.Q6J("ngIf","edit"===Tt.state)}}function At(it,K){if(1&it&&(v.TgZ(0,"div",15),v.GkF(1,16),v.qZA()),2&it){const Tt=v.oxw();v.xp6(1),v.Q6J("ngTemplateOutlet",Tt._templateLabel().template)}}function xt(it,K){if(1&it&&(v.TgZ(0,"div",15),v._uU(1),v.qZA()),2&it){const Tt=v.oxw();v.xp6(1),v.Oqu(Tt.label)}}function pt(it,K){if(1&it&&(v.TgZ(0,"div",17),v._uU(1),v.qZA()),2&it){const Tt=v.oxw();v.xp6(1),v.Oqu(Tt._intl.optionalLabel)}}function Ot(it,K){if(1&it&&(v.TgZ(0,"div",18),v._uU(1),v.qZA()),2&it){const Tt=v.oxw();v.xp6(1),v.Oqu(Tt.errorMessage)}}function Bt(it,K){}function St(it,K){if(1&it&&(v.Hsn(0),v.YNc(1,Bt,0,0,"ng-template",0)),2&it){const Tt=v.oxw();v.xp6(1),v.Q6J("cdkPortalOutlet",Tt._portal)}}const ce=["*"];function Vt(it,K){1&it&&v._UZ(0,"div",11)}const ve=function(it,K){return{step:it,i:K}};function fe(it,K){if(1&it&&(v.ynx(0),v.GkF(1,9),v.YNc(2,Vt,1,0,"div",10),v.BQk()),2&it){const Tt=K.$implicit,Rt=K.index,le=K.last;v.oxw(2);const be=v.MAs(4);v.xp6(1),v.Q6J("ngTemplateOutlet",be)("ngTemplateOutletContext",v.WLB(3,ve,Tt,Rt)),v.xp6(1),v.Q6J("ngIf",!le)}}const Le=function(it){return{animationDuration:it}},Fe=function(it,K){return{value:it,params:K}};function Ge(it,K){if(1&it){const Tt=v.EpF();v.TgZ(0,"div",12),v.NdJ("@horizontalStepTransition.done",function(le){v.CHM(Tt);const be=v.oxw(2);return v.KtG(be._animationDone.next(le))}),v.GkF(1,13),v.qZA()}if(2&it){const Tt=K.$implicit,Rt=K.index,le=v.oxw(2);v.ekj("mat-horizontal-stepper-content-inactive",le.selectedIndex!==Rt),v.Q6J("@horizontalStepTransition",v.WLB(8,Fe,le._getAnimationDirection(Rt),v.VKq(6,Le,le._getAnimationDuration())))("id",le._getStepContentId(Rt)),v.uIk("aria-labelledby",le._getStepLabelId(Rt)),v.xp6(1),v.Q6J("ngTemplateOutlet",Tt.content)}}function Gt(it,K){if(1&it&&(v.TgZ(0,"div",4)(1,"div",5),v.YNc(2,fe,3,6,"ng-container",6),v.qZA(),v.TgZ(3,"div",7),v.YNc(4,Ge,2,11,"div",8),v.qZA()()),2&it){const Tt=v.oxw();v.xp6(2),v.Q6J("ngForOf",Tt.steps),v.xp6(2),v.Q6J("ngForOf",Tt.steps)}}function Te(it,K){if(1&it){const Tt=v.EpF();v.TgZ(0,"div",15),v.GkF(1,9),v.TgZ(2,"div",16)(3,"div",17),v.NdJ("@verticalStepTransition.done",function(le){v.CHM(Tt);const be=v.oxw(2);return v.KtG(be._animationDone.next(le))}),v.TgZ(4,"div",18),v.GkF(5,13),v.qZA()()()()}if(2&it){const Tt=K.$implicit,Rt=K.index,le=K.last,be=v.oxw(2),De=v.MAs(4);v.xp6(1),v.Q6J("ngTemplateOutlet",De)("ngTemplateOutletContext",v.WLB(10,ve,Tt,Rt)),v.xp6(1),v.ekj("mat-stepper-vertical-line",!le),v.xp6(1),v.ekj("mat-vertical-stepper-content-inactive",be.selectedIndex!==Rt),v.Q6J("@verticalStepTransition",v.WLB(15,Fe,be._getAnimationDirection(Rt),v.VKq(13,Le,be._getAnimationDuration())))("id",be._getStepContentId(Rt)),v.uIk("aria-labelledby",be._getStepLabelId(Rt)),v.xp6(2),v.Q6J("ngTemplateOutlet",Tt.content)}}function ne(it,K){if(1&it&&(v.ynx(0),v.YNc(1,Te,6,18,"div",14),v.BQk()),2&it){const Tt=v.oxw();v.xp6(1),v.Q6J("ngForOf",Tt.steps)}}function jt(it,K){if(1&it){const Tt=v.EpF();v.TgZ(0,"mat-step-header",19),v.NdJ("click",function(){const be=v.CHM(Tt).step;return v.KtG(be.select())})("keydown",function(le){v.CHM(Tt);const be=v.oxw();return v.KtG(be._onKeydown(le))}),v.qZA()}if(2&it){const Tt=K.step,Rt=K.i,le=v.oxw();v.ekj("mat-horizontal-stepper-header","horizontal"===le.orientation)("mat-vertical-stepper-header","vertical"===le.orientation),v.Q6J("tabIndex",le._getFocusIndex()===Rt?0:-1)("id",le._getStepLabelId(Rt))("index",Rt)("state",le._getIndicatorType(Rt,Tt.state))("label",Tt.stepLabel||Tt.label)("selected",le.selectedIndex===Rt)("active",le._stepIsNavigable(Rt,Tt))("optional",Tt.optional)("errorMessage",Tt.errorMessage)("iconOverrides",le._iconOverrides)("disableRipple",le.disableRipple||!le._stepIsNavigable(Rt,Tt))("color",Tt.color||le.color),v.uIk("aria-posinset",Rt+1)("aria-setsize",le.steps.length)("aria-controls",le._getStepContentId(Rt))("aria-selected",le.selectedIndex==Rt)("aria-label",Tt.ariaLabel||null)("aria-labelledby",!Tt.ariaLabel&&Tt.ariaLabelledby?Tt.ariaLabelledby:null)("aria-disabled",!le._stepIsNavigable(Rt,Tt)||null)}}let re=(()=>{class it extends p.u6{}return it.\u0275fac=function(){let K;return function(Rt){return(K||(K=v.n5z(it)))(Rt||it)}}(),it.\u0275dir=v.lG2({type:it,selectors:[["","matStepLabel",""]],features:[v.qOj]}),it})(),Xt=(()=>{class it{constructor(){this.changes=new P.xQ,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return it.\u0275fac=function(Tt){return new(Tt||it)},it.\u0275prov=v.Yz7({token:it,factory:it.\u0275fac,providedIn:"root"}),it})();const Me={provide:Xt,deps:[[new v.FiY,new v.tp0,Xt]],useFactory:function oe(it){return it||new Xt}},en=(0,T.pj)(class extends p.KL{constructor(K){super(K)}},"primary");let _n=(()=>{class it extends en{constructor(Tt,Rt,le,be){super(le),this._intl=Tt,this._focusMonitor=Rt,this._intlSubscription=Tt.changes.subscribe(()=>be.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(Tt,Rt){Tt?this._focusMonitor.focusVia(this._elementRef,Tt,Rt):this._elementRef.nativeElement.focus(Rt)}_stringLabel(){return this.label instanceof re?null:this.label}_templateLabel(){return this.label instanceof re?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(Tt){return"number"==Tt?`${this.index+1}`:"edit"==Tt?"create":"error"==Tt?"warning":Tt}}return it.\u0275fac=function(Tt){return new(Tt||it)(v.Y36(Xt),v.Y36(w.tE),v.Y36(v.SBq),v.Y36(v.sBO))},it.\u0275cmp=v.Xpm({type:it,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:[v.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(Tt,Rt){1&Tt&&(v._UZ(0,"div",0),v.TgZ(1,"div")(2,"div",1),v.YNc(3,bt,1,2,"ng-container",2),v.YNc(4,yt,5,4,"ng-container",3),v.qZA()(),v.TgZ(5,"div",4),v.YNc(6,At,2,1,"div",5),v.YNc(7,xt,2,1,"div",5),v.YNc(8,pt,2,1,"div",6),v.YNc(9,Ot,2,1,"div",7),v.qZA()),2&Tt&&(v.Q6J("matRippleTrigger",Rt._getHostElement())("matRippleDisabled",Rt.disableRipple),v.xp6(1),v.Gre("mat-step-icon-state-",Rt.state," mat-step-icon"),v.ekj("mat-step-icon-selected",Rt.selected),v.xp6(1),v.Q6J("ngSwitch",!(!Rt.iconOverrides||!Rt.iconOverrides[Rt.state])),v.xp6(1),v.Q6J("ngSwitchCase",!0),v.xp6(2),v.ekj("mat-step-label-active",Rt.active)("mat-step-label-selected",Rt.selected)("mat-step-label-error","error"==Rt.state),v.xp6(1),v.Q6J("ngIf",Rt._templateLabel()),v.xp6(1),v.Q6J("ngIf",Rt._stringLabel()),v.xp6(1),v.Q6J("ngIf",Rt.optional&&"error"!=Rt.state),v.xp6(1),v.Q6J("ngIf","error"==Rt.state))},dependencies:[x.O5,x.tP,x.RF,x.n9,x.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}),it})();const ke={horizontalStepTransition:(0,ct.X$)("horizontalStepTransition",[(0,ct.SB)("previous",(0,ct.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,ct.SB)("current",(0,ct.oB)({transform:"none",visibility:"inherit"})),(0,ct.SB)("next",(0,ct.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,ct.eR)("* => *",(0,ct.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),{params:{animationDuration:"500ms"}})]),verticalStepTransition:(0,ct.X$)("verticalStepTransition",[(0,ct.SB)("previous",(0,ct.oB)({height:"0px",visibility:"hidden"})),(0,ct.SB)("next",(0,ct.oB)({height:"0px",visibility:"hidden"})),(0,ct.SB)("current",(0,ct.oB)({height:"*",visibility:"inherit"})),(0,ct.eR)("* <=> current",(0,ct.jt)("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),{params:{animationDuration:"225ms"}})])};let un=(()=>{class it{constructor(Tt){this.templateRef=Tt}}return it.\u0275fac=function(Tt){return new(Tt||it)(v.Y36(v.Rgc))},it.\u0275dir=v.lG2({type:it,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),it})(),Dn=(()=>{class it{constructor(Tt){this._template=Tt}}return it.\u0275fac=function(Tt){return new(Tt||it)(v.Y36(v.Rgc))},it.\u0275dir=v.lG2({type:it,selectors:[["ng-template","matStepContent",""]]}),it})(),ii=(()=>{class it extends p.be{constructor(Tt,Rt,le,be){super(Tt,be),this._errorStateMatcher=Rt,this._viewContainerRef=le,this._isSelected=O.w.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,N.w)(()=>this._stepper.selectionChange.pipe((0,V.U)(Tt=>Tt.selectedStep===this),(0,W.O)(this._stepper.selected===this)))).subscribe(Tt=>{Tt&&this._lazyContent&&!this._portal&&(this._portal=new u.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(Tt,Rt){return this._errorStateMatcher.isErrorState(Tt,Rt)||!!(Tt&&Tt.invalid&&this.interacted)}}return it.\u0275fac=function(Tt){return new(Tt||it)(v.Y36((0,v.Gpc)(()=>_i)),v.Y36(T.rD,4),v.Y36(v.s_b),v.Y36(p.gx,8))},it.\u0275cmp=v.Xpm({type:it,selectors:[["mat-step"]],contentQueries:function(Tt,Rt,le){if(1&Tt&&(v.Suo(le,re,5),v.Suo(le,Dn,5)),2&Tt){let be;v.iGM(be=v.CRH())&&(Rt.stepLabel=be.first),v.iGM(be=v.CRH())&&(Rt._lazyContent=be.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[v._Bn([{provide:T.rD,useExisting:it},{provide:p.be,useExisting:it}]),v.qOj],ngContentSelectors:ce,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(Tt,Rt){1&Tt&&(v.F$t(),v.YNc(0,St,2,1,"ng-template"))},dependencies:[u.Pl],encapsulation:2,changeDetection:0}),it})(),_i=(()=>{class it extends p.B8{constructor(Tt,Rt,le){super(Tt,Rt,le),this.steps=new v.n_E,this.animationDone=new v.vpe,this.labelPosition="end",this.headerPosition="top",this._iconOverrides={},this._animationDone=new P.xQ,this._animationDuration="";const be=le.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===be?"vertical":"horizontal"}get animationDuration(){return this._animationDuration}set animationDuration(Tt){this._animationDuration=/^\d+$/.test(Tt)?Tt+"ms":Tt}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:Tt,templateRef:Rt})=>this._iconOverrides[Tt]=Rt),this.steps.changes.pipe((0,tt.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,st.x)((Tt,Rt)=>Tt.fromState===Rt.fromState&&Tt.toState===Rt.toState),(0,tt.R)(this._destroyed)).subscribe(Tt=>{"current"===Tt.toState&&this.animationDone.emit()})}_stepIsNavigable(Tt,Rt){return Rt.completed||this.selectedIndex===Tt||!this.linear}_getAnimationDuration(){return this.animationDuration?this.animationDuration:"horizontal"===this.orientation?"500ms":"225ms"}}return it.\u0275fac=function(Tt){return new(Tt||it)(v.Y36(L.Is,8),v.Y36(v.sBO),v.Y36(v.SBq))},it.\u0275cmp=v.Xpm({type:it,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(Tt,Rt,le){if(1&Tt&&(v.Suo(le,ii,5),v.Suo(le,un,5)),2&Tt){let be;v.iGM(be=v.CRH())&&(Rt._steps=be),v.iGM(be=v.CRH())&&(Rt._icons=be)}},viewQuery:function(Tt,Rt){if(1&Tt&&v.Gf(_n,5),2&Tt){let le;v.iGM(le=v.CRH())&&(Rt._stepHeader=le)}},hostAttrs:["role","tablist"],hostVars:11,hostBindings:function(Tt,Rt){2&Tt&&(v.uIk("aria-orientation",Rt.orientation),v.ekj("mat-stepper-horizontal","horizontal"===Rt.orientation)("mat-stepper-vertical","vertical"===Rt.orientation)("mat-stepper-label-position-end","horizontal"===Rt.orientation&&"end"==Rt.labelPosition)("mat-stepper-label-position-bottom","horizontal"===Rt.orientation&&"bottom"==Rt.labelPosition)("mat-stepper-header-position-bottom","bottom"===Rt.headerPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[v._Bn([{provide:p.B8,useExisting:it}]),v.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(Tt,Rt){1&Tt&&(v.ynx(0,0),v.YNc(1,Gt,5,2,"div",1),v.YNc(2,ne,2,1,"ng-container",2),v.BQk(),v.YNc(3,jt,1,23,"ng-template",null,3,v.W1O)),2&Tt&&(v.Q6J("ngSwitch",Rt.orientation),v.xp6(1),v.Q6J("ngSwitchCase","horizontal"),v.xp6(1),v.Q6J("ngSwitchCase","vertical"))},dependencies:[x.sg,x.O5,x.tP,x.RF,x.n9,_n],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:[ke.horizontalStepTransition,ke.verticalStepTransition]},changeDetection:0}),it})(),oi=(()=>{class it extends p.st{}return it.\u0275fac=function(){let K;return function(Rt){return(K||(K=v.n5z(it)))(Rt||it)}}(),it.\u0275dir=v.lG2({type:it,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(Tt,Rt){2&Tt&&v.Ikx("type",Rt.type)},inputs:{type:"type"},features:[v.qOj]}),it})(),Qe=(()=>{class it extends p.po{}return it.\u0275fac=function(){let K;return function(Rt){return(K||(K=v.n5z(it)))(Rt||it)}}(),it.\u0275dir=v.lG2({type:it,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(Tt,Rt){2&Tt&&v.Ikx("type",Rt.type)},inputs:{type:"type"},features:[v.qOj]}),it})(),te=(()=>{class it{}return it.\u0275fac=function(Tt){return new(Tt||it)},it.\u0275mod=v.oAB({type:it}),it.\u0275inj=v.cJS({providers:[Me,T.rD],imports:[T.BQ,x.ez,u.eL,t.ot,p.U5,U.Ps,T.si,T.BQ]}),it})()},30671:(X,j,h)=>{"use strict";h.d(j,{ev:()=>Ie,Dz:()=>sn,w1:()=>Se,yh:()=>Ae,mD:()=>Nt,Q2:()=>pn,Ke:()=>Ei,ge:()=>zt,fO:()=>ge,XQ:()=>cn,as:()=>Sn,Gk:()=>We,nj:()=>Vi,BZ:()=>fn,by:()=>Aa,p0:()=>To});var u=h(94650),p=h(40445),x=h(21281),v=h(95017),t=h(83353),T=h(67376),U=h(36895),w=h(8929),P=h(5254),O=h(591),L=h(54715),N=h(21086),V=h(7625),W=h(72986);const tt=[[["caption"]],[["colgroup"],["col"]]],st=["caption","colgroup, col"];function Dt(Ne){return class extends Ne{constructor(...Rn){super(...Rn),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(Rn){const Re=this._sticky;this._sticky=(0,x.Ig)(Rn),this._hasStickyChanged=Re!==this._sticky}hasStickyChanged(){const Rn=this._hasStickyChanged;return this._hasStickyChanged=!1,Rn}resetStickyChanged(){this._hasStickyChanged=!1}}}const wt=new u.OlP("CDK_TABLE");let Jt=(()=>{class Ne{constructor(Re){this.template=Re}}return Ne.\u0275fac=function(Re){return new(Re||Ne)(u.Y36(u.Rgc))},Ne.\u0275dir=u.lG2({type:Ne,selectors:[["","cdkCellDef",""]]}),Ne})(),yt=(()=>{class Ne{constructor(Re){this.template=Re}}return Ne.\u0275fac=function(Re){return new(Re||Ne)(u.Y36(u.Rgc))},Ne.\u0275dir=u.lG2({type:Ne,selectors:[["","cdkHeaderCellDef",""]]}),Ne})(),At=(()=>{class Ne{constructor(Re){this.template=Re}}return Ne.\u0275fac=function(Re){return new(Re||Ne)(u.Y36(u.Rgc))},Ne.\u0275dir=u.lG2({type:Ne,selectors:[["","cdkFooterCellDef",""]]}),Ne})();class xt{}const pt=Dt(xt);let Ot=(()=>{class Ne extends pt{constructor(Re){super(),this._table=Re,this._stickyEnd=!1}get name(){return this._name}set name(Re){this._setNameInput(Re)}get stickyEnd(){return this._stickyEnd}set stickyEnd(Re){const we=this._stickyEnd;this._stickyEnd=(0,x.Ig)(Re),this._hasStickyChanged=we!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(Re){Re&&(this._name=Re,this.cssClassFriendlyName=Re.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return Ne.\u0275fac=function(Re){return new(Re||Ne)(u.Y36(wt,8))},Ne.\u0275dir=u.lG2({type:Ne,selectors:[["","cdkColumnDef",""]],contentQueries:function(Re,we,on){if(1&Re&&(u.Suo(on,Jt,5),u.Suo(on,yt,5),u.Suo(on,At,5)),2&Re){let Q;u.iGM(Q=u.CRH())&&(we.cell=Q.first),u.iGM(Q=u.CRH())&&(we.headerCell=Q.first),u.iGM(Q=u.CRH())&&(we.footerCell=Q.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[u._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Ne}]),u.qOj]}),Ne})();class Bt{constructor(Rn,Re){Re.nativeElement.classList.add(...Rn._columnCssClassName)}}let St=(()=>{class Ne extends Bt{constructor(Re,we){super(Re,we)}}return Ne.\u0275fac=function(Re){return new(Re||Ne)(u.Y36(Ot),u.Y36(u.SBq))},Ne.\u0275dir=u.lG2({type:Ne,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[u.qOj]}),Ne})(),ce=(()=>{class Ne extends Bt{constructor(Re,we){if(super(Re,we),1===Re._table?._elementRef.nativeElement.nodeType){const on=Re._table._elementRef.nativeElement.getAttribute("role");we.nativeElement.setAttribute("role","grid"===on||"treegrid"===on?"gridcell":"cell")}}}return Ne.\u0275fac=function(Re){return new(Re||Ne)(u.Y36(Ot),u.Y36(u.SBq))},Ne.\u0275dir=u.lG2({type:Ne,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[u.qOj]}),Ne})(),Vt=(()=>{class Ne extends Bt{constructor(Re,we){if(super(Re,we),1===Re._table?._elementRef.nativeElement.nodeType){const on=Re._table._elementRef.nativeElement.getAttribute("role");we.nativeElement.setAttribute("role","grid"===on||"treegrid"===on?"gridcell":"cell")}}}return Ne.\u0275fac=function(Re){return new(Re||Ne)(u.Y36(Ot),u.Y36(u.SBq))},Ne.\u0275dir=u.lG2({type:Ne,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[u.qOj]}),Ne})();class ve{constructor(){this.tasks=[],this.endTasks=[]}}const fe=new u.OlP("_COALESCED_STYLE_SCHEDULER");let Le=(()=>{class Ne{constructor(Re){this._ngZone=Re,this._currentSchedule=null,this._destroyed=new w.xQ}schedule(Re){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(Re)}scheduleEnd(Re){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(Re)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new ve,this._getScheduleObservable().pipe((0,V.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const Re=this._currentSchedule;this._currentSchedule=new ve;for(const we of Re.tasks)we();for(const we of Re.endTasks)we()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,P.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,W.q)(1))}}return Ne.\u0275fac=function(Re){return new(Re||Ne)(u.LFG(u.R0b))},Ne.\u0275prov=u.Yz7({token:Ne,factory:Ne.\u0275fac}),Ne})(),Ge=(()=>{class Ne{constructor(Re,we){this.template=Re,this._differs=we}ngOnChanges(Re){if(!this._columnsDiffer){const we=Re.columns&&Re.columns.currentValue||[];this._columnsDiffer=this._differs.find(we).create(),this._columnsDiffer.diff(we)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(Re){return this instanceof ne?Re.headerCell.template:this instanceof Xt?Re.footerCell.template:Re.cell.template}}return Ne.\u0275fac=function(Re){return new(Re||Ne)(u.Y36(u.Rgc),u.Y36(u.ZZ4))},Ne.\u0275dir=u.lG2({type:Ne,features:[u.TTD]}),Ne})();class Gt extends Ge{}const Te=Dt(Gt);let ne=(()=>{class Ne extends Te{constructor(Re,we,on){super(Re,we),this._table=on}ngOnChanges(Re){super.ngOnChanges(Re)}}return Ne.\u0275fac=function(Re){return new(Re||Ne)(u.Y36(u.Rgc),u.Y36(u.ZZ4),u.Y36(wt,8))},Ne.\u0275dir=u.lG2({type:Ne,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[u.qOj,u.TTD]}),Ne})();class jt extends Ge{}const re=Dt(jt);let Xt=(()=>{class Ne extends re{constructor(Re,we,on){super(Re,we),this._table=on}ngOnChanges(Re){super.ngOnChanges(Re)}}return Ne.\u0275fac=function(Re){return new(Re||Ne)(u.Y36(u.Rgc),u.Y36(u.ZZ4),u.Y36(wt,8))},Ne.\u0275dir=u.lG2({type:Ne,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[u.qOj,u.TTD]}),Ne})(),oe=(()=>{class Ne extends Ge{constructor(Re,we,on){super(Re,we),this._table=on}}return Ne.\u0275fac=function(Re){return new(Re||Ne)(u.Y36(u.Rgc),u.Y36(u.ZZ4),u.Y36(wt,8))},Ne.\u0275dir=u.lG2({type:Ne,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[u.qOj]}),Ne})(),Me=(()=>{class Ne{constructor(Re){this._viewContainer=Re,Ne.mostRecentCellOutlet=this}ngOnDestroy(){Ne.mostRecentCellOutlet===this&&(Ne.mostRecentCellOutlet=null)}}return Ne.mostRecentCellOutlet=null,Ne.\u0275fac=function(Re){return new(Re||Ne)(u.Y36(u.s_b))},Ne.\u0275dir=u.lG2({type:Ne,selectors:[["","cdkCellOutlet",""]]}),Ne})(),en=(()=>{class Ne{}return Ne.\u0275fac=function(Re){return new(Re||Ne)},Ne.\u0275cmp=u.Xpm({type:Ne,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Re,we){1&Re&&u.GkF(0,0)},dependencies:[Me],encapsulation:2}),Ne})(),_n=(()=>{class Ne{}return Ne.\u0275fac=function(Re){return new(Re||Ne)},Ne.\u0275cmp=u.Xpm({type:Ne,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Re,we){1&Re&&u.GkF(0,0)},dependencies:[Me],encapsulation:2}),Ne})(),xe=(()=>{class Ne{}return Ne.\u0275fac=function(Re){return new(Re||Ne)},Ne.\u0275cmp=u.Xpm({type:Ne,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Re,we){1&Re&&u.GkF(0,0)},dependencies:[Me],encapsulation:2}),Ne})(),vn=(()=>{class Ne{constructor(Re){this.templateRef=Re,this._contentClassName="cdk-no-data-row"}}return Ne.\u0275fac=function(Re){return new(Re||Ne)(u.Y36(u.Rgc))},Ne.\u0275dir=u.lG2({type:Ne,selectors:[["ng-template","cdkNoDataRow",""]]}),Ne})();const ke=["top","bottom","left","right"];class un{constructor(Rn,Re,we,on,Q=!0,Et=!0,J){this._isNativeHtmlTable=Rn,this._stickCellCss=Re,this.direction=we,this._coalescedStyleScheduler=on,this._isBrowser=Q,this._needsPositionStickyOnElement=Et,this._positionListener=J,this._cachedCellWidths=[],this._borderCellCss={top:`${Re}-border-elem-top`,bottom:`${Re}-border-elem-bottom`,left:`${Re}-border-elem-left`,right:`${Re}-border-elem-right`}}clearStickyPositioning(Rn,Re){const we=[];for(const on of Rn)if(on.nodeType===on.ELEMENT_NODE){we.push(on);for(let Q=0;Q{for(const on of we)this._removeStickyStyle(on,Re)})}updateStickyColumns(Rn,Re,we,on=!0){if(!Rn.length||!this._isBrowser||!Re.some(wo=>wo)&&!we.some(wo=>wo))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const Q=Rn[0],Et=Q.children.length,J=this._getCellWidths(Q,on),Lt=this._getStickyStartColumnPositions(J,Re),He=this._getStickyEndColumnPositions(J,we),zn=Re.lastIndexOf(!0),Ki=we.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const wo="rtl"===this.direction,dr=wo?"right":"left",pr=wo?"left":"right";for(const $r of Rn)for(let ja=0;jaRe[ja]?$r:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===Ki?[]:J.slice(Ki).map(($r,ja)=>we[ja+Ki]?$r:null).reverse()}))})}stickRows(Rn,Re,we){if(!this._isBrowser)return;const on="bottom"===we?Rn.slice().reverse():Rn,Q="bottom"===we?Re.slice().reverse():Re,Et=[],J=[],Lt=[];for(let zn=0,Ki=0;zn{for(let zn=0;zn{Re.some(on=>!on)?this._removeStickyStyle(we,["bottom"]):this._addStickyStyle(we,"bottom",0,!1)})}_removeStickyStyle(Rn,Re){for(const on of Re)Rn.style[on]="",Rn.classList.remove(this._borderCellCss[on]);ke.some(on=>-1===Re.indexOf(on)&&Rn.style[on])?Rn.style.zIndex=this._getCalculatedZIndex(Rn):(Rn.style.zIndex="",this._needsPositionStickyOnElement&&(Rn.style.position=""),Rn.classList.remove(this._stickCellCss))}_addStickyStyle(Rn,Re,we,on){Rn.classList.add(this._stickCellCss),on&&Rn.classList.add(this._borderCellCss[Re]),Rn.style[Re]=`${we}px`,Rn.style.zIndex=this._getCalculatedZIndex(Rn),this._needsPositionStickyOnElement&&(Rn.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(Rn){const Re={top:100,bottom:10,left:1,right:1};let we=0;for(const on of ke)Rn.style[on]&&(we+=Re[on]);return we?`${we}`:""}_getCellWidths(Rn,Re=!0){if(!Re&&this._cachedCellWidths.length)return this._cachedCellWidths;const we=[],on=Rn.children;for(let Q=0;Q0;Q--)Re[Q]&&(we[Q]=on,on+=Rn[Q]);return we}}const Tt=new u.OlP("CDK_SPL");let le=(()=>{class Ne{constructor(Re,we){this.viewContainer=Re,this.elementRef=we}}return Ne.\u0275fac=function(Re){return new(Re||Ne)(u.Y36(u.s_b),u.Y36(u.SBq))},Ne.\u0275dir=u.lG2({type:Ne,selectors:[["","rowOutlet",""]]}),Ne})(),be=(()=>{class Ne{constructor(Re,we){this.viewContainer=Re,this.elementRef=we}}return Ne.\u0275fac=function(Re){return new(Re||Ne)(u.Y36(u.s_b),u.Y36(u.SBq))},Ne.\u0275dir=u.lG2({type:Ne,selectors:[["","headerRowOutlet",""]]}),Ne})(),De=(()=>{class Ne{constructor(Re,we){this.viewContainer=Re,this.elementRef=we}}return Ne.\u0275fac=function(Re){return new(Re||Ne)(u.Y36(u.s_b),u.Y36(u.SBq))},Ne.\u0275dir=u.lG2({type:Ne,selectors:[["","footerRowOutlet",""]]}),Ne})(),hn=(()=>{class Ne{constructor(Re,we){this.viewContainer=Re,this.elementRef=we}}return Ne.\u0275fac=function(Re){return new(Re||Ne)(u.Y36(u.s_b),u.Y36(u.SBq))},Ne.\u0275dir=u.lG2({type:Ne,selectors:[["","noDataRowOutlet",""]]}),Ne})(),Di=(()=>{class Ne{constructor(Re,we,on,Q,Et,J,Lt,He,zn,Ki,wo,dr){this._differs=Re,this._changeDetectorRef=we,this._elementRef=on,this._dir=Et,this._platform=Lt,this._viewRepeater=He,this._coalescedStyleScheduler=zn,this._viewportRuler=Ki,this._stickyPositioningListener=wo,this._ngZone=dr,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}),Q||this._elementRef.nativeElement.setAttribute("role","table"),this._document=J,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(Re){this._trackByFn=Re}get dataSource(){return this._dataSource}set dataSource(Re){this._dataSource!==Re&&this._switchDataSource(Re)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(Re){this._multiTemplateDataRows=(0,x.Ig)(Re),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(Re){this._fixedLayout=(0,x.Ig)(Re),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((Re,we)=>this.trackBy?this.trackBy(we.dataIndex,we.data):we),this._viewportRuler.change().pipe((0,V.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const we=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||we,this._forceRecalculateCellWidths=we,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(Re=>{Re.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,v.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const Re=this._dataDiffer.diff(this._renderRows);if(!Re)return this._updateNoDataRow(),void this.contentChanged.next();const we=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(Re,we,(on,Q,Et)=>this._getEmbeddedViewArgs(on.item,Et),on=>on.item.data,on=>{1===on.operation&&on.context&&this._renderCellTemplateForItem(on.record.item.rowDef,on.context)}),this._updateRowIndexContext(),Re.forEachIdentityChange(on=>{we.get(on.currentIndex).context.$implicit=on.item.data}),this._updateNoDataRow(),this._ngZone&&u.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,W.q)(1),(0,V.R)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(Re){this._customColumnDefs.add(Re)}removeColumnDef(Re){this._customColumnDefs.delete(Re)}addRowDef(Re){this._customRowDefs.add(Re)}removeRowDef(Re){this._customRowDefs.delete(Re)}addHeaderRowDef(Re){this._customHeaderRowDefs.add(Re),this._headerRowDefChanged=!0}removeHeaderRowDef(Re){this._customHeaderRowDefs.delete(Re),this._headerRowDefChanged=!0}addFooterRowDef(Re){this._customFooterRowDefs.add(Re),this._footerRowDefChanged=!0}removeFooterRowDef(Re){this._customFooterRowDefs.delete(Re),this._footerRowDefChanged=!0}setNoDataRow(Re){this._customNoDataRow=Re}updateStickyHeaderRowStyles(){const Re=this._getRenderedRows(this._headerRowOutlet),on=this._elementRef.nativeElement.querySelector("thead");on&&(on.style.display=Re.length?"":"none");const Q=this._headerRowDefs.map(Et=>Et.sticky);this._stickyStyler.clearStickyPositioning(Re,["top"]),this._stickyStyler.stickRows(Re,Q,"top"),this._headerRowDefs.forEach(Et=>Et.resetStickyChanged())}updateStickyFooterRowStyles(){const Re=this._getRenderedRows(this._footerRowOutlet),on=this._elementRef.nativeElement.querySelector("tfoot");on&&(on.style.display=Re.length?"":"none");const Q=this._footerRowDefs.map(Et=>Et.sticky);this._stickyStyler.clearStickyPositioning(Re,["bottom"]),this._stickyStyler.stickRows(Re,Q,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,Q),this._footerRowDefs.forEach(Et=>Et.resetStickyChanged())}updateStickyColumnStyles(){const Re=this._getRenderedRows(this._headerRowOutlet),we=this._getRenderedRows(this._rowOutlet),on=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...Re,...we,...on],["left","right"]),this._stickyColumnStylesNeedReset=!1),Re.forEach((Q,Et)=>{this._addStickyColumnStyles([Q],this._headerRowDefs[Et])}),this._rowDefs.forEach(Q=>{const Et=[];for(let J=0;J{this._addStickyColumnStyles([Q],this._footerRowDefs[Et])}),Array.from(this._columnDefsByName.values()).forEach(Q=>Q.resetStickyChanged())}_getAllRenderRows(){const Re=[],we=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let on=0;on{const J=on&&on.has(Et)?on.get(Et):[];if(J.length){const Lt=J.shift();return Lt.dataIndex=we,Lt}return{data:Re,rowDef:Et,dataIndex:we}})}_cacheColumnDefs(){this._columnDefsByName.clear(),bo(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(we=>{this._columnDefsByName.has(we.name),this._columnDefsByName.set(we.name,we)})}_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 Re=this._rowDefs.filter(we=>!we.when);this._defaultRowDef=Re[0]}_renderUpdatedColumns(){const Re=(Et,J)=>Et||!!J.getColumnsDiff(),we=this._rowDefs.reduce(Re,!1);we&&this._forceRenderDataRows();const on=this._headerRowDefs.reduce(Re,!1);on&&this._forceRenderHeaderRows();const Q=this._footerRowDefs.reduce(Re,!1);return Q&&this._forceRenderFooterRows(),we||on||Q}_switchDataSource(Re){this._data=[],(0,v.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),Re||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=Re}_observeRenderChanges(){if(!this.dataSource)return;let Re;(0,v.Z9)(this.dataSource)?Re=this.dataSource.connect(this):(0,L.b)(this.dataSource)?Re=this.dataSource:Array.isArray(this.dataSource)&&(Re=(0,N.of)(this.dataSource)),this._renderChangeSubscription=Re.pipe((0,V.R)(this._onDestroy)).subscribe(we=>{this._data=we||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((Re,we)=>this._renderRow(this._headerRowOutlet,Re,we)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((Re,we)=>this._renderRow(this._footerRowOutlet,Re,we)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(Re,we){const on=Array.from(we.columns||[]).map(J=>this._columnDefsByName.get(J)),Q=on.map(J=>J.sticky),Et=on.map(J=>J.stickyEnd);this._stickyStyler.updateStickyColumns(Re,Q,Et,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(Re){const we=[];for(let on=0;on!Q.when||Q.when(we,Re));else{let Q=this._rowDefs.find(Et=>Et.when&&Et.when(we,Re))||this._defaultRowDef;Q&&on.push(Q)}return on}_getEmbeddedViewArgs(Re,we){return{templateRef:Re.rowDef.template,context:{$implicit:Re.data},index:we}}_renderRow(Re,we,on,Q={}){const Et=Re.viewContainer.createEmbeddedView(we.template,Q,on);return this._renderCellTemplateForItem(we,Q),Et}_renderCellTemplateForItem(Re,we){for(let on of this._getCellTemplates(Re))Me.mostRecentCellOutlet&&Me.mostRecentCellOutlet._viewContainer.createEmbeddedView(on,we);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const Re=this._rowOutlet.viewContainer;for(let we=0,on=Re.length;we{const on=this._columnDefsByName.get(we);return Re.extractCellTemplate(on)}):[]}_applyNativeTableSections(){const Re=this._document.createDocumentFragment(),we=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const on of we){const Q=this._document.createElement(on.tag);Q.setAttribute("role","rowgroup");for(const Et of on.outlets)Q.appendChild(Et.elementRef.nativeElement);Re.appendChild(Q)}this._elementRef.nativeElement.appendChild(Re)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const Re=(we,on)=>we||on.hasStickyChanged();this._headerRowDefs.reduce(Re,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(Re,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(Re,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new un(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,V.R)(this._onDestroy)).subscribe(we=>{this._stickyStyler.direction=we,this.updateStickyColumnStyles()})}_getOwnDefs(Re){return Re.filter(we=>!we._table||we._table===this)}_updateNoDataRow(){const Re=this._customNoDataRow||this._noDataRow;if(!Re)return;const we=0===this._rowOutlet.viewContainer.length;if(we===this._isShowingNoDataRow)return;const on=this._noDataRowOutlet.viewContainer;if(we){const Q=on.createEmbeddedView(Re.templateRef),Et=Q.rootNodes[0];1===Q.rootNodes.length&&Et?.nodeType===this._document.ELEMENT_NODE&&(Et.setAttribute("role","row"),Et.classList.add(Re._contentClassName))}else on.clear();this._isShowingNoDataRow=we}}return Ne.\u0275fac=function(Re){return new(Re||Ne)(u.Y36(u.ZZ4),u.Y36(u.sBO),u.Y36(u.SBq),u.$8M("role"),u.Y36(p.Is,8),u.Y36(U.K0),u.Y36(t.t4),u.Y36(v.k),u.Y36(fe),u.Y36(T.rL),u.Y36(Tt,12),u.Y36(u.R0b,8))},Ne.\u0275cmp=u.Xpm({type:Ne,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(Re,we,on){if(1&Re&&(u.Suo(on,vn,5),u.Suo(on,Ot,5),u.Suo(on,oe,5),u.Suo(on,ne,5),u.Suo(on,Xt,5)),2&Re){let Q;u.iGM(Q=u.CRH())&&(we._noDataRow=Q.first),u.iGM(Q=u.CRH())&&(we._contentColumnDefs=Q),u.iGM(Q=u.CRH())&&(we._contentRowDefs=Q),u.iGM(Q=u.CRH())&&(we._contentHeaderRowDefs=Q),u.iGM(Q=u.CRH())&&(we._contentFooterRowDefs=Q)}},viewQuery:function(Re,we){if(1&Re&&(u.Gf(le,7),u.Gf(be,7),u.Gf(De,7),u.Gf(hn,7)),2&Re){let on;u.iGM(on=u.CRH())&&(we._rowOutlet=on.first),u.iGM(on=u.CRH())&&(we._headerRowOutlet=on.first),u.iGM(on=u.CRH())&&(we._footerRowOutlet=on.first),u.iGM(on=u.CRH())&&(we._noDataRowOutlet=on.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(Re,we){2&Re&&u.ekj("cdk-table-fixed-layout",we.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[u._Bn([{provide:wt,useExisting:Ne},{provide:v.k,useClass:v.yy},{provide:fe,useClass:Le},{provide:Tt,useValue:null}])],ngContentSelectors:st,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(Re,we){1&Re&&(u.F$t(tt),u.Hsn(0),u.Hsn(1,1),u.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[le,be,De,hn],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),Ne})();function bo(Ne,Rn){return Ne.concat(Array.from(Rn))}let Vn=(()=>{class Ne{}return Ne.\u0275fac=function(Re){return new(Re||Ne)},Ne.\u0275mod=u.oAB({type:Ne}),Ne.\u0275inj=u.cJS({imports:[T.Cl]}),Ne})();var Je=h(3238),gn=h(36787),Ye=h(23426),Ee=h(24850);const Xe=[[["caption"]],[["colgroup"],["col"]]],se=["caption","colgroup, col"];let fn=(()=>{class Ne extends Di{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return Ne.\u0275fac=function(){let Rn;return function(we){return(Rn||(Rn=u.n5z(Ne)))(we||Ne)}}(),Ne.\u0275cmp=u.Xpm({type:Ne,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(Re,we){2&Re&&u.ekj("mat-table-fixed-layout",we.fixedLayout)},exportAs:["matTable"],features:[u._Bn([{provide:v.k,useClass:v.yy},{provide:Di,useExisting:Ne},{provide:wt,useExisting:Ne},{provide:fe,useClass:Le},{provide:Tt,useValue:null}]),u.qOj],ngContentSelectors:se,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(Re,we){1&Re&&(u.F$t(Xe),u.Hsn(0),u.Hsn(1,1),u.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[le,be,De,hn],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}),Ne})(),sn=(()=>{class Ne extends Jt{}return Ne.\u0275fac=function(){let Rn;return function(we){return(Rn||(Rn=u.n5z(Ne)))(we||Ne)}}(),Ne.\u0275dir=u.lG2({type:Ne,selectors:[["","matCellDef",""]],features:[u._Bn([{provide:Jt,useExisting:Ne}]),u.qOj]}),Ne})(),ge=(()=>{class Ne extends yt{}return Ne.\u0275fac=function(){let Rn;return function(we){return(Rn||(Rn=u.n5z(Ne)))(we||Ne)}}(),Ne.\u0275dir=u.lG2({type:Ne,selectors:[["","matHeaderCellDef",""]],features:[u._Bn([{provide:yt,useExisting:Ne}]),u.qOj]}),Ne})(),Nt=(()=>{class Ne extends At{}return Ne.\u0275fac=function(){let Rn;return function(we){return(Rn||(Rn=u.n5z(Ne)))(we||Ne)}}(),Ne.\u0275dir=u.lG2({type:Ne,selectors:[["","matFooterCellDef",""]],features:[u._Bn([{provide:At,useExisting:Ne}]),u.qOj]}),Ne})(),Se=(()=>{class Ne extends Ot{get name(){return this._name}set name(Re){this._setNameInput(Re)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return Ne.\u0275fac=function(){let Rn;return function(we){return(Rn||(Rn=u.n5z(Ne)))(we||Ne)}}(),Ne.\u0275dir=u.lG2({type:Ne,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[u._Bn([{provide:Ot,useExisting:Ne},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Ne}]),u.qOj]}),Ne})(),zt=(()=>{class Ne extends St{}return Ne.\u0275fac=function(){let Rn;return function(we){return(Rn||(Rn=u.n5z(Ne)))(we||Ne)}}(),Ne.\u0275dir=u.lG2({type:Ne,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[u.qOj]}),Ne})(),Ae=(()=>{class Ne extends ce{}return Ne.\u0275fac=function(){let Rn;return function(we){return(Rn||(Rn=u.n5z(Ne)))(we||Ne)}}(),Ne.\u0275dir=u.lG2({type:Ne,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[u.qOj]}),Ne})(),Ie=(()=>{class Ne extends Vt{}return Ne.\u0275fac=function(){let Rn;return function(we){return(Rn||(Rn=u.n5z(Ne)))(we||Ne)}}(),Ne.\u0275dir=u.lG2({type:Ne,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[u.qOj]}),Ne})(),Sn=(()=>{class Ne extends ne{}return Ne.\u0275fac=function(){let Rn;return function(we){return(Rn||(Rn=u.n5z(Ne)))(we||Ne)}}(),Ne.\u0275dir=u.lG2({type:Ne,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[u._Bn([{provide:ne,useExisting:Ne}]),u.qOj]}),Ne})(),Ei=(()=>{class Ne extends Xt{}return Ne.\u0275fac=function(){let Rn;return function(we){return(Rn||(Rn=u.n5z(Ne)))(we||Ne)}}(),Ne.\u0275dir=u.lG2({type:Ne,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[u._Bn([{provide:Xt,useExisting:Ne}]),u.qOj]}),Ne})(),Vi=(()=>{class Ne extends oe{}return Ne.\u0275fac=function(){let Rn;return function(we){return(Rn||(Rn=u.n5z(Ne)))(we||Ne)}}(),Ne.\u0275dir=u.lG2({type:Ne,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[u._Bn([{provide:oe,useExisting:Ne}]),u.qOj]}),Ne})(),cn=(()=>{class Ne extends en{}return Ne.\u0275fac=function(){let Rn;return function(we){return(Rn||(Rn=u.n5z(Ne)))(we||Ne)}}(),Ne.\u0275cmp=u.Xpm({type:Ne,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[u._Bn([{provide:en,useExisting:Ne}]),u.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Re,we){1&Re&&u.GkF(0,0)},dependencies:[Me],encapsulation:2}),Ne})(),pn=(()=>{class Ne extends _n{}return Ne.\u0275fac=function(){let Rn;return function(we){return(Rn||(Rn=u.n5z(Ne)))(we||Ne)}}(),Ne.\u0275cmp=u.Xpm({type:Ne,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[u._Bn([{provide:_n,useExisting:Ne}]),u.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Re,we){1&Re&&u.GkF(0,0)},dependencies:[Me],encapsulation:2}),Ne})(),We=(()=>{class Ne extends xe{}return Ne.\u0275fac=function(){let Rn;return function(we){return(Rn||(Rn=u.n5z(Ne)))(we||Ne)}}(),Ne.\u0275cmp=u.Xpm({type:Ne,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[u._Bn([{provide:xe,useExisting:Ne}]),u.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Re,we){1&Re&&u.GkF(0,0)},dependencies:[Me],encapsulation:2}),Ne})(),To=(()=>{class Ne{}return Ne.\u0275fac=function(Re){return new(Re||Ne)},Ne.\u0275mod=u.oAB({type:Ne}),Ne.\u0275inj=u.cJS({imports:[Vn,Je.BQ,Je.BQ]}),Ne})();class ha extends v.o2{constructor(Rn=[]){super(),this._renderData=new O.X([]),this._filter=new O.X(""),this._internalPageChanges=new w.xQ,this._renderChangesSubscription=null,this.sortingDataAccessor=(Re,we)=>{const on=Re[we];if((0,x.t6)(on)){const Q=Number(on);return Q<9007199254740991?Q:on}return on},this.sortData=(Re,we)=>{const on=we.active,Q=we.direction;return on&&""!=Q?Re.sort((Et,J)=>{let Lt=this.sortingDataAccessor(Et,on),He=this.sortingDataAccessor(J,on);const zn=typeof Lt,Ki=typeof He;zn!==Ki&&("number"===zn&&(Lt+=""),"number"===Ki&&(He+=""));let wo=0;return null!=Lt&&null!=He?Lt>He?wo=1:Lt{const on=Object.keys(Re).reduce((Et,J)=>Et+Re[J]+"\u25ec","").toLowerCase(),Q=we.trim().toLowerCase();return-1!=on.indexOf(Q)},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,gn.T)(this._sort.sortChange,this._sort.initialized):(0,N.of)(null),Re=this._paginator?(0,gn.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,N.of)(null),on=(0,Ye.aj)([this._data,this._filter]).pipe((0,Ee.U)(([J])=>this._filterData(J))),Q=(0,Ye.aj)([on,Rn]).pipe((0,Ee.U)(([J])=>this._orderData(J))),Et=(0,Ye.aj)([Q,Re]).pipe((0,Ee.U)(([J])=>this._pageData(J)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=Et.subscribe(J=>this._renderData.next(J))}_filterData(Rn){return this.filteredData=null==this.filter||""===this.filter?Rn:Rn.filter(Re=>this.filterPredicate(Re,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 Re=this.paginator.pageIndex*this.paginator.pageSize;return Rn.slice(Re,Re+this.paginator.pageSize)}_updatePaginator(Rn){Promise.resolve().then(()=>{const Re=this.paginator;if(Re&&(Re.length=Rn,Re.pageIndex>0)){const we=Math.ceil(Re.length/Re.pageSize)-1||0,on=Math.min(Re.pageIndex,we);on!==Re.pageIndex&&(Re.pageIndex=on,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}class Aa extends ha{}},3848:(X,j,h)=>{"use strict";h.d(j,{BU:()=>ze,Nh:()=>ge,Nj:()=>fn,SP:()=>Ee,uD:()=>_i,uX:()=>te});var u=h(12687),p=h(49643),x=h(84080),v=h(36895),t=h(94650),T=h(3238),U=h(72986),w=h(1059),P=h(75778),O=h(7625),L=h(87545),N=h(31307),V=h(92198),W=h(8929),tt=h(42654),st=h(23753),ct=h(21086),bt=h(36787),Dt=h(68896),wt=h(56498),qt=h(98723),Jt=h(40445),yt=h(37340),At=h(21281),xt=h(67376),pt=h(83353),Ot=h(29521);function Bt(Nt,Se){1&Nt&&t.Hsn(0)}const St=["*"];function ce(Nt,Se){}const Vt=function(Nt){return{animationDuration:Nt}},ve=function(Nt,Se){return{value:Nt,params:Se}},fe=["tabListContainer"],Le=["tabList"],Fe=["tabListInner"],Ge=["nextPaginator"],Gt=["previousPaginator"],Te=["tabBodyWrapper"],ne=["tabHeader"];function jt(Nt,Se){}function re(Nt,Se){if(1&Nt&&t.YNc(0,jt,0,0,"ng-template",10),2&Nt){const zt=t.oxw().$implicit;t.Q6J("cdkPortalOutlet",zt.templateLabel)}}function Xt(Nt,Se){if(1&Nt&&t._uU(0),2&Nt){const zt=t.oxw().$implicit;t.Oqu(zt.textLabel)}}function oe(Nt,Se){if(1&Nt){const zt=t.EpF();t.TgZ(0,"div",6),t.NdJ("click",function(){const Ie=t.CHM(zt),Sn=Ie.$implicit,Ei=Ie.index,Vi=t.oxw(),cn=t.MAs(1);return t.KtG(Vi._handleClick(Sn,cn,Ei))})("cdkFocusChange",function(Ie){const Ei=t.CHM(zt).index,Vi=t.oxw();return t.KtG(Vi._tabFocusChanged(Ie,Ei))}),t.TgZ(1,"div",7),t.YNc(2,re,1,1,"ng-template",8),t.YNc(3,Xt,1,1,"ng-template",null,9,t.W1O),t.qZA()()}if(2&Nt){const zt=Se.$implicit,Ae=Se.index,Ie=t.MAs(4),Sn=t.oxw();t.ekj("mat-tab-label-active",Sn.selectedIndex===Ae),t.Q6J("id",Sn._getTabLabelId(Ae))("ngClass",zt.labelClass)("disabled",zt.disabled)("matRippleDisabled",zt.disabled||Sn.disableRipple),t.uIk("tabIndex",Sn._getTabIndex(zt,Ae))("aria-posinset",Ae+1)("aria-setsize",Sn._tabs.length)("aria-controls",Sn._getTabContentId(Ae))("aria-selected",Sn.selectedIndex===Ae)("aria-label",zt.ariaLabel||null)("aria-labelledby",!zt.ariaLabel&&zt.ariaLabelledby?zt.ariaLabelledby:null),t.xp6(2),t.Q6J("ngIf",zt.templateLabel)("ngIfElse",Ie)}}function Me(Nt,Se){if(1&Nt){const zt=t.EpF();t.TgZ(0,"mat-tab-body",11),t.NdJ("_onCentered",function(){t.CHM(zt);const Ie=t.oxw();return t.KtG(Ie._removeTabBodyWrapperHeight())})("_onCentering",function(Ie){t.CHM(zt);const Sn=t.oxw();return t.KtG(Sn._setTabBodyWrapperHeight(Ie))}),t.qZA()}if(2&Nt){const zt=Se.$implicit,Ae=Se.index,Ie=t.oxw();t.ekj("mat-tab-body-active",Ie.selectedIndex===Ae),t.Q6J("id",Ie._getTabContentId(Ae))("ngClass",zt.bodyClass)("content",zt.content)("position",zt.position)("origin",zt.origin)("animationDuration",Ie.animationDuration)("preserveContent",Ie.preserveContent),t.uIk("tabindex",null!=Ie.contentTabIndex&&Ie.selectedIndex===Ae?Ie.contentTabIndex:null)("aria-labelledby",Ie._getTabLabelId(Ae))}}const en=["mat-tab-nav-bar",""],_n=new t.OlP("MatInkBarPositioner",{providedIn:"root",factory:function xe(){return Se=>({left:Se?(Se.offsetLeft||0)+"px":"0",width:Se?(Se.offsetWidth||0)+"px":"0"})}});let vn=(()=>{class Nt{constructor(zt,Ae,Ie,Sn){this._elementRef=zt,this._ngZone=Ae,this._inkBarPositioner=Ie,this._animationMode=Sn}alignToElement(zt){this.show(),this._ngZone.run(()=>{this._ngZone.onStable.pipe((0,U.q)(1)).subscribe(()=>{const Ae=this._inkBarPositioner(zt),Ie=this._elementRef.nativeElement;Ie.style.left=Ae.left,Ie.style.width=Ae.width})})}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}}return Nt.\u0275fac=function(zt){return new(zt||Nt)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(_n),t.Y36(t.QbO,8))},Nt.\u0275dir=t.lG2({type:Nt,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(zt,Ae){2&zt&&t.ekj("_mat-animation-noopable","NoopAnimations"===Ae._animationMode)}}),Nt})();const ke=new t.OlP("MatTabContent"),Dn=new t.OlP("MatTabLabel"),ii=new t.OlP("MAT_TAB");let _i=(()=>{class Nt extends x.ig{constructor(zt,Ae,Ie){super(zt,Ae),this._closestTab=Ie}}return Nt.\u0275fac=function(zt){return new(zt||Nt)(t.Y36(t.Rgc),t.Y36(t.s_b),t.Y36(ii,8))},Nt.\u0275dir=t.lG2({type:Nt,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[t._Bn([{provide:Dn,useExisting:Nt}]),t.qOj]}),Nt})();const oi=(0,T.Id)(class{}),Qe=new t.OlP("MAT_TAB_GROUP");let te=(()=>{class Nt extends oi{constructor(zt,Ae){super(),this._viewContainerRef=zt,this._closestTabGroup=Ae,this.textLabel="",this._contentPortal=null,this._stateChanges=new W.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 x.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(zt){zt&&zt._closestTab===this&&(this._templateLabel=zt)}}return Nt.\u0275fac=function(zt){return new(zt||Nt)(t.Y36(t.s_b),t.Y36(Qe,8))},Nt.\u0275cmp=t.Xpm({type:Nt,selectors:[["mat-tab"]],contentQueries:function(zt,Ae,Ie){if(1&zt&&(t.Suo(Ie,Dn,5),t.Suo(Ie,ke,7,t.Rgc)),2&zt){let Sn;t.iGM(Sn=t.CRH())&&(Ae.templateLabel=Sn.first),t.iGM(Sn=t.CRH())&&(Ae._explicitContent=Sn.first)}},viewQuery:function(zt,Ae){if(1&zt&&t.Gf(t.Rgc,7),2&zt){let Ie;t.iGM(Ie=t.CRH())&&(Ae._implicitContent=Ie.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:Nt}]),t.qOj,t.TTD],ngContentSelectors:St,decls:1,vars:0,template:function(zt,Ae){1&zt&&(t.F$t(),t.YNc(0,Bt,1,0,"ng-template"))},encapsulation:2}),Nt})();const it={translateTab:(0,yt.X$)("translateTab",[(0,yt.SB)("center, void, left-origin-center, right-origin-center",(0,yt.oB)({transform:"none"})),(0,yt.SB)("left",(0,yt.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,yt.SB)("right",(0,yt.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,yt.eR)("* => left, * => right, left => center, right => center",(0,yt.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,yt.eR)("void => left-origin-center",[(0,yt.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),(0,yt.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,yt.eR)("void => right-origin-center",[(0,yt.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),(0,yt.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let K=(()=>{class Nt extends x.Pl{constructor(zt,Ae,Ie,Sn){super(zt,Ae,Sn),this._host=Ie,this._centeringSub=tt.w.EMPTY,this._leavingSub=tt.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 Nt.\u0275fac=function(zt){return new(zt||Nt)(t.Y36(t._Vd),t.Y36(t.s_b),t.Y36((0,t.Gpc)(()=>Rt)),t.Y36(v.K0))},Nt.\u0275dir=t.lG2({type:Nt,selectors:[["","matTabBodyHost",""]],features:[t.qOj]}),Nt})(),Tt=(()=>{class Nt{constructor(zt,Ae,Ie){this._elementRef=zt,this._dir=Ae,this._dirChangeSubscription=tt.w.EMPTY,this._translateTabComplete=new W.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,Ae&&(this._dirChangeSubscription=Ae.change.subscribe(Sn=>{this._computePositionAnimationState(Sn),Ie.markForCheck()})),this._translateTabComplete.pipe((0,P.x)((Sn,Ei)=>Sn.fromState===Ei.fromState&&Sn.toState===Ei.toState)).subscribe(Sn=>{this._isCenterPosition(Sn.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(Sn.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 Ae=this._isCenterPosition(zt.toState);this._beforeCentering.emit(Ae),Ae&&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 Ae=this._getLayoutDirection();return"ltr"==Ae&&zt<=0||"rtl"==Ae&&zt>0?"left-origin-center":"right-origin-center"}}return Nt.\u0275fac=function(zt){return new(zt||Nt)(t.Y36(t.SBq),t.Y36(Jt.Is,8),t.Y36(t.sBO))},Nt.\u0275dir=t.lG2({type:Nt,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),Nt})(),Rt=(()=>{class Nt extends Tt{constructor(zt,Ae,Ie){super(zt,Ae,Ie)}}return Nt.\u0275fac=function(zt){return new(zt||Nt)(t.Y36(t.SBq),t.Y36(Jt.Is,8),t.Y36(t.sBO))},Nt.\u0275cmp=t.Xpm({type:Nt,selectors:[["mat-tab-body"]],viewQuery:function(zt,Ae){if(1&zt&&t.Gf(x.Pl,5),2&zt){let Ie;t.iGM(Ie=t.CRH())&&(Ae._portalHost=Ie.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,Ae){1&zt&&(t.TgZ(0,"div",0,1),t.NdJ("@translateTab.start",function(Sn){return Ae._onTranslateTabStarted(Sn)})("@translateTab.done",function(Sn){return Ae._translateTabComplete.next(Sn)}),t.YNc(2,ce,0,0,"ng-template",2),t.qZA()),2&zt&&t.Q6J("@translateTab",t.WLB(3,ve,Ae._position,t.VKq(1,Vt,Ae.animationDuration)))},dependencies:[K],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:[it.translateTab]}}),Nt})();const le=new t.OlP("MAT_TABS_CONFIG"),be=(0,T.Id)(class{});let De=(()=>{class Nt extends be{constructor(zt){super(),this.elementRef=zt}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return Nt.\u0275fac=function(zt){return new(zt||Nt)(t.Y36(t.SBq))},Nt.\u0275dir=t.lG2({type:Nt,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(zt,Ae){2&zt&&(t.uIk("aria-disabled",!!Ae.disabled),t.ekj("mat-tab-disabled",Ae.disabled))},inputs:{disabled:"disabled"},features:[t.qOj]}),Nt})();const hn=(0,pt.i$)({passive:!0});let bo=(()=>{class Nt{constructor(zt,Ae,Ie,Sn,Ei,Vi,cn){this._elementRef=zt,this._changeDetectorRef=Ae,this._viewportRuler=Ie,this._dir=Sn,this._ngZone=Ei,this._platform=Vi,this._animationMode=cn,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new W.xQ,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new W.xQ,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new t.vpe,this.indexFocused=new t.vpe,Ei.runOutsideAngular(()=>{(0,st.R)(zt.nativeElement,"mouseleave").pipe((0,O.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get disablePagination(){return this._disablePagination}set disablePagination(zt){this._disablePagination=(0,At.Ig)(zt)}get selectedIndex(){return this._selectedIndex}set selectedIndex(zt){zt=(0,At.su)(zt),this._selectedIndex!=zt&&(this._selectedIndexChanged=!0,this._selectedIndex=zt,this._keyManager&&this._keyManager.updateActiveItem(zt))}ngAfterViewInit(){(0,st.R)(this._previousPaginator.nativeElement,"touchstart",hn).pipe((0,O.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,st.R)(this._nextPaginator.nativeElement,"touchstart",hn).pipe((0,O.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const zt=this._dir?this._dir.change:(0,ct.of)("ltr"),Ae=this._viewportRuler.change(150),Ie=()=>{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(Ie),(0,bt.T)(zt,Ae,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)),Ie()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,O.R)(this._destroyed)).subscribe(Sn=>{this.indexFocused.emit(Sn),this._setTabFocus(Sn)})}_itemsResized(){return"function"!=typeof ResizeObserver?Dt.E:this._items.changes.pipe((0,w.O)(this._items),(0,L.w)(zt=>new wt.y(Ae=>this._ngZone.runOutsideAngular(()=>{const Ie=new ResizeObserver(Sn=>Ae.next(Sn));return zt.forEach(Sn=>Ie.observe(Sn.elementRef.nativeElement)),()=>{Ie.disconnect()}}))),(0,N.T)(1),(0,V.h)(zt=>zt.some(Ae=>Ae.contentRect.width>0&&Ae.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,Ot.Vb)(zt))switch(zt.keyCode){case Ot.K5:case Ot.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 Ae=this._items?this._items.toArray()[zt]:null;return!!Ae&&!Ae.disabled}_setTabFocus(zt){if(this._showPaginationControls&&this._scrollToLabel(zt),this._items&&this._items.length){this._items.toArray()[zt].focus();const Ae=this._tabListContainer.nativeElement;Ae.scrollLeft="ltr"==this._getLayoutDirection()?0:Ae.scrollWidth-Ae.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const zt=this.scrollDistance,Ae="ltr"===this._getLayoutDirection()?-zt:zt;this._tabList.nativeElement.style.transform=`translateX(${Math.round(Ae)}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 Ae=this._items?this._items.toArray()[zt]:null;if(!Ae)return;const Ie=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:Sn,offsetWidth:Ei}=Ae.elementRef.nativeElement;let Vi,cn;"ltr"==this._getLayoutDirection()?(Vi=Sn,cn=Vi+Ei):(cn=this._tabListInner.nativeElement.offsetWidth-Sn,Vi=cn-Ei);const pn=this.scrollDistance,We=this.scrollDistance+Ie;ViWe&&(this.scrollDistance+=cn-We+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,Ae=zt?zt.elementRef.nativeElement:null;Ae?this._inkBar.alignToElement(Ae):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(zt,Ae){Ae&&null!=Ae.button&&0!==Ae.button||(this._stopInterval(),(0,qt.H)(650,100).pipe((0,O.R)((0,bt.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:Ie,distance:Sn}=this._scrollHeader(zt);(0===Sn||Sn>=Ie)&&this._stopInterval()}))}_scrollTo(zt){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const Ae=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(Ae,zt)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:Ae,distance:this._scrollDistance}}}return Nt.\u0275fac=function(zt){return new(zt||Nt)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(xt.rL),t.Y36(Jt.Is,8),t.Y36(t.R0b),t.Y36(pt.t4),t.Y36(t.QbO,8))},Nt.\u0275dir=t.lG2({type:Nt,inputs:{disablePagination:"disablePagination"}}),Nt})(),hi=(()=>{class Nt extends bo{constructor(zt,Ae,Ie,Sn,Ei,Vi,cn){super(zt,Ae,Ie,Sn,Ei,Vi,cn),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(zt){this._disableRipple=(0,At.Ig)(zt)}_itemSelected(zt){zt.preventDefault()}}return Nt.\u0275fac=function(zt){return new(zt||Nt)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(xt.rL),t.Y36(Jt.Is,8),t.Y36(t.R0b),t.Y36(pt.t4),t.Y36(t.QbO,8))},Nt.\u0275dir=t.lG2({type:Nt,inputs:{disableRipple:"disableRipple"},features:[t.qOj]}),Nt})(),Yn=(()=>{class Nt extends hi{constructor(zt,Ae,Ie,Sn,Ei,Vi,cn){super(zt,Ae,Ie,Sn,Ei,Vi,cn)}}return Nt.\u0275fac=function(zt){return new(zt||Nt)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(xt.rL),t.Y36(Jt.Is,8),t.Y36(t.R0b),t.Y36(pt.t4),t.Y36(t.QbO,8))},Nt.\u0275cmp=t.Xpm({type:Nt,selectors:[["mat-tab-header"]],contentQueries:function(zt,Ae,Ie){if(1&zt&&t.Suo(Ie,De,4),2&zt){let Sn;t.iGM(Sn=t.CRH())&&(Ae._items=Sn)}},viewQuery:function(zt,Ae){if(1&zt&&(t.Gf(vn,7),t.Gf(fe,7),t.Gf(Le,7),t.Gf(Fe,7),t.Gf(Ge,5),t.Gf(Gt,5)),2&zt){let Ie;t.iGM(Ie=t.CRH())&&(Ae._inkBar=Ie.first),t.iGM(Ie=t.CRH())&&(Ae._tabListContainer=Ie.first),t.iGM(Ie=t.CRH())&&(Ae._tabList=Ie.first),t.iGM(Ie=t.CRH())&&(Ae._tabListInner=Ie.first),t.iGM(Ie=t.CRH())&&(Ae._nextPaginator=Ie.first),t.iGM(Ie=t.CRH())&&(Ae._previousPaginator=Ie.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(zt,Ae){2&zt&&t.ekj("mat-tab-header-pagination-controls-enabled",Ae._showPaginationControls)("mat-tab-header-rtl","rtl"==Ae._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[t.qOj],ngContentSelectors:St,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,Ae){1&zt&&(t.F$t(),t.TgZ(0,"button",0,1),t.NdJ("click",function(){return Ae._handlePaginatorClick("before")})("mousedown",function(Sn){return Ae._handlePaginatorPress("before",Sn)})("touchend",function(){return Ae._stopInterval()}),t._UZ(2,"div",2),t.qZA(),t.TgZ(3,"div",3,4),t.NdJ("keydown",function(Sn){return Ae._handleKeydown(Sn)}),t.TgZ(5,"div",5,6),t.NdJ("cdkObserveContent",function(){return Ae._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(Sn){return Ae._handlePaginatorPress("after",Sn)})("click",function(){return Ae._handlePaginatorClick("after")})("touchend",function(){return Ae._stopInterval()}),t._UZ(13,"div",2),t.qZA()),2&zt&&(t.ekj("mat-tab-header-pagination-disabled",Ae._disableScrollBefore),t.Q6J("matRippleDisabled",Ae._disableScrollBefore||Ae.disableRipple)("disabled",Ae._disableScrollBefore||null),t.xp6(5),t.ekj("_mat-animation-noopable","NoopAnimations"===Ae._animationMode),t.xp6(6),t.ekj("mat-tab-header-pagination-disabled",Ae._disableScrollAfter),t.Q6J("matRippleDisabled",Ae._disableScrollAfter||Ae.disableRipple)("disabled",Ae._disableScrollAfter||null))},dependencies:[T.wG,p.wD,vn],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}),Nt})(),Vn=0;class Je{}const gn=(0,T.pj)((0,T.Kr)(class{constructor(Nt){this._elementRef=Nt}}),"primary");let Ye=(()=>{class Nt extends gn{constructor(zt,Ae,Ie,Sn){super(zt),this._changeDetectorRef=Ae,this._animationMode=Sn,this._tabs=new t.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=tt.w.EMPTY,this._tabLabelSubscription=tt.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=Vn++,this.animationDuration=Ie&&Ie.animationDuration?Ie.animationDuration:"500ms",this.disablePagination=!(!Ie||null==Ie.disablePagination)&&Ie.disablePagination,this.dynamicHeight=!(!Ie||null==Ie.dynamicHeight)&&Ie.dynamicHeight,this.contentTabIndex=Ie?.contentTabIndex??null,this.preserveContent=!!Ie?.preserveContent}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(zt){this._dynamicHeight=(0,At.Ig)(zt)}get selectedIndex(){return this._selectedIndex}set selectedIndex(zt){this._indexToSelect=(0,At.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,At.su)(zt,null)}get disablePagination(){return this._disablePagination}set disablePagination(zt){this._disablePagination=(0,At.Ig)(zt)}get preserveContent(){return this._preserveContent}set preserveContent(zt){this._preserveContent=(0,At.Ig)(zt)}get backgroundColor(){return this._backgroundColor}set backgroundColor(zt){const Ae=this._elementRef.nativeElement;Ae.classList.remove(`mat-background-${this.backgroundColor}`),zt&&Ae.classList.add(`mat-background-${zt}`),this._backgroundColor=zt}ngAfterContentChecked(){const zt=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=zt){const Ae=null==this._selectedIndex;if(!Ae){this.selectedTabChange.emit(this._createChangeEvent(zt));const Ie=this._tabBodyWrapper.nativeElement;Ie.style.minHeight=Ie.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((Ie,Sn)=>Ie.isActive=Sn===zt),Ae||(this.selectedIndexChange.emit(zt),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((Ae,Ie)=>{Ae.position=Ie-zt,null!=this._selectedIndex&&0==Ae.position&&!Ae.origin&&(Ae.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 Ae=this._tabs.toArray();let Ie;for(let Sn=0;Sn{Ae[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(Ae=>Ae._closestTabGroup===this||!Ae._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 Ae=this._tabHeader;Ae&&(Ae.focusIndex=zt)}_focusChanged(zt){this._lastFocusedTabIndex=zt,this.focusChange.emit(this._createChangeEvent(zt))}_createChangeEvent(zt){const Ae=new Je;return Ae.index=zt,this._tabs&&this._tabs.length&&(Ae.tab=this._tabs.toArray()[zt]),Ae}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,bt.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 Ae=this._tabBodyWrapper.nativeElement;Ae.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(Ae.style.height=zt+"px")}_removeTabBodyWrapperHeight(){const zt=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=zt.clientHeight,zt.style.height="",this.animationDone.emit()}_handleClick(zt,Ae,Ie){zt.disabled||(this.selectedIndex=Ae.focusIndex=Ie)}_getTabIndex(zt,Ae){return zt.disabled?null:Ae===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(zt,Ae){zt&&"mouse"!==zt&&"touch"!==zt&&(this._tabHeader.focusIndex=Ae)}}return Nt.\u0275fac=function(zt){return new(zt||Nt)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(le,8),t.Y36(t.QbO,8))},Nt.\u0275dir=t.lG2({type:Nt,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]}),Nt})(),Ee=(()=>{class Nt extends Ye{constructor(zt,Ae,Ie,Sn){super(zt,Ae,Ie,Sn)}}return Nt.\u0275fac=function(zt){return new(zt||Nt)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(le,8),t.Y36(t.QbO,8))},Nt.\u0275cmp=t.Xpm({type:Nt,selectors:[["mat-tab-group"]],contentQueries:function(zt,Ae,Ie){if(1&zt&&t.Suo(Ie,te,5),2&zt){let Sn;t.iGM(Sn=t.CRH())&&(Ae._allTabs=Sn)}},viewQuery:function(zt,Ae){if(1&zt&&(t.Gf(Te,5),t.Gf(ne,5)),2&zt){let Ie;t.iGM(Ie=t.CRH())&&(Ae._tabBodyWrapper=Ie.first),t.iGM(Ie=t.CRH())&&(Ae._tabHeader=Ie.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(zt,Ae){2&zt&&t.ekj("mat-tab-group-dynamic-height",Ae.dynamicHeight)("mat-tab-group-inverted-header","below"===Ae.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[t._Bn([{provide:Qe,useExisting:Nt}]),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,Ae){1&zt&&(t.TgZ(0,"mat-tab-header",0,1),t.NdJ("indexFocused",function(Sn){return Ae._focusChanged(Sn)})("selectFocusedIndex",function(Sn){return Ae.selectedIndex=Sn}),t.YNc(2,oe,5,15,"div",2),t.qZA(),t.TgZ(3,"div",3,4),t.YNc(5,Me,1,11,"mat-tab-body",5),t.qZA()),2&zt&&(t.Q6J("selectedIndex",Ae.selectedIndex||0)("disableRipple",Ae.disableRipple)("disablePagination",Ae.disablePagination),t.xp6(2),t.Q6J("ngForOf",Ae._tabs),t.xp6(1),t.ekj("_mat-animation-noopable","NoopAnimations"===Ae._animationMode),t.xp6(2),t.Q6J("ngForOf",Ae._tabs))},dependencies:[v.mk,v.sg,v.O5,x.Pl,T.wG,u.kH,De,Rt,Yn],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}),Nt})(),Xe=0,se=(()=>{class Nt extends bo{constructor(zt,Ae,Ie,Sn,Ei,Vi,cn){super(zt,Sn,Ei,Ae,Ie,Vi,cn),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(zt){const Ae=this._elementRef.nativeElement.classList;Ae.remove(`mat-background-${this.backgroundColor}`),zt&&Ae.add(`mat-background-${zt}`),this._backgroundColor=zt}get disableRipple(){return this._disableRipple}set disableRipple(zt){this._disableRipple=(0,At.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 Ae=0;Ae{class Nt extends se{constructor(zt,Ae,Ie,Sn,Ei,Vi,cn){super(zt,Ae,Ie,Sn,Ei,Vi,cn)}}return Nt.\u0275fac=function(zt){return new(zt||Nt)(t.Y36(t.SBq),t.Y36(Jt.Is,8),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(xt.rL),t.Y36(pt.t4),t.Y36(t.QbO,8))},Nt.\u0275cmp=t.Xpm({type:Nt,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(zt,Ae,Ie){if(1&zt&&t.Suo(Ie,fn,5),2&zt){let Sn;t.iGM(Sn=t.CRH())&&(Ae._items=Sn)}},viewQuery:function(zt,Ae){if(1&zt&&(t.Gf(vn,7),t.Gf(fe,7),t.Gf(Le,7),t.Gf(Fe,7),t.Gf(Ge,5),t.Gf(Gt,5)),2&zt){let Ie;t.iGM(Ie=t.CRH())&&(Ae._inkBar=Ie.first),t.iGM(Ie=t.CRH())&&(Ae._tabListContainer=Ie.first),t.iGM(Ie=t.CRH())&&(Ae._tabList=Ie.first),t.iGM(Ie=t.CRH())&&(Ae._tabListInner=Ie.first),t.iGM(Ie=t.CRH())&&(Ae._nextPaginator=Ie.first),t.iGM(Ie=t.CRH())&&(Ae._previousPaginator=Ie.first)}},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:11,hostBindings:function(zt,Ae){2&zt&&(t.uIk("role",Ae._getRole()),t.ekj("mat-tab-header-pagination-controls-enabled",Ae._showPaginationControls)("mat-tab-header-rtl","rtl"==Ae._getLayoutDirection())("mat-primary","warn"!==Ae.color&&"accent"!==Ae.color)("mat-accent","accent"===Ae.color)("mat-warn","warn"===Ae.color))},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[t.qOj],attrs:en,ngContentSelectors:St,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,Ae){1&zt&&(t.F$t(),t.TgZ(0,"button",0,1),t.NdJ("click",function(){return Ae._handlePaginatorClick("before")})("mousedown",function(Sn){return Ae._handlePaginatorPress("before",Sn)})("touchend",function(){return Ae._stopInterval()}),t._UZ(2,"div",2),t.qZA(),t.TgZ(3,"div",3,4),t.NdJ("keydown",function(Sn){return Ae._handleKeydown(Sn)}),t.TgZ(5,"div",5,6),t.NdJ("cdkObserveContent",function(){return Ae._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(Sn){return Ae._handlePaginatorPress("after",Sn)})("click",function(){return Ae._handlePaginatorClick("after")})("touchend",function(){return Ae._stopInterval()}),t._UZ(13,"div",2),t.qZA()),2&zt&&(t.ekj("mat-tab-header-pagination-disabled",Ae._disableScrollBefore),t.Q6J("matRippleDisabled",Ae._disableScrollBefore||Ae.disableRipple)("disabled",Ae._disableScrollBefore||null),t.xp6(5),t.ekj("_mat-animation-noopable","NoopAnimations"===Ae._animationMode),t.xp6(6),t.ekj("mat-tab-header-pagination-disabled",Ae._disableScrollAfter),t.Q6J("matRippleDisabled",Ae._disableScrollAfter||Ae.disableRipple)("disabled",Ae._disableScrollAfter||null))},dependencies:[T.wG,p.wD,vn],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}),Nt})();const ie=(0,T.sb)((0,T.Kr)((0,T.Id)(class{})));let rn=(()=>{class Nt extends ie{constructor(zt,Ae,Ie,Sn,Ei,Vi){super(),this._tabNavBar=zt,this.elementRef=Ae,this._focusMonitor=Ei,this._isActive=!1,this.id="mat-tab-link-"+Xe++,this.rippleConfig=Ie||{},this.tabIndex=parseInt(Sn)||0,"NoopAnimations"===Vi&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get active(){return this._isActive}set active(zt){const Ae=(0,At.Ig)(zt);Ae!==this._isActive&&(this._isActive=Ae,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===Ot.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 Nt.\u0275fac=function(zt){return new(zt||Nt)(t.Y36(se),t.Y36(t.SBq),t.Y36(T.Y2,8),t.$8M("tabindex"),t.Y36(u.tE),t.Y36(t.QbO,8))},Nt.\u0275dir=t.lG2({type:Nt,inputs:{active:"active",id:"id"},features:[t.qOj]}),Nt})(),fn=(()=>{class Nt extends rn{constructor(zt,Ae,Ie,Sn,Ei,Vi,cn,pn){super(zt,Ae,Ei,Vi,cn,pn),this._tabLinkRipple=new T.IR(this,Ie,Ae,Sn),this._tabLinkRipple.setupTriggerEvents(Ae.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return Nt.\u0275fac=function(zt){return new(zt||Nt)(t.Y36(ze),t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(pt.t4),t.Y36(T.Y2,8),t.$8M("tabindex"),t.Y36(u.tE),t.Y36(t.QbO,8))},Nt.\u0275dir=t.lG2({type:Nt,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(zt,Ae){1&zt&&t.NdJ("focus",function(){return Ae._handleFocus()})("keydown",function(Sn){return Ae._handleKeydown(Sn)}),2&zt&&(t.uIk("aria-controls",Ae._getAriaControls())("aria-current",Ae._getAriaCurrent())("aria-disabled",Ae.disabled)("aria-selected",Ae._getAriaSelected())("id",Ae.id)("tabIndex",Ae._getTabIndex())("role",Ae._getRole()),t.ekj("mat-tab-disabled",Ae.disabled)("mat-tab-label-active",Ae.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[t.qOj]}),Nt})(),ge=(()=>{class Nt{}return Nt.\u0275fac=function(zt){return new(zt||Nt)},Nt.\u0275mod=t.oAB({type:Nt}),Nt.\u0275inj=t.cJS({imports:[v.ez,T.BQ,x.eL,T.si,p.Q8,u.rt,T.BQ]}),Nt})()},83683:(X,j,h)=>{"use strict";h.d(j,{Ye:()=>P,g0:()=>L});var u=h(94650),p=h(3238),x=h(83353),v=h(36895);const t=["*",[["mat-toolbar-row"]]],T=["*","mat-toolbar-row"],U=(0,p.pj)(class{constructor(N){this._elementRef=N}});let w=(()=>{class N{}return N.\u0275fac=function(W){return new(W||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(W,tt,st){super(W),this._platform=tt,this._document=st}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return N.\u0275fac=function(W){return new(W||N)(u.Y36(u.SBq),u.Y36(x.t4),u.Y36(v.K0))},N.\u0275cmp=u.Xpm({type:N,selectors:[["mat-toolbar"]],contentQueries:function(W,tt,st){if(1&W&&u.Suo(st,w,5),2&W){let ct;u.iGM(ct=u.CRH())&&(tt._toolbarRows=ct)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(W,tt){2&W&&u.ekj("mat-toolbar-multiple-rows",tt._toolbarRows.length>0)("mat-toolbar-single-row",0===tt._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[u.qOj],ngContentSelectors:T,decls:2,vars:0,template:function(W,tt){1&W&&(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(W){return new(W||N)},N.\u0275mod=u.oAB({type:N}),N.\u0275inj=u.cJS({imports:[p.BQ,p.BQ]}),N})()},10266:(X,j,h)=>{"use strict";h.d(j,{AV:()=>fe,gM:()=>ce});var u=h(98184),p=h(12687),x=h(36895),v=h(94650),t=h(3238),T=h(67376),U=h(40445),w=h(21281),P=h(29521),O=h(62289),L=h(83353),N=h(84080),V=h(8929),W=h(7625),tt=h(72986);h(37340);const ct=["tooltip"],wt="tooltip-panel",qt=(0,L.i$)({passive:!0}),At=new v.OlP("mat-tooltip-scroll-strategy"),pt={provide:At,deps:[u.aV],useFactory:function xt(Fe){return()=>Fe.scrollStrategies.reposition({scrollThrottle:20})}},Ot=new v.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function Bt(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let St=(()=>{class Fe{constructor(Gt,Te,ne,jt,re,Xt,oe,Me,en,_n,xe,vn){this._overlay=Gt,this._elementRef=Te,this._scrollDispatcher=ne,this._viewContainerRef=jt,this._ngZone=re,this._platform=Xt,this._ariaDescriber=oe,this._focusMonitor=Me,this._dir=_n,this._defaultOptions=xe,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 V.xQ,this._scrollStrategy=en,this._document=vn,xe&&(xe.position&&(this.position=xe.position),xe.touchGestures&&(this.touchGestures=xe.touchGestures)),_n.change.pipe((0,W.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(Gt){Gt!==this._position&&(this._position=Gt,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(Gt){this._disabled=(0,w.Ig)(Gt),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(Gt){this._showDelay=(0,w.su)(Gt)}get hideDelay(){return this._hideDelay}set hideDelay(Gt){this._hideDelay=(0,w.su)(Gt),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(Gt){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=Gt?String(Gt).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(Gt){this._tooltipClass=Gt,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,W.R)(this._destroyed)).subscribe(Gt=>{Gt?"keyboard"===Gt&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const Gt=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([Te,ne])=>{Gt.removeEventListener(Te,ne,qt)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(Gt,this.message,"tooltip"),this._focusMonitor.stopMonitoring(Gt)}show(Gt=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const Te=this._createOverlay();this._detach(),this._portal=this._portal||new N.C5(this._tooltipComponent,this._viewContainerRef);const ne=this._tooltipInstance=Te.attach(this._portal).instance;ne._triggerElement=this._elementRef.nativeElement,ne._mouseLeaveHideDelay=this._hideDelay,ne.afterHidden().pipe((0,W.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),ne.show(Gt)}hide(Gt=this.hideDelay){const Te=this._tooltipInstance;Te&&(Te.isVisible()?Te.hide(Gt):(Te._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 Gt=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),Te=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(Gt);return Te.positionChanges.pipe((0,W.R)(this._destroyed)).subscribe(ne=>{this._updateCurrentPositionClass(ne.connectionPair),this._tooltipInstance&&ne.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:Te,panelClass:`${this._cssClassPrefix}-${wt}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,W.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,W.R)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,W.R)(this._destroyed)).subscribe(ne=>{this._isTooltipVisible()&&ne.keyCode===P.hY&&!(0,P.Vb)(ne)&&(ne.preventDefault(),ne.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(Gt){const Te=Gt.getConfig().positionStrategy,ne=this._getOrigin(),jt=this._getOverlayPosition();Te.withPositions([this._addOffset({...ne.main,...jt.main}),this._addOffset({...ne.fallback,...jt.fallback})])}_addOffset(Gt){return Gt}_getOrigin(){const Gt=!this._dir||"ltr"==this._dir.value,Te=this.position;let ne;"above"==Te||"below"==Te?ne={originX:"center",originY:"above"==Te?"top":"bottom"}:"before"==Te||"left"==Te&&Gt||"right"==Te&&!Gt?ne={originX:"start",originY:"center"}:("after"==Te||"right"==Te&&Gt||"left"==Te&&!Gt)&&(ne={originX:"end",originY:"center"});const{x:jt,y:re}=this._invertPosition(ne.originX,ne.originY);return{main:ne,fallback:{originX:jt,originY:re}}}_getOverlayPosition(){const Gt=!this._dir||"ltr"==this._dir.value,Te=this.position;let ne;"above"==Te?ne={overlayX:"center",overlayY:"bottom"}:"below"==Te?ne={overlayX:"center",overlayY:"top"}:"before"==Te||"left"==Te&&Gt||"right"==Te&&!Gt?ne={overlayX:"end",overlayY:"center"}:("after"==Te||"right"==Te&&Gt||"left"==Te&&!Gt)&&(ne={overlayX:"start",overlayY:"center"});const{x:jt,y:re}=this._invertPosition(ne.overlayX,ne.overlayY);return{main:ne,fallback:{overlayX:jt,overlayY:re}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,tt.q)(1),(0,W.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(Gt){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=Gt,this._tooltipInstance._markForCheck())}_invertPosition(Gt,Te){return"above"===this.position||"below"===this.position?"top"===Te?Te="bottom":"bottom"===Te&&(Te="top"):"end"===Gt?Gt="start":"start"===Gt&&(Gt="end"),{x:Gt,y:Te}}_updateCurrentPositionClass(Gt){const{overlayY:Te,originX:ne,originY:jt}=Gt;let re;if(re="center"===Te?this._dir&&"rtl"===this._dir.value?"end"===ne?"left":"right":"start"===ne?"left":"right":"bottom"===Te&&"top"===jt?"above":"below",re!==this._currentPosition){const Xt=this._overlayRef;if(Xt){const oe=`${this._cssClassPrefix}-${wt}-`;Xt.removePanelClass(oe+this._currentPosition),Xt.addPanelClass(oe+re)}this._currentPosition=re}}_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 Gt=[];if(this._platformSupportsMouseEvents())Gt.push(["mouseleave",Te=>{const ne=Te.relatedTarget;(!ne||!this._overlayRef?.overlayElement.contains(ne))&&this.hide()}],["wheel",Te=>this._wheelListener(Te)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const Te=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};Gt.push(["touchend",Te],["touchcancel",Te])}this._addListeners(Gt),this._passiveListeners.push(...Gt)}_addListeners(Gt){Gt.forEach(([Te,ne])=>{this._elementRef.nativeElement.addEventListener(Te,ne,qt)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(Gt){if(this._isTooltipVisible()){const Te=this._document.elementFromPoint(Gt.clientX,Gt.clientY),ne=this._elementRef.nativeElement;Te!==ne&&!ne.contains(Te)&&this.hide()}}_disableNativeGesturesIfNecessary(){const Gt=this.touchGestures;if("off"!==Gt){const Te=this._elementRef.nativeElement,ne=Te.style;("on"===Gt||"INPUT"!==Te.nodeName&&"TEXTAREA"!==Te.nodeName)&&(ne.userSelect=ne.msUserSelect=ne.webkitUserSelect=ne.MozUserSelect="none"),("on"===Gt||!Te.draggable)&&(ne.webkitUserDrag="none"),ne.touchAction="none",ne.webkitTapHighlightColor="transparent"}}}return Fe.\u0275fac=function(Gt){v.$Z()},Fe.\u0275dir=v.lG2({type:Fe,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),Fe})(),ce=(()=>{class Fe extends St{constructor(Gt,Te,ne,jt,re,Xt,oe,Me,en,_n,xe,vn){super(Gt,Te,ne,jt,re,Xt,oe,Me,en,_n,xe,vn),this._tooltipComponent=ve}}return Fe.\u0275fac=function(Gt){return new(Gt||Fe)(v.Y36(u.aV),v.Y36(v.SBq),v.Y36(T.mF),v.Y36(v.s_b),v.Y36(v.R0b),v.Y36(L.t4),v.Y36(p.$s),v.Y36(p.tE),v.Y36(At),v.Y36(U.Is,8),v.Y36(Ot,8),v.Y36(x.K0))},Fe.\u0275dir=v.lG2({type:Fe,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[v.qOj]}),Fe})(),Vt=(()=>{class Fe{constructor(Gt,Te){this._changeDetectorRef=Gt,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new V.xQ,this._animationsDisabled="NoopAnimations"===Te}show(Gt){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},Gt)}hide(Gt){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},Gt)}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:Gt}){(!Gt||!this._triggerElement.contains(Gt))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:Gt}){(Gt===this._showAnimation||Gt===this._hideAnimation)&&this._finalizeAnimation(Gt===this._showAnimation)}_cancelPendingAnimations(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(Gt){Gt?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(Gt){const Te=this._tooltip.nativeElement,ne=this._showAnimation,jt=this._hideAnimation;if(Te.classList.remove(Gt?jt:ne),Te.classList.add(Gt?ne:jt),this._isVisible=Gt,Gt&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const re=getComputedStyle(Te);("0s"===re.getPropertyValue("animation-duration")||"none"===re.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}Gt&&this._onShow(),this._animationsDisabled&&(Te.classList.add("_mat-animation-noopable"),this._finalizeAnimation(Gt))}}return Fe.\u0275fac=function(Gt){return new(Gt||Fe)(v.Y36(v.sBO),v.Y36(v.QbO,8))},Fe.\u0275dir=v.lG2({type:Fe}),Fe})(),ve=(()=>{class Fe extends Vt{constructor(Gt,Te,ne){super(Gt,ne),this._breakpointObserver=Te,this._isHandset=this._breakpointObserver.observe(O.u3.Handset),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return Fe.\u0275fac=function(Gt){return new(Gt||Fe)(v.Y36(v.sBO),v.Y36(O.Yg),v.Y36(v.QbO,8))},Fe.\u0275cmp=v.Xpm({type:Fe,selectors:[["mat-tooltip-component"]],viewQuery:function(Gt,Te){if(1&Gt&&v.Gf(ct,7),2&Gt){let ne;v.iGM(ne=v.CRH())&&(Te._tooltip=ne.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(Gt,Te){1&Gt&&v.NdJ("mouseleave",function(jt){return Te._handleMouseLeave(jt)}),2&Gt&&v.Udp("zoom",Te.isVisible()?1:null)},features:[v.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(Gt,Te){if(1&Gt&&(v.TgZ(0,"div",0,1),v.NdJ("animationend",function(jt){return Te._handleAnimationEnd(jt)}),v.ALo(2,"async"),v._uU(3),v.qZA()),2&Gt){let ne;v.ekj("mat-tooltip-handset",null==(ne=v.lcZ(2,4,Te._isHandset))?null:ne.matches),v.Q6J("ngClass",Te.tooltipClass),v.xp6(3),v.Oqu(Te.message)}},dependencies:[x.mk,x.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}),Fe})(),fe=(()=>{class Fe{}return Fe.\u0275fac=function(Gt){return new(Gt||Fe)},Fe.\u0275mod=v.oAB({type:Fe}),Fe.\u0275inj=v.cJS({providers:[pt],imports:[p.rt,x.ez,u.U8,t.BQ,t.BQ,T.ZD]}),Fe})()},35423:(X,j,h)=>{"use strict";h.d(j,{Ar:()=>tt,GZ:()=>V,JZ:()=>wt,WX:()=>Jt,ah:()=>W,dp:()=>Dt,eu:()=>ct,fQ:()=>N,gi:()=>st,kc:()=>qt,uo:()=>L});var u=h(57851),p=h(94650),x=h(3238),v=h(21281),t=h(95017),T=h(591),U=h(36787),w=h(72986),P=h(24850);const O=(0,x.sb)((0,x.Id)(u.Hs));let L=(()=>{class yt extends O{constructor(xt,pt,Ot){super(xt,pt),this.tabIndex=Number(Ot)||0}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}}return yt.\u0275fac=function(xt){return new(xt||yt)(p.Y36(p.SBq),p.Y36(u._0),p.$8M("tabindex"))},yt.\u0275dir=p.lG2({type:yt,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[p._Bn([{provide:u.Hs,useExisting:yt}]),p.qOj]}),yt})(),N=(()=>{class yt extends u.rO{}return yt.\u0275fac=function(){let At;return function(pt){return(At||(At=p.n5z(yt)))(pt||yt)}}(),yt.\u0275dir=p.lG2({type:yt,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[p._Bn([{provide:u.rO,useExisting:yt}]),p.qOj]}),yt})(),V=(()=>{class yt extends u.Xx{constructor(xt,pt,Ot,Bt){super(xt,pt,Ot),this._disabled=!1,this.tabIndex=Number(Bt)||0}get disabled(){return this._disabled}set disabled(xt){this._disabled=(0,v.Ig)(xt)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(xt){this._tabIndex=xt??0}ngOnInit(){super.ngOnInit()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}return yt.\u0275fac=function(xt){return new(xt||yt)(p.Y36(p.SBq),p.Y36(u._0),p.Y36(p.ZZ4),p.$8M("tabindex"))},yt.\u0275dir=p.lG2({type:yt,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[p._Bn([{provide:u.Xx,useExisting:yt},{provide:u.Hs,useExisting:yt},{provide:u.HI,useExisting:yt}]),p.qOj]}),yt})(),W=(()=>{class yt extends u.XJ{get level(){return this._level}set level(xt){this._setLevelInput(xt)}get indent(){return this._indent}set indent(xt){this._setIndentInput(xt)}}return yt.\u0275fac=function(){let At;return function(pt){return(At||(At=p.n5z(yt)))(pt||yt)}}(),yt.\u0275dir=p.lG2({type:yt,selectors:[["","matTreeNodePadding",""]],inputs:{level:["matTreeNodePadding","level"],indent:["matTreeNodePaddingIndent","indent"]},features:[p._Bn([{provide:u.XJ,useExisting:yt}]),p.qOj]}),yt})(),tt=(()=>{class yt{constructor(xt,pt){this.viewContainer=xt,this._node=pt}}return yt.\u0275fac=function(xt){return new(xt||yt)(p.Y36(p.s_b),p.Y36(u.HI,8))},yt.\u0275dir=p.lG2({type:yt,selectors:[["","matTreeNodeOutlet",""]],features:[p._Bn([{provide:u.cu,useExisting:yt}])]}),yt})(),st=(()=>{class yt extends u._0{}return yt.\u0275fac=function(){let At;return function(pt){return(At||(At=p.n5z(yt)))(pt||yt)}}(),yt.\u0275cmp=p.Xpm({type:yt,selectors:[["mat-tree"]],viewQuery:function(xt,pt){if(1&xt&&p.Gf(tt,7),2&xt){let Ot;p.iGM(Ot=p.CRH())&&(pt._nodeOutlet=Ot.first)}},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[p._Bn([{provide:u._0,useExisting:yt}]),p.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(xt,pt){1&xt&&p.GkF(0,0)},dependencies:[tt],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}),yt})(),ct=(()=>{class yt extends u.Ud{}return yt.\u0275fac=function(){let At;return function(pt){return(At||(At=p.n5z(yt)))(pt||yt)}}(),yt.\u0275dir=p.lG2({type:yt,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[p._Bn([{provide:u.Ud,useExisting:yt}]),p.qOj]}),yt})(),Dt=(()=>{class yt{}return yt.\u0275fac=function(xt){return new(xt||yt)},yt.\u0275mod=p.oAB({type:yt}),yt.\u0275inj=p.cJS({imports:[u.nZ,x.BQ,x.BQ]}),yt})();class wt{constructor(At,xt,pt,Ot){this.transformFunction=At,this.getLevel=xt,this.isExpandable=pt,this.getChildren=Ot}_flattenNode(At,xt,pt,Ot){const Bt=this.transformFunction(At,xt);if(pt.push(Bt),this.isExpandable(Bt)){const St=this.getChildren(At);St&&(Array.isArray(St)?this._flattenChildren(St,xt,pt,Ot):St.pipe((0,w.q)(1)).subscribe(ce=>{this._flattenChildren(ce,xt,pt,Ot)}))}return pt}_flattenChildren(At,xt,pt,Ot){At.forEach((Bt,St)=>{let ce=Ot.slice();ce.push(St!=At.length-1),this._flattenNode(Bt,xt+1,pt,ce)})}flattenNodes(At){let xt=[];return At.forEach(pt=>this._flattenNode(pt,0,xt,[])),xt}expandFlattenedNodes(At,xt){let pt=[],Ot=[];return Ot[0]=!0,At.forEach(Bt=>{let St=!0;for(let ce=0;ce<=this.getLevel(Bt);ce++)St=St&&Ot[ce];St&&pt.push(Bt),this.isExpandable(Bt)&&(Ot[this.getLevel(Bt)+1]=xt.isExpanded(Bt))}),pt}}class qt extends t.o2{constructor(At,xt,pt){super(),this._treeControl=At,this._treeFlattener=xt,this._flattenedData=new T.X([]),this._expandedData=new T.X([]),this._data=new T.X([]),pt&&(this.data=pt)}get data(){return this._data.value}set data(At){this._data.next(At),this._flattenedData.next(this._treeFlattener.flattenNodes(this.data)),this._treeControl.dataNodes=this._flattenedData.value}connect(At){return(0,U.T)(At.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 Jt extends t.o2{constructor(){super(...arguments),this._data=new T.X([])}get data(){return this._data.value}set data(At){this._data.next(At)}connect(At){return(0,U.T)(At.viewChange,this._data).pipe((0,P.U)(()=>this.data))}disconnect(){}}},11481:(X,j,h)=>{"use strict";h.d(j,{Dx:()=>le,H7:()=>Ie,b2:()=>te,q6:()=>ii,se:()=>Vt});var u=h(36895),p=h(94650);class x extends u.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class v extends x{static makeCurrent(){(0,u.HT)(new v)}onAndCancel(pn,We,ai){return pn.addEventListener(We,ai,!1),()=>{pn.removeEventListener(We,ai,!1)}}dispatchEvent(pn,We){pn.dispatchEvent(We)}remove(pn){pn.parentNode&&pn.parentNode.removeChild(pn)}createElement(pn,We){return(We=We||this.getDefaultDocument()).createElement(pn)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(pn){return pn.nodeType===Node.ELEMENT_NODE}isShadowRoot(pn){return pn instanceof DocumentFragment}getGlobalEventTarget(pn,We){return"window"===We?window:"document"===We?pn:"body"===We?pn.body:null}getBaseHref(pn){const We=function T(){return t=t||document.querySelector("base"),t?t.getAttribute("href"):null}();return null==We?null:function w(cn){U=U||document.createElement("a"),U.setAttribute("href",cn);const pn=U.pathname;return"/"===pn.charAt(0)?pn:`/${pn}`}(We)}resetBaseElement(){t=null}getUserAgent(){return window.navigator.userAgent}getCookie(pn){return(0,u.Mx)(document.cookie,pn)}}let U,t=null;const P=new p.OlP("TRANSITION_ID"),L=[{provide:p.ip1,useFactory:function O(cn,pn,We){return()=>{We.get(p.CZH).donePromise.then(()=>{const ai=(0,u.q)(),bi=pn.querySelectorAll(`style[ng-transition="${cn}"]`);for(let so=0;so{class cn{build(){return new XMLHttpRequest}}return cn.\u0275fac=function(We){return new(We||cn)},cn.\u0275prov=p.Yz7({token:cn,factory:cn.\u0275fac}),cn})();const W=new p.OlP("EventManagerPlugins");let tt=(()=>{class cn{constructor(We,ai){this._zone=ai,this._eventNameToPlugin=new Map,We.forEach(bi=>bi.manager=this),this._plugins=We.slice().reverse()}addEventListener(We,ai,bi){return this._findPluginFor(ai).addEventListener(We,ai,bi)}addGlobalEventListener(We,ai,bi){return this._findPluginFor(ai).addGlobalEventListener(We,ai,bi)}getZone(){return this._zone}_findPluginFor(We){const ai=this._eventNameToPlugin.get(We);if(ai)return ai;const bi=this._plugins;for(let so=0;so{class cn{constructor(){this._stylesSet=new Set}addStyles(We){const ai=new Set;We.forEach(bi=>{this._stylesSet.has(bi)||(this._stylesSet.add(bi),ai.add(bi))}),this.onStylesAdded(ai)}onStylesAdded(We){}getAllStyles(){return Array.from(this._stylesSet)}}return cn.\u0275fac=function(We){return new(We||cn)},cn.\u0275prov=p.Yz7({token:cn,factory:cn.\u0275fac}),cn})(),bt=(()=>{class cn extends ct{constructor(We){super(),this._doc=We,this._hostNodes=new Map,this._hostNodes.set(We.head,[])}_addStylesToHost(We,ai,bi){We.forEach(so=>{const To=this._doc.createElement("style");To.textContent=so,bi.push(ai.appendChild(To))})}addHost(We){const ai=[];this._addStylesToHost(this._stylesSet,We,ai),this._hostNodes.set(We,ai)}removeHost(We){const ai=this._hostNodes.get(We);ai&&ai.forEach(Dt),this._hostNodes.delete(We)}onStylesAdded(We){this._hostNodes.forEach((ai,bi)=>{this._addStylesToHost(We,bi,ai)})}ngOnDestroy(){this._hostNodes.forEach(We=>We.forEach(Dt))}}return cn.\u0275fac=function(We){return new(We||cn)(p.LFG(u.K0))},cn.\u0275prov=p.Yz7({token:cn,factory:cn.\u0275fac}),cn})();function Dt(cn){(0,u.q)().remove(cn)}const wt={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/"},qt=/%COMP%/g;function Bt(cn,pn,We){for(let ai=0;ai{if("__ngUnwrap__"===pn)return cn;!1===cn(pn)&&(pn.preventDefault(),pn.returnValue=!1)}}let Vt=(()=>{class cn{constructor(We,ai,bi){this.eventManager=We,this.sharedStylesHost=ai,this.appId=bi,this.rendererByCompId=new Map,this.defaultRenderer=new ve(We)}createRenderer(We,ai){if(!We||!ai)return this.defaultRenderer;switch(ai.encapsulation){case p.ifc.Emulated:{let bi=this.rendererByCompId.get(ai.id);return bi||(bi=new Ge(this.eventManager,this.sharedStylesHost,ai,this.appId),this.rendererByCompId.set(ai.id,bi)),bi.applyToHost(We),bi}case 1:case p.ifc.ShadowDom:return new Gt(this.eventManager,this.sharedStylesHost,We,ai);default:if(!this.rendererByCompId.has(ai.id)){const bi=Bt(ai.id,ai.styles,[]);this.sharedStylesHost.addStyles(bi),this.rendererByCompId.set(ai.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return cn.\u0275fac=function(We){return new(We||cn)(p.LFG(tt),p.LFG(bt),p.LFG(p.AFp))},cn.\u0275prov=p.Yz7({token:cn,factory:cn.\u0275fac}),cn})();class ve{constructor(pn){this.eventManager=pn,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(pn,We){return We?document.createElementNS(wt[We]||We,pn):document.createElement(pn)}createComment(pn){return document.createComment(pn)}createText(pn){return document.createTextNode(pn)}appendChild(pn,We){(Fe(pn)?pn.content:pn).appendChild(We)}insertBefore(pn,We,ai){pn&&(Fe(pn)?pn.content:pn).insertBefore(We,ai)}removeChild(pn,We){pn&&pn.removeChild(We)}selectRootElement(pn,We){let ai="string"==typeof pn?document.querySelector(pn):pn;if(!ai)throw new Error(`The selector "${pn}" did not match any elements`);return We||(ai.textContent=""),ai}parentNode(pn){return pn.parentNode}nextSibling(pn){return pn.nextSibling}setAttribute(pn,We,ai,bi){if(bi){We=bi+":"+We;const so=wt[bi];so?pn.setAttributeNS(so,We,ai):pn.setAttribute(We,ai)}else pn.setAttribute(We,ai)}removeAttribute(pn,We,ai){if(ai){const bi=wt[ai];bi?pn.removeAttributeNS(bi,We):pn.removeAttribute(`${ai}:${We}`)}else pn.removeAttribute(We)}addClass(pn,We){pn.classList.add(We)}removeClass(pn,We){pn.classList.remove(We)}setStyle(pn,We,ai,bi){bi&(p.JOm.DashCase|p.JOm.Important)?pn.style.setProperty(We,ai,bi&p.JOm.Important?"important":""):pn.style[We]=ai}removeStyle(pn,We,ai){ai&p.JOm.DashCase?pn.style.removeProperty(We):pn.style[We]=""}setProperty(pn,We,ai){pn[We]=ai}setValue(pn,We){pn.nodeValue=We}listen(pn,We,ai){return"string"==typeof pn?this.eventManager.addGlobalEventListener(pn,We,St(ai)):this.eventManager.addEventListener(pn,We,St(ai))}}function Fe(cn){return"TEMPLATE"===cn.tagName&&void 0!==cn.content}class Ge extends ve{constructor(pn,We,ai,bi){super(pn),this.component=ai;const so=Bt(bi+"-"+ai.id,ai.styles,[]);We.addStyles(so),this.contentAttr=function pt(cn){return"_ngcontent-%COMP%".replace(qt,cn)}(bi+"-"+ai.id),this.hostAttr=function Ot(cn){return"_nghost-%COMP%".replace(qt,cn)}(bi+"-"+ai.id)}applyToHost(pn){super.setAttribute(pn,this.hostAttr,"")}createElement(pn,We){const ai=super.createElement(pn,We);return super.setAttribute(ai,this.contentAttr,""),ai}}class Gt extends ve{constructor(pn,We,ai,bi){super(pn),this.sharedStylesHost=We,this.hostEl=ai,this.shadowRoot=ai.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const so=Bt(bi.id,bi.styles,[]);for(let To=0;To{class cn extends st{constructor(We){super(We)}supports(We){return!0}addEventListener(We,ai,bi){return We.addEventListener(ai,bi,!1),()=>this.removeEventListener(We,ai,bi)}removeEventListener(We,ai,bi){return We.removeEventListener(ai,bi)}}return cn.\u0275fac=function(We){return new(We||cn)(p.LFG(u.K0))},cn.\u0275prov=p.Yz7({token:cn,factory:cn.\u0275fac}),cn})();const ne=["alt","control","meta","shift"],jt={"\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"},re={alt:cn=>cn.altKey,control:cn=>cn.ctrlKey,meta:cn=>cn.metaKey,shift:cn=>cn.shiftKey};let Xt=(()=>{class cn extends st{constructor(We){super(We)}supports(We){return null!=cn.parseEventName(We)}addEventListener(We,ai,bi){const so=cn.parseEventName(ai),To=cn.eventCallback(so.fullKey,bi,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,u.q)().onAndCancel(We,so.domEventName,To))}static parseEventName(We){const ai=We.toLowerCase().split("."),bi=ai.shift();if(0===ai.length||"keydown"!==bi&&"keyup"!==bi)return null;const so=cn._normalizeKey(ai.pop());let To="",Lo=ai.indexOf("code");if(Lo>-1&&(ai.splice(Lo,1),To="code."),ne.forEach(Aa=>{const Ne=ai.indexOf(Aa);Ne>-1&&(ai.splice(Ne,1),To+=Aa+".")}),To+=so,0!=ai.length||0===so.length)return null;const ha={};return ha.domEventName=bi,ha.fullKey=To,ha}static matchEventFullKeyCode(We,ai){let bi=jt[We.key]||We.key,so="";return ai.indexOf("code.")>-1&&(bi=We.code,so="code."),!(null==bi||!bi)&&(bi=bi.toLowerCase()," "===bi?bi="space":"."===bi&&(bi="dot"),ne.forEach(To=>{To!==bi&&(0,re[To])(We)&&(so+=To+".")}),so+=bi,so===ai)}static eventCallback(We,ai,bi){return so=>{cn.matchEventFullKeyCode(so,We)&&bi.runGuarded(()=>ai(so))}}static _normalizeKey(We){return"esc"===We?"escape":We}}return cn.\u0275fac=function(We){return new(We||cn)(p.LFG(u.K0))},cn.\u0275prov=p.Yz7({token:cn,factory:cn.\u0275fac}),cn})();const ii=(0,p.eFA)(p._c5,"browser",[{provide:p.Lbi,useValue:u.bD},{provide:p.g9A,useValue:function vn(){v.makeCurrent()},multi:!0},{provide:u.K0,useFactory:function un(){return(0,p.RDi)(document),document},deps:[]}]),_i=new p.OlP(""),oi=[{provide:p.rWj,useClass:class N{addToWindow(pn){p.dqk.getAngularTestability=(ai,bi=!0)=>{const so=pn.findTestabilityInTree(ai,bi);if(null==so)throw new Error("Could not find testability for element.");return so},p.dqk.getAllAngularTestabilities=()=>pn.getAllTestabilities(),p.dqk.getAllAngularRootElements=()=>pn.getAllRootElements(),p.dqk.frameworkStabilizers||(p.dqk.frameworkStabilizers=[]),p.dqk.frameworkStabilizers.push(ai=>{const bi=p.dqk.getAllAngularTestabilities();let so=bi.length,To=!1;const Lo=function(ha){To=To||ha,so--,0==so&&ai(To)};bi.forEach(function(ha){ha.whenStable(Lo)})})}findTestabilityInTree(pn,We,ai){return null==We?null:pn.getTestability(We)??(ai?(0,u.q)().isShadowRoot(We)?this.findTestabilityInTree(pn,We.host,!0):this.findTestabilityInTree(pn,We.parentElement,!0):null)}},deps:[]},{provide:p.lri,useClass:p.dDg,deps:[p.R0b,p.eoX,p.rWj]},{provide:p.dDg,useClass:p.dDg,deps:[p.R0b,p.eoX,p.rWj]}],Qe=[{provide:p.zSh,useValue:"root"},{provide:p.qLn,useFactory:function ke(){return new p.qLn},deps:[]},{provide:W,useClass:Te,multi:!0,deps:[u.K0,p.R0b,p.Lbi]},{provide:W,useClass:Xt,multi:!0,deps:[u.K0]},{provide:Vt,useClass:Vt,deps:[tt,bt,p.AFp]},{provide:p.FYo,useExisting:Vt},{provide:ct,useExisting:bt},{provide:bt,useClass:bt,deps:[u.K0]},{provide:tt,useClass:tt,deps:[W,p.R0b]},{provide:u.JF,useClass:V,deps:[]},[]];let te=(()=>{class cn{constructor(We){}static withServerTransition(We){return{ngModule:cn,providers:[{provide:p.AFp,useValue:We.appId},{provide:P,useExisting:p.AFp},L]}}}return cn.\u0275fac=function(We){return new(We||cn)(p.LFG(_i,12))},cn.\u0275mod=p.oAB({type:cn}),cn.\u0275inj=p.cJS({providers:[...Qe,...oi],imports:[u.ez,p.hGG]}),cn})(),le=(()=>{class cn{constructor(We){this._doc=We}getTitle(){return this._doc.title}setTitle(We){this._doc.title=We||""}}return cn.\u0275fac=function(We){return new(We||cn)(p.LFG(u.K0))},cn.\u0275prov=p.Yz7({token:cn,factory:function(We){let ai=null;return ai=We?new We:function Rt(){return new le((0,p.LFG)(u.K0))}(),ai},providedIn:"root"}),cn})();typeof window<"u"&&window;let Ie=(()=>{class cn{}return cn.\u0275fac=function(We){return new(We||cn)},cn.\u0275prov=p.Yz7({token:cn,factory:function(We){let ai=null;return ai=We?new(We||cn):p.LFG(Ei),ai},providedIn:"root"}),cn})(),Ei=(()=>{class cn extends Ie{constructor(We){super(),this._doc=We}sanitize(We,ai){if(null==ai)return null;switch(We){case p.q3G.NONE:return ai;case p.q3G.HTML:return(0,p.qzn)(ai,"HTML")?(0,p.z3N)(ai):(0,p.EiD)(this._doc,String(ai)).toString();case p.q3G.STYLE:return(0,p.qzn)(ai,"Style")?(0,p.z3N)(ai):ai;case p.q3G.SCRIPT:if((0,p.qzn)(ai,"Script"))return(0,p.z3N)(ai);throw new Error("unsafe value used in a script context");case p.q3G.URL:return(0,p.qzn)(ai,"URL")?(0,p.z3N)(ai):(0,p.mCW)(String(ai));case p.q3G.RESOURCE_URL:if((0,p.qzn)(ai,"ResourceURL"))return(0,p.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 ${We} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(We){return(0,p.JVY)(We)}bypassSecurityTrustStyle(We){return(0,p.L6k)(We)}bypassSecurityTrustScript(We){return(0,p.eBb)(We)}bypassSecurityTrustUrl(We){return(0,p.LAX)(We)}bypassSecurityTrustResourceUrl(We){return(0,p.pB0)(We)}}return cn.\u0275fac=function(We){return new(We||cn)(p.LFG(u.K0))},cn.\u0275prov=p.Yz7({token:cn,factory:function(We){let ai=null;return ai=We?new We:function Sn(cn){return new Ei(cn.get(u.K0))}(p.LFG(p.zs3)),ai},providedIn:"root"}),cn})()},83689:(X,j,h)=>{"use strict";h.d(j,{gz:()=>Es,m2:()=>Ar,wN:()=>xi,F0:()=>hr,rH:()=>Mu,Od:()=>Zd,yS:()=>_l,Bz:()=>n_,lC:()=>Va});var u=h(94650),p=h(5254),x=h(21086),v=h(591),t=h(84450),T=h(23426),U=h(61221),w=h(88514),P=h(4843),O=h(61737),L=h(56498),N=h(68896),V=h(71762),W=h(8929),tt=h(36895),st=h(24850),ct=h(87545),bt=h(72986),Dt=h(1059),wt=h(92198),qt=h(61709),Jt=h(87224),yt=h(21406),At=h(22868),xt=h(27221),pt=h(43489);function Ot(ft,gt){let rt=!1;return arguments.length>=2&&(rt=!0),function(ee){return ee.lift(new Bt(ft,gt,rt))}}class Bt{constructor(gt,rt,Ht=!1){this.accumulator=gt,this.seed=rt,this.hasSeed=Ht}call(gt,rt){return rt.subscribe(new St(gt,this.accumulator,this.seed,this.hasSeed))}}class St extends pt.L{constructor(gt,rt,Ht,ee){super(gt),this.accumulator=rt,this._seed=Ht,this.hasSeed=ee,this.index=0}get seed(){return this._seed}set seed(gt){this.hasSeed=!0,this._seed=gt}_next(gt){if(this.hasSeed)return this._tryNext(gt);this.seed=gt,this.destination.next(gt)}_tryNext(gt){const rt=this.index++;let Ht;try{Ht=this.accumulator(this.seed,gt,rt)}catch(ee){this.destination.error(ee)}this.seed=Ht,this.destination.next(Ht)}}var ce=h(94231);function Vt(ft){return function(rt){return 0===ft?(0,N.c)():rt.lift(new ve(ft))}}class ve{constructor(gt){if(this.total=gt,this.total<0)throw new ce.W}call(gt,rt){return rt.subscribe(new fe(gt,this.total))}}class fe extends pt.L{constructor(gt,rt){super(gt),this.total=rt,this.ring=new Array,this.count=0}_next(gt){const rt=this.ring,Ht=this.total,ee=this.count++;rt.length0){const Ht=this.count>=this.total?this.total:this.count,ee=this.ring;for(let me=0;me=2;return Ht=>Ht.pipe(ft?(0,wt.h)((ee,me)=>ft(ee,me,Ht)):Ge.y,Vt(1),rt?(0,Fe.d)(gt):(0,Le.T)(()=>new t.K))}var Te=h(44290),ne=h(77604),jt=h(40537),re=h(74327),Xt=h(89146),oe=h(11481);const Me="primary",en=Symbol("RouteTitle");class _n{constructor(gt){this.params=gt||{}}has(gt){return Object.prototype.hasOwnProperty.call(this.params,gt)}get(gt){if(this.has(gt)){const rt=this.params[gt];return Array.isArray(rt)?rt[0]:rt}return null}getAll(gt){if(this.has(gt)){const rt=this.params[gt];return Array.isArray(rt)?rt:[rt]}return[]}get keys(){return Object.keys(this.params)}}function xe(ft){return new _n(ft)}function vn(ft,gt,rt){const Ht=rt.path.split("/");if(Ht.length>ft.length||"full"===rt.pathMatch&&(gt.hasChildren()||Ht.lengthHt[me]===ee)}return ft===gt}function ii(ft){return Array.prototype.concat.apply([],ft)}function _i(ft){return ft.length>0?ft[ft.length-1]:null}function Qe(ft,gt){for(const rt in ft)ft.hasOwnProperty(rt)&>(ft[rt],rt)}function te(ft){return(0,u.CqO)(ft)?ft:(0,u.QGY)(ft)?(0,p.D)(Promise.resolve(ft)):(0,x.of)(ft)}const Tt={exact:function De(ft,gt,rt){if(!Je(ft.segments,gt.segments)||!Di(ft.segments,gt.segments,rt)||ft.numberOfChildren!==gt.numberOfChildren)return!1;for(const Ht in gt.children)if(!ft.children[Ht]||!De(ft.children[Ht],gt.children[Ht],rt))return!1;return!0},subset:qn},Rt={exact:function be(ft,gt){return un(ft,gt)},subset:function hn(ft,gt){return Object.keys(gt).length<=Object.keys(ft).length&&Object.keys(gt).every(rt=>Dn(ft[rt],gt[rt]))},ignored:()=>!0};function le(ft,gt,rt){return Tt[rt.paths](ft.root,gt.root,rt.matrixParams)&&Rt[rt.queryParams](ft.queryParams,gt.queryParams)&&!("exact"===rt.fragment&&ft.fragment!==gt.fragment)}function qn(ft,gt,rt){return mi(ft,gt,gt.segments,rt)}function mi(ft,gt,rt,Ht){if(ft.segments.length>rt.length){const ee=ft.segments.slice(0,rt.length);return!(!Je(ee,rt)||gt.hasChildren()||!Di(ee,rt,Ht))}if(ft.segments.length===rt.length){if(!Je(ft.segments,rt)||!Di(ft.segments,rt,Ht))return!1;for(const ee in gt.children)if(!ft.children[ee]||!qn(ft.children[ee],gt.children[ee],Ht))return!1;return!0}{const ee=rt.slice(0,ft.segments.length),me=rt.slice(ft.segments.length);return!!(Je(ft.segments,ee)&&Di(ft.segments,ee,Ht)&&ft.children[Me])&&mi(ft.children[Me],gt,me,Ht)}}function Di(ft,gt,rt){return gt.every((Ht,ee)=>Rt[rt](ft[ee].parameters,Ht.parameters))}class bo{constructor(gt,rt,Ht){this.root=gt,this.queryParams=rt,this.fragment=Ht}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=xe(this.queryParams)),this._queryParamMap}toString(){return Xe.serialize(this)}}class hi{constructor(gt,rt){this.segments=gt,this.children=rt,this.parent=null,Qe(rt,(Ht,ee)=>Ht.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return se(this)}}class Yn{constructor(gt,rt){this.path=gt,this.parameters=rt}get parameterMap(){return this._parameterMap||(this._parameterMap=xe(this.parameters)),this._parameterMap}toString(){return Se(this)}}function Je(ft,gt){return ft.length===gt.length&&ft.every((rt,Ht)=>rt.path===gt[Ht].path)}let Ye=(()=>{class ft{}return ft.\u0275fac=function(rt){return new(rt||ft)},ft.\u0275prov=u.Yz7({token:ft,factory:function(){return new Ee},providedIn:"root"}),ft})();class Ee{parse(gt){const rt=new We(gt);return new bo(rt.parseRootSegment(),rt.parseQueryParams(),rt.parseFragment())}serialize(gt){const rt=`/${ze(gt.root,!0)}`,Ht=function Ae(ft){const gt=Object.keys(ft).map(rt=>{const Ht=ft[rt];return Array.isArray(Ht)?Ht.map(ee=>`${rn(rt)}=${rn(ee)}`).join("&"):`${rn(rt)}=${rn(Ht)}`}).filter(rt=>!!rt);return gt.length?`?${gt.join("&")}`:""}(gt.queryParams);return`${rt}${Ht}${"string"==typeof gt.fragment?`#${function fn(ft){return encodeURI(ft)}(gt.fragment)}`:""}`}}const Xe=new Ee;function se(ft){return ft.segments.map(gt=>Se(gt)).join("/")}function ze(ft,gt){if(!ft.hasChildren())return se(ft);if(gt){const rt=ft.children[Me]?ze(ft.children[Me],!1):"",Ht=[];return Qe(ft.children,(ee,me)=>{me!==Me&&Ht.push(`${me}:${ze(ee,!1)}`)}),Ht.length>0?`${rt}(${Ht.join("//")})`:rt}{const rt=function gn(ft,gt){let rt=[];return Qe(ft.children,(Ht,ee)=>{ee===Me&&(rt=rt.concat(gt(Ht,ee)))}),Qe(ft.children,(Ht,ee)=>{ee!==Me&&(rt=rt.concat(gt(Ht,ee)))}),rt}(ft,(Ht,ee)=>ee===Me?[ze(ft.children[Me],!1)]:[`${ee}:${ze(Ht,!1)}`]);return 1===Object.keys(ft.children).length&&null!=ft.children[Me]?`${se(ft)}/${rt[0]}`:`${se(ft)}/(${rt.join("//")})`}}function ie(ft){return encodeURIComponent(ft).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function rn(ft){return ie(ft).replace(/%3B/gi,";")}function sn(ft){return ie(ft).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ge(ft){return decodeURIComponent(ft)}function Nt(ft){return ge(ft.replace(/\+/g,"%20"))}function Se(ft){return`${sn(ft.path)}${function zt(ft){return Object.keys(ft).map(gt=>`;${sn(gt)}=${sn(ft[gt])}`).join("")}(ft.parameters)}`}const Ie=/^[^\/()?;=#]+/;function Sn(ft){const gt=ft.match(Ie);return gt?gt[0]:""}const Ei=/^[^=?&#]+/,cn=/^[^&#]+/;class We{constructor(gt){this.url=gt,this.remaining=gt}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new hi([],{}):new hi([],this.parseChildren())}parseQueryParams(){const gt={};if(this.consumeOptional("?"))do{this.parseQueryParam(gt)}while(this.consumeOptional("&"));return gt}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const gt=[];for(this.peekStartsWith("(")||gt.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),gt.push(this.parseSegment());let rt={};this.peekStartsWith("/(")&&(this.capture("/"),rt=this.parseParens(!0));let Ht={};return this.peekStartsWith("(")&&(Ht=this.parseParens(!1)),(gt.length>0||Object.keys(rt).length>0)&&(Ht[Me]=new hi(gt,rt)),Ht}parseSegment(){const gt=Sn(this.remaining);if(""===gt&&this.peekStartsWith(";"))throw new u.vHH(4009,!1);return this.capture(gt),new Yn(ge(gt),this.parseMatrixParams())}parseMatrixParams(){const gt={};for(;this.consumeOptional(";");)this.parseParam(gt);return gt}parseParam(gt){const rt=Sn(this.remaining);if(!rt)return;this.capture(rt);let Ht="";if(this.consumeOptional("=")){const ee=Sn(this.remaining);ee&&(Ht=ee,this.capture(Ht))}gt[ge(rt)]=ge(Ht)}parseQueryParam(gt){const rt=function Vi(ft){const gt=ft.match(Ei);return gt?gt[0]:""}(this.remaining);if(!rt)return;this.capture(rt);let Ht="";if(this.consumeOptional("=")){const Pn=function pn(ft){const gt=ft.match(cn);return gt?gt[0]:""}(this.remaining);Pn&&(Ht=Pn,this.capture(Ht))}const ee=Nt(rt),me=Nt(Ht);if(gt.hasOwnProperty(ee)){let Pn=gt[ee];Array.isArray(Pn)||(Pn=[Pn],gt[ee]=Pn),Pn.push(me)}else gt[ee]=me}parseParens(gt){const rt={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const Ht=Sn(this.remaining),ee=this.remaining[Ht.length];if("/"!==ee&&")"!==ee&&";"!==ee)throw new u.vHH(4010,!1);let me;Ht.indexOf(":")>-1?(me=Ht.slice(0,Ht.indexOf(":")),this.capture(me),this.capture(":")):gt&&(me=Me);const Pn=this.parseChildren();rt[me]=1===Object.keys(Pn).length?Pn[Me]:new hi([],Pn),this.consumeOptional("//")}return rt}peekStartsWith(gt){return this.remaining.startsWith(gt)}consumeOptional(gt){return!!this.peekStartsWith(gt)&&(this.remaining=this.remaining.substring(gt.length),!0)}capture(gt){if(!this.consumeOptional(gt))throw new u.vHH(4011,!1)}}function ai(ft){return ft.segments.length>0?new hi([],{[Me]:ft}):ft}function bi(ft){const gt={};for(const Ht of Object.keys(ft.children)){const me=bi(ft.children[Ht]);(me.segments.length>0||me.hasChildren())&&(gt[Ht]=me)}return function so(ft){if(1===ft.numberOfChildren&&ft.children[Me]){const gt=ft.children[Me];return new hi(ft.segments.concat(gt.segments),gt.children)}return ft}(new hi(ft.segments,gt))}function To(ft){return ft instanceof bo}function Rn(ft,gt,rt,Ht,ee){if(0===rt.length)return on(gt.root,gt.root,gt.root,Ht,ee);const me=function J(ft){if("string"==typeof ft[0]&&1===ft.length&&"/"===ft[0])return new Et(!0,0,ft);let gt=0,rt=!1;const Ht=ft.reduce((ee,me,Pn)=>{if("object"==typeof me&&null!=me){if(me.outlets){const yn={};return Qe(me.outlets,(qe,Ue)=>{yn[Ue]="string"==typeof qe?qe.split("/"):qe}),[...ee,{outlets:yn}]}if(me.segmentPath)return[...ee,me.segmentPath]}return"string"!=typeof me?[...ee,me]:0===Pn?(me.split("/").forEach((yn,qe)=>{0==qe&&"."===yn||(0==qe&&""===yn?rt=!0:".."===yn?gt++:""!=yn&&ee.push(yn))}),ee):[...ee,me]},[]);return new Et(rt,gt,Ht)}(rt);return me.toRoot()?on(gt.root,gt.root,new hi([],{}),Ht,ee):function Pn(qe){const Ue=function zn(ft,gt,rt,Ht){if(ft.isAbsolute)return new Lt(gt.root,!0,0);if(-1===Ht)return new Lt(rt,rt===gt.root,0);return function Ki(ft,gt,rt){let Ht=ft,ee=gt,me=rt;for(;me>ee;){if(me-=ee,Ht=Ht.parent,!Ht)throw new u.vHH(4005,!1);ee=Ht.segments.length}return new Lt(Ht,!1,ee-me)}(rt,Ht+(Re(ft.commands[0])?0:1),ft.numberOfDoubleDots)}(me,gt,ft.snapshot?._urlSegment,qe),li=Ue.processChildren?pr(Ue.segmentGroup,Ue.index,me.commands):dr(Ue.segmentGroup,Ue.index,me.commands);return on(gt.root,Ue.segmentGroup,li,Ht,ee)}(ft.snapshot?._lastPathIndex)}function Re(ft){return"object"==typeof ft&&null!=ft&&!ft.outlets&&!ft.segmentPath}function we(ft){return"object"==typeof ft&&null!=ft&&ft.outlets}function on(ft,gt,rt,Ht,ee){let Pn,me={};Ht&&Qe(Ht,(qe,Ue)=>{me[Ue]=Array.isArray(qe)?qe.map(li=>`${li}`):`${qe}`}),Pn=ft===gt?rt:Q(ft,gt,rt);const yn=ai(bi(Pn));return new bo(yn,me,ee)}function Q(ft,gt,rt){const Ht={};return Qe(ft.children,(ee,me)=>{Ht[me]=ee===gt?rt:Q(ee,gt,rt)}),new hi(ft.segments,Ht)}class Et{constructor(gt,rt,Ht){if(this.isAbsolute=gt,this.numberOfDoubleDots=rt,this.commands=Ht,gt&&Ht.length>0&&Re(Ht[0]))throw new u.vHH(4003,!1);const ee=Ht.find(we);if(ee&&ee!==_i(Ht))throw new u.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Lt{constructor(gt,rt,Ht){this.segmentGroup=gt,this.processChildren=rt,this.index=Ht}}function dr(ft,gt,rt){if(ft||(ft=new hi([],{})),0===ft.segments.length&&ft.hasChildren())return pr(ft,gt,rt);const Ht=function $r(ft,gt,rt){let Ht=0,ee=gt;const me={match:!1,pathIndex:0,commandIndex:0};for(;ee=rt.length)return me;const Pn=ft.segments[ee],yn=rt[Ht];if(we(yn))break;const qe=`${yn}`,Ue=Ht0&&void 0===qe)break;if(qe&&Ue&&"object"==typeof Ue&&void 0===Ue.outlets){if(!nr(qe,Ue,Pn))return me;Ht+=2}else{if(!nr(qe,{},Pn))return me;Ht++}ee++}return{match:!0,pathIndex:ee,commandIndex:Ht}}(ft,gt,rt),ee=rt.slice(Ht.commandIndex);if(Ht.match&&Ht.pathIndex{"string"==typeof me&&(me=[me]),null!==me&&(ee[Pn]=dr(ft.children[Pn],gt,me))}),Qe(ft.children,(me,Pn)=>{void 0===Ht[Pn]&&(ee[Pn]=me)}),new hi(ft.segments,ee)}}function ja(ft,gt,rt){const Ht=ft.segments.slice(0,gt);let ee=0;for(;ee{"string"==typeof rt&&(rt=[rt]),null!==rt&&(gt[Ht]=ja(new hi([],{}),0,rt))}),gt}function cc(ft){const gt={};return Qe(ft,(rt,Ht)=>gt[Ht]=`${rt}`),gt}function nr(ft,gt,rt){return ft==rt.path&&un(gt,rt.parameters)}class ds{constructor(gt,rt){this.id=gt,this.url=rt}}class Tr extends ds{constructor(gt,rt,Ht="imperative",ee=null){super(gt,rt),this.type=0,this.navigationTrigger=Ht,this.restoredState=ee}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Ar extends ds{constructor(gt,rt,Ht){super(gt,rt),this.urlAfterRedirects=Ht,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Sc extends ds{constructor(gt,rt,Ht,ee){super(gt,rt),this.reason=Ht,this.code=ee,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Ml extends ds{constructor(gt,rt,Ht,ee){super(gt,rt),this.error=Ht,this.target=ee,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class js extends ds{constructor(gt,rt,Ht,ee){super(gt,rt),this.urlAfterRedirects=Ht,this.state=ee,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ls extends ds{constructor(gt,rt,Ht,ee){super(gt,rt),this.urlAfterRedirects=Ht,this.state=ee,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ws extends ds{constructor(gt,rt,Ht,ee,me){super(gt,rt),this.urlAfterRedirects=Ht,this.state=ee,this.shouldActivate=me,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Oc extends ds{constructor(gt,rt,Ht,ee){super(gt,rt),this.urlAfterRedirects=Ht,this.state=ee,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ps extends ds{constructor(gt,rt,Ht,ee){super(gt,rt),this.urlAfterRedirects=Ht,this.state=ee,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Hs{constructor(gt){this.route=gt,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Qd{constructor(gt){this.route=gt,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Fr{constructor(gt){this.snapshot=gt,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ud{constructor(gt){this.snapshot=gt,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class jd{constructor(gt){this.snapshot=gt,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Gc{constructor(gt){this.snapshot=gt,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class lc{constructor(gt,rt,Ht){this.routerEvent=gt,this.position=rt,this.anchor=Ht,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Qc{constructor(gt){this._root=gt}get root(){return this._root.value}parent(gt){const rt=this.pathFromRoot(gt);return rt.length>1?rt[rt.length-2]:null}children(gt){const rt=jc(gt,this._root);return rt?rt.children.map(Ht=>Ht.value):[]}firstChild(gt){const rt=jc(gt,this._root);return rt&&rt.children.length>0?rt.children[0].value:null}siblings(gt){const rt=$s(gt,this._root);return rt.length<2?[]:rt[rt.length-2].children.map(ee=>ee.value).filter(ee=>ee!==gt)}pathFromRoot(gt){return $s(gt,this._root).map(rt=>rt.value)}}function jc(ft,gt){if(ft===gt.value)return gt;for(const rt of gt.children){const Ht=jc(ft,rt);if(Ht)return Ht}return null}function $s(ft,gt){if(ft===gt.value)return[gt];for(const rt of gt.children){const Ht=$s(ft,rt);if(Ht.length)return Ht.unshift(gt),Ht}return[]}class xc{constructor(gt,rt){this.value=gt,this.children=rt}toString(){return`TreeNode(${this.value})`}}function Ks(ft){const gt={};return ft&&ft.children.forEach(rt=>gt[rt.value.outlet]=rt),gt}class ll extends Qc{constructor(gt,rt){super(gt),this.snapshot=rt,Dl(this,gt)}toString(){return this.snapshot.toString()}}function td(ft,gt){const rt=function jl(ft,gt){const Pn=new Wc([],{},{},"",{},Me,gt,null,ft.root,-1,{});return new Xs("",new xc(Pn,[]))}(ft,gt),Ht=new v.X([new Yn("",{})]),ee=new v.X({}),me=new v.X({}),Pn=new v.X({}),yn=new v.X(""),qe=new Es(Ht,ee,Pn,yn,me,Me,gt,rt.root);return qe.snapshot=rt.root,new ll(new xc(qe,[]),rt)}class Es{constructor(gt,rt,Ht,ee,me,Pn,yn,qe){this.url=gt,this.params=rt,this.queryParams=Ht,this.fragment=ee,this.data=me,this.outlet=Pn,this.component=yn,this.title=this.data?.pipe((0,st.U)(Ue=>Ue[en]))??(0,x.of)(void 0),this._futureSnapshot=qe}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,st.U)(gt=>xe(gt)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,st.U)(gt=>xe(gt)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Zl(ft,gt="emptyOnly"){const rt=ft.pathFromRoot;let Ht=0;if("always"!==gt)for(Ht=rt.length-1;Ht>=1;){const ee=rt[Ht],me=rt[Ht-1];if(ee.routeConfig&&""===ee.routeConfig.path)Ht--;else{if(me.component)break;Ht--}}return function Ys(ft){return ft.reduce((gt,rt)=>({params:{...gt.params,...rt.params},data:{...gt.data,...rt.data},resolve:{...rt.data,...gt.resolve,...rt.routeConfig?.data,...rt._resolvedData}}),{params:{},data:{},resolve:{}})}(rt.slice(Ht))}class Wc{constructor(gt,rt,Ht,ee,me,Pn,yn,qe,Ue,li,Ao,Co){this.url=gt,this.params=rt,this.queryParams=Ht,this.fragment=ee,this.data=me,this.outlet=Pn,this.component=yn,this.title=this.data?.[en],this.routeConfig=qe,this._urlSegment=Ue,this._lastPathIndex=li,this._correctedLastPathIndex=Co??li,this._resolve=Ao}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=xe(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=xe(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(Ht=>Ht.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Xs extends Qc{constructor(gt,rt){super(rt),this.url=gt,Dl(this,rt)}toString(){return lu(this._root)}}function Dl(ft,gt){gt.value._routerState=ft,gt.children.forEach(rt=>Dl(ft,rt))}function lu(ft){const gt=ft.children.length>0?` { ${ft.children.map(lu).join(", ")} } `:"";return`${ft.value}${gt}`}function Wl(ft){if(ft.snapshot){const gt=ft.snapshot,rt=ft._futureSnapshot;ft.snapshot=rt,un(gt.queryParams,rt.queryParams)||ft.queryParams.next(rt.queryParams),gt.fragment!==rt.fragment&&ft.fragment.next(rt.fragment),un(gt.params,rt.params)||ft.params.next(rt.params),function ke(ft,gt){if(ft.length!==gt.length)return!1;for(let rt=0;rtun(rt.parameters,gt[Ht].parameters))}(ft.url,gt.url);return rt&&!(!ft.parent!=!gt.parent)&&(!ft.parent||Ca(ft.parent,gt.parent))}function bc(ft,gt,rt){if(rt&&ft.shouldReuseRoute(gt.value,rt.value.snapshot)){const Ht=rt.value;Ht._futureSnapshot=gt.value;const ee=function Tu(ft,gt,rt){return gt.children.map(Ht=>{for(const ee of rt.children)if(ft.shouldReuseRoute(Ht.value,ee.value.snapshot))return bc(ft,Ht,ee);return bc(ft,Ht)})}(ft,gt,rt);return new xc(Ht,ee)}{if(ft.shouldAttach(gt.value)){const me=ft.retrieve(gt.value);if(null!==me){const Pn=me.route;return Pn.value._futureSnapshot=gt.value,Pn.children=gt.children.map(yn=>bc(ft,yn)),Pn}}const Ht=function ed(ft){return new Es(new v.X(ft.url),new v.X(ft.params),new v.X(ft.queryParams),new v.X(ft.fragment),new v.X(ft.data),ft.outlet,ft.component,ft)}(gt.value),ee=gt.children.map(me=>bc(ft,me));return new xc(Ht,ee)}}const qa="ngNavigationCancelingError";function uu(ft,gt){const{redirectTo:rt,navigationBehaviorOptions:Ht}=To(gt)?{redirectTo:gt,navigationBehaviorOptions:void 0}:gt,ee=Ts(!1,0,gt);return ee.url=rt,ee.navigationBehaviorOptions=Ht,ee}function Ts(ft,gt,rt){const Ht=new Error("NavigationCancelingError: "+(ft||""));return Ht[qa]=!0,Ht.cancellationCode=gt,rt&&(Ht.url=rt),Ht}function As(ft){return $l(ft)&&To(ft.url)}function $l(ft){return ft&&ft[qa]}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 ft{constructor(){this.contexts=new Map}onChildOutletCreated(rt,Ht){const ee=this.getOrCreateContext(rt);ee.outlet=Ht,this.contexts.set(rt,ee)}onChildOutletDestroyed(rt){const Ht=this.getContext(rt);Ht&&(Ht.outlet=null,Ht.attachRef=null)}onOutletDeactivated(){const rt=this.contexts;return this.contexts=new Map,rt}onOutletReAttached(rt){this.contexts=rt}getOrCreateContext(rt){let Ht=this.getContext(rt);return Ht||(Ht=new Pr,this.contexts.set(rt,Ht)),Ht}getContext(rt){return this.contexts.get(rt)||null}}return ft.\u0275fac=function(rt){return new(rt||ft)},ft.\u0275prov=u.Yz7({token:ft,factory:ft.\u0275fac,providedIn:"root"}),ft})();const za=!1;let Va=(()=>{class ft{constructor(rt,Ht,ee,me,Pn){this.parentContexts=rt,this.location=Ht,this.changeDetector=me,this.environmentInjector=Pn,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=ee||Me,rt.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const rt=this.parentContexts.getContext(this.name);rt&&rt.route&&(rt.attachRef?this.attach(rt.attachRef,rt.route):this.activateWith(rt.route,rt.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new u.vHH(4012,za);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new u.vHH(4012,za);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new u.vHH(4012,za);this.location.detach();const rt=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(rt.instance),rt}attach(rt,Ht){this.activated=rt,this._activatedRoute=Ht,this.location.insert(rt.hostView),this.attachEvents.emit(rt.instance)}deactivate(){if(this.activated){const rt=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(rt)}}activateWith(rt,Ht){if(this.isActivated)throw new u.vHH(4013,za);this._activatedRoute=rt;const ee=this.location,Pn=rt._futureSnapshot.component,yn=this.parentContexts.getOrCreateContext(this.name).children,qe=new Ur(rt,yn,ee.injector);if(Ht&&function vr(ft){return!!ft.resolveComponentFactory}(Ht)){const Ue=Ht.resolveComponentFactory(Pn);this.activated=ee.createComponent(Ue,ee.length,qe)}else this.activated=ee.createComponent(Pn,{index:ee.length,injector:qe,environmentInjector:Ht??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return ft.\u0275fac=function(rt){return new(rt||ft)(u.Y36(dc),u.Y36(u.s_b),u.$8M("name"),u.Y36(u.sBO),u.Y36(u.lqb))},ft.\u0275dir=u.lG2({type:ft,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0}),ft})();class Ur{constructor(gt,rt,Ht){this.route=gt,this.childContexts=rt,this.parent=Ht}get(gt,rt){return gt===Es?this.route:gt===dc?this.childContexts:this.parent.get(gt,rt)}}let as=(()=>{class ft{}return ft.\u0275fac=function(rt){return new(rt||ft)},ft.\u0275cmp=u.Xpm({type:ft,selectors:[["ng-component"]],standalone:!0,features:[u.jDz],decls:1,vars:0,template:function(rt,Ht){1&rt&&u._UZ(0,"router-outlet")},dependencies:[Va],encapsulation:2}),ft})();function Qn(ft,gt){return ft.providers&&!ft._injector&&(ft._injector=(0,u.MMx)(ft.providers,gt,`Route: ${ft.path}`)),ft._injector??gt}function Ns(ft){const gt=ft.children&&ft.children.map(Ns),rt=gt?{...ft,children:gt}:{...ft};return!rt.component&&!rt.loadComponent&&(gt||rt.loadChildren)&&rt.outlet&&rt.outlet!==Me&&(rt.component=as),rt}function Ba(ft){return ft.outlet||Me}function io(ft,gt){const rt=ft.filter(Ht=>Ba(Ht)===gt);return rt.push(...ft.filter(Ht=>Ba(Ht)!==gt)),rt}function Nr(ft){if(!ft)return null;if(ft.routeConfig?._injector)return ft.routeConfig._injector;for(let gt=ft.parent;gt;gt=gt.parent){const rt=gt.routeConfig;if(rt?._loadedInjector)return rt._loadedInjector;if(rt?._injector)return rt._injector}return null}class Br{constructor(gt,rt,Ht,ee){this.routeReuseStrategy=gt,this.futureState=rt,this.currState=Ht,this.forwardEvent=ee}activate(gt){const rt=this.futureState._root,Ht=this.currState?this.currState._root:null;this.deactivateChildRoutes(rt,Ht,gt),Wl(this.futureState.root),this.activateChildRoutes(rt,Ht,gt)}deactivateChildRoutes(gt,rt,Ht){const ee=Ks(rt);gt.children.forEach(me=>{const Pn=me.value.outlet;this.deactivateRoutes(me,ee[Pn],Ht),delete ee[Pn]}),Qe(ee,(me,Pn)=>{this.deactivateRouteAndItsChildren(me,Ht)})}deactivateRoutes(gt,rt,Ht){const ee=gt.value,me=rt?rt.value:null;if(ee===me)if(ee.component){const Pn=Ht.getContext(ee.outlet);Pn&&this.deactivateChildRoutes(gt,rt,Pn.children)}else this.deactivateChildRoutes(gt,rt,Ht);else me&&this.deactivateRouteAndItsChildren(rt,Ht)}deactivateRouteAndItsChildren(gt,rt){gt.value.component&&this.routeReuseStrategy.shouldDetach(gt.value.snapshot)?this.detachAndStoreRouteSubtree(gt,rt):this.deactivateRouteAndOutlet(gt,rt)}detachAndStoreRouteSubtree(gt,rt){const Ht=rt.getContext(gt.value.outlet),ee=Ht&>.value.component?Ht.children:rt,me=Ks(gt);for(const Pn of Object.keys(me))this.deactivateRouteAndItsChildren(me[Pn],ee);if(Ht&&Ht.outlet){const Pn=Ht.outlet.detach(),yn=Ht.children.onOutletDeactivated();this.routeReuseStrategy.store(gt.value.snapshot,{componentRef:Pn,route:gt,contexts:yn})}}deactivateRouteAndOutlet(gt,rt){const Ht=rt.getContext(gt.value.outlet),ee=Ht&>.value.component?Ht.children:rt,me=Ks(gt);for(const Pn of Object.keys(me))this.deactivateRouteAndItsChildren(me[Pn],ee);Ht&&Ht.outlet&&(Ht.outlet.deactivate(),Ht.children.onOutletDeactivated(),Ht.attachRef=null,Ht.resolver=null,Ht.route=null)}activateChildRoutes(gt,rt,Ht){const ee=Ks(rt);gt.children.forEach(me=>{this.activateRoutes(me,ee[me.value.outlet],Ht),this.forwardEvent(new Gc(me.value.snapshot))}),gt.children.length&&this.forwardEvent(new Ud(gt.value.snapshot))}activateRoutes(gt,rt,Ht){const ee=gt.value,me=rt?rt.value:null;if(Wl(ee),ee===me)if(ee.component){const Pn=Ht.getOrCreateContext(ee.outlet);this.activateChildRoutes(gt,rt,Pn.children)}else this.activateChildRoutes(gt,rt,Ht);else if(ee.component){const Pn=Ht.getOrCreateContext(ee.outlet);if(this.routeReuseStrategy.shouldAttach(ee.snapshot)){const yn=this.routeReuseStrategy.retrieve(ee.snapshot);this.routeReuseStrategy.store(ee.snapshot,null),Pn.children.onOutletReAttached(yn.contexts),Pn.attachRef=yn.componentRef,Pn.route=yn.route.value,Pn.outlet&&Pn.outlet.attach(yn.componentRef,yn.route.value),Wl(yn.route.value),this.activateChildRoutes(gt,null,Pn.children)}else{const yn=Nr(ee.snapshot),qe=yn?.get(u._Vd)??null;Pn.attachRef=null,Pn.route=ee,Pn.resolver=qe,Pn.injector=yn,Pn.outlet&&Pn.outlet.activateWith(ee,Pn.injector),this.activateChildRoutes(gt,null,Pn.children)}}else this.activateChildRoutes(gt,null,Ht)}}class Lc{constructor(gt){this.path=gt,this.route=this.path[this.path.length-1]}}class ul{constructor(gt,rt){this.component=gt,this.route=rt}}function Cc(ft,gt,rt){const Ht=ft._root;return Gi(Ht,gt?gt._root:null,rt,[Ht.value])}function _s(ft,gt){const rt=Symbol(),Ht=gt.get(ft,rt);return Ht===rt?"function"!=typeof ft||(0,u.Z0I)(ft)?gt.get(ft):ft:Ht}function Gi(ft,gt,rt,Ht,ee={canDeactivateChecks:[],canActivateChecks:[]}){const me=Ks(gt);return ft.children.forEach(Pn=>{(function da(ft,gt,rt,Ht,ee={canDeactivateChecks:[],canActivateChecks:[]}){const me=ft.value,Pn=gt?gt.value:null,yn=rt?rt.getContext(ft.value.outlet):null;if(Pn&&me.routeConfig===Pn.routeConfig){const qe=function or(ft,gt,rt){if("function"==typeof rt)return rt(ft,gt);switch(rt){case"pathParamsChange":return!Je(ft.url,gt.url);case"pathParamsOrQueryParamsChange":return!Je(ft.url,gt.url)||!un(ft.queryParams,gt.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ca(ft,gt)||!un(ft.queryParams,gt.queryParams);default:return!Ca(ft,gt)}}(Pn,me,me.routeConfig.runGuardsAndResolvers);qe?ee.canActivateChecks.push(new Lc(Ht)):(me.data=Pn.data,me._resolvedData=Pn._resolvedData),Gi(ft,gt,me.component?yn?yn.children:null:rt,Ht,ee),qe&&yn&&yn.outlet&&yn.outlet.isActivated&&ee.canDeactivateChecks.push(new ul(yn.outlet.component,Pn))}else Pn&&Kr(gt,yn,ee),ee.canActivateChecks.push(new Lc(Ht)),Gi(ft,null,me.component?yn?yn.children:null:rt,Ht,ee)})(Pn,me[Pn.value.outlet],rt,Ht.concat([Pn.value]),ee),delete me[Pn.value.outlet]}),Qe(me,(Pn,yn)=>Kr(Pn,rt.getContext(yn),ee)),ee}function Kr(ft,gt,rt){const Ht=Ks(ft),ee=ft.value;Qe(Ht,(me,Pn)=>{Kr(me,ee.component?gt?gt.children.getContext(Pn):null:gt,rt)}),rt.canDeactivateChecks.push(new ul(ee.component&>&>.outlet&>.outlet.isActivated?gt.outlet.component:null,ee))}function Wa(ft){return"function"==typeof ft}function Ec(ft){return ft instanceof t.K||"EmptyError"===ft?.name}const Ir=Symbol("INITIAL_VALUE");function qr(){return(0,ct.w)(ft=>(0,T.aj)(ft.map(gt=>gt.pipe((0,bt.q)(1),(0,Dt.O)(Ir)))).pipe((0,st.U)(gt=>{for(const rt of gt)if(!0!==rt){if(rt===Ir)return Ir;if(!1===rt||rt instanceof bo)return rt}return!0}),(0,wt.h)(gt=>gt!==Ir),(0,bt.q)(1)))}function Nc(ft){return(0,P.z)((0,At.b)(gt=>{if(To(gt))throw uu(0,gt)}),(0,st.U)(gt=>!0===gt))}const tp={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Pl(ft,gt,rt,Ht,ee){const me=yc(ft,gt,rt);return me.matched?function dl(ft,gt,rt,Ht){const ee=gt.canMatch;if(!ee||0===ee.length)return(0,x.of)(!0);const me=ee.map(Pn=>{const yn=_s(Pn,ft);return te(function Qo(ft){return ft&&Wa(ft.canMatch)}(yn)?yn.canMatch(gt,rt):ft.runInContext(()=>yn(gt,rt)))});return(0,x.of)(me).pipe(qr(),Nc())}(Ht=Qn(gt,Ht),gt,rt).pipe((0,st.U)(Pn=>!0===Pn?me:{...tp})):(0,x.of)(me)}function yc(ft,gt,rt){if(""===gt.path)return"full"===gt.pathMatch&&(ft.hasChildren()||rt.length>0)?{...tp}:{matched:!0,consumedSegments:[],remainingSegments:rt,parameters:{},positionalParamSegments:{}};const ee=(gt.matcher||vn)(rt,ft,gt);if(!ee)return{...tp};const me={};Qe(ee.posParams,(yn,qe)=>{me[qe]=yn.path});const Pn=ee.consumed.length>0?{...me,...ee.consumed[ee.consumed.length-1].parameters}:me;return{matched:!0,consumedSegments:ee.consumed,remainingSegments:rt.slice(ee.consumed.length),parameters:Pn,positionalParamSegments:ee.posParams??{}}}function Bi(ft,gt,rt,Ht,ee="corrected"){if(rt.length>0&&function Kl(ft,gt,rt){return rt.some(Ht=>pl(ft,gt,Ht)&&Ba(Ht)!==Me)}(ft,rt,Ht)){const Pn=new hi(gt,function pu(ft,gt,rt,Ht){const ee={};ee[Me]=Ht,Ht._sourceSegment=ft,Ht._segmentIndexShift=gt.length;for(const me of rt)if(""===me.path&&Ba(me)!==Me){const Pn=new hi([],{});Pn._sourceSegment=ft,Pn._segmentIndexShift=gt.length,ee[Ba(me)]=Pn}return ee}(ft,gt,Ht,new hi(rt,ft.children)));return Pn._sourceSegment=ft,Pn._segmentIndexShift=gt.length,{segmentGroup:Pn,slicedSegments:[]}}if(0===rt.length&&function wa(ft,gt,rt){return rt.some(Ht=>pl(ft,gt,Ht))}(ft,rt,Ht)){const Pn=new hi(ft.segments,function ut(ft,gt,rt,Ht,ee,me){const Pn={};for(const yn of Ht)if(pl(ft,rt,yn)&&!ee[Ba(yn)]){const qe=new hi([],{});qe._sourceSegment=ft,qe._segmentIndexShift="legacy"===me?ft.segments.length:gt.length,Pn[Ba(yn)]=qe}return{...ee,...Pn}}(ft,gt,rt,Ht,ft.children,ee));return Pn._sourceSegment=ft,Pn._segmentIndexShift=gt.length,{segmentGroup:Pn,slicedSegments:rt}}const me=new hi(ft.segments,ft.children);return me._sourceSegment=ft,me._segmentIndexShift=gt.length,{segmentGroup:me,slicedSegments:rt}}function pl(ft,gt,rt){return(!(ft.hasChildren()||gt.length>0)||"full"!==rt.pathMatch)&&""===rt.path}function Ga(ft,gt,rt,Ht){return!!(Ba(ft)===Ht||Ht!==Me&&pl(gt,rt,ft))&&("**"===ft.path||yc(gt,ft,rt).matched)}function Rr(ft,gt,rt){return 0===gt.length&&!ft.children[rt]}const gs=!1;class Pa{constructor(gt){this.segmentGroup=gt||null}}class Si{constructor(gt){this.urlTree=gt}}function nd(ft){return(0,O._)(new Pa(ft))}function vo(ft){return(0,O._)(new Si(ft))}class Zi{constructor(gt,rt,Ht,ee,me){this.injector=gt,this.configLoader=rt,this.urlSerializer=Ht,this.urlTree=ee,this.config=me,this.allowRedirects=!0}apply(){const gt=Bi(this.urlTree.root,[],[],this.config).segmentGroup,rt=new hi(gt.segments,gt.children);return this.expandSegmentGroup(this.injector,this.config,rt,Me).pipe((0,st.U)(me=>this.createUrlTree(bi(me),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,xt.K)(me=>{if(me instanceof Si)return this.allowRedirects=!1,this.match(me.urlTree);throw me instanceof Pa?this.noMatchError(me):me}))}match(gt){return this.expandSegmentGroup(this.injector,this.config,gt.root,Me).pipe((0,st.U)(ee=>this.createUrlTree(bi(ee),gt.queryParams,gt.fragment))).pipe((0,xt.K)(ee=>{throw ee instanceof Pa?this.noMatchError(ee):ee}))}noMatchError(gt){return new u.vHH(4002,gs)}createUrlTree(gt,rt,Ht){const ee=ai(gt);return new bo(ee,rt,Ht)}expandSegmentGroup(gt,rt,Ht,ee){return 0===Ht.segments.length&&Ht.hasChildren()?this.expandChildren(gt,rt,Ht).pipe((0,st.U)(me=>new hi([],me))):this.expandSegment(gt,Ht,rt,Ht.segments,ee,!0)}expandChildren(gt,rt,Ht){const ee=[];for(const me of Object.keys(Ht.children))"primary"===me?ee.unshift(me):ee.push(me);return(0,p.D)(ee).pipe((0,yt.b)(me=>{const Pn=Ht.children[me],yn=io(rt,me);return this.expandSegmentGroup(gt,yn,Pn,me).pipe((0,st.U)(qe=>({segment:qe,outlet:me})))}),Ot((me,Pn)=>(me[Pn.outlet]=Pn.segment,me),{}),Gt())}expandSegment(gt,rt,Ht,ee,me,Pn){return(0,p.D)(Ht).pipe((0,yt.b)(yn=>this.expandSegmentAgainstRoute(gt,rt,Ht,yn,ee,me,Pn).pipe((0,xt.K)(Ue=>{if(Ue instanceof Pa)return(0,x.of)(null);throw Ue}))),(0,Jt.P)(yn=>!!yn),(0,xt.K)((yn,qe)=>{if(Ec(yn))return Rr(rt,ee,me)?(0,x.of)(new hi([],{})):nd(rt);throw yn}))}expandSegmentAgainstRoute(gt,rt,Ht,ee,me,Pn,yn){return Ga(ee,rt,me,Pn)?void 0===ee.redirectTo?this.matchSegmentAgainstRoute(gt,rt,ee,me,Pn):yn&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(gt,rt,Ht,ee,me,Pn):nd(rt):nd(rt)}expandSegmentAgainstRouteUsingRedirect(gt,rt,Ht,ee,me,Pn){return"**"===ee.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(gt,Ht,ee,Pn):this.expandRegularSegmentAgainstRouteUsingRedirect(gt,rt,Ht,ee,me,Pn)}expandWildCardWithParamsAgainstRouteUsingRedirect(gt,rt,Ht,ee){const me=this.applyRedirectCommands([],Ht.redirectTo,{});return Ht.redirectTo.startsWith("/")?vo(me):this.lineralizeSegments(Ht,me).pipe((0,qt.zg)(Pn=>{const yn=new hi(Pn,{});return this.expandSegment(gt,yn,rt,Pn,ee,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(gt,rt,Ht,ee,me,Pn){const{matched:yn,consumedSegments:qe,remainingSegments:Ue,positionalParamSegments:li}=yc(rt,ee,me);if(!yn)return nd(rt);const Ao=this.applyRedirectCommands(qe,ee.redirectTo,li);return ee.redirectTo.startsWith("/")?vo(Ao):this.lineralizeSegments(ee,Ao).pipe((0,qt.zg)(Co=>this.expandSegment(gt,rt,Ht,Co.concat(Ue),Pn,!1)))}matchSegmentAgainstRoute(gt,rt,Ht,ee,me){return"**"===Ht.path?(gt=Qn(Ht,gt),Ht.loadChildren?(Ht._loadedRoutes?(0,x.of)({routes:Ht._loadedRoutes,injector:Ht._loadedInjector}):this.configLoader.loadChildren(gt,Ht)).pipe((0,st.U)(yn=>(Ht._loadedRoutes=yn.routes,Ht._loadedInjector=yn.injector,new hi(ee,{})))):(0,x.of)(new hi(ee,{}))):Pl(rt,Ht,ee,gt).pipe((0,ct.w)(({matched:Pn,consumedSegments:yn,remainingSegments:qe})=>Pn?this.getChildConfig(gt=Ht._injector??gt,Ht,ee).pipe((0,qt.zg)(li=>{const Ao=li.injector??gt,Co=li.routes,{segmentGroup:fo,slicedSegments:Pu}=Bi(rt,yn,qe,Co),tl=new hi(fo.segments,fo.children);if(0===Pu.length&&tl.hasChildren())return this.expandChildren(Ao,Co,tl).pipe((0,st.U)(t1=>new hi(yn,t1)));if(0===Co.length&&0===Pu.length)return(0,x.of)(new hi(yn,{}));const hl=Ba(Ht)===me;return this.expandSegment(Ao,tl,Co,Pu,hl?Me:me,!0).pipe((0,st.U)(Is=>new hi(yn.concat(Is.segments),Is.children)))})):nd(rt)))}getChildConfig(gt,rt,Ht){return rt.children?(0,x.of)({routes:rt.children,injector:gt}):rt.loadChildren?void 0!==rt._loadedRoutes?(0,x.of)({routes:rt._loadedRoutes,injector:rt._loadedInjector}):function Fc(ft,gt,rt,Ht){const ee=gt.canLoad;if(void 0===ee||0===ee.length)return(0,x.of)(!0);const me=ee.map(Pn=>{const yn=_s(Pn,ft);return te(function $t(ft){return ft&&Wa(ft.canLoad)}(yn)?yn.canLoad(gt,rt):ft.runInContext(()=>yn(gt,rt)))});return(0,x.of)(me).pipe(qr(),Nc())}(gt,rt,Ht).pipe((0,qt.zg)(ee=>ee?this.configLoader.loadChildren(gt,rt).pipe((0,At.b)(me=>{rt._loadedRoutes=me.routes,rt._loadedInjector=me.injector})):function pi(ft){return(0,O._)(Ts(gs,3))}())):(0,x.of)({routes:[],injector:gt})}lineralizeSegments(gt,rt){let Ht=[],ee=rt.root;for(;;){if(Ht=Ht.concat(ee.segments),0===ee.numberOfChildren)return(0,x.of)(Ht);if(ee.numberOfChildren>1||!ee.children[Me])return(0,O._)(new u.vHH(4e3,gs));ee=ee.children[Me]}}applyRedirectCommands(gt,rt,Ht){return this.applyRedirectCreateUrlTree(rt,this.urlSerializer.parse(rt),gt,Ht)}applyRedirectCreateUrlTree(gt,rt,Ht,ee){const me=this.createSegmentGroup(gt,rt.root,Ht,ee);return new bo(me,this.createQueryParams(rt.queryParams,this.urlTree.queryParams),rt.fragment)}createQueryParams(gt,rt){const Ht={};return Qe(gt,(ee,me)=>{if("string"==typeof ee&&ee.startsWith(":")){const yn=ee.substring(1);Ht[me]=rt[yn]}else Ht[me]=ee}),Ht}createSegmentGroup(gt,rt,Ht,ee){const me=this.createSegments(gt,rt.segments,Ht,ee);let Pn={};return Qe(rt.children,(yn,qe)=>{Pn[qe]=this.createSegmentGroup(gt,yn,Ht,ee)}),new hi(me,Pn)}createSegments(gt,rt,Ht,ee){return rt.map(me=>me.path.startsWith(":")?this.findPosParam(gt,me,ee):this.findOrReturn(me,Ht))}findPosParam(gt,rt,Ht){const ee=Ht[rt.path.substring(1)];if(!ee)throw new u.vHH(4001,gs);return ee}findOrReturn(gt,rt){let Ht=0;for(const ee of rt){if(ee.path===gt.path)return rt.splice(Ht),ee;Ht++}return gt}}class Xa{}class ml{constructor(gt,rt,Ht,ee,me,Pn,yn,qe){this.injector=gt,this.rootComponentType=rt,this.config=Ht,this.urlTree=ee,this.url=me,this.paramsInheritanceStrategy=Pn,this.relativeLinkResolution=yn,this.urlSerializer=qe}recognize(){const gt=Bi(this.urlTree.root,[],[],this.config.filter(rt=>void 0===rt.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,gt,Me).pipe((0,st.U)(rt=>{if(null===rt)return null;const Ht=new Wc([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Me,this.rootComponentType,null,this.urlTree.root,-1,{}),ee=new xc(Ht,rt),me=new Xs(this.url,ee);return this.inheritParamsAndData(me._root),me}))}inheritParamsAndData(gt){const rt=gt.value,Ht=Zl(rt,this.paramsInheritanceStrategy);rt.params=Object.freeze(Ht.params),rt.data=Object.freeze(Ht.data),gt.children.forEach(ee=>this.inheritParamsAndData(ee))}processSegmentGroup(gt,rt,Ht,ee){return 0===Ht.segments.length&&Ht.hasChildren()?this.processChildren(gt,rt,Ht):this.processSegment(gt,rt,Ht,Ht.segments,ee)}processChildren(gt,rt,Ht){return(0,p.D)(Object.keys(Ht.children)).pipe((0,yt.b)(ee=>{const me=Ht.children[ee],Pn=io(rt,ee);return this.processSegmentGroup(gt,Pn,me,ee)}),Ot((ee,me)=>ee&&me?(ee.push(...me),ee):null),(0,Te.o)(ee=>null!==ee),(0,Fe.d)(null),Gt(),(0,st.U)(ee=>{if(null===ee)return null;const me=wu(ee);return function Uu(ft){ft.sort((gt,rt)=>gt.value.outlet===Me?-1:rt.value.outlet===Me?1:gt.value.outlet.localeCompare(rt.value.outlet))}(me),me}))}processSegment(gt,rt,Ht,ee,me){return(0,p.D)(rt).pipe((0,yt.b)(Pn=>this.processSegmentAgainstRoute(Pn._injector??gt,Pn,Ht,ee,me)),(0,Jt.P)(Pn=>!!Pn),(0,xt.K)(Pn=>{if(Ec(Pn))return Rr(Ht,ee,me)?(0,x.of)([]):(0,x.of)(null);throw Pn}))}processSegmentAgainstRoute(gt,rt,Ht,ee,me){if(rt.redirectTo||!Ga(rt,Ht,ee,me))return(0,x.of)(null);let Pn;if("**"===rt.path){const yn=ee.length>0?_i(ee).parameters:{},qe=Pt(Ht)+ee.length,Ue=new Wc(ee,yn,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Yt(rt),Ba(rt),rt.component??rt._loadedComponent??null,rt,id(Ht),qe,Ve(rt),qe);Pn=(0,x.of)({snapshot:Ue,consumedSegments:[],remainingSegments:[]})}else Pn=Pl(Ht,rt,ee,gt).pipe((0,st.U)(({matched:yn,consumedSegments:qe,remainingSegments:Ue,parameters:li})=>{if(!yn)return null;const Ao=Pt(Ht)+qe.length;return{snapshot:new Wc(qe,li,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Yt(rt),Ba(rt),rt.component??rt._loadedComponent??null,rt,id(Ht),Ao,Ve(rt),Ao),consumedSegments:qe,remainingSegments:Ue}}));return Pn.pipe((0,ct.w)(yn=>{if(null===yn)return(0,x.of)(null);const{snapshot:qe,consumedSegments:Ue,remainingSegments:li}=yn;gt=rt._injector??gt;const Ao=rt._loadedInjector??gt,Co=function tr(ft){return ft.children?ft.children:ft.loadChildren?ft._loadedRoutes:[]}(rt),{segmentGroup:fo,slicedSegments:Pu}=Bi(Ht,Ue,li,Co.filter(hl=>void 0===hl.redirectTo),this.relativeLinkResolution);if(0===Pu.length&&fo.hasChildren())return this.processChildren(Ao,Co,fo).pipe((0,st.U)(hl=>null===hl?null:[new xc(qe,hl)]));if(0===Co.length&&0===Pu.length)return(0,x.of)([new xc(qe,[])]);const tl=Ba(rt)===me;return this.processSegment(Ao,Co,fo,Pu,tl?Me:me).pipe((0,st.U)(hl=>null===hl?null:[new xc(qe,hl)]))}))}}function ec(ft){const gt=ft.value.routeConfig;return gt&&""===gt.path&&void 0===gt.redirectTo}function wu(ft){const gt=[],rt=new Set;for(const Ht of ft){if(!ec(Ht)){gt.push(Ht);continue}const ee=gt.find(me=>Ht.value.routeConfig===me.value.routeConfig);void 0!==ee?(ee.children.push(...Ht.children),rt.add(ee)):gt.push(Ht)}for(const Ht of rt){const ee=wu(Ht.children);gt.push(new xc(Ht.value,ee))}return gt.filter(Ht=>!rt.has(Ht))}function id(ft){let gt=ft;for(;gt._sourceSegment;)gt=gt._sourceSegment;return gt}function Pt(ft){let gt=ft,rt=gt._segmentIndexShift??0;for(;gt._sourceSegment;)gt=gt._sourceSegment,rt+=gt._segmentIndexShift??0;return rt-1}function Yt(ft){return ft.data||{}}function Ve(ft){return ft.resolve||{}}function Xn(ft){return"string"==typeof ft.title||null===ft.title}function ei(ft){return(0,ct.w)(gt=>{const rt=ft(gt);return rt?(0,p.D)(rt).pipe((0,st.U)(()=>gt)):(0,x.of)(gt)})}let Ai=(()=>{class ft{buildTitle(rt){let Ht,ee=rt.root;for(;void 0!==ee;)Ht=this.getResolvedTitleForRoute(ee)??Ht,ee=ee.children.find(me=>me.outlet===Me);return Ht}getResolvedTitleForRoute(rt){return rt.data[en]}}return ft.\u0275fac=function(rt){return new(rt||ft)},ft.\u0275prov=u.Yz7({token:ft,factory:function(){return(0,u.f3M)(wi)},providedIn:"root"}),ft})(),wi=(()=>{class ft extends Ai{constructor(rt){super(),this.title=rt}updateTitle(rt){const Ht=this.buildTitle(rt);void 0!==Ht&&this.title.setTitle(Ht)}}return ft.\u0275fac=function(rt){return new(rt||ft)(u.LFG(oe.Dx))},ft.\u0275prov=u.Yz7({token:ft,factory:ft.\u0275fac,providedIn:"root"}),ft})();class xi{}class pa extends class Yi{shouldDetach(gt){return!1}store(gt,rt){}shouldAttach(gt){return!1}retrieve(gt){return null}shouldReuseRoute(gt,rt){return gt.routeConfig===rt.routeConfig}}{}const xa=new u.OlP("",{providedIn:"root",factory:()=>({})}),vs=new u.OlP("ROUTES");let Ms=(()=>{class ft{constructor(rt,Ht){this.injector=rt,this.compiler=Ht,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(rt){if(this.componentLoaders.get(rt))return this.componentLoaders.get(rt);if(rt._loadedComponent)return(0,x.of)(rt._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(rt);const Ht=te(rt.loadComponent()).pipe((0,At.b)(me=>{this.onLoadEndListener&&this.onLoadEndListener(rt),rt._loadedComponent=me}),(0,jt.x)(()=>{this.componentLoaders.delete(rt)})),ee=new V.c(Ht,()=>new W.xQ).pipe((0,re.x)());return this.componentLoaders.set(rt,ee),ee}loadChildren(rt,Ht){if(this.childrenLoaders.get(Ht))return this.childrenLoaders.get(Ht);if(Ht._loadedRoutes)return(0,x.of)({routes:Ht._loadedRoutes,injector:Ht._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(Ht);const me=this.loadModuleFactoryOrRoutes(Ht.loadChildren).pipe((0,st.U)(yn=>{this.onLoadEndListener&&this.onLoadEndListener(Ht);let qe,Ue,li=!1;Array.isArray(yn)?Ue=yn:(qe=yn.create(rt).injector,Ue=ii(qe.get(vs,[],u.XFs.Self|u.XFs.Optional)));return{routes:Ue.map(Ns),injector:qe}}),(0,jt.x)(()=>{this.childrenLoaders.delete(Ht)})),Pn=new V.c(me,()=>new W.xQ).pipe((0,re.x)());return this.childrenLoaders.set(Ht,Pn),Pn}loadModuleFactoryOrRoutes(rt){return te(rt()).pipe((0,qt.zg)(Ht=>Ht instanceof u.YKP||Array.isArray(Ht)?(0,x.of)(Ht):(0,p.D)(this.compiler.compileModuleAsync(Ht))))}}return ft.\u0275fac=function(rt){return new(rt||ft)(u.LFG(u.zs3),u.LFG(u.Sil))},ft.\u0275prov=u.Yz7({token:ft,factory:ft.\u0275fac,providedIn:"root"}),ft})();class ts{}class Jr{shouldProcessUrl(gt){return!0}extract(gt){return gt}merge(gt,rt){return gt}}function wr(ft){throw ft}function Vs(ft,gt,rt){return gt.parse("/")}const Zs={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},$d={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function sa(){const ft=(0,u.f3M)(Ye),gt=(0,u.f3M)(dc),rt=(0,u.f3M)(tt.Ye),Ht=(0,u.f3M)(u.zs3),ee=(0,u.f3M)(u.Sil),me=(0,u.f3M)(vs,{optional:!0})??[],Pn=(0,u.f3M)(xa,{optional:!0})??{},yn=(0,u.f3M)(wi),qe=(0,u.f3M)(Ai,{optional:!0}),Ue=(0,u.f3M)(ts,{optional:!0}),li=(0,u.f3M)(xi,{optional:!0}),Ao=new hr(null,ft,gt,rt,Ht,ee,ii(me));return Ue&&(Ao.urlHandlingStrategy=Ue),li&&(Ao.routeReuseStrategy=li),Ao.titleStrategy=qe??yn,function mr(ft,gt){ft.errorHandler&&(gt.errorHandler=ft.errorHandler),ft.malformedUriErrorHandler&&(gt.malformedUriErrorHandler=ft.malformedUriErrorHandler),ft.onSameUrlNavigation&&(gt.onSameUrlNavigation=ft.onSameUrlNavigation),ft.paramsInheritanceStrategy&&(gt.paramsInheritanceStrategy=ft.paramsInheritanceStrategy),ft.relativeLinkResolution&&(gt.relativeLinkResolution=ft.relativeLinkResolution),ft.urlUpdateStrategy&&(gt.urlUpdateStrategy=ft.urlUpdateStrategy),ft.canceledNavigationResolution&&(gt.canceledNavigationResolution=ft.canceledNavigationResolution)}(Pn,Ao),Ao}let hr=(()=>{class ft{constructor(rt,Ht,ee,me,Pn,yn,qe){this.rootComponentType=rt,this.urlSerializer=Ht,this.rootContexts=ee,this.location=me,this.config=qe,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new W.xQ,this.errorHandler=wr,this.malformedUriErrorHandler=Vs,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,x.of)(void 0),this.urlHandlingStrategy=new Jr,this.routeReuseStrategy=new pa,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=Pn.get(Ms),this.configLoader.onLoadEndListener=Co=>this.triggerEvent(new Qd(Co)),this.configLoader.onLoadStartListener=Co=>this.triggerEvent(new Hs(Co)),this.ngModule=Pn.get(u.h0i),this.console=Pn.get(u.c2e);const Ao=Pn.get(u.R0b);this.isNgZoneEnabled=Ao instanceof u.R0b&&u.R0b.isInAngularZone(),this.resetConfig(qe),this.currentUrlTree=function K(){return new bo(new hi([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=td(this.currentUrlTree,this.rootComponentType),this.transitions=new v.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(rt){const Ht=this.events;return rt.pipe((0,wt.h)(ee=>0!==ee.id),(0,st.U)(ee=>({...ee,extractedUrl:this.urlHandlingStrategy.extract(ee.rawUrl)})),(0,ct.w)(ee=>{let me=!1,Pn=!1;return(0,x.of)(ee).pipe((0,At.b)(yn=>{this.currentNavigation={id:yn.id,initialUrl:yn.rawUrl,extractedUrl:yn.extractedUrl,trigger:yn.source,extras:yn.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,ct.w)(yn=>{const qe=this.browserUrlTree.toString(),Ue=!this.navigated||yn.extractedUrl.toString()!==qe||qe!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||Ue)&&this.urlHandlingStrategy.shouldProcessUrl(yn.rawUrl))return kl(yn.source)&&(this.browserUrlTree=yn.extractedUrl),(0,x.of)(yn).pipe((0,ct.w)(Ao=>{const Co=this.transitions.getValue();return Ht.next(new Tr(Ao.id,this.serializeUrl(Ao.extractedUrl),Ao.source,Ao.restoredState)),Co!==this.transitions.getValue()?N.E:Promise.resolve(Ao)}),function No(ft,gt,rt,Ht){return(0,ct.w)(ee=>function Oi(ft,gt,rt,Ht,ee){return new Zi(ft,gt,rt,Ht,ee).apply()}(ft,gt,rt,ee.extractedUrl,Ht).pipe((0,st.U)(me=>({...ee,urlAfterRedirects:me}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,At.b)(Ao=>{this.currentNavigation={...this.currentNavigation,finalUrl:Ao.urlAfterRedirects},ee.urlAfterRedirects=Ao.urlAfterRedirects}),function Ln(ft,gt,rt,Ht,ee,me){return(0,qt.zg)(Pn=>function na(ft,gt,rt,Ht,ee,me,Pn="emptyOnly",yn="legacy"){return new ml(ft,gt,rt,Ht,ee,Pn,yn,me).recognize().pipe((0,ct.w)(qe=>null===qe?function fr(ft){return new L.y(gt=>gt.error(ft))}(new Xa):(0,x.of)(qe)))}(ft,gt,rt,Pn.urlAfterRedirects,Ht.serialize(Pn.urlAfterRedirects),Ht,ee,me).pipe((0,st.U)(yn=>({...Pn,targetSnapshot:yn}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,At.b)(Ao=>{if(ee.targetSnapshot=Ao.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!Ao.extras.skipLocationChange){const fo=this.urlHandlingStrategy.merge(Ao.urlAfterRedirects,Ao.rawUrl);this.setBrowserUrl(fo,Ao)}this.browserUrlTree=Ao.urlAfterRedirects}const Co=new js(Ao.id,this.serializeUrl(Ao.extractedUrl),this.serializeUrl(Ao.urlAfterRedirects),Ao.targetSnapshot);Ht.next(Co)}));if(Ue&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:Co,extractedUrl:fo,source:Pu,restoredState:tl,extras:hl}=yn,dm=new Tr(Co,this.serializeUrl(fo),Pu,tl);Ht.next(dm);const Is=td(fo,this.rootComponentType).snapshot;return ee={...yn,targetSnapshot:Is,urlAfterRedirects:fo,extras:{...hl,skipLocationChange:!1,replaceUrl:!1}},(0,x.of)(ee)}return this.rawUrlTree=yn.rawUrl,yn.resolve(null),N.E}),(0,At.b)(yn=>{const qe=new Ls(yn.id,this.serializeUrl(yn.extractedUrl),this.serializeUrl(yn.urlAfterRedirects),yn.targetSnapshot);this.triggerEvent(qe)}),(0,st.U)(yn=>ee={...yn,guards:Cc(yn.targetSnapshot,yn.currentSnapshot,this.rootContexts)}),function Au(ft,gt){return(0,qt.zg)(rt=>{const{targetSnapshot:Ht,currentSnapshot:ee,guards:{canActivateChecks:me,canDeactivateChecks:Pn}}=rt;return 0===Pn.length&&0===me.length?(0,x.of)({...rt,guardsResult:!0}):function Ja(ft,gt,rt,Ht){return(0,p.D)(ft).pipe((0,qt.zg)(ee=>function du(ft,gt,rt,Ht,ee){const me=gt&>.routeConfig?gt.routeConfig.canDeactivate:null;if(!me||0===me.length)return(0,x.of)(!0);const Pn=me.map(yn=>{const qe=Nr(gt)??ee,Ue=_s(yn,qe);return te(function Mi(ft){return ft&&Wa(ft.canDeactivate)}(Ue)?Ue.canDeactivate(ft,gt,rt,Ht):qe.runInContext(()=>Ue(ft,gt,rt,Ht))).pipe((0,Jt.P)())});return(0,x.of)(Pn).pipe(qr())}(ee.component,ee.route,rt,gt,Ht)),(0,Jt.P)(ee=>!0!==ee,!0))}(Pn,Ht,ee,ft).pipe((0,qt.zg)(yn=>yn&&function ae(ft){return"boolean"==typeof ft}(yn)?function Kc(ft,gt,rt,Ht){return(0,p.D)(gt).pipe((0,yt.b)(ee=>(0,U.z)(function Md(ft,gt){return null!==ft&>&>(new Fr(ft)),(0,x.of)(!0)}(ee.route.parent,Ht),function v1(ft,gt){return null!==ft&>&>(new jd(ft)),(0,x.of)(!0)}(ee.route,Ht),function Wd(ft,gt,rt){const Ht=gt[gt.length-1],me=gt.slice(0,gt.length-1).reverse().map(Pn=>function wd(ft){const gt=ft.routeConfig?ft.routeConfig.canActivateChild:null;return gt&&0!==gt.length?{node:ft,guards:gt}:null}(Pn)).filter(Pn=>null!==Pn).map(Pn=>(0,w.P)(()=>{const yn=Pn.guards.map(qe=>{const Ue=Nr(Pn.node)??rt,li=_s(qe,Ue);return te(function et(ft){return ft&&Wa(ft.canActivateChild)}(li)?li.canActivateChild(Ht,ft):Ue.runInContext(()=>li(Ht,ft))).pipe((0,Jt.P)())});return(0,x.of)(yn).pipe(qr())}));return(0,x.of)(me).pipe(qr())}(ft,ee.path,rt),function x1(ft,gt,rt){const Ht=gt.routeConfig?gt.routeConfig.canActivate:null;if(!Ht||0===Ht.length)return(0,x.of)(!0);const ee=Ht.map(me=>(0,w.P)(()=>{const Pn=Nr(gt)??rt,yn=_s(me,Pn);return te(function Ft(ft){return ft&&Wa(ft.canActivate)}(yn)?yn.canActivate(gt,ft):Pn.runInContext(()=>yn(gt,ft))).pipe((0,Jt.P)())}));return(0,x.of)(ee).pipe(qr())}(ft,ee.route,rt))),(0,Jt.P)(ee=>!0!==ee,!0))}(Ht,me,ft,gt):(0,x.of)(yn)),(0,st.U)(yn=>({...rt,guardsResult:yn})))})}(this.ngModule.injector,yn=>this.triggerEvent(yn)),(0,At.b)(yn=>{if(ee.guardsResult=yn.guardsResult,To(yn.guardsResult))throw uu(0,yn.guardsResult);const qe=new Ws(yn.id,this.serializeUrl(yn.extractedUrl),this.serializeUrl(yn.urlAfterRedirects),yn.targetSnapshot,!!yn.guardsResult);this.triggerEvent(qe)}),(0,wt.h)(yn=>!!yn.guardsResult||(this.restoreHistory(yn),this.cancelNavigationTransition(yn,"",3),!1)),ei(yn=>{if(yn.guards.canActivateChecks.length)return(0,x.of)(yn).pipe((0,At.b)(qe=>{const Ue=new Oc(qe.id,this.serializeUrl(qe.extractedUrl),this.serializeUrl(qe.urlAfterRedirects),qe.targetSnapshot);this.triggerEvent(Ue)}),(0,ct.w)(qe=>{let Ue=!1;return(0,x.of)(qe).pipe(function kt(ft,gt){return(0,qt.zg)(rt=>{const{targetSnapshot:Ht,guards:{canActivateChecks:ee}}=rt;if(!ee.length)return(0,x.of)(rt);let me=0;return(0,p.D)(ee).pipe((0,yt.b)(Pn=>function ue(ft,gt,rt,Ht){const ee=ft.routeConfig,me=ft._resolve;return void 0!==ee?.title&&!Xn(ee)&&(me[en]=ee.title),function Ce(ft,gt,rt,Ht){const ee=function Ke(ft){return[...Object.keys(ft),...Object.getOwnPropertySymbols(ft)]}(ft);if(0===ee.length)return(0,x.of)({});const me={};return(0,p.D)(ee).pipe((0,qt.zg)(Pn=>function bn(ft,gt,rt,Ht){const ee=Nr(gt)??Ht,me=_s(ft,ee);return te(me.resolve?me.resolve(gt,rt):ee.runInContext(()=>me(gt,rt)))}(ft[Pn],gt,rt,Ht).pipe((0,Jt.P)(),(0,At.b)(yn=>{me[Pn]=yn}))),Vt(1),(0,ne.h)(me),(0,xt.K)(Pn=>Ec(Pn)?N.E:(0,O._)(Pn)))}(me,ft,gt,Ht).pipe((0,st.U)(Pn=>(ft._resolvedData=Pn,ft.data=Zl(ft,rt).resolve,ee&&Xn(ee)&&(ft.data[en]=ee.title),null)))}(Pn.route,Ht,ft,gt)),(0,At.b)(()=>me++),Vt(1),(0,qt.zg)(Pn=>me===ee.length?(0,x.of)(rt):N.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,At.b)({next:()=>Ue=!0,complete:()=>{Ue||(this.restoreHistory(qe),this.cancelNavigationTransition(qe,"",2))}}))}),(0,At.b)(qe=>{const Ue=new ps(qe.id,this.serializeUrl(qe.extractedUrl),this.serializeUrl(qe.urlAfterRedirects),qe.targetSnapshot);this.triggerEvent(Ue)}))}),ei(yn=>{const qe=Ue=>{const li=[];Ue.routeConfig?.loadComponent&&!Ue.routeConfig._loadedComponent&&li.push(this.configLoader.loadComponent(Ue.routeConfig).pipe((0,At.b)(Ao=>{Ue.component=Ao}),(0,st.U)(()=>{})));for(const Ao of Ue.children)li.push(...qe(Ao));return li};return(0,T.aj)(qe(yn.targetSnapshot.root)).pipe((0,Fe.d)(),(0,bt.q)(1))}),ei(()=>this.afterPreactivation()),(0,st.U)(yn=>{const qe=function ir(ft,gt,rt){const Ht=bc(ft,gt._root,rt?rt._root:void 0);return new ll(Ht,gt)}(this.routeReuseStrategy,yn.targetSnapshot,yn.currentRouterState);return ee={...yn,targetRouterState:qe}}),(0,At.b)(yn=>{this.currentUrlTree=yn.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(yn.urlAfterRedirects,yn.rawUrl),this.routerState=yn.targetRouterState,"deferred"===this.urlUpdateStrategy&&(yn.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,yn),this.browserUrlTree=yn.urlAfterRedirects)}),((ft,gt,rt)=>(0,st.U)(Ht=>(new Br(gt,Ht.targetRouterState,Ht.currentRouterState,rt).activate(ft),Ht)))(this.rootContexts,this.routeReuseStrategy,yn=>this.triggerEvent(yn)),(0,At.b)({next(){me=!0},complete(){me=!0}}),(0,jt.x)(()=>{me||Pn||this.cancelNavigationTransition(ee,"",1),this.currentNavigation?.id===ee.id&&(this.currentNavigation=null)}),(0,xt.K)(yn=>{if(Pn=!0,$l(yn)){As(yn)||(this.navigated=!0,this.restoreHistory(ee,!0));const qe=new Sc(ee.id,this.serializeUrl(ee.extractedUrl),yn.message,yn.cancellationCode);if(Ht.next(qe),As(yn)){const Ue=this.urlHandlingStrategy.merge(yn.url,this.rawUrlTree),li={skipLocationChange:ee.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||kl(ee.source)};this.scheduleNavigation(Ue,"imperative",null,li,{resolve:ee.resolve,reject:ee.reject,promise:ee.promise})}else ee.resolve(!1)}else{this.restoreHistory(ee,!0);const qe=new Ml(ee.id,this.serializeUrl(ee.extractedUrl),yn,ee.targetSnapshot??void 0);Ht.next(qe);try{ee.resolve(this.errorHandler(yn))}catch(Ue){ee.reject(Ue)}}return N.E}))}))}resetRootComponentType(rt){this.rootComponentType=rt,this.routerState.root.component=this.rootComponentType}setTransition(rt){this.transitions.next({...this.transitions.value,...rt})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(rt=>{const Ht="popstate"===rt.type?"popstate":"hashchange";"popstate"===Ht&&setTimeout(()=>{const ee={replaceUrl:!0},me=rt.state?.navigationId?rt.state:null;if(me){const yn={...me};delete yn.navigationId,delete yn.\u0275routerPageId,0!==Object.keys(yn).length&&(ee.state=yn)}const Pn=this.parseUrl(rt.url);this.scheduleNavigation(Pn,Ht,me,ee)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(rt){this.events.next(rt)}resetConfig(rt){this.config=rt.map(Ns),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(rt,Ht={}){const{relativeTo:ee,queryParams:me,fragment:Pn,queryParamsHandling:yn,preserveFragment:qe}=Ht,Ue=ee||this.routerState.root,li=qe?this.currentUrlTree.fragment:Pn;let Ao=null;switch(yn){case"merge":Ao={...this.currentUrlTree.queryParams,...me};break;case"preserve":Ao=this.currentUrlTree.queryParams;break;default:Ao=me||null}return null!==Ao&&(Ao=this.removeEmptyProps(Ao)),Rn(Ue,this.currentUrlTree,rt,Ao,li??null)}navigateByUrl(rt,Ht={skipLocationChange:!1}){const ee=To(rt)?rt:this.parseUrl(rt),me=this.urlHandlingStrategy.merge(ee,this.rawUrlTree);return this.scheduleNavigation(me,"imperative",null,Ht)}navigate(rt,Ht={skipLocationChange:!1}){return function ep(ft){for(let gt=0;gt{const me=rt[ee];return null!=me&&(Ht[ee]=me),Ht},{})}processNavigations(){this.navigations.subscribe(rt=>{this.navigated=!0,this.lastSuccessfulId=rt.id,this.currentPageId=rt.targetPageId,this.events.next(new Ar(rt.id,this.serializeUrl(rt.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),rt.resolve(!0)},rt=>{this.console.warn(`Unhandled Navigation Error: ${rt}`)})}scheduleNavigation(rt,Ht,ee,me,Pn){if(this.disposed)return Promise.resolve(!1);let yn,qe,Ue;Pn?(yn=Pn.resolve,qe=Pn.reject,Ue=Pn.promise):Ue=new Promise((Co,fo)=>{yn=Co,qe=fo});const li=++this.navigationId;let Ao;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(ee=this.location.getState()),Ao=ee&&ee.\u0275routerPageId?ee.\u0275routerPageId:me.replaceUrl||me.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):Ao=0,this.setTransition({id:li,targetPageId:Ao,source:Ht,restoredState:ee,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:rt,extras:me,resolve:yn,reject:qe,promise:Ue,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Ue.catch(Co=>Promise.reject(Co))}setBrowserUrl(rt,Ht){const ee=this.urlSerializer.serialize(rt),me={...Ht.extras.state,...this.generateNgRouterState(Ht.id,Ht.targetPageId)};this.location.isCurrentPathEqualTo(ee)||Ht.extras.replaceUrl?this.location.replaceState(ee,"",me):this.location.go(ee,"",me)}restoreHistory(rt,Ht=!1){if("computed"===this.canceledNavigationResolution){const ee=this.currentPageId-rt.targetPageId;"popstate"!==rt.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===ee?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===ee&&(this.resetState(rt),this.browserUrlTree=rt.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(ee)}else"replace"===this.canceledNavigationResolution&&(Ht&&this.resetState(rt),this.resetUrlToCurrentUrlTree())}resetState(rt){this.routerState=rt.currentRouterState,this.currentUrlTree=rt.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,rt.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(rt,Ht,ee){const me=new Sc(rt.id,this.serializeUrl(rt.extractedUrl),Ht,ee);this.triggerEvent(me),rt.resolve(!1)}generateNgRouterState(rt,Ht){return"computed"===this.canceledNavigationResolution?{navigationId:rt,\u0275routerPageId:Ht}:{navigationId:rt}}}return ft.\u0275fac=function(rt){u.$Z()},ft.\u0275prov=u.Yz7({token:ft,factory:function(){return sa()},providedIn:"root"}),ft})();function kl(ft){return"imperative"!==ft}let Mu=(()=>{class ft{constructor(rt,Ht,ee,me,Pn){this.router=rt,this.route=Ht,this.tabIndexAttribute=ee,this.renderer=me,this.el=Pn,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.commands=null,this.onChanges=new W.xQ,this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(rt){this._preserveFragment=(0,u.D6c)(rt)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(rt){this._skipLocationChange=(0,u.D6c)(rt)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(rt){this._replaceUrl=(0,u.D6c)(rt)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(rt){if(null!=this.tabIndexAttribute)return;const Ht=this.renderer,ee=this.el.nativeElement;null!==rt?Ht.setAttribute(ee,"tabindex",rt):Ht.removeAttribute(ee,"tabindex")}ngOnChanges(rt){this.onChanges.next(this)}set routerLink(rt){null!=rt?(this.commands=Array.isArray(rt)?rt:[rt],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 ft.\u0275fac=function(rt){return new(rt||ft)(u.Y36(hr),u.Y36(Es),u.$8M("tabindex"),u.Y36(u.Qsj),u.Y36(u.SBq))},ft.\u0275dir=u.lG2({type:ft,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(rt,Ht){1&rt&&u.NdJ("click",function(){return Ht.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]}),ft})(),_l=(()=>{class ft{constructor(rt,Ht,ee){this.router=rt,this.route=Ht,this.locationStrategy=ee,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.commands=null,this.href=null,this.onChanges=new W.xQ,this.subscription=rt.events.subscribe(me=>{me instanceof Ar&&this.updateTargetUrlAndHref()})}set preserveFragment(rt){this._preserveFragment=(0,u.D6c)(rt)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(rt){this._skipLocationChange=(0,u.D6c)(rt)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(rt){this._replaceUrl=(0,u.D6c)(rt)}get replaceUrl(){return this._replaceUrl}set routerLink(rt){this.commands=null!=rt?Array.isArray(rt)?rt:[rt]:null}ngOnChanges(rt){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(rt,Ht,ee,me,Pn){return!!(0!==rt||Ht||ee||me||Pn||"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 ft.\u0275fac=function(rt){return new(rt||ft)(u.Y36(hr),u.Y36(Es),u.Y36(tt.S$))},ft.\u0275dir=u.lG2({type:ft,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(rt,Ht){1&rt&&u.NdJ("click",function(me){return Ht.onClick(me.button,me.ctrlKey,me.shiftKey,me.altKey,me.metaKey)}),2&rt&&u.uIk("target",Ht.target)("href",Ht.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]}),ft})(),Zd=(()=>{class ft{constructor(rt,Ht,ee,me,Pn,yn){this.router=rt,this.element=Ht,this.renderer=ee,this.cdr=me,this.link=Pn,this.linkWithHref=yn,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new u.vpe,this.routerEventsSubscription=rt.events.subscribe(qe=>{qe instanceof Ar&&this.update()})}ngAfterContentInit(){(0,x.of)(this.links.changes,this.linksWithHrefs.changes,(0,x.of)(null)).pipe((0,Xt.J)()).subscribe(rt=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const rt=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(Ht=>!!Ht).map(Ht=>Ht.onChanges);this.linkInputChangesSubscription=(0,p.D)(rt).pipe((0,Xt.J)()).subscribe(Ht=>{this.isActive!==this.isLinkActive(this.router)(Ht)&&this.update()})}set routerLinkActive(rt){const Ht=Array.isArray(rt)?rt:rt.split(" ");this.classes=Ht.filter(ee=>!!ee)}ngOnChanges(rt){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const rt=this.hasActiveLinks();this.isActive!==rt&&(this.isActive=rt,this.cdr.markForCheck(),this.classes.forEach(Ht=>{rt?this.renderer.addClass(this.element.nativeElement,Ht):this.renderer.removeClass(this.element.nativeElement,Ht)}),rt&&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(rt))})}isLinkActive(rt){const Ht=function Kd(ft){return!!ft.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return ee=>!!ee.urlTree&&rt.isActive(ee.urlTree,Ht)}hasActiveLinks(){const rt=this.isLinkActive(this.router);return this.link&&rt(this.link)||this.linkWithHref&&rt(this.linkWithHref)||this.links.some(rt)||this.linksWithHrefs.some(rt)}}return ft.\u0275fac=function(rt){return new(rt||ft)(u.Y36(hr),u.Y36(u.SBq),u.Y36(u.Qsj),u.Y36(u.sBO),u.Y36(Mu,8),u.Y36(_l,8))},ft.\u0275dir=u.lG2({type:ft,selectors:[["","routerLinkActive",""]],contentQueries:function(rt,Ht,ee){if(1&rt&&(u.Suo(ee,Mu,5),u.Suo(ee,_l,5)),2&rt){let me;u.iGM(me=u.CRH())&&(Ht.links=me),u.iGM(me=u.CRH())&&(Ht.linksWithHrefs=me)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[u.TTD]}),ft})();class Zu{}let Sl=(()=>{class ft{constructor(rt,Ht,ee,me,Pn){this.router=rt,this.injector=ee,this.preloadingStrategy=me,this.loader=Pn}setUpPreloading(){this.subscription=this.router.events.pipe((0,wt.h)(rt=>rt instanceof Ar),(0,yt.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(rt,Ht){const ee=[];for(const me of Ht){me.providers&&!me._injector&&(me._injector=(0,u.MMx)(me.providers,rt,`Route: ${me.path}`));const Pn=me._injector??rt,yn=me._loadedInjector??Pn;me.loadChildren&&!me._loadedRoutes&&void 0===me.canLoad||me.loadComponent&&!me._loadedComponent?ee.push(this.preloadConfig(Pn,me)):(me.children||me._loadedRoutes)&&ee.push(this.processRoutes(yn,me.children??me._loadedRoutes))}return(0,p.D)(ee).pipe((0,Xt.J)())}preloadConfig(rt,Ht){return this.preloadingStrategy.preload(Ht,()=>{let ee;ee=Ht.loadChildren&&void 0===Ht.canLoad?this.loader.loadChildren(rt,Ht):(0,x.of)(null);const me=ee.pipe((0,qt.zg)(Pn=>null===Pn?(0,x.of)(void 0):(Ht._loadedRoutes=Pn.routes,Ht._loadedInjector=Pn.injector,this.processRoutes(Pn.injector??rt,Pn.routes))));if(Ht.loadComponent&&!Ht._loadedComponent){const Pn=this.loader.loadComponent(Ht);return(0,p.D)([me,Pn]).pipe((0,Xt.J)())}return me})}}return ft.\u0275fac=function(rt){return new(rt||ft)(u.LFG(hr),u.LFG(u.Sil),u.LFG(u.lqb),u.LFG(Zu),u.LFG(Ms))},ft.\u0275prov=u.Yz7({token:ft,factory:ft.\u0275fac,providedIn:"root"}),ft})();const Ol=new u.OlP("");let Ll=(()=>{class ft{constructor(rt,Ht,ee={}){this.router=rt,this.viewportScroller=Ht,this.options=ee,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},ee.scrollPositionRestoration=ee.scrollPositionRestoration||"disabled",ee.anchorScrolling=ee.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(rt=>{rt instanceof Tr?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=rt.navigationTrigger,this.restoredId=rt.restoredState?rt.restoredState.navigationId:0):rt instanceof Ar&&(this.lastId=rt.id,this.scheduleScrollEvent(rt,this.router.parseUrl(rt.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(rt=>{rt instanceof lc&&(rt.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(rt.position):rt.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(rt.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(rt,Ht){this.router.triggerEvent(new lc(rt,"popstate"===this.lastSource?this.store[this.restoredId]:null,Ht))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return ft.\u0275fac=function(rt){u.$Z()},ft.\u0275prov=u.Yz7({token:ft,factory:ft.\u0275fac}),ft})();function El(ft,gt){return{\u0275kind:ft,\u0275providers:gt}}function Vr(ft){return[{provide:vs,multi:!0,useValue:ft}]}function Un(){const ft=(0,u.f3M)(u.zs3);return gt=>{const rt=ft.get(u.z2F);if(gt!==rt.components[0])return;const Ht=ft.get(hr),ee=ft.get(an);1===ft.get(yo)&&Ht.initialNavigation(),ft.get(e_,null,u.XFs.Optional)?.setUpPreloading(),ft.get(Ol,null,u.XFs.Optional)?.init(),Ht.resetRootComponentType(rt.componentTypes[0]),ee.closed||(ee.next(),ee.unsubscribe())}}const an=new u.OlP("",{factory:()=>new W.xQ}),yo=new u.OlP("",{providedIn:"root",factory:()=>1});const e_=new u.OlP("");function lm(ft){return El(0,[{provide:e_,useExisting:Sl},{provide:Zu,useExisting:ft}])}const Gr=new u.OlP("ROUTER_FORROOT_GUARD"),y1=[tt.Ye,{provide:Ye,useClass:Ee},{provide:hr,useFactory:sa},dc,{provide:Es,useFactory:function b1(ft){return ft.routerState.root},deps:[hr]},Ms];function T1(){return new u.PXZ("Router",hr)}let n_=(()=>{class ft{constructor(rt){}static forRoot(rt,Ht){return{ngModule:ft,providers:[y1,[],Vr(rt),{provide:Gr,useFactory:Xd,deps:[[hr,new u.FiY,new u.tp0]]},{provide:xa,useValue:Ht||{}},Ht?.useHash?{provide:tt.S$,useClass:tt.Do}:{provide:tt.S$,useClass:tt.b0},{provide:Ol,useFactory:()=>{const ft=(0,u.f3M)(hr),gt=(0,u.f3M)(tt.EM),rt=(0,u.f3M)(xa);return rt.scrollOffset&>.setOffset(rt.scrollOffset),new Ll(ft,gt,rt)}},Ht?.preloadingStrategy?lm(Ht.preloadingStrategy).\u0275providers:[],{provide:u.PXZ,multi:!0,useFactory:T1},Ht?.initialNavigation?Fl(Ht):[],[{provide:mu,useFactory:Un},{provide:u.tb,multi:!0,useExisting:mu}]]}}static forChild(rt){return{ngModule:ft,providers:[Vr(rt)]}}}return ft.\u0275fac=function(rt){return new(rt||ft)(u.LFG(Gr,8))},ft.\u0275mod=u.oAB({type:ft}),ft.\u0275inj=u.cJS({imports:[as]}),ft})();function Xd(ft){return"guarded"}function Fl(ft){return["disabled"===ft.initialNavigation?El(3,[{provide:u.ip1,multi:!0,useFactory:()=>{const gt=(0,u.f3M)(hr);return()=>{gt.setUpLocationChangeListener()}}},{provide:yo,useValue:2}]).\u0275providers:[],"enabledBlocking"===ft.initialNavigation?El(2,[{provide:yo,useValue:0},{provide:u.ip1,multi:!0,deps:[u.zs3],useFactory:gt=>{const rt=gt.get(tt.V_,Promise.resolve());let Ht=!1;return()=>rt.then(()=>new Promise(me=>{const Pn=gt.get(hr),yn=gt.get(an);(function ee(me){gt.get(hr).events.pipe((0,wt.h)(yn=>yn instanceof Ar||yn instanceof Sc||yn instanceof Ml),(0,st.U)(yn=>yn instanceof Ar||yn instanceof Sc&&(0===yn.code||1===yn.code)&&null),(0,wt.h)(yn=>null!==yn),(0,bt.q)(1)).subscribe(()=>{me()})})(()=>{me(!0),Ht=!0}),Pn.afterPreactivation=()=>(me(!0),Ht||yn.closed?(0,x.of)(void 0):yn),Pn.initialNavigation()}))}}]).\u0275providers:[]]}const mu=new u.OlP("")},92216:(X,j,h)=>{"use strict";h.d(j,{BN:()=>cr,by:()=>tr,uH:()=>Ln});var u=h(94650);function p(kt,ue){var Ce=Object.keys(kt);if(Object.getOwnPropertySymbols){var Ke=Object.getOwnPropertySymbols(kt);ue&&(Ke=Ke.filter(function(bn){return Object.getOwnPropertyDescriptor(kt,bn).enumerable})),Ce.push.apply(Ce,Ke)}return Ce}function x(kt){for(var ue=1;uekt.length)&&(ue=kt.length);for(var Ce=0,Ke=new Array(ue);Ce0;)ue+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return ue}function Ae(kt){for(var ue=[],Ce=(kt||[]).length>>>0;Ce--;)ue[Ce]=kt[Ce];return ue}function Ie(kt){return kt.classList?Ae(kt.classList):(kt.getAttribute("class")||"").split(" ").filter(function(ue){return ue})}function Sn(kt){return"".concat(kt).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function Vi(kt){return Object.keys(kt||{}).reduce(function(ue,Ce){return ue+"".concat(Ce,": ").concat(kt[Ce].trim(),";")},"")}function cn(kt){return kt.size!==ge.size||kt.x!==ge.x||kt.y!==ge.y||kt.rotate!==ge.rotate||kt.flipX||kt.flipY}function bi(){var ue=en,Ce=ie.cssPrefix,Ke=ie.replacementClass,bn=':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"!==Ce||Ke!==ue){var Xn=new RegExp("\\.".concat("fa","\\-"),"g"),ei=new RegExp("\\--".concat("fa","\\-"),"g"),Ai=new RegExp("\\.".concat(ue),"g");bn=bn.replace(Xn,".".concat(Ce,"-")).replace(ei,"--".concat(Ce,"-")).replace(Ai,".".concat(Ke))}return bn}var so=!1;function To(){ie.autoAddCss&&!so&&(function Nt(kt){if(kt&&Fe){var ue=Vt.createElement("style");ue.setAttribute("type","text/css"),ue.innerHTML=kt;for(var Ce=Vt.head.childNodes,Ke=null,bn=Ce.length-1;bn>-1;bn--){var Xn=Ce[bn],ei=(Xn.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(ei)>-1&&(Ke=Xn)}Vt.head.insertBefore(ue,Ke)}}(bi()),so=!0)}var Lo={mixout:function(){return{dom:{css:bi,insertCss:To}}},hooks:function(){return{beforeDOMElementCreation:function(){To()},beforeI2svg:function(){To()}}}},ha=ce||{};ha[Xt]||(ha[Xt]={}),ha[Xt].styles||(ha[Xt].styles={}),ha[Xt].hooks||(ha[Xt].hooks={}),ha[Xt].shims||(ha[Xt].shims=[]);var Aa=ha[Xt],Ne=[],Re=!1;function we(kt){!Fe||(Re?setTimeout(kt,0):Ne.push(kt))}function on(kt){var ue=kt.tag,Ce=kt.attributes,Ke=void 0===Ce?{}:Ce,bn=kt.children,Xn=void 0===bn?[]:bn;return"string"==typeof kt?Sn(kt):"<".concat(ue," ").concat(function Ei(kt){return Object.keys(kt||{}).reduce(function(ue,Ce){return ue+"".concat(Ce,'="').concat(Sn(kt[Ce]),'" ')},"").trim()}(Ke),">").concat(Xn.map(on).join(""),"")}function Q(kt,ue,Ce){if(kt&&kt[ue]&&kt[ue][Ce])return{prefix:ue,iconName:Ce,icon:kt[ue][Ce]}}Fe&&((Re=(Vt.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Vt.readyState))||Vt.addEventListener("DOMContentLoaded",function kt(){Vt.removeEventListener("DOMContentLoaded",kt),Re=1,Ne.map(function(ue){return ue()})}));var J=function(ue,Ce,Ke,bn){var wi,xo,xi,Xn=Object.keys(ue),ei=Xn.length,Ai=void 0!==bn?function(ue,Ce){return function(Ke,bn,Xn,ei){return ue.call(Ce,Ke,bn,Xn,ei)}}(Ce,bn):Ce;for(void 0===Ke?(wi=1,xi=ue[Xn[0]]):(wi=0,xi=Ke);wi=55296&&bn<=56319&&Ce2&&void 0!==arguments[2]?arguments[2]:{},Ke=Ce.skipHooks,bn=void 0!==Ke&&Ke,Xn=Ki(ue);"function"!=typeof Aa.hooks.addPack||bn?Aa.styles[kt]=x(x({},Aa.styles[kt]||{}),Xn):Aa.hooks.addPack(kt,Ki(ue)),"fas"===kt&&wo("fa",ue)}var pr,$r,ja,Er=Aa.styles,cc=Aa.shims,nr=(P(pr={},Qe,Object.values(le[Qe])),P(pr,te,Object.values(le[te])),pr),ds=null,Tr={},Ar={},Sc={},Ml={},js={},Ls=(P($r={},Qe,Object.keys(Tt[Qe])),P($r,te,Object.keys(Tt[te])),$r);function Oc(kt,ue){var Ce=ue.split("-"),Ke=Ce[0],bn=Ce.slice(1).join("-");return Ke!==kt||""===bn||function Ws(kt){return~Je.indexOf(kt)}(bn)?null:bn}var ps=function(){var ue=function(Xn){return J(Er,function(ei,Ai,wi){return ei[wi]=J(Ai,Xn,{}),ei},{})};Tr=ue(function(bn,Xn,ei){return Xn[3]&&(bn[Xn[3]]=ei),Xn[2]&&Xn[2].filter(function(wi){return"number"==typeof wi}).forEach(function(wi){bn[wi.toString(16)]=ei}),bn}),Ar=ue(function(bn,Xn,ei){return bn[ei]=ei,Xn[2]&&Xn[2].filter(function(wi){return"string"==typeof wi}).forEach(function(wi){bn[wi]=ei}),bn}),js=ue(function(bn,Xn,ei){var Ai=Xn[2];return bn[ei]=ei,Ai.forEach(function(wi){bn[wi]=ei}),bn});var Ce="far"in Er||ie.autoFetchSvg,Ke=J(cc,function(bn,Xn){var ei=Xn[0],Ai=Xn[1],wi=Xn[2];return"far"===Ai&&!Ce&&(Ai="fas"),"string"==typeof ei&&(bn.names[ei]={prefix:Ai,iconName:wi}),"number"==typeof ei&&(bn.unicodes[ei.toString(16)]={prefix:Ai,iconName:wi}),bn},{names:{},unicodes:{}});Sc=Ke.names,Ml=Ke.unicodes,ds=uc(ie.styleDefault,{family:ie.familyDefault})};function Hs(kt,ue){return(Tr[kt]||{})[ue]}function Fr(kt,ue){return(js[kt]||{})[ue]}function Ud(kt){return Sc[kt]||{prefix:null,iconName:null}}function Gc(){return ds}function uc(kt){var ue=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ce=ue.family,Ke=void 0===Ce?Qe:Ce,bn=Tt[Ke][kt],Xn=Rt[Ke][kt]||Rt[Ke][bn],ei=kt in Aa.styles?kt:null;return Xn||ei||null}(function fn(kt){rn.push(kt)})(function(kt){ds=uc(kt.styleDefault,{family:ie.familyDefault})}),ps();var Qc=(P(ja={},Qe,Object.keys(le[Qe])),P(ja,te,Object.keys(le[te])),ja);function jc(kt){var ue,Ce=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ke=Ce.skipLookups,bn=void 0!==Ke&&Ke,Xn=(P(ue={},Qe,"".concat(ie.cssPrefix,"-").concat(Qe)),P(ue,te,"".concat(ie.cssPrefix,"-").concat(te)),ue),ei=null,Ai=Qe;(kt.includes(Xn[Qe])||kt.some(function(xo){return Qc[Qe].includes(xo)}))&&(Ai=Qe),(kt.includes(Xn[te])||kt.some(function(xo){return Qc[te].includes(xo)}))&&(Ai=te);var wi=kt.reduce(function(xo,xi){var Yi=Oc(ie.cssPrefix,xi);if(Er[xi]?(xi=nr[Ai].includes(xi)?be[Ai][xi]:xi,ei=xi,xo.prefix=xi):Ls[Ai].indexOf(xi)>-1?(ei=xi,xo.prefix=uc(xi,{family:Ai})):Yi?xo.iconName=Yi:xi!==ie.replacementClass&&xi!==Xn[Qe]&&xi!==Xn[te]&&xo.rest.push(xi),!bn&&xo.prefix&&xo.iconName){var pa="fa"===ei?Ud(xo.iconName):{},oa=Fr(xo.prefix,xo.iconName);pa.prefix&&(ei=null),xo.iconName=pa.iconName||oa||xo.iconName,xo.prefix=pa.prefix||xo.prefix,"far"===xo.prefix&&!Er.far&&Er.fas&&!ie.autoFetchSvg&&(xo.prefix="fas")}return xo},{prefix:null,iconName:null,rest:[]});return(kt.includes("fa-brands")||kt.includes("fab"))&&(wi.prefix="fab"),(kt.includes("fa-duotone")||kt.includes("fad"))&&(wi.prefix="fad"),!wi.prefix&&Ai===te&&(Er.fass||ie.autoFetchSvg)&&(wi.prefix="fass",wi.iconName=Fr(wi.prefix,wi.iconName)||wi.iconName),("fa"===wi.prefix||"fa"===ei)&&(wi.prefix=Gc()||"fas"),wi}var $s=function(){function kt(){(function T(kt,ue){if(!(kt instanceof ue))throw new TypeError("Cannot call a class as a function")})(this,kt),this.definitions={}}return function w(kt,ue,Ce){ue&&U(kt.prototype,ue),Ce&&U(kt,Ce),Object.defineProperty(kt,"prototype",{writable:!1})}(kt,[{key:"add",value:function(){for(var Ce=this,Ke=arguments.length,bn=new Array(Ke),Xn=0;Xn0&&xi.forEach(function(Yi){"string"==typeof Yi&&(Ce[Ai][Yi]=xo)}),Ce[Ai][wi]=xo}),Ce}}]),kt}(),xc=[],Ks={},ll={},td=Object.keys(ll);function Es(kt,ue){for(var Ce=arguments.length,Ke=new Array(Ce>2?Ce-2:0),bn=2;bn1?ue-1:0),Ke=1;Ke0&&void 0!==arguments[0]?arguments[0]:{};return Fe?(Zl("beforeI2svg",ue),Ys("pseudoElements2svg",ue),Ys("i2svg",ue)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var ue=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Ce=ue.autoReplaceSvgRoot;!1===ie.autoReplaceSvg&&(ie.autoReplaceSvg=!0),ie.observeMutations=!0,we(function(){ir({autoReplaceSvgRoot:Ce}),Zl("watch",ue)})}},Ca={noAuto:function(){ie.autoReplaceSvg=!1,ie.observeMutations=!1,Zl("noAuto")},config:ie,dom:lu,parse:{icon:function(ue){if(null===ue)return null;if("object"===v(ue)&&ue.prefix&&ue.iconName)return{prefix:ue.prefix,iconName:Fr(ue.prefix,ue.iconName)||ue.iconName};if(Array.isArray(ue)&&2===ue.length){var Ce=0===ue[1].indexOf("fa-")?ue[1].slice(3):ue[1],Ke=uc(ue[0]);return{prefix:Ke,iconName:Fr(Ke,Ce)||Ce}}if("string"==typeof ue&&(ue.indexOf("".concat(ie.cssPrefix,"-"))>-1||ue.match(De))){var bn=jc(ue.split(" "),{skipLookups:!0});return{prefix:bn.prefix||Gc(),iconName:Fr(bn.prefix,bn.iconName)||bn.iconName}}if("string"==typeof ue){var Xn=Gc();return{prefix:Xn,iconName:Fr(Xn,ue)||ue}}}},library:Xs,findIconDefinition:Wc,toHtml:on},ir=function(){var ue=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Ce=ue.autoReplaceSvgRoot,Ke=void 0===Ce?Vt:Ce;(Object.keys(Aa.styles).length>0||ie.autoFetchSvg)&&Fe&&ie.autoReplaceSvg&&Ca.dom.i2svg({node:Ke})};function bc(kt,ue){return Object.defineProperty(kt,"abstract",{get:ue}),Object.defineProperty(kt,"html",{get:function(){return kt.abstract.map(function(Ke){return on(Ke)})}}),Object.defineProperty(kt,"node",{get:function(){if(Fe){var Ke=Vt.createElement("div");return Ke.innerHTML=kt.html,Ke.children}}}),kt}function qa(kt){var ue=kt.icons,Ce=ue.main,Ke=ue.mask,bn=kt.prefix,Xn=kt.iconName,ei=kt.transform,Ai=kt.symbol,wi=kt.title,xo=kt.maskId,xi=kt.titleId,Yi=kt.extra,pa=kt.watchable,oa=void 0!==pa&&pa,xa=Ke.found?Ke:Ce,Xr=xa.width,vs=xa.height,Ms="fak"===bn,ts=[ie.replacementClass,Xn?"".concat(ie.cssPrefix,"-").concat(Xn):""].filter(function(mr){return-1===Yi.classes.indexOf(mr)}).filter(function(mr){return""!==mr||!!mr}).concat(Yi.classes).join(" "),Jr={children:[],attributes:x(x({},Yi.attributes),{},{"data-prefix":bn,"data-icon":Xn,class:ts,role:Yi.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(Xr," ").concat(vs)})},es=Ms&&!~Yi.classes.indexOf("fa-fw")?{width:"".concat(Xr/vs*16*.0625,"em")}:{};oa&&(Jr.attributes[_n]=""),wi&&(Jr.children.push({tag:"title",attributes:{id:Jr.attributes["aria-labelledby"]||"title-".concat(xi||zt())},children:[wi]}),delete Jr.attributes.title);var wr=x(x({},Jr),{},{prefix:bn,iconName:Xn,main:Ce,mask:Ke,maskId:xo,transform:ei,symbol:Ai,styles:x(x({},es),Yi.styles)}),Vs=Ke.found&&Ce.found?Ys("generateAbstractMask",wr)||{children:[],attributes:{}}:Ys("generateAbstractIcon",wr)||{children:[],attributes:{}},$d=Vs.attributes;return wr.children=Vs.children,wr.attributes=$d,Ai?function ed(kt){var Ce=kt.iconName,Ke=kt.children,bn=kt.attributes,Xn=kt.symbol,ei=!0===Xn?"".concat(kt.prefix,"-").concat(ie.cssPrefix,"-").concat(Ce):Xn;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:x(x({},bn),{},{id:ei}),children:Ke}]}]}(wr):function Tu(kt){var ue=kt.children,Ce=kt.main,Ke=kt.mask,bn=kt.attributes,Xn=kt.styles,ei=kt.transform;if(cn(ei)&&Ce.found&&!Ke.found){var xo={x:Ce.width/Ce.height/2,y:.5};bn.style=Vi(x(x({},Xn),{},{"transform-origin":"".concat(xo.x+ei.x/16,"em ").concat(xo.y+ei.y/16,"em")}))}return[{tag:"svg",attributes:bn,children:ue}]}(wr)}function uu(kt){var ue=kt.content,Ce=kt.width,Ke=kt.height,bn=kt.transform,Xn=kt.title,ei=kt.extra,Ai=kt.watchable,wi=void 0!==Ai&&Ai,xo=x(x(x({},ei.attributes),Xn?{title:Xn}:{}),{},{class:ei.classes.join(" ")});wi&&(xo[_n]="");var xi=x({},ei.styles);cn(bn)&&(xi.transform=function We(kt){var ue=kt.transform,Ce=kt.width,bn=kt.height,Xn=void 0===bn?16:bn,ei=kt.startCentered,Ai=void 0!==ei&&ei,wi="";return wi+=Ai&&Ge?"translate(".concat(ue.x/16-(void 0===Ce?16:Ce)/2,"em, ").concat(ue.y/16-Xn/2,"em) "):Ai?"translate(calc(-50% + ".concat(ue.x/16,"em), calc(-50% + ").concat(ue.y/16,"em)) "):"translate(".concat(ue.x/16,"em, ").concat(ue.y/16,"em) "),(wi+="scale(".concat(ue.size/16*(ue.flipX?-1:1),", ").concat(ue.size/16*(ue.flipY?-1:1),") "))+"rotate(".concat(ue.rotate,"deg) ")}({transform:bn,startCentered:!0,width:Ce,height:Ke}),xi["-webkit-transform"]=xi.transform);var Yi=Vi(xi);Yi.length>0&&(xo.style=Yi);var pa=[];return pa.push({tag:"span",attributes:xo,children:[ue]}),Xn&&pa.push({tag:"span",attributes:{class:"sr-only"},children:[Xn]}),pa}function Ts(kt){var ue=kt.content,Ce=kt.title,Ke=kt.extra,bn=x(x(x({},Ke.attributes),Ce?{title:Ce}:{}),{},{class:Ke.classes.join(" ")}),Xn=Vi(Ke.styles);Xn.length>0&&(bn.style=Xn);var ei=[];return ei.push({tag:"span",attributes:bn,children:[ue]}),Ce&&ei.push({tag:"span",attributes:{class:"sr-only"},children:[Ce]}),ei}var As=Aa.styles;function $l(kt){var ue=kt[0],Ce=kt[1],Xn=N(kt.slice(4),1)[0];return{found:!0,width:ue,height:Ce,icon:Array.isArray(Xn)?{tag:"g",attributes:{class:"".concat(ie.cssPrefix,"-").concat("duotone-group")},children:[{tag:"path",attributes:{class:"".concat(ie.cssPrefix,"-").concat("secondary"),fill:"currentColor",d:Xn[0]}},{tag:"path",attributes:{class:"".concat(ie.cssPrefix,"-").concat("primary"),fill:"currentColor",d:Xn[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:Xn}}}}var Pr={found:!1,width:512,height:512};function za(kt,ue){var Ce=ue;return"fa"===ue&&null!==ie.styleDefault&&(ue=Gc()),new Promise(function(Ke,bn){if(Ys("missingIconAbstract"),"fa"===Ce){var ei=Ud(kt)||{};kt=ei.iconName||kt,ue=ei.prefix||ue}if(kt&&ue&&As[ue]&&As[ue][kt])return Ke($l(As[ue][kt]));(function dc(kt,ue){!oi&&!ie.showMissingIcons&&kt&&console.error('Icon with name "'.concat(kt,'" and prefix "').concat(ue,'" is missing.'))})(kt,ue),Ke(x(x({},Pr),{},{icon:ie.showMissingIcons&&kt&&Ys("missingIconAbstract")||{}}))})}var Va=function(){},Ur=ie.measurePerformance&&fe&&fe.mark&&fe.measure?fe:{mark:Va,measure:Va},vr='FA "6.2.1"',zs_begin=function(ue){return Ur.mark("".concat(vr," ").concat(ue," begins")),function(){return function(ue){Ur.mark("".concat(vr," ").concat(ue," ends")),Ur.measure("".concat(vr," ").concat(ue),"".concat(vr," ").concat(ue," begins"),"".concat(vr," ").concat(ue," ends"))}(ue)}},ms=function(){};function Za(kt){return"string"==typeof(kt.getAttribute?kt.getAttribute(_n):null)}function Fs(kt){return Vt.createElementNS("http://www.w3.org/2000/svg",kt)}function tc(kt){return Vt.createElement(kt)}function Ns(kt){var ue=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ce=ue.ceFn,Ke=void 0===Ce?"svg"===kt.tag?Fs:tc:Ce;if("string"==typeof kt)return Vt.createTextNode(kt);var bn=Ke(kt.tag);Object.keys(kt.attributes||[]).forEach(function(ei){bn.setAttribute(ei,kt.attributes[ei])});var Xn=kt.children||[];return Xn.forEach(function(ei){bn.appendChild(Ns(ei,{ceFn:Ke}))}),bn}var io={replace:function(ue){var Ce=ue[0];if(Ce.parentNode)if(ue[1].forEach(function(bn){Ce.parentNode.insertBefore(Ns(bn),Ce)}),null===Ce.getAttribute(_n)&&ie.keepOriginalSource){var Ke=Vt.createComment(function Ba(kt){var ue=" ".concat(kt.outerHTML," ");return"".concat(ue,"Font Awesome fontawesome.com ")}(Ce));Ce.parentNode.replaceChild(Ke,Ce)}else Ce.remove()},nest:function(ue){var Ce=ue[0],Ke=ue[1];if(~Ie(Ce).indexOf(ie.replacementClass))return io.replace(ue);var bn=new RegExp("".concat(ie.cssPrefix,"-.*"));if(delete Ke[0].attributes.id,Ke[0].attributes.class){var Xn=Ke[0].attributes.class.split(" ").reduce(function(Ai,wi){return wi===ie.replacementClass||wi.match(bn)?Ai.toSvg.push(wi):Ai.toNode.push(wi),Ai},{toNode:[],toSvg:[]});Ke[0].attributes.class=Xn.toSvg.join(" "),0===Xn.toNode.length?Ce.removeAttribute("class"):Ce.setAttribute("class",Xn.toNode.join(" "))}var ei=Ke.map(function(Ai){return on(Ai)}).join("\n");Ce.setAttribute(_n,""),Ce.innerHTML=ei}};function Nr(kt){kt()}function sr(kt,ue){var Ce="function"==typeof ue?ue:ms;if(0===kt.length)Ce();else{var Ke=Nr;"async"===ie.mutateApproach&&(Ke=ce.requestAnimationFrame||Nr),Ke(function(){var bn=function ws(){return!0===ie.autoReplaceSvg?io.replace:io[ie.autoReplaceSvg]||io.replace}(),Xn=zs_begin("mutate");kt.map(bn),Xn(),Ce()})}}var Br=!1;function Lc(){Br=!0}function ul(){Br=!1}var Cc=null;function wd(kt){if(ve&&ie.observeMutations){var ue=kt.treeCallback,Ce=void 0===ue?ms:ue,Ke=kt.nodeCallback,bn=void 0===Ke?ms:Ke,Xn=kt.pseudoElementsCallback,ei=void 0===Xn?ms:Xn,Ai=kt.observeMutationsRoot,wi=void 0===Ai?Vt:Ai;Cc=new ve(function(xo){if(!Br){var xi=Gc();Ae(xo).forEach(function(Yi){if("childList"===Yi.type&&Yi.addedNodes.length>0&&!Za(Yi.addedNodes[0])&&(ie.searchPseudoElements&&ei(Yi.target),Ce(Yi.target)),"attributes"===Yi.type&&Yi.target.parentNode&&ie.searchPseudoElements&&ei(Yi.target.parentNode),"attributes"===Yi.type&&Za(Yi.target)&&~hi.indexOf(Yi.attributeName))if("class"===Yi.attributeName&&function rs(kt){var ue=kt.getAttribute?kt.getAttribute(ke):null,Ce=kt.getAttribute?kt.getAttribute(un):null;return ue&&Ce}(Yi.target)){var pa=jc(Ie(Yi.target)),xa=pa.iconName;Yi.target.setAttribute(ke,pa.prefix||xi),xa&&Yi.target.setAttribute(un,xa)}else(function Us(kt){return kt&&kt.classList&&kt.classList.contains&&kt.classList.contains(ie.replacementClass)})(Yi.target)&&bn(Yi.target)})}}),Fe&&Cc.observe(wi,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Gi(kt){var ue=kt.getAttribute("style"),Ce=[];return ue&&(Ce=ue.split(";").reduce(function(Ke,bn){var Xn=bn.split(":"),ei=Xn[0],Ai=Xn.slice(1);return ei&&Ai.length>0&&(Ke[ei]=Ai.join(":").trim()),Ke},{})),Ce}function da(kt){var ue=kt.getAttribute("data-prefix"),Ce=kt.getAttribute("data-icon"),Ke=void 0!==kt.innerText?kt.innerText.trim():"",bn=jc(Ie(kt));return bn.prefix||(bn.prefix=Gc()),ue&&Ce&&(bn.prefix=ue,bn.iconName=Ce),bn.iconName&&bn.prefix||(bn.prefix&&Ke.length>0&&(bn.iconName=function Qd(kt,ue){return(Ar[kt]||{})[ue]}(bn.prefix,kt.innerText)||Hs(bn.prefix,He(kt.innerText))),!bn.iconName&&ie.autoFetchSvg&&kt.firstChild&&kt.firstChild.nodeType===Node.TEXT_NODE&&(bn.iconName=kt.firstChild.data)),bn}function or(kt){var ue=Ae(kt.attributes).reduce(function(bn,Xn){return"class"!==bn.name&&"style"!==bn.name&&(bn[Xn.name]=Xn.value),bn},{}),Ce=kt.getAttribute("title"),Ke=kt.getAttribute("data-fa-title-id");return ie.autoA11y&&(Ce?ue["aria-labelledby"]="".concat(ie.replacementClass,"-title-").concat(Ke||zt()):(ue["aria-hidden"]="true",ue.focusable="false")),ue}function Wa(kt){var ue=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},Ce=da(kt),Ke=Ce.iconName,bn=Ce.prefix,Xn=Ce.rest,ei=or(kt),Ai=Es("parseNodeAttributes",{},kt),wi=ue.styleParser?Gi(kt):[];return x({iconName:Ke,title:kt.getAttribute("title"),titleId:kt.getAttribute("data-fa-title-id"),prefix:bn,transform:ge,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:Xn,styles:wi,attributes:ei}},Ai)}var ae=Aa.styles;function $t(kt){var ue="nest"===ie.autoReplaceSvg?Wa(kt,{styleParser:!1}):Wa(kt);return~ue.extra.classes.indexOf(hn)?Ys("generateLayersText",kt,ue):Ys("generateSvgReplacementMutation",kt,ue)}var Ft=new Set;function et(kt){var ue=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!Fe)return Promise.resolve();var Ce=Vt.documentElement.classList,Ke=function(Yi){return Ce.add("".concat(Dn,"-").concat(Yi))},bn=function(Yi){return Ce.remove("".concat(Dn,"-").concat(Yi))},Xn=ie.autoFetchSvg?Ft:it.map(function(xi){return"fa-".concat(xi)}).concat(Object.keys(ae));Xn.includes("fa")||Xn.push("fa");var ei=[".".concat(hn,":not([").concat(_n,"])")].concat(Xn.map(function(xi){return".".concat(xi,":not([").concat(_n,"])")})).join(", ");if(0===ei.length)return Promise.resolve();var Ai=[];try{Ai=Ae(kt.querySelectorAll(ei))}catch{}if(!(Ai.length>0))return Promise.resolve();Ke("pending"),bn("complete");var wi=zs_begin("onTree"),xo=Ai.reduce(function(xi,Yi){try{var pa=$t(Yi);pa&&xi.push(pa)}catch(oa){oi||"MissingIcon"===oa.name&&console.error(oa)}return xi},[]);return new Promise(function(xi,Yi){Promise.all(xo).then(function(pa){sr(pa,function(){Ke("active"),Ke("complete"),bn("pending"),"function"==typeof ue&&ue(),wi(),xi()})}).catch(function(pa){wi(),Yi(pa)})})}function Mi(kt){var ue=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;$t(kt).then(function(Ce){Ce&&sr([Ce],ue)})}it.map(function(kt){Ft.add("fa-".concat(kt))}),Object.keys(Tt[Qe]).map(Ft.add.bind(Ft)),Object.keys(Tt[te]).map(Ft.add.bind(Ft)),Ft=V(Ft);var Ua=function(ue){var Ce=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ke=Ce.transform,bn=void 0===Ke?ge:Ke,Xn=Ce.symbol,ei=void 0!==Xn&&Xn,Ai=Ce.mask,wi=void 0===Ai?null:Ai,xo=Ce.maskId,xi=void 0===xo?null:xo,Yi=Ce.title,pa=void 0===Yi?null:Yi,oa=Ce.titleId,xa=void 0===oa?null:oa,Xr=Ce.classes,vs=void 0===Xr?[]:Xr,Ms=Ce.attributes,ts=void 0===Ms?{}:Ms,Jr=Ce.styles,es=void 0===Jr?{}:Jr;if(ue){var wr=ue.prefix,Vs=ue.iconName,Zs=ue.icon;return bc(x({type:"icon"},ue),function(){return Zl("beforeDOMElementCreation",{iconDefinition:ue,params:Ce}),ie.autoA11y&&(pa?ts["aria-labelledby"]="".concat(ie.replacementClass,"-title-").concat(xa||zt()):(ts["aria-hidden"]="true",ts.focusable="false")),qa({icons:{main:$l(Zs),mask:wi?$l(wi.icon):{found:!1,width:null,height:null,icon:{}}},prefix:wr,iconName:Vs,transform:x(x({},ge),bn),symbol:ei,title:pa,maskId:xi,titleId:xa,extra:{attributes:ts,styles:es,classes:vs}})})}},$c={mixout:function(){return{icon:(kt=Ua,function(ue){var Ce=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ke=(ue||{}).icon?ue:Wc(ue||{}),bn=Ce.mask;return bn&&(bn=(bn||{}).icon?bn:Wc(bn||{})),kt(Ke,x(x({},Ce),{},{mask:bn}))})};var kt},hooks:function(){return{mutationObserverCallbacks:function(Ce){return Ce.treeCallback=et,Ce.nodeCallback=Mi,Ce}}},provides:function(ue){ue.i2svg=function(Ce){var Ke=Ce.node,Xn=Ce.callback;return et(void 0===Ke?Vt:Ke,void 0===Xn?function(){}:Xn)},ue.generateSvgReplacementMutation=function(Ce,Ke){var bn=Ke.iconName,Xn=Ke.title,ei=Ke.titleId,Ai=Ke.prefix,wi=Ke.transform,xo=Ke.symbol,xi=Ke.mask,Yi=Ke.maskId,pa=Ke.extra;return new Promise(function(oa,xa){Promise.all([za(bn,Ai),xi.iconName?za(xi.iconName,xi.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(Xr){var vs=N(Xr,2);oa([Ce,qa({icons:{main:vs[0],mask:vs[1]},prefix:Ai,iconName:bn,transform:wi,symbol:xo,maskId:Yi,title:Xn,titleId:ei,extra:pa,watchable:!0})])}).catch(xa)})},ue.generateAbstractIcon=function(Ce){var xo,Ke=Ce.children,bn=Ce.attributes,Xn=Ce.main,ei=Ce.transform,wi=Vi(Ce.styles);return wi.length>0&&(bn.style=wi),cn(ei)&&(xo=Ys("generateAbstractTransformGrouping",{main:Xn,transform:ei,containerWidth:Xn.width,iconWidth:Xn.width})),Ke.push(xo||Xn.icon),{children:Ke,attributes:bn}}}},Ec={mixout:function(){return{layer:function(Ce){var Ke=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},bn=Ke.classes,Xn=void 0===bn?[]:bn;return bc({type:"layer"},function(){Zl("beforeDOMElementCreation",{assembler:Ce,params:Ke});var ei=[];return Ce(function(Ai){Array.isArray(Ai)?Ai.map(function(wi){ei=ei.concat(wi.abstract)}):ei=ei.concat(Ai.abstract)}),[{tag:"span",attributes:{class:["".concat(ie.cssPrefix,"-layers")].concat(V(Xn)).join(" ")},children:ei}]})}}}},Ir={mixout:function(){return{counter:function(Ce){var Ke=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},bn=Ke.title,Xn=void 0===bn?null:bn,ei=Ke.classes,Ai=void 0===ei?[]:ei,wi=Ke.attributes,xo=void 0===wi?{}:wi,xi=Ke.styles,Yi=void 0===xi?{}:xi;return bc({type:"counter",content:Ce},function(){return Zl("beforeDOMElementCreation",{content:Ce,params:Ke}),Ts({content:Ce.toString(),title:Xn,extra:{attributes:xo,styles:Yi,classes:["".concat(ie.cssPrefix,"-layers-counter")].concat(V(Ai))}})})}}}},qr={mixout:function(){return{text:function(Ce){var Ke=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},bn=Ke.transform,Xn=void 0===bn?ge:bn,ei=Ke.title,Ai=void 0===ei?null:ei,wi=Ke.classes,xo=void 0===wi?[]:wi,xi=Ke.attributes,Yi=void 0===xi?{}:xi,pa=Ke.styles,oa=void 0===pa?{}:pa;return bc({type:"text",content:Ce},function(){return Zl("beforeDOMElementCreation",{content:Ce,params:Ke}),uu({content:Ce,transform:x(x({},ge),Xn),title:Ai,extra:{attributes:Yi,styles:oa,classes:["".concat(ie.cssPrefix,"-layers-text")].concat(V(xo))}})})}}},provides:function(ue){ue.generateLayersText=function(Ce,Ke){var bn=Ke.title,Xn=Ke.transform,ei=Ke.extra,Ai=null,wi=null;if(Ge){var xo=parseInt(getComputedStyle(Ce).fontSize,10),xi=Ce.getBoundingClientRect();Ai=xi.width/xo,wi=xi.height/xo}return ie.autoA11y&&!bn&&(ei.attributes["aria-hidden"]="true"),Promise.resolve([Ce,uu({content:Ce.innerHTML,width:Ai,height:wi,transform:Xn,title:bn,extra:ei,watchable:!0})])}}},Au=new RegExp('"',"ug"),Ja=[1105920,1112319];function v1(kt,ue){var Ce="".concat("data-fa-pseudo-element-pending").concat(ue.replace(":","-"));return new Promise(function(Ke,bn){if(null!==kt.getAttribute(Ce))return Ke();var ei=Ae(kt.children).filter(function(Zs){return Zs.getAttribute(xe)===ue})[0],Ai=ce.getComputedStyle(kt,ue),wi=Ai.getPropertyValue("font-family").match(qn),xo=Ai.getPropertyValue("font-weight"),xi=Ai.getPropertyValue("content");if(ei&&!wi)return kt.removeChild(ei),Ke();if(wi&&"none"!==xi&&""!==xi){var Yi=Ai.getPropertyValue("content"),pa=~["Sharp"].indexOf(wi[2])?te:Qe,oa=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(wi[2])?Rt[pa][wi[2].toLowerCase()]:mi[pa][xo],xa=function Kc(kt){var ue=kt.replace(Au,""),Ce=function zn(kt,ue){var bn,Ce=kt.length,Ke=kt.charCodeAt(ue);return Ke>=55296&&Ke<=56319&&Ce>ue+1&&(bn=kt.charCodeAt(ue+1))>=56320&&bn<=57343?1024*(Ke-55296)+bn-56320+65536:Ke}(ue,0),Ke=Ce>=Ja[0]&&Ce<=Ja[1],bn=2===ue.length&&ue[0]===ue[1];return{value:He(bn?ue[0]:ue),isSecondary:Ke||bn}}(Yi),Xr=xa.value,vs=xa.isSecondary,Ms=wi[0].startsWith("FontAwesome"),ts=Hs(oa,Xr),Jr=ts;if(Ms){var es=function jd(kt){var ue=Ml[kt],Ce=Hs("fas",kt);return ue||(Ce?{prefix:"fas",iconName:Ce}:null)||{prefix:null,iconName:null}}(Xr);es.iconName&&es.prefix&&(ts=es.iconName,oa=es.prefix)}if(!ts||vs||ei&&ei.getAttribute(ke)===oa&&ei.getAttribute(un)===Jr)Ke();else{kt.setAttribute(Ce,Jr),ei&&kt.removeChild(ei);var wr=function Kr(){return{iconName:null,title:null,titleId:null,prefix:null,transform:ge,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}(),Vs=wr.extra;Vs.attributes[xe]=ue,za(ts,oa).then(function(Zs){var $d=qa(x(x({},wr),{},{icons:{main:Zs,mask:{prefix:null,iconName:null,rest:[]}},prefix:oa,iconName:Jr,extra:Vs,watchable:!0})),mr=Vt.createElement("svg");"::before"===ue?kt.insertBefore(mr,kt.firstChild):kt.appendChild(mr),mr.outerHTML=$d.map(function(sa){return on(sa)}).join("\n"),kt.removeAttribute(Ce),Ke()}).catch(bn)}}else Ke()})}function Md(kt){return Promise.all([v1(kt,"::before"),v1(kt,"::after")])}function x1(kt){return!(kt.parentNode===document.head||~_i.indexOf(kt.tagName.toUpperCase())||kt.getAttribute(xe)||kt.parentNode&&"svg"===kt.parentNode.tagName)}function Wd(kt){if(Fe)return new Promise(function(ue,Ce){var Ke=Ae(kt.querySelectorAll("*")).filter(x1).map(Md),bn=zs_begin("searchPseudoElements");Lc(),Promise.all(Ke).then(function(){bn(),ul(),ue()}).catch(function(){bn(),ul(),Ce()})})}var Fc=!1,dl=function(ue){return ue.toLowerCase().split(" ").reduce(function(Ke,bn){var Xn=bn.toLowerCase().split("-"),ei=Xn[0],Ai=Xn.slice(1).join("-");if(ei&&"h"===Ai)return Ke.flipX=!0,Ke;if(ei&&"v"===Ai)return Ke.flipY=!0,Ke;if(Ai=parseFloat(Ai),isNaN(Ai))return Ke;switch(ei){case"grow":Ke.size=Ke.size+Ai;break;case"shrink":Ke.size=Ke.size-Ai;break;case"left":Ke.x=Ke.x-Ai;break;case"right":Ke.x=Ke.x+Ai;break;case"up":Ke.y=Ke.y-Ai;break;case"down":Ke.y=Ke.y+Ai;break;case"rotate":Ke.rotate=Ke.rotate+Ai}return Ke},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},Pl={x:0,y:0,width:"100%",height:"100%"};function yc(kt){var ue=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return kt.attributes&&(kt.attributes.fill||ue)&&(kt.attributes.fill="black"),kt}!function jl(kt,ue){var Ce=ue.mixoutsTo;xc=kt,Ks={},Object.keys(ll).forEach(function(Ke){-1===td.indexOf(Ke)&&delete ll[Ke]}),xc.forEach(function(Ke){var bn=Ke.mixout?Ke.mixout():{};if(Object.keys(bn).forEach(function(ei){"function"==typeof bn[ei]&&(Ce[ei]=bn[ei]),"object"===v(bn[ei])&&Object.keys(bn[ei]).forEach(function(Ai){Ce[ei]||(Ce[ei]={}),Ce[ei][Ai]=bn[ei][Ai]})}),Ke.hooks){var Xn=Ke.hooks();Object.keys(Xn).forEach(function(ei){Ks[ei]||(Ks[ei]=[]),Ks[ei].push(Xn[ei])})}Ke.provides&&Ke.provides(ll)})}([Lo,$c,Ec,Ir,qr,{hooks:function(){return{mutationObserverCallbacks:function(Ce){return Ce.pseudoElementsCallback=Wd,Ce}}},provides:function(ue){ue.pseudoElements2svg=function(Ce){var Ke=Ce.node;ie.searchPseudoElements&&Wd(void 0===Ke?Vt:Ke)}}},{mixout:function(){return{dom:{unwatch:function(){Lc(),Fc=!0}}}},hooks:function(){return{bootstrap:function(){wd(Es("mutationObserverCallbacks",{}))},noAuto:function(){!function _s(){!Cc||Cc.disconnect()}()},watch:function(Ce){var Ke=Ce.observeMutationsRoot;Fc?ul():wd(Es("mutationObserverCallbacks",{observeMutationsRoot:Ke}))}}}},{mixout:function(){return{parse:{transform:function(Ce){return dl(Ce)}}}},hooks:function(){return{parseNodeAttributes:function(Ce,Ke){var bn=Ke.getAttribute("data-fa-transform");return bn&&(Ce.transform=dl(bn)),Ce}}},provides:function(ue){ue.generateAbstractTransformGrouping=function(Ce){var Ke=Ce.main,bn=Ce.transform,ei=Ce.iconWidth,Ai={transform:"translate(".concat(Ce.containerWidth/2," 256)")},wi="translate(".concat(32*bn.x,", ").concat(32*bn.y,") "),xo="scale(".concat(bn.size/16*(bn.flipX?-1:1),", ").concat(bn.size/16*(bn.flipY?-1:1),") "),xi="rotate(".concat(bn.rotate," 0 0)"),oa={outer:Ai,inner:{transform:"".concat(wi," ").concat(xo," ").concat(xi)},path:{transform:"translate(".concat(ei/2*-1," -256)")}};return{tag:"g",attributes:x({},oa.outer),children:[{tag:"g",attributes:x({},oa.inner),children:[{tag:Ke.icon.tag,children:Ke.icon.children,attributes:x(x({},Ke.icon.attributes),oa.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(Ce,Ke){var bn=Ke.getAttribute("data-fa-mask"),Xn=bn?jc(bn.split(" ").map(function(ei){return ei.trim()})):{prefix:null,iconName:null,rest:[]};return Xn.prefix||(Xn.prefix=Gc()),Ce.mask=Xn,Ce.maskId=Ke.getAttribute("data-fa-mask-id"),Ce}}},provides:function(ue){ue.generateAbstractMask=function(Ce){var kt,Ke=Ce.children,bn=Ce.attributes,Xn=Ce.main,ei=Ce.mask,Ai=Ce.maskId,xi=Xn.icon,pa=ei.icon,oa=function pn(kt){var ue=kt.transform,Ke=kt.iconWidth,bn={transform:"translate(".concat(kt.containerWidth/2," 256)")},Xn="translate(".concat(32*ue.x,", ").concat(32*ue.y,") "),ei="scale(".concat(ue.size/16*(ue.flipX?-1:1),", ").concat(ue.size/16*(ue.flipY?-1:1),") "),Ai="rotate(".concat(ue.rotate," 0 0)");return{outer:bn,inner:{transform:"".concat(Xn," ").concat(ei," ").concat(Ai)},path:{transform:"translate(".concat(Ke/2*-1," -256)")}}}({transform:Ce.transform,containerWidth:ei.width,iconWidth:Xn.width}),xa={tag:"rect",attributes:x(x({},Pl),{},{fill:"white"})},Xr=xi.children?{children:xi.children.map(yc)}:{},vs={tag:"g",attributes:x({},oa.inner),children:[yc(x({tag:xi.tag,attributes:x(x({},xi.attributes),oa.path)},Xr))]},Ms={tag:"g",attributes:x({},oa.outer),children:[vs]},ts="mask-".concat(Ai||zt()),Jr="clip-".concat(Ai||zt()),es={tag:"mask",attributes:x(x({},Pl),{},{id:ts,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[xa,Ms]},wr={tag:"defs",children:[{tag:"clipPath",attributes:{id:Jr},children:(kt=pa,"g"===kt.tag?kt.children:[kt])},es]};return Ke.push(wr,{tag:"rect",attributes:x({fill:"currentColor","clip-path":"url(#".concat(Jr,")"),mask:"url(#".concat(ts,")")},Pl)}),{children:Ke,attributes:bn}}}},{provides:function(ue){var Ce=!1;ce.matchMedia&&(Ce=ce.matchMedia("(prefers-reduced-motion: reduce)").matches),ue.missingIconAbstract=function(){var Ke=[],bn={fill:"currentColor"},Xn={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};Ke.push({tag:"path",attributes:x(x({},bn),{},{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=x(x({},Xn),{},{attributeName:"opacity"}),Ai={tag:"circle",attributes:x(x({},bn),{},{cx:"256",cy:"364",r:"28"}),children:[]};return Ce||Ai.children.push({tag:"animate",attributes:x(x({},Xn),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:x(x({},ei),{},{values:"1;0;1;1;0;1;"})}),Ke.push(Ai),Ke.push({tag:"path",attributes:x(x({},bn),{},{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:Ce?[]:[{tag:"animate",attributes:x(x({},ei),{},{values:"1;0;0;0;0;1;"})}]}),Ce||Ke.push({tag:"path",attributes:x(x({},bn),{},{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:x(x({},ei),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:Ke}}}},{hooks:function(){return{parseNodeAttributes:function(Ce,Ke){var bn=Ke.getAttribute("data-fa-symbol");return Ce.symbol=null!==bn&&(""===bn||bn),Ce}}}}],{mixoutsTo:Ca});var Pa=Ca.parse,vo=Ca.icon,Zi=h(11481);const No=["*"],fr=kt=>{const ue={"fa-spin":kt.spin,"fa-pulse":kt.pulse,"fa-fw":kt.fixedWidth,"fa-border":kt.border,"fa-inverse":kt.inverse,"fa-layers-counter":kt.counter,"fa-flip-horizontal":"horizontal"===kt.flip||"both"===kt.flip,"fa-flip-vertical":"vertical"===kt.flip||"both"===kt.flip,[`fa-${kt.size}`]:null!==kt.size,[`fa-rotate-${kt.rotate}`]:null!==kt.rotate,[`fa-pull-${kt.pull}`]:null!==kt.pull,[`fa-stack-${kt.stackItemSize}`]:null!=kt.stackItemSize};return Object.keys(ue).map(Ce=>ue[Ce]?Ce:null).filter(Ce=>Ce)};let Uu=(()=>{class kt{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null}}return kt.\u0275fac=function(Ce){return new(Ce||kt)},kt.\u0275prov=u.Yz7({token:kt,factory:kt.\u0275fac,providedIn:"root"}),kt})(),tr=(()=>{class kt{constructor(){this.definitions={}}addIcons(...Ce){for(const Ke of Ce){Ke.prefix in this.definitions||(this.definitions[Ke.prefix]={}),this.definitions[Ke.prefix][Ke.iconName]=Ke;for(const bn of Ke.icon[2])"string"==typeof bn&&(this.definitions[Ke.prefix][bn]=Ke)}}addIconPacks(...Ce){for(const Ke of Ce){const bn=Object.keys(Ke).map(Xn=>Ke[Xn]);this.addIcons(...bn)}}getIconDefinition(Ce,Ke){return Ce in this.definitions&&Ke in this.definitions[Ce]?this.definitions[Ce][Ke]:null}}return kt.\u0275fac=function(Ce){return new(Ce||kt)},kt.\u0275prov=u.Yz7({token:kt,factory:kt.\u0275fac,providedIn:"root"}),kt})(),ec=(()=>{class kt{constructor(){this.stackItemSize="1x"}ngOnChanges(Ce){if("size"in Ce)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 kt.\u0275fac=function(Ce){return new(Ce||kt)},kt.\u0275dir=u.lG2({type:kt,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[u.TTD]}),kt})(),wu=(()=>{class kt{constructor(Ce,Ke){this.renderer=Ce,this.elementRef=Ke}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(Ce){"size"in Ce&&(null!=Ce.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${Ce.size.currentValue}`),null!=Ce.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${Ce.size.previousValue}`))}}return kt.\u0275fac=function(Ce){return new(Ce||kt)(u.Y36(u.Qsj),u.Y36(u.SBq))},kt.\u0275cmp=u.Xpm({type:kt,selectors:[["fa-stack"]],inputs:{size:"size"},features:[u.TTD],ngContentSelectors:No,decls:1,vars:0,template:function(Ce,Ke){1&Ce&&(u.F$t(),u.Hsn(0))},encapsulation:2}),kt})(),cr=(()=>{class kt{constructor(Ce,Ke,bn,Xn,ei){this.sanitizer=Ce,this.config=Ke,this.iconLibrary=bn,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(Ce){if(null==this.icon&&null==this.config.fallbackIcon)return(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})();let Ke=null;if(Ke=this.icon??this.config.fallbackIcon,Ce){const bn=this.findIconDefinition(Ke);if(null!=bn){const Xn=this.buildParams();this.renderIcon(bn,Xn)}}}render(){this.ngOnChanges({})}findIconDefinition(Ce){const Ke=((kt,ue)=>(kt=>void 0!==kt.prefix&&void 0!==kt.iconName)(kt)?kt:Array.isArray(kt)&&2===kt.length?{prefix:kt[0],iconName:kt[1]}:"string"==typeof kt?{prefix:ue,iconName:kt}:void 0)(Ce,this.config.defaultPrefix);return"icon"in Ke?Ke:this.iconLibrary.getIconDefinition(Ke.prefix,Ke.iconName)??((kt=>{throw new Error(`Could not find icon with iconName=${kt.iconName} and prefix=${kt.prefix} in the icon library.`)})(Ke),null)}buildParams(){const Ce={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},Ke="string"==typeof this.transform?Pa.transform(this.transform):this.transform;return{title:this.title,transform:Ke,classes:[...fr(Ce),...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(Ce,Ke){const bn=vo(Ce,Ke);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(bn.html.join("\n"))}}return kt.\u0275fac=function(Ce){return new(Ce||kt)(u.Y36(Zi.H7),u.Y36(Uu),u.Y36(tr),u.Y36(ec,8),u.Y36(wu,8))},kt.\u0275cmp=u.Xpm({type:kt,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(Ce,Ke){2&Ce&&(u.Ikx("innerHTML",Ke.renderedIconHTML,u.oJD),u.uIk("title",Ke.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(Ce,Ke){},encapsulation:2}),kt})(),Ln=(()=>{class kt{}return kt.\u0275fac=function(Ce){return new(Ce||kt)},kt.\u0275mod=u.oAB({type:kt}),kt.\u0275inj=u.cJS({}),kt})()},33231:(X,j,h)=>{"use strict";h.d(j,{Co:()=>vn,nu:()=>_n});var u=h(29521),p=h(94650),x=h(24006),v=h(3238),t=h(59549),T=h(84385),U=h(591),w=h(21086),P=h(23426),O=h(8929),L=h(87545),N=h(24850),V=h(1059),W=h(18583),tt=h(7625),st=h(72986),ct=h(92198),bt=h(22868),Dt=h(67376),wt=h(56709),qt=h(51572),Jt=h(4859),yt=h(97392),At=h(36895),xt=h(10266);const pt=["searchSelectInput"],Ot=["innerSelectSearch"];function Bt(ke,un){if(1&ke){const Dn=p.EpF();p.TgZ(0,"mat-checkbox",9),p.NdJ("change",function(_i){p.CHM(Dn);const oi=p.oxw();return p.KtG(oi._emitSelectAllBooleanToParent(_i.checked))}),p.qZA()}if(2&ke){const Dn=p.oxw();p.Q6J("color",null==Dn.matFormField?null:Dn.matFormField.color)("checked",Dn.toggleAllCheckboxChecked)("indeterminate",Dn.toggleAllCheckboxIndeterminate)("matTooltip",Dn.toggleAllCheckboxTooltipMessage)("matTooltipPosition",Dn.toggleAllCheckboxTooltipPosition)}}function St(ke,un){1&ke&&p._UZ(0,"mat-spinner",10)}function ce(ke,un){1&ke&&p.Hsn(0,1,["*ngIf","clearIcon; else defaultIcon"])}function Vt(ke,un){if(1&ke&&(p.TgZ(0,"mat-icon",14),p._uU(1),p.qZA()),2&ke){const Dn=p.oxw(2);p.Q6J("svgIcon",Dn.closeSvgIcon),p.xp6(1),p.hij(" ",Dn.closeSvgIcon?null:Dn.closeIcon," ")}}function ve(ke,un){if(1&ke){const Dn=p.EpF();p.TgZ(0,"button",11),p.NdJ("click",function(){p.CHM(Dn);const _i=p.oxw();return p.KtG(_i._reset(!0))}),p.YNc(1,ce,1,0,"ng-content",12),p.YNc(2,Vt,2,2,"ng-template",null,13,p.W1O),p.qZA()}if(2&ke){const Dn=p.MAs(3),ii=p.oxw();p.xp6(1),p.Q6J("ngIf",ii.clearIcon)("ngIfElse",Dn)}}function fe(ke,un){1&ke&&p.Hsn(0,2,["*ngIf","noEntriesFound; else defaultNoEntriesFound"])}function Le(ke,un){if(1&ke&&p._uU(0),2&ke){const Dn=p.oxw(2);p.Oqu(Dn.noEntriesFoundLabel)}}function Fe(ke,un){if(1&ke&&(p.TgZ(0,"div",15),p.YNc(1,fe,1,0,"ng-content",12),p.YNc(2,Le,1,1,"ng-template",null,16,p.W1O),p.qZA()),2&ke){const Dn=p.MAs(3),ii=p.oxw();p.xp6(1),p.Q6J("ngIf",ii.noEntriesFound)("ngIfElse",Dn)}}const Ge=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],Gt=function(ke,un){return{"mat-select-search-inner-multiple":ke,"mat-select-search-inner-toggle-all":un}},Te=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"];let ne=(()=>{class ke{}return ke.\u0275fac=function(Dn){return new(Dn||ke)},ke.\u0275dir=p.lG2({type:ke,selectors:[["","ngxMatSelectSearchClear",""]]}),ke})();const jt=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],re=new p.OlP("mat-selectsearch-default-options");let Me=(()=>{class ke{}return ke.\u0275fac=function(Dn){return new(Dn||ke)},ke.\u0275dir=p.lG2({type:ke,selectors:[["","ngxMatSelectNoEntriesFound",""]]}),ke})(),_n=(()=>{class ke{constructor(Dn,ii,_i,oi=null,Qe=null,te){this.matSelect=Dn,this.changeDetectorRef=ii,this._viewportRuler=_i,this.matOption=oi,this.matFormField=Qe,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 p.vpe,this.onTouched=it=>{},this._options$=new U.X(null),this.optionsList$=this._options$.pipe((0,L.w)(it=>it?it.changes.pipe((0,N.U)(K=>K.toArray()),(0,V.O)(it.toArray())):(0,w.of)(null))),this.optionsLength$=this.optionsList$.pipe((0,N.U)(it=>it?it.length:0)),this._formControl=new x.NI(""),this._showNoEntriesFound$=(0,P.aj)([this._formControl.valueChanges,this.optionsLength$]).pipe((0,N.U)(([it,K])=>this.noEntriesFoundLabel&&it&&K===this.getOptionsLengthOffset())),this._onDestroy=new O.xQ,this.applyDefaultOptions(te)}get isInsideMatOption(){return!!this.matOption}get value(){return this._formControl.value}set _options(Dn){this._options$.next(Dn)}get _options(){return this._options$.getValue()}applyDefaultOptions(Dn){if(Dn)for(const ii of jt)Dn.hasOwnProperty(ii)&&(this[ii]=Dn[ii])}ngOnInit(){const Dn="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(Dn):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,Dn]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[Dn]=!0):this.matSelect.panelClass=Dn,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,W.g)(1),(0,tt.R)(this._onDestroy)).subscribe(ii=>{ii?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe((0,st.q)(1)).pipe((0,tt.R)(this._onDestroy)).subscribe(()=>{this.matSelect._keyManager?this.matSelect._keyManager.change.pipe((0,tt.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,tt.R)(this._onDestroy)).subscribe(()=>{setTimeout(()=>{const _i=this._options.toArray(),oi=_i[this.getOptionsLengthOffset()],Qe=this.matSelect._keyManager;Qe&&this.matSelect.panelOpen&&((!this.matSelect.compareWith(ii,oi)||!Qe.activeItem||!_i.find(it=>this.matSelect.compareWith(it,Qe.activeItem)))&&Qe.setFirstItemActive(),setTimeout(()=>{this.updateInputWidth()}),this.disableScrollToActiveOnOptionsChanged||this.adjustScrollTopToFitActiveOptionIntoView()),ii=oi})})}),this._showNoEntriesFound$.pipe((0,tt.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,tt.R)(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe((0,tt.R)(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(Dn){this.toggleAll.emit(Dn)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(Dn){(Dn.key&&1===Dn.key.length||Dn.keyCode>=u.A&&Dn.keyCode<=u.Z||Dn.keyCode>=u.xE&&Dn.keyCode<=u.aO||Dn.keyCode===u.L_||this.preventHomeEndKeyPropagation&&(Dn.keyCode===u.Sd||Dn.keyCode===u.uR))&&Dn.stopPropagation(),this.matSelect.multiple&&Dn.key&&Dn.keyCode===u.K5&&setTimeout(()=>this._focus()),!0===this.enableClearOnEscapePressed&&Dn.keyCode===u.hY&&this.value&&(this._reset(!0),Dn.stopPropagation())}_handleKeyup(Dn){if(Dn.keyCode===u.LH||Dn.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(Dn){this._lastExternalInputValue=Dn,this._formControl.setValue(Dn),this.changeDetectorRef.markForCheck()}onBlur(){this.unselectActiveDescendant(),this.onTouched()}registerOnChange(Dn){this._formControl.valueChanges.pipe((0,ct.h)(ii=>ii!==this._lastExternalInputValue),(0,bt.b)(()=>this._lastExternalInputValue=void 0),(0,tt.R)(this._onDestroy)).subscribe(Dn)}registerOnTouched(Dn){this.onTouched=Dn}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;const Dn=this.matSelect.panel.nativeElement,ii=Dn.scrollTop;this.searchSelectInput.nativeElement.focus(),Dn.scrollTop=ii}_reset(Dn){this._formControl.setValue(""),Dn&&this._focus()}initMultipleHandling(){this.matSelect.ngControl?(this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges.pipe((0,tt.R)(this._onDestroy)).subscribe(Dn=>{let ii=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!Dn||!Array.isArray(Dn))&&(Dn=[]);const _i=this.matSelect.options.map(oi=>oi.value);this.previousSelectedValues.forEach(oi=>{!Dn.some(Qe=>this.matSelect.compareWith(Qe,oi))&&!_i.some(Qe=>this.matSelect.compareWith(Qe,oi))&&(Dn.push(oi),ii=!0)})}this.previousSelectedValues=Dn,ii&&this.matSelect._onChange(Dn)})):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 Dn=this.getMatOptionHeight(),ii=this.matSelect._keyManager.activeItemIndex||0,_i=(0,v.CB)(ii,this.matSelect.options,this.matSelect.optionGroups),oi=(this.matOption?-1:0)+_i+ii,Qe=this.matSelect.panel.nativeElement.scrollTop,te=this.innerSelectSearch.nativeElement.offsetHeight,it=Math.floor((256-te)/Dn),K=Math.round((Qe+te)/Dn)-1;K>=oi?this.matSelect.panel.nativeElement.scrollTop=oi*Dn:K+it<=oi&&(this.matSelect.panel.nativeElement.scrollTop=(oi+1)*Dn-(256-te))}}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let ii,Dn=this.innerSelectSearch.nativeElement;for(;Dn=Dn.parentElement;)if(Dn.classList.contains("mat-select-panel")){ii=Dn;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 ke.\u0275fac=function(Dn){return new(Dn||ke)(p.Y36(T.gD),p.Y36(p.sBO),p.Y36(Dt.rL),p.Y36(v.ey,8),p.Y36(t.KE,8),p.Y36(re,8))},ke.\u0275cmp=p.Xpm({type:ke,selectors:[["ngx-mat-select-search"]],contentQueries:function(Dn,ii,_i){if(1&Dn&&(p.Suo(_i,ne,5),p.Suo(_i,Me,5)),2&Dn){let oi;p.iGM(oi=p.CRH())&&(ii.clearIcon=oi.first),p.iGM(oi=p.CRH())&&(ii.noEntriesFound=oi.first)}},viewQuery:function(Dn,ii){if(1&Dn&&(p.Gf(pt,7,p.SBq),p.Gf(Ot,7,p.SBq)),2&Dn){let _i;p.iGM(_i=p.CRH())&&(ii.searchSelectInput=_i.first),p.iGM(_i=p.CRH())&&(ii.innerSelectSearch=_i.first)}},hostVars:2,hostBindings:function(Dn,ii){2&Dn&&p.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:[p._Bn([{provide:x.JU,useExisting:(0,p.Gpc)(()=>ke),multi:!0}])],ngContentSelectors:Te,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(Dn,ii){1&Dn&&(p.F$t(Ge),p._UZ(0,"input",0),p.TgZ(1,"div",1,2),p.YNc(3,Bt,1,5,"mat-checkbox",3),p.TgZ(4,"input",4,5),p.NdJ("keydown",function(oi){return ii._handleKeydown(oi)})("keyup",function(oi){return ii._handleKeyup(oi)})("blur",function(){return ii.onBlur()}),p.qZA(),p.YNc(6,St,1,0,"mat-spinner",6),p.YNc(7,ve,4,2,"button",7),p.Hsn(8),p.qZA(),p.YNc(9,Fe,4,2,"div",8),p.ALo(10,"async")),2&Dn&&(p.xp6(1),p.Q6J("ngClass",p.WLB(11,Gt,ii.matSelect.multiple,ii._isToggleAllCheckboxVisible())),p.xp6(2),p.Q6J("ngIf",ii._isToggleAllCheckboxVisible()),p.xp6(1),p.Q6J("type",ii.type)("formControl",ii._formControl)("placeholder",ii.placeholderLabel),p.uIk("aria-label",ii.ariaLabel),p.xp6(2),p.Q6J("ngIf",ii.searching),p.xp6(1),p.Q6J("ngIf",!ii.hideClearSearchButton&&ii.value&&!ii.searching),p.xp6(2),p.Q6J("ngIf",p.lcZ(10,9,ii._showNoEntriesFound$)))},dependencies:[wt.oG,qt.Ou,Jt.lW,yt.Hw,At.mk,At.O5,xt.gM,x.Fj,x.JJ,x.oH,At.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}),ke})(),vn=(()=>{class ke{}return ke.\u0275fac=function(Dn){return new(Dn||ke)},ke.\u0275mod=p.oAB({type:ke}),ke.\u0275inj=p.cJS({imports:[[At.ez,x.UX,Jt.ot,wt.p9,yt.Ps,qt.Cq,xt.AV]]}),ke})()}},X=>{X(X.s=367)}]); \ No newline at end of file +(self.webpackChunkmifosx_web_app=self.webpackChunkmifosx_web_app||[]).push([["main"],{96170:(X,j)=>{(function(h){const u=h.en=h.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,X.exports=function(h){var u={};function p(x){if(u[x])return u[x].exports;var v=u[x]={i:x,l:!1,exports:{}};return h[x].call(v.exports,v,v.exports,p),v.l=!0,v.exports}return p.m=h,p.c=u,p.d=function(x,v,t){p.o(x,v)||Object.defineProperty(x,v,{enumerable:!0,get:t})},p.r=function(x){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(x,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(x,"__esModule",{value:!0})},p.t=function(x,v){if(1&v&&(x=p(x)),8&v||4&v&&"object"==typeof x&&x&&x.__esModule)return x;var t=Object.create(null);if(p.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:x}),2&v&&"string"!=typeof x)for(var T in x)p.d(t,T,function(U){return x[U]}.bind(null,T));return t},p.n=function(x){var v=x&&x.__esModule?function(){return x.default}:function(){return x};return p.d(v,"a",v),v},p.o=function(x,v){return Object.prototype.hasOwnProperty.call(x,v)},p.p="",p(p.s=96)}([function(h,u,p){"use strict";p.d(u,"b",function(){return x}),p.d(u,"a",function(){return v});class x extends Error{constructor(T,U,w){T=v(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 x(T.message,U);throw w.stack=T.stack,w}}function v(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(h,u,p){"use strict";var x,ct,t=(ct={},function(bt){if(void 0===ct[bt]){var Dt=document.querySelector(bt);if(window.HTMLIFrameElement&&Dt instanceof window.HTMLIFrameElement)try{Dt=Dt.contentDocument.head}catch{Dt=null}ct[bt]=Dt}return ct[bt]}),T=[];function U(ct){for(var bt=-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(h,u,p){var x=p(1),v=p(20);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.exports=".ck.ck-label{display:block}.ck.ck-voice-label{display:none}.ck.ck-label{font-weight:700}"},function(h,u,p){var x=p(1),v=p(22);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(24);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(26);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(28);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(30);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(32);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(34);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(36);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(38);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(40);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(42);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(44);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(46);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(48);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(50);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(52);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(54);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(56);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(58);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(60);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(62);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(64);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(66);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(68);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(70);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u){h.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(h,u,p){var x=p(1),v=p(73);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(75);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(77);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(79);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(81);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(83);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(85);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.exports=".ck-content .media{clear:both;margin:1em 0;display:block;min-width:15em}"},function(h,u,p){var x=p(1),v=p(87);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(89);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(91);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(93);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){var x=p(1),v=p(95);"string"==typeof(v=v.__esModule?v.default:v)&&(v=[[h.i,v,""]]),x(v,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h.exports=v.locals||{}},function(h,u){h.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(h,u,p){"use strict";p.r(u),p.d(u,"default",function(){return En});var x=p(3),v=x.a.Symbol,t=Object.prototype,T=t.hasOwnProperty,U=t.toString,w=v?v.toStringTag:void 0,O=Object.prototype.toString,N=v?v.toStringTag:void 0,V=function(d){return null==d?void 0===d?"[object Undefined]":"[object Null]":N&&N in Object(d)?function(d){var r=T.call(d,w),l=d[w];try{d[w]=void 0;var m=!0}catch{}var b=U.call(d);return m&&(r?d[w]=l:delete d[w]),b}(d):function(d){return O.call(d)}(d)},W=function(d,r){return function(l){return d(r(l))}},tt=W(Object.getPrototypeOf,Object),st=function(d){return null!=d&&"object"==typeof d},Dt=Function.prototype.toString,wt=Object.prototype.hasOwnProperty,qt=Dt.call(Object),Jt=function(d){if(!st(d)||"[object Object]"!=V(d))return!1;var r=tt(d);if(null===r)return!0;var l=wt.call(r,"constructor")&&r.constructor;return"function"==typeof l&&l instanceof l&&Dt.call(l)==qt},At=function(d,r){return d===r||d!=d&&r!=r},xt=function(d,r){for(var l=d.length;l--;)if(At(d[l][0],r))return l;return-1},pt=Array.prototype.splice;function Vt(d){var r=-1,l=null==d?0:d.length;for(this.clear();++r-1},Vt.prototype.set=function(d,r){var l=this.__data__,m=xt(l,d);return m<0?(++this.size,l.push([d,r])):l[m][1]=r,this};var Te,ve=Vt,Gt=function(d){var r=typeof d;return null!=d&&("object"==r||"function"==r)},ne=function(d){if(!Gt(d))return!1;var r=V(d);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r},jt=x.a["__core-js_shared__"],re=(Te=/[^.]+$/.exec(jt&&jt.keys&&jt.keys.IE_PROTO||""))?"Symbol(src)_1."+Te:"",oe=Function.prototype.toString,Me=function(d){if(null!=d){try{return oe.call(d)}catch{}try{return d+""}catch{}}return""},en=/^\[object .+?Constructor\]$/,un=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Dn=function(d){return!(!Gt(d)||function(d){return!!re&&re in d}(d))&&(ne(d)?un:en).test(Me(d))},_i=function(d,r){var l=function(d,r){return d?.[r]}(d,r);return Dn(l)?l:void 0},oi=_i(x.a,"Map"),Qe=_i(Object,"create"),K=Object.prototype.hasOwnProperty,Rt=Object.prototype.hasOwnProperty;function De(d){var r=-1,l=null==d?0:d.length;for(this.clear();++r-1&&d%1==0&&d-1&&d%1==0&&d<=9007199254740991},We={};We["[object Float32Array]"]=We["[object Float64Array]"]=We["[object Int8Array]"]=We["[object Int16Array]"]=We["[object Int32Array]"]=We["[object Uint8Array]"]=We["[object Uint8ClampedArray]"]=We["[object Uint16Array]"]=We["[object Uint32Array]"]=!0,We["[object Arguments]"]=We["[object Array]"]=We["[object ArrayBuffer]"]=We["[object Boolean]"]=We["[object DataView]"]=We["[object Date]"]=We["[object Error]"]=We["[object Function]"]=We["[object Map]"]=We["[object Number]"]=We["[object Object]"]=We["[object RegExp]"]=We["[object Set]"]=We["[object String]"]=We["[object WeakMap]"]=!1;var bi=function(d){return function(r){return d(r)}},so=p(5),To=so.a&&so.a.isTypedArray,Lo=To?bi(To):function(d){return st(d)&&pn(d.length)&&!!We[V(d)]},ha=Object.prototype.hasOwnProperty,Aa=function(d,r){var l=Sn(d),m=!l&&Ie(d),b=!l&&!m&&Object(Ei.a)(d),M=!l&&!m&&!b&&Lo(d),S=l||m||b||M,q=S?function(d,r){for(var l=-1,m=Array(d);++l{this._setToTarget(r,b,l[b],m)})}}function Pr(d){return Ts(d,dc)}function dc(d){return As(d)?d:void 0}class Va{constructor(r,l){this.source=r,this.name=l,this.path=[],this.stop=function d(){d.called=!0},this.off=function d(){d.called=!0}}}const Ur=new Array(256).fill().map((d,r)=>("0"+r.toString(16)).slice(-2));function vr(){const d=4294967296*Math.random()>>>0,r=4294967296*Math.random()>>>0,l=4294967296*Math.random()>>>0,m=4294967296*Math.random()>>>0;return"e"+Ur[d>>0&255]+Ur[d>>8&255]+Ur[d>>16&255]+Ur[d>>24&255]+Ur[r>>0&255]+Ur[r>>8&255]+Ur[r>>16&255]+Ur[r>>24&255]+Ur[l>>0&255]+Ur[l>>8&255]+Ur[l>>16&255]+Ur[l>>24&255]+Ur[m>>0&255]+Ur[m>>8&255]+Ur[m>>16&255]+Ur[m>>24&255]}var as={get(d){return"number"!=typeof d?this[d]||this.normal:d},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5},Qn=(p(6),p(0));const zs=Symbol("listeningTo"),ms=Symbol("emitterId");var Za={on(d,r,l={}){this.listenTo(this,d,r,l)},once(d,r,l){let m=!1;this.listenTo(this,d,function(b,...M){m||(m=!0,b.off(),r.call(this,b,...M))},l)},off(d,r){this.stopListening(this,d,r)},listenTo(d,r,l,m={}){let b,M;this[zs]||(this[zs]={});const S=this[zs];Us(d)||rs(d);const q=Us(d);(b=S[q])||(b=S[q]={emitter:d,callbacks:{}}),(M=b.callbacks[r])||(M=b.callbacks[r]=[]),M.push(l),function(Zt,_e){const Be=ws(Zt);if(Be[_e])return;let mn=_e,Mn=null;const In=[];for(;""!==mn&&!Be[mn];)Be[mn]={callbacks:[],childEvents:[]},In.push(Be[mn]),Mn&&Be[mn].childEvents.push(Mn),Mn=mn,mn=mn.substr(0,mn.lastIndexOf(":"));if(""!==mn){for(const Gn of In)Gn.callbacks=Be[mn].callbacks.slice();Be[mn].childEvents.push(Mn)}}(d,r);const B=Fs(d,r),at=as.get(m.priority),_t={callback:l,priority:at};for(const Zt of B){let _e=!1;for(let Be=0;Be-1?M(S,q.substr(0,q.lastIndexOf(":"))):null}(this,m);if(l.path.push(this),b){const M=[l,...r];b=Array.from(b);for(let S=0;S{this._delegations||(this._delegations=new Map),d.forEach(m=>{const b=this._delegations.get(m);b?b.set(r,l):this._delegations.set(m,new Map([[r,l]]))})}}},stopDelegating(d,r){if(this._delegations)if(d)if(r){const l=this._delegations.get(d);l&&l.delete(r)}else this._delegations.delete(d);else this._delegations.clear()}};function rs(d,r){d[ms]||(d[ms]=r||vr())}function Us(d){return d[ms]}function ws(d){return d._events||Object.defineProperty(d,"_events",{value:{}}),d._events}function Fs(d,r){const l=ws(d)[r];if(!l)return[];let m=[l.callbacks];for(let b=0;b{Object.getOwnPropertyNames(l).concat(Object.getOwnPropertySymbols(l)).forEach(m=>{if(m in d.prototype)return;const b=Object.getOwnPropertyDescriptor(l,m);b.enumerable=!1,Object.defineProperty(d.prototype,m,b)})})}class Nr{constructor(r={},l={}){const m=Ba(r);if(m||(l=r),this._items=[],this._itemMap=new Map,this._idProperty=l.idProperty||"id",this._bindToExternalToInternalMap=new WeakMap,this._bindToInternalToExternalMap=new WeakMap,this._skippedIndexesFromExternal=[],m)for(const b of r)this._items.push(b),this._itemMap.set(this._getItemIdBeforeAdding(b),b)}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 Qn.b("collection-add-item-invalid-index",this);for(let m=0;m{this._setUpBindToBinding(m=>new l(m))},using:l=>{this._setUpBindToBinding("function"==typeof l?m=>l(m):m=>m[l])}}}_setUpBindToBinding(r){const l=this._bindToCollection,m=(b,M,S)=>{const q=l._bindToCollection==this,B=l._bindToInternalToExternalMap.get(M);if(q&&B)this._bindToExternalToInternalMap.set(M,B),this._bindToInternalToExternalMap.set(B,M);else{const at=r(M);if(!at)return void this._skippedIndexesFromExternal.push(S);let _t=S;for(const Zt of this._skippedIndexesFromExternal)S>Zt&&_t--;for(const Zt of l._skippedIndexesFromExternal)_t>=Zt&&_t++;this._bindToExternalToInternalMap.set(M,at),this._bindToInternalToExternalMap.set(at,M),this.add(at,_t);for(let Zt=0;Zt{const q=this._bindToExternalToInternalMap.get(M);q&&this.remove(q),this._skippedIndexesFromExternal=this._skippedIndexesFromExternal.reduce((B,at)=>(Sat&&B.push(at),B),[])})}_getItemIdBeforeAdding(r){const l=this._idProperty;let m;if(l in r){if(m=r[l],"string"!=typeof m)throw new Qn.b("collection-add-invalid-id",this);if(this.get(m))throw new Qn.b("collection-add-item-already-exists",this)}else r[l]=m=vr();return m}_remove(r){let l,m,b,M=!1;const S=this._idProperty;if("string"==typeof r?(m=r,b=this._itemMap.get(m),M=!b,b&&(l=this._items.indexOf(b))):"number"==typeof r?(l=r,b=this._items[l],M=!b,b&&(m=b[S])):(b=r,m=b[S],l=this._items.indexOf(b),M=-1==l||!this._itemMap.get(m)),M)throw new Qn.b("collection-remove-404: Item not found.",this);this._items.splice(l,1),this._itemMap.delete(m);const q=this._bindToInternalToExternalMap.get(b);return this._bindToInternalToExternalMap.delete(b),this._bindToExternalToInternalMap.delete(q),this.fire("remove",b,l),[b,l]}[Symbol.iterator](){return this._items[Symbol.iterator]()}}io(Nr,Za);class sr{constructor(r,l=[],m=[]){this._context=r,this._plugins=new Map,this._availablePlugins=new Map;for(const b of l)b.pluginName&&this._availablePlugins.set(b.pluginName,b);this._contextPlugins=new Map;for(const[b,M]of m)this._contextPlugins.set(b,M),this._contextPlugins.set(M,b),b.pluginName&&this._availablePlugins.set(b.pluginName,b)}*[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 b=r;throw"function"==typeof r&&(b=r.pluginName||r.name),new Qn.b("plugincollection-plugin-not-loaded: The requested plugin is not loaded.",this._context,{plugin:b})}return l}has(r){return this._plugins.has(r)}init(r,l=[]){const m=this,b=this._context,M=new Set,S=[],q=Be(r),B=Be(l),at=function(mn){const Mn=[];for(const In of mn)_e(In)||Mn.push(In);return Mn.length?Mn:null}(r);if(at){const mn="plugincollection-plugin-not-found: Some plugins are not available and could not be loaded.";return console.error(Object(Qn.a)(mn),{plugins:at}),Promise.reject(new Qn.b(mn,b,{plugins:at}))}return Promise.all(q.map(function _t(mn){if(!B.includes(mn)&&!m._plugins.has(mn)&&!M.has(mn))return(Mn=mn,new Promise(In=>{M.add(Mn),Mn.requires&&Mn.requires.forEach(Fi=>{const Ji=_e(Fi);if(Mn.isContextPlugin&&!Ji.isContextPlugin)throw new Qn.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 Qn.b("plugincollection-required: Cannot load a plugin because one of its dependencies is listed inthe `removePlugins` option.",b,{plugin:Ji.name,requiredBy:Mn.name});_t(Ji)});const Gn=m._contextPlugins.get(Mn)||new Mn(b);m._add(Mn,Gn),S.push(Gn),In()})).catch(Mn=>{throw console.error(Object(Qn.a)("plugincollection-load: It was not possible to load the plugin."),{plugin:mn}),Mn});var Mn})).then(()=>Zt(S,"init")).then(()=>Zt(S,"afterInit")).then(()=>S);function Zt(mn,Mn){return mn.reduce((In,Gn)=>Gn[Mn]?m._contextPlugins.has(Gn)?In:In.then(Gn[Mn].bind(Gn)):In,Promise.resolve())}function _e(mn){return"function"==typeof mn?mn:m._availablePlugins.get(mn)}function Be(mn){return mn.map(Mn=>_e(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 m=r.pluginName;if(m){if(this._plugins.has(m))throw new Qn.b("plugincollection-plugin-name-conflict: Two plugins with the same name were loaded.",null,{pluginName:m,plugin1:this._plugins.get(m).constructor,plugin2:r});this._plugins.set(m,l)}}}io(sr,Za),window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={});const Lc=["ar","fa","he","ku","ug"];class ul{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,m)=>this._t(l,m)}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}),b=function Br(d,r,l=1){if("number"!=typeof l)throw new Qn.b("translation-service-quantity-not-a-number: Expecting `quantity` to be a number.",null,{quantity:l});const m=Object.keys(window.CKEDITOR_TRANSLATIONS).length;1===m&&(d=Object.keys(window.CKEDITOR_TRANSLATIONS)[0]);const b=r.id||r.string;if(0===m||(B=d,!window.CKEDITOR_TRANSLATIONS[B]||!window.CKEDITOR_TRANSLATIONS[B].dictionary[b]))return 1!==l?r.plural:r.string;var B;const M=window.CKEDITOR_TRANSLATIONS[d].dictionary,S=window.CKEDITOR_TRANSLATIONS[d].getPluralForm||(B=>1===B?0:1);if("string"==typeof M[b])return M[b];const q=Number(S(l));return M[b][q]}(this.uiLanguage,r,r.plural?l[0]:1),M=l,b.replace(/%(\d+)/g,(S,q)=>qr.destroy())).then(()=>this.plugins.destroy())}_addEditor(r,l){if(this._contextOwner)throw new Qn.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 m=new this(r);l(m.initPlugins().then(()=>m))})}}function _s(d,r){const l=Math.min(d.length,r.length);for(let m=0;mr.data.length)throw new Qn.b("view-textproxy-wrong-offsetintext: Given offsetInText value is incorrect.",this);if(m<0||l+m>r.data.length)throw new Qn.b("view-textproxy-wrong-length: Given length value is incorrect.",this);this.data=r.data.substring(l,l+m),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 m=r.includeSelf?this.textNode:this.parent;for(;null!==m;)l[r.parentFirst?"push":"unshift"](m),m=m.parent;return l}}function Wa(d){return Ba(d)?new Map(d):function(r){const l=new Map;for(const m in r)l.set(m,r[m]);return l}(d)}class ae{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 m of this._patterns){const b=$t(l,m);if(b)return{element:l,pattern:m,match:b}}return null}matchAll(...r){const l=[];for(const m of r)for(const b of this._patterns){const M=$t(m,b);M&&l.push({element:m,pattern:b,match:M})}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(d,r){if("function"==typeof r)return r(d);const l={};return r.name&&(l.name=(b=d.name,(m=r.name)instanceof RegExp?m.test(b):m===b),!l.name)||r.attributes&&(l.attributes=function(m,b){const M=[];for(const S in m){const q=m[S];if(!b.hasAttribute(S))return null;{const B=b.getAttribute(S);if(!0===q)M.push(S);else if(q instanceof RegExp){if(!q.test(B))return null;M.push(S)}else{if(B!==q)return null;M.push(S)}}}return M}(r.attributes,d),!l.attributes)?null:!(r.classes&&(l.classes=function(m,b){const M=[];for(const S of m)if(S instanceof RegExp){const q=b.getClassNames();for(const B of q)S.test(B)&&M.push(B);if(0===M.length)return null}else{if(!b.hasClass(S))return null;M.push(S)}return M}(r.classes,d),!l.classes))&&!(r.styles&&(l.styles=function(m,b){const M=[];for(const S in m){const q=m[S];if(!b.hasStyle(S))return null;{const B=b.getStyle(S);if(q instanceof RegExp){if(!q.test(B))return null;M.push(S)}else{if(B!==q)return null;M.push(S)}}}return M}(r.styles,d),!l.styles))&&l;var m,b}var Ft=function(d){return"symbol"==typeof d||st(d)&&"[object Symbol]"==V(d)},et=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Mi=/^\w*$/;function Ua(d,r){if("function"!=typeof d||null!=r&&"function"!=typeof r)throw new TypeError("Expected a function");var l=function(){var m=arguments,b=r?r.apply(this,m):m[0],M=l.cache;if(M.has(b))return M.get(b);var S=d.apply(this,m);return l.cache=M.set(b,S)||M,S};return l.cache=new(Ua.Cache||gn),l}Ua.Cache=gn;var d,r,l,Ec=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ir=/\\(\\)?/g,qr=(d=function(d){var r=[];return 46===d.charCodeAt(0)&&r.push(""),d.replace(Ec,function(l,m,b,M){r.push(b?M.replace(Ir,"$1"):m||l)}),r},r=Ua(d,function(m){return 500===l.size&&l.clear(),m}),l=r.cache,r),Ja=v?v.prototype:void 0,Kc=Ja?Ja.toString:void 0,v1=function d(r){if("string"==typeof r)return r;if(Sn(r))return function(d,r){for(var l=-1,m=null==d?0:d.length,b=Array(m);++lb?0:b+r),(l=l>b?b:l)<0&&(l+=b),b=r>l?0:l-r>>>0,r>>>=0;for(var M=Array(b);++m0){if(++r>=800)return arguments[0]}else r=0;return d.apply(void 0,arguments)}}(vo),Oi=function(d,r){return pi(function(d,r,l){return r=Pa(void 0===r?d.length-1:r,0),function(){for(var m=arguments,b=-1,M=Pa(m.length-r,0),S=Array(M);++b1?l[b-1]:void 0,S=b>2?l[2]:void 0;for(M=d.length>3&&"function"==typeof M?(b--,M):void 0,S&&function(d,r,l){if(!Gt(l))return!1;var m=typeof r;return!!("number"==m?Q(l)&&cn(r,l.length):"string"==m&&r in l)&&At(l[r],d)}(l[0],l[1],S)&&(M=b<3?void 0:M,b=1),r=Object(r);++mm===r);return Array.isArray(l)}set(r,l){if(Gt(r))for(const[m,b]of Object.entries(r))this._styleProcessor.toNormalizedForm(m,b,this._styles);else this._styleProcessor.toNormalizedForm(r,l,this._styles)}remove(r){const l=Uu(r);(function(d,r){null==d||tp(d,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]&&!Gt(this._styles[r]))return this._styles[r];const l=this._styleProcessor.getReducedForm(r,this._styles).find(([m])=>m===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 m of l)r.push(...this._styleProcessor.getReducedForm(m,this._styles));return r}_cleanEmptyObjectsOnPath(r){const l=r.split(".");if(!(l.length>1))return;const m=l.splice(0,l.length-1).join("."),b=yc(this._styles,m);!b||!Array.from(Object.keys(b)).length&&this.remove(m)}}class ml{constructor(){this._normalizers=new Map,this._extractors=new Map,this._reducers=new Map,this._consumables=new Map}toNormalizedForm(r,l,m){if(Gt(l))tr(m,Uu(r),l);else if(this._normalizers.has(r)){const b=this._normalizers.get(r),{path:M,value:S}=b(l);tr(m,M,S)}else tr(m,r,l)}getNormalized(r,l){if(!r)return ea({},l);if(void 0!==l[r])return l[r];if(this._extractors.has(r)){const m=this._extractors.get(r);if("string"==typeof m)return yc(l,m);const b=m(r,l);if(b)return b}return yc(l,Uu(r))}getReducedForm(r,l){const m=this.getNormalized(r,l);return void 0===m?[]:this._reducers.has(r)?this._reducers.get(r)(m):[[r,m]]}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 m of l)this._mapStyleNames(m,[r])}_mapStyleNames(r,l){this._consumables.has(r)||this._consumables.set(r,[]),this._consumables.get(r).push(...l)}}function Uu(d){return d.replace("-",".")}function tr(d,r,l){let m=l;Gt(l)&&(m=ea({},yc(d,r),l)),fr(d,r,m)}class ec extends da{constructor(r,l,m,b){if(super(r),this.name=l,this._attrs=function(M){M=Wa(M);for(const[S,q]of M)null===q?M.delete(S):"string"!=typeof q&&M.set(S,String(q));return M}(m),this._children=[],b&&this._insertChild(0,b),this._classes=new Set,this._attrs.has("class")){const M=this._attrs.get("class");wu(this._classes,M),this._attrs.delete("class")}this._styles=new na(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 ec))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,m]of this._attrs)if(!r._attrs.has(l)||r._attrs.get(l)!==m)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 ae(...r);let m=this.parent;for(;m;){if(l.match(m))return m;m=m.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(),m=Array.from(this._attrs).map(b=>`${b[0]}="${b[1]}"`).sort().join(" ");return this.name+(""==r?"":` class="${r}"`)+(l?` style="${l}"`:"")+(""==m?"":" "+m)}_clone(r=!1){const l=[];if(r)for(const b of this.getChildren())l.push(b._clone(r));const m=new this.constructor(this.document,this.name,this._attrs,l);return m._classes=new Set(this._classes),m._styles.set(this._styles.getNormalized()),m._customProperties=new Map(this._customProperties),m.getFillerOffset=this.getFillerOffset,m}_appendChild(r){return this._insertChild(this.childCount,r)}_insertChild(r,l){this._fireChange("children",this);let m=0;const b=(M=this.document,"string"==typeof(S=l)?[new or(M,S)]:(Ba(S)||(S=[S]),Array.from(S).map(q=>"string"==typeof q?new or(M,q):q instanceof Kr?new or(M,q.data):q)));var M,S;for(const M of b)null!==M.parent&&M._remove(),M.parent=this,M.document=this.document,this._children.splice(r,0,M),r++,m++;return m}_removeChildren(r,l=1){this._fireChange("children",this);for(let m=r;m0&&(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 wu(d,r){const l=r.split(/\s+/);d.clear(),l.forEach(m=>d.add(m))}class cr extends ec{constructor(r,l,m,b){super(r,l,m,b),this.getFillerOffset=id}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 id(){const d=[...this.getChildren()],r=d[this.childCount-1];if(r&&r.is("element","br"))return this.childCount;for(const l of d)if(!l.is("uiElement"))return null;return this.childCount}var Pt=No(function(d,r){sn(r,Ki(r),d)});const de=Symbol("observableProperties"),Yt=Symbol("boundObservables"),Ve=Symbol("boundProperties"),Ln={set(d,r){if(Gt(d))return void Object.keys(d).forEach(m=>{this.set(m,d[m])},this);ue(this);const l=this[de];if(d in this&&!l.has(d))throw new Qn.b("observable-set-cannot-override: Cannot override an existing property.",this);Object.defineProperty(this,d,{enumerable:!0,configurable:!0,get:()=>l.get(d),set(m){const b=l.get(d);let M=this.fire("set:"+d,d,m,b);void 0===M&&(M=m),b===M&&l.has(d)||(l.set(d,M),this.fire("change:"+d,d,M,b))}}),this[d]=r},bind(...d){if(!d.length||!bn(d))throw new Qn.b("observable-bind-wrong-properties: All properties must be strings.",this);if(new Set(d).size!==d.length)throw new Qn.b("observable-bind-duplicate-properties: Properties must be unique.",this);ue(this);const r=this[Ve];d.forEach(m=>{if(r.has(m))throw new Qn.b("observable-bind-rebind: Cannot bind the same property more than once.",this)});const l=new Map;return d.forEach(m=>{const b={property:m,to:[]};r.set(m,b),l.set(m,b)}),{to:Ce,toMany:Ke,_observable:this,_bindProperties:d,_to:[],_bindings:l}},unbind(...d){if(!this[de])return;const r=this[Ve],l=this[Yt];if(d.length){if(!bn(d))throw new Qn.b("observable-unbind-wrong-properties: Properties must be strings.",this);d.forEach(m=>{const b=r.get(m);if(!b)return;let M,S,q,B;b.to.forEach(at=>{M=at[0],S=at[1],q=l.get(M),B=q[S],B.delete(b),B.size||delete q[S],Object.keys(q).length||(l.delete(M),this.stopListening(M,"change"))}),r.delete(m)})}else l.forEach((m,b)=>{this.stopListening(b,"change")}),l.clear(),r.clear()},decorate(d){const r=this[d];if(!r)throw new Qn.b("observablemixin-cannot-decorate-undefined: Cannot decorate an undefined method.",this,{object:this,methodName:d});this.on(d,(l,m)=>{l.return=r.apply(this,m)}),this[d]=function(...l){return this.fire(d,l)}}};Pt(Ln,Za);var kt=Ln;function ue(d){d[de]||(Object.defineProperty(d,de,{value:new Map}),Object.defineProperty(d,Yt,{value:new Map}),Object.defineProperty(d,Ve,{value:new Map}))}function Ce(...d){const r=function(...M){if(!M.length)throw new Qn.b("observable-bind-to-parse-error: Invalid argument syntax in `to()`.",null);const S={to:[]};let q;return"function"==typeof M[M.length-1]&&(S.callback=M.pop()),M.forEach(B=>{if("string"==typeof B)q.properties.push(B);else{if("object"!=typeof B)throw new Qn.b("observable-bind-to-parse-error: Invalid argument syntax in `to()`.",null);q={observable:B,properties:[]},S.to.push(q)}}),S}(...d),l=Array.from(this._bindings.keys()),m=l.length;if(!r.callback&&r.to.length>1)throw new Qn.b("observable-bind-to-no-callback: Binding multiple observables only possible with callback.",this);if(m>1&&r.callback)throw new Qn.b("observable-bind-to-extra-callback: Cannot bind multiple properties and use a callback in one binding.",this);var b;r.to.forEach(M=>{if(M.properties.length&&M.properties.length!==m)throw new Qn.b("observable-bind-to-properties-length: The number of properties must match.",this);M.properties.length||(M.properties=this._bindProperties)}),this._to=r.to,r.callback&&(this._bindings.get(l[0]).callback=r.callback),b=this._observable,this._to.forEach(M=>{const S=b[Yt];let q;S.get(M.observable)||b.listenTo(M.observable,"change",(B,at)=>{q=S.get(M.observable)[at],q&&q.forEach(_t=>{Xn(b,_t.property)})})}),function(M){let S;M._bindings.forEach((q,B)=>{M._to.forEach(at=>{S=at.properties[q.callback?0:M._bindProperties.indexOf(B)],q.to.push([at.observable,S]),function(_t,Zt,_e,Be){const mn=_t[Yt],Mn=mn.get(_e),In=Mn||{};In[Be]||(In[Be]=new Set),In[Be].add(Zt),Mn||mn.set(_e,In)}(M._observable,q,at.observable,S)})})}(this),this._bindProperties.forEach(M=>{Xn(this._observable,M)})}function Ke(d,r,l){if(this._bindings.size>1)throw new Qn.b("observable-bind-to-many-not-one-binding: Cannot bind multiple properties with toMany().",this);this.to(...function(m,b){const M=m.map(S=>[S,b]);return Array.prototype.concat.apply([],M)}(d,r),l)}function bn(d){return d.every(r=>"string"==typeof r)}function Xn(d,r){const l=d[Ve].get(r);let m;l.callback?m=l.callback.apply(d,l.to.map(b=>b[0][b[1]])):(m=l.to[0],m=m[0][m[1]]),Object.prototype.hasOwnProperty.call(d,r)?d[r]=m:d.set(r,m)}class ei extends cr{constructor(r,l,m,b){super(r,l,m,b),this.set("isReadOnly",!1),this.set("isFocused",!1),this.bind("isReadOnly").to(r),this.bind("isFocused").to(r,"isFocused",M=>M&&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()}}io(ei,kt);const Ai=Symbol("rootName");class wi 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(Ai)}set rootName(r){this._setCustomProperty(Ai,r)}set _name(r){this.name=r}}class xo{constructor(r={}){if(!r.boundaries&&!r.startPosition)throw new Qn.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 Qn.b("view-tree-walker-unknown-direction: Only `backward` and `forward` direction allowed.",r.startPosition,{direction:r.direction});this.boundaries=r.boundaries||null,this.position=xi._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,m,b;do{b=this.position,({done:l,value:m}=this.next())}while(!l&&r(m));l||(this.position=b)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){let r=this.position.clone();const l=this.position,m=r.parent;if(null===m.parent&&r.offset===m.childCount)return{done:!0};if(m===this._boundaryEndParent&&r.offset==this.boundaries.end.offset)return{done:!0};let b;if(m instanceof or){if(r.isAtEnd)return this.position=xi._createAfter(m),this._next();b=m.data[r.offset]}else b=m.getChild(r.offset);if(b instanceof ec)return this.shallow?r.offset++:r=new xi(b,0),this.position=r,this._formatReturnValue("elementStart",b,l,r,1);if(b instanceof or){if(this.singleCharacters)return r=new xi(b,0),this.position=r,this._next();{let M,S=b.data.length;return b==this._boundaryEndParent?(S=this.boundaries.end.offset,M=new Kr(b,0,S),r=xi._createAfter(M)):(M=new Kr(b,0,b.data.length),r.offset++),this.position=r,this._formatReturnValue("text",M,l,r,S)}}if("string"==typeof b){let M;M=this.singleCharacters?1:(m===this._boundaryEndParent?this.boundaries.end.offset:m.data.length)-r.offset;const S=new Kr(m,r.offset,M);return r.offset+=M,this.position=r,this._formatReturnValue("text",S,l,r,M)}return r=xi._createAfter(m),this.position=r,this.ignoreElementEnd?this._next():this._formatReturnValue("elementEnd",m,l,r)}_previous(){let r=this.position.clone();const l=this.position,m=r.parent;if(null===m.parent&&0===r.offset)return{done:!0};if(m==this._boundaryStartParent&&r.offset==this.boundaries.start.offset)return{done:!0};let b;if(m instanceof or){if(r.isAtStart)return this.position=xi._createBefore(m),this._previous();b=m.data[r.offset-1]}else b=m.getChild(r.offset-1);if(b instanceof ec)return this.shallow?(r.offset--,this.position=r,this._formatReturnValue("elementStart",b,l,r,1)):(r=new xi(b,b.childCount),this.position=r,this.ignoreElementEnd?this._previous():this._formatReturnValue("elementEnd",b,l,r));if(b instanceof or){if(this.singleCharacters)return r=new xi(b,b.data.length),this.position=r,this._previous();{let M,S=b.data.length;if(b==this._boundaryStartParent){const q=this.boundaries.start.offset;M=new Kr(b,q,b.data.length-q),S=M.data.length,r=xi._createBefore(M)}else M=new Kr(b,0,b.data.length),r.offset--;return this.position=r,this._formatReturnValue("text",M,l,r,S)}}if("string"==typeof b){let M;M=this.singleCharacters?1:r.offset-(m===this._boundaryStartParent?this.boundaries.start.offset:0),r.offset-=M;const S=new Kr(m,r.offset,M);return this.position=r,this._formatReturnValue("text",S,l,r,M)}return r=xi._createBefore(m),this.position=r,this._formatReturnValue("elementStart",m,l,r,1)}_formatReturnValue(r,l,m,b,M){return l instanceof Kr&&(l.offsetInText+l.data.length==l.textNode.data.length&&("forward"!=this.direction||this.boundaries&&this.boundaries.end.isEqual(this.position)?m=xi._createAfter(l.textNode):(b=xi._createAfter(l.textNode),this.position=b)),0===l.offsetInText&&("backward"!=this.direction||this.boundaries&&this.boundaries.start.isEqual(this.position)?m=xi._createBefore(l.textNode):(b=xi._createBefore(l.textNode),this.position=b))),{done:!1,value:{type:r,item:l,previousPosition:m,nextPosition:b,length:M}}}}class xi{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=xi._createAt(this),m=l.offset+r;return l.offset=m<0?0:m,l}getLastMatchingPosition(r,l={}){l.startPosition=this;const m=new xo(l);return m.skip(r),m.position}getAncestors(){return this.parent.is("documentFragment")?[this.parent]:this.parent.getAncestors({includeSelf:!0})}getCommonAncestor(r){const l=this.getAncestors(),m=r.getAncestors();let b=0;for(;l[b]==m[b]&&l[b];)b++;return 0===b?null:l[b-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():[],m=r.parent.is("node")?r.parent.getPath():[];l.push(this.offset),m.push(r.offset);const b=_s(l,m);switch(b){case"prefix":return"before";case"extension":return"after";default:return l[b]0?new this(m,b):new this(b,m)}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(xi._createBefore(r),l)}}function pa(d){return!(!d.item.is("attributeElement")&&!d.item.is("uiElement"))}function oa(d){let r=0;for(const l of d)r++;return r}class xa{constructor(r=null,l,m){this._ranges=[],this._lastRangeBackward=!1,this._isFake=!1,this._fakeSelectionLabel="",this.setTo(r,l,m)}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 m=!1;for(const b of r._ranges)if(l.isEqual(b)){m=!0;break}if(!m)return!1}return!0}isSimilar(r){if(this.isBackward!=r.isBackward)return!1;const l=oa(this.getRanges());if(l!=oa(r.getRanges()))return!1;if(0==l)return!0;for(let m of this.getRanges()){m=m.getTrimmed();let b=!1;for(let M of r.getRanges())if(M=M.getTrimmed(),m.start.isEqual(M.start)&&m.end.isEqual(M.end)){b=!0;break}if(!b)return!1}return!0}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}setTo(r,l,m){if(null===r)this._setRanges([]),this._setFakeOptions(l);else if(r instanceof xa||r instanceof Xr)this._setRanges(r.getRanges(),r.isBackward),this._setFakeOptions({fake:r.isFake,label:r.fakeSelectionLabel});else if(r instanceof Yi)this._setRanges([r],l&&l.backward),this._setFakeOptions(l);else if(r instanceof xi)this._setRanges([new Yi(r)]),this._setFakeOptions(l);else if(r instanceof da){const b=!!m&&!!m.backward;let M;if(void 0===l)throw new Qn.b("view-selection-setTo-required-second-parameter: selection.setTo requires the second parameter when the first parameter is a node.",this);M="in"==l?Yi._createIn(r):"on"==l?Yi._createOn(r):new Yi(xi._createAt(r,l)),this._setRanges([M],b),this._setFakeOptions(m)}else{if(!Ba(r))throw new Qn.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 Qn.b("view-selection-setFocus-no-ranges: Cannot set selection focus if there are no ranges in selection.",this);const m=xi._createAt(r,l);if("same"==m.compareWith(this.focus))return;const b=this.anchor;this._ranges.pop(),"before"==m.compareWith(b)?this._addRange(new Yi(m,b),!0):this._addRange(new Yi(b,m)),this.fire("change")}is(r){return"selection"===r||"view:selection"===r}_setRanges(r,l=!1){r=Array.from(r),this._ranges=[];for(const m of r)this._addRange(m);this._lastRangeBackward=!!l}_setFakeOptions(r={}){this._isFake=!!r.fake,this._fakeSelectionLabel=r.fake&&r.label||""}_addRange(r,l=!1){if(!(r instanceof Yi))throw new Qn.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 Qn.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 Yi(r.start,r.end))}}io(xa,Za);class Xr{constructor(r=null,l,m){this._selection=new xa,this._selection.delegate("change").to(this),this._selection.setTo(r,l,m)}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,m){this._selection.setTo(r,l,m)}_setFocus(r,l){this._selection.setFocus(r,l)}}io(Xr,Za);class vs{constructor(r){this.selection=new Xr,this.roots=new Nr({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 m of this._postFixers)if(l=m(r),l)break}while(l)}}io(vs,kt);class Ms extends ec{constructor(r,l,m,b){super(r,l,m,b),this.getFillerOffset=ts,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 Qn.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 ts(){if(Jr(this))return null;let d=this.parent;for(;d&&d.is("attributeElement");){if(Jr(d)>1)return null;d=d.parent}return!d||Jr(d)>1?null:this.childCount}function Jr(d){return Array.from(d.getChildren()).filter(r=>!r.is("uiElement")).length}Ms.DEFAULT_PRIORITY=10;class es extends ec{constructor(r,l,m,b){super(r,l,m,b),this.getFillerOffset=wr}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 da||Array.from(l).length>0))throw new Qn.b("view-emptyelement-cannot-add: Cannot add child nodes to EmptyElement instance.",[this,l])}}function wr(){return null}const Vs=navigator.userAgent.toLowerCase();var Zs_isMac=function(d){return d.indexOf("macintosh")>-1}(Vs),Zs_isGecko=function(d){return!!d.match(/gecko\/\d+/)}(Vs),Zs_isSafari=function(d){return d.indexOf(" applewebkit/")>-1&&-1===d.indexOf("chrome")}(Vs),Zs_isAndroid=function(d){return d.indexOf("android")>-1}(Vs);!function(){let d=!1;try{d=0==="\u0107".search(new RegExp("[\\p{L}]","u"))}catch{}}();const $d={"\u2318":"ctrl","\u21e7":"shift","\u2325":"alt"},mr={ctrl:"\u2318",shift:"\u21e7",alt:"\u2325"},sa=function(){const d={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++)d[String.fromCharCode(r).toLowerCase()]=r;for(let r=48;r<=57;r++)d[r-48]=r;for(let r=112;r<=123;r++)d["f"+(r-111)]=r;return d}();function hr(d){let r;if("string"==typeof d){if(r=sa[d.toLowerCase()],!r)throw new Qn.b("keyboard-unknown-key: Unknown key name.",null,{key:d})}else r=d.keyCode+(d.altKey?sa.alt:0)+(d.ctrlKey?sa.ctrl:0)+(d.shiftKey?sa.shift:0);return r}function ep(d){return"string"==typeof d&&(d=Kd(d)),d.map(r=>"string"==typeof r?hr(r):r).reduce((r,l)=>l+r,0)}function kl(d){return Zs_isMac?Kd(d).map(r=>mr[r.toLowerCase()]||r).reduce((r,l)=>r.slice(-1)in $d?r+l:r+"+"+l):d}function Mu(d){return d==sa.arrowright||d==sa.arrowleft||d==sa.arrowup||d==sa.arrowdown}function _l(d,r){const l="ltr"===r;switch(d){case sa.arrowleft:return l?"left":"right";case sa.arrowright:return l?"right":"left";case sa.arrowup:return"up";case sa.arrowdown:return"down"}}function Zd(d,r){const l=_l(d,r);return"down"===l||"right"===l}function Kd(d){return d.split(/\s*\+\s*/)}class Zu extends ec{constructor(r,l,m,b){super(r,l,m,b),this.getFillerOffset=ip}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 da||Array.from(l).length>0))throw new Qn.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 m of this.getAttributeKeys())l.setAttribute(m,this.getAttribute(m));return l}}function ip(){return null}class Sl extends ec{constructor(r,l,m,b){super(r,l,m,b),this.getFillerOffset=Ol}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 da||Array.from(l).length>0))throw new Qn.b("view-rawelement-cannot-add: Cannot add child nodes to a RawElement instance.",[this,l])}}function Ol(){return null}class Ll{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 m=0;const b=(M=this.document,"string"==typeof(S=l)?[new or(M,S)]:(Ba(S)||(S=[S]),Array.from(S).map(q=>"string"==typeof q?new or(M,q):q instanceof Kr?new or(M,q.data):q)));var M,S;for(const M of b)null!==M.parent&&M._remove(),M.parent=this,this._children.splice(r,0,M),r++,m++;return m}_removeChildren(r,l=1){this._fireChange("children",this);for(let m=r;m{}),b}setAttribute(r,l,m){m._setAttribute(r,l)}removeAttribute(r,l){l._removeAttribute(r)}addClass(r,l){l._addClass(r)}removeClass(r,l){l._removeClass(r)}setStyle(r,l,m){Jt(r)&&void 0===m&&(m=l),m._setStyle(r,l)}removeStyle(r,l){l._removeStyle(r)}setCustomProperty(r,l,m){m._setCustomProperty(r,l)}removeCustomProperty(r,l){return l._removeCustomProperty(r)}breakAttributes(r){return r instanceof xi?this._breakAttributes(r):this._breakAttributesRange(r)}breakContainer(r){const l=r.parent;if(!l.is("containerElement"))throw new Qn.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 Qn.b("view-writer-break-root: Trying to break root element.",this.document);if(r.isAtStart)return xi._createBefore(l);if(!r.isAtEnd){const m=l._clone(!1);this.insert(xi._createAfter(l),m);const b=new Yi(r,xi._createAt(l,"end")),M=new xi(m,0);this.move(b,M)}return xi._createAfter(l)}mergeAttributes(r){const l=r.offset,m=r.parent;if(m.is("$text"))return r;if(m.is("attributeElement")&&0===m.childCount){const S=m.parent,q=m.index;return m._remove(),this._removeFromClonedElementsGroup(m),this.mergeAttributes(new xi(S,q))}const b=m.getChild(l-1),M=m.getChild(l);if(!b||!M)return r;if(b.is("$text")&&M.is("$text"))return C1(b,M);if(b.is("attributeElement")&&M.is("attributeElement")&&b.isSimilar(M)){const S=b.childCount;return b._appendChild(M.getChildren()),M._remove(),this._removeFromClonedElementsGroup(M),this.mergeAttributes(new xi(b,S))}return r}mergeContainers(r){const l=r.nodeBefore,m=r.nodeAfter;if(!(l&&m&&l.is("containerElement")&&m.is("containerElement")))throw new Qn.b("view-writer-merge-containers-invalid-position: Element before and after given position cannot be merged.",this.document);const b=l.getChild(l.childCount-1),M=xi._createAt(b instanceof or?b:l,"end");return this.move(Yi._createIn(m),xi._createAt(l,"end")),this.remove(Yi._createOn(m)),M}insert(r,l){!function B(at,_t){for(const Zt of at){if(!Un.some(_e=>Zt instanceof _e))throw new Qn.b("view-writer-insert-invalid-node",_t);Zt.is("$text")||B(Zt.getChildren(),_t)}}(l=Ba(l)?[...l]:[l],this.document);const m=cm(r);if(!m)throw new Qn.b("view-writer-invalid-position-container",this.document);const b=this._breakAttributes(r,!0),M=m._insertChild(b.offset,l);for(const B of l)this._addToClonedElementsGroup(B);const S=b.getShiftedBy(M),q=this.mergeAttributes(b);if(0===M)return new Yi(q,q);{q.isEqual(b)||S.offset--;const B=this.mergeAttributes(S);return new Yi(q,B)}}remove(r){const l=r instanceof Yi?r:Yi._createOn(r);if(yo(l,this.document),l.isCollapsed)return new Ll(this.document);const{start:m,end:b}=this._breakAttributesRange(l,!0),q=m.parent._removeChildren(m.offset,b.offset-m.offset);for(const at of q)this._removeFromClonedElementsGroup(at);const B=this.mergeAttributes(m);return l.start=B,l.end=B.clone(),new Ll(this.document,q)}clear(r,l){yo(r,this.document);const m=r.getWalker({direction:"backward",ignoreElementEnd:!0});for(const b of m){const M=b.item;let S;if(M.is("element")&&l.isSimilar(M))S=Yi._createOn(M);else if(!b.nextPosition.isAfter(r.start)&&M.is("$textProxy")){const q=M.getAncestors().find(B=>B.is("element")&&l.isSimilar(B));q&&(S=Yi._createIn(q))}S&&(S.end.isAfter(r.end)&&(S.end=r.end),S.start.isBefore(r.start)&&(S.start=r.start),this.remove(S))}}move(r,l){let m;if(l.isAfter(r.end)){const b=(l=this._breakAttributes(l,!0)).parent,M=b.childCount;r=this._breakAttributesRange(r,!0),m=this.remove(r),l.offset+=b.childCount-M}else m=this.remove(r);return this.insert(l,m)}wrap(r,l){if(!(l instanceof Ms))throw new Qn.b("view-writer-wrap-invalid-attribute",this.document);if(yo(r,this.document),r.isCollapsed){let b=r.start;b.parent.is("element")&&!Array.from(b.parent.getChildren()).some(S=>!S.is("uiElement"))&&(b=b.getLastMatchingPosition(S=>S.item.is("uiElement"))),b=this._wrapPosition(b,l);const M=this.document.selection;return M.isCollapsed&&M.getFirstPosition().isEqual(r.start)&&this.setSelection(b),new Yi(b)}return this._wrapRange(r,l)}unwrap(r,l){if(!(l instanceof Ms))throw new Qn.b("view-writer-unwrap-invalid-attribute",this.document);if(yo(r,this.document),r.isCollapsed)return r;const{start:m,end:b}=this._breakAttributesRange(r,!0),S=this._unwrapChildren(m.parent,m.offset,b.offset,l),q=this.mergeAttributes(S.start);q.isEqual(S.start)||S.end.offset--;const B=this.mergeAttributes(S.end);return new Yi(q,B)}rename(r,l){const m=new cr(this.document,r,l.getAttributes());return this.insert(xi._createAfter(l),m),this.move(Yi._createIn(l),xi._createAt(m,0)),this.remove(Yi._createOn(l)),m}clearClonedElementsGroup(r){this._cloneGroups.delete(r)}createPositionAt(r,l){return xi._createAt(r,l)}createPositionAfter(r){return xi._createAfter(r)}createPositionBefore(r){return xi._createBefore(r)}createRange(r,l){return new Yi(r,l)}createRangeOn(r){return Yi._createOn(r)}createRangeIn(r){return Yi._createIn(r)}createSelection(r,l,m){return new xa(r,l,m)}_wrapChildren(r,l,m,b){let M=l;const S=[];for(;M!1,r.parent._insertChild(r.offset,m);const b=new Yi(r,r.getShiftedBy(1));this.wrap(b,l);const M=new xi(m.parent,m.index);m._remove();const S=M.nodeBefore,q=M.nodeAfter;return S instanceof or&&q instanceof or?C1(S,q):El(M)}_wrapAttributeElement(r,l){if(!Tp(r,l)||r.name!==l.name||r.priority!==l.priority)return!1;for(const m of r.getAttributeKeys())if("class"!==m&&"style"!==m&&l.hasAttribute(m)&&l.getAttribute(m)!==r.getAttribute(m))return!1;for(const m of r.getStyleNames())if(l.hasStyle(m)&&l.getStyle(m)!==r.getStyle(m))return!1;for(const m of r.getAttributeKeys())"class"!==m&&"style"!==m&&(l.hasAttribute(m)||this.setAttribute(m,r.getAttribute(m),l));for(const m of r.getStyleNames())l.hasStyle(m)||this.setStyle(m,r.getStyle(m),l);for(const m of r.getClassNames())l.hasClass(m)||this.addClass(m,l);return!0}_unwrapAttributeElement(r,l){if(!Tp(r,l)||r.name!==l.name||r.priority!==l.priority)return!1;for(const m of r.getAttributeKeys())if("class"!==m&&"style"!==m&&(!l.hasAttribute(m)||l.getAttribute(m)!==r.getAttribute(m)))return!1;if(!l.hasClass(...r.getClassNames()))return!1;for(const m of r.getStyleNames())if(!l.hasStyle(m)||l.getStyle(m)!==r.getStyle(m))return!1;for(const m of r.getAttributeKeys())"class"!==m&&"style"!==m&&this.removeAttribute(m,l);return this.removeClass(Array.from(r.getClassNames()),l),this.removeStyle(Array.from(r.getStyleNames()),l),!0}_breakAttributesRange(r,l=!1){const m=r.start,b=r.end;if(yo(r,this.document),r.isCollapsed){const B=this._breakAttributes(r.start,l);return new Yi(B,B)}const M=this._breakAttributes(b,l),S=M.parent.childCount,q=this._breakAttributes(m,l);return M.offset+=M.parent.childCount-S,new Yi(q,M)}_breakAttributes(r,l=!1){const m=r.offset,b=r.parent;if(r.parent.is("emptyElement"))throw new Qn.b("view-writer-cannot-break-empty-element",this.document);if(r.parent.is("uiElement"))throw new Qn.b("view-writer-cannot-break-ui-element",this.document);if(r.parent.is("rawElement"))throw new Qn.b("view-writer-cannot-break-raw-element: Cannot break inside a RawElement instance.",this.document);if(!l&&b.is("$text")&&an(b.parent)||an(b))return r.clone();if(b.is("$text"))return this._breakAttributes(Vr(r),l);if(m==b.childCount){const M=new xi(b.parent,b.index+1);return this._breakAttributes(M,l)}if(0===m){const M=new xi(b.parent,b.index);return this._breakAttributes(M,l)}{const M=b.index+1,S=b._clone();b.parent._insertChild(M,S),this._addToClonedElementsGroup(S);const B=b._removeChildren(m,b.childCount-m);S._appendChild(B);const at=new xi(b.parent,M);return this._breakAttributes(at,l)}}_addToClonedElementsGroup(r){if(!r.root.is("rootElement"))return;if(r.is("element"))for(const b of r.getChildren())this._addToClonedElementsGroup(b);const l=r.id;if(!l)return;let m=this._cloneGroups.get(l);m||(m=new Set,this._cloneGroups.set(l,m)),m.add(r),r._clonesGroup=m}_removeFromClonedElementsGroup(r){if(r.is("element"))for(const b of r.getChildren())this._removeFromClonedElementsGroup(b);const l=r.id;if(!l)return;const m=this._cloneGroups.get(l);m&&m.delete(r)}}function cm(d){let r=d.parent;for(;!an(r);){if(!r)return;r=r.parent}return r}function b1(d,r){return d.priorityr.priority)&&d.getIdentity()d.createTextNode("\xa0"),e_=d=>{const r=d.createElement("br");return r.dataset.ckeFiller=!0,r},lm=(()=>{let d="";for(let r=0;r<7;r++)d+="\u200b";return d})();function nc(d){return R(d)&&d.data.substr(0,7)===lm}function Ic(d){return 7==d.data.length&&nc(d)}function lr(d){return nc(d)?d.data.slice(7):d.data}function Gr(d,r){if(r.keyCode==sa.arrowleft){const l=r.domTarget.ownerDocument.defaultView.getSelection();if(1==l.rangeCount&&l.getRangeAt(0).collapsed){const m=l.getRangeAt(0).startContainer,b=l.getRangeAt(0).startOffset;nc(m)&&b<=7&&l.collapse(m,0)}}}function y1(d,r,l,m=!1){l=l||function(M,S){return M===S},Array.isArray(d)||(d=Array.prototype.slice.call(d)),Array.isArray(r)||(r=Array.prototype.slice.call(r));const b=function(M,S,q){const B=T1(M,S,q);if(-1===B)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};const Zt=T1(n_(M,B),n_(S,B),q);return{firstIndex:B,lastIndexOld:M.length-Zt,lastIndexNew:S.length-Zt}}(d,r,l);return m?function(M,S){const{firstIndex:q,lastIndexOld:B,lastIndexNew:at}=M;if(-1===q)return Array(S).fill("equal");let _t=[];return q>0&&(_t=_t.concat(Array(q).fill("equal"))),at-q>0&&(_t=_t.concat(Array(at-q).fill("insert"))),B-q>0&&(_t=_t.concat(Array(B-q).fill("delete"))),at0&&q.push({index:B,type:"insert",values:M.slice(B,_t)}),at-B>0&&q.push({index:B+(_t-B),type:"delete",howMany:at-B}),q}(r,b)}function T1(d,r,l){for(let m=0;m200||b>200||m+b>300)return qc.fastDiff(d,r,l,!0);let M,S;if(bGn?-1:1;_t[Mn+Fi]&&(_t[Mn]=_t[Mn+Fi].slice(0)),_t[Mn]||(_t[Mn]=[]),_t[Mn].push(In>Gn?M:S);let Ji=Math.max(In,Gn),Do=Ji-Mn;for(;Doat;Be--)Zt[Be]=_e(Be);Zt[at]=_e(at),mn++}while(Zt[at]!==B);return _t[at].slice(1)}function pc(d,r,l){d.insertBefore(l,d.childNodes[r]||null)}function Du(d){const r=d.parentNode;r&&r.removeChild(d)}function Xd(d){if(d){if(d.defaultView)return d instanceof d.defaultView.Document;if(d.ownerDocument&&d.ownerDocument.defaultView)return d instanceof d.ownerDocument.defaultView.Node}return!1}qc.fastDiff=y1;class Fl{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 Qn.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),m=l.parent.ownerDocument;this._inlineFiller=nc(l.parent)?l.parent:mu(m,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 m=this.domConverter.mapViewToDom(r).childNodes,b=Array.from(this.domConverter.viewChildrenToDom(r,l.ownerDocument,{withChildren:!1})),M=this._diffNodeLists(m,b),S=this._findReplaceActions(M,m,b);if(-1!==S.indexOf("replace")){const q={equal:0,insert:0,delete:0};for(const B of S)if("replace"===B){const at=q.equal+q.insert,_t=q.equal+q.delete,Zt=r.getChild(at);!Zt||Zt.is("uiElement")||Zt.is("rawElement")||this._updateElementMappings(Zt,m[_t]),Du(b[at]),q.equal++}else q[B]++}}_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")?xi._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&&R(l.parent)&&nc(l.parent))}_removeInlineFiller(){const r=this._inlineFiller;if(!nc(r))throw new Qn.b("view-renderer-filler-was-lost: The inline filler node was lost.",this);Ic(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,m=r.offset;return!!(this.domConverter.mapViewToDom(l.root)&&l.is("element")&&function(S){if("false"==S.getAttribute("contenteditable"))return!1;const q=S.findAncestor(B=>B.hasAttribute("contenteditable"));return!q||"true"==q.getAttribute("contenteditable")}(l)&&m!==l.getFillerOffset())&&!(r.nodeBefore instanceof or||r.nodeAfter instanceof or)}_updateText(r,l){const m=this.domConverter.findCorrespondingDomText(r),b=this.domConverter.viewToDom(r,m.ownerDocument),M=m.data;let S=b.data;const q=l.inlineFillerPosition;if(q&&q.parent==r.parent&&q.offset==r.index&&(S=lm+S),M!=S){const B=y1(M,S);for(const at of B)"insert"===at.type?m.insertData(at.index,at.values.join("")):m.deleteData(at.index,at.howMany)}}_updateAttrs(r){const l=this.domConverter.mapViewToDom(r);if(!l)return;const m=Array.from(l.attributes).map(M=>M.name),b=r.getAttributeKeys();for(const M of b)l.setAttribute(M,r.getAttribute(M));for(const M of m)r.hasAttribute(M)||l.removeAttribute(M)}_updateChildren(r,l){const m=this.domConverter.mapViewToDom(r);if(!m)return;const b=l.inlineFillerPosition,M=this.domConverter.mapViewToDom(r).childNodes,S=Array.from(this.domConverter.viewChildrenToDom(r,m.ownerDocument,{bind:!0,inlineFillerPosition:b}));b&&b.parent===r&&mu(m.ownerDocument,S,b.offset);const q=this._diffNodeLists(M,S);let B=0;const at=new Set;for(const _t of q)"delete"===_t?(at.add(M[B]),Du(M[B])):"equal"===_t&&B++;B=0;for(const _t of q)"insert"===_t?(pc(m,B,S[B]),B++):"equal"===_t&&(this._markDescendantTextToSync(this.domConverter.domToView(S[B])),B++);for(const _t of at)_t.parentNode||this.domConverter.unbindDomElement(_t)}_diffNodeLists(r,l){return qc(r=function(m,b){const M=Array.from(m);return 0==M.length||!b||M[M.length-1]==b&&M.pop(),M}(r,this._fakeSelectionContainer),l,um.bind(null,this.domConverter))}_findReplaceActions(r,l,m){if(-1===r.indexOf("insert")||-1===r.indexOf("delete"))return r;let b=[],M=[],S=[];const q={equal:0,insert:0,delete:0};for(const B of r)"insert"===B?S.push(m[q.equal+q.insert]):"delete"===B?M.push(l[q.equal+q.delete]):(b=b.concat(qc(M,S,fl).map(at=>"equal"===at?"replace":at)),b.push("equal"),M=[],S=[]),q[B]++;return b.concat(qc(M,S,fl).map(B=>"equal"===B?"replace":B))}_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(S){const q=S.createElement("div");return Object.assign(q.style,{position:"fixed",top:0,left:"-9999px",width:"42px"}),q.textContent="\xa0",q}(l));const m=this._fakeSelectionContainer;if(this.domConverter.bindFakeSelection(m,this.selection),!this._fakeSelectionNeedsUpdate(r))return;m.parentElement&&m.parentElement==r||r.appendChild(m),m.textContent=this.selection.fakeSelectionLabel||"\xa0";const b=l.getSelection(),M=l.createRange();b.removeAllRanges(),M.selectNodeContents(m),b.addRange(M)}_updateDomSelection(r){const l=r.ownerDocument.defaultView.getSelection();if(!this._domSelectionNeedsUpdate(l))return;const m=this.domConverter.viewPositionToDom(this.selection.anchor),b=this.domConverter.viewPositionToDom(this.selection.focus);r.focus(),l.collapse(m.parent,m.offset),l.extend(b.parent,b.offset),Zs_isGecko&&function(M,S){const q=M.parent;if(q.nodeType!=Node.ELEMENT_NODE||M.offset!=q.childNodes.length-1)return;const B=q.childNodes[M.offset];B&&"BR"==B.tagName&&S.addRange(S.getRangeAt(0))}(b,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,m=r.ownerDocument.getSelection();return!l||l.parentElement!==r||m.anchorNode!==l&&!l.contains(m.anchorNode)||l.textContent!==this.selection.fakeSelectionLabel}_removeDomSelection(){for(const r of this.domDocuments)if(r.getSelection().rangeCount){const l=r.activeElement,m=this.domConverter.mapDomToView(l);l&&m&&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 mu(d,r,l){const m=r instanceof Array?r:r.childNodes,b=m[l];if(R(b))return b.data=lm+b.data,b;{const M=d.createTextNode(lm);return Array.isArray(r)?m.splice(l,0,M):pc(r,l,M),M}}function fl(d,r){return Xd(d)&&Xd(r)&&!R(d)&&!R(r)&&d.nodeType!==Node.COMMENT_NODE&&r.nodeType!==Node.COMMENT_NODE&&d.tagName.toLowerCase()===r.tagName.toLowerCase()}function um(d,r,l){return r===l||(R(r)&&R(l)?r.data===l.data:!(!d.isBlockFiller(r)||!d.isBlockFiller(l)))}io(Fl,kt);var ft={window,document};function gt(d){let r=0;for(;d.previousSibling;)d=d.previousSibling,r++;return r}function rt(d){const r=[];for(;d&&d.nodeType!=Node.DOCUMENT_NODE;)r.unshift(d),d=d.parentNode;return r}const Ht=e_(document);class ee{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?e_:Mo,this._domToViewMapping=new WeakMap,this._viewToDomMapping=new WeakMap,this._fakeSelectionMapping=new WeakMap}bindFakeSelection(r,l){this._fakeSelectionMapping.set(r,new xa(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 m of r.childNodes)this.unbindDomElement(m)}}bindDocumentFragments(r,l){this._domToViewMapping.set(r,l),this._viewToDomMapping.set(l,r)}viewToDom(r,l,m={}){if(r.is("$text")){const b=this._processDataFromViewText(r);return l.createTextNode(b)}{if(this.mapViewToDom(r))return this.mapViewToDom(r);let b;if(r.is("documentFragment"))b=l.createDocumentFragment(),m.bind&&this.bindDocumentFragments(b,r);else{if(r.is("uiElement"))return b=r.render(l),m.bind&&this.bindElements(b,r),b;b=r.hasAttribute("xmlns")?l.createElementNS(r.getAttribute("xmlns"),r.name):l.createElement(r.name),r.is("rawElement")&&r.render(b),m.bind&&this.bindElements(b,r);for(const M of r.getAttributeKeys())b.setAttribute(M,r.getAttribute(M))}if(m.withChildren||void 0===m.withChildren)for(const M of this.viewChildrenToDom(r,l,m))b.appendChild(M);return b}}*viewChildrenToDom(r,l,m={}){const b=r.getFillerOffset&&r.getFillerOffset();let M=0;for(const S of r.getChildren())b===M&&(yield this._blockFiller(l)),yield this.viewToDom(S,l,m),M++;b===M&&(yield this._blockFiller(l))}viewRangeToDom(r){const l=this.viewPositionToDom(r.start),m=this.viewPositionToDom(r.end),b=document.createRange();return b.setStart(l.parent,l.offset),b.setEnd(m.parent,m.offset),b}viewPositionToDom(r){const l=r.parent;if(l.is("$text")){const m=this.findCorrespondingDomText(l);if(!m)return null;let b=r.offset;return nc(m)&&(b+=7),{parent:m,offset:b}}{let m,b,M;if(0===r.offset){if(m=this.mapViewToDom(l),!m)return null;M=m.childNodes[0]}else{const S=r.nodeBefore;if(b=S.is("$text")?this.findCorrespondingDomText(S):this.mapViewToDom(r.nodeBefore),!b)return null;m=b.parentNode,M=b.nextSibling}return R(M)&&nc(M)?{parent:M,offset:7}:{parent:m,offset:b?gt(b)+1:0}}}domToView(r,l={}){if(this.isBlockFiller(r,this.blockFillerMode))return null;const m=this.getHostViewElement(r,this._domToViewMapping);if(m)return m;if(R(r)){if(Ic(r))return null;{const b=this._processDataFromDomText(r);return""===b?null:new or(this.document,b)}}if(this.isComment(r))return null;{if(this.mapDomToView(r))return this.mapDomToView(r);let b;if(this.isDocumentFragment(r))b=new Ll(this.document),l.bind&&this.bindDocumentFragments(r,b);else{const M=l.keepOriginalCase?r.tagName:r.tagName.toLowerCase();b=new ec(this.document,M),l.bind&&this.bindElements(r,b);const S=r.attributes;for(let q=S.length-1;q>=0;q--)b._setAttribute(S[q].name,S[q].value)}if(l.withChildren||void 0===l.withChildren)for(const M of this.domChildrenToView(r,l))b._appendChild(M);return b}}*domChildrenToView(r,l={}){for(let m=0;m{const{scrollLeft:q,scrollTop:B}=S;M.push([q,B])}),l.focus(),Pn(l,S=>{const[q,B]=M.shift();S.scrollLeft=q,S.scrollTop=B}),ft.window.scrollTo(m,b)}}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(Ht):!("BR"!==r.tagName||!yn(r,this.blockElements)||1!==r.parentNode.childNodes.length)||function(l,m){return R(l)&&"\xa0"==l.data&&yn(l,m)&&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 m=l.collapsed;return l.detach(),m}getHostViewElement(r){const l=rt(r);for(l.pop();l.length;){const m=l.pop(),b=this._domToViewMapping.get(m);if(b&&(b.is("uiElement")||b.is("rawElement")))return b}return null}isDomSelectionCorrect(r){return this._isDomSelectionPositionCorrect(r.anchorNode,r.anchorOffset)&&this._isDomSelectionPositionCorrect(r.focusNode,r.focusOffset)}_isDomSelectionPositionCorrect(r,l){if(R(r)&&nc(r)&&l<7||this.isElement(r)&&nc(r.childNodes[l]))return!1;const m=this.mapDomToView(r);return!m||!m.is("uiElement")&&!m.is("rawElement")}_processDataFromViewText(r){let l=r.data;if(r.getAncestors().some(m=>this.preElements.includes(m.name)))return l;if(" "==l.charAt(0)){const m=this._getTouchingViewTextNode(r,!1);(!m||!this._nodeEndsWithSpace(m))&&m||(l="\xa0"+l.substr(1))}if(" "==l.charAt(l.length-1)){const m=this._getTouchingViewTextNode(r,!0);" "!=l.charAt(l.length-2)&&m&&" "!=m.data.charAt(0)||(l=l.substr(0,l.length-1)+"\xa0")}return l.replace(/ {2}/g," \xa0")}_nodeEndsWithSpace(r){if(r.getAncestors().some(m=>this.preElements.includes(m.name)))return!1;const l=this._processDataFromViewText(r);return" "==l.charAt(l.length-1)}_processDataFromDomText(r){let l=r.data;if(me(r,this.preElements))return lr(r);l=l.replace(/[ \n\t\r]{1,}/g," ");const m=this._getTouchingInlineDomNode(r,!1),b=this._getTouchingInlineDomNode(r,!0),M=this._checkShouldLeftTrimDomText(m),S=this._checkShouldRightTrimDomText(r,b);return M&&(l=l.replace(/^ /,"")),S&&(l=l.replace(/ $/,"")),l=lr(new Text(l)),l=l.replace(/ \u00A0/g," "),(/( |\u00A0)\u00A0$/.test(l)||!b||b.data&&" "==b.data.charAt(0))&&(l=l.replace(/\u00A0$/," ")),M&&(l=l.replace(/^\u00A0/," ")),l}_checkShouldLeftTrimDomText(r){return!r||!!As(r)||/[^\S\u00A0]/.test(r.data.charAt(r.data.length-1))}_checkShouldRightTrimDomText(r,l){return!l&&!nc(r)}_getTouchingViewTextNode(r,l){const m=new xo({startPosition:l?xi._createAfter(r):xi._createBefore(r),direction:l?"forward":"backward"});for(const b of m){if(b.item.is("containerElement")||b.item.is("element","br"))return null;if(b.item.is("$textProxy"))return b.item}return null}_getTouchingInlineDomNode(r,l){if(!r.parentNode)return null;const m=l?"nextNode":"previousNode",b=r.ownerDocument,M=rt(r)[0],S=b.createTreeWalker(M,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,{acceptNode:B=>R(B)||"BR"==B.tagName?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});S.currentNode=r;const q=S[m]();if(null!==q){const B=function(at,_t){const Zt=rt(at),_e=rt(_t);let Be=0;for(;Zt[Be]==_e[Be]&&Zt[Be];)Be++;return 0===Be?null:Zt[Be-1]}(r,q);if(B&&!me(r,this.blockElements,B)&&!me(q,this.blockElements,B))return q}return null}}function me(d,r,l){let m=rt(d);return l&&(m=m.slice(m.indexOf(l)+1)),m.some(b=>b.tagName&&r.includes(b.tagName.toLowerCase()))}function Pn(d,r){for(;d&&d!=ft.document;)r(d),d=d.parentNode}function yn(d,r){const l=d.parentNode;return l&&l.tagName&&r.includes(l.tagName.toLowerCase())}function qe(d){const r=Object.prototype.toString.apply(d);return"[object Window]"==r||"[object global]"==r}var Ue=Pt({},Za,{listenTo(d,...r){if(Xd(d)||qe(d)){const l=this._getProxyEmitter(d)||new li(d);l.attach(...r),d=l}Za.listenTo.call(this,d,...r)},stopListening(d,r,l){if(Xd(d)||qe(d)){const m=this._getProxyEmitter(d);if(!m)return;d=m}Za.stopListening.call(this,d,r,l),d instanceof li&&d.detach(r)},_getProxyEmitter(d){return r=this,l=Ao(d),r[zs]&&r[zs][l]?r[zs][l].emitter:null;var r,l}});class li{constructor(r){rs(this,Ao(r)),this._domNode=r}}function Ao(d){return d["data-ck-expando"]||(d["data-ck-expando"]=vr())}Pt(li.prototype,Za,{attach(d,r,l={}){if(this._domListeners&&this._domListeners[d])return;const m=this._createDomListener(d,!!l.useCapture);this._domNode.addEventListener(d,m,!!l.useCapture),this._domListeners||(this._domListeners={}),this._domListeners[d]=m},detach(d){let r;!this._domListeners[d]||(r=this._events[d])&&r.callbacks.length||this._domListeners[d].removeListener()},_createDomListener(d,r){const l=m=>{this.fire(d,m)};return l.removeListener=()=>{this._domNode.removeEventListener(d,l,r),delete this._domListeners[d]},l}});class Co{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()}}io(Co,Ue);function tl(d){var r=-1,l=null==d?0:d.length;for(this.__data__=new gn;++rq))return!1;var at=M.get(d);if(at&&M.get(r))return at==r;var _t=-1,Zt=!0,_e=2&l?new hl:void 0;for(M.set(d,r),M.set(r,d);++_t{this.listenTo(r,l,(m,b)=>{this.isEnabled&&this.onDomEvent(b)},{useCapture:this.useCapture})})}fire(r,l,m){this.isEnabled&&this.document.fire(r,new A1(this.view,l,m))}}class op extends U1{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 hr(this)}})}}var t2=function(){return x.a.Date.now()},o_=/^\s+|\s+$/g,oc=/^[-+]0x[0-9a-f]+$/i,a_=/^0b[01]+$/i,wp=/^0o[0-7]+$/i,gl=parseInt,ad=function(d){if("number"==typeof d)return d;if(Ft(d))return NaN;if(Gt(d)){var r="function"==typeof d.valueOf?d.valueOf():d;d=Gt(r)?r+"":r}if("string"!=typeof d)return 0===d?d:+d;d=d.replace(o_,"");var l=a_.test(d);return l||wp.test(d)?gl(d.slice(2),l?2:8):oc.test(d)?NaN:+d},e1=Math.max,Dd=Math.min,r_=function(d,r,l){var m,b,M,S,q,B,at=0,_t=!1,Zt=!1,_e=!0;if("function"!=typeof d)throw new TypeError("Expected a function");function Be(Ji){var Do=m,ba=b;return m=b=void 0,at=Ji,S=d.apply(ba,Do)}function mn(Ji){return at=Ji,q=setTimeout(In,r),_t?Be(Ji):S}function Mn(Ji){var Do=Ji-B;return void 0===B||Do>=r||Do<0||Zt&&Ji-at>=M}function In(){var Do,ba,Ji=t2();if(Mn(Ji))return Gn(Ji);q=setTimeout(In,(ba=r-((Do=Ji)-B),Zt?Dd(ba,M-(Do-at)):ba))}function Gn(Ji){return q=void 0,_e&&m?Be(Ji):(m=b=void 0,S)}function Fi(){var Ji=t2(),Do=Mn(Ji);if(m=arguments,b=this,B=Ji,Do){if(void 0===q)return mn(B);if(Zt)return clearTimeout(q),q=setTimeout(In,r),Be(B)}return void 0===q&&(q=setTimeout(In,r)),S}return r=ad(r)||0,Gt(l)&&(_t=!!l.leading,M=(Zt="maxWait"in l)?e1(ad(l.maxWait)||0,r):M,_e="trailing"in l?!!l.trailing:_e),Fi.cancel=function(){void 0!==q&&clearTimeout(q),at=0,m=B=b=q=void 0},Fi.flush=function(){return void 0===q?S:Gn(t2())},Fi};class vl extends Co{constructor(r){super(r),this._fireSelectionChangeDoneDebounced=r_(l=>this.document.fire("selectionChangeDone",l),200)}observe(){const r=this.document;r.on("keydown",(l,m)=>{var b;r.selection.isFake&&((b=m.keyCode)==sa.arrowright||b==sa.arrowleft||b==sa.arrowup||b==sa.arrowdown)&&this.isEnabled&&(m.preventDefault(),this._handleSelectionMove(m.keyCode))},{priority:"lowest"})}destroy(){super.destroy(),this._fireSelectionChangeDoneDebounced.cancel()}_handleSelectionMove(r){const l=this.document.selection,m=new xa(l.getRanges(),{backward:l.isBackward,fake:!1});r!=sa.arrowleft&&r!=sa.arrowup||m.setTo(m.getFirstPosition()),r!=sa.arrowright&&r!=sa.arrowdown||m.setTo(m.getLastPosition());const b={oldSelection:l,newSelection:m,domSelection:null};this.document.fire("selectionChange",b),this._fireSelectionChangeDoneDebounced(b)}}class e2 extends Co{constructor(r){super(r),this.mutationObserver=r.getObserver(od),this.selection=this.document.selection,this.domConverter=r.domConverter,this._documents=new WeakSet,this._fireSelectionChangeDoneDebounced=r_(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(),m=this.domConverter.domSelectionToView(l);if(0!=m.rangeCount){if(this.view.hasDomSelection=!0,!(this.selection.isEqual(m)&&this.domConverter.isDomSelectionCorrect(l)||++this._loopbackCounter>60))if(this.selection.isSimilar(m))this.view.forceRender();else{const b={oldSelection:this.selection,newSelection:m,domSelection:l};this.document.fire("selectionChange",b),this._fireSelectionChangeDoneDebounced(b)}}else this.view.hasDomSelection=!1}_clearInfiniteLoop(){this._loopbackCounter=0}}class Mp extends U1{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",(m,b)=>{const M=l.selection.editableElement;null!==M&&M!==b.target||(l.isFocused=!1,r.forceRender())})}onDomEvent(r){this.fire(r.type,r)}destroy(){this._renderTimeoutId&&clearTimeout(this._renderTimeoutId),super.destroy()}}class pm extends U1{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 A extends U1{constructor(r){super(r),this.domEventType=["beforeinput"]}onDomEvent(r){this.fire(r.type,r)}}function vt(d){return"[object Range]"==Object.prototype.toString.apply(d)}function ki(d){const r=d.ownerDocument.defaultView.getComputedStyle(d);return{top:parseInt(r.borderTopWidth,10),right:parseInt(r.borderRightWidth,10),bottom:parseInt(r.borderBottomWidth,10),left:parseInt(r.borderLeftWidth,10)}}const Zp=["top","right","bottom","left","width","height"];class Ds{constructor(r){const l=vt(r);if(Object.defineProperty(this,"_source",{value:r._source||r,writable:!0,enumerable:!1}),As(r)||l)w1(this,l?Ds.getDomRangeRects(r)[0]:r.getBoundingClientRect());else if(qe(r)){const{innerWidth:m,innerHeight:b}=r;w1(this,{top:0,right:m,bottom:b,left:0,width:m,height:b})}else w1(this,r)}clone(){return new Ds(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 Ds(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(!Dp(r)){let m=r.parentNode||r.commonAncestorContainer;for(;m&&!Dp(m);){const b=new Ds(m),M=l.getIntersection(b);if(!M)return null;M.getArea()$e(d,m));const S=$e(d,m);if(fs(m,S,r),m.parent!=m){if(b=m.frameElement,m=m.parent,!b)return}else m=null}}function fs(d,r,l){const m=r.clone().moveBy(0,l),b=r.clone().moveBy(0,-l),M=new Ds(d).excludeScrollbarsAndBorders();if(![b,m].every(S=>M.contains(S))){let{scrollX:S,scrollY:q}=d;ar(b,M)?q-=M.top-r.top+l:ap(m,M)&&(q+=r.bottom-M.bottom+l),Y(r,M)?S-=M.left-r.left+l:dt(r,M)&&(S+=r.right-M.right+l),d.scrollTo(S,q)}}function Z1(d,r){const l=Kt(d);let m,b;for(;d!=l.document.body;)b=r(),m=new Ds(d).excludeScrollbarsAndBorders(),m.contains(b)||(ar(b,m)?d.scrollTop-=m.top-b.top:ap(b,m)&&(d.scrollTop+=b.bottom-m.bottom),Y(b,m)?d.scrollLeft-=m.left-b.left:dt(b,m)&&(d.scrollLeft+=b.right-m.right)),d=d.parentNode}function ap(d,r){return d.bottom>r.bottom}function ar(d,r){return d.topr.right}function Kt(d){return vt(d)?d.startContainer.ownerDocument.defaultView:d.ownerDocument.defaultView}function Mt(d){if(vt(d)){let r=d.commonAncestorContainer;return R(r)&&(r=r.parentNode),r}return d.parentNode}function $e(d,r){const l=Kt(d),m=new Ds(d);if(l===r)return m;{let b=l;for(;b!=r;){const S=new Ds(b.frameElement).excludeScrollbarsAndBorders();m.moveBy(S.left,S.top),b=b.parent}}return m}Object.assign({},{scrollViewportToShowTarget:M1,scrollAncestorsToShowTarget:function(d){Z1(Mt(d),()=>new Ds(d))}});class ni{constructor(r){this.document=new vs(r),this.domConverter=new ee(this.document),this.domRoots=new Map,this.set("isRenderingInProgress",!1),this.set("hasDomSelection",!1),this._renderer=new Fl(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 Xc(this.document),this.addObserver(od),this.addObserver(e2),this.addObserver(Mp),this.addObserver(op),this.addObserver(vl),this.addObserver(pm),Zs_isAndroid&&this.addObserver(A),this.document.on("keydown",Gr),function np(d){d.document.on("keydown",(r,l)=>function(m,b,M){if(b.keyCode==sa.arrowright){const S=b.domTarget.ownerDocument.defaultView.getSelection(),q=1==S.rangeCount&&S.getRangeAt(0).collapsed;if(q||b.shiftKey){const _t=M.domPositionToView(S.focusNode,S.focusOffset);if(null===_t)return;let Zt=!1;const _e=_t.getLastMatchingPosition(Be=>(Be.item.is("uiElement")&&(Zt=!0),!(!Be.item.is("uiElement")&&!Be.item.is("attributeElement"))));if(Zt){const Be=M.viewPositionToDom(_e);q?S.collapse(Be.parent,Be.offset):S.extend(Be.parent,Be.offset)}}}}(0,l,d.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 m=this.document.getRoot(l);m._name=r.tagName.toLowerCase();const b={};for(const{name:S,value:q}of Array.from(r.attributes))b[S]=q,"class"===S?this._writer.addClass(q.split(" "),m):this._writer.setAttribute(S,q,m);this._initialDomRootAttributes.set(r,b);const M=()=>{this._writer.setAttribute("contenteditable",!m.isReadOnly,m),m.isReadOnly?this._writer.addClass("ck-read-only",m):this._writer.removeClass("ck-read-only",m)};M(),this.domRoots.set(l,r),this.domConverter.bindElements(r,m),this._renderer.markToSync("children",m),this._renderer.markToSync("attributes",m),this._renderer.domDocuments.add(r.ownerDocument),m.on("change:children",(S,q)=>this._renderer.markToSync("children",q)),m.on("change:attributes",(S,q)=>this._renderer.markToSync("attributes",q)),m.on("change:text",(S,q)=>this._renderer.markToSync("text",q)),m.on("change:isReadOnly",()=>this.change(M)),m.on("change",()=>{this._hasChangedSinceTheLastRendering=!0});for(const S of this._observers.values())S.observe(r,l)}detachDomRoot(r){const l=this.domRoots.get(r);Array.from(l.attributes).forEach(({name:b})=>l.removeAttribute(b));const m=this._initialDomRootAttributes.get(l);for(const b in m)l.setAttribute(b,m[b]);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[m,b]of this.domRoots)l.observe(b,m);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&&M1({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 Qn.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){Qn.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 xi._createAt(r,l)}createPositionAfter(r){return xi._createAfter(r)}createPositionBefore(r){return xi._createBefore(r)}createRange(r,l){return new Yi(r,l)}createRangeOn(r){return Yi._createOn(r)}createRangeIn(r){return Yi._createIn(r)}createSelection(r,l,m){return new xa(r,l,m)}_disableRendering(r){this._renderingDisabled=r,0==r&&this.change(()=>{})}_render(){this.isRenderingInProgress=!0,this.disableObservers(),this._renderer.render(),this.enableObservers(),this.isRenderingInProgress=!1}}io(ni,kt);class qi{constructor(r){this.parent=null,this._attrs=Wa(r)}get index(){let r;if(!this.parent)return null;if(null===(r=this.parent.getChildIndex(this)))throw new Qn.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 Qn.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 m=r.includeSelf?this:this.parent;for(;m;)l[r.parentFirst?"push":"unshift"](m),m=m.parent;return l}getCommonAncestor(r,l={}){const m=this.getAncestors(l),b=r.getAncestors(l);let M=0;for(;m[M]==b[M]&&m[M];)M++;return 0===M?null:m[M-1]}isBefore(r){if(this==r||this.root!==r.root)return!1;const l=this.getPath(),m=r.getPath(),b=_s(l,m);switch(b){case"prefix":return!0;case"extension":return!1;default:return l[b](l[m[0]]=m[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=Wa(r)}_removeAttribute(r){return this._attrs.delete(r)}_clearAttributes(){this._attrs.clear()}}class Qi 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 Qi(this.data,this.getAttributes())}static fromJSON(r){return new Qi(r.data,r.attributes)}}class ga{constructor(r,l,m){if(this.textNode=r,l<0||l>r.offsetSize)throw new Qn.b("model-textproxy-wrong-offsetintext: Given offsetInText value is incorrect.",this);if(m<0||l+m>r.offsetSize)throw new Qn.b("model-textproxy-wrong-length: Given length value is incorrect.",this);this.data=r.data.substring(l,l+m),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 m=r.includeSelf?this:this.parent;for(;m;)l[r.parentFirst?"push":"unshift"](m),m=m.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 xr{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((m,b)=>m+b.offsetSize,0)}indexToOffset(r){if(r==this._nodes.length)return this.maxOffset;const l=this._nodes[r];if(!l)throw new Qn.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 m of this._nodes){if(r>=l&&rr.toJSON())}}class Ra extends qi{constructor(r,l,m){super(l),this.name=r,this._children=new xr,m&&this._insertChild(0,m)}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 m of r)l=l.getChild(l.offsetToIndex(m));return l}findAncestor(r,l={includeSelf:!1}){let m=l.includeSelf?this:this.parent;for(;m;){if(m.name===r)return m;m=m.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(m=>m._clone(!0)):null;return new Ra(this.name,this.getAttributes(),l)}_appendChild(r){this._insertChild(this.childCount,r)}_insertChild(r,l){const m="string"==typeof(b=l)?[new Qi(b)]:(Ba(b)||(b=[b]),Array.from(b).map(M=>"string"==typeof M?new Qi(M):M instanceof ga?new Qi(M.data,M.getAttributes()):M));var b;for(const b of m)null!==b.parent&&b._remove(),b.parent=this;this._children._insertNodes(r,m)}_removeChildren(r,l=1){const m=this._children._removeNodes(r,l);for(const b of m)b.parent=null;return m}static fromJSON(r){let l=null;if(r.children){l=[];for(const m of r.children)l.push(m.name?Ra.fromJSON(m):Qi.fromJSON(m))}return new Ra(r.name,r.attributes,l)}}class el{constructor(r={}){if(!r.boundaries&&!r.startPosition)throw new Qn.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 Qn.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():po._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,m,b,M;do{b=this.position,M=this._visitedParent,({done:l,value:m}=this.next())}while(!l&&r(m));l||(this.position=b,this._visitedParent=M)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){const r=this.position,l=this.position.clone(),m=this._visitedParent;if(null===m.parent&&l.offset===m.maxOffset)return{done:!0};if(m===this._boundaryEndParent&&l.offset==this.boundaries.end.offset)return{done:!0};const b=l.parent,M=s_(l,b),S=M||df(l,b,M);if(S instanceof Ra)return this.shallow?l.offset++:(l.path.push(0),this._visitedParent=S),this.position=l,Xl("elementStart",S,r,l,1);if(S instanceof Qi){let q;if(this.singleCharacters)q=1;else{let _t=S.endOffset;this._boundaryEndParent==m&&this.boundaries.end.offset<_t&&(_t=this.boundaries.end.offset),q=_t-l.offset}const at=new ga(S,l.offset-S.startOffset,q);return l.offset+=q,this.position=l,Xl("text",at,r,l,q)}return l.path.pop(),l.offset++,this.position=l,this._visitedParent=m.parent,this.ignoreElementEnd?this._next():Xl("elementEnd",m,r,l)}_previous(){const r=this.position,l=this.position.clone(),m=this._visitedParent;if(null===m.parent&&0===l.offset)return{done:!0};if(m==this._boundaryStartParent&&l.offset==this.boundaries.start.offset)return{done:!0};const b=l.parent,M=s_(l,b),S=M||pf(l,b,M);if(S instanceof Ra)return l.offset--,this.shallow?(this.position=l,Xl("elementStart",S,r,l,1)):(l.path.push(S.maxOffset),this.position=l,this._visitedParent=S,this.ignoreElementEnd?this._previous():Xl("elementEnd",S,r,l));if(S instanceof Qi){let q;if(this.singleCharacters)q=1;else{let _t=S.startOffset;this._boundaryStartParent==m&&this.boundaries.start.offset>_t&&(_t=this.boundaries.start.offset),q=l.offset-_t}const at=new ga(S,l.offset-S.startOffset-q,q);return l.offset-=q,this.position=l,Xl("text",at,r,l,q)}return l.path.pop(),this.position=l,this._visitedParent=m.parent,Xl("elementStart",m,r,l,1)}}function Xl(d,r,l,m,b){return{done:!1,value:{type:d,item:r,previousPosition:l,nextPosition:m,length:b}}}class po{constructor(r,l,m="toNone"){if(!r.is("element")&&!r.is("documentFragment"))throw new Qn.b("model-position-root-invalid: Position root invalid.",r);if(!(l instanceof Array)||0===l.length)throw new Qn.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=m}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;lm.path.length){if(l.offset!==b.maxOffset)return!1;l.path=l.path.slice(0,-1),b=b.parent,l.offset++}else{if(0!==m.offset)return!1;m.path=m.path.slice(0,-1)}}}is(r){return"position"===r||"model:position"===r}hasSameParentAs(r){return this.root===r.root&&"same"==_s(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=po._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 m;return l.containsPosition(this)||l.start.isEqual(this)?(m=this._getCombined(r.sourcePosition,r.targetPosition),r.sourcePosition.isBefore(r.targetPosition)&&(m=m._getTransformedByDeletion(r.deletionPosition,1))):m=this.isEqual(r.deletionPosition)?po._createAt(r.deletionPosition):this._getTransformedByMove(r.deletionPosition,r.graveyardPosition,1),m}_getTransformedByDeletion(r,l){const m=po._createAt(this);if(this.root!=r.root)return m;if("same"==_s(r.getParentPath(),this.getParentPath())){if(r.offsetthis.offset)return null;m.offset-=l}}else if("prefix"==_s(r.getParentPath(),this.getParentPath())){const b=r.path.length-1;if(r.offset<=this.path[b]){if(r.offset+l>this.path[b])return null;m.path[b]-=l}}return m}_getTransformedByInsertion(r,l){const m=po._createAt(this);if(this.root!=r.root)return m;if("same"==_s(r.getParentPath(),this.getParentPath()))(r.offsetl+1;){const M=b.maxOffset-m.offset;0!==M&&r.push(new zi(m,m.getShiftedBy(M))),m.path=m.path.slice(0,-1),m.offset++,b=b.parent}for(;m.path.length<=this.end.path.length;){const M=this.end.path[m.path.length-1],S=M-m.offset;0!==S&&r.push(new zi(m,m.getShiftedBy(S))),m.offset=M,m.path.push(0)}return r}getWalker(r={}){return r.boundaries=this,new el(r)}*getItems(r={}){r.boundaries=this,r.ignoreElementEnd=!0;const l=new el(r);for(const m of l)yield m.item}*getPositions(r={}){r.boundaries=this;const l=new el(r);yield l.position;for(const m of l)yield m.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 zi(this.start,this.end)]}getTransformedByOperations(r){const l=[new zi(this.start,this.end)];for(const m of r)for(let b=0;b0?new this(m,b):new this(b,m)}static _createIn(r){return new this(po._createAt(r,0),po._createAt(r,r.maxOffset))}static _createOn(r){return this._createFromPositionAndShift(po._createBefore(r),r.offsetSize)}static _createFromRanges(r){if(0===r.length)throw new Qn.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((M,S)=>M.start.isAfter(S.start)?1:-1);const m=r.indexOf(l),b=new this(l.start,l.end);if(m>0)for(let M=m-1;r[M].end.isEqual(b.start);M++)b.start=po._createAt(r[M].start);for(let M=m+1;M{if(l.viewPosition)return;const m=this._modelToViewMapping.get(l.modelPosition.parent);l.viewPosition=this.findPositionIn(m,l.modelPosition.offset)},{priority:"low"}),this.on("viewToModelPosition",(r,l)=>{if(l.modelPosition)return;const m=this.findMappedViewAncestor(l.viewPosition),b=this._viewToModelMapping.get(m),M=this._toModelOffset(l.viewPosition.parent,l.viewPosition.offset,m);l.modelPosition=po._createAt(b,M)},{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 m of this._elementToMarkerNames.get(r))this._unboundMarkerNames.add(m);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 m=this._markerNameToElements.get(l)||new Set;m.add(r);const b=this._elementToMarkerNames.get(r)||new Set;b.add(l),this._markerNameToElements.set(l,m),this._elementToMarkerNames.set(r,b)}unbindElementFromMarkerName(r,l){const m=this._markerNameToElements.get(l);m&&(m.delete(r),0==m.size&&this._markerNameToElements.delete(l));const b=this._elementToMarkerNames.get(r);b&&(b.delete(l),0==b.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 zi(this.toModelPosition(r.start),this.toModelPosition(r.end))}toViewRange(r){return new Yi(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 m={modelPosition:r,mapper:this,isPhantom:l.isPhantom};return this.fire("modelToViewPosition",m),m.viewPosition}markerNameToElements(r){const l=this._markerNameToElements.get(r);if(!l)return null;const m=new Set;for(const b of l)if(b.is("attributeElement"))for(const M of b.getElementsWithSameId())m.add(M);else m.add(b);return m}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,m){if(m!=r)return this._toModelOffset(r.parent,r.index,m)+this._toModelOffset(r,l,r);if(r.is("$text"))return l;let b=0;for(let M=0;M1?r[0]+":"+r[1]:r[0]}class o2{constructor(r){this.conversionApi=Pt({dispatcher:this},r)}convertChanges(r,l,m){for(const b of r.getMarkersToRemove())this.convertMarkerRemove(b.name,b.range,m);for(const b of r.getChanges())"insert"==b.type?this.convertInsert(zi._createFromPositionAndShift(b.position,b.length),m):"remove"==b.type?this.convertRemove(b.position,b.length,b.name,m):this.convertAttribute(b.range,b.attributeKey,b.attributeOldValue,b.attributeNewValue,m);for(const b of this.conversionApi.mapper.flushUnboundMarkerNames()){const M=l.get(b).getRange();this.convertMarkerRemove(b,M,m),this.convertMarkerAdd(b,M,m)}for(const b of r.getMarkersToAdd())this.convertMarkerAdd(b.name,b.range,m)}convertInsert(r,l){this.conversionApi.writer=l,this.conversionApi.consumable=this._createInsertConsumable(r);for(const m of r){const b=m.item,M={item:b,range:zi._createFromPositionAndShift(m.previousPosition,m.length)};this._testAndFire("insert",M);for(const S of b.getAttributeKeys())M.attributeKey=S,M.attributeOldValue=null,M.attributeNewValue=b.getAttribute(S),this._testAndFire("attribute:"+S,M)}this._clearConversionApi()}convertRemove(r,l,m,b){this.conversionApi.writer=b,this.fire("remove:"+m,{position:r,length:l},this.conversionApi),this._clearConversionApi()}convertAttribute(r,l,m,b,M){this.conversionApi.writer=M,this.conversionApi.consumable=this._createConsumableForRange(r,"attribute:"+l);for(const S of r){const q={item:S.item,range:zi._createFromPositionAndShift(S.previousPosition,S.length),attributeKey:l,attributeOldValue:m,attributeNewValue:b};this._testAndFire("attribute:"+l,q)}this._clearConversionApi()}convertSelection(r,l,m){const b=Array.from(l.getMarkersAtPosition(r.getFirstPosition()));if(this.conversionApi.writer=m,this.conversionApi.consumable=this._createSelectionConsumable(r,b),this.fire("selection",{selection:r},this.conversionApi),r.isCollapsed){for(const M of b){const S=M.getRange();if(!ur(r.getFirstPosition(),M,this.conversionApi.mapper))continue;const q={item:r,markerName:M.name,markerRange:S};this.conversionApi.consumable.test(r,"addMarker:"+M.name)&&this.fire("addMarker:"+M.name,q,this.conversionApi)}for(const M of r.getAttributeKeys()){const S={item:r,range:r.getFirstRange(),attributeKey:M,attributeOldValue:null,attributeNewValue:r.getAttribute(M)};this.conversionApi.consumable.test(r,"attribute:"+S.attributeKey)&&this.fire("attribute:"+S.attributeKey+":$text",S,this.conversionApi)}this._clearConversionApi()}}convertMarkerAdd(r,l,m){if(!l.root.document||"$graveyard"==l.root.rootName)return;this.conversionApi.writer=m;const b="addMarker:"+r,M=new mm;if(M.add(l,b),this.conversionApi.consumable=M,this.fire(b,{markerName:r,markerRange:l},this.conversionApi),M.test(l,b)){this.conversionApi.consumable=this._createConsumableForRange(l,b);for(const S of l.getItems()){if(!this.conversionApi.consumable.test(S,b))continue;const q={item:S,range:zi._createOn(S),markerName:r,markerRange:l};this.fire(b,q,this.conversionApi)}this._clearConversionApi()}}convertMarkerRemove(r,l,m){l.root.document&&"$graveyard"!=l.root.rootName&&(this.conversionApi.writer=m,this.fire("removeMarker:"+r,{markerName:r,markerRange:l},this.conversionApi),this._clearConversionApi())}_createInsertConsumable(r){const l=new mm;for(const m of r){const b=m.item;l.add(b,"insert");for(const M of b.getAttributeKeys())l.add(b,"attribute:"+M)}return l}_createConsumableForRange(r,l){const m=new mm;for(const b of r.getItems())m.add(b,l);return m}_createSelectionConsumable(r,l){const m=new mm;m.add(r,"selection");for(const b of l)m.add(r,"addMarker:"+b.name);for(const b of r.getAttributeKeys())m.add(r,"attribute:"+b);return m}_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 ur(d,r,l){const m=r.getRange(),b=Array.from(d.getAncestors());return b.shift(),b.reverse(),!b.some(M=>{if(m.containsItem(M))return!!l.toViewElement(M).getCustomProperty("addHighlight")})}io(o2,Za);class D1{constructor(r,l,m){this._lastRangeBackward=!1,this._ranges=[],this._attrs=new Map,r&&this.setTo(r,l,m)}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 m=!1;for(const b of r._ranges)if(l.isEqual(b)){m=!0;break}if(!m)return!1}return!0}*getRanges(){for(const r of this._ranges)yield new zi(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 zi(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 zi(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,m){if(null===r)this._setRanges([]);else if(r instanceof D1)this._setRanges(r.getRanges(),r.isBackward);else if(r&&"function"==typeof r.getRanges)this._setRanges(r.getRanges(),r.isBackward);else if(r instanceof zi)this._setRanges([r],!!l&&!!l.backward);else if(r instanceof po)this._setRanges([new zi(r)]);else if(r instanceof qi){const b=!!m&&!!m.backward;let M;if("in"==l)M=zi._createIn(r);else if("on"==l)M=zi._createOn(r);else{if(void 0===l)throw new Qn.b("model-selection-setTo-required-second-parameter: selection.setTo requires the second parameter when the first parameter is a node.",[this,r]);M=new zi(po._createAt(r,l))}this._setRanges([M],b)}else{if(!Ba(r))throw new Qn.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 m=(r=Array.from(r)).some(b=>{if(!(b instanceof zi))throw new Qn.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(M=>!M.isEqual(b))});if(r.length!==this._ranges.length||m){this._removeAllRanges();for(const b of r)this._pushRange(b);this._lastRangeBackward=!!l,this.fire("change:range",{directChange:!0})}}setFocus(r,l){if(null===this.anchor)throw new Qn.b("model-selection-setFocus-no-ranges: Cannot set selection focus if there are no ranges in selection.",[this,r]);const m=po._createAt(r,l);if("same"==m.compareWith(this.focus))return;const b=this.anchor;this._ranges.length&&this._popRange(),"before"==m.compareWith(b)?(this._pushRange(new zi(m,b)),this._lastRangeBackward=!0):(this._pushRange(new zi(b,m)),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 m=mf(l.start,r);m&&qh(m,l)&&(yield m);for(const M of l.getWalker()){const S=M.item;"elementEnd"==M.type&&_m(S,r,l)&&(yield S)}const b=mf(l.end,r);b&&!l.end.isTouching(po._createAt(b,0))&&qh(b,l)&&(yield b)}}containsEntireContent(r=this.anchor.root){const l=po._createAt(r,0),m=po._createAt(r,"end");return l.isTouching(this.getFirstPosition())&&m.isTouching(this.getLastPosition())}_pushRange(r){this._checkRange(r),this._ranges.push(new zi(r.start,r.end))}_checkRange(r){for(let l=0;l0;)this._popRange()}_popRange(){this._ranges.pop()}}function Ih(d,r){return!r.has(d)&&(r.add(d),d.root.document.model.schema.isBlock(d)&&d.parent)}function _m(d,r,l){return Ih(d,r)&&qh(d,l)}function mf(d,r){const l=d.parent.root.document.model.schema,m=d.parent.getAncestors({parentFirst:!0,includeSelf:!0});let b=!1;const M=m.find(S=>!b&&(b=l.isLimit(S),!b&&Ih(S,r)));return m.forEach(S=>r.add(S)),M}function qh(d,r){const l=function(m){const b=m.root.document.model.schema;let M=m.parent;for(;M;){if(b.isBlock(M))return M;M=M.parent}}(d);return!l||!r.containsRange(zi._createOn(l),!0)}io(D1,Za);class Pp extends zi{constructor(r,l){super(r,l),Eu.call(this)}detach(){this.stopListening()}is(r){return"liveRange"===r||"model:liveRange"===r||"range"==r||"model:range"===r}toRange(){return new zi(this.start,this.end)}static fromRange(r){return new Pp(r.start,r.end)}}function Eu(){this.listenTo(this.root.document.model,"applyOperation",(d,r)=>{const l=r[0];l.isDocumentOperation&&O3.call(this,l)},{priority:"low"})}function O3(d){const r=this.getTransformedByOperation(d),l=zi._createFromRanges(r),m=!l.isEqual(this),b=function(S,q){switch(q.type){case"insert":return S.containsPosition(q.position);case"move":case"remove":case"reinsert":case"merge":return S.containsPosition(q.sourcePosition)||S.start.isEqual(q.sourcePosition)||S.containsPosition(q.targetPosition);case"split":return S.containsPosition(q.splitPosition)||S.containsPosition(q.insertionPosition)}return!1}(this,d);let M=null;if(m){"$graveyard"==l.root.rootName&&(M="remove"==d.type?d.sourcePosition:d.deletionPosition);const S=this.toRange();this.start=l.start,this.end=l.end,this.fire("change:range",S,{deletionPosition:M})}else b&&this.fire("change:content",this.toRange(),{deletionPosition:M})}io(Pp,Za);class Fu{constructor(r){this._selection=new xl(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,m){this._selection.setTo(r,l,m)}_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:")}}io(Fu,Za);class xl extends D1{constructor(r){super(),this.markers=new Nr({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,m)=>{const b=m[0];b.isDocumentOperation&&"marker"!=b.type&&"rename"!=b.type&&"noop"!=b.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 Qn.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,m)=>{!function(b,M){const S=b.document.differ;for(const q of S.getChanges()){if("insert"!=q.type)continue;const B=q.position.parent;q.length===B.maxOffset&&b.enqueueChange(M,at=>{const _t=Array.from(B.getAttributeKeys()).filter(Zt=>Zt.startsWith("selection:"));for(const Zt of _t)at.removeAttribute(Zt,B)})}}(this._model,m)})}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=M.deletionPosition;const S=this._ranges.indexOf(l);this._ranges.splice(S,1),l.detach()}}),l}_updateMarkers(){const r=[];let l=!1;for(const b of this._model.markers){const M=b.getRange();for(const S of this.getRanges())M.containsRange(S,!S.isCollapsed)&&r.push(b)}const m=Array.from(this.markers);for(const b of r)this.markers.has(b)||(this.markers.add(b),l=!0);for(const b of Array.from(this.markers))r.includes(b)||(this.markers.remove(b),l=!0);l&&this.fire("change:marker",{oldMarkers:m,directChange:!1})}_updateAttributes(r){const l=Wa(this._getSurroundingAttributes()),m=Wa(this.getAttributes());if(r)this._attributePriority=new Map,this._attrs=new Map;else for(const[M,S]of this._attributePriority)"low"==S&&(this._attrs.delete(M),this._attributePriority.delete(M));this._setAttributesTo(l);const b=[];for(const[M,S]of this.getAttributes())m.has(M)&&m.get(M)===S||b.push(M);for(const[M]of m)this.hasAttribute(M)||b.push(M);b.length>0&&this.fire("change:attribute",{attributeKeys:b,directChange:!1})}_setAttribute(r,l,m=!0){const b=m?"normal":"low";return("low"!=b||"normal"!=this._attributePriority.get(r))&&super.getAttribute(r)!==l&&(this._attrs.set(r,l),this._attributePriority.set(r,b),!0)}_removeAttribute(r,l=!0){const m=l?"normal":"low";return!("low"==m&&"normal"==this._attributePriority.get(r)||(this._attributePriority.set(r,m),!super.hasAttribute(r)||(this._attrs.delete(r),0)))}_setAttributesTo(r){const l=new Set;for(const[m,b]of this.getAttributes())r.get(m)!==b&&this._removeAttribute(m,!1);for(const[m,b]of r)this._setAttribute(m,b,!1)&&l.add(m);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 m=null;if(this.isCollapsed){const b=r.textNode?r.textNode:r.nodeBefore,M=r.textNode?r.textNode:r.nodeAfter;if(this.isGravityOverridden||(m=fm(b)),m||(m=fm(M)),!this.isGravityOverridden&&!m){let S=b;for(;S&&!m;)S=S.previousSibling,m=fm(S)}if(!m){let S=M;for(;S&&!m;)S=S.nextSibling,m=fm(S)}m||(m=this._getStoredAttributes())}else{const b=this.getFirstRange();for(const M of b){if(M.item.is("element")&&l.isObject(M.item))break;if("text"==M.type){m=M.item.getAttributes();break}}}return m}_fixGraveyardSelection(r){const l=this._model.schema.getNearestSelectionRange(r);l&&this._pushRange(l)}}function fm(d){return d instanceof ga||d instanceof Qi?d.getAttributes():null}class _f{constructor(r){this._dispatchers=r}add(r){for(const l of this._dispatchers)r(l);return this}}var Bs=function(d){return uu(d,5)};class Ps extends _f{elementToElement(r){return this.add(function(l){return(l=Bs(l)).view=Sp(l.view,"container"),m=>{var b;m.on("insert:"+l.model,(b=l.view,(M,S,q)=>{const B=b(S.item,q.writer);if(!B||!q.consumable.consume(S.item,"insert"))return;const at=q.mapper.toViewPosition(S.range.start);q.mapper.bindElements(S.item,B),q.writer.insert(at,B)}),{priority:l.converterPriority||"normal"})}}(r))}attributeToElement(r){return this.add(function(l){let m="attribute:"+((l=Bs(l)).model.key?l.model.key:l.model);if(l.model.name&&(m+=":"+l.model.name),l.model.values)for(const M of l.model.values)l.view[M]=Sp(l.view[M],"attribute");else l.view=Sp(l.view,"attribute");const b=Rh(l);return M=>{var S;M.on(m,(S=b,(q,B,at)=>{const _t=S(B.attributeOldValue,at.writer),Zt=S(B.attributeNewValue,at.writer);if(!_t&&!Zt||!at.consumable.consume(B.item,q.name))return;const _e=at.writer;if(B.item instanceof D1||B.item instanceof Fu)_e.wrap(_e.document.selection.getFirstRange(),Zt);else{let mn=at.mapper.toViewRange(B.range);null!==B.attributeOldValue&&_t&&(mn=_e.unwrap(mn,_t)),null!==B.attributeNewValue&&Zt&&_e.wrap(mn,Zt)}}),{priority:l.converterPriority||"normal"})}}(r))}attributeToAttribute(r){return this.add(function(l){let m="attribute:"+((l=Bs(l)).model.key?l.model.key:l.model);if(l.model.name&&(m+=":"+l.model.name),l.model.values)for(const M of l.model.values)l.view[M]=a2(l.view[M]);else l.view=a2(l.view);const b=Rh(l);return M=>{var S;M.on(m,(S=b,(q,B,at)=>{const _t=S(B.attributeOldValue,B),Zt=S(B.attributeNewValue,B);if(!_t&&!Zt||!at.consumable.consume(B.item,q.name))return;const _e=at.mapper.toViewElement(B.item),Be=at.writer;if(!_e)throw new Qn.b("conversion-attribute-to-attribute-on-text: Trying to convert text node's attribute with attribute-to-attribute converter.",[B,at]);if(null!==B.attributeOldValue&&_t)if("class"==_t.key){const mn=Array.isArray(_t.value)?_t.value:[_t.value];for(const Mn of mn)Be.removeClass(Mn,_e)}else if("style"==_t.key){const mn=Object.keys(_t.value);for(const Mn of mn)Be.removeStyle(Mn,_e)}else Be.removeAttribute(_t.key,_e);if(null!==B.attributeNewValue&&Zt)if("class"==Zt.key){const mn=Array.isArray(Zt.value)?Zt.value:[Zt.value];for(const Mn of mn)Be.addClass(Mn,_e)}else if("style"==Zt.key){const mn=Object.keys(Zt.value);for(const Mn of mn)Be.setStyle(Mn,Zt.value[Mn],_e)}else Be.setAttribute(Zt.key,Zt.value,_e)}),{priority:l.converterPriority||"normal"})}}(r))}markerToElement(r){return this.add(function(l){return(l=Bs(l)).view=Sp(l.view,"ui"),m=>{var b;m.on("addMarker:"+l.model,(b=l.view,(M,S,q)=>{S.isOpening=!0;const B=b(S,q.writer);S.isOpening=!1;const at=b(S,q.writer);if(!B||!at)return;const _t=S.markerRange;if(_t.isCollapsed&&!q.consumable.consume(_t,M.name))return;for(const Be of _t)if(!q.consumable.consume(Be.item,M.name))return;const Zt=q.mapper,_e=q.writer;_e.insert(Zt.toViewPosition(_t.start),B),q.mapper.bindElementToMarker(B,S.markerName),_t.isCollapsed||(_e.insert(Zt.toViewPosition(_t.end),at),q.mapper.bindElementToMarker(at,S.markerName)),M.stop()}),{priority:l.converterPriority||"normal"}),m.on("removeMarker:"+l.model,(M,S,q)=>{const B=q.mapper.markerNameToElements(S.markerName);if(B){for(const at of B)q.mapper.unbindElementFromMarkerName(at,S.markerName),q.writer.clear(q.writer.createRangeOn(at),at);q.writer.clearClonedElementsGroup(S.markerName),M.stop()}},{priority:l.converterPriority||"normal"})}}(r))}markerToHighlight(r){return this.add(function(l){return m=>{var b,M;m.on("addMarker:"+l.model,(b=l.view,(M,S,q)=>{if(!S.item||!(S.item instanceof D1||S.item instanceof Fu||S.item.is("$textProxy")))return;const B=hf(b,S,q);if(!B||!q.consumable.consume(S.item,M.name))return;const at=q.writer,_t=kp(at,B),Zt=at.document.selection;if(S.item instanceof D1||S.item instanceof Fu)at.wrap(Zt.getFirstRange(),_t,Zt);else{const _e=q.mapper.toViewRange(S.range),Be=at.wrap(_e,_t);for(const mn of Be.getItems())if(mn.is("attributeElement")&&mn.isSimilar(_t)){q.mapper.bindElementToMarker(mn,S.markerName);break}}}),{priority:l.converterPriority||"normal"}),m.on("addMarker:"+l.model,(M=l.view,(S,q,B)=>{if(!(q.item&&q.item instanceof Ra))return;const at=hf(M,q,B);if(!at||!B.consumable.test(q.item,S.name))return;const _t=B.mapper.toViewElement(q.item);if(_t&&_t.getCustomProperty("addHighlight")){B.consumable.consume(q.item,S.name);for(const Zt of zi._createIn(q.item))B.consumable.consume(Zt.item,S.name);_t.getCustomProperty("addHighlight")(_t,at,B.writer),B.mapper.bindElementToMarker(_t,q.markerName)}}),{priority:l.converterPriority||"normal"}),m.on("removeMarker:"+l.model,function(M){return(S,q,B)=>{if(q.markerRange.isCollapsed)return;const at=hf(M,q,B);if(!at)return;const _t=kp(B.writer,at),Zt=B.mapper.markerNameToElements(q.markerName);if(Zt){for(const _e of Zt)B.mapper.unbindElementFromMarkerName(_e,q.markerName),_e.is("attributeElement")?B.writer.unwrap(B.writer.createRangeOn(_e),_t):_e.getCustomProperty("removeHighlight")(_e,at.id,B.writer);B.writer.clearClonedElementsGroup(q.markerName),S.stop()}}}(l.view),{priority:l.converterPriority||"normal"})}}(r))}markerToData(r){return this.add(function(l){const m=(l=Bs(l)).model;return l.view||(l.view=b=>({group:m,name:b.substr(l.model.length+1)})),b=>{var M,S;b.on("addMarker:"+m,(M=l.view,(S,q,B)=>{const at=M(q.markerName);if(!at)return;const _t=q.markerRange;B.consumable.consume(_t,S.name)&&(ff(_t,!1,B,q,at),ff(_t,!0,B,q,at),S.stop())}),{priority:l.converterPriority||"normal"}),b.on("removeMarker:"+m,(S=l.view,(q,B,at)=>{const _t=S(B.markerName);if(!_t)return;const Zt=at.mapper.markerNameToElements(B.markerName);if(Zt){for(const Be of Zt)at.mapper.unbindElementFromMarkerName(Be,B.markerName),Be.is("containerElement")?(_e(`data-${_t.group}-start-before`,Be),_e(`data-${_t.group}-start-after`,Be),_e(`data-${_t.group}-end-before`,Be),_e(`data-${_t.group}-end-after`,Be)):at.writer.clear(at.writer.createRangeOn(Be),Be);at.writer.clearClonedElementsGroup(B.markerName),q.stop()}function _e(Be,mn){if(mn.hasAttribute(Be)){const Mn=new Set(mn.getAttribute(Be).split(","));Mn.delete(_t.name),0==Mn.size?at.writer.removeAttribute(Be,mn):at.writer.setAttribute(Be,Array.from(Mn).join(","),mn)}}}),{priority:l.converterPriority||"normal"})}}(r))}}function kp(d,r){const l=d.createAttributeElement("span",r.attributes);return r.classes&&l._addClass(r.classes),r.priority&&(l._priority=r.priority),l._id=r.id,l}function ff(d,r,l,m,b){const M=r?d.start:d.end;if(l.schema.checkChild(M,"$text"))!function(S,q,B,at,_t){const Be=B.writer.createUIElement(`${_t.group}-${q?"start":"end"}`,_t.name?{name:_t.name}:null);B.writer.insert(S,Be),B.mapper.bindElementToMarker(Be,at.markerName)}(l.mapper.toViewPosition(M),r,l,m,b);else{let S,q;r&&M.nodeAfter||!r&&!M.nodeBefore?(S=M.nodeAfter,q=!0):(S=M.nodeBefore,q=!1),function(B,at,_t,Zt,_e,Be){const mn=`data-${Be.group}-${at?"start":"end"}-${_t?"before":"after"}`,Mn=B.hasAttribute(mn)?B.getAttribute(mn).split(","):[];Mn.unshift(Be.name),Zt.writer.setAttribute(mn,Mn.join(","),B),Zt.mapper.bindElementToMarker(B,_e.markerName)}(l.mapper.toViewElement(S),r,q,l,m,b)}}function Sp(d,r){return"function"==typeof d?d:(l,m)=>function(b,M,S){let q;"string"==typeof b&&(b={name:b});const B=Object.assign({},b.attributes);if(q="container"==S?M.createContainerElement(b.name,B):"attribute"==S?M.createAttributeElement(b.name,B,{priority:b.priority||Ms.DEFAULT_PRIORITY}):M.createUIElement(b.name,B),b.styles){const at=Object.keys(b.styles);for(const _t of at)M.setStyle(_t,b.styles[_t],q)}if(b.classes){const at=b.classes;if("string"==typeof at)M.addClass(at,q);else for(const _t of at)M.addClass(_t,q)}return q}(d,m,r)}function Rh(d){return d.model.values?(r,l)=>{const m=d.view[r];return m?m(r,l):null}:d.view}function a2(d){return"string"==typeof d?r=>({key:d,value:r}):"object"==typeof d?d.value?()=>d:r=>({key:d.key,value:r}):d}function hf(d,r,l){const m="function"==typeof d?d(r,l):d;return m?(m.priority||(m.priority=10),m.id||(m.id=r.markerName),m):null}class gf extends _f{elementToElement(r){return this.add(vf(r))}elementToAttribute(r){return this.add(function(l){rp(l=Bs(l));const m=c_(l,!1),b=n1(l.view),M=b?"element:"+b:"element";return S=>{S.on(M,m,{priority:l.converterPriority||"low"})}}(r))}attributeToAttribute(r){return this.add(function(l){let m=null;("string"==typeof(l=Bs(l)).view||l.view.key)&&(m=function(M){"string"==typeof M.view&&(M.view={key:M.view});const S=M.view.key;let q;return q="class"==S||"style"==S?{["class"==S?"classes":"styles"]:M.view.value}:{attributes:{[S]:void 0===M.view.value?/[\s\S]*/:M.view.value}},M.view.name&&(q.name=M.view.name),M.view=q,S}(l)),rp(l,m);const b=c_(l,!0);return M=>{M.on("element",b,{priority:l.converterPriority||"low"})}}(r))}elementToMarker(r){return console.warn(Object(Qn.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(m){const b=m.model;m.model=(M,S)=>{const q="string"==typeof b?b:b(M);return S.createElement("$marker",{"data-name":q})}}(l=Bs(l)),vf(l)}(r))}dataToMarker(r){return this.add(function(l){(l=Bs(l)).model||(l.model=M=>M?l.view+":"+M:l.view);const m=xf(r2(l,"start")),b=xf(r2(l,"end"));return M=>{M.on("element:"+l.view+"-start",m,{priority:l.converterPriority||"normal"}),M.on("element:"+l.view+"-end",b,{priority:l.converterPriority||"normal"});const S=as.get("low"),q=as.get("highest"),B=as.get(l.converterPriority)/q;var at;M.on("element",(at=l,(_t,Zt,_e)=>{const Be="data-"+at.view;function mn(Mn,In){for(const Gn of In){const Fi=at.model(Gn),Ji=_e.writer.createElement("$marker",{"data-name":Fi});_e.writer.insert(Ji,Mn),Zt.modelCursor=Zt.modelCursor.isEqual(Mn)?Zt.modelCursor.getShiftedBy(1):Zt.modelCursor._getTransformedByInsertion(Mn,1),Zt.modelRange=Zt.modelRange._getTransformedByInsertion(Mn,1)[0]}}Zt.modelRange||(Zt=Object.assign(Zt,_e.convertChildren(Zt.viewItem,Zt.modelCursor))),_e.consumable.consume(Zt.viewItem,{attributes:Be+"-end-after"})&&mn(Zt.modelRange.end,Zt.viewItem.getAttribute(Be+"-end-after").split(",")),_e.consumable.consume(Zt.viewItem,{attributes:Be+"-start-after"})&&mn(Zt.modelRange.end,Zt.viewItem.getAttribute(Be+"-start-after").split(",")),_e.consumable.consume(Zt.viewItem,{attributes:Be+"-end-before"})&&mn(Zt.modelRange.start,Zt.viewItem.getAttribute(Be+"-end-before").split(",")),_e.consumable.consume(Zt.viewItem,{attributes:Be+"-start-before"})&&mn(Zt.modelRange.start,Zt.viewItem.getAttribute(Be+"-start-before").split(","))}),{priority:S+B})}}(r))}}function vf(d){const r=xf(d=Bs(d)),l=n1(d.view),m=l?"element:"+l:"element";return b=>{b.on(m,r,{priority:d.converterPriority||"normal"})}}function n1(d){return"string"==typeof d?d:"object"==typeof d&&"string"==typeof d.name?d.name:null}function xf(d){const r=d.view?new ae(d.view):null;return(l,m,b)=>{let M={};if(r){const _e=r.match(m.viewItem);if(!_e)return;M=_e.match}M.name=!0;const S=(at=b.writer,(q=d.model)instanceof Function?q(m.viewItem,at):at.createElement(q));var q,at;if(!S||!b.consumable.test(m.viewItem,M))return;const _t=b.splitToAllowedParent(S,m.modelCursor);if(!_t)return;b.writer.insert(S,_t.position),b.convertChildren(m.viewItem,b.writer.createPositionAt(S,0)),b.consumable.consume(m.viewItem,M);const Zt=b.getSplitParts(S);m.modelRange=new zi(b.writer.createPositionBefore(S),b.writer.createPositionAfter(Zt[Zt.length-1])),m.modelCursor=_t.cursorParent?b.writer.createPositionAt(_t.cursorParent,0):m.modelRange.end}}function rp(d,r=null){d.model={key:"object"!=typeof d.model?d.model:d.model.key,value:"object"!=typeof d.model||void 0===d.model.value?null===r||(M=>M.getAttribute(r)):d.model.value}}function c_(d,r){const l=new ae(d.view);return(m,b,M)=>{const S=l.match(b.viewItem);if(!S)return;const q=d.model.key,B="function"==typeof d.model.value?d.model.value(b.viewItem):d.model.value;null!==B&&(function(at,_t){const Zt="function"==typeof at?at(_t):at;return!("object"==typeof Zt&&!n1(Zt)||Zt.classes||Zt.attributes||Zt.styles)}(d.view,b.viewItem)?S.match.name=!0:delete S.match.name,M.consumable.test(b.viewItem,S.match)&&(b.modelRange||(b=Object.assign(b,M.convertChildren(b.viewItem,b.modelCursor))),function(at,_t,Zt,_e){let Be=!1;for(const mn of Array.from(at.getItems({shallow:Zt})))_e.schema.checkAttribute(mn,_t.key)&&(_e.writer.setAttribute(_t.key,_t.value,mn),Be=!0);return Be}(b.modelRange,{key:q,value:B},r,M)&&M.consumable.consume(b.viewItem,S.match)))}}function r2(d,r){const l={};return l.view=d.view+"-"+r,l.model=(m,b)=>{const M=m.getAttribute("name"),S=d.model(M);return b.createElement("$marker",{"data-name":S})},l}class bf{constructor(r,l){this.model=r,this.view=new ni(l),this.mapper=new n2,this.downcastDispatcher=new o2({mapper:this.mapper,schema:r.schema});const m=this.model.document,b=m.selection,M=this.model.markers;var S,q;this.listenTo(this.model,"_beforeChanges",()=>{this.view._disableRendering(!0)},{priority:"highest"}),this.listenTo(this.model,"_afterChanges",()=>{this.view._disableRendering(!1)},{priority:"lowest"}),this.listenTo(m,"change",()=>{this.view.change(S=>{this.downcastDispatcher.convertChanges(m.differ,M,S),this.downcastDispatcher.convertSelection(b,M,S)})},{priority:"low"}),this.listenTo(this.view.document,"selectionChange",(S=this.model,q=this.mapper,(B,at)=>{const _t=at.newSelection,Zt=new D1,_e=[];for(const Be of _t.getRanges())_e.push(q.toModelRange(Be));Zt.setTo(_e,{backward:_t.isBackward}),Zt.isEqual(S.document.selection)||S.change(Be=>{Be.setSelection(Zt)})})),this.downcastDispatcher.on("insert:$text",(S,q,B)=>{if(!B.consumable.consume(q.item,"insert"))return;const at=B.writer,_t=B.mapper.toViewPosition(q.range.start),Zt=at.createText(q.item.data);at.insert(_t,Zt)},{priority:"lowest"}),this.downcastDispatcher.on("remove",(S,q,B)=>{const at=B.mapper.toViewPosition(q.position),_t=q.position.getShiftedBy(q.length),Zt=B.mapper.toViewPosition(_t,{isPhantom:!0}),_e=B.writer.createRange(at,Zt),Be=B.writer.remove(_e.getTrimmed());for(const mn of B.writer.createRangeIn(Be).getItems())B.mapper.unbindViewElement(mn)},{priority:"low"}),this.downcastDispatcher.on("selection",(S,q,B)=>{const at=B.writer,_t=at.document.selection;for(const Zt of _t.getRanges())Zt.isCollapsed&&Zt.end.parent.isAttached()&&B.writer.mergeAttributes(Zt.start);at.setSelection(null)},{priority:"low"}),this.downcastDispatcher.on("selection",(S,q,B)=>{const at=q.selection;if(at.isCollapsed||!B.consumable.consume(at,"selection"))return;const _t=[];for(const Zt of at.getRanges()){const _e=B.mapper.toViewRange(Zt);_t.push(_e)}B.writer.setSelection(_t,{backward:at.isBackward})},{priority:"low"}),this.downcastDispatcher.on("selection",(S,q,B)=>{const at=q.selection;if(!at.isCollapsed||!B.consumable.consume(at,"selection"))return;const _t=B.writer,Zt=at.getFirstPosition(),_e=B.mapper.toViewPosition(Zt),Be=_t.breakAttributes(_e);_t.setSelection(Be)},{priority:"low"}),this.view.document.roots.bindTo(this.model.document.roots).using(S=>{if("$graveyard"==S.rootName)return null;const q=new wi(this.view.document,S.name);return q.rootName=S.rootName,this.mapper.bindElements(S,q),q})}destroy(){this.view.destroy(),this.stopListening()}}io(bf,kt);class Hh{constructor(){this._commands=new Map}add(r,l){this._commands.set(r,l)}get(r){return this._commands.get(r)}execute(r,...l){const m=this.get(r);if(!m)throw new Qn.b("commandcollection-command-not-found: Command does not exist.",this,{commandName:r});return m.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 s2{constructor(){this._consumables=new Map}add(r,l){let m;r.is("$text")||r.is("documentFragment")?this._consumables.set(r,!0):(this._consumables.has(r)?m=this._consumables.get(r):(m=new l_(r),this._consumables.set(r,m)),m.add(l))}test(r,l){const m=this._consumables.get(r);return void 0===m?null:r.is("$text")||r.is("documentFragment")?m:m.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 m=this._consumables.get(r);void 0!==m&&(r.is("$text")||r.is("documentFragment")?this._consumables.set(r,!0):m.revert(l))}static consumablesFromElement(r){const l={element:r,name:!0,attributes:[],classes:[],styles:[]},m=r.getAttributeKeys();for(const S of m)"style"!=S&&"class"!=S&&l.attributes.push(S);const b=r.getClassNames();for(const S of b)l.classes.push(S);const M=r.getStyleNames();for(const S of M)l.styles.push(S);return l}static createFrom(r,l){if(l||(l=new s2(r)),r.is("$text"))return l.add(r),l;r.is("element")&&l.add(r,s2.consumablesFromElement(r)),r.is("documentFragment")&&l.add(r);for(const m of r.getChildren())l=s2.createFrom(m,l);return l}}class l_{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 m=this._test(l,r[l]);if(!0!==m)return m}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 m=Sn(l)?l:[l],b=this._consumables[r];for(const M of m){if("attributes"===r&&("class"===M||"style"===M))throw new Qn.b("viewconsumable-invalid-attribute: Classes and styles should be handled separately.",this);if(b.set(M,!0),"styles"===r)for(const S of this.element.document.stylesProcessor.getRelatedStyles(M))b.set(S,!0)}}_test(r,l){const m=Sn(l)?l:[l],b=this._consumables[r];for(const M of m)if("attributes"!==r||"class"!==M&&"style"!==M){const S=b.get(M);if(void 0===S)return null;if(!S)return!1}else{const S="class"==M?"classes":"styles",q=this._test(S,[...this._consumables[S].keys()]);if(!0!==q)return q}return!0}_consume(r,l){const m=Sn(l)?l:[l],b=this._consumables[r];for(const M of m)if("attributes"!==r||"class"!==M&&"style"!==M){if(b.set(M,!1),"styles"==r)for(const S of this.element.document.stylesProcessor.getRelatedStyles(M))b.set(S,!1)}else{const S="class"==M?"classes":"styles";this._consume(S,[...this._consumables[S].keys()])}}_revert(r,l){const m=Sn(l)?l:[l],b=this._consumables[r];for(const M of m)if("attributes"!==r||"class"!==M&&"style"!==M)!1===b.get(M)&&b.set(M,!0);else{const S="class"==M?"classes":"styles";this._revert(S,[...this._consumables[S].keys()])}}}class Cf{constructor(){this._sourceDefinitions={},this._attributeProperties={},this.decorate("checkChild"),this.decorate("checkAttribute"),this.on("checkAttribute",(r,l)=>{l[0]=new P1(l[0])},{priority:"highest"}),this.on("checkChild",(r,l)=>{l[0]=new P1(l[0]),l[1]=this.getDefinition(l[1])},{priority:"highest"})}register(r,l){if(this._sourceDefinitions[r])throw new Qn.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 Qn.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 m=this.getDefinition(r.last);return!!m&&m.allowAttributes.includes(l)}checkMerge(r,l=null){if(r instanceof po){const m=r.nodeBefore,b=r.nodeAfter;if(!(m instanceof Ra))throw new Qn.b("schema-check-merge-no-element-before: The node before the merge position must be an element.",this);if(!(b instanceof Ra))throw new Qn.b("schema-check-merge-no-element-after: The node after the merge position must be an element.",this);return this.checkMerge(m,b)}for(const m of l.getChildren())if(!this.checkChild(r,m))return!1;return!0}addChildCheck(r){this.on("checkChild",(l,[m,b])=>{if(!b)return;const M=r(m,b);"boolean"==typeof M&&(l.stop(),l.return=M)},{priority:"high"})}addAttributeCheck(r){this.on("checkAttribute",(l,[m,b])=>{const M=r(m,b);"boolean"==typeof M&&(l.stop(),l.return=M)},{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 po?r.parent:(r instanceof zi?[r]:Array.from(r.getRanges())).reduce((m,b)=>{const M=b.getCommonAncestor();return m?m.getCommonAncestor(M,{includeSelf:!0}):M},null);!this.isLimit(l)&&l.parent;)l=l.parent;return l}checkAttributeInSelection(r,l){if(r.isCollapsed){const m=[...r.getFirstPosition().getAncestors(),new Qi("",r.getAttributes())];return this.checkAttribute(m,l)}{const m=r.getRanges();for(const b of m)for(const M of b)if(this.checkAttribute(M.item,l))return!0}return!1}*getValidRanges(r,l){r=function*(m){for(const b of m)yield*b.getMinimalFlatRanges()}(r);for(const m of r)yield*this._getValidRangesForRange(m,l)}getNearestSelectionRange(r,l="both"){if(this.checkChild(r,"$text"))return new zi(r);let m,b;const M=r.getAncestors().reverse().find(S=>this.isLimit(S))||r.root;"both"!=l&&"backward"!=l||(m=new el({boundaries:zi._createIn(M),startPosition:r,direction:"backward"})),"both"!=l&&"forward"!=l||(b=new el({boundaries:zi._createIn(M),startPosition:r}));for(const S of function*(q,B){let at=!1;for(;!at;){if(at=!0,q){const _t=q.next();_t.done||(at=!1,yield{walker:q,value:_t.value})}if(B){const _t=B.next();_t.done||(at=!1,yield{walker:B,value:_t.value})}}}(m,b)){const B=S.value;if(B.type==(S.walker==m?"elementEnd":"elementStart")&&this.isObject(B.item))return zi._createOn(B.item);if(this.checkChild(B.nextPosition,"$text"))return new zi(B.nextPosition)}return null}findAllowedParent(r,l){let m=r.parent;for(;m;){if(this.checkChild(m,l))return m;if(this.isLimit(m))return null;m=m.parent}return null}removeDisallowedAttributes(r,l){for(const m of r)if(m.is("$text"))Tf(this,m,l);else{const b=zi._createIn(m).getPositions();for(const M of b)Tf(this,M.nodeBefore||M.parent,l)}}createContext(r){return new P1(r)}_clearCache(){this._compiledDefinitions=null}_compile(){const r={},l=this._sourceDefinitions,m=Object.keys(l);for(const b of m)r[b]=c2(l[b],b);for(const b of m)u_(r,b);for(const b of m)yf(r,b);for(const b of m)rd(r,b),_u(r,b);for(const b of m)Yh(r,b),s0(r,b);this._compiledDefinitions=r}_checkContextMatch(r,l,m=l.length-1){const b=l.getItem(m);if(r.allowIn.includes(b.name)){if(0==m)return!0;{const M=this.getDefinition(b);return this._checkContextMatch(M,l,m-1)}}return!1}*_getValidRangesForRange(r,l){let m=r.start,b=r.start;for(const M of r.getItems({shallow:!0}))M.is("element")&&(yield*this._getValidRangesForRange(zi._createIn(M),l)),this.checkAttribute(M,l)||(m.isEqual(b)||(yield new zi(m,b)),m=po._createAfter(M)),b=po._createAfter(M);m.isEqual(b)||(yield new zi(m,b))}}io(Cf,kt);class P1{constructor(r){if(r instanceof P1)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(c0)}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 P1([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 c2(d,r){const l={name:r,allowIn:[],allowContentOf:[],allowWhere:[],allowAttributes:[],allowAttributesOf:[],inheritTypesFrom:[]};return function(m,b){for(const M of m){const S=Object.keys(M).filter(q=>q.startsWith("is"));for(const q of S)b[q]=M[q]}}(d,l),xs(d,l,"allowIn"),xs(d,l,"allowContentOf"),xs(d,l,"allowWhere"),xs(d,l,"allowAttributes"),xs(d,l,"allowAttributesOf"),xs(d,l,"inheritTypesFrom"),function(m,b){for(const M of m){const S=M.inheritAllFrom;S&&(b.allowContentOf.push(S),b.allowWhere.push(S),b.allowAttributesOf.push(S),b.inheritTypesFrom.push(S))}}(d,l),l}function u_(d,r){for(const l of d[r].allowContentOf)d[l]&&Op(d,l).forEach(m=>{m.allowIn.push(r)});delete d[r].allowContentOf}function yf(d,r){for(const l of d[r].allowWhere){const m=d[l];m&&d[r].allowIn.push(...m.allowIn)}delete d[r].allowWhere}function rd(d,r){for(const l of d[r].allowAttributesOf){const m=d[l];m&&d[r].allowAttributes.push(...m.allowAttributes)}delete d[r].allowAttributesOf}function _u(d,r){const l=d[r];for(const m of l.inheritTypesFrom){const b=d[m];if(b){const M=Object.keys(b).filter(S=>S.startsWith("is"));for(const S of M)S in l||(l[S]=b[S])}}delete l.inheritTypesFrom}function Yh(d,r){const l=d[r],m=l.allowIn.filter(b=>d[b]);l.allowIn=Array.from(new Set(m))}function s0(d,r){const l=d[r];l.allowAttributes=Array.from(new Set(l.allowAttributes))}function xs(d,r,l){for(const m of d)"string"==typeof m[l]?r[l].push(m[l]):Array.isArray(m[l])&&r[l].push(...m[l])}function Op(d,r){const l=d[r];return(m=d,Object.keys(m).map(b=>m[b])).filter(b=>b.allowIn.includes(l.name));var m}function c0(d){return"string"==typeof d?{name:d,*getAttributeKeys(){},getAttribute(){}}:{name:d.is("element")?d.name:"$text",*getAttributeKeys(){yield*d.getAttributeKeys()},getAttribute:r=>d.getAttribute(r)}}function Tf(d,r,l){for(const m of r.getAttributeKeys())d.checkAttribute(r,m)||l.removeAttribute(m,r)}class l0{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,m=["$root"]){this.fire("viewCleanup",r),this._modelCursor=function(S,q){let B;for(const at of new P1(S)){const _t={};for(const _e of at.getAttributeKeys())_t[_e]=at.getAttribute(_e);const Zt=q.createElement(at.name,_t);B&&q.append(Zt,B),B=po._createAt(Zt,0)}return B}(m,l),this.conversionApi.writer=l,this.conversionApi.consumable=s2.createFrom(r),this.conversionApi.store={};const{modelRange:b}=this._convertItem(r,this._modelCursor),M=l.createDocumentFragment();if(b){this._removeEmptyElements();for(const S of Array.from(this._modelCursor.parent.getChildren()))l.append(S,M);M.markers=function(S,q){const B=new Set,at=new Map,_t=zi._createIn(S).getItems();for(const Zt of _t)"$marker"==Zt.name&&B.add(Zt);for(const Zt of B){const _e=Zt.getAttribute("data-name"),Be=q.createPositionBefore(Zt);at.has(_e)?at.get(_e).end=Be.clone():at.set(_e,new zi(Be.clone())),q.remove(Zt)}return at}(M,l)}return this._modelCursor=null,this._splitParts.clear(),this.conversionApi.writer=null,this.conversionApi.store=null,M}_convertItem(r,l){const m=Object.assign({viewItem:r,modelCursor:l,modelRange:null});if(r.is("element")?this.fire("element:"+r.name,m,this.conversionApi):r.is("$text")?this.fire("text",m,this.conversionApi):this.fire("documentFragment",m,this.conversionApi),m.modelRange&&!(m.modelRange instanceof zi))throw new Qn.b("view-conversion-dispatcher-incorrect-result: Incorrect conversion result was dropped.",this);return{modelRange:m.modelRange,modelCursor:m.modelCursor}}_convertChildren(r,l){const m=new zi(l);let b=l;for(const M of Array.from(r.getChildren())){const S=this._convertItem(M,b);S.modelRange instanceof zi&&(m.end=S.modelRange.end,b=S.modelCursor)}return{modelRange:m,modelCursor:b}}_splitToAllowedParent(r,l){const m=this.conversionApi.schema.findAllowedParent(l,r);if(!m)return null;if(m===l.parent)return{position:l};if(this._modelCursor.parent.getAncestors().includes(m))return null;const b=this.conversionApi.writer.split(l,m),M=[];for(const S of b.range.getWalker())if("elementEnd"==S.type)M.push(S.item);else{const q=M.pop();this._registerSplitPair(q,S.item)}return{position:b.position,cursorParent:b.range.end.parent}}_registerSplitPair(r,l){this._splitParts.has(r)||this._splitParts.set(r,[r]);const m=this._splitParts.get(r);this._splitParts.set(l,m),m.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()}}io(l0,Za);class Lp{constructor(r,l){this.model=r,this.stylesProcessor=l,this.mapper=new n2,this.downcastDispatcher=new o2({mapper:this.mapper,schema:r.schema}),this.downcastDispatcher.on("insert:$text",(m,b,M)=>{if(!M.consumable.consume(b.item,"insert"))return;const S=M.writer,q=M.mapper.toViewPosition(b.range.start),B=S.createText(b.item.data);S.insert(q,B)},{priority:"lowest"}),this.upcastDispatcher=new l0({schema:r.schema}),this.viewDocument=new vs(l),this._viewWriter=new Xc(this.viewDocument),this.upcastDispatcher.on("text",(m,b,M)=>{if(M.schema.checkChild(b.modelCursor,"$text")&&M.consumable.consume(b.viewItem)){const S=M.writer.createText(b.viewItem.data);M.writer.insert(S,b.modelCursor),b.modelRange=zi._createFromPositionAndShift(b.modelCursor,S.offsetSize),b.modelCursor=b.modelRange.end}},{priority:"lowest"}),this.upcastDispatcher.on("element",(m,b,M)=>{if(!b.modelRange&&M.consumable.consume(b.viewItem,{name:!0})){const{modelRange:S,modelCursor:q}=M.convertChildren(b.viewItem,b.modelCursor);b.modelRange=S,b.modelCursor=q}},{priority:"lowest"}),this.upcastDispatcher.on("documentFragment",(m,b,M)=>{if(!b.modelRange&&M.consumable.consume(b.viewItem,{name:!0})){const{modelRange:S,modelCursor:q}=M.convertChildren(b.viewItem,b.modelCursor);b.modelRange=S,b.modelCursor=q}},{priority:"lowest"}),this.decorate("init"),this.decorate("set"),this.on("init",()=>{this.fire("ready")},{priority:"lowest"})}get(r){const{rootName:l="main",trim:m="empty"}=r||{};if(!this._checkIfRootsExists([l]))throw new Qn.b("datacontroller-get-non-existent-root: Attempting to get data from a non-existing root.",this);const b=this.model.document.getRoot(l);return"empty"!==m||this.model.hasContent(b,{ignoreWhitespaces:!0})?this.stringify(b):""}stringify(r){const l=this.toView(r);return this.processor.toData(l)}toView(r){const l=this.viewDocument,m=this._viewWriter;this.mapper.clearBindings();const b=zi._createIn(r),M=new Ll(l);if(this.mapper.bindElements(r,M),this.downcastDispatcher.convertInsert(b,m),!r.is("documentFragment")){const S=function(q){const B=[],at=q.root.document;if(!at)return[];const _t=zi._createIn(q);for(const Zt of at.model.markers){const _e=_t.getIntersection(Zt.getRange());_e&&B.push([Zt.name,_e])}return B}(r);for(const[q,B]of S)this.downcastDispatcher.convertMarkerAdd(q,B,m)}return M}init(r){if(this.model.document.version)throw new Qn.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 Qn.b("datacontroller-init-non-existent-root: Attempting to init data on a non-existing root.",this);return this.model.enqueueChange("transparent",m=>{for(const b of Object.keys(l)){const M=this.model.document.getRoot(b);m.insert(this.parse(l[b],M),M,0)}}),Promise.resolve()}set(r){let l={};if("string"==typeof r?l.main=r:l=r,!this._checkIfRootsExists(Object.keys(l)))throw new Qn.b("datacontroller-set-non-existent-root: Attempting to set data on a non-existing root.",this);this.model.enqueueChange("transparent",m=>{m.setSelection(null),m.removeSelectionAttribute(this.model.document.selection.getAttributeKeys());for(const b of Object.keys(l)){const M=this.model.document.getRoot(b);m.remove(m.createRangeIn(M)),m.insert(this.parse(l[b],M),M,0)}})}parse(r,l="$root"){const m=this.processor.toView(r);return this.toModel(m,l)}toModel(r,l="$root"){return this.model.change(m=>this.upcastDispatcher.convert(r,m,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}}io(Lp,kt);class qs{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 m=this._downcast.includes(l);if(!this._upcast.includes(l)&&!m)throw new Qn.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:m})}for(r){if(!this._helpers.has(r))throw new Qn.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:m}of Wt(r))this.for("upcast").elementToElement({model:l,view:m,converterPriority:r.converterPriority})}attributeToElement(r){this.for("downcast").attributeToElement(r);for(const{model:l,view:m}of Wt(r))this.for("upcast").elementToAttribute({view:m,model:l,converterPriority:r.converterPriority})}attributeToAttribute(r){this.for("downcast").attributeToAttribute(r);for(const{model:l,view:m}of Wt(r))this.for("upcast").attributeToAttribute({view:m,model:l})}_createConversionHelpers({name:r,dispatchers:l,isDowncast:m}){if(this._helpers.has(r))throw new Qn.b("conversion-group-exists: Trying to register a group name that has already been registered.",this);const b=m?new Ps(l):new gf(l);this._helpers.set(r,b)}}function*Wt(d){if(d.model.values)for(const r of d.model.values){const l={key:d.model.key,value:r},m=d.view[r],b=d.upcastAlso?d.upcastAlso[r]:void 0;yield*zh(l,m,b)}else yield*zh(d.model,d.view,d.upcastAlso)}function*zh(d,r,l){if(yield{model:d,view:r},l){l=Array.isArray(l)?l:[l];for(const m of l)yield{model:d,view:m}}}class hm{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 Nu{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 Iu{constructor(r){this.markers=new Map,this._children=new xr,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 m of r)l=l.getChild(l.offsetToIndex(m));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 m of r)l.push(m.name?Ra.fromJSON(m):Qi.fromJSON(m));return new Iu(l)}_appendChild(r){this._insertChild(this.childCount,r)}_insertChild(r,l){const m="string"==typeof(b=l)?[new Qi(b)]:(Ba(b)||(b=[b]),Array.from(b).map(M=>"string"==typeof M?new Qi(M):M instanceof ga?new Qi(M.data,M.getAttributes()):M));var b;for(const b of m)null!==b.parent&&b._remove(),b.parent=this;this._children._insertNodes(r,m)}_removeChildren(r,l=1){const m=this._children._removeNodes(r,l);for(const b of m)b.parent=null;return m}}function l2(d,r){const l=(r=d_(r)).reduce((M,S)=>M+S.offsetSize,0),m=d.parent;ks(d);const b=d.index;return m._insertChild(b,r),o1(m,b+r.length),o1(m,b),new zi(d,d.getShiftedBy(l))}function u2(d){if(!d.isFlat)throw new Qn.b("operation-utils-remove-range-not-flat: Trying to remove a range which starts and ends in different element.",this);const r=d.start.parent;ks(d.start),ks(d.end);const l=r._removeChildren(d.start.index,d.end.index-d.start.index);return o1(r,d.start.index),l}function Ep(d,r){if(!d.isFlat)throw new Qn.b("operation-utils-move-range-not-flat: Trying to move a range which starts and ends in different element.",this);const l=u2(d);return l2(r=r._getTransformedByDeletion(d.start,d.end.offset-d.start.offset),l)}function d_(d){const r=[];d instanceof Array||(d=[d]);for(let l=0;lr.maxOffset)throw new Qn.b("move-operation-nodes-do-not-exist: The nodes which should be moved do not exist.",this);if(r===l&&m=m&&this.targetPosition.path[M]m._clone(!0))),l=new ka(this.position,r,this.baseVersion);return l.shouldReceiveAttributes=this.shouldReceiveAttributes,l}getReversed(){const l=new po(this.position.root.document.graveyard,[0]);return new ns(this.position,this.nodes.maxOffset,l,this.baseVersion+1)}_validate(){const r=this.position.parent;if(!r||r.maxOffsetl._clone(!0))),l2(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 m=[];for(const M of r.nodes)m.push(M.name?Ra.fromJSON(M):Qi.fromJSON(M));const b=new ka(po.fromJSON(r.position,l),m,r.baseVersion);return b.shouldReceiveAttributes=r.shouldReceiveAttributes,b}}class Sr extends Nu{constructor(r,l,m,b,M,S){super(S),this.name=r,this.oldRange=l?l.clone():null,this.newRange=m?m.clone():null,this.affectsData=M,this._markers=b}get type(){return"marker"}clone(){return new Sr(this.name,this.oldRange,this.newRange,this._markers,this.affectsData,this.baseVersion)}getReversed(){return new Sr(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 Sr(r.name,r.oldRange?zi.fromJSON(r.oldRange,l):null,r.newRange?zi.fromJSON(r.newRange,l):null,l.model.markers,r.affectsData,r.baseVersion)}}class Hr extends Nu{constructor(r,l,m,b){super(b),this.position=r,this.position.stickiness="toNext",this.oldName=l,this.newName=m}get type(){return"rename"}clone(){return new Hr(this.position.clone(),this.oldName,this.newName,this.baseVersion)}getReversed(){return new Hr(this.position.clone(),this.newName,this.oldName,this.baseVersion+1)}_validate(){const r=this.position.nodeAfter;if(!(r instanceof Ra))throw new Qn.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 Qn.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 Hr(po.fromJSON(r.position,l),r.oldName,r.newName,r.baseVersion)}}class bs extends Nu{constructor(r,l,m,b,M){super(M),this.root=r,this.key=l,this.oldValue=m,this.newValue=b}get type(){return null===this.oldValue?"addRootAttribute":null===this.newValue?"removeRootAttribute":"changeRootAttribute"}clone(){return new bs(this.root,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new bs(this.root,this.key,this.newValue,this.oldValue,this.baseVersion+1)}_validate(){if(this.root!=this.root.root||this.root.is("documentFragment"))throw new Qn.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 Qn.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 Qn.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 Qn.b("rootattribute-operation-fromjson-no-root: Cannot create RootAttributeOperation. Root with specified name does not exist.",this,{rootName:r.root});return new bs(l.getRoot(r.root),r.key,r.oldValue,r.newValue,r.baseVersion)}}class ya extends Nu{constructor(r,l,m,b,M){super(M),this.sourcePosition=r.clone(),this.sourcePosition.stickiness="toPrevious",this.howMany=l,this.targetPosition=m.clone(),this.targetPosition.stickiness="toNext",this.graveyardPosition=b.clone()}get type(){return"merge"}get deletionPosition(){return new po(this.sourcePosition.root,this.sourcePosition.path.slice(0,-1))}get movedRange(){const r=this.sourcePosition.getShiftedBy(Number.POSITIVE_INFINITY);return new zi(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),m=new po(this.sourcePosition.root,l)._getTransformedByMergeOperation(this),b=new Qr(r,this.howMany,this.graveyardPosition,this.baseVersion+1);return b.insertionPosition=m,b}_validate(){const r=this.sourcePosition.parent,l=this.targetPosition.parent;if(!r.parent)throw new Qn.b("merge-operation-source-position-invalid: Merge source position is invalid.",this);if(!l.parent)throw new Qn.b("merge-operation-target-position-invalid: Merge target position is invalid.",this);if(this.howMany!=r.maxOffset)throw new Qn.b("merge-operation-how-many-invalid: Merge operation specifies wrong number of nodes to move.",this)}_execute(){const r=this.sourcePosition.parent;Ep(zi._createIn(r),this.targetPosition),Ep(zi._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 m=po.fromJSON(r.sourcePosition,l),b=po.fromJSON(r.targetPosition,l),M=po.fromJSON(r.graveyardPosition,l);return new this(m,r.howMany,b,M,r.baseVersion)}}class Qr extends Nu{constructor(r,l,m,b){super(b),this.splitPosition=r.clone(),this.splitPosition.stickiness="toNext",this.howMany=l,this.insertionPosition=Qr.getInsertionPosition(r),this.insertionPosition.stickiness="toNone",this.graveyardPosition=m?m.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 po(this.insertionPosition.root,r)}get movedRange(){const r=this.splitPosition.getShiftedBy(Number.POSITIVE_INFINITY);return new zi(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 po(this.splitPosition.root.document.graveyard,[0]);return new ya(this.moveTargetPosition,this.howMany,this.splitPosition,l,this.baseVersion+1)}_validate(){const r=this.splitPosition.parent;if(!r||r.maxOffset{for(const b of m.getAttributeKeys())this.removeAttribute(b,m)};if(r instanceof zi)for(const m of r.getItems())l(m);else l(r)}move(r,l,m){if(this._assertWriterUsedCorrectly(),!(r instanceof zi))throw new Qn.b("writer-move-invalid-range: Invalid range to move.",this);if(!r.isFlat)throw new Qn.b("writer-move-range-not-flat: Range to move is not flat.",this);const b=po._createAt(l,m);if(b.isEqual(r.start))return;if(this._addOperationForAffectedMarkers("move",r),!Pd(r.root,b.root))throw new Qn.b("writer-move-different-document: Range is going to be moved between different documents.",this);const S=new ns(r.start,r.end.offset-r.start.offset,b,r.root.document?r.root.document.version:null);this.batch.addOperation(S),this.model.applyOperation(S)}remove(r){this._assertWriterUsedCorrectly();const l=(r instanceof zi?r:zi._createOn(r)).getMinimalFlatRanges().reverse();for(const m of l)this._addOperationForAffectedMarkers("move",m),sp(m.start,m.end.offset-m.start.offset,this.batch,this.model)}merge(r){this._assertWriterUsedCorrectly();const l=r.nodeBefore,m=r.nodeAfter;if(this._addOperationForAffectedMarkers("merge",r),!(l instanceof Ra))throw new Qn.b("writer-merge-no-element-before: Node before merge position must be an element.",this);if(!(m instanceof Ra))throw new Qn.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,m){return this.model.createPositionFromPath(r,l,m)}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,m){return this.model.createSelection(r,l,m)}_mergeDetached(r){const l=r.nodeBefore,m=r.nodeAfter;this.move(zi._createIn(m),po._createAt(l,"end")),this.remove(m)}_merge(r){const l=po._createAt(r.nodeBefore,"end"),m=po._createAt(r.nodeAfter,0),M=new po(r.root.document.graveyard,[0]),q=new ya(m,r.nodeAfter.maxOffset,l,M,r.root.document.version);this.batch.addOperation(q),this.model.applyOperation(q)}rename(r,l){if(this._assertWriterUsedCorrectly(),!(r instanceof Ra))throw new Qn.b("writer-rename-not-element-instance: Trying to rename an object which is not an instance of Element.",this);const m=r.root.document?r.root.document.version:null,b=new Hr(po._createBefore(r),r.name,l,m);this.batch.addOperation(b),this.model.applyOperation(b)}split(r,l){this._assertWriterUsedCorrectly();let m,b,M=r.parent;if(!M.parent)throw new Qn.b("writer-split-element-no-parent: Element with no parent can not be split.",this);if(l||(l=M.parent),!r.parent.getAncestors({includeSelf:!0}).includes(l))throw new Qn.b("writer-split-invalid-limit-element: Limit element is not a position ancestor.",this);do{const B=new Qr(r,M.maxOffset-r.offset,null,M.root.document?M.root.document.version:null);this.batch.addOperation(B),this.model.applyOperation(B),m||b||(m=M,b=r.parent.nextSibling),M=(r=this.createPositionAfter(r.parent)).parent}while(M!==l);return{position:r,range:new zi(po._createAt(m,"end"),po._createAt(b,0))}}wrap(r,l){if(this._assertWriterUsedCorrectly(),!r.isFlat)throw new Qn.b("writer-wrap-range-not-flat: Range to wrap is not flat.",this);const m=l instanceof Ra?l:new Ra(l);if(m.childCount>0)throw new Qn.b("writer-wrap-element-not-empty: Element to wrap with is not empty.",this);if(null!==m.parent)throw new Qn.b("writer-wrap-element-attached: Element to wrap with is already attached to tree model.",this);this.insert(m,r.start);const b=new zi(r.start.getShiftedBy(1),r.end.getShiftedBy(1));this.move(b,po._createAt(m,0))}unwrap(r){if(this._assertWriterUsedCorrectly(),null===r.parent)throw new Qn.b("writer-unwrap-element-no-parent: Trying to unwrap an element which has no parent.",this);this.move(zi._createIn(r),this.createPositionAfter(r)),this.remove(r)}addMarker(r,l){if(this._assertWriterUsedCorrectly(),!l||"boolean"!=typeof l.usingOperation)throw new Qn.b("writer-addMarker-no-usingOperation: The options.usingOperation parameter is required when adding a new marker.",this);const m=l.usingOperation,b=l.range,M=void 0!==l.affectsData&&l.affectsData;if(this.model.markers.has(r))throw new Qn.b("writer-addMarker-marker-exists: Marker with provided name already exists.",this);if(!b)throw new Qn.b("writer-addMarker-no-range: Range parameter is required when adding a new marker.",this);return m?(Nl(this,r,null,b,M),this.model.markers.get(r)):this.model.markers._set(r,b,m,M)}updateMarker(r,l){this._assertWriterUsedCorrectly();const m="string"==typeof r?r:r.name,b=this.model.markers.get(m);if(!b)throw new Qn.b("writer-updateMarker-marker-not-exists: Marker with provided name does not exists.",this);if(!l)return void this.model.markers._refresh(b);const M="boolean"==typeof l.usingOperation,S="boolean"==typeof l.affectsData,q=S?l.affectsData:b.affectsData;if(!M&&!l.range&&!S)throw new Qn.b("writer-updateMarker-wrong-options: One of the options is required - provide range, usingOperations or affectsData.",this);const B=b.getRange(),at=l.range?l.range:B;M&&l.usingOperation!==b.managedUsingOperations?l.usingOperation?Nl(this,m,null,at,q):(Nl(this,m,B,null,q),this.model.markers._set(m,at,void 0,q)):b.managedUsingOperations?Nl(this,m,B,at,q):this.model.markers._set(m,at,void 0,q)}removeMarker(r){this._assertWriterUsedCorrectly();const l="string"==typeof r?r:r.name;if(!this.model.markers.has(l))throw new Qn.b("writer-removeMarker-no-marker: Trying to remove marker which does not exist.",this);const m=this.model.markers.get(l);m.managedUsingOperations?Nl(this,l,m.getRange(),null,m.affectsData):this.model.markers._remove(l)}setSelection(r,l,m){this._assertWriterUsedCorrectly(),this.model.document.selection._setTo(r,l,m)}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[m,b]of Wa(r))this._setSelectionAttribute(m,b)}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 m=this.model.document.selection;if(m.isCollapsed&&m.anchor.parent.isEmpty){const b=Fu._getStoreAttributeKey(r);this.setAttribute(b,l,m.anchor.parent)}m._setAttribute(r,l)}_removeSelectionAttribute(r){const l=this.model.document.selection;if(l.isCollapsed&&l.anchor.parent.isEmpty){const m=Fu._getStoreAttributeKey(r);this.removeAttribute(m,l.anchor.parent)}l._removeAttribute(r)}_assertWriterUsedCorrectly(){if(this.model._currentWriter!==this)throw new Qn.b("writer-incorrect-use: Trying to use a writer outside the change() block.",this)}_addOperationForAffectedMarkers(r,l){for(const m of this.model.markers){if(!m.managedUsingOperations)continue;const b=m.getRange();let M=!1;if("move"===r)M=l.containsPosition(b.start)||l.start.isEqual(b.start)||l.containsPosition(b.end)||l.end.isEqual(b.end);else{const q=l.nodeAfter,at=b.end.parent==q&&0==b.end.offset,_t=b.end.nodeAfter==q,Zt=b.start.nodeAfter==q;M=b.start.parent==l.nodeBefore&&b.start.isAtEnd||at||_t||Zt}M&&this.updateMarker(m.name,{range:b})}}}function Fp(d,r,l,m){const b=d.model,M=b.document;let S,q,B,at=m.start;for(const Zt of m.getWalker({shallow:!0}))B=Zt.item.getAttribute(r),S&&q!=B&&(q!=l&&_t(),at=S),S=Zt.nextPosition,q=B;function _t(){const Zt=new zi(at,S),Be=new mc(Zt,r,q,l,Zt.root.document?M.version:null);d.batch.addOperation(Be),b.applyOperation(Be)}S instanceof po&&S!=at&&q!=l&&_t()}function p_(d,r,l,m){const b=d.model,M=b.document,S=m.getAttribute(r);let q,B;S!=l&&(m.root===m?B=new bs(m,r,S,l,m.document?M.version:null):(q=new zi(po._createBefore(m),d.createPositionAfter(m)),B=new mc(q,r,S,l,q.root.document?M.version:null)),d.batch.addOperation(B),b.applyOperation(B))}function Nl(d,r,l,m,b){const M=d.model,q=new Sr(r,l,m,M.markers,b,M.document.version);d.batch.addOperation(q),M.applyOperation(q)}function sp(d,r,l,m){let b;if(d.root.document){const M=m.document,S=new po(M.graveyard,[0]);b=new ns(d,r,S,M.version)}else b=new gm(d,r);l.addOperation(b),m.applyOperation(b)}function Pd(d,r){return d===r||d instanceof _c&&r instanceof _c}class va{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=zi._createOn(r);for(const m of this._markerCollection.getMarkersIntersectingRange(l)){const b=m.getRange();this.bufferMarkerChange(m.name,b,b,m.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),m=this._isInInsertedElement(r.targetPosition.parent);l||this._markRemove(r.sourcePosition.parent,r.sourcePosition.offset,r.howMany),m||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=zi._createFromPositionAndShift(r.position,1);for(const m of this._markerCollection.getMarkersIntersectingRange(l)){const b=m.getRange();this.bufferMarkerChange(m.name,b,b,m.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 b=r.targetPosition.parent;this._isInInsertedElement(b)||this._markInsert(b,r.targetPosition.offset,l.maxOffset);break}}this._cachedChanges=null}bufferMarkerChange(r,l,m,b){const M=this._changedMarkers.get(r);M?(M.newRange=m,M.affectsData=b,null==M.oldRange&&null==M.newRange&&this._changedMarkers.delete(r)):this._changedMarkers.set(r,{oldRange:l,newRange:m,affectsData:b})}getMarkersToRemove(){const r=[];for(const[l,m]of this._changedMarkers)null!=m.oldRange&&r.push({name:l,range:m.oldRange});return r}getMarkersToAdd(){const r=[];for(const[l,m]of this._changedMarkers)null!=m.newRange&&r.push({name:l,range:m.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 m of this._changesInElement.keys()){const b=this._changesInElement.get(m).sort((_t,Zt)=>_t.offset===Zt.offset?_t.type!=Zt.type?"remove"==_t.type?-1:1:0:_t.offsetm.position.root!=b.position.root?m.position.root.rootNamem.offset){if(b>M){const S={type:"attribute",offset:M,howMany:b-M,count:this._changeCount++};this._handleChange(S,l),l.push(S)}r.nodesToHandle=m.offset-r.offset,r.howMany=r.nodesToHandle}else r.offset>=m.offset&&r.offsetM?(r.nodesToHandle=b-M,r.offset=M):r.nodesToHandle=0);if("remove"==m.type&&r.offsetm.offset){const S={type:"attribute",offset:m.offset,howMany:b-m.offset,count:this._changeCount++};this._handleChange(S,l),l.push(S),r.nodesToHandle=m.offset-r.offset,r.howMany=r.nodesToHandle}"attribute"==m.type&&(r.offset>=m.offset&&b<=M?(r.nodesToHandle=0,r.howMany=0,r.offset=0):r.offset<=m.offset&&b>=M&&(m.howMany=0))}}r.howMany=r.nodesToHandle,delete r.nodesToHandle}_getInsertDiff(r,l,m){return{type:"insert",position:po._createAt(r,l),name:m,length:1,changeCount:this._changeCount++}}_getRemoveDiff(r,l,m){return{type:"remove",position:po._createAt(r,l),name:m,length:1,changeCount:this._changeCount++}}_getAttributesDiff(r,l,m){const b=[];m=new Map(m);for(const[M,S]of l){const q=m.has(M)?m.get(M):null;q!==S&&b.push({type:"attribute",position:r.start,range:r.clone(),length:1,attributeKey:M,attributeOldValue:S,attributeNewValue:q,changeCount:this._changeCount++}),m.delete(M)}for(const[M,S]of m)b.push({type:"attribute",position:r.start,range:r.clone(),length:1,attributeKey:M,attributeOldValue:null,attributeNewValue:S,changeCount:this._changeCount++});return b}_isInInsertedElement(r){const l=r.parent;if(!l)return!1;const m=this._changesInElement.get(l),b=r.startOffset;if(m)for(const M of m)if("insert"==M.type&&b>=M.offset&&bm){for(let S=0;S{const b=m[0];if(b.isDocumentOperation&&b.baseVersion!==this.version)throw new Qn.b("model-document-applyOperation-wrong-version: Only operations with matching versions can be applied.",this,{operation:b})},{priority:"highest"}),this.listenTo(r,"applyOperation",(l,m)=>{const b=m[0];b.isDocumentOperation&&this.differ.bufferOperation(b)},{priority:"high"}),this.listenTo(r,"applyOperation",(l,m)=>{const b=m[0];b.isDocumentOperation&&(this.version++,this.history.addOperation(b))},{priority:"low"}),this.listenTo(this.selection,"change",()=>{this._hasSelectionChangedFromTheLastChangeBlock=!0}),this.listenTo(r.markers,"update",(l,m,b,M)=>{this.differ.bufferMarkerChange(m.name,b,M,m.affectsData),null===b&&m.on("change",(S,q)=>{this.differ.bufferMarkerChange(m.name,q,m.getRange(),m.affectsData)})})}get graveyard(){return this.getRoot("$graveyard")}createRoot(r="$root",l="main"){if(this.roots.get(l))throw new Qn.b("model-document-createRoot-name-exists: Root with specified name already exists.",this,{name:l});const m=new _c(this,r,l);return this.roots.add(m),m}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=Gi(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,m=l.schema,b=l.createPositionFromPath(r,[0]);return m.getNearestSelectionRange(b)||l.createRange(b)}_validateSelectionRange(r){return f_(r.start)&&f_(r.end)}_callPostFixers(r){let l=!1;do{for(const m of this._postFixers)if(this.selection.refresh(),l=m(r),l)break}while(l)}}function f_(d){const r=d.textNode;if(r){const l=r.data,m=d.offset-r.startOffset;return!qu(l,m)&&!d2(l,m)}return!0}io(ac,Za);class h_{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,m=!1,b=!1){const M=r instanceof g_?r.name:r;if(M.includes(","))throw new Qn.b('markercollection-incorrect-marker-name: Marker name cannot contain "," character.',this);const S=this._markers.get(M);if(S){const at=S.getRange();let _t=!1;return at.isEqual(l)||(S._attachLiveRange(Pp.fromRange(l)),_t=!0),m!=S.managedUsingOperations&&(S._managedUsingOperations=m,_t=!0),"boolean"==typeof b&&b!=S.affectsData&&(S._affectsData=b,_t=!0),_t&&this.fire("update:"+M,S,at,l),S}const q=Pp.fromRange(l),B=new g_(M,q,m,b);return this._markers.set(M,B),this.fire("update:"+M,B,null,l),B}_remove(r){const l=r instanceof g_?r.name:r,m=this._markers.get(l);return!!m&&(this._markers.delete(l),this.fire("update:"+l,m,m.getRange(),null),this._destroyMarker(m),!0)}_refresh(r){const l=r instanceof g_?r.name:r,m=this._markers.get(l);if(!m)throw new Qn.b("markercollection-refresh-marker-not-exists: Marker with provided name does not exists.",this);const b=m.getRange();this.fire("update:"+l,m,b,b,m.managedUsingOperations,m.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()}}io(h_,Za);class g_{constructor(r,l,m,b){this.name=r,this._liveRange=this._attachLiveRange(l),this._managedUsingOperations=m,this._affectsData=b}get managedUsingOperations(){if(!this._liveRange)throw new Qn.b("marker-destroyed: Cannot use a destroyed marker instance.",this);return this._managedUsingOperations}get affectsData(){if(!this._liveRange)throw new Qn.b("marker-destroyed: Cannot use a destroyed marker instance.",this);return this._affectsData}getStart(){if(!this._liveRange)throw new Qn.b("marker-destroyed: Cannot use a destroyed marker instance.",this);return this._liveRange.start.clone()}getEnd(){if(!this._liveRange)throw new Qn.b("marker-destroyed: Cannot use a destroyed marker instance.",this);return this._liveRange.end.clone()}getRange(){if(!this._liveRange)throw new Qn.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}}io(g_,Za);class fc extends Nu{get type(){return"noop"}clone(){return new fc(this.baseVersion)}getReversed(){return new fc(this.baseVersion+1)}_execute(){}static get className(){return"NoOperation"}}const tu={};tu[mc.className]=mc,tu[ka.className]=ka,tu[Sr.className]=Sr,tu[ns.className]=ns,tu[fc.className]=fc,tu[Nu.className]=Nu,tu[Hr.className]=Hr,tu[bs.className]=bs,tu[Qr.className]=Qr,tu[ya.className]=ya;class rc extends po{constructor(r,l,m="toNone"){if(super(r,l,m),!this.root.is("rootElement"))throw new Qn.b("model-liveposition-root-not-rootelement: LivePosition's root has to be an instance of RootElement.",r);Bh.call(this)}detach(){this.stopListening()}is(r){return"livePosition"===r||"model:livePosition"===r||"position"==r||"model:position"===r}toPosition(){return new po(this.root,this.path.slice(),this.stickiness)}static fromPosition(r,l){return new this(r.root,r.path.slice(),l||r.stickiness)}}function Bh(){this.listenTo(this.root.document.model,"applyOperation",(d,r)=>{const l=r[0];l.isDocumentOperation&&v_.call(this,l)},{priority:"low"})}function v_(d){const r=this.getTransformedByOperation(d);if(!this.isEqual(r)){const l=this.toPosition();this.path=r.path,this.root=r.root,this.fire("change",l)}}io(rc,Za);class bl{constructor(r,l,m){this.model=r,this.writer=l,this.position=m,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 m=0;m!0);if(d.schema.checkChild(r.nextPosition,"$text"))return r.nextPosition}}function vm(d,r){const m=po._createAt(d.root,r?"end":0);return r?new zi(d,m):new zi(m,d)}function k1(d,r,l){return' ,.?!:;"-()'.includes(d.charAt(r+(l?0:-1)))}function u0(d,r,l){return r===(l?d.endOffset:0)}function wf(d,r){const l=[];Array.from(d.getItems({direction:"backward"})).map(m=>r.createRangeOn(m)).filter(m=>(m.start.isAfter(d.start)||m.start.isEqual(d.start))&&(m.end.isBefore(d.end)||m.end.isEqual(d.end))).forEach(m=>{l.push(m.start.parent),r.remove(m)}),l.forEach(m=>{let b=m;for(;b.parent&&b.isEmpty;){const M=r.createRangeOn(b);b=b.parent,r.remove(M)}})}function S1(d,r){return d.isCollapsed?function(l,m){const b=l.start,M=m.getNearestSelectionRange(b);if(!M)return null;if(!M.isCollapsed)return M;const S=M.start;return b.isEqual(S)?null:new zi(S)}(d,r):function(l,m){const b=l.start,M=l.end,S=m.checkChild(b,"$text"),q=m.checkChild(M,"$text"),B=m.getLimitElement(b),at=m.getLimitElement(M);if(B===at){if(S&&q)return null;if(function(_e,Be,mn){const Mn=_e.nodeAfter&&!mn.isLimit(_e.nodeAfter)||mn.checkChild(_e,"$text"),In=Be.nodeBefore&&!mn.isLimit(Be.nodeBefore)||mn.checkChild(Be,"$text");return Mn||In}(b,M,m)){const _e=b.nodeAfter&&m.isObject(b.nodeAfter)?null:m.getNearestSelectionRange(b,"forward"),Be=M.nodeBefore&&m.isObject(M.nodeBefore)?null:m.getNearestSelectionRange(M,"backward");return new zi(_e?_e.start:b,Be?Be.start:M)}}const _t=B&&!B.is("rootElement"),Zt=at&&!at.is("rootElement");if(_t||Zt){const _e=b.nodeAfter&&M.nodeBefore&&b.nodeAfter.parent===M.nodeBefore.parent,Be=_t&&(!_e||!Jh(b.nodeAfter,m)),mn=Zt&&(!_e||!Jh(M.nodeBefore,m));let Mn=b,In=M;return Be&&(Mn=po._createBefore(Mf(B,m))),mn&&(In=po._createAfter(Mf(at,m))),new zi(Mn,In)}return null}(d,r)}function Mf(d,r){let l=d,m=l;for(;r.isLimit(m)&&m.parent;)l=m,m=m.parent;return l}function Jh(d,r){return d&&r.isObject(d)}class p2{constructor(){this.markers=new h_,this.document=new ac(this),this.schema=new Cf,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 Js(d){d.document.registerPostFixer(r=>function(l,m){const b=m.document.selection,M=m.schema,S=[];let q=!1;for(const B of b.getRanges()){const at=S1(B,M);at&&!at.isEqual(B)?(S.push(at),q=!0):S.push(B)}q&&l.setSelection(function(B){const at=[];at.push(B.shift());for(const _t of B){const Zt=at.pop();if(_t.isIntersecting(Zt)){const _e=Zt.start.isAfter(_t.start)?_t.start:Zt.start,Be=Zt.end.isAfter(_t.end)?Zt.end:_t.end,mn=new zi(_e,Be);at.push(mn)}else at.push(Zt),at.push(_t)}return at}(S),{backward:b.isBackward})}(r,d))}(this)}change(r){try{return 0===this._pendingChanges.length?(this._pendingChanges.push({batch:new hm,callback:r}),this._runPendingChanges()[0]):r(this._currentWriter)}catch(l){Qn.b.rethrowUnexpectedError(l,this)}}enqueueChange(r,l){try{"string"==typeof r?r=new hm(r):"function"==typeof r&&(l=r,r=new hm),this._pendingChanges.push({batch:r,callback:l}),1==this._pendingChanges.length&&this._runPendingChanges()}catch(m){Qn.b.rethrowUnexpectedError(m,this)}}applyOperation(r){r._execute()}insertContent(r,l,m){return M=r,S=l,q=m,(b=this).change(B=>{let at;at=S?S instanceof D1||S instanceof Fu?S:B.createSelection(S,q):b.document.selection,at.isCollapsed||b.deleteContent(at,{doNotAutoparagraph:!0});const _t=new bl(b,B,at.anchor);let Zt;Zt=M.is("documentFragment")?M.getChildren():[M],_t.handleNodes(Zt,{isFirst:!0,isLast:!0});const _e=_t.getSelectionRange();_e&&(at instanceof Fu?B.setSelection(_e):at.setTo(_e));const Be=_t.getAffectedRange()||b.createRange(at.anchor);return _t.destroy(),Be});var b,M,S,q}deleteContent(r,l){!function Cl(d,r,l={}){if(r.isCollapsed)return;const m=r.getFirstRange();if("$graveyard"==m.root.rootName)return;const b=d.schema;d.change(M=>{if(!l.doNotResetEntireContent&&function(B,at){const _t=B.getLimitElement(at);if(!at.containsEntireContent(_t))return!1;const Zt=at.getFirstRange();return Zt.start.parent!=Zt.end.parent&&B.checkChild(_t,"paragraph")}(b,r))return void function(B,at){const _t=B.model.schema.getLimitElement(at);B.remove(B.createRangeIn(_t)),Uf(B,B.createPositionAt(_t,0),at)}(M,r);const[S,q]=function(B){const at=B.root.document.model,_t=B.start;let Zt=B.end;if(at.hasContent(B,{ignoreMarkers:!0})){const _e=function(Be){const mn=Be.parent,Mn=mn.root.document.model.schema,In=mn.getAncestors({parentFirst:!0,includeSelf:!0});for(const Gn of In){if(Mn.isLimit(Gn))return null;if(Mn.isBlock(Gn))return Gn}}(Zt);if(_e&&Zt.isTouching(at.createPositionAt(_e,0))){const Be=at.createSelection(B);at.modifySelection(Be,{direction:"backward"}),Zt=Be.getLastPosition()}}return[rc.fromPosition(_t,"toPrevious"),rc.fromPosition(Zt,"toNext")]}(m);m.start.isTouching(m.end)||M.remove(m),l.leaveUnmerged||(function(B,at,_t){const Zt=B.model;if(!cp(B.model.schema,at,_t))return;const[_e,Be]=function(mn,Mn){const In=mn.getAncestors(),Gn=Mn.getAncestors();let Fi=0;for(;In[Fi]&&In[Fi]==Gn[Fi];)Fi++;return[In[Fi],Gn[Fi]]}(at,_t);!Zt.hasContent(_e,{ignoreMarkers:!0})&&Zt.hasContent(Be,{ignoreMarkers:!0})?function mn(Mn,In,Gn,Fi){const Ji=In.parent,Do=Gn.parent;if(Ji!=Fi&&Do!=Fi){for(In=Mn.createPositionAfter(Ji),(Gn=Mn.createPositionBefore(Do)).isEqual(In)||Mn.insert(Ji,Gn);In.parent.isEmpty;){const ba=In.parent;In=Mn.createPositionBefore(ba),Mn.remove(ba)}Gn=Mn.createPositionBefore(Do),function(ba,Yc){const cs=Yc.nodeBefore,ol=Yc.nodeAfter;cs.name!=ol.name&&ba.rename(cs,ol.name),ba.clearAttributes(cs),ba.setAttributes(Object.fromEntries(ol.getAttributes()),cs),ba.merge(Yc)}(Mn,Gn),cp(Mn.model.schema,In,Gn)&&mn(Mn,In,Gn,Fi)}}(B,at,_t,_e.parent):function mn(Mn,In,Gn,Fi){const Ji=In.parent,Do=Gn.parent;if(Ji!=Fi&&Do!=Fi){for(In=Mn.createPositionAfter(Ji),(Gn=Mn.createPositionBefore(Do)).isEqual(In)||Mn.insert(Do,In),Mn.merge(In);Gn.parent.isEmpty;){const ba=Gn.parent;Gn=Mn.createPositionBefore(ba),Mn.remove(ba)}!cp(Mn.model.schema,In,Gn)||mn(Mn,In,Gn,Fi)}}(B,at,_t,_e.parent)}(M,S,q),b.removeDisallowedAttributes(S.parent.getChildren(),M)),a1(M,r,S),!l.doNotAutoparagraph&&function(B,at){const _t=B.checkChild(at,"$text"),Zt=B.checkChild(at,"paragraph");return!_t&&Zt}(b,S)&&Uf(M,S,r),S.detach(),q.detach()})}(this,r,l)}modifySelection(r,l){!function(m,b,M={}){const S=m.schema,q="backward"!=M.direction,B=M.unit?M.unit:"character",_t=new el({boundaries:vm(b.focus,q),singleCharacters:!0,direction:q?"forward":"backward"}),Zt={walker:_t,schema:S,isForward:q,unit:B};let _e;for(;_e=_t.next();){if(_e.done)return;const Be=L3(Zt,_e.value);if(Be)return void(b instanceof Fu?m.change(mn=>{mn.setSelectionFocus(Be)}):b.setFocus(Be))}}(this,r,l)}getSelectedContent(r){return function(l,m){return l.change(b=>{const M=b.createDocumentFragment(),S=m.getFirstRange();if(!S||S.isCollapsed)return M;const q=S.start.root,B=S.start.getCommonPath(S.end),at=q.getNodeByPath(B);let _t;_t=S.start.parent==S.end.parent?S:b.createRange(b.createPositionAt(at,S.start.path[B.length]),b.createPositionAt(at,S.end.path[B.length]+1));const Zt=_t.end.offset-_t.start.offset;for(const _e of _t.getItems({shallow:!0}))_e.is("$textProxy")?b.appendText(_e.data,_e.getAttributes(),M):b.append(b.cloneElement(_e,!0),M);if(_t!=S){const _e=S._getTransformedByMove(_t.start,b.createPositionAt(M,0),Zt)[0],Be=b.createRange(b.createPositionAt(M,0),_e.start);wf(b.createRange(_e.end,b.createPositionAt(M,"end")),b),wf(Be,b)}return M})}(this,r)}hasContent(r,l={}){const m=r instanceof Ra?zi._createIn(r):r;if(m.isCollapsed)return!1;const{ignoreWhitespaces:b=!1,ignoreMarkers:M=!1}=l;if(!M)for(const S of this.markers.getMarkersIntersectingRange(m))if(S.affectsData)return!0;for(const S of m.getItems())if(S.is("$textProxy")){if(!b||-1!==S.data.search(/\S/))return!0}else if(this.schema.isObject(S))return!0;return!1}createPositionFromPath(r,l,m){return new po(r,l,m)}createPositionAt(r,l){return po._createAt(r,l)}createPositionAfter(r){return po._createAfter(r)}createPositionBefore(r){return po._createBefore(r)}createRange(r,l){return new zi(r,l)}createRangeIn(r){return zi._createIn(r)}createRangeOn(r){return zi._createOn(r)}createSelection(r,l,m){return new D1(r,l,m)}createBatch(r){return new hm(r)}createOperationFromJSON(r){return class{static fromJSON(l,m){return tu[l.__className].fromJSON(l,m)}}.fromJSON(r,this.document)}destroy(){this.document.destroy(),this.stopListening()}_runPendingChanges(){const r=[];for(this.fire("_beforeChanges");this._pendingChanges.length;){this._currentWriter=new sd(this,this._pendingChanges[0].batch);const m=this._pendingChanges[0].callback(this._currentWriter);r.push(m),this.document._handleChangeBlock(this._currentWriter),this._pendingChanges.shift(),this._currentWriter=null}return this.fire("_afterChanges"),r}}io(p2,kt);class Il{constructor(){this._listener=Object.create(Ue)}listenTo(r){this._listener.listenTo(r,"keydown",(l,m)=>{this._listener.fire("_keydown:"+hr(m),m)})}set(r,l,m={}){const b=ep(r);this._listener.listenTo(this._listener,"_keydown:"+b,(S,q)=>{l(q,()=>{q.preventDefault(),q.stopPropagation(),S.stop()}),S.return=!0},{priority:m.priority})}press(r){return!!this._listener.fire("_keydown:"+hr(r),r)}destroy(){this._listener.stopListening()}}class xm extends Il{constructor(r){super(),this.editor=r}set(r,l,m={}){if("string"==typeof l){const b=l;l=(M,S)=>{this.editor.execute(b),S()}}super.set(r,l,m)}}class Ip{constructor(r={}){this._context=r.context||new wd({language:r.language}),this._context._addEditor(this,!r.context);const l=Array.from(this.constructor.builtinPlugins||[]);this.config=new $l(r,this.constructor.defaultConfig),this.config.define("plugins",l),this.config.define(this._context._getEditorConfig()),this.plugins=new sr(this,l,this._context.plugins),this.locale=this._context.locale,this.t=this.locale.t,this.commands=new Hh,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 p2;const m=new ml;this.data=new Lp(this.model,m),this.editing=new bf(this.model,m),this.editing.view.document.bind("isReadOnly").to(this),this.conversion=new qs([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 xm(this),this.keystrokes.listenTo(this.editing.view.document)}initPlugins(){const r=this.config,l=r.get("plugins"),m=r.get("removePlugins")||[],b=r.get("extraPlugins")||[];return this.plugins.init(l.concat(b),m)}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){Qn.b.rethrowUnexpectedError(l,this)}}}io(Ip,kt);var Zf={setData(d){this.data.set(d)},getData(d){return this.data.get(d)}},x_={updateSourceElement(){if(!this.sourceElement)throw new Qn.b("editor-missing-sourceelement: Cannot update the source element of a detached editor.",this);var d,r;d=this.sourceElement,r=this.data.get(),d instanceof HTMLTextAreaElement&&(d.value=r),d.innerHTML=r}};class Gh{getHtml(r){const l=document.implementation.createHTMLDocument("").createElement("div");return l.appendChild(r),l.innerHTML}}class m2{constructor(r){this._domParser=new DOMParser,this._domConverter=new ee(r,{blockFillerMode:"nbsp"}),this._htmlWriter=new Gh}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"),m=l.createDocumentFragment(),b=l.body.childNodes;for(;b.length>0;)m.appendChild(b[0]);return m}}class Ru{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 Qn.b("componentfactory-item-exists: The item already exists in the component factory.",this,{name:r});this._components.set(cd(r),{callback:l,originalName:r})}create(r){if(!this.has(r))throw new Qn.b("componentfactory-item-missing: The required component is not registered in the factory.",this,{name:r});return this._components.get(cd(r)).callback(this.editor.locale)}has(r){return this._components.has(cd(r))}}function cd(d){return String(d).toLowerCase()}class Ac{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 Qn.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)}}io(Ac,Ue),io(Ac,kt);class fu{constructor(r){this.editor=r,this.componentFactory=new Ru(r),this.focusTracker=new Ac,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}}io(fu,Za),p(13);const kd=new WeakMap;function Df(d){const{view:r,element:l,text:m,isDirectHost:b=!0}=d,M=r.document;kd.has(M)||(kd.set(M,new Map),M.registerPostFixer(S=>_2(M,S))),kd.get(M).set(l,{text:m,isDirectHost:b}),r.change(S=>_2(M,S))}function _2(d,r){const l=kd.get(d);let m=!1;for(const[b,M]of l)i6(r,b,M)&&(m=!0);return m}function i6(d,r,l){const{text:m,isDirectHost:b}=l,M=b?r:function(q){if(1===q.childCount){const B=q.getChild(0);if(B.is("element")&&!B.is("uiElement"))return B}return null}(r);let S=!1;return!!M&&(l.hostElement=M,M.getAttribute("data-placeholder")!==m&&(d.setAttribute("data-placeholder",m,M),S=!0),function(q){if(!q.isAttached())return!1;const B=!Array.from(q.getChildren()).some(Zt=>!Zt.is("uiElement")),at=q.document;if(!at.isFocused&&B)return!0;const _t=at.selection.anchor;return!(!B||!_t||_t.parent===q)}(M)?(q=d,!(B=M).hasClass("ck-placeholder")&&(q.addClass("ck-placeholder",B),!0)&&(S=!0)):function Pf(d,r){return!!r.hasClass("ck-placeholder")&&(d.removeClass("ck-placeholder",r),!0)}(d,M)&&(S=!0),S);var q,B}class E3{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 Qh extends fu{constructor(r,l){var m;super(r),this.view=l,this._toolbarConfig=(m=r.config.get("toolbar"),Array.isArray(m)?{items:m}:m?Object.assign({items:[]},m):{items:[]}),this._elementReplacer=new E3}get element(){return this.view.element}init(r){const m=this.view,b=this.editor.editing.view,M=m.editable,S=b.document.getRoot();M.name=S.rootName,m.render();const q=M.element;this.setEditableElement(M.name,q),this.focusTracker.add(q),m.editable.bind("isFocused").to(this.focusTracker),b.attachDomRoot(q),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,m=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:b,originKeystrokeHandler:M,originFocusTracker:S,toolbar:q,beforeFocus:B,afterBlur:at}){S.add(q.element),M.set("Alt+F10",(_t,Zt)=>{S.isFocused&&!q.focusTracker.isFocused&&(B&&B(),q.focus(),Zt())}),q.keystrokes.set("Esc",(_t,Zt)=>{q.focusTracker.isFocused&&(b.focus(),at&&at(),Zt())})}({origin:m,originFocusTracker:this.focusTracker,originKeystrokeHandler:r.keystrokes,toolbar:l.toolbar})}_initPlaceholder(){const r=this.editor,l=r.editing.view,m=l.document.getRoot(),b=r.sourceElement,M=r.config.get("placeholder")||b&&"textarea"===b.tagName.toLowerCase()&&b.getAttribute("placeholder");M&&Df({view:l,element:m,text:M,isDirectHost:!1})}}class O1 extends Nr{constructor(r=[]){super(r,{idProperty:"viewUid"}),this.on("add",(l,m,b)=>{this._renderViewIntoCollectionParent(m,b)}),this.on("remove",(l,m)=>{m.element&&this._parentElement&&m.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 Qn.b("ui-viewcollection-delegate-wrong-events: All event names must be strings.",this);return{to:l=>{for(const m of this)for(const b of r)m.delegate(b).to(l);this.on("add",(m,b)=>{for(const M of r)b.delegate(M).to(l)}),this.on("remove",(m,b)=>{for(const M of r)b.stopDelegating(M,l)})}}}_renderViewIntoCollectionParent(r,l){r.isRendered||r.render(),r.element&&this._parentElement&&this._parentElement.insertBefore(r.element,this._parentElement.children[l])}}class yl{constructor(r){Object.assign(this,kf(g2(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 Qn.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 m of l.children)y_(m)?yield m:T_(m)&&(yield*r(m))}(this)}static bind(r,l){return{to:(m,b)=>new jh({eventNameOrFunction:m,attribute:m,observable:r,emitter:l,callback:b}),if:(m,b,M)=>new bm({observable:r,emitter:l,attribute:m,valueIfTrue:b,callback:M})}}static extend(r,l){if(r._isRendered)throw new Qn.b("template-extend-render: Attempting to extend a template which has already been rendered.",[this,r]);!function m(b,M){if(M.attributes&&(b.attributes||(b.attributes={}),$h(b.attributes,M.attributes)),M.eventListeners&&(b.eventListeners||(b.eventListeners={}),$h(b.eventListeners,M.eventListeners)),M.text&&b.text.push(...M.text),M.children&&M.children.length){if(b.children.length!=M.children.length)throw new Qn.b("ui-template-extend-children-mismatch: The number of children in extended definition does not match.",b);let S=0;for(const q of M.children)m(b.children[S++],q)}}(r,kf(g2(l)))}_renderNode(r){let l;if(l=r.node?this.tag&&this.text:this.tag?this.text:!this.text,l)throw new Qn.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(""),h2(this.text)?this._bindToObservable({schema:this.text,updater:b_(l),data:r}):l.textContent=this.text.join(""),l}_renderAttributes(r){let l,m,b,M;if(!this.attributes)return;const S=r.node,q=r.revertData;for(l in this.attributes)if(b=S.getAttribute(l),m=this.attributes[l],q&&(q.attributes[l]=b),M=Gt(m[0])&&m[0].ns?m[0].ns:null,h2(m)){const B=M?m[0].value:m;q&&L1(l)&&B.unshift(b),this._bindToObservable({schema:B,updater:Wh(S,l,M),data:r})}else"style"==l&&"string"!=typeof m[0]?this._renderStyleAttribute(m[0],r):(q&&b&&L1(l)&&m.unshift(b),m=m.map(B=>B&&B.value||B).reduce((B,at)=>B.concat(at),[]).reduce(hs,""),$o(m)||S.setAttributeNS(M,l,m))}_renderStyleAttribute(r,l){const m=l.node;for(const b in r){const M=r[b];h2(M)?this._bindToObservable({schema:[M],updater:C_(m,b),data:l}):m.style[b]=M}}_renderElementChildren(r){const l=r.node,m=r.intoFragment?document.createDocumentFragment():l,b=r.isApplying;let M=0;for(const S of this.children)if(qp(S)){if(!b){S.setParent(l);for(const q of S)m.appendChild(q.element)}}else if(y_(S))b||(S.isRendered||S.render(),m.appendChild(S.element));else if(Xd(S))m.appendChild(S);else if(b){const q={children:[],bindings:[],attributes:{}};r.revertData.children.push(q),S._renderNode({node:m.childNodes[M++],isApplying:!0,revertData:q})}else m.appendChild(S.render());r.intoFragment&&l.appendChild(m)}_setUpListeners(r){if(this.eventListeners)for(const l in this.eventListeners){const m=this.eventListeners[l].map(b=>{const[M,S]=l.split("@");return b.activateDomEventListener(M,S,r)});r.revertData&&r.revertData.bindings.push(m)}}_bindToObservable({schema:r,updater:l,data:m}){const b=m.revertData;d0(r,l,m);const M=r.filter(S=>!$o(S)).filter(S=>S.observable).map(S=>S.activateAttributeListener(r,l,m));b&&b.bindings.push(M)}_revertTemplateFromNode(r,l){for(const m of l.bindings)for(const b of m)b();if(l.text)r.textContent=l.text;else{for(const m in l.attributes){const b=l.attributes[m];null===b?r.removeAttribute(m):r.setAttribute(m,b)}for(let m=0;md0(r,l,m);return this.emitter.listenTo(this.observable,"change:"+this.attribute,b),()=>{this.emitter.stopListening(this.observable,"change:"+this.attribute,b)}}}class jh extends f2{activateDomEventListener(r,l,m){const b=(M,S)=>{l&&!S.target.matches(l)||("function"==typeof this.eventNameOrFunction?this.eventNameOrFunction(S):this.observable.fire(this.eventNameOrFunction,S))};return this.emitter.listenTo(m.node,r,b),()=>{this.emitter.stopListening(m.node,r,b)}}}class bm extends f2{getValue(r){return!$o(super.getValue(r))&&(this.valueIfTrue||!0)}}function h2(d){return!!d&&(d.value&&(d=d.value),Array.isArray(d)?d.some(h2):d instanceof f2)}function d0(d,r,{node:l}){let m=(M=l,d.map(S=>S instanceof f2?S.getValue(M):S));var M;m=1==d.length&&d[0]instanceof bm?m[0]:m.reduce(hs,""),$o(m)?r.remove():r.set(m)}function b_(d){return{set(r){d.textContent=r},remove(){d.textContent=""}}}function Wh(d,r,l){return{set(m){d.setAttributeNS(l,r,m)},remove(){d.removeAttributeNS(l,r)}}}function C_(d,r){return{set(l){d.style[r]=l},remove(){d.style[r]=null}}}function g2(d){return Ts(d,r=>{if(r&&(r instanceof f2||T_(r)||y_(r)||qp(r)))return r})}function kf(d){if("string"==typeof d?d=function(r){return{text:[r]}}(d):d.text&&function(r){Array.isArray(r.text)||(r.text=[r.text])}(d),d.on&&(d.eventListeners=function(r){for(const l in r)p0(r,l);return r}(d.on),delete d.on),!d.text){d.attributes&&function(l){for(const m in l)l[m].value&&(l[m].value=[].concat(l[m].value)),p0(l,m)}(d.attributes);const r=[];if(d.children)if(qp(d.children))r.push(d.children);else for(const l of d.children)T_(l)||y_(l)||Xd(l)?r.push(l):r.push(new yl(l));d.children=r}return d}function p0(d,r){Array.isArray(d[r])||(d[r]=[d[r]])}function hs(d,r){return $o(r)?d:$o(d)?r:`${d} ${r}`}function $h(d,r){for(const l in r)d[l]?d[l].push(...r[l]):d[l]=r[l]}function $o(d){return!d&&0!==d}function y_(d){return d instanceof Xo}function T_(d){return d instanceof yl}function qp(d){return d instanceof O1}function L1(d){return"class"==d||"style"==d}p(15);class Xo{constructor(r){this.element=null,this.isRendered=!1,this.locale=r,this.t=r&&r.t,this._viewCollections=new Nr,this._unboundChildren=this.createCollection(),this._viewCollections.on("add",(l,m)=>{m.locale=r}),this.decorate("render")}get bindTemplate(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=yl.bind(this,this)}createCollection(r){const l=new O1(r);return this._viewCollections.add(l),l}registerChild(r){Ba(r)||(r=[r]);for(const l of r)this._unboundChildren.add(l)}deregisterChild(r){Ba(r)||(r=[r]);for(const l of r)this._unboundChildren.remove(l)}setTemplate(r){this.template=new yl(r)}extendTemplate(r){yl.extend(this.template,r)}render(){if(this.isRendered)throw new Qn.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)}}io(Xo,Ue),io(Xo,kt);var m0=function(d){return"string"==typeof d||!Sn(d)&&st(d)&&"[object String]"==V(d)};class _0 extends O1{constructor(r,l=[]){super(l),this.locale=r}attachToDom(){this._bodyCollectionContainer=new yl({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,m,b={},M=[]){const S=b&&b.xmlns,q=S?l.createElementNS(S,m):l.createElement(m);for(const B in b)q.setAttribute(B,b[B]);!m0(M)&&Ba(M)||(M=[M]);for(let B of M)m0(B)&&(B=l.createTextNode(B)),q.appendChild(B);return q}(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()}}p(17);class o6 extends Xo{constructor(r){super(r),this.body=new _0(r)}render(){super.render(),this.body.attachToDom()}destroy(){return this.body.detachFromDom(),super.destroy()}}p(19);class v2 extends Xo{constructor(r){super(r),this.set("text"),this.set("for"),this.id="ck-editor__label_"+vr();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 A_ extends o6{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 v2;return l.text=r("Rich Text Editor"),l.extendTemplate({attributes:{class:"ck-voice-label"}}),l}}class x2 extends Xo{constructor(r,l,m){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=m,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(m){r.change(b=>{const M=r.document.getRoot(m.name);b.addClass(m.isFocused?"ck-focused":"ck-blurred",M),b.removeClass(m.isFocused?"ck-blurred":"ck-focused",M)})}r.isRenderingInProgress?function m(b){r.once("change:isRenderingInProgress",(M,S,q)=>{q?m(b):l(b)})}(this):l(this)}}class f0 extends x2{constructor(r,l,m){super(r,l,m),this.extendTemplate({attributes:{role:"textbox",class:"ck-editor__editable_inline"}})}render(){super.render();const r=this._editingView,l=this.t;r.change(m=>{const b=r.document.getRoot(this.name);m.setAttribute("aria-label",l("Rich Text Editor, %0",[this.name]),b)})}}function hu(d){return r=>r+d}p(21);const Sd=hu("px");class F3 extends Xo{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 yl({tag:"div",attributes:{class:["ck","ck-sticky-panel__placeholder"],style:{display:l.to("isSticky",m=>m?"block":"none"),height:l.to("isSticky",m=>m?Sd(this._panelRect.height):null)}}}).render(),this._contentPanel=new yl({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",m=>m?Sd(this._contentPanelPlaceholder.getBoundingClientRect().width):null),top:l.to("_hasViewportTopOffset",m=>m?Sd(this.viewportTopOffset):null),bottom:l.to("_isStickyToTheLimiter",m=>m?Sd(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(ft.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](),S()})}}get first(){return this.focusables.find(Cm)||null}get last(){return this.focusables.filter(Cm).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,m)=>{const b=l.element===this.focusTracker.focusedElement;return b&&(r=m),b}),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,m=this.focusables.length;if(!m)return null;if(null===l)return this[1===r?"first":"last"];let b=(l+m+r)%m;do{const M=this.focusables.get(b);if(Cm(M))return M;b=(b+m+r)%m}while(b!==l);return null}}function Cm(d){return!(!d.focus||"none"==ft.window.getComputedStyle(d.element).display)}class Sf extends Xo{constructor(r){super(r),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__separator"]}})}}class sc{constructor(r,l){sc._observerInstance||sc._createObserver(),this._element=r,this._callback=l,sc._addElementCallback(r,l),sc._observerInstance.observe(r)}destroy(){sc._deleteElementCallback(this._element,this._callback)}static _addElementCallback(r,l){sc._elementCallbacks||(sc._elementCallbacks=new Map);let m=sc._elementCallbacks.get(r);m||(m=new Set,sc._elementCallbacks.set(r,m)),m.add(l)}static _deleteElementCallback(r,l){const m=sc._getElementCallbacks(r);m&&(m.delete(l),m.size||(sc._elementCallbacks.delete(r),sc._observerInstance.unobserve(r))),sc._elementCallbacks&&!sc._elementCallbacks.size&&(sc._observerInstance=null,sc._elementCallbacks=null)}static _getElementCallbacks(r){return sc._elementCallbacks?sc._elementCallbacks.get(r):null}static _createObserver(){let r;r="function"==typeof ft.window.ResizeObserver?ft.window.ResizeObserver:Kh,sc._observerInstance=new r(l=>{for(const m of l){if(!m.target.offsetParent)continue;const b=sc._getElementCallbacks(m.target);if(b)for(const M of b)M(m)}})}}sc._observerInstance=null,sc._elementCallbacks=null;class Kh{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(ft.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 Ds(r),m=this._previousRects.get(r),b=!m||!m.isEqual(l);return this._previousRects.set(r,l),b}}io(Kh,Ue);class ym extends Xo{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",m=>"ck-dropdown__panel_"+m),l.if("isVisible","ck-dropdown__panel-visible")]},children:this.children,on:{selectstart:l.to(m=>m.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 U_({element:d,target:r,positions:l,limiter:m,fitInViewport:b}){ne(r)&&(r=r()),ne(m)&&(m=m());const M=(Zt=d)&&Zt.parentNode?Zt.offsetParent===ft.document.body?null:Zt.offsetParent:null,S=new Ds(d),q=new Ds(r);var Zt;let B,at;[at,B]=(m||b)&&function(_e,Be){const{elementRect:mn,viewportRect:Mn}=Be,In=mn.getArea(),Gn=function(Fi,{targetRect:Ji,elementRect:Do,limiterRect:ba,viewportRect:Yc}){const cs=[],ol=Do.getArea();for(const _r of Fi){const Mc=Hp(_r,Ji,Do);if(!Mc)continue;const[Al,al]=Mc;let m1=0,B1=0;if(ba)if(Yc){const xd=ba.getIntersection(Yc);xd&&(m1=xd.getIntersectionArea(al))}else m1=ba.getIntersectionArea(al);Yc&&(B1=Yc.getIntersectionArea(al));const vd={positionName:Al,positionRect:al,limiterIntersectArea:m1,viewportIntersectArea:B1};if(m1===ol)return[vd];cs.push(vd)}return cs}(_e,Be);if(Mn){const Fi=Od(Gn.filter(({viewportIntersectArea:Ji})=>Ji===In),In);if(Fi)return Fi}return Od(Gn,In)}(l,{targetRect:q,elementRect:S,limiterRect:m&&new Ds(m).getVisible(),viewportRect:b&&new Ds(ft.window)})||Hp(l[0],q,S);let _t=b2(B);return M&&(_t=function({left:Zt,top:_e},Be){const mn=b2(new Ds(Be)),Mn=ki(Be);return Zt-=mn.left,_e-=mn.top,Zt+=Be.scrollLeft,_e+=Be.scrollTop,{left:Zt-=Mn.left,top:_e-=Mn.top}}(_t,M)),{left:_t.left,top:_t.top,name:at}}function Hp(d,r,l){const m=d(r,l);if(!m)return null;const{left:b,top:M,name:S}=m;return[S,l.clone().moveTo(b,M)]}function Od(d,r){let l,m,b=0;for(const{positionName:M,positionRect:S,limiterIntersectArea:q,viewportIntersectArea:B}of d){if(q===r)return[M,S];const at=B**2+q**2;at>b&&(b=at,l=S,m=M)}return l?[m,l]:null}function b2({left:d,top:r}){const{scrollX:l,scrollY:m}=ft.window;return{left:d+l,top:r+m}}p(23);class lp extends Xo{constructor(r,l,m){super(r);const b=this.bindTemplate;this.buttonView=l,this.panelView=m,this.set("isOpen",!1),this.set("isEnabled",!0),this.set("class"),this.set("id"),this.set("panelPosition","auto"),this.keystrokes=new Il,this.setTemplate({tag:"div",attributes:{class:["ck","ck-dropdown",b.to("class"),b.if("isEnabled","ck-disabled",M=>!M)],id:b.to("id"),"aria-describedby":b.to("ariaDescribedById")},children:[l,m]}),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?lp._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,m)=>{this.isOpen&&(this.buttonView.focus(),this.isOpen=!1,m())};this.keystrokes.set("arrowdown",(l,m)=>{this.buttonView.isEnabled&&!this.isOpen&&(this.isOpen=!0,m())}),this.keystrokes.set("arrowright",(l,m)=>{this.isOpen&&m()}),this.keystrokes.set("arrowleft",r),this.keystrokes.set("esc",r)}focus(){this.buttonView.focus()}get _panelPositions(){const{southEast:r,southWest:l,northEast:m,northWest:b}=lp.defaultPanelPositions;return"ltr"===this.locale.uiLanguageDirection?[r,l,m,b]:[l,r,b,m]}}lp.defaultPanelPositions={southEast:d=>({top:d.bottom,left:d.left,name:"se"}),southWest:(d,r)=>({top:d.bottom,left:d.left-r.width+d.width,name:"sw"}),northEast:(d,r)=>({top:d.top-r.height,left:d.left,name:"ne"}),northWest:(d,r)=>({top:d.bottom-r.height,left:d.left-r.width+d.width,name:"nw"})},lp._getOptimalPosition=U_,p(25);class Tm extends Xo{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})}}p(27);class h0 extends Xo{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",m=>"ck-tooltip_"+m),l.if("text","ck-hidden",m=>!m.trim())]},children:[{tag:"span",attributes:{class:["ck","ck-tooltip__text"]},children:[{text:l.to("text")}]}]})}}p(29);class Rs extends Xo{constructor(r){super(r);const l=this.bindTemplate,m=vr();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(m),this.iconView=new Tm,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",b=>!b),l.if("isVisible","ck-hidden",b=>!b),l.to("isOn",b=>b?"ck-on":"ck-off"),l.if("withText","ck-button_with-text"),l.if("withKeystroke","ck-button_with-keystroke")],type:l.to("type",b=>b||"button"),tabindex:l.to("tabindex"),"aria-labelledby":"ck-editor__aria-label_"+m,"aria-disabled":l.if("isEnabled",!0,b=>!b),"aria-pressed":l.to("isOn",b=>!!this.isToggleable&&String(b))},children:this.children,on:{mousedown:l.to(b=>{b.preventDefault()}),click:l.to(b=>{this.isEnabled?this.fire("execute"):b.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 h0;return r.bind("text").to(this,"_tooltipString"),r.bind("position").to(this,"tooltipPosition"),r}_createLabelView(r){const l=new Xo;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 Xo;return r.setTemplate({tag:"span",attributes:{class:["ck","ck-button__keystroke"]},children:[{text:this.bindTemplate.to("keystroke",l=>kl(l))}]}),r}_getTooltipString(r,l,m){return r?"string"==typeof r?r:(m&&(m=kl(m)),r instanceof Function?r(l,m):`${l}${m?` (${m})`:""}`):""}}var C2='';class up extends Rs{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 Tm;return r.content=C2,r.extendTemplate({attributes:{class:"ck-dropdown__arrow"}}),r}}p(31);class g0 extends Xo{constructor(){super(),this.items=this.createCollection(),this.focusTracker=new Ac,this.keystrokes=new Il,this._focusCycler=new Rp({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 Xh extends Xo{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 tg extends Xo{constructor(r){super(r),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__separator"]}})}}p(33);class Am extends Rs{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 Xo;return r.setTemplate({tag:"span",attributes:{class:["ck","ck-button__toggle"]},children:[{tag:"span",attributes:{class:["ck","ck-button__toggle__inner"]}}]}),r}}function Um({emitter:d,activator:r,callback:l,contextElements:m}){d.listenTo(document,"mousedown",(b,{target:M})=>{if(r()){for(const S of m)if(S.contains(M))return;l()}})}function r1(d,r=up){const l=new r(d),m=new ym(d),b=new lp(d,l,m);return l.bind("isEnabled").to(b),l instanceof up?l.bind("isOn").to(b,"isOpen"):l.arrowView.bind("isOn").to(b,"isOpen"),(S=M=b).on("render",()=>{Um({emitter:S,activator:()=>S.isOpen,callback:()=>{S.isOpen=!1},contextElements:[S.element]})}),function(S){S.on("execute",q=>{q.source instanceof Am||(S.isOpen=!1)})}(M),function(S){S.keystrokes.set("arrowdown",(q,B)=>{S.isOpen&&(S.panelView.focus(),B())}),S.keystrokes.set("arrowup",(q,B)=>{S.isOpen&&(S.panelView.focusLast(),B())})}(M),b;var M,S}function v0(d,r){const l=d.locale,m=d.listView=new g0(l);m.items.bindTo(r).using(({type:b,model:M})=>{if("separator"===b)return new tg(l);if("button"===b||"switchbutton"===b){const S=new Xh(l);let q;return q="button"===b?new Rs(l):new Am(l),q.bind(...Object.keys(M)).to(M),q.delegate("execute").to(S),S.children.add(q),S}}),d.panelView.children.add(m),m.items.delegate("execute").to(d)}p(35),p(37),p(39);class y2 extends Xo{constructor(r,l){super(r);const m=this.bindTemplate,b=this.t;var M;this.options=l||{},this.set("ariaLabel",b("Editor toolbar")),this.set("maxWidth","auto"),this.items=this.createCollection(),this.focusTracker=new Ac,this.keystrokes=new Il,this.set("class"),this.set("isCompact",!1),this.itemsView=new N3(r),this.children=this.createCollection(),this.children.add(this.itemsView),this.focusables=this.createCollection(),this._focusCycler=new Rp({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",m.to("class"),m.if("isCompact","ck-toolbar_compact")],role:"toolbar","aria-label":m.to("ariaLabel"),style:{maxWidth:m.to("maxWidth")}},children:this.children,on:{mousedown:(M=this,M.bindTemplate.to(S=>{S.target===M.element&&S.preventDefault()}))}}),this._behavior=this.options.shouldGroupWhenFull?new eg(this):new Of(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(m=>"|"==m?new Sf:l.has(m)?l.create(m):void console.warn(Object(Qn.a)("toolbarview-item-unavailable: The requested toolbar item is unavailable."),{name:m})).filter(m=>void 0!==m))}}class N3 extends Xo{constructor(r){super(r),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar__items"]},children:this.children})}}class Of{constructor(r){const l=r.bindTemplate;r.set("isVertical",!1),r.itemsView.children.bindTo(r.items).using(m=>m),r.focusables.bindTo(r.items).using(m=>m),r.extendTemplate({attributes:{class:[l.if("isVertical","ck-toolbar_vertical")]}})}render(){}destroy(){}}class eg{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,m)=>{const b=m.index;for(const M of m.removed)b>=this.ungroupedItems.length?this.groupedItems.remove(M):this.ungroupedItems.remove(M);for(let M=b;Mthis.ungroupedItems.length?this.groupedItems.add(S,M-this.ungroupedItems.length):this.ungroupedItems.add(S,M)}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,m=new Ds(r.lastChild),b=new Ds(r);if(!this.cachedPadding){const M=ft.window.getComputedStyle(r);this.cachedPadding=Number.parseInt(M["ltr"===l?"paddingRight":"paddingLeft"])}return"ltr"===l?m.right>b.right-this.cachedPadding:m.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 Sf),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,m=r1(r);return m.class="ck-toolbar__grouped-dropdown",m.panelPosition="ltr"===r.uiLanguageDirection?"sw":"se",function(b,M){const S=b.locale,q=S.t,B=b.toolbarView=new y2(S);B.set("ariaLabel",q("Dropdown toolbar")),b.extendTemplate({attributes:{class:["ck-toolbar-dropdown"]}}),[].map(at=>B.items.add(at)),b.panelView.children.add(B),B.items.delegate("execute").to(b)}(m),m.buttonView.set({label:l("Show more items"),tooltip:!0,icon:''}),m.toolbarView.items.bindTo(this.groupedItems).using(b=>b),m}_updateFocusCycleableItems(){this.viewFocusables.clear(),this.ungroupedItems.map(r=>{this.viewFocusables.add(r)}),this.groupedItems.length&&this.viewFocusables.add(this.groupedItemsDropdown)}}p(41);class x0 extends A_{constructor(r,l,m={}){super(r),this.stickyPanel=new F3(r),this.toolbar=new y2(r,{shouldGroupWhenFull:m.shouldToolbarGroupWhenFull}),this.editable=new f0(r,l)}render(){super.render(),this.stickyPanel.content.add(this.toolbar),this.top.add(this.stickyPanel),this.main.add(this.editable)}}class Lf extends Ip{constructor(r,l){super(l),As(r)&&(this.sourceElement=r),this.data.processor=new m2(this.data.viewDocument),this.model.document.createRoot();const m=!this.config.get("toolbar.shouldNotGroupWhenFull"),b=new x0(this.locale,this.editing.view,{shouldToolbarGroupWhenFull:m});this.ui=new Qh(this,b),function(M){if(!ne(M.updateSourceElement))throw new Qn.b("attachtoform-missing-elementapi-interface: Editor passed to attachToForm() must implement ElementApi.",M);const S=M.sourceElement;if(S&&"textarea"===S.tagName.toLowerCase()&&S.form){let q;const B=S.form,at=()=>M.updateSourceElement();ne(B.submit)&&(q=B.submit,B.submit=()=>{at(),q.apply(B)}),B.addEventListener("submit",at),M.on("destroy",()=>{B.removeEventListener("submit",at),q&&(B.submit=q)})}}(this)}destroy(){return this.sourceElement&&this.updateSourceElement(),this.ui.destroy(),super.destroy()}static create(r,l={}){return new Promise(m=>{const b=new this(r,l);m(b.initPlugins().then(()=>b.ui.init(As(r)?r:null)).then(()=>{if(!As(r)&&l.initialData)throw new Qn.b("editor-create-initial-data: The config.initialData option cannot be used together with initial data passed in Editor.create().",null);const M=l.initialData||(As(S=r)?(q=S)instanceof HTMLTextAreaElement?q.value:q.innerHTML:S);var S,q;return b.data.init(M)}).then(()=>b.fire("ready")).then(()=>b))})}}io(Lf,Zf),io(Lf,x_);class Eo{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",ng,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(r){this._disableStack.delete(r),0==this._disableStack.size&&(this.off("set:isEnabled",ng),this.isEnabled=!0)}destroy(){this.stopListening()}static get isContextPlugin(){return!1}}function ng(d){d.return=!1,d.stop()}io(Eo,kt);class w_{constructor(r){this.files=function(l){const m=l.files?Array.from(l.files):[],b=l.items?Array.from(l.items):[];return m.length?m:b.filter(M=>"file"===M.kind).map(M=>M.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 b0 extends U1{constructor(r){super(r);const l=this.document;function m(b,M){M.preventDefault();const S=M.dropRange?[M.dropRange]:Array.from(l.selection.getRanges()),q=new Va(l,"clipboardInput");l.fire(q,{dataTransfer:M.dataTransfer,targetRanges:S}),q.stop.called&&M.stopPropagation()}this.domEventType=["paste","copy","cut","drop","dragover"],this.listenTo(l,"paste",m,{priority:"low"}),this.listenTo(l,"drop",m,{priority:"low"})}onDomEvent(r){const l={dataTransfer:new w_(r.clipboardData?r.clipboardData:r.dataTransfer)};"drop"==r.type&&(l.dropRange=function(m,b){const M=b.target.ownerDocument,S=b.clientX,q=b.clientY;let B;return M.caretRangeFromPoint&&M.caretRangeFromPoint(S,q)?B=M.caretRangeFromPoint(S,q):b.rangeParent&&(B=M.createRange(),B.setStart(b.rangeParent,b.rangeOffset),B.collapse(!0)),B?m.domConverter.domRangeToView(B):m.document.selection.getFirstRange()}(this.view,r)),this.fire(r.type,r,l)}}const wm=["figcaption","li"];class Mm extends Eo{static get pluginName(){return"Clipboard"}init(){const r=this.editor,l=r.model.document,m=r.editing.view,b=m.document;function M(S,q){const B=q.dataTransfer;q.preventDefault();const at=r.data.toView(r.model.getSelectedContent(l.selection));b.fire("clipboardOutput",{dataTransfer:B,content:at,method:S.name})}this._htmlDataProcessor=new m2(b),m.addObserver(b0),this.listenTo(b,"clipboardInput",S=>{r.isReadOnly&&S.stop()},{priority:"highest"}),this.listenTo(b,"clipboardInput",(S,q)=>{const B=q.dataTransfer;let at="";var _t;B.getData("text/html")?at=B.getData("text/html").replace(/(\s+)<\/span>/g,(Be,mn)=>1==mn.length?" ":mn):B.getData("text/plain")&&((_t=(_t=B.getData("text/plain")).replace(//g,">").replace(/\n/g,"

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

")>-1&&(_t=`

${_t}

`),at=_t),at=this._htmlDataProcessor.toView(at);const Zt=new Va(this,"inputTransformation");this.fire(Zt,{content:at,dataTransfer:B}),Zt.stop.called&&S.stop(),m.scrollToTheSelection()},{priority:"low"}),this.listenTo(this,"inputTransformation",(S,q)=>{if(!q.content.isEmpty){const at=this.editor.model,_t=this.editor.data.toModel(q.content,"$clipboardHolder");if(0==_t.childCount)return;at.insertContent(_t),S.stop()}},{priority:"low"}),this.listenTo(b,"copy",M,{priority:"low"}),this.listenTo(b,"cut",(S,q)=>{r.isReadOnly?q.preventDefault():M(S,q)},{priority:"low"}),this.listenTo(b,"clipboardOutput",(S,q)=>{q.content.isEmpty||(q.dataTransfer.setData("text/html",this._htmlDataProcessor.toData(q.content)),q.dataTransfer.setData("text/plain",function B(at){let _t="";if(at.is("$text")||at.is("$textProxy"))_t=at.data;else if(at.is("element","img")&&at.hasAttribute("alt"))_t=at.getAttribute("alt");else{let Zt=null;for(const _e of at.getChildren()){const Be=B(_e);Zt&&(Zt.is("containerElement")||_e.is("containerElement"))&&(wm.includes(Zt.name)||wm.includes(_e.name)?_t+="\n":_t+="\n\n"),_t+=Be,Zt=_e}}return _t}(q.content))),"cut"==q.method&&r.model.deleteContent(l.selection)},{priority:"low"})}}class Ha{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,m,b)=>{b?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")})}refresh(){this.isEnabled=!0}forceDisabled(r){this._disableStack.add(r),1==this._disableStack.size&&(this.on("set:isEnabled",Zm,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(r){this._disableStack.delete(r),0==this._disableStack.size&&(this.off("set:isEnabled",Zm),this.refresh())}execute(){}destroy(){this.stopListening()}}function Zm(d){d.return=!1,d.stop()}function*ig(d,r){for(const l of r)l&&d.getAttributeProperties(l[0]).copyOnEnter&&(yield l)}io(Ha,kt);class I3 extends Ha{execute(){const r=this.editor.model,l=r.document;r.change(m=>{(function(b,M,S,q){const B=S.isCollapsed,at=S.getFirstRange(),_t=at.start.parent,Zt=at.end.parent;if(q.isLimit(_t)||q.isLimit(Zt))B||_t!=Zt||b.deleteContent(S);else if(B){const _e=ig(M.model.schema,S.getAttributes());og(M,at.start),M.setSelectionAttribute(_e)}else{const _e=!(at.start.isAtStart&&at.end.isAtEnd),Be=_t==Zt;b.deleteContent(S,{leaveUnmerged:_e}),_e&&(Be?og(M,S.focus):M.setSelection(Zt,0))}})(this.editor.model,m,l.selection,r.schema),this.fire("afterExecute",{writer:m})})}}function og(d,r){d.split(r),d.setSelection(r.parent.nextSibling,0)}class ao extends Co{constructor(r){super(r);const l=this.document;l.on("keydown",(m,b)=>{if(this.isEnabled&&b.keyCode==sa.enter){let M;l.once("enter",S=>M=S,{priority:"highest"}),l.fire("enter",new A1(l,b.domEvent,{isSoft:b.shiftKey})),M&&M.stop.called&&m.stop()}})}observe(){}}class q3 extends Eo{static get pluginName(){return"Enter"}init(){const r=this.editor,l=r.editing.view,m=l.document;l.addObserver(ao),r.commands.add("enter",new I3(r)),this.listenTo(m,"enter",(b,M)=>{M.preventDefault(),M.isSoft||(r.execute("enter"),l.scrollToTheSelection())},{priority:"low"})}}class C0 extends Ha{execute(){const r=this.editor.model,l=r.document;r.change(m=>{(function(b,M,S){const q=S.isCollapsed,B=S.getFirstRange(),_t=B.end.parent,Zt=B.start.parent==_t;if(q){const _e=ig(b.schema,S.getAttributes());s1(b,M,B.end),M.removeSelectionAttribute(S.getAttributeKeys()),M.setSelectionAttribute(_e)}else{const _e=!(B.start.isAtStart&&B.end.isAtEnd);b.deleteContent(S,{leaveUnmerged:_e}),Zt?s1(b,M,S.focus):_e&&M.setSelection(_t,0)}})(r,m,l.selection),this.fire("afterExecute",{writer:m})})}refresh(){const r=this.editor.model;this.isEnabled=function(m,b){if(b.rangeCount>1)return!1;const M=b.anchor;if(!M||!m.checkChild(M,"softBreak"))return!1;const S=b.getFirstRange(),q=S.start.parent,B=S.end.parent;return!((Ef(q,m)||Ef(B,m))&&q!==B)}(r.schema,r.document.selection)}}function s1(d,r,l){const m=r.createElement("softBreak");d.insertContent(m,l),r.setSelection(m,"after")}function Ef(d,r){return!d.is("rootElement")&&(r.isLimit(d)||Ef(d.parent,r))}class Ff extends Eo{static get pluginName(){return"ShiftEnter"}init(){const r=this.editor,m=r.conversion,b=r.editing.view,M=b.document;r.model.schema.register("softBreak",{allowWhere:"$text",isInline:!0}),m.for("upcast").elementToElement({model:"softBreak",view:"br"}),m.for("downcast").elementToElement({model:"softBreak",view:(S,q)=>q.createEmptyElement("br")}),b.addObserver(ao),r.commands.add("shiftEnter",new C0(r)),this.listenTo(M,"enter",(S,q)=>{q.preventDefault(),q.isSoft&&(r.execute("shiftEnter"),b.scrollToTheSelection())},{priority:"low"})}}class Nf extends Ha{execute(){const r=this.editor.model,l=r.document.selection;let m=r.schema.getLimitElement(l);if(l.containsEntireContent(m)||!y0(r.schema,m))do{if(m=m.parent,!m)return}while(!y0(r.schema,m));r.change(b=>{b.setSelection(m,"in")})}}function y0(d,r){return d.isLimit(r)&&(d.checkChild(r,"$text")||d.checkChild(r,"paragraph"))}const M_=ep("Ctrl+A");class Yp extends Eo{static get pluginName(){return"SelectAllEditing"}init(){const r=this.editor,l=r.editing.view.document;r.commands.add("selectAll",new Nf(r)),this.listenTo(l,"keydown",(m,b)=>{hr(b)===M_&&(r.execute("selectAll"),b.preventDefault())})}}class R3 extends Eo{static get pluginName(){return"SelectAllUI"}init(){const r=this.editor;r.ui.componentFactory.add("selectAll",l=>{const m=r.commands.get("selectAll"),b=new Rs(l);return b.set({label:(0,l.t)("Select all"),icon:'',keystroke:"Ctrl+A",tooltip:!0}),b.bind("isOn","isEnabled").to(m,"value","isEnabled"),this.listenTo(b,"execute",()=>{r.execute("selectAll"),r.editing.view.focus()}),b})}}class ag extends Eo{static get requires(){return[Yp,R3]}static get pluginName(){return"SelectAll"}}class Dm{constructor(r,l=20){this.model=r,this.size=0,this.limit=l,this.isLocked=!1,this._changeCallback=(m,b)=>{"transparent"!=b.type&&b!==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 rg extends Ha{constructor(r,l){super(r),this._buffer=new Dm(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,m=l.document,b=r.text||"",M=b.length,S=r.range?l.createSelection(r.range):m.selection,q=r.resultRange;l.enqueueChange(this._buffer.batch,B=>{this._buffer.lock(),this._batches.add(this._buffer.batch),l.deleteContent(S),b&&l.insertContent(B.createText(b,m.selection.getAttributes()),S),q?B.setSelection(q):S.is("documentSelection")||B.setSelection(S),this._buffer.unlock(),this._buffer.input(M)})}}const Pm=[hr("arrowUp"),hr("arrowRight"),hr("arrowDown"),hr("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 d=112;d<=135;d++)Pm.push(d);function T2(d){return!!d.ctrlKey||Pm.includes(d.keyCode)}function T0(d){if(d.newChildren.length-d.oldChildren.length!=1)return;const r=function(m,b){const M=[];let S,q=0;return m.forEach(_t=>{"equal"==_t?(B(),q++):"insert"==_t?(at("insert")?S.values.push(b[q]):(B(),S={type:"insert",index:q,values:[b[q]]}),q++):at("delete")?S.howMany++:(B(),S={type:"delete",index:q,howMany:1})}),B(),M;function B(){S&&(M.push(S),S=null)}function at(_t){return S&&S.type==_t}}(qc(d.oldChildren,d.newChildren,km),d.newChildren);if(r.length>1)return;const l=r[0];return l.values[0]&&l.values[0].is("$text")?l:void 0}function km(d,r){return d&&d.is("$text")&&r&&r.is("$text")?d.data===r.data:d===r}class E1{constructor(r){this.editor=r,this.editing=this.editor.editing}handle(r,l){if(function(m){if(0==m.length)return!1;for(const b of m)if("children"===b.type&&!T0(b))return!0;return!1}(r))this._handleContainerChildrenMutations(r,l);else for(const m of r)this._handleTextMutation(m,l),this._handleTextNodeInsertion(m)}_handleContainerChildrenMutations(r,l){const m=function(ol){const _r=ol.map(Mc=>Mc.node).reduce((Mc,Al)=>Mc.getCommonAncestor(Al,{includeSelf:!0}));if(_r)return _r.getAncestors({includeSelf:!0,parentFirst:!0}).find(Mc=>Mc.is("containerElement")||Mc.is("rootElement"))}(r);if(!m)return;const b=this.editor.editing.view.domConverter.mapViewToDom(m),M=new ee(this.editor.editing.view.document),S=this.editor.data.toModel(M.domToView(b)).getChild(0),q=this.editor.editing.mapper.toModelElement(m);if(!q)return;const B=Array.from(S.getChildren()),at=Array.from(q.getChildren()),_t=B[B.length-1],Zt=at[at.length-1],_e=_t&&_t.is("element","softBreak"),Be=Zt&&!Zt.is("element","softBreak");_e&&Be&&B.pop();const mn=this.editor.model.schema;if(!sg(B,mn)||!sg(at,mn))return;const Mn=B.map(ol=>ol.is("$text")?ol.data:"@").join("").replace(/\u00A0/g," "),In=at.map(ol=>ol.is("$text")?ol.data:"@").join("").replace(/\u00A0/g," ");if(In===Mn)return;const Gn=qc(In,Mn),{firstChangeAt:Fi,insertions:Ji,deletions:Do}=cg(Gn);let ba=null;l&&(ba=this.editing.mapper.toModelRange(l.getFirstRange()));const Yc=Mn.substr(Fi,Ji),cs=this.editor.model.createRange(this.editor.model.createPositionAt(q,Fi),this.editor.model.createPositionAt(q,Fi+Do));this.editor.execute("input",{text:Yc,range:cs,resultRange:ba})}_handleTextMutation(r,l){if("text"!=r.type)return;const m=r.newText.replace(/\u00A0/g," "),b=r.oldText.replace(/\u00A0/g," ");if(b===m)return;const M=qc(b,m),{firstChangeAt:S,insertions:q,deletions:B}=cg(M);let at=null;l&&(at=this.editing.mapper.toModelRange(l.getFirstRange()));const _t=this.editing.view.createPositionAt(r.node,S),Zt=this.editing.mapper.toModelPosition(_t),_e=this.editor.model.createRange(Zt,Zt.getShiftedBy(B)),Be=m.substr(S,q);this.editor.execute("input",{text:Be,range:_e,resultRange:at})}_handleTextNodeInsertion(r){if("children"!=r.type)return;const l=T0(r),m=this.editing.view.createPositionAt(r.node,l.index),b=this.editing.mapper.toModelPosition(m);this.editor.execute("input",{text:l.values[0].data.replace(/\u00A0/g," "),range:this.editor.model.createRange(b)})}}function sg(d,r){return d.every(l=>r.isInline(l))}function cg(d){let r=null,l=null;for(let M=0;M{M.deleteContent(M.document.selection)}),_t.unlock()}S.document.on(Zs_isAndroid?"beforeinput":"keydown",(_t,Zt)=>function B(_t){const Zt=M.document,_e=S.document.isComposing,Be=b&&b.isEqual(Zt.selection);b=null,q.isEnabled&&(T2(_t)||Zt.selection.isCollapsed||_e&&229===_t.keyCode||!_e&&229===_t.keyCode&&Be||at())}(Zt),{priority:"lowest"}),S.document.on("compositionstart",function(){const _t=M.document,Zt=1!==_t.selection.rangeCount||_t.selection.getFirstRange().isFlat;_t.selection.isCollapsed||Zt||at()},{priority:"lowest"}),S.document.on("compositionend",()=>{b=M.createSelection(M.document.selection)},{priority:"lowest"})}(r),(m=r).editing.view.document.on("mutations",(b,M,S)=>{new E1(m).handle(M,S)})}isInput(r){return this.editor.commands.get("input")._batches.has(r)}}class A0 extends Ha{constructor(r,l){super(r),this.direction=l,this._buffer=new Dm(r.model,r.config.get("typing.undoStep"))}get buffer(){return this._buffer}execute(r={}){const l=this.editor.model,m=l.document;l.enqueueChange(this._buffer.batch,b=>{this._buffer.lock();const M=b.createSelection(r.selection||m.selection),S=M.isCollapsed;if(M.isCollapsed&&l.modifySelection(M,{direction:this.direction,unit:r.unit}),this._shouldEntireContentBeReplacedWithParagraph(r.sequence||1))return void this._replaceEntireContentWithParagraph(b);if(M.isCollapsed)return;let q=0;M.getFirstRange().getMinimalFlatRanges().forEach(B=>{q+=oa(B.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))}),l.deleteContent(M,{doNotResetEntireContent:S,direction:this.direction}),this._buffer.input(q),b.setSelection(M),this._buffer.unlock()})}_shouldEntireContentBeReplacedWithParagraph(r){if(r>1)return!1;const l=this.editor.model,m=l.document.selection,b=l.schema.getLimitElement(m);if(!m.isCollapsed||!m.containsEntireContent(b)||!l.schema.checkChild(b,"paragraph"))return!1;const M=b.getChild(0);return!M||"paragraph"!==M.name}_replaceEntireContentWithParagraph(r){const l=this.editor.model,b=l.schema.getLimitElement(l.document.selection),M=r.createElement("paragraph");r.remove(r.createRangeIn(b)),r.insert(M,b),r.setSelection(M,0)}}class lg extends Co{constructor(r){super(r);const l=r.document;let m=0;function b(M,S,q){let B;l.once("delete",at=>B=at,{priority:Number.POSITIVE_INFINITY}),l.fire("delete",new A1(l,S,q)),B&&B.stop.called&&M.stop()}l.on("keyup",(M,S)=>{S.keyCode!=sa.delete&&S.keyCode!=sa.backspace||(m=0)}),l.on("keydown",(M,S)=>{const q={};if(S.keyCode==sa.delete)q.direction="forward",q.unit="character";else{if(S.keyCode!=sa.backspace)return;q.direction="backward",q.unit="codePoint"}q.unit=(Zs_isMac?S.altKey:S.ctrlKey)?"word":q.unit,q.sequence=++m,b(M,S.domEvent,q)}),Zs_isAndroid&&l.on("beforeinput",(M,S)=>{if("deleteContentBackward"!=S.domEvent.inputType)return;const q={unit:"codepoint",direction:"backward",sequence:1},B=S.domTarget.ownerDocument.defaultView.getSelection();B.anchorNode==B.focusNode&&B.anchorOffset+1!=B.focusOffset&&(q.selectionToRemove=r.domConverter.domSelectionToView(B)),b(M,S.domEvent,q)})}observe(){}}class a6 extends Eo{static get pluginName(){return"Delete"}init(){const r=this.editor,l=r.editing.view,m=l.document;if(l.addObserver(lg),r.commands.add("forwardDelete",new A0(r,"forward")),r.commands.add("delete",new A0(r,"backward")),this.listenTo(m,"delete",(b,M)=>{const S={unit:M.unit,sequence:M.sequence};if(M.selectionToRemove){const q=r.model.createSelection(),B=[];for(const at of M.selectionToRemove.getRanges())B.push(r.editing.mapper.toModelRange(at));q.setTo(B),S.selection=q}r.execute("forward"==M.direction?"forwardDelete":"delete",S),M.preventDefault(),l.scrollToTheSelection()}),Zs_isAndroid){let b=null;this.listenTo(m,"delete",(M,S)=>{const q=S.domTarget.ownerDocument.defaultView.getSelection();b={anchorNode:q.anchorNode,anchorOffset:q.anchorOffset,focusNode:q.focusNode,focusOffset:q.focusOffset}},{priority:"lowest"}),this.listenTo(m,"keyup",(M,S)=>{if(b){const q=S.domTarget.ownerDocument.defaultView.getSelection();q.collapse(b.anchorNode,b.anchorOffset),q.extend(b.focusNode,b.focusOffset),b=null}})}}}class ug extends Eo{static get requires(){return[H3,a6]}static get pluginName(){return"Typing"}}const Z_=new Map;function br(d,r,l){let m=Z_.get(d);m||(m=new Map,Z_.set(d,m)),m.set(r,l)}function ld(d){return[d]}function Hu(d,r,l={}){const m=function(b,M){const S=Z_.get(b);return S&&S.has(M)?S.get(M):ld}(d.constructor,r.constructor);try{return m(d=d.clone(),r,l)}catch(b){throw b}}function F1(d,r,l){d=d.slice(),r=r.slice();const m=new dg(l.document,l.useRelations,l.forceWeakRemove);m.setOriginalOperations(d),m.setOriginalOperations(r);const b=m.originalOperations;if(0==d.length||0==r.length)return{operationsA:d,operationsB:r,originalOperations:b};const M=new WeakMap;for(const B of d)M.set(B,0);const S={nextBaseVersionA:d[d.length-1].baseVersion+1,nextBaseVersionB:r[r.length-1].baseVersion+1,originalOperationsACount:d.length,originalOperationsBCount:r.length};let q=0;for(;q{if(d.key===r.key&&d.range.start.hasSameParentAs(r.range.start)){const m=d.range.getDifference(r.range).map(M=>new mc(M,d.key,d.oldValue,d.newValue,0)),b=d.range.getIntersection(r.range);return b&&l.aIsStrong&&m.push(new mc(b,r.key,r.newValue,d.newValue,0)),0==m.length?[new fc(0)]:m}return[d]}),br(mc,ka,(d,r)=>{if(d.range.start.hasSameParentAs(r.position)&&d.range.containsPosition(r.position)){const l=d.range._getTransformedByInsertion(r.position,r.howMany,!r.shouldReceiveAttributes).map(m=>new mc(m,d.key,d.oldValue,d.newValue,d.baseVersion));if(r.shouldReceiveAttributes){const m=dp(r,d.key,d.oldValue);m&&l.unshift(m)}return l}return d.range=d.range._getTransformedByInsertion(r.position,r.howMany,!1)[0],[d]}),br(mc,ya,(d,r)=>{const l=[];d.range.start.hasSameParentAs(r.deletionPosition)&&(d.range.containsPosition(r.deletionPosition)||d.range.start.isEqual(r.deletionPosition))&&l.push(zi._createFromPositionAndShift(r.graveyardPosition,1));const m=d.range._getTransformedByMergeOperation(r);return m.isCollapsed||l.push(m),l.map(b=>new mc(b,d.key,d.oldValue,d.newValue,d.baseVersion))}),br(mc,ns,(d,r)=>function(l,m){const b=zi._createFromPositionAndShift(m.sourcePosition,m.howMany);let M=null,S=[];b.containsRange(l,!0)?M=l:l.start.hasSameParentAs(b.start)?(S=l.getDifference(b),M=l.getIntersection(b)):S=[l];const q=[];for(let B of S){B=B._getTransformedByDeletion(m.sourcePosition,m.howMany);const at=m.getMovedRangeStart(),_t=B.start.hasSameParentAs(at);B=B._getTransformedByInsertion(at,m.howMany,_t),q.push(...B)}return M&&q.push(M._getTransformedByMove(m.sourcePosition,m.targetPosition,m.howMany,!1)[0]),q}(d.range,r).map(l=>new mc(l,d.key,d.oldValue,d.newValue,d.baseVersion))),br(mc,Qr,(d,r)=>{if(d.range.end.isEqual(r.insertionPosition))return r.graveyardPosition||d.range.end.offset++,[d];if(d.range.start.hasSameParentAs(r.splitPosition)&&d.range.containsPosition(r.splitPosition)){const l=d.clone();return l.range=new zi(r.moveTargetPosition.clone(),d.range.end._getCombined(r.splitPosition,r.moveTargetPosition)),d.range.end=r.splitPosition.clone(),d.range.end.stickiness="toPrevious",[d,l]}return d.range=d.range._getTransformedBySplitOperation(r),[d]}),br(ka,mc,(d,r)=>{const l=[d];if(d.shouldReceiveAttributes&&d.position.hasSameParentAs(r.range.start)&&r.range.containsPosition(d.position)){const m=dp(d,r.key,r.newValue);m&&l.push(m)}return l}),br(ka,ka,(d,r,l)=>(d.position.isEqual(r.position)&&l.aIsStrong||(d.position=d.position._getTransformedByInsertOperation(r)),[d])),br(ka,ns,(d,r)=>(d.position=d.position._getTransformedByMoveOperation(r),[d])),br(ka,Qr,(d,r)=>(d.position=d.position._getTransformedBySplitOperation(r),[d])),br(ka,ya,(d,r)=>(d.position=d.position._getTransformedByMergeOperation(r),[d])),br(Sr,ka,(d,r)=>(d.oldRange&&(d.oldRange=d.oldRange._getTransformedByInsertOperation(r)[0]),d.newRange&&(d.newRange=d.newRange._getTransformedByInsertOperation(r)[0]),[d])),br(Sr,Sr,(d,r,l)=>{if(d.name==r.name){if(!l.aIsStrong)return[new fc(0)];d.oldRange=r.newRange?r.newRange.clone():null}return[d]}),br(Sr,ya,(d,r)=>(d.oldRange&&(d.oldRange=d.oldRange._getTransformedByMergeOperation(r)),d.newRange&&(d.newRange=d.newRange._getTransformedByMergeOperation(r)),[d])),br(Sr,ns,(d,r,l)=>{if(d.oldRange&&(d.oldRange=zi._createFromRanges(d.oldRange._getTransformedByMoveOperation(r))),d.newRange){if(l.abRelation){const m=zi._createFromRanges(d.newRange._getTransformedByMoveOperation(r));if("left"==l.abRelation.side&&r.targetPosition.isEqual(d.newRange.start))return d.newRange.start.path=l.abRelation.path,d.newRange.end=m.end,[d];if("right"==l.abRelation.side&&r.targetPosition.isEqual(d.newRange.end))return d.newRange.start=m.start,d.newRange.end.path=l.abRelation.path,[d]}d.newRange=zi._createFromRanges(d.newRange._getTransformedByMoveOperation(r))}return[d]}),br(Sr,Qr,(d,r,l)=>{if(d.oldRange&&(d.oldRange=d.oldRange._getTransformedBySplitOperation(r)),d.newRange){if(l.abRelation){const m=d.newRange._getTransformedBySplitOperation(r);return d.newRange.start.isEqual(r.splitPosition)&&l.abRelation.wasStartBeforeMergedElement?d.newRange.start=po._createAt(r.insertionPosition):d.newRange.start.isEqual(r.splitPosition)&&!l.abRelation.wasInLeftElement&&(d.newRange.start=po._createAt(r.moveTargetPosition)),d.newRange.end=d.newRange.end.isEqual(r.splitPosition)&&l.abRelation.wasInRightElement?po._createAt(r.moveTargetPosition):d.newRange.end.isEqual(r.splitPosition)&&l.abRelation.wasEndBeforeMergedElement?po._createAt(r.insertionPosition):m.end,[d]}d.newRange=d.newRange._getTransformedBySplitOperation(r)}return[d]}),br(ya,ka,(d,r)=>(d.sourcePosition.hasSameParentAs(r.position)&&(d.howMany+=r.howMany),d.sourcePosition=d.sourcePosition._getTransformedByInsertOperation(r),d.targetPosition=d.targetPosition._getTransformedByInsertOperation(r),[d])),br(ya,ya,(d,r,l)=>{if(d.sourcePosition.isEqual(r.sourcePosition)&&d.targetPosition.isEqual(r.targetPosition)){if(l.bWasUndone){const m=r.graveyardPosition.path.slice();return m.push(0),d.sourcePosition=new po(r.graveyardPosition.root,m),d.howMany=0,[d]}return[new fc(0)]}if(d.sourcePosition.isEqual(r.sourcePosition)&&!d.targetPosition.isEqual(r.targetPosition)&&!l.bWasUndone&&"splitAtSource"!=l.abRelation){const m="$graveyard"==d.targetPosition.root.rootName,b="$graveyard"==r.targetPosition.root.rootName;if(b&&!m||(!m||b)&&l.aIsStrong){const S=r.targetPosition._getTransformedByMergeOperation(r),q=d.targetPosition._getTransformedByMergeOperation(r);return[new ns(S,d.howMany,q,0)]}return[new fc(0)]}return d.sourcePosition.hasSameParentAs(r.targetPosition)&&(d.howMany+=r.howMany),d.sourcePosition=d.sourcePosition._getTransformedByMergeOperation(r),d.targetPosition=d.targetPosition._getTransformedByMergeOperation(r),d.graveyardPosition.isEqual(r.graveyardPosition)&&l.aIsStrong||(d.graveyardPosition=d.graveyardPosition._getTransformedByMergeOperation(r)),[d]}),br(ya,ns,(d,r,l)=>{const m=zi._createFromPositionAndShift(r.sourcePosition,r.howMany);return"remove"==r.type&&!l.bWasUndone&&!l.forceWeakRemove&&d.deletionPosition.hasSameParentAs(r.sourcePosition)&&m.containsPosition(d.sourcePosition)?[new fc(0)]:(d.sourcePosition.hasSameParentAs(r.targetPosition)&&(d.howMany+=r.howMany),d.sourcePosition.hasSameParentAs(r.sourcePosition)&&(d.howMany-=r.howMany),d.sourcePosition=d.sourcePosition._getTransformedByMoveOperation(r),d.targetPosition=d.targetPosition._getTransformedByMoveOperation(r),d.graveyardPosition.isEqual(r.targetPosition)||(d.graveyardPosition=d.graveyardPosition._getTransformedByMoveOperation(r)),[d])}),br(ya,Qr,(d,r,l)=>{if(r.graveyardPosition&&(d.graveyardPosition=d.graveyardPosition._getTransformedByDeletion(r.graveyardPosition,1),d.deletionPosition.isEqual(r.graveyardPosition)&&(d.howMany=r.howMany)),d.targetPosition.isEqual(r.splitPosition)){const m=0!=r.howMany,b=r.graveyardPosition&&d.deletionPosition.isEqual(r.graveyardPosition);if(m||b||"mergeTargetNotMoved"==l.abRelation)return d.sourcePosition=d.sourcePosition._getTransformedBySplitOperation(r),[d]}if(d.sourcePosition.isEqual(r.splitPosition)){if("mergeSourceNotMoved"==l.abRelation)return d.howMany=0,d.targetPosition=d.targetPosition._getTransformedBySplitOperation(r),[d];if("mergeSameElement"==l.abRelation||d.sourcePosition.offset>0)return d.sourcePosition=r.moveTargetPosition.clone(),d.targetPosition=d.targetPosition._getTransformedBySplitOperation(r),[d]}return d.sourcePosition.hasSameParentAs(r.splitPosition)&&(d.howMany=r.splitPosition.offset),d.sourcePosition=d.sourcePosition._getTransformedBySplitOperation(r),d.targetPosition=d.targetPosition._getTransformedBySplitOperation(r),[d]}),br(ns,ka,(d,r)=>{const l=zi._createFromPositionAndShift(d.sourcePosition,d.howMany)._getTransformedByInsertOperation(r,!1)[0];return d.sourcePosition=l.start,d.howMany=l.end.offset-l.start.offset,d.targetPosition.isEqual(r.position)||(d.targetPosition=d.targetPosition._getTransformedByInsertOperation(r)),[d]}),br(ns,ns,(d,r,l)=>{const m=zi._createFromPositionAndShift(d.sourcePosition,d.howMany),b=zi._createFromPositionAndShift(r.sourcePosition,r.howMany);let M,S=l.aIsStrong,q=!l.aIsStrong;if("insertBefore"==l.abRelation||"insertAfter"==l.baRelation?q=!0:"insertAfter"!=l.abRelation&&"insertBefore"!=l.baRelation||(q=!1),M=d.targetPosition.isEqual(r.targetPosition)&&q?d.targetPosition._getTransformedByDeletion(r.sourcePosition,r.howMany):d.targetPosition._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany),zp(d,r)&&zp(r,d))return[r.getReversed()];if(m.containsPosition(r.targetPosition)&&m.containsRange(b,!0))return m.start=m.start._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany),m.end=m.end._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany),D_([m],M);if(b.containsPosition(d.targetPosition)&&b.containsRange(m,!0))return m.start=m.start._getCombined(r.sourcePosition,r.getMovedRangeStart()),m.end=m.end._getCombined(r.sourcePosition,r.getMovedRangeStart()),D_([m],M);const B=_s(d.sourcePosition.getParentPath(),r.sourcePosition.getParentPath());if("prefix"==B||"extension"==B)return m.start=m.start._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany),m.end=m.end._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany),D_([m],M);"remove"!=d.type||"remove"==r.type||l.aWasUndone||l.forceWeakRemove?"remove"==d.type||"remove"!=r.type||l.bWasUndone||l.forceWeakRemove||(S=!1):S=!0;const at=[],_t=m.getDifference(b);for(const _e of _t){_e.start=_e.start._getTransformedByDeletion(r.sourcePosition,r.howMany),_e.end=_e.end._getTransformedByDeletion(r.sourcePosition,r.howMany);const Be="same"==_s(_e.start.getParentPath(),r.getMovedRangeStart().getParentPath()),mn=_e._getTransformedByInsertion(r.getMovedRangeStart(),r.howMany,Be);at.push(...mn)}const Zt=m.getIntersection(b);return null!==Zt&&S&&(Zt.start=Zt.start._getCombined(r.sourcePosition,r.getMovedRangeStart()),Zt.end=Zt.end._getCombined(r.sourcePosition,r.getMovedRangeStart()),0===at.length?at.push(Zt):1==at.length?b.start.isBefore(m.start)||b.start.isEqual(m.start)?at.unshift(Zt):at.push(Zt):at.splice(1,0,Zt)),0===at.length?[new fc(d.baseVersion)]:D_(at,M)}),br(ns,Qr,(d,r,l)=>{let m=d.targetPosition.clone();d.targetPosition.isEqual(r.insertionPosition)&&r.graveyardPosition&&"moveTargetAfter"!=l.abRelation||(m=d.targetPosition._getTransformedBySplitOperation(r));const b=zi._createFromPositionAndShift(d.sourcePosition,d.howMany);if(b.end.isEqual(r.insertionPosition))return r.graveyardPosition||d.howMany++,d.targetPosition=m,[d];if(b.start.hasSameParentAs(r.splitPosition)&&b.containsPosition(r.splitPosition)){let S=new zi(r.splitPosition,b.end);return S=S._getTransformedBySplitOperation(r),D_([new zi(b.start,r.splitPosition),S],m)}d.targetPosition.isEqual(r.splitPosition)&&"insertAtSource"==l.abRelation&&(m=r.moveTargetPosition),d.targetPosition.isEqual(r.insertionPosition)&&"insertBetween"==l.abRelation&&(m=d.targetPosition);const M=[b._getTransformedBySplitOperation(r)];if(r.graveyardPosition){const S=b.start.isEqual(r.graveyardPosition)||b.containsPosition(r.graveyardPosition);d.howMany>1&&S&&!l.aWasUndone&&M.push(zi._createFromPositionAndShift(r.insertionPosition,1))}return D_(M,m)}),br(ns,ya,(d,r,l)=>{const m=zi._createFromPositionAndShift(d.sourcePosition,d.howMany);if(r.deletionPosition.hasSameParentAs(d.sourcePosition)&&m.containsPosition(r.sourcePosition))if("remove"!=d.type||l.forceWeakRemove){if(1==d.howMany)return l.bWasUndone?(d.sourcePosition=r.graveyardPosition.clone(),d.targetPosition=d.targetPosition._getTransformedByMergeOperation(r),[d]):[new fc(0)]}else if(!l.aWasUndone){const M=[];let S=r.graveyardPosition.clone(),q=r.targetPosition._getTransformedByMergeOperation(r);d.howMany>1&&(M.push(new ns(d.sourcePosition,d.howMany-1,d.targetPosition,0)),S=S._getTransformedByMove(d.sourcePosition,d.targetPosition,d.howMany-1),q=q._getTransformedByMove(d.sourcePosition,d.targetPosition,d.howMany-1));const B=r.deletionPosition._getCombined(d.sourcePosition,d.targetPosition),at=new ns(S,1,B,0),_t=at.getMovedRangeStart().path.slice();_t.push(0);const Zt=new po(at.targetPosition.root,_t);q=q._getTransformedByMove(S,B,1);const _e=new ns(q,r.howMany,Zt,0);return M.push(at),M.push(_e),M}const b=zi._createFromPositionAndShift(d.sourcePosition,d.howMany)._getTransformedByMergeOperation(r);return d.sourcePosition=b.start,d.howMany=b.end.offset-b.start.offset,d.targetPosition=d.targetPosition._getTransformedByMergeOperation(r),[d]}),br(Hr,ka,(d,r)=>(d.position=d.position._getTransformedByInsertOperation(r),[d])),br(Hr,ya,(d,r)=>d.position.isEqual(r.deletionPosition)?(d.position=r.graveyardPosition.clone(),d.position.stickiness="toNext",[d]):(d.position=d.position._getTransformedByMergeOperation(r),[d])),br(Hr,ns,(d,r)=>(d.position=d.position._getTransformedByMoveOperation(r),[d])),br(Hr,Hr,(d,r,l)=>{if(d.position.isEqual(r.position)){if(!l.aIsStrong)return[new fc(0)];d.oldName=r.newName}return[d]}),br(Hr,Qr,(d,r)=>{if("same"==_s(d.position.path,r.splitPosition.getParentPath())&&!r.graveyardPosition){const l=new Hr(d.position.getShiftedBy(1),d.oldName,d.newName,0);return[d,l]}return d.position=d.position._getTransformedBySplitOperation(r),[d]}),br(bs,bs,(d,r,l)=>{if(d.root===r.root&&d.key===r.key){if(!l.aIsStrong||d.newValue===r.newValue)return[new fc(0)];d.oldValue=r.newValue}return[d]}),br(Qr,ka,(d,r)=>(d.splitPosition.hasSameParentAs(r.position)&&d.splitPosition.offset{if(!d.graveyardPosition&&!l.bWasUndone&&d.splitPosition.hasSameParentAs(r.sourcePosition)){const m=r.graveyardPosition.path.slice();m.push(0);const b=new po(r.graveyardPosition.root,m),M=Qr.getInsertionPosition(new po(r.graveyardPosition.root,m)),S=new Qr(b,0,null,0);return S.insertionPosition=M,d.splitPosition=d.splitPosition._getTransformedByMergeOperation(r),d.insertionPosition=Qr.getInsertionPosition(d.splitPosition),d.graveyardPosition=S.insertionPosition.clone(),d.graveyardPosition.stickiness="toNext",[S,d]}return d.splitPosition.hasSameParentAs(r.deletionPosition)&&!d.splitPosition.isAfter(r.deletionPosition)&&d.howMany--,d.splitPosition.hasSameParentAs(r.targetPosition)&&(d.howMany+=r.howMany),d.splitPosition=d.splitPosition._getTransformedByMergeOperation(r),d.insertionPosition=Qr.getInsertionPosition(d.splitPosition),d.graveyardPosition&&(d.graveyardPosition=d.graveyardPosition._getTransformedByMergeOperation(r)),[d]}),br(Qr,ns,(d,r,l)=>{const m=zi._createFromPositionAndShift(r.sourcePosition,r.howMany);if(d.graveyardPosition){const b=m.start.isEqual(d.graveyardPosition)||m.containsPosition(d.graveyardPosition);if(!l.bWasUndone&&b){const M=d.splitPosition._getTransformedByMoveOperation(r),S=d.graveyardPosition._getTransformedByMoveOperation(r),q=S.path.slice();q.push(0);const B=new po(S.root,q);return[new ns(M,d.howMany,B,0)]}d.graveyardPosition=d.graveyardPosition._getTransformedByMoveOperation(r)}return d.splitPosition.hasSameParentAs(r.sourcePosition)&&m.containsPosition(d.splitPosition)?(d.howMany-=r.howMany-(d.splitPosition.offset-r.sourcePosition.offset),d.splitPosition.hasSameParentAs(r.targetPosition)&&d.splitPosition.offset{if(d.splitPosition.isEqual(r.splitPosition)){if(!d.graveyardPosition&&!r.graveyardPosition)return[new fc(0)];if(d.graveyardPosition&&r.graveyardPosition&&d.graveyardPosition.isEqual(r.graveyardPosition))return[new fc(0)];if("splitBefore"==l.abRelation)return d.howMany=0,d.graveyardPosition=d.graveyardPosition._getTransformedBySplitOperation(r),[d]}if(d.graveyardPosition&&r.graveyardPosition&&d.graveyardPosition.isEqual(r.graveyardPosition)){const m="$graveyard"==d.splitPosition.root.rootName,b="$graveyard"==r.splitPosition.root.rootName;if(b&&!m||(!m||b)&&l.aIsStrong){const S=[];return r.howMany&&S.push(new ns(r.moveTargetPosition,r.howMany,r.splitPosition,0)),d.howMany&&S.push(new ns(d.splitPosition,d.howMany,d.moveTargetPosition,0)),S}return[new fc(0)]}if(d.graveyardPosition&&(d.graveyardPosition=d.graveyardPosition._getTransformedBySplitOperation(r)),d.splitPosition.isEqual(r.insertionPosition)&&"splitBefore"==l.abRelation)return d.howMany++,[d];if(r.splitPosition.isEqual(d.insertionPosition)&&"splitBefore"==l.baRelation){const m=r.insertionPosition.path.slice();m.push(0);const b=new po(r.insertionPosition.root,m);return[d,new ns(d.insertionPosition,1,b,0)]}return d.splitPosition.hasSameParentAs(r.splitPosition)&&d.splitPosition.offsetthis.clearStack())}refresh(){this.isEnabled=this._stack.length>0}addBatch(r){const l=this.editor.model.document.selection,m={ranges:l.hasOwnRange?Array.from(l.getRanges()):[],isBackward:l.isBackward};this._stack.push({batch:r,selection:m}),this.refresh()}clearStack(){this._stack=[],this.refresh()}_restoreSelection(r,l,m){const b=this.editor.model,M=b.document,S=[],q=r.map(at=>at.getTransformedByOperations(m)),B=q.flat();for(const at of q){const _t=at.filter(_e=>!Sm(_e,B));A2(_t);const Zt=_t.find(_e=>_e.root!=M.graveyard);Zt&&S.push(Zt)}S.length&&b.change(at=>{at.setSelection(S,{backward:l})})}_undo(r,l){const m=this.editor.model,b=m.document;this._createdBatches.add(l);const M=r.operations.slice().filter(S=>S.isDocumentOperation);M.reverse();for(const S of M){const B=Array.from(b.history.getOperations(S.baseVersion+1)),at=F1([S.getReversed()],B,{useRelations:!0,document:this.editor.model.document,padWithNoOps:!1,forceWeakRemove:!0}).operationsA;for(const _t of at)l.addOperation(_t),m.applyOperation(_t),b.history.setOperationAsUndone(S,_t)}}}function A2(d){d.sort((r,l)=>r.start.isBefore(l.start)?-1:1);for(let r=1;rl!==d&&l.containsRange(d,!0))}class w0 extends U0{execute(r=null){const l=r?this._stack.findIndex(M=>M.batch==r):this._stack.length-1,m=this._stack.splice(l,1)[0],b=this.editor.model.createBatch("transparent");this.editor.model.enqueueChange(b,()=>{this._undo(m.batch,b);const M=this.editor.model.document.history.getOperations(m.batch.baseVersion);this._restoreSelection(m.selection.ranges,m.selection.isBackward,M),this.fire("revert",m.batch,b)}),this.refresh()}}class M0 extends U0{execute(){const r=this._stack.pop(),l=this.editor.model.createBatch("transparent");this.editor.model.enqueueChange(l,()=>{const b=this.editor.model.document.history.getOperations(r.batch.operations[r.batch.operations.length-1].baseVersion+1);this._restoreSelection(r.selection.ranges,r.selection.isBackward,b),this._undo(r.batch,l)}),this.refresh()}}class If extends Eo{static get pluginName(){return"UndoEditing"}constructor(r){super(r),this._batchRegistry=new WeakSet}init(){const r=this.editor;this._undoCommand=new w0(r),this._redoCommand=new M0(r),r.commands.add("undo",this._undoCommand),r.commands.add("redo",this._redoCommand),this.listenTo(r.model,"applyOperation",(l,m)=>{const b=m[0];if(!b.isDocumentOperation)return;const M=b.batch,S=this._redoCommand._createdBatches.has(M),q=this._undoCommand._createdBatches.has(M);this._batchRegistry.has(M)||"transparent"==M.type&&!S&&!q||(S?this._undoCommand.addBatch(M):q||(this._undoCommand.addBatch(M),this._redoCommand.clearStack()),this._batchRegistry.add(M))},{priority:"highest"}),this.listenTo(this._undoCommand,"revert",(l,m,b)=>{this._redoCommand.addBatch(b)}),r.keystrokes.set("CTRL+Z","undo"),r.keystrokes.set("CTRL+Y","redo"),r.keystrokes.set("CTRL+SHIFT+Z","redo")}}var Ea='',qf='';class Z0 extends Eo{init(){const r=this.editor,l=r.locale,m=r.t,b="ltr"==l.uiLanguageDirection?Ea:qf,M="ltr"==l.uiLanguageDirection?qf:Ea;this._addButton("undo",m("Undo"),"CTRL+Z",b),this._addButton("redo",m("Redo"),"CTRL+Y",M)}_addButton(r,l,m,b){const M=this.editor;M.ui.componentFactory.add(r,S=>{const q=M.commands.get(r),B=new Rs(S);return B.set({label:l,icon:b,keystroke:m,tooltip:!0}),B.bind("isEnabled").to(q,"isEnabled"),this.listenTo(B,"execute",()=>{M.execute(r),M.editing.view.focus()}),B})}}class Rf extends Eo{static get requires(){return[If,Z0]}static get pluginName(){return"Undo"}}class U2{constructor(r){this.context=r}destroy(){this.stopListening()}static get isContextPlugin(){return!0}}io(U2,kt);class D0 extends U2{static get pluginName(){return"PendingActions"}init(){this.set("hasAny",!1),this._actions=new Nr({idProperty:"_id"}),this._actions.delegate("add","remove").to(this)}add(r){if("string"!=typeof r)throw new Qn.b("pendingactions-add-invalid-message: The message must be a string.",this);const l=Object.create(kt);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 Hf{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((m,b)=>{l.onload=()=>{const M=l.result;this._data=M,m(M)},l.onerror=()=>{b("error")},l.onabort=()=>{b("aborted")},this._reader.readAsDataURL(r)})}abort(){this._reader.abort()}}io(Hf,kt);class N1 extends Eo{static get pluginName(){return"FileRepository"}static get requires(){return[D0]}init(){this.loaders=new Nr,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(Qn.a)("filerepository-no-upload-adapter: Upload adapter is not defined.")),null;const l=new Yf(Promise.resolve(r),this.createUploadAdapter);return this.loaders.add(l),this._loadersMap.set(r,l),r instanceof Promise&&l.file.then(m=>{this._loadersMap.set(m,l)}).catch(()=>{}),l.on("change:uploaded",()=>{let m=0;for(const b of this.loaders)m+=b.uploaded;this.uploaded=m}),l.on("change:uploadTotal",()=>{let m=0;for(const b of this.loaders)b.uploadTotal&&(m+=b.uploadTotal);this.uploadTotal=m}),l}destroyLoader(r){const l=r instanceof Yf?r:this.getLoader(r);l._destroy(),this.loaders.remove(l),this._loadersMap.forEach((m,b)=>{m===l&&this._loadersMap.delete(b)})}_updatePendingAction(){const r=this.editor.plugins.get(D0);if(this.loaders.length){if(!this._pendingAction){const l=this.editor.t,m=b=>`${l("Upload in progress")} ${parseInt(b)}%.`;this._pendingAction=r.add(m(this.uploadedPercent)),this._pendingAction.bind("message").to(this,"uploadedPercent",m)}}else r.remove(this._pendingAction),this._pendingAction=null}}io(N1,kt);class Yf{constructor(r,l){this.id=vr(),this._filePromiseWrapper=this._createFilePromiseWrapper(r),this._adapter=l(this),this._reader=new Hf,this.set("status","idle"),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(m,b)=>b?m/b*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 Qn.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 Qn.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((m,b)=>{l.rejecter=b,l.isFulfilled=!1,r.then(M=>{l.isFulfilled=!0,m(M)}).catch(M=>{l.isFulfilled=!0,b(M)})}),l}}io(Yf,kt);class P0 extends Eo{static get requires(){return[N1]}static get pluginName(){return"CKFinderUploadAdapter"}init(){const r=this.editor.config.get("ckfinder.uploadUrl");r&&(this.editor.plugins.get(N1).createUploadAdapter=l=>new P_(l,r,this.editor.t))}}class P_{constructor(r,l,m){this.loader=r,this.url=l,this.t=m}upload(){return this.loader.file.then(r=>new Promise((l,m)=>{this._initRequest(),this._initListeners(l,m,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,m){const b=this.xhr,M=this.loader,S=(0,this.t)("Cannot upload file:")+` ${m.name}.`;b.addEventListener("error",()=>l(S)),b.addEventListener("abort",()=>l()),b.addEventListener("load",()=>{const q=b.response;if(!q||!q.uploaded)return l(q&&q.error&&q.error.message?q.error.message:S);r({default:q.url})}),b.upload&&b.upload.addEventListener("progress",q=>{q.lengthComputable&&(M.uploadTotal=q.total,M.uploaded=q.loaded)})}_sendRequest(r){const l=new FormData;l.append("upload",r),l.append("ckCsrfToken",function mg(){let d=function(m){m=m.toLowerCase();const b=document.cookie.split(";");for(const M of b){const S=M.split("=");if(decodeURIComponent(S[0].trim().toLowerCase())===m)return decodeURIComponent(S[1])}return null}("ckCsrfToken");var l;return d&&40==d.length||(d=function(m){let b="";const M=new Uint8Array(40);window.crypto.getRandomValues(M);for(let S=0;S.5?q.toUpperCase():q}return b}(),l=d,document.cookie=encodeURIComponent("ckCsrfToken")+"="+encodeURIComponent(l)+";path=/"),d}()),this.xhr.send(l)}}function eu(d){const r=d.next();return r.done?null:r.value}function Uc(d,r,l,m){let b,M=null;"function"==typeof m?b=m:(M=d.commands.get(m),b=()=>{d.execute(m)}),d.model.document.on("change:data",(S,q)=>{if(M&&!M.isEnabled||!r.isEnabled)return;const B=eu(d.model.document.selection.getRanges());if(!B.isCollapsed||"transparent"==q.type)return;const at=Array.from(d.model.document.differ.getChanges()),_t=at[0];if(1!=at.length||"insert"!==_t.type||"$text"!=_t.name||1!=_t.length)return;const Zt=_t.position.parent;if(Zt.is("element","codeBlock")||M&&!0===M.value)return;const _e=Zt.getChild(0),Be=d.model.createRangeOn(_e);if(!Be.containsRange(B)&&!B.end.isEqual(Be.end))return;const mn=l.exec(_e.data.substr(0,B.end.offset));mn&&d.model.enqueueChange(Mn=>{const In=Mn.createPositionAt(Zt,0),Gn=Mn.createPositionAt(Zt,mn[0].length),Fi=new Pp(In,Gn);!1!==b({match:mn})&&Mn.remove(Fi),Fi.detach()})})}function dd(d,r,l,m){let b,M;l instanceof RegExp?b=l:M=l,M=M||(S=>{let q;const B=[],at=[];for(;null!==(q=b.exec(S))&&!(q&&q.length<4);){let{index:_t,1:Zt,2:_e,3:Be}=q;_t+=q[0].length-(Zt+_e+Be).length;const In=[_t+Zt.length+_e.length,_t+Zt.length+_e.length+Be.length];B.push([_t,_t+Zt.length]),B.push(In),at.push([_t+Zt.length,_t+Zt.length+_e.length])}return{remove:B,format:at}}),d.model.document.on("change:data",(S,q)=>{if("transparent"==q.type||!r.isEnabled)return;const B=d.model,at=B.document.selection;if(!at.isCollapsed)return;const _t=Array.from(B.document.differ.getChanges()),Zt=_t[0];if(1!=_t.length||"insert"!==Zt.type||"$text"!=Zt.name||1!=Zt.length)return;const _e=at.focus,Be=_e.parent,{text:mn,range:Mn}=function(Ji,Do){let ba=Ji.start;return{text:Array.from(Ji.getItems()).reduce((Yc,cs)=>!cs.is("$text")&&!cs.is("$textProxy")||cs.getAttribute("code")?(ba=Do.createPositionAfter(cs),""):Yc+cs.data,""),range:Do.createRange(ba,Ji.end)}}(B.createRange(B.createPositionAt(Be,0),_e),B),In=M(mn),Gn=_g(Mn.start,In.format,B),Fi=_g(Mn.start,In.remove,B);Gn.length&&Fi.length&&B.enqueueChange(Ji=>{if(!1!==m(Ji,Gn))for(const Do of Fi.reverse())Ji.remove(Do)})})}function _g(d,r,l){return r.filter(m=>void 0!==m[0]&&void 0!==m[1]).map(m=>l.createRange(d.getShiftedBy(m[0]),d.getShiftedBy(m[1])))}function pd(d,r){return(l,m)=>{if(!d.commands.get(r).isEnabled)return!1;const b=d.model.schema.getValidRanges(m,r);for(const M of b)l.setAttribute(r,!0,M);l.removeSelectionAttribute(r)}}class Fa extends Ha{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,m=l.document.selection,b=void 0===r.forceValue?!this.value:r.forceValue;l.change(M=>{if(m.isCollapsed)b?M.setSelectionAttribute(this.attributeKey,!0):M.removeSelectionAttribute(this.attributeKey);else{const S=l.schema.getValidRanges(m.getRanges(),this.attributeKey);for(const q of S)b?M.setAttribute(this.attributeKey,b,q):M.removeAttribute(this.attributeKey,q)}})}_getValueFromFirstAllowedNode(){const r=this.editor.model,l=r.schema,m=r.document.selection;if(m.isCollapsed)return m.hasAttribute(this.attributeKey);for(const b of m.getRanges())for(const M of b.getItems())if(l.checkAttribute(M,this.attributeKey))return M.hasAttribute(this.attributeKey);return!1}}class zf extends Eo{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 m=l.getStyle("font-weight");return m?"bold"==m||Number(m)>=600?{name:!0,styles:["font-weight"]}:void 0:null}]}),r.commands.add("bold",new Fa(r,"bold")),r.keystrokes.set("CTRL+B","bold")}}class Yu extends Eo{init(){const r=this.editor,l=r.t;r.ui.componentFactory.add("bold",m=>{const b=r.commands.get("bold"),M=new Rs(m);return M.set({label:l("Bold"),icon:'',keystroke:"CTRL+B",tooltip:!0,isToggleable:!0}),M.bind("isOn","isEnabled").to(b,"value","isEnabled"),this.listenTo(M,"execute",()=>{r.execute("bold"),r.editing.view.focus()}),M})}}class Rc extends Eo{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 Fa(r,"italic")),r.keystrokes.set("CTRL+I","italic")}}class w2 extends Eo{init(){const r=this.editor,l=r.t;r.ui.componentFactory.add("italic",m=>{const b=r.commands.get("italic"),M=new Rs(m);return M.set({label:l("Italic"),icon:'',keystroke:"CTRL+I",tooltip:!0,isToggleable:!0}),M.bind("isOn","isEnabled").to(b,"value","isEnabled"),this.listenTo(M,"execute",()=>{r.execute("italic"),r.editing.view.focus()}),M})}}class I1 extends Ha{refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(r={}){const l=this.editor.model,m=l.schema,M=Array.from(l.document.selection.getSelectedBlocks()),S=void 0===r.forceValue?!this.value:r.forceValue;l.change(q=>{if(S){const B=M.filter(at=>M2(at)||k0(m,at));this._applyQuote(q,B)}else this._removeQuote(q,M.filter(M2))})}_getValue(){const r=eu(this.editor.model.document.selection.getSelectedBlocks());return!(!r||!M2(r))}_checkEnabled(){if(this.value)return!0;const l=this.editor.model.schema,m=eu(this.editor.model.document.selection.getSelectedBlocks());return!!m&&k0(l,m)}_removeQuote(r,l){Y3(r,l).reverse().forEach(m=>{if(m.start.isAtStart&&m.end.isAtEnd)return void r.unwrap(m.start.parent);if(m.start.isAtStart){const M=r.createPositionBefore(m.start.parent);return void r.move(m,M)}m.end.isAtEnd||r.split(m.end);const b=r.createPositionAfter(m.end.parent);r.move(m,b)})}_applyQuote(r,l){const m=[];Y3(r,l).reverse().forEach(b=>{let M=M2(b.start);M||(M=r.createElement("blockQuote"),r.wrap(b,M)),m.push(M)}),m.reverse().reduce((b,M)=>b.nextSibling==M?(r.merge(r.createPositionAfter(b)),b):M)}}function M2(d){return"blockQuote"==d.parent.name?d.parent:null}function Y3(d,r){let l,m=0;const b=[];for(;m{if(m.endsWith("blockQuote")&&"blockQuote"==b.name)return!1}),r.conversion.elementToElement({model:"blockQuote",view:"blockquote"}),r.model.document.registerPostFixer(m=>{const b=r.model.document.differ.getChanges();for(const M of b)if("insert"==M.type){const S=M.position.nodeAfter;if(!S)continue;if(S.is("element","blockQuote")&&S.isEmpty)return m.remove(S),!0;if(S.is("element","blockQuote")&&!l.checkChild(M.position,S))return m.unwrap(S),!0;if(S.is("element")){const q=m.createRangeIn(S);for(const B of q.getItems())if(B.is("element","blockQuote")&&!l.checkChild(m.createPositionBefore(B),B))return m.unwrap(B),!0}}else if("remove"==M.type){const S=M.position.parent;if(S.is("element","blockQuote")&&S.isEmpty)return m.remove(S),!0}return!1})}afterInit(){const r=this.editor.commands.get("blockQuote");this.listenTo(this.editor.editing.view.document,"enter",(l,m)=>{const b=this.editor.model.document,M=b.selection.getLastPosition().parent;b.selection.isCollapsed&&M.isEmpty&&r.value&&(this.editor.execute("blockQuote"),this.editor.editing.view.scrollToTheSelection(),m.preventDefault(),l.stop())})}}p(43);class Z2 extends Eo{init(){const r=this.editor,l=r.t;r.ui.componentFactory.add("blockQuote",m=>{const b=r.commands.get("blockQuote"),M=new Rs(m);return M.set({label:l("Block quote"),icon:'',tooltip:!0,isToggleable:!0}),M.bind("isOn","isEnabled").to(b,"value","isEnabled"),this.listenTo(M,"execute",()=>{r.execute("blockQuote"),r.editing.view.focus()}),M})}}class D2 extends Eo{static get pluginName(){return"CKFinderUI"}init(){const r=this.editor,m=r.t;r.ui.componentFactory.add("ckfinder",b=>{const M=r.commands.get("ckfinder"),S=new Rs(b);return S.set({label:m("Insert image or file"),icon:'',tooltip:!0}),S.bind("isEnabled").to(M),S.on("execute",()=>{r.execute("ckfinder"),r.editing.view.focus()}),S})}}class P2 extends Co{observe(r){this.listenTo(r,"load",(l,m)=>{"IMG"==m.target.tagName&&this._fireEvents(m)},{useCapture:!0})}_fireEvents(r){this.isEnabled&&(this.document.fire("layoutChanged"),this.document.fire("imageLoaded",r))}}class zu{constructor(){this._stack=[]}add(r,l){const m=this._stack,b=m[0];this._insertDescriptor(r);const M=m[0];b===M||Om(b,M)||this.fire("change:top",{oldDescriptor:b,newDescriptor:M,writer:l})}remove(r,l){const m=this._stack,b=m[0];this._removeDescriptor(r);const M=m[0];b===M||Om(b,M)||this.fire("change:top",{oldDescriptor:b,newDescriptor:M,writer:l})}_insertDescriptor(r){const l=this._stack,m=l.findIndex(M=>M.id===r.id);if(Om(r,l[m]))return;m>-1&&l.splice(m,1);let b=0;for(;l[b]&&q1(l[b],r);)b++;l.splice(b,0,r)}_removeDescriptor(r){const l=this._stack,m=l.findIndex(b=>b.id===r);m>-1&&l.splice(m,1)}}function Om(d,r){return d&&r&&d.priority==r.priority&&Mr(d.classes)==Mr(r.classes)}function q1(d,r){return d.priority>r.priority||!(d.priorityMr(r.classes)}function Mr(d){return Array.isArray(d)?d.sort().join(","):d}io(zu,Za),p(45);const ss=hu("px"),fg=ft.document.body;class $a extends Xo{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",m=>"ck-balloon-panel_"+m),l.if("isVisible","ck-balloon-panel_visible"),l.if("withArrow","ck-balloon-panel_with-arrow"),l.to("class")],style:{top:l.to("top",ss),left:l.to("left",ss)}},children:this.content})}show(){this.isVisible=!0}hide(){this.isVisible=!1}attachTo(r){this.show();const l=$a.defaultPositions,m=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:fg,fitInViewport:!0},r),b=$a._getOptimalPosition(m),M=parseInt(b.left),S=parseInt(b.top);Object.assign(this,{top:S,left:M,position:b.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=Vf(r.target),m=r.limiter?Vf(r.limiter):fg;this.listenTo(ft.document,"scroll",(b,M)=>{const S=M.target,q=l&&S.contains(l),B=m&&S.contains(m);!q&&!B&&l&&m||this.attachTo(r)},{useCapture:!0}),this.listenTo(ft.window,"resize",()=>{this.attachTo(r)})}_stopPinning(){this.stopListening(ft.document,"scroll"),this.stopListening(ft.window,"resize")}}function Vf(d){return As(d)?d:vt(d)?d.commonAncestorContainer:"function"==typeof d?Vf(d()):null}function wc(d,r){return d.top-r.height-$a.arrowVerticalOffset}function nu(d){return d.bottom+$a.arrowVerticalOffset}function pp(d,r,l){return d&&mp(d)&&!l.isInline(r)}function Ld(d){return d.getAttribute("widget-type-around")}function mp(d){return!!d.is("element")&&!!d.getCustomProperty("widget")}function c1(d,r,l={}){if(!d.is("containerElement"))throw new Qn.b("widget-to-widget-wrong-element-type: The element passed to toWidget() must be a container element instance.",null,{element:d});return r.setAttribute("contenteditable","false",d),r.addClass("ck-widget",d),r.setCustomProperty("widget",!0,d),d.getFillerOffset=R1,l.label&&r.setCustomProperty("widgetLabel",l.label,d),l.hasSelectionHandle&&function(b,M){const S=M.createUIElement("div",{class:"ck ck-widget__selection-handle"},function(q){const B=this.toDomElement(q),at=new Tm;return at.set("content",''),at.render(),B.appendChild(at.element),B});M.insert(M.createPositionAt(b,0),S),M.addClass(["ck-widget_with-selection-handle"],b)}(d,r),S_(d,r,(b,M,S)=>S.addClass(m(M.classes),b),(b,M,S)=>S.removeClass(m(M.classes),b)),d;function m(b){return Array.isArray(b)?b:[b]}}function S_(d,r,l,m){const b=new zu;b.on("change:top",(M,S)=>{S.oldDescriptor&&m(d,S.oldDescriptor,S.writer),S.newDescriptor&&l(d,S.newDescriptor,S.writer)}),r.setCustomProperty("addHighlight",(M,S,q)=>b.add(S,q),d),r.setCustomProperty("removeHighlight",(M,S,q)=>b.remove(S,q),d)}function r6(d){const r=d.getCustomProperty("widgetLabel");return r?"function"==typeof r?r():r:""}function iu(d,r){return r.addClass(["ck-editor__editable","ck-editor__nested-editable"],d),r.setAttribute("contenteditable",d.isReadOnly?"false":"true",d),d.on("change:isReadOnly",(l,m,b)=>{r.setAttribute("contenteditable",b?"false":"true",d)}),d.on("change:isFocused",(l,m,b)=>{b?r.addClass("ck-editor__nested-editable_focused",d):r.removeClass("ck-editor__nested-editable_focused",d)}),d}function _p(d,r){const l=d.getSelectedElement();if(l){const b=Ld(d);if(b)return r.createPositionAt(l,b);if(r.schema.isBlock(l))return r.createPositionAfter(l)}const m=d.getSelectedBlocks().next().value;if(m){if(m.isEmpty)return r.createPositionAt(m,0);const b=r.createPositionAfter(m);return d.focus.isTouching(b)?b:r.createPositionBefore(m)}return d.focus}function gu(d,r){const l=new Ds(ft.window),m=l.getIntersection(d),b=r.height+$a.arrowVerticalOffset;if(d.top-b>l.top||d.bottom+b!b.is("element","image"))}function ou(d){const r=[];for(const l of d.getChildren())r.push(l),l.is("element")&&r.push(...l.getChildren());return r.find(l=>l.is("element","img"))}function hp(d){return l=>{l.on(`attribute:${d}:image`,r)};function r(l,m,b){if(!b.consumable.consume(m.item,l.name))return;const M=b.writer,S=ou(b.mapper.toViewElement(m.item));M.setAttribute(m.attributeKey,m.attributeNewValue||"",S)}}$a.arrowHorizontalOffset=25,$a.arrowVerticalOffset=10,$a._getOptimalPosition=U_,$a.defaultPositions={northWestArrowSouthWest:(d,r)=>({top:wc(d,r),left:d.left-$a.arrowHorizontalOffset,name:"arrow_sw"}),northWestArrowSouthMiddleWest:(d,r)=>({top:wc(d,r),left:d.left-.25*r.width-$a.arrowHorizontalOffset,name:"arrow_smw"}),northWestArrowSouth:(d,r)=>({top:wc(d,r),left:d.left-r.width/2,name:"arrow_s"}),northWestArrowSouthMiddleEast:(d,r)=>({top:wc(d,r),left:d.left-.75*r.width+$a.arrowHorizontalOffset,name:"arrow_sme"}),northWestArrowSouthEast:(d,r)=>({top:wc(d,r),left:d.left-r.width+$a.arrowHorizontalOffset,name:"arrow_se"}),northArrowSouthWest:(d,r)=>({top:wc(d,r),left:d.left+d.width/2-$a.arrowHorizontalOffset,name:"arrow_sw"}),northArrowSouthMiddleWest:(d,r)=>({top:wc(d,r),left:d.left+d.width/2-.25*r.width-$a.arrowHorizontalOffset,name:"arrow_smw"}),northArrowSouth:(d,r)=>({top:wc(d,r),left:d.left+d.width/2-r.width/2,name:"arrow_s"}),northArrowSouthMiddleEast:(d,r)=>({top:wc(d,r),left:d.left+d.width/2-.75*r.width+$a.arrowHorizontalOffset,name:"arrow_sme"}),northArrowSouthEast:(d,r)=>({top:wc(d,r),left:d.left+d.width/2-r.width+$a.arrowHorizontalOffset,name:"arrow_se"}),northEastArrowSouthWest:(d,r)=>({top:wc(d,r),left:d.right-$a.arrowHorizontalOffset,name:"arrow_sw"}),northEastArrowSouthMiddleWest:(d,r)=>({top:wc(d,r),left:d.right-.25*r.width-$a.arrowHorizontalOffset,name:"arrow_smw"}),northEastArrowSouth:(d,r)=>({top:wc(d,r),left:d.right-r.width/2,name:"arrow_s"}),northEastArrowSouthMiddleEast:(d,r)=>({top:wc(d,r),left:d.right-.75*r.width+$a.arrowHorizontalOffset,name:"arrow_sme"}),northEastArrowSouthEast:(d,r)=>({top:wc(d,r),left:d.right-r.width+$a.arrowHorizontalOffset,name:"arrow_se"}),southWestArrowNorthWest:(d,r)=>({top:nu(d),left:d.left-$a.arrowHorizontalOffset,name:"arrow_nw"}),southWestArrowNorthMiddleWest:(d,r)=>({top:nu(d),left:d.left-.25*r.width-$a.arrowHorizontalOffset,name:"arrow_nmw"}),southWestArrowNorth:(d,r)=>({top:nu(d),left:d.left-r.width/2,name:"arrow_n"}),southWestArrowNorthMiddleEast:(d,r)=>({top:nu(d),left:d.left-.75*r.width+$a.arrowHorizontalOffset,name:"arrow_nme"}),southWestArrowNorthEast:(d,r)=>({top:nu(d),left:d.left-r.width+$a.arrowHorizontalOffset,name:"arrow_ne"}),southArrowNorthWest:(d,r)=>({top:nu(d),left:d.left+d.width/2-$a.arrowHorizontalOffset,name:"arrow_nw"}),southArrowNorthMiddleWest:(d,r)=>({top:nu(d),left:d.left+d.width/2-.25*r.width-$a.arrowHorizontalOffset,name:"arrow_nmw"}),southArrowNorth:(d,r)=>({top:nu(d),left:d.left+d.width/2-r.width/2,name:"arrow_n"}),southArrowNorthMiddleEast:(d,r)=>({top:nu(d),left:d.left+d.width/2-.75*r.width+$a.arrowHorizontalOffset,name:"arrow_nme"}),southArrowNorthEast:(d,r)=>({top:nu(d),left:d.left+d.width/2-r.width+$a.arrowHorizontalOffset,name:"arrow_ne"}),southEastArrowNorthWest:(d,r)=>({top:nu(d),left:d.right-$a.arrowHorizontalOffset,name:"arrow_nw"}),southEastArrowNorthMiddleWest:(d,r)=>({top:nu(d),left:d.right-.25*r.width-$a.arrowHorizontalOffset,name:"arrow_nmw"}),southEastArrowNorth:(d,r)=>({top:nu(d),left:d.right-r.width/2,name:"arrow_n"}),southEastArrowNorthMiddleEast:(d,r)=>({top:nu(d),left:d.right-.75*r.width+$a.arrowHorizontalOffset,name:"arrow_nme"}),southEastArrowNorthEast:(d,r)=>({top:nu(d),left:d.right-r.width+$a.arrowHorizontalOffset,name:"arrow_ne"})};class Ed extends Ha{refresh(){this.isEnabled=fp(this.editor.model)}execute(r){const l=this.editor.model;l.change(m=>{const b=Array.isArray(r.source)?r.source:[r.source];for(const M of b)Bf(m,l,{src:M})})}}class Sa extends Eo{static get pluginName(){return"ImageEditing"}init(){const r=this.editor,l=r.model.schema,m=r.t,b=r.conversion;r.editing.view.addObserver(P2),l.register("image",{isObject:!0,isBlock:!0,allowWhere:"$block",allowAttributes:["alt","src","srcset"]}),b.for("dataDowncast").elementToElement({model:"image",view:(M,S)=>S0(S)}),b.for("editingDowncast").elementToElement({model:"image",view:(M,S)=>{return q=S0(S),B=S,at=m("image widget"),B.setCustomProperty("image",!0,q),c1(q,B,{label:function(){const _t=ou(q).getAttribute("alt");return _t?`${_t} ${at}`:at}});var q,B,at}}),b.for("downcast").add(hp("src")).add(hp("alt")).add(function(){return S=>{S.on("attribute:srcset:image",M)};function M(S,q,B){if(!B.consumable.consume(q.item,S.name))return;const at=B.writer,_t=ou(B.mapper.toViewElement(q.item));if(null===q.attributeNewValue){const Zt=q.attributeOldValue;Zt.data&&(at.removeAttribute("srcset",_t),at.removeAttribute("sizes",_t),Zt.width&&at.removeAttribute("width",_t))}else{const Zt=q.attributeNewValue;Zt.data&&(at.setAttribute("srcset",Zt.data,_t),at.setAttribute("sizes","100vw",_t),Zt.width&&at.setAttribute("width",Zt.width,_t))}}}()),b.for("upcast").elementToElement({view:{name:"img",attributes:{src:!0}},model:(M,S)=>S.createElement("image",{src:M.getAttribute("src")})}).attributeToAttribute({view:{name:"img",key:"alt"},model:"alt"}).attributeToAttribute({view:{name:"img",key:"srcset"},model:{key:"srcset",value:M=>{const S={data:M.getAttribute("srcset")};return M.hasAttribute("width")&&(S.width=M.getAttribute("width")),S}}}).add(function(){return S=>{S.on("element:figure",M)};function M(S,q,B){if(!B.consumable.test(q.viewItem,{name:!0,classes:"image"}))return;const at=ou(q.viewItem);if(!at||!at.hasAttribute("src")||!B.consumable.test(at,{name:!0}))return;const _t=B.convertItem(at,q.modelCursor),Zt=eu(_t.modelRange.getItems());Zt&&(B.convertChildren(q.viewItem,B.writer.createPositionAt(Zt,0)),q.modelRange=_t.modelRange,q.modelCursor=_t.modelCursor)}}()),r.commands.add("imageInsert",new Ed(r))}}function S0(d){const r=d.createEmptyElement("img"),l=d.createContainerElement("figure",{class:"image"});return d.insert(d.createPositionAt(l,0),r),l}class vu extends U1{constructor(r){super(r),this.domEventType="mousedown"}onDomEvent(r){this.fire(r.type,r)}}class O0 extends Eo{static get pluginName(){return"TwoStepCaretMovement"}constructor(r){super(r),this.attributes=new Set,this._overrideUid=null}init(){const r=this.editor,b=r.locale,M=r.model.document.selection;this.listenTo(r.editing.view.document,"keydown",(S,q)=>{if(!M.isCollapsed||q.shiftKey||q.altKey||q.ctrlKey)return;const B=q.keyCode==sa.arrowright,at=q.keyCode==sa.arrowleft;if(!B&&!at)return;const _t=b.contentLanguageDirection;let Zt=!1;Zt="ltr"===_t&&B||"rtl"===_t&&at?this._handleForwardMovement(q):this._handleBackwardMovement(q),!0===Zt&&S.stop()},{priority:as.get("high")+1}),this._isNextGravityRestorationSkipped=!1,this.listenTo(M,"change:range",(S,q)=>{this._isNextGravityRestorationSkipped?this._isNextGravityRestorationSkipped=!1:this._isGravityOverridden&&(!q.directChange&&gp(M.getFirstPosition(),this.attributes)||this._restoreGravity())})}registerAttribute(r){this.attributes.add(r)}_handleForwardMovement(r){const l=this.attributes,m=this.editor.model.document.selection,b=m.getFirstPosition();return!this._isGravityOverridden&&(!b.isAtStart||!Em(m,l))&&(gp(b,l)?(O_(r),this._overrideGravity(),!0):void 0)}_handleBackwardMovement(r){const l=this.attributes,m=this.editor.model,b=m.document.selection,M=b.getFirstPosition();return this._isGravityOverridden?(O_(r),this._restoreGravity(),Zr(m,l,M),!0):M.isAtStart?!!Em(b,l)&&(O_(r),Zr(m,l,M),!0):(q=l,gp(M.getShiftedBy(-1),q)?M.isAtEnd&&!Em(b,l)&&gp(M,l)?(O_(r),Zr(m,l,M),!0):(this._isNextGravityRestorationSkipped=!0,this._overrideGravity(),!1):void 0);var q}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 Em(d,r){for(const l of r)if(d.hasAttribute(l))return!0;return!1}function Zr(d,r,l){const m=l.nodeBefore;d.change(b=>{m?b.setSelectionAttribute(m.getAttributes()):b.removeSelectionAttribute(r)})}function O_(d){d.preventDefault()}function gp(d,r){const{nodeBefore:l,nodeAfter:m}=d;for(const b of r){const M=l?l.getAttribute(b):void 0;if((m?m.getAttribute(b):void 0)!==M)return!0}return!1}function Vu(d,r,l,m){return m.createRange(L0(d,r,l,!0,m),L0(d,r,l,!1,m))}function L0(d,r,l,m,b){let M=d.textNode||(m?d.nodeBefore:d.nodeAfter),S=null;for(;M&&M.getAttribute(r)==l;)S=M,M=m?M.previousSibling:M.nextSibling;return S?b.createPositionAt(S,m?"before":"after"):d}class _d{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,m,b)=>{if(!b.consumable.test(m.item,"attribute:linkHref"))return;const M=b.writer,S=M.document.selection;for(const q of this._definitions){const B=M.createAttributeElement("a",q.attributes,{priority:5});M.setCustomProperty("link",!0,B),q.callback(m.attributeNewValue)?m.item.is("selection")?M.wrap(S.getFirstRange(),B):M.wrap(b.mapper.toViewRange(m.range),B):M.unwrap(b.mapper.toViewRange(m.range),B)}},{priority:"high"})}}getDispatcherForLinkedImage(){return r=>{r.on("attribute:linkHref:image",(l,m,b)=>{const M=b.mapper.toViewElement(m.item),S=Array.from(M.getChildren()).find(q=>"a"===q.name);for(const q of this._definitions){const B=Wa(q.attributes);if(q.callback(m.attributeNewValue))for(const[at,_t]of B)"class"===at?b.writer.addClass(_t,S):b.writer.setAttribute(at,_t,S);else for(const[at,_t]of B)"class"===at?b.writer.removeClass(_t,S):b.writer.removeAttribute(at,S)}})}}}var gg=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),vg=function(d){return gg.test(d)},Jf="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",E0="\\ud83c[\\udffb-\\udfff]",Gf="[^\\ud800-\\udfff]",bg="(?:\\ud83c[\\udde6-\\uddff]){2}",F0="[\\ud800-\\udbff][\\udc00-\\udfff]",L_="(?:"+Jf+"|"+E0+")?",N0="[\\ufe0e\\ufe0f]?"+L_+"(?:\\u200d(?:"+[Gf,bg,F0].join("|")+")[\\ufe0e\\ufe0f]?"+L_+")*",I0="(?:"+[Gf+Jf+"?",Jf,bg,F0,"[\\ud800-\\udfff]"].join("|")+")",Fm=RegExp(E0+"(?="+E0+")|"+I0+N0,"g"),Cg=function(d){return vg(d)?function(d){return d.match(Fm)||[]}(d):function(d){return d.split("")}(d)},R0=function(r){r=Md(r);var l=vg(r)?Cg(r):void 0,m=l?l[0]:r.charAt(0),b=l?function(d,r,l){var m=d.length;return l=void 0===l?m:l,!r&&l>=m?d:Nc(d,r,l)}(l,1).join(""):r.slice(1);return m.toUpperCase()+b};const ql=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,fd=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i;function H0(d,r){const l=r.createAttributeElement("a",{href:d},{priority:5});return r.setCustomProperty("link",!0,l),l}function z3(d){return function(r){return r.replace(ql,"").match(fd)}(d=String(d))?d:"#"}function H1(d,r){return!!d&&d.is("element","image")&&r.checkAttribute("image","linkHref")}class Qf extends Ha{constructor(r){super(r),this.manualDecorators=new Nr,this.automaticDecorators=new _d}restoreManualDecoratorStates(){for(const r of this.manualDecorators)r.value=this._getDecoratorStateFromModel(r.id)}refresh(){const r=this.editor.model,l=r.document,m=eu(l.selection.getSelectedBlocks());H1(m,r.schema)?(this.value=m.getAttribute("linkHref"),this.isEnabled=r.schema.checkAttribute(m,"linkHref")):(this.value=l.selection.getAttribute("linkHref"),this.isEnabled=r.schema.checkAttributeInSelection(l.selection,"linkHref"));for(const b of this.manualDecorators)b.value=this._getDecoratorStateFromModel(b.id)}execute(r,l={}){const m=this.editor.model,b=m.document.selection,M=[],S=[];for(const q in l)l[q]?M.push(q):S.push(q);m.change(q=>{if(b.isCollapsed){const B=b.getFirstPosition();if(b.hasAttribute("linkHref")){const at=Vu(B,"linkHref",b.getAttribute("linkHref"),m);q.setAttribute("linkHref",r,at),M.forEach(_t=>{q.setAttribute(_t,!0,at)}),S.forEach(_t=>{q.removeAttribute(_t,at)}),q.setSelection(q.createPositionAfter(at.end.nodeBefore))}else if(""!==r){const at=Wa(b.getAttributes());at.set("linkHref",r),M.forEach(Zt=>{at.set(Zt,!0)});const _t=q.createText(r,at);m.insertContent(_t,B),q.setSelection(q.createPositionAfter(_t))}["linkHref",...M,...S].forEach(at=>{q.removeSelectionAttribute(at)})}else{const B=m.schema.getValidRanges(b.getRanges(),"linkHref"),at=[];for(const Zt of b.getSelectedBlocks())m.schema.checkAttribute(Zt,"linkHref")&&at.push(q.createRangeOn(Zt));const _t=at.slice();for(const Zt of B)this._isRangeToUpdate(Zt,at)&&_t.push(Zt);for(const Zt of _t)q.setAttribute("linkHref",r,Zt),M.forEach(_e=>{q.setAttribute(_e,!0,Zt)}),S.forEach(_e=>{q.removeAttribute(_e,Zt)})}})}_getDecoratorStateFromModel(r){const l=this.editor.model,m=l.document,b=eu(m.selection.getSelectedBlocks());return H1(b,l.schema)?b.getAttribute(r):m.selection.getAttribute(r)}_isRangeToUpdate(r,l){for(const m of l)if(m.containsRange(r))return!1;return!0}}class yg extends Ha{refresh(){const r=this.editor.model,l=r.document,m=eu(l.selection.getSelectedBlocks());this.isEnabled=H1(m,r.schema)?r.schema.checkAttribute(m,"linkHref"):r.schema.checkAttributeInSelection(l.selection,"linkHref")}execute(){const l=this.editor.model,m=l.document.selection,b=this.editor.commands.get("link");l.change(M=>{const S=m.isCollapsed?[Vu(m.getFirstPosition(),"linkHref",m.getAttribute("linkHref"),l)]:m.getRanges();for(const q of S)if(M.removeAttribute("linkHref",q),b)for(const B of b.manualDecorators)M.removeAttribute(B.id,q)})}}class E_{constructor({id:r,label:l,attributes:m,defaultValue:b}){this.id=r,this.set("value"),this.defaultValue=b,this.label=l,this.attributes=m}}io(E_,kt),p(47);const jf=/^(https?:)?\/\//;class Wf extends Eo{static get pluginName(){return"LinkEditing"}static get requires(){return[O0,H3,Mm]}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:H0}),r.conversion.for("editingDowncast").attributeToElement({model:"linkHref",view:(m,b)=>H0(z3(m),b)}),r.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{href:!0}},model:{key:"linkHref",value:m=>m.getAttribute("href")}}),r.commands.add("link",new Qf(r)),r.commands.add("unlink",new yg(r));const l=function(m,b){const M={"Open in a new tab":m("Open in a new tab"),Downloadable:m("Downloadable")};return b.forEach(S=>(S.label&&M[S.label]&&(S.label=M[S.label]),S)),b}(r.t,function(m){const b=[];if(m)for(const[M,S]of Object.entries(m)){const q=Object.assign({},S,{id:"link"+R0(M)});b.push(q)}return b}(r.config.get("link.decorators")));this._enableAutomaticDecorators(l.filter(m=>"automatic"===m.mode)),this._enableManualDecorators(l.filter(m=>"manual"===m.mode)),r.plugins.get(O0).registerAttribute("linkHref"),function(m,b,M,S){const q=m.editing.view,B=new Set;q.document.registerPostFixer(at=>{const _t=m.model.document.selection;let Zt=!1;if(_t.hasAttribute(b)){const _e=Vu(_t.getFirstPosition(),b,_t.getAttribute(b),m.model),Be=m.editing.mapper.toViewRange(_e);for(const mn of Be.getItems())mn.is("element","a")&&!mn.hasClass(S)&&(at.addClass(S,mn),B.add(mn),Zt=!0)}return Zt}),m.conversion.for("editingDowncast").add(at=>{function _t(){q.change(Zt=>{for(const _e of B.values())Zt.removeClass(S,_e),B.delete(_e)})}at.on("insert",_t,{priority:"highest"}),at.on("remove",_t,{priority:"highest"}),at.on("attribute",_t,{priority:"highest"}),at.on("selection",_t,{priority:"highest"})})}(r,"linkHref",0,"ck-link_selected"),this._enableInsertContentSelectionAttributesFixer(),this._enableClickingAfterLink(),this._enableTypingOverLink(),this._handleDeleteContentAfterLink()}_enableAutomaticDecorators(r){const l=this.editor,m=l.commands.get("link").automaticDecorators;l.config.get("link.addTargetToExternalLinks")&&m.add({id:"linkIsExternal",mode:"automatic",callback:b=>jf.test(b),attributes:{target:"_blank",rel:"noopener noreferrer"}}),m.add(r),m.length&&l.conversion.for("downcast").add(m.getDispatcher())}_enableManualDecorators(r){if(!r.length)return;const l=this.editor,m=l.commands.get("link").manualDecorators;r.forEach(b=>{l.model.schema.extend("$text",{allowAttributes:b.id}),m.add(new E_(b)),l.conversion.for("downcast").attributeToElement({model:b.id,view:(M,S)=>{if(M){const q=m.get(b.id).attributes,B=S.createAttributeElement("a",q,{priority:5});return S.setCustomProperty("link",!0,B),B}}}),l.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:m.get(b.id).attributes},model:{key:b.id}})})}_enableInsertContentSelectionAttributesFixer(){const r=this.editor,l=r.model,m=l.document.selection,b=r.commands.get("link");this.listenTo(l,"insertContent",()=>{const M=m.anchor.nodeBefore,S=m.anchor.nodeAfter;m.hasAttribute("linkHref")&&M&&M.hasAttribute("linkHref")&&(S&&S.hasAttribute("linkHref")||l.change(q=>{S2(q,b.manualDecorators)}))},{priority:"low"})}_enableClickingAfterLink(){const r=this.editor,l=r.commands.get("link");r.editing.view.addObserver(vu);let m=!1;this.listenTo(r.editing.view.document,"mousedown",()=>{m=!0}),this.listenTo(r.editing.view.document,"selectionChange",()=>{if(!m)return;m=!1;const b=r.model.document.selection;if(!b.isCollapsed||!b.hasAttribute("linkHref"))return;const M=b.getFirstPosition(),S=Vu(M,"linkHref",b.getAttribute("linkHref"),r.model);(M.isTouching(S.start)||M.isTouching(S.end))&&r.model.change(q=>{S2(q,l.manualDecorators)})})}_enableTypingOverLink(){const r=this.editor;let m,b;this.listenTo(r.editing.view.document,"delete",()=>{b=!0},{priority:"high"}),this.listenTo(r.model,"deleteContent",()=>{const M=r.model.document.selection;M.isCollapsed||(b?b=!1:Tg(r)&&function(S){const q=S.document.selection,B=q.getFirstPosition(),at=q.getLastPosition(),_t=B.nodeAfter;return!!(_t&&_t.is("$text")&&_t.hasAttribute("linkHref"))&&(_t===(at.textNode||at.nodeBefore)||Vu(B,"linkHref",_t.getAttribute("linkHref"),S).containsRange(S.createRange(B,at),!0))}(r.model)&&(m=M.getAttributes()))},{priority:"high"}),this.listenTo(r.model,"insertContent",(M,[S])=>{b=!1,Tg(r)&&m&&(r.model.change(q=>{for(const[B,at]of m)q.setAttribute(B,at,S)}),m=null)},{priority:"high"})}_handleDeleteContentAfterLink(){const r=this.editor,l=r.model,m=l.document.selection,b=r.editing.view,M=r.commands.get("link");let S=!1,q=!1;this.listenTo(b.document,"delete",(B,at)=>{q=at.domEvent.keyCode===sa.backspace},{priority:"high"}),this.listenTo(l,"deleteContent",()=>{S=!1;const B=m.getFirstPosition(),at=m.getAttribute("linkHref");if(!at)return;const _t=Vu(B,"linkHref",at,l);S=_t.containsPosition(B)||_t.end.isEqual(B)},{priority:"high"}),this.listenTo(l,"deleteContent",()=>{q&&(q=!1,S||r.model.enqueueChange(B=>{S2(B,M.manualDecorators)}))},{priority:"low"})}}function S2(d,r){d.removeSelectionAttribute("linkHref");for(const l of r)d.removeSelectionAttribute(l.id)}function Tg(d){return d.plugins.get("Input").isInput(d.model.change(r=>r.batch))}class Fd extends U2{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 $f extends Ha{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 Qn.b('ckfinder-unknown-openerMethod: The openerMethod config option must by "popup" or "modal".',r);const m=this.editor.config.get("ckfinder.options")||{};m.chooseFiles=!0;const b=m.onInit;m.language||(m.language=r.locale.uiLanguage),m.onInit=M=>{b&&b(M),M.on("files:choose",S=>{const q=S.data.files.toArray(),B=q.filter(Zt=>!Zt.isImage()),at=q.filter(Zt=>Zt.isImage());for(const Zt of B)r.execute("link",Zt.getUrl());const _t=[];for(const Zt of at){const _e=Zt.getUrl();_t.push(_e||M.request("file:getProxyUrl",{file:Zt}))}_t.length&&Nm(r,_t)}),M.on("file:choose:resizedImage",S=>{const q=S.data.resizedUrl;if(q)Nm(r,[q]);else{const B=r.plugins.get("Notification"),at=r.locale.t;B.showWarning(at("Could not obtain resized image URL."),{title:at("Selecting resized image failed"),namespace:"ckfinder"})}})},window.CKFinder[l](m)}}function Nm(d,r){if(d.commands.get("imageInsert").isEnabled)d.execute("imageInsert",{source:r});else{const l=d.plugins.get("Notification"),m=d.locale.t;l.showWarning(m("Could not insert image at the current position."),{title:m("Inserting image failed"),namespace:"ckfinder"})}}class V3 extends Eo{static get pluginName(){return"CKFinderEditing"}static get requires(){return[Fd,Sa,Wf]}init(){const r=this.editor;r.commands.add("ckfinder",new $f(r))}}const O2=/^data:(\S*?);base64,/;class Y0{constructor(r,l,m){if(!r)throw new Qn.b("fileuploader-missing-file: File must be provided as the first argument",null);if(!l)throw new Qn.b("fileuploader-missing-token: Token must be provided as the second argument.",null);if(!m)throw new Qn.b("fileuploader-missing-api-address: Api address must be provided as the third argument.",null);this.file=function(b){if("string"!=typeof b)return!1;const M=b.match(O2);return!(!M||!M.length)}(r)?function(b,M=512){try{const S=b.match(O2)[1],q=atob(b.replace(O2,"")),B=[];for(let at=0;atr(m)),this}onError(r){return this.once("error",(l,m)=>r(m)),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 m(b){return()=>r.fire("error",b)}l.addEventListener("error",m("Network Error")),l.addEventListener("abort",m("Abort")),l.upload&&l.upload.addEventListener("progress",b=>{b.lengthComputable&&this.fire("progress",{total:b.total,uploaded:b.loaded})}),l.addEventListener("load",()=>{const b=l.status,M=l.response;if(b<200||b>299)return this.fire("error",M.message||M.error)})}_sendRequest(){const r=new FormData,l=this.xhr;return r.append("file",this.file),new Promise((m,b)=>{l.addEventListener("load",()=>{const M=l.status,S=l.response;return M<200||M>299?b(S.message?new Qn.b("fileuploader-uploading-data-failed: Uploading file failed.",this,{message:S.message}):S.error):m(S)}),l.addEventListener("error",()=>b(new Error("Network Error"))),l.addEventListener("abort",()=>b(new Error("Abort"))),l.send(r)})}}io(Y0,Za);const Ag={refreshInterval:36e5,autoRefresh:!0};class hd{constructor(r,l=Ag){if(!r)throw new Qn.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 m=r,new Promise((b,M)=>{const S=new XMLHttpRequest;S.open("GET",m),S.addEventListener("load",()=>{const q=S.status,B=S.response;return q<200||q>299?M(new Qn.b("token-cannot-download-new-token: Cannot download new token from the provided url.",null)):b(B)}),S.addEventListener("error",()=>M(new Error("Network Error"))),S.addEventListener("abort",()=>M(new Error("Abort"))),S.send()});var m},this._options=Object.assign({},Ag,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=Ag){return new hd(r,l).init()}}io(hd,kt);var F_=hd;let Kf=(()=>{class d extends U2{static get pluginName(){return"CloudServices"}init(){const l=this.context.config.get("cloudServices")||{};for(const m in l)this[m]=l[m];if(this.tokenUrl)return this.token=new d.Token(this.tokenUrl),this.token.init();this.token=null}destroy(){super.destroy(),this.token&&this.token.destroy()}}return d.Token=F_,d})();class Y1 extends Eo{static get requires(){return[N1,Kf]}init(){const r=this.editor,l=r.plugins.get(Kf),m=l.token;m&&(this._uploadGateway=new Y1._UploadGateway(m,l.uploadUrl),r.plugins.get(N1).createUploadAdapter=M=>new Ug(this._uploadGateway,M))}}class Ug{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,m)=>{this.loader.uploadTotal=m.total,this.loader.uploaded=m.uploaded}),this.fileUploader.send()))}abort(){this.fileUploader.abort()}}Y1._UploadGateway=class{constructor(d,r){if(!d)throw new Qn.b("uploadgateway-missing-token: Token must be provided.",null);if(!r)throw new Qn.b("uploadgateway-missing-api-address: Api address must be provided.",null);this._token=d,this._apiAddress=r}upload(d){return new Y0(d,this._token,this._apiAddress)}},p(49);const Im=["before","after"],Xf=(new DOMParser).parseFromString('\n',"image/svg+xml").firstChild;class wg extends Eo{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",(m,b,M)=>{l.change(S=>{for(const q of l.document.roots)M?S.removeClass("ck-widget__type-around_disabled",q):S.addClass("ck-widget__type-around_disabled",q)}),M||r.model.change(S=>{S.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 m=this.editor,b=m.editing.view;m.execute("insertParagraph",{position:m.model.createPositionAt(r,l)}),b.focus(),b.scrollToTheSelection()}_listenToIfEnabled(r,l,m,b){this.listenTo(r,l,(...M)=>{this.isEnabled&&m(...M)},b)}_insertParagraphAccordingToFakeCaretPosition(){const r=this.editor.model.document.selection,l=Ld(r);if(!l)return!1;const m=r.getSelectedElement();return this._insertParagraph(m,l),!0}_enableTypeAroundUIInjection(){const r=this.editor,l=r.model.schema,m=r.locale.t,b={before:m("Insert paragraph before block"),after:m("Insert paragraph after block")};r.editing.downcastDispatcher.on("insert",(M,S,q)=>{const B=q.mapper.toViewElement(S.item);pp(B,S.item,l)&&function(at,_t,Zt){const _e=at.createUIElement("div",{class:"ck ck-reset_all ck-widget__type-around"},function(Be){const mn=this.toDomElement(Be);return function(Mn,In){for(const Gn of Im){const Fi=new yl({tag:"div",attributes:{class:["ck","ck-widget__type-around__button","ck-widget__type-around__button_"+Gn],title:In[Gn]},children:[Mn.ownerDocument.importNode(Xf,!0)]});Mn.appendChild(Fi.render())}}(mn,_t),function(Mn){const In=new yl({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});Mn.appendChild(In.render())}(mn),mn});at.insert(at.createPositionAt(Zt,"end"),_e)}(q.writer,b,B)},{priority:"low"})}_enableTypeAroundFakeCaretActivationUsingKeyboardArrows(){const r=this.editor,l=r.model,m=l.document.selection,b=l.schema;function S(q){return"ck-widget_type-around_show-fake-caret_"+q}this._listenToIfEnabled(r.editing.view.document,"keydown",(q,B)=>{Mu(B.keyCode)&&this._handleArrowKeyPress(q,B)},{priority:as.get("high")+10}),this._listenToIfEnabled(m,"change:range",(q,B)=>{B.directChange&&r.model.change(at=>{at.removeSelectionAttribute("widget-type-around")})}),this._listenToIfEnabled(l.document,"change:data",()=>{const q=m.getSelectedElement();q&&pp(r.editing.mapper.toViewElement(q),q,b)||r.model.change(B=>{B.removeSelectionAttribute("widget-type-around")})}),this._listenToIfEnabled(r.editing.downcastDispatcher,"selection",(q,B,at)=>{const _t=at.writer;if(this._currentFakeCaretModelElement){const mn=at.mapper.toViewElement(this._currentFakeCaretModelElement);mn&&(_t.removeClass(Im.map(S),mn),this._currentFakeCaretModelElement=null)}const Zt=B.selection.getSelectedElement();if(!Zt)return;const _e=at.mapper.toViewElement(Zt);if(!pp(_e,Zt,b))return;const Be=Ld(B.selection);Be&&(_t.addClass(S(Be),_e),this._currentFakeCaretModelElement=Zt)}),this._listenToIfEnabled(r.ui.focusTracker,"change:isFocused",(q,B,at)=>{at||r.model.change(_t=>{_t.removeSelectionAttribute("widget-type-around")})})}_handleArrowKeyPress(r,l){const m=this.editor,b=m.model,M=b.document.selection,S=b.schema,q=m.editing.view,B=Zd(l.keyCode,m.locale.contentLanguageDirection),at=q.document.selection.getSelectedElement();let _t;pp(at,m.editing.mapper.toModelElement(at),S)?_t=this._handleArrowKeyPressOnSelectedWidget(B):M.isCollapsed&&(_t=this._handleArrowKeyPressWhenSelectionNextToAWidget(B)),_t&&(l.preventDefault(),r.stop())}_handleArrowKeyPressOnSelectedWidget(r){const l=this.editor.model,m=Ld(l.document.selection);return l.change(b=>m?m!==(r?"after":"before")&&(b.removeSelectionAttribute("widget-type-around"),!0):(b.setSelectionAttribute("widget-type-around",r?"after":"before"),!0))}_handleArrowKeyPressWhenSelectionNextToAWidget(r){const l=this.editor,m=l.model,b=m.schema,M=l.plugins.get("Widget"),S=M._getObjectElementNextToSelection(r);return!!pp(l.editing.mapper.toViewElement(S),S,b)&&(m.change(q=>{M._setSelectionOverElement(S),q.setSelectionAttribute("widget-type-around",r?"before":"after")}),!0)}_enableInsertingParagraphsOnButtonClick(){const r=this.editor,l=r.editing.view;this._listenToIfEnabled(l.document,"mousedown",(m,b)=>{const M=b.domTarget.closest(".ck-widget__type-around__button");if(!M)return;const S=M.classList.contains("ck-widget__type-around__button_before")?"before":"after",q=function(at,_t){const Zt=at.closest(".ck-widget");return _t.mapDomToView(Zt)}(M,l.domConverter),B=r.editing.mapper.toModelElement(q);this._insertParagraph(B,S),b.preventDefault(),m.stop()})}_enableInsertingParagraphsOnEnterKeypress(){const r=this.editor,l=r.editing.view;this._listenToIfEnabled(l.document,"enter",(m,b)=>{const M=l.document.selection.getSelectedElement(),S=r.editing.mapper.toModelElement(M),q=r.model.schema;let B;this._insertParagraphAccordingToFakeCaretPosition()?B=!0:pp(M,S,q)&&(this._insertParagraph(S,b.isSoft?"before":"after"),B=!0),B&&(b.preventDefault(),m.stop())})}_enableInsertingParagraphsOnTypingKeystroke(){const l=[sa.enter,sa.delete,sa.backspace];this._listenToIfEnabled(this.editor.editing.view.document,"keydown",(m,b)=>{l.includes(b.keyCode)||T2(b)||this._insertParagraphAccordingToFakeCaretPosition()},{priority:as.get("high")+1})}_enableDeleteIntegration(){const r=this.editor,m=r.model,b=m.schema;this._listenToIfEnabled(r.editing.view.document,"delete",(M,S)=>{const q=Ld(m.document.selection);if(!q)return;const B=S.direction,at=m.document.selection.getSelectedElement(),_t="forward"==B;if("before"===q===_t)r.execute("delete",{selection:m.createSelection(at,"on")});else{const Zt=b.getNearestSelectionRange(m.createPositionAt(at,q),B);if(Zt)if(Zt.isCollapsed){const _e=m.createSelection(Zt.start);if(m.modifySelection(_e,{direction:B}),_e.focus.isEqual(Zt.start)){const Be=function(mn,Mn){let In=Mn;for(const Gn of Mn.getAncestors({parentFirst:!0})){if(Gn.childCount>1||mn.isLimit(Gn))break;In=Gn}return In}(b,Zt.start.parent);m.deleteContent(m.createSelection(Be,"on"),{doNotAutoparagraph:!0})}else m.change(Be=>{Be.setSelection(Zt),r.execute(_t?"forwardDelete":"delete")})}else m.change(_e=>{_e.setSelection(Zt),r.execute(_t?"forwardDelete":"delete")})}S.preventDefault(),M.stop()},{priority:as.get("high")+1})}_enableInsertContentIntegration(){const l=this.editor.model,m=l.document.selection;this._listenToIfEnabled(this.editor.model,"insertContent",(b,[M,S])=>{if(S&&!S.is("documentSelection"))return;const q=Ld(m);return q?(b.stop(),l.change(B=>{const at=m.getSelectedElement(),_t=l.createPositionAt(at,q),Zt=B.createSelection(_t),_e=l.insertContent(M,Zt);return B.setSelection(Zt),_e})):void 0},{priority:"high"})}}p(51);class qm extends Eo{static get pluginName(){return"Widget"}static get requires(){return[wg]}init(){const r=this.editor.editing.view,l=r.document;this._previouslySelected=new Set,this.editor.editing.downcastDispatcher.on("selection",(m,b,M)=>{this._clearPreviouslySelectedWidgets(M.writer);const S=M.writer,q=S.document.selection,B=q.getSelectedElement();let at=null;for(const _t of q.getRanges())for(const Zt of _t){const _e=Zt.item;mp(_e)&&!N_(_e,at)&&(S.addClass("ck-widget_selected",_e),this._previouslySelected.add(_e),at=_e,_e==B&&S.setSelection(q.getRanges(),{fake:!0,label:r6(B)}))}},{priority:"low"}),r.addObserver(vu),this.listenTo(l,"mousedown",(...m)=>this._onMousedown(...m)),this.listenTo(l,"keydown",(...m)=>{this._handleSelectionChangeOnArrowKeyPress(...m)},{priority:"high"}),this.listenTo(l,"keydown",(...m)=>{this._preventDefaultOnArrowKeyPress(...m)},{priority:as.get("high")-20}),this.listenTo(l,"delete",(m,b)=>{this._handleDelete("forward"==b.direction)&&(b.preventDefault(),m.stop())},{priority:"high"})}_onMousedown(r,l){const m=this.editor,b=m.editing.view,M=b.document;let S=l.target;if(function(B){for(;B;){if(B.is("editableElement")&&!B.is("rootElement"))return!0;if(mp(B))return!1;B=B.parent}return!1}(S)){if((Zs_isSafari||Zs_isGecko)&&l.domEvent.detail>=3){const B=m.editing.mapper,at=S.is("attributeElement")?S.findAncestor(Zt=>!Zt.is("attributeElement")):S,_t=B.toModelElement(at);l.preventDefault(),this.editor.model.change(Zt=>{Zt.setSelection(_t,"in")})}return}if(!mp(S)&&(S=S.findAncestor(mp),!S))return;l.preventDefault(),M.isFocused||b.focus();const q=m.editing.mapper.toModelElement(S);this._setSelectionOverElement(q)}_handleSelectionChangeOnArrowKeyPress(r,l){const m=l.keyCode;if(!Mu(m))return;const b=this.editor.model,M=b.schema,S=b.document.selection,q=S.getSelectedElement(),B=Zd(m,this.editor.locale.contentLanguageDirection);if(q&&M.isObject(q)){const _t=B?S.getLastPosition():S.getFirstPosition(),Zt=M.getNearestSelectionRange(_t,B?"forward":"backward");return void(Zt&&(b.change(_e=>{_e.setSelection(Zt)}),l.preventDefault(),r.stop()))}if(!S.isCollapsed)return;const at=this._getObjectElementNextToSelection(B);at&&M.isObject(at)&&(this._setSelectionOverElement(at),l.preventDefault(),r.stop())}_preventDefaultOnArrowKeyPress(r,l){if(!Mu(l.keyCode))return;const m=this.editor.model,b=m.schema,M=m.document.selection.getSelectedElement();M&&b.isObject(M)&&(l.preventDefault(),r.stop())}_handleDelete(r){if(this.editor.isReadOnly)return;const l=this.editor.model.document.selection;if(!l.isCollapsed)return;const m=this._getObjectElementNextToSelection(r);return m?(this.editor.model.change(b=>{let M=l.anchor.parent;for(;M.isEmpty;){const S=M;M=S.parent,b.remove(S)}this._setSelectionOverElement(m)}),!0):void 0}_setSelectionOverElement(r){this.editor.model.change(l=>{l.setSelection(l.createRangeOn(r))})}_getObjectElementNextToSelection(r){const l=this.editor.model,m=l.schema,M=l.createSelection(l.document.selection);l.modifySelection(M,{direction:r?"forward":"backward"});const S=r?M.focus.nodeBefore:M.focus.nodeAfter;return S&&m.isObject(S)?S:null}_clearPreviouslySelectedWidgets(r){for(const l of this._previouslySelected)r.removeClass("ck-widget_selected",l);this._previouslySelected.clear()}}function N_(d,r){return!!r&&Array.from(d.getAncestors()).includes(r)}class Mg extends Ha{refresh(){const r=this.editor.model.document.selection.getSelectedElement();this.isEnabled=Lm(r),this.value=!(!Lm(r)||!r.hasAttribute("alt"))&&r.getAttribute("alt")}execute(r){const l=this.editor.model,m=l.document.selection.getSelectedElement();l.change(b=>{b.setAttribute("alt",r.newValue,m)})}}class th extends Eo{static get pluginName(){return"ImageTextAlternativeEditing"}init(){this.editor.commands.add("imageTextAlternative",new Mg(this.editor))}}p(53);class eh extends Xo{constructor(r,l){super(r);const m="ck-labeled-field-view-"+vr(),b="ck-labeled-field-view-status-"+vr();this.fieldView=l(this,m,b),this.set("label"),this.set("isEnabled",!0),this.set("errorText",null),this.set("infoText",null),this.set("class"),this.labelView=this._createLabelView(m),this.statusView=this._createStatusView(b),this.bind("_statusText").to(this,"errorText",this,"infoText",(S,q)=>S||q);const M=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view",M.to("class"),M.if("isEnabled","ck-disabled",S=>!S)]},children:[this.labelView,this.fieldView,this.statusView]})}_createLabelView(r){const l=new v2(this.locale);return l.for=r,l.bind("text").to(this,"label"),l}_createStatusView(r){const l=new Xo(this.locale),m=this.bindTemplate;return l.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view__status",m.if("errorText","ck-labeled-field-view__status_error"),m.if("_statusText","ck-hidden",b=>!b)],id:r,role:m.if("errorText","alert")},children:[{text:m.to("_statusText")}]}),l}focus(){this.fieldView.focus()}}p(55);class s6 extends Xo{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,m,b)=>{r(b)})}select(){this.element.select()}focus(){this.element.focus()}}function Zg(d,r,l){const m=new s6(d.locale);return m.set({id:r,ariaDescribedById:l}),m.bind("isReadOnly").to(d,"isEnabled",b=>!b),m.bind("hasError").to(d,"errorText",b=>!!b),m.on("input",()=>{d.errorText=null}),m}function jr({view:d}){d.listenTo(d.element,"submit",(r,l)=>{l.preventDefault(),d.fire("submit")},{useCapture:!0})}var I_='',L2='';p(57);class z0 extends Xo{constructor(r){super(r);const l=this.locale.t;this.focusTracker=new Ac,this.keystrokes=new Il,this.labeledInput=this._createLabeledInputView(),this.saveButtonView=this._createButton(l("Save"),I_,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(l("Cancel"),L2,"ck-button-cancel","cancel"),this._focusables=new O1,this._focusCycler=new Rp({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),jr({view:this}),[this.labeledInput,this.saveButtonView,this.cancelButtonView].forEach(r=>{this._focusables.add(r),this.focusTracker.add(r.element)})}_createButton(r,l,m,b){const M=new Rs(this.locale);return M.set({label:r,icon:l,tooltip:!0}),M.extendTemplate({attributes:{class:m}}),b&&M.delegate("execute").to(this,b),M}_createLabeledInputView(){const r=this.locale.t,l=new eh(this.locale,Zg);return l.label=r("Text alternative"),l.fieldView.placeholder=r("Text alternative"),l}}p(59),p(61);const E2=hu("px");class Rl extends Eo{static get pluginName(){return"ContextualBalloon"}constructor(r){super(r),this.positionLimiter=()=>{const l=this.editor.editing.view,m=l.document.selection.editableElement;return m?l.domConverter.mapViewToDom(m.root):null},this.set("visibleView",null),this.view=new $a(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 Qn.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 m=this._idToStack.get(l);r.singleViewMode&&this.showStack(l),m.set(r.view,r),this._viewToStack.set(r.view,m),m===this._visibleStack&&this._showView(r)}remove(r){if(!this.hasView(r))throw new Qn.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 Qn.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 Dg(this.editor.locale),l=this.editor.locale.t;return this.view.content.add(r),r.bind("isNavigationVisible").to(this,"_numberOfStacks",this,"_singleViewMode",(m,b)=>!b&&m>1),r.on("change:isNavigationVisible",()=>this.updatePosition(),{priority:"low"}),r.bind("counter").to(this,"visibleView",this,"_numberOfStacks",(m,b)=>{if(b<2)return"";const M=Array.from(this._idToStack.values()).indexOf(this._visibleStack)+1;return l("%0 of %1",[M,b])}),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 B3(this.editor.locale,this.view);return r.bind("numberOfPanels").to(this,"_numberOfStacks",this,"_singleViewMode",(l,m)=>!m&&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:m=!0,singleViewMode:b=!1}){this.view.class=l,this.view.withArrow=m,this._rotatorView.showView(r),this.visibleView=r,this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition(),b&&(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 Dg extends Xo{constructor(r){super(r);const l=r.t,m=this.bindTemplate;this.set("isNavigationVisible",!0),this.focusTracker=new Ac,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",m.to("isNavigationVisible",b=>b?"":"ck-hidden")]},children:[this.buttonPrevView,{tag:"span",attributes:{class:["ck-balloon-rotator__counter"]},children:[{text:m.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 m=new Rs(this.locale);return m.set({label:r,icon:l,tooltip:!0}),m}}class B3 extends Xo{constructor(r,l){super(r);const m=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",m.to("numberOfPanels",b=>b?"":"ck-hidden")],style:{top:m.to("top",E2),left:m.to("left",E2),width:m.to("width",E2),height:m.to("height",E2)}},children:this.content}),this.on("change:numberOfPanels",(b,M,S,q)=>{S>q?this._addPanels(S-q):this._removePanels(q-S),this.updatePosition()})}_addPanels(r){for(;r--;){const l=new Xo;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:m,height:b}=new Ds(this._balloonPanelView.element);Object.assign(this,{top:r,left:l,width:m,height:b})}}}function V0(d){const r=d.editing.view,l=$a.defaultPositions;return{target:r.domConverter.viewToDom(r.document.selection.getSelectedElement()),positions:[l.northArrowSouth,l.northArrowSouthWest,l.northArrowSouthEast,l.southArrowNorth,l.southArrowNorthWest,l.southArrowNorthEast]}}class J3 extends Eo{static get requires(){return[Rl]}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",m=>{const b=r.commands.get("imageTextAlternative"),M=new Rs(m);return M.set({label:l("Change image text alternative"),icon:'',tooltip:!0}),M.bind("isEnabled").to(b,"isEnabled"),this.listenTo(M,"execute",()=>{this._showForm()}),M})}_createForm(){const r=this.editor,l=r.editing.view.document;this._balloon=this.editor.plugins.get("ContextualBalloon"),this._form=new z0(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",(m,b)=>{this._hideForm(!0),b()}),this.listenTo(r.ui,"update",()=>{md(l.selection)?this._isVisible&&function(m){const b=m.plugins.get("ContextualBalloon");if(md(m.editing.view.document.selection)){const M=V0(m);b.updatePosition(M)}}(r):this._hideForm(!0)}),Um({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"),m=this._form.labeledInput;this._isInBalloon||this._balloon.add({view:this._form,position:V0(r)}),m.fieldView.value=m.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 nh extends Eo{static get requires(){return[th,J3]}static get pluginName(){return"ImageTextAlternative"}}p(63);class ih extends Eo{static get requires(){return[Sa,qm,nh]}static get pluginName(){return"Image"}}class G3 extends Xo{constructor(r){super(r),this.buttonView=new Rs(r),this._fileInputView=new B0(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 B0 extends Xo{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 Pg(d){const r=d.map(l=>l.replace("+","\\+"));return new RegExp(`^image\\/(${r.join("|")})$`)}class kg extends Eo{init(){const r=this.editor,l=r.t;r.ui.componentFactory.add("imageUpload",m=>{const b=new G3(m),M=r.commands.get("imageUpload"),S=r.config.get("image.upload.types"),q=Pg(S);return b.set({acceptedType:S.map(B=>"image/"+B).join(","),allowMultipleFiles:!0}),b.buttonView.set({label:l("Insert image"),icon:'',tooltip:!0}),b.buttonView.bind("isEnabled").to(M),b.on("done",(B,at)=>{const _t=Array.from(at).filter(Zt=>q.test(Zt.type));_t.length&&r.execute("imageUpload",{file:_t})}),b})}}p(65),p(67),p(69);class Ss extends Eo{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,m){const b=this.editor,M=l.item,S=M.getAttribute("uploadId");if(!m.consumable.consume(l.item,r.name))return;const q=b.plugins.get(N1),B=S?l.attributeNewValue:null,at=this.placeholder,_t=b.editing.mapper.toViewElement(M),Zt=m.writer;if("reading"==B)return vp(_t,Zt),void Sg(at,_t,Zt);if("uploading"==B){const _e=q.loaders.get(S);return vp(_t,Zt),void(_e?(F2(_t,Zt),function(Be,mn,Mn,In){const Gn=function(Fi){const Ji=Fi.createUIElement("div",{class:"ck-progress-bar"});return Fi.setCustomProperty("progressBar",!0,Ji),Ji}(mn);mn.insert(mn.createPositionAt(Be,"end"),Gn),Mn.on("change:uploadedPercent",(Fi,Ji,Do)=>{In.change(ba=>{ba.setStyle("width",Do+"%",Gn)})})}(_t,Zt,_e,b.editing.view),function(Be,mn,Mn){if(Mn.data){const In=ou(Be);mn.setAttribute("src",Mn.data,In)}}(_t,Zt,_e)):Sg(at,_t,Zt))}"complete"==B&&q.loaders.get(S)&&function(_e,Be,mn){const Mn=Be.createUIElement("div",{class:"ck-image-upload-complete-icon"});Be.insert(Be.createPositionAt(_e,"end"),Mn),setTimeout(()=>{mn.change(In=>In.remove(In.createRangeOn(Mn)))},3e3)}(_t,Zt,b.editing.view),q_(_t,Zt,"progressBar"),F2(_t,Zt),Zt.removeClass("ck-appear",_t)}}function vp(d,r){d.hasClass("ck-appear")||r.addClass("ck-appear",d)}function Sg(d,r,l){r.hasClass("ck-image-upload-placeholder")||l.addClass("ck-image-upload-placeholder",r);const m=ou(r);m.getAttribute("src")!==d&&l.setAttribute("src",d,m),Vp(r,"placeholder")||l.insert(l.createPositionAfter(m),function(b){const M=b.createUIElement("div",{class:"ck-upload-placeholder-loader"});return b.setCustomProperty("placeholder",!0,M),M}(l))}function F2(d,r){d.hasClass("ck-image-upload-placeholder")&&r.removeClass("ck-image-upload-placeholder",d),q_(d,r,"placeholder")}function Vp(d,r){for(const l of d.getChildren())if(l.getCustomProperty(r))return l}function q_(d,r,l){const m=Vp(d,l);m&&r.remove(r.createRangeOn(m))}class oh{constructor(r){this.document=r}createDocumentFragment(r){return new Ll(this.document,r)}createElement(r,l,m){return new ec(this.document,r,l,m)}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,m){return m._insertChild(r,l)}removeChildren(r,l,m){return m._removeChildren(r,l)}remove(r){const l=r.parent;return l?this.removeChildren(l.getChildIndex(r),1,l):[]}replace(r,l){const m=r.parent;if(m){const b=m.getChildIndex(r);return this.removeChildren(b,1,m),this.insertChild(b,l,m),!0}return!1}unwrapElement(r){const l=r.parent;if(l){const m=l.getChildIndex(r);this.remove(r),this.insertChild(m,r.getChildren(),l)}}rename(r,l){const m=new ec(this.document,r,l.getAttributes(),l.getChildren());return this.replace(l,m)?m:null}setAttribute(r,l,m){m._setAttribute(r,l)}removeAttribute(r,l){l._removeAttribute(r)}addClass(r,l){l._addClass(r)}removeClass(r,l){l._removeClass(r)}setStyle(r,l,m){Jt(r)&&void 0===m&&(m=l),m._setStyle(r,l)}removeStyle(r,l){l._removeStyle(r)}setCustomProperty(r,l,m){m._setCustomProperty(r,l)}removeCustomProperty(r,l){return l._removeCustomProperty(r)}createPositionAt(r,l){return xi._createAt(r,l)}createPositionAfter(r){return xi._createAfter(r)}createPositionBefore(r){return xi._createBefore(r)}createRange(r,l){return new Yi(r,l)}createRangeOn(r){return Yi._createOn(r)}createRangeIn(r){return Yi._createIn(r)}createSelection(r,l,m){return new xa(r,l,m)}}class z1 extends Ha{refresh(){this.isEnabled=fp(this.editor.model)}execute(r){const l=this.editor,m=l.model,b=l.plugins.get(N1);m.change(M=>{const S=Array.isArray(r.file)?r.file:[r.file];for(const q of S)xp(M,m,b,q)})}}function xp(d,r,l,m){const b=l.createLoader(m);b&&Bf(d,r,{uploadId:b.id})}class ah extends Eo{static get requires(){return[N1,Fd,Mm]}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,m=r.model.schema,b=r.conversion,M=r.plugins.get(N1),S=Pg(r.config.get("image.upload.types"));m.extend("image",{allowAttributes:["uploadId","uploadStatus"]}),r.commands.add("imageUpload",new z1(r)),b.for("upcast").attributeToAttribute({view:{name:"img",key:"uploadId"},model:"uploadId"}),this.listenTo(r.editing.view.document,"clipboardInput",(q,B)=>{if(at=B.dataTransfer,Array.from(at.types).includes("text/html")&&""!==at.getData("text/html"))return;var at;const _t=Array.from(B.dataTransfer.files).filter(_e=>!!_e&&S.test(_e.type)),Zt=B.targetRanges.map(_e=>r.editing.mapper.toModelRange(_e));r.model.change(_e=>{_e.setSelection(Zt),_t.length&&(q.stop(),r.model.enqueueChange("default",()=>{r.execute("imageUpload",{file:_t})}))})}),this.listenTo(r.plugins.get(Mm),"inputTransformation",(q,B)=>{const at=Array.from(r.editing.view.createRangeIn(B.content)).filter(Zt=>{return!(!(_e=Zt.item).is("element","img")||!_e.getAttribute("src"))&&(_e.getAttribute("src").match(/^data:image\/\w+;base64,/g)||_e.getAttribute("src").match(/^blob:/g))&&!Zt.item.getAttribute("uploadProcessed");var _e}).map(Zt=>{return{promise:(_e=Zt.item,new Promise((Be,mn)=>{const Mn=_e.getAttribute("src");fetch(Mn).then(In=>In.blob()).then(In=>{const Gn=(ba=Mn,(Do=In).type?Do.type:ba.match(/data:(image\/\w+);base64/)?ba.match(/data:(image\/\w+);base64/)[1].toLowerCase():"image/jpeg"),Fi=Gn.replace("image/",""),Ji=new File([In],"image."+Fi,{type:Gn});var Do,ba;Be(Ji)}).catch(mn)})),imageElement:Zt.item};var _e});if(!at.length)return;const _t=new oh(r.editing.view.document);for(const Zt of at){_t.setAttribute("uploadProcessed",!0,Zt.imageElement);const _e=M.createLoader(Zt.promise);_e&&(_t.setAttribute("src","",Zt.imageElement),_t.setAttribute("uploadId",_e.id,Zt.imageElement))}}),r.editing.view.document.on("dragover",(q,B)=>{B.preventDefault()}),l.on("change",()=>{const q=l.differ.getChanges({includeChangesInGraveyard:!0});for(const B of q)if("insert"==B.type&&"$text"!=B.name){const at=B.position.nodeAfter,_t="$graveyard"==B.position.root.rootName;for(const Zt of Q3(r,at)){const _e=Zt.getAttribute("uploadId");if(!_e)continue;const Be=M.loaders.get(_e);Be&&(_t?Be.abort():"idle"==Be.status&&this._readAndUpload(Be,Zt))}}})}_readAndUpload(r,l){const m=this.editor,b=m.model,M=m.locale.t,S=m.plugins.get(N1),q=m.plugins.get(Fd);return b.enqueueChange("transparent",at=>{at.setAttribute("uploadStatus","reading",l)}),r.read().then(()=>{const at=r.upload();if(Zs_isSafari){const _t=ou(m.editing.mapper.toViewElement(l));m.editing.view.once("render",()=>{if(!_t.parent)return;const Zt=m.editing.view.domConverter.mapViewToDom(_t.parent);if(!Zt)return;const _e=Zt.style.display;Zt.style.display="none",Zt._ckHack=Zt.offsetHeight,Zt.style.display=_e})}return b.enqueueChange("transparent",_t=>{_t.setAttribute("uploadStatus","uploading",l)}),at}).then(at=>{b.enqueueChange("transparent",_t=>{_t.setAttributes({uploadStatus:"complete",src:at.default},l),this._parseAndSetSrcsetAttributeOnImage(at,l,_t)}),B()}).catch(at=>{if("error"!==r.status&&"aborted"!==r.status)throw at;"error"==r.status&&at&&q.showWarning(at,{title:M("Upload failed"),namespace:"upload"}),B(),b.enqueueChange("transparent",_t=>{_t.remove(l)})});function B(){b.enqueueChange("transparent",at=>{at.removeAttribute("uploadId",l),at.removeAttribute("uploadStatus",l)}),S.destroyLoader(r)}}_parseAndSetSrcsetAttributeOnImage(r,l,m){let b=0;const M=Object.keys(r).filter(S=>{const q=parseInt(S,10);if(!isNaN(q))return b=Math.max(b,q),!0}).map(S=>`${r[S]} ${S}w`).join(", ");""!=M&&m.setAttribute("srcset",{data:M,width:b},l)}}function Q3(d,r){return Array.from(d.model.createRangeOn(r)).filter(l=>l.item.is("element","image")).map(l=>l.item)}class j3 extends Eo{static get pluginName(){return"ImageUpload"}static get requires(){return[ah,kg,Ss]}}class xu extends Ha{refresh(){const r=this.editor.model,l=eu(r.document.selection.getSelectedBlocks());this.value=!!l&&l.is("element","paragraph"),this.isEnabled=!!l&&rh(l,r.schema)}execute(r={}){const l=this.editor.model,m=l.document;l.change(b=>{const M=(r.selection||m.selection).getSelectedBlocks();for(const S of M)!S.is("element","paragraph")&&rh(S,l.schema)&&b.rename(S,"paragraph")})}}function rh(d,r){return r.checkChild(d.parent,"paragraph")&&!r.isObject(d)}class N2 extends Ha{execute(r){const l=this.editor.model;let m=r.position;l.change(b=>{const M=b.createElement("paragraph");if(!l.schema.checkChild(m.parent,M)){const S=l.schema.findAllowedParent(m,M);if(!S)return;m=b.split(m,S).position}l.insertContent(M,m),b.setSelection(M,"in")})}}class Nd extends Eo{static get pluginName(){return"Paragraph"}init(){const r=this.editor,l=r.model,m=r.data;r.commands.add("paragraph",new xu(r)),r.commands.add("insertParagraph",new N2(r)),l.schema.register("paragraph",{inheritAllFrom:"$block"}),r.conversion.elementToElement({model:"paragraph",view:"p"}),r.conversion.for("upcast").elementToElement({model:(b,M)=>Nd.paragraphLikeElements.has(b.name)?b.isEmpty?null:M.createElement("paragraph"):null,converterPriority:"low"}),m.upcastDispatcher.on("element",(b,M,S)=>{S.consumable.test(M.viewItem,{name:M.viewItem.name})&&ch(M.viewItem,M.modelCursor,S.schema)&&Object.assign(M,sh(M.viewItem,M.modelCursor,S))},{priority:"low"}),m.upcastDispatcher.on("text",(b,M,S)=>{M.modelRange||ch(M.viewItem,M.modelCursor,S.schema)&&Object.assign(M,sh(M.viewItem,M.modelCursor,S))},{priority:"lowest"}),l.document.registerPostFixer(b=>this._autoparagraphEmptyRoots(b)),r.data.on("ready",()=>{l.enqueueChange("transparent",b=>this._autoparagraphEmptyRoots(b))},{priority:"lowest"})}_autoparagraphEmptyRoots(r){const l=this.editor.model;for(const m of l.document.getRootNames()){const b=l.document.getRoot(m);if(b.isEmpty&&"$graveyard"!=b.rootName&&l.schema.checkChild(b,"paragraph"))return r.insertElement("paragraph",b),!0}}}function sh(d,r,l){const m=l.writer.createElement("paragraph");return l.writer.insert(m,r),l.convertItem(d,l.writer.createPositionAt(m,0))}function ch(d,r,l){const m=l.createContext(r);return!!l.checkChild(m,"paragraph")&&!!l.checkChild(m.push("paragraph"),d)}Nd.paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td"]);class lh extends Ha{constructor(r,l){super(r),this.modelElements=l}refresh(){const r=eu(this.editor.model.document.selection.getSelectedBlocks());this.value=!!r&&this.modelElements.includes(r.name)&&r.name,this.isEnabled=!!r&&this.modelElements.some(l=>R_(r,l,this.editor.model.schema))}execute(r){const l=this.editor.model,m=l.document,b=r.value;l.change(M=>{const S=Array.from(m.selection.getSelectedBlocks()).filter(q=>R_(q,b,l.schema));for(const q of S)q.is("element",b)||M.rename(q,b)})}}function R_(d,r,l){return l.checkChild(d.parent,r)&&!l.isObject(d)}class Bp extends Eo{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[Nd]}init(){const r=this.editor,l=r.config.get("heading.options"),m=[];for(const b of l)"paragraph"!==b.model&&(r.model.schema.register(b.model,{inheritAllFrom:"$block"}),r.conversion.elementToElement(b),m.push(b.model));this._addDefaultH1Conversion(r),r.commands.add("heading",new lh(r,m))}afterInit(){const r=this.editor,l=r.commands.get("enter"),m=r.config.get("heading.options");l&&this.listenTo(l,"afterExecute",(b,M)=>{const S=r.model.document.selection.getFirstPosition().parent;m.some(q=>S.is("element",q.model))&&!S.is("element","paragraph")&&0===S.childCount&&M.writer.rename(S,"paragraph")})}_addDefaultH1Conversion(r){r.conversion.for("upcast").elementToElement({model:"heading1",view:"h1",converterPriority:as.get("low")+1})}}class H_{constructor(r,l){l&&Pt(this,l),r&&this.set(r)}}io(H_,kt),p(11);class J0 extends Eo{init(){const r=this.editor,l=r.t,m=function(S){const q=S.t,B={Paragraph:q("Paragraph"),"Heading 1":q("Heading 1"),"Heading 2":q("Heading 2"),"Heading 3":q("Heading 3"),"Heading 4":q("Heading 4"),"Heading 5":q("Heading 5"),"Heading 6":q("Heading 6")};return S.config.get("heading.options").map(at=>{const _t=B[at.title];return _t&&_t!=at.title&&(at.title=_t),at})}(r),b=l("Choose heading"),M=l("Heading");r.ui.componentFactory.add("heading",S=>{const q={},B=new Nr,at=r.commands.get("heading"),_t=r.commands.get("paragraph"),Zt=[at];for(const Be of m){const mn={type:"button",model:new H_({label:Be.title,class:Be.class,withText:!0})};"paragraph"===Be.model?(mn.model.bind("isOn").to(_t,"value"),mn.model.set("commandName","paragraph"),Zt.push(_t)):(mn.model.bind("isOn").to(at,"value",Mn=>Mn===Be.model),mn.model.set({commandName:"heading",commandValue:Be.model})),B.add(mn),q[Be.model]=Be.title}const _e=r1(S);return v0(_e,B),_e.buttonView.set({isOn:!1,withText:!0,tooltip:M}),_e.extendTemplate({attributes:{class:["ck-heading-dropdown"]}}),_e.bind("isEnabled").toMany(Zt,"isEnabled",(...Be)=>Be.some(mn=>mn)),_e.buttonView.bind("label").to(at,"value",_t,"value",(Be,mn)=>{const Mn=Be||mn&&"paragraph";return q[Mn]?q[Mn]:b}),this.listenTo(_e,"execute",Be=>{r.execute(Be.source.commandName,Be.source.commandValue?{value:Be.source.commandValue}:void 0),r.editing.view.focus()}),_e})}}function Y_(d){for(const r of d.getChildren())if(r&&r.is("element","caption"))return r;return null}function G0(d){const r=d.parent;return"figcaption"==d.name&&r&&"figure"==r.name&&r.hasClass("image")?{name:!0}:null}class uh extends Eo{static get pluginName(){return"ImageCaptionEditing"}init(){const r=this.editor,l=r.editing.view,b=r.data,M=r.editing,S=r.t;r.model.schema.register("caption",{allowIn:"image",allowContentOf:"$block",isLimit:!0}),r.model.document.registerPostFixer(B=>this._insertMissingModelCaptionElement(B)),r.conversion.for("upcast").elementToElement({view:G0,model:"caption"}),b.downcastDispatcher.on("insert:caption",Og(B=>B.createContainerElement("figcaption"),!1));const q=(B=l,at=S("Enter image caption"),_t=>{const Zt=_t.createEditableElement("figcaption");return _t.setCustomProperty("imageCaption",!0,Zt),Df({view:B,element:Zt,text:at}),iu(Zt,_t)});var B,at;M.downcastDispatcher.on("insert:caption",Og(q)),M.downcastDispatcher.on("insert",this._fixCaptionVisibility(B=>B.item),{priority:"high"}),M.downcastDispatcher.on("remove",this._fixCaptionVisibility(B=>B.position.parent),{priority:"high"}),l.document.registerPostFixer(B=>this._updateCaptionVisibility(B))}_updateCaptionVisibility(r){const l=this.editor.editing.mapper,m=this._lastSelectedCaption;let b;const M=this.editor.model.document.selection,S=M.getSelectedElement();if(S&&S.is("element","image")){const B=Y_(S);b=l.toViewElement(B)}const q=I2(M.getFirstPosition().parent);if(q&&(b=l.toViewElement(q)),b)return m?(m===b||(Rm(m,r),this._lastSelectedCaption=b),Jp(b,r)):(this._lastSelectedCaption=b,Jp(b,r));if(m){const B=Rm(m,r);return this._lastSelectedCaption=null,B}return!1}_fixCaptionVisibility(r){return(l,m,b)=>{const M=I2(r(m)),q=b.writer;if(M){const B=this.editor.editing.mapper.toViewElement(M);B&&(M.childCount?q.removeClass("ck-hidden",B):q.addClass("ck-hidden",B))}}}_insertMissingModelCaptionElement(r){const l=this.editor.model,m=l.document.differ.getChanges(),b=[];for(const M of m)if("insert"==M.type&&"$text"!=M.name){const S=M.position.nodeAfter;if(S.is("element","image")&&!Y_(S)&&b.push(S),!S.is("element","image")&&S.childCount)for(const q of l.createRangeIn(S).getItems())q.is("element","image")&&!Y_(q)&&b.push(q)}for(const M of b)r.appendElement("caption",M);return!!b.length}}function Og(d,r=!0){return(l,m,b)=>{const M=m.item;if((M.childCount||r)&&Lm(M.parent)){if(!b.consumable.consume(m.item,"insert"))return;const S=b.mapper.toViewElement(m.range.start.parent),q=d(b.writer),B=b.writer;M.childCount||B.addClass("ck-hidden",q),function(at,_t,Zt,_e){const Be=_e.writer.createPositionAt(Zt,"end");_e.writer.insert(Be,at),_e.mapper.bindElements(_t,at)}(q,m.item,S,b)}}}function I2(d){const r=d.getAncestors({includeSelf:!0}).find(l=>"caption"==l.name);return r&&r.parent&&"image"==r.parent.name?r:null}function Rm(d,r){return!d.childCount&&!d.hasClass("ck-hidden")&&(r.addClass("ck-hidden",d),!0)}function Jp(d,r){return!!d.hasClass("ck-hidden")&&(r.removeClass("ck-hidden",d),!0)}p(72);class Id extends Ha{constructor(r,l){super(r),this.defaultStyle=!1,this.styles=l.reduce((m,b)=>(m[b.name]=b,b.isDefault&&(this.defaultStyle=b.name),m),{})}refresh(){const r=this.editor.model.document.selection.getSelectedElement();if(this.isEnabled=Lm(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,m=this.editor.model,b=m.document.selection.getSelectedElement();m.change(M=>{this.styles[l].isDefault?M.removeAttribute("imageStyle",b):M.setAttribute("imageStyle",l,b)})}}function q2(d,r){for(const l of r)if(l.name===d)return l}var Gp='',z_='',Lg='',Hm='';const R2={full:{name:"full",title:"Full size image",icon:Gp,isDefault:!0},side:{name:"side",title:"Side image",icon:Hm,className:"image-style-side"},alignLeft:{name:"alignLeft",title:"Left aligned image",icon:z_,className:"image-style-align-left"},alignCenter:{name:"alignCenter",title:"Centered image",icon:Lg,className:"image-style-align-center"},alignRight:{name:"alignRight",title:"Right aligned image",icon:Hm,className:"image-style-align-right"}},Q0={full:Gp,left:z_,right:Hm,center:Lg};function j0(d=[]){return d.map(H2)}function H2(d){if("string"==typeof d){const r=d;R2[r]?d=Object.assign({},R2[r]):(console.warn(Object(Qn.a)("image-style-not-found: There is no such image style of given name."),{name:r}),d={name:r})}else if(R2[d.name]){const r=R2[d.name],l=Object.assign({},d);for(const m in r)Object.prototype.hasOwnProperty.call(d,m)||(l[m]=r[m]);d=l}return"string"==typeof d.icon&&Q0[d.icon]&&(d.icon=Q0[d.icon]),d}class W3 extends Eo{static get pluginName(){return"ImageStyleEditing"}init(){const r=this.editor,l=r.model.schema,m=r.data,b=r.editing;r.config.define("image.styles",["full","side"]);const M=j0(r.config.get("image.styles"));l.extend("image",{allowAttributes:"imageStyle"});const S=(q=M,(B,at,_t)=>{if(!_t.consumable.consume(at.item,B.name))return;const Zt=q2(at.attributeNewValue,q),_e=q2(at.attributeOldValue,q),Be=_t.mapper.toViewElement(at.item),mn=_t.writer;_e&&mn.removeClass(_e.className,Be),Zt&&mn.addClass(Zt.className,Be)});var q;b.downcastDispatcher.on("attribute:imageStyle:image",S),m.downcastDispatcher.on("attribute:imageStyle:image",S),m.upcastDispatcher.on("element:figure",function(q){const B=q.filter(at=>!at.isDefault);return(at,_t,Zt)=>{if(!_t.modelRange)return;const _e=_t.viewItem,Be=eu(_t.modelRange.getItems());if(Zt.schema.checkAttribute(Be,"imageStyle"))for(const mn of B)Zt.consumable.consume(_e,{classes:mn.className})&&Zt.writer.setAttribute("imageStyle",mn.name,Be)}}(M),{priority:"low"}),r.commands.add("imageStyle",new Id(r,M))}}p(74);class Eg extends Eo{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,m){for(const b of l)m[b.title]&&(b.title=m[b.title]);return l}(j0(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,b=>{const M=l.commands.get("imageStyle"),S=new Rs(b);return S.set({label:r.title,icon:r.icon,tooltip:!0,isToggleable:!0}),S.bind("isEnabled").to(M,"isEnabled"),S.bind("isOn").to(M,"value",q=>q===r.name),this.listenTo(S,"execute",()=>{l.execute("imageStyle",{value:r.name}),l.editing.view.focus()}),S})}}class Ym extends Eo{static get requires(){return[Rl]}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",m=>{(function(b){const M=b.getSelectedElement();return!(!M||!mp(M))})(r.editing.view.document.selection)&&m.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:m,getRelatedElement:b,balloonClassName:M="ck-toolbar-container"}){if(!m.length)return void console.warn(Object(Qn.a)("widget-toolbar-no-items: Trying to register a toolbar without items."),{toolbarId:r});const S=this.editor,q=S.t,B=new y2(S.locale);if(B.ariaLabel=l||q("Widget toolbar"),this._toolbarDefinitions.has(r))throw new Qn.b("widget-toolbar-duplicated: Toolbar with the given id was already added.",this,{toolbarId:r});B.fillFromConfig(m,S.ui.componentFactory),this._toolbarDefinitions.set(r,{view:B,getRelatedElement:b,balloonClassName:M})}_updateToolbarsVisibility(){let r=0,l=null,m=null;for(const b of this._toolbarDefinitions.values()){const M=b.getRelatedElement(this.editor.editing.view.document.selection);if(this.isEnabled&&M)if(this.editor.ui.focusTracker.isFocused){const S=M.getAncestors().length;S>r&&(r=S,l=M,m=b)}else this._isToolbarVisible(b)&&this._hideToolbar(b);else this._isToolbarInBalloon(b)&&this._hideToolbar(b)}m&&this._showToolbar(m,l)}_hideToolbar(r){this._balloon.remove(r.view),this.stopListening(this._balloon,"change:visibleView")}_showToolbar(r,l){this._isToolbarVisible(r)?W0(this.editor,l):this._isToolbarInBalloon(r)||(this._balloon.add({view:r.view,position:Y2(this.editor,l),balloonClassName:r.balloonClassName}),this.listenTo(this._balloon,"change:visibleView",()=>{for(const m of this._toolbarDefinitions.values())if(this._isToolbarVisible(m)){const b=m.getRelatedElement(this.editor.editing.view.document.selection);W0(this.editor,b)}}))}_isToolbarVisible(r){return this._balloon.visibleView===r.view}_isToolbarInBalloon(r){return this._balloon.hasView(r.view)}}function W0(d,r){const l=d.plugins.get("ContextualBalloon"),m=Y2(d,r);l.updatePosition(m)}function Y2(d,r){const m=$a.defaultPositions;return{target:d.editing.view.domConverter.mapViewToDom(r),positions:[m.northArrowSouth,m.northArrowSouthWest,m.northArrowSouthEast,m.southArrowNorth,m.southArrowNorthWest,m.southArrowNorthEast,gu]}}class bu extends Ha{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 dh extends Eo{static get pluginName(){return"IndentEditing"}init(){const r=this.editor;r.commands.add("indent",new bu(r)),r.commands.add("outdent",new bu(r))}}var z2='',V2='';class Fg extends Eo{static get pluginName(){return"IndentUI"}init(){const r=this.editor,l=r.locale,m=r.t,b="ltr"==l.uiLanguageDirection?z2:V2,M="ltr"==l.uiLanguageDirection?V2:z2;this._defineButton("indent",m("Increase indent"),b),this._defineButton("outdent",m("Decrease indent"),M)}_defineButton(r,l,m){const b=this.editor;b.ui.componentFactory.add(r,M=>{const S=b.commands.get(r),q=new Rs(M);return q.set({label:l,icon:m,tooltip:!0}),q.bind("isOn","isEnabled").to(S,"value","isEnabled"),this.listenTo(q,"execute",()=>{b.execute(r),b.editing.view.focus()}),q})}}class V_ extends U1{constructor(r){super(r),this.domEventType="click"}onDomEvent(r){this.fire(r.type,r)}}p(76);class $3 extends Xo{constructor(r,l,m){super(r);const b=r.t;this.focusTracker=new Ac,this.keystrokes=new Il,this.urlInputView=this._createUrlInput(m),this.saveButtonView=this._createButton(b("Save"),I_,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(b("Cancel"),L2,"ck-button-cancel","cancel"),this._manualDecoratorSwitches=this._createManualDecoratorSwitches(l),this.children=this._createFormChildren(l.manualDecorators),this._focusables=new O1,this._focusCycler=new Rp({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});const M=["ck","ck-link-form"];l.manualDecorators.length&&M.push("ck-link-form_layout-vertical"),this.setTemplate({tag:"form",attributes:{class:M,tabindex:"-1"},children:this.children})}getDecoratorSwitchesState(){return Array.from(this._manualDecoratorSwitches).reduce((r,l)=>(r[l.name]=l.isOn,r),{})}render(){super.render(),jr({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,m=new eh(this.locale,Zg);return m.label=l("Link URL"),m.fieldView.placeholder=r+"example.com",m}_createButton(r,l,m,b){const M=new Rs(this.locale);return M.set({label:r,icon:l,tooltip:!0}),M.extendTemplate({attributes:{class:m}}),b&&M.delegate("execute").to(this,b),M}_createManualDecoratorSwitches(r){const l=this.createCollection();for(const m of r.manualDecorators){const b=new Am(this.locale);b.set({name:m.id,label:m.label,withText:!0}),b.bind("isOn").toMany([m,r],"value",(M,S)=>void 0===S&&void 0===M?m.defaultValue:M),b.on("execute",()=>{m.set("value",!b.isOn)}),l.add(b)}return l}_createFormChildren(r){const l=this.createCollection();if(l.add(this.urlInputView),r.length){const m=new Xo;m.setTemplate({tag:"ul",children:this._manualDecoratorSwitches.map(b=>({tag:"li",children:[b],attributes:{class:["ck","ck-list__item"]}})),attributes:{class:["ck","ck-reset","ck-list"]}}),l.add(m)}return l.add(this.saveButtonView),l.add(this.cancelButtonView),l}}p(78);class D extends Xo{constructor(r){super(r);const l=r.t;this.focusTracker=new Ac,this.keystrokes=new Il,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 O1,this._focusCycler=new Rp({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,m){const b=new Rs(this.locale);return b.set({label:r,icon:l,tooltip:!0}),b.delegate("execute").to(this,m),b}_createPreviewButton(){const r=new Rs(this.locale),l=this.bindTemplate,m=this.t;return r.set({withText:!0,tooltip:m("Open link in new tab")}),r.extendTemplate({attributes:{class:["ck","ck-link-actions__preview"],href:l.to("href",b=>b&&z3(b)),target:"_blank",rel:"noopener noreferrer"}}),r.bind("label").to(this,"href",b=>b||m("This link has no URL")),r.bind("isEnabled").to(this,"href",b=>!!b),r.template.tag="a",r.template.eventListeners={},r}}const I=/^((\w+:(\/{2,})?)|(\W))/i,nt=/[\w-]+@[\w-]+\.+[\w-]+/i;class Qt extends Eo{static get requires(){return[Rl]}static get pluginName(){return"LinkUI"}init(){const r=this.editor;r.editing.view.addObserver(V_),this.actionsView=this._createActionsView(),this.formView=this._createFormView(),this._balloon=r.plugins.get(Rl),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),m=r.commands.get("link"),b=r.commands.get("unlink");return l.bind("href").to(m,"value"),l.editButtonView.bind("isEnabled").to(m),l.unlinkButtonView.bind("isEnabled").to(b),this.listenTo(l,"edit",()=>{this._addFormView()}),this.listenTo(l,"unlink",()=>{r.execute("unlink"),this._hideUI()}),l.keystrokes.set("Esc",(M,S)=>{this._hideUI(),S()}),l.keystrokes.set("Ctrl+K",(M,S)=>{this._addFormView(),S()}),l}_createFormView(){const r=this.editor,l=r.commands.get("link"),m=r.config.get("link.defaultProtocol"),b=new $3(r.locale,l,m);return b.urlInputView.fieldView.bind("value").to(l,"value"),b.urlInputView.bind("isReadOnly").to(l,"isEnabled",M=>!M),b.saveButtonView.bind("isEnabled").to(l),this.listenTo(b,"submit",()=>{const{value:M}=b.urlInputView.fieldView.element,S=!!m&&!I.test(M),q=nt.test(M);r.execute("link",M&&S?(q?"mailto:":m)+M:M,b.getDecoratorSwitchesState()),this._closeFormView()}),this.listenTo(b,"cancel",()=>{this._closeFormView()}),b.keystrokes.set("Esc",(M,S)=>{this._closeFormView(),S()}),b}_createToolbarLinkButton(){const r=this.editor,l=r.commands.get("link"),m=r.t;r.keystrokes.set("Ctrl+K",(b,M)=>{M(),this._showUI(!0)}),r.ui.componentFactory.add("link",b=>{const M=new Rs(b);return M.isEnabled=!0,M.label=m("Link"),M.icon='',M.keystroke="Ctrl+K",M.tooltip=!0,M.isToggleable=!0,M.bind("isEnabled").to(l,"isEnabled"),M.bind("isOn").to(l,"value",S=>!!S),this.listenTo(M,"execute",()=>this._showUI(!0)),M})}_enableUserBalloonInteractions(){this.listenTo(this.editor.editing.view.document,"click",()=>{this._getSelectedLinkElement()&&this._showUI()}),this.editor.keystrokes.set("Tab",(l,m)=>{this._areActionsVisible&&!this.actionsView.focusTracker.isFocused&&(this.actionsView.focus(),m())},{priority:"high"}),this.editor.keystrokes.set("Esc",(l,m)=>{this._isUIVisible&&(this._hideUI(),m())}),Um({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 m=this._getSelectedLinkElement(),b=S();const M=()=>{const q=this._getSelectedLinkElement(),B=S();m&&!q||!m&&B!==b?this._hideUI():this._isUIVisible&&this._balloon.updatePosition(this._getBalloonPositionData()),m=q,b=B};function S(){return l.selection.focus.getAncestors().reverse().find(q=>q.is("element"))}this.listenTo(r.ui,"update",M),this.listenTo(this._balloon,"change:visibleView",M)}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,m=this._getSelectedLinkElement();return{target:m?r.domConverter.mapViewToDom(m):r.domConverter.viewRangeToDom(l.selection.getFirstRange())}}_getSelectedLinkElement(){const r=this.editor.editing.view,l=r.document.selection;if(l.isCollapsed)return Oe(l.getFirstPosition());{const m=l.getFirstRange().getTrimmed(),b=Oe(m.start),M=Oe(m.end);return b&&b==M&&r.createRangeIn(b).getTrimmed().isEqual(m)?b: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 Oe(d){return d.getAncestors().find(r=>{return(l=r).is("attributeElement")&&!!l.getCustomProperty("link");var l})}class dn extends Ha{constructor(r,l){super(r),this.type=l}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(){const r=this.editor.model,m=Array.from(r.document.selection.getSelectedBlocks()).filter(M=>ci(M,r.schema)),b=!0===this.value;r.change(M=>{if(b){let S=m[m.length-1].nextSibling,q=Number.POSITIVE_INFINITY,B=[];for(;S&&"listItem"==S.name&&0!==S.getAttribute("listIndent");){const at=S.getAttribute("listIndent");at=l;)M>b.getAttribute("listIndent")&&(M=b.getAttribute("listIndent")),b.getAttribute("listIndent")==M&&d[r?"unshift":"push"](b),b=b[r?"previousSibling":"nextSibling"]}}function ci(d,r){return r.checkChild(d.parent,"listItem")&&!r.isObject(d)}class fi extends Ha{constructor(r,l){super(r),this._indentBy="forward"==l?1:-1}refresh(){this.isEnabled=this._checkEnabled()}execute(){const r=this.editor.model;let m=Array.from(r.document.selection.getSelectedBlocks());r.change(b=>{const M=m[m.length-1];let S=M.nextSibling;for(;S&&"listItem"==S.name&&S.getAttribute("listIndent")>M.getAttribute("listIndent");)m.push(S),S=S.nextSibling;this._indentBy<0&&(m=m.reverse());for(const q of m){const B=q.getAttribute("listIndent")+this._indentBy;B<0?b.rename(q,"paragraph"):b.setAttribute("listIndent",B,q)}})}_checkEnabled(){const r=eu(this.editor.model.document.selection.getSelectedBlocks());if(!r||!r.is("element","listItem"))return!1;if(this._indentBy>0){const l=r.getAttribute("listIndent"),m=r.getAttribute("listType");let b=r.previousSibling;for(;b&&b.is("element","listItem")&&b.getAttribute("listIndent")>=l;){if(b.getAttribute("listIndent")==l)return b.getAttribute("listType")==m;b=b.previousSibling}return!1}return!0}}function Xi(d,r,l,m){const b=r.parent,M=l.mapper,S=l.writer;let q=M.toViewPosition(m.createPositionBefore(d));const B=jo(d.previousSibling,{sameIndent:!0,smallerIndent:!0,listIndent:d.getAttribute("listIndent")}),at=d.previousSibling;if(B&&B.getAttribute("listIndent")==d.getAttribute("listIndent")){const _t=M.toViewElement(B);q=S.breakContainer(S.createPositionAfter(_t))}else if(at&&"listItem"==at.name){q=M.toViewPosition(m.createPositionAt(at,"end"));const _t=M.findMappedViewAncestor(q),Zt=function(_e){for(const Be of _e.getChildren())if("ul"==Be.name||"ol"==Be.name)return Be;return null}(_t);q=Zt?S.createPositionBefore(Zt):S.createPositionAt(_t,"end")}else q=M.toViewPosition(m.createPositionBefore(d));if(q=Ro(q),S.insert(q,b),at&&"listItem"==at.name){const _t=M.toViewElement(at),Zt=S.createRange(S.createPositionAt(_t,0),q).getWalker({ignoreElementEnd:!0});for(const _e of Zt)if(_e.item.is("element","li")){const Be=S.breakContainer(S.createPositionBefore(_e.item)),mn=_e.item.parent,Mn=S.createPositionAt(r,"end");eo(S,Mn.nodeBefore,Mn.nodeAfter),S.move(S.createRangeOn(mn),Mn),Zt.position=Be}}else{const _t=b.nextSibling;if(_t&&(_t.is("element","ul")||_t.is("element","ol"))){let Zt=null;for(const _e of _t.getChildren()){const Be=M.toModelElement(_e);if(!(Be&&Be.getAttribute("listIndent")>d.getAttribute("listIndent")))break;Zt=_e}Zt&&(S.breakContainer(S.createPositionAfter(Zt)),S.move(S.createRangeOn(Zt.parent),S.createPositionAt(r,"end")))}}eo(S,b,b.nextSibling),eo(S,b.previousSibling,b)}function eo(d,r,l){return!r||!l||"ul"!=r.name&&"ol"!=r.name||r.name!=l.name||r.getAttribute("class")!==l.getAttribute("class")?null:d.mergeContainers(d.createPositionAfter(r))}function Ro(d){return d.getLastMatchingPosition(r=>r.item.is("uiElement"))}function jo(d,r){const l=!!r.sameIndent,m=!!r.smallerIndent,b=r.listIndent;let M=d;for(;M&&"listItem"==M.name;){const S=M.getAttribute("listIndent");if(l&&b==S||m&&b>S)return M;M=M.previousSibling}return null}function ma(d,r,l,m){d.ui.componentFactory.add(r,b=>{const M=d.commands.get(r),S=new Rs(b);return S.set({label:l,icon:m,tooltip:!0,isToggleable:!0}),S.bind("isOn","isEnabled").to(M,"value","isEnabled"),S.on("execute",()=>{d.execute(r),d.editing.view.focus()}),S})}function ua(){const d=!this.isEmpty&&("ul"==this.getChild(0).name||"ol"==this.getChild(0).name);return this.isEmpty||d?0:id.call(this)}function la(d){return(r,l,m)=>{const b=m.consumable;if(!b.test(l.item,"insert")||!b.test(l.item,"attribute:listType")||!b.test(l.item,"attribute:listIndent"))return;b.consume(l.item,"insert"),b.consume(l.item,"attribute:listType"),b.consume(l.item,"attribute:listIndent");const M=l.item;Xi(M,function to(d,r){const l=r.mapper,m=r.writer,b="numbered"==d.getAttribute("listType")?"ol":"ul",M=function(q){const B=q.createContainerElement("li");return B.getFillerOffset=ua,B}(m),S=m.createContainerElement(b,null);return m.insert(m.createPositionAt(S,0),M),l.bindElements(d,M),M}(M,m),m,d)}}function er(d,r,l){if(!l.consumable.consume(r.item,"attribute:listType"))return;const m=l.mapper.toViewElement(r.item),b=l.writer;b.breakContainer(b.createPositionBefore(m)),b.breakContainer(b.createPositionAfter(m)),b.rename("numbered"==r.attributeNewValue?"ol":"ul",m.parent)}function Na(d,r,l){const m=l.mapper.toViewElement(r.item).parent,b=l.writer;eo(b,m,m.nextSibling),eo(b,m.previousSibling,m);for(const M of r.item.getChildren())l.consumable.consume(M,"insert")}function au(d,r,l){if("listItem"!=r.item.name){let m=l.mapper.toViewPosition(r.range.start);const b=l.writer,M=[];for(;("ul"==m.parent.name||"ol"==m.parent.name)&&(m=b.breakContainer(m),"li"==m.parent.name);){const S=m,q=b.createPositionAt(m.parent,"end");if(!S.isEqual(q)){const B=b.remove(b.createRange(S,q));M.push(B)}m=b.createPositionAfter(m.parent)}if(M.length>0){for(let S=0;S0){const B=eo(b,q,q.nextSibling);B&&B.parent==q&&m.offset--}}eo(b,m.nodeBefore,m.nodeAfter)}}}function hc(d,r,l){const m=l.mapper.toViewPosition(r.position);eo(l.writer,m.nodeBefore,m.nodeAfter)}function nl(d,r,l){if(l.consumable.consume(r.viewItem,{name:!0})){const m=l.writer,b=m.createElement("listItem"),M=function(at){let _t=0,Zt=at.parent;for(;Zt;){if(Zt.is("element","li"))_t++;else{const _e=Zt.previousSibling;_e&&_e.is("element","li")&&_t++}Zt=Zt.parent}return _t}(r.viewItem);m.setAttribute("listIndent",M,b),m.setAttribute("listType",r.viewItem.parent&&"ol"==r.viewItem.parent.name?"numbered":"bulleted",b);const q=l.splitToAllowedParent(b,r.modelCursor);if(!q)return;m.insert(b,q.position);const B=function(at,_t,Zt){const{writer:_e,schema:Be}=Zt;let mn=_e.createPositionAfter(at);for(const Mn of _t)if("ul"==Mn.name||"ol"==Mn.name)mn=Zt.convertItem(Mn,mn).modelCursor;else{const In=Zt.convertItem(Mn,_e.createPositionAt(at,"end")),Gn=In.modelRange.start.nodeAfter;Gn&&Gn.is("element")&&!Be.checkChild(at,Gn.name)&&(at=In.modelCursor.parent.is("element","listItem")?In.modelCursor.parent:ph(In.modelCursor),mn=_e.createPositionAfter(at))}return mn}(b,r.viewItem.getChildren(),l);r.modelRange=m.createRange(r.modelCursor,B),r.modelCursor=q.cursorParent?m.createPositionAt(q.cursorParent,0):r.modelRange.end}}function Cs(d,r,l){if(l.consumable.test(r.viewItem,{name:!0})){const m=Array.from(r.viewItem.getChildren());for(const b of m)!b.is("element","li")&&!qd(b)&&b._remove()}}function Hl(d,r,l){if(l.consumable.test(r.viewItem,{name:!0})){if(0===r.viewItem.childCount)return;const m=[...r.viewItem.getChildren()];let b=!1,M=!0;for(const S of m)b&&!qd(S)&&S._remove(),S.is("$text")?(M&&(S._data=S.data.replace(/^\s+/,"")),S.nextSibling&&!qd(S.nextSibling)||(S._data=S.data.replace(/\s+$/,""))):qd(S)&&(b=!0),M=!1}}function ru(d){return(r,l)=>{if(l.isPhantom)return;const m=l.modelPosition.nodeBefore;if(m&&m.is("element","listItem")){const b=l.mapper.toViewElement(m),M=b.getAncestors().find(qd),S=d.createPositionAt(b,0).getWalker();for(const q of S){if("elementStart"==q.type&&q.item.is("element","li")){l.viewPosition=q.previousPosition;break}if("elementEnd"==q.type&&q.item==M){l.viewPosition=q.nextPosition;break}}}}}function zm(d,[r,l]){let m,b=r.is("documentFragment")?r.getChild(0):r;if(m=l?this.createSelection(l):this.document.selection,b&&b.is("element","listItem")){const M=m.getFirstPosition();let S=null;if(M.parent.is("element","listItem")?S=M.parent:M.nodeBefore&&M.nodeBefore.is("element","listItem")&&(S=M.nodeBefore),S){const q=S.getAttribute("listIndent");if(q>0)for(;b&&b.is("element","listItem");)b._setAttribute("listIndent",b.getAttribute("listIndent")+q),b=b.nextSibling}}}function ph(d){const r=new el({startPosition:d});let l;do{l=r.next()}while(!l.value.item.is("element","listItem"));return l.value.item}function B_(d,r,l,m,b,M){const S=jo(r.nodeBefore,{sameIndent:!0,smallerIndent:!0,listIndent:d,foo:"b"}),q=b.mapper,B=b.writer,at=S?S.getAttribute("listIndent"):null;let _t;if(S)if(at==d){const Zt=q.toViewElement(S).parent;_t=B.createPositionAfter(Zt)}else{const Zt=M.createPositionAt(S,"end");_t=q.toViewPosition(Zt)}else _t=l;_t=Ro(_t);for(const Zt of[...m.getChildren()])qd(Zt)&&(_t=B.move(B.createRangeOn(Zt),_t).end,eo(B,Zt,Zt.nextSibling),eo(B,Zt.previousSibling,Zt))}function qd(d){return d.is("element","ol")||d.is("element","ul")}class K3 extends Eo{static get pluginName(){return"ListEditing"}static get requires(){return[Nd]}init(){const r=this.editor;r.model.schema.register("listItem",{inheritAllFrom:"$block",allowAttributes:["listType","listIndent"]});const l=r.data,m=r.editing;var b;r.model.document.registerPostFixer(q=>function(B,at){const _t=B.document.differ.getChanges(),Zt=new Map;let _e=!1;for(const In of _t)if("insert"==In.type&&"listItem"==In.name)Be(In.position);else if("insert"==In.type&&"listItem"!=In.name){if("$text"!=In.name){const Gn=In.position.nodeAfter;Gn.hasAttribute("listIndent")&&(at.removeAttribute("listIndent",Gn),_e=!0),Gn.hasAttribute("listType")&&(at.removeAttribute("listType",Gn),_e=!0);for(const Fi of Array.from(B.createRangeIn(Gn)).filter(Ji=>Ji.item.is("element","listItem")))Be(Fi.previousPosition)}Be(In.position.getShiftedBy(In.length))}else"remove"==In.type&&"listItem"==In.name?Be(In.position):("attribute"==In.type&&"listIndent"==In.attributeKey||"attribute"==In.type&&"listType"==In.attributeKey)&&Be(In.range.start);for(const In of Zt.values())mn(In),Mn(In);return _e;function Be(In){const Gn=In.nodeBefore;if(Gn&&Gn.is("element","listItem")){let Fi=Gn;if(Zt.has(Fi))return;for(let Ji=Fi.previousSibling;Ji&&Ji.is("element","listItem");Ji=Fi.previousSibling)if(Fi=Ji,Zt.has(Fi))return;Zt.set(Gn,Fi)}else{const Fi=In.nodeAfter;Fi&&Fi.is("element","listItem")&&Zt.set(Fi,Fi)}}function mn(In){let Gn=0,Fi=null;for(;In&&In.is("element","listItem");){const Ji=In.getAttribute("listIndent");if(Ji>Gn){let Do;null===Fi?(Fi=Ji-Gn,Do=Gn):(Fi>Ji&&(Fi=Ji),Do=Ji-Fi),at.setAttribute("listIndent",Do,In),_e=!0}else Fi=null,Gn=In.getAttribute("listIndent")+1;In=In.nextSibling}}function Mn(In){let Gn=[],Fi=null;for(;In&&In.is("element","listItem");){const Ji=In.getAttribute("listIndent");if(Fi&&Fi.getAttribute("listIndent")>Ji&&(Gn=Gn.slice(0,Ji+1)),0!=Ji)if(Gn[Ji]){const Do=Gn[Ji];In.getAttribute("listType")!=Do&&(at.setAttribute("listType",Do,In),_e=!0)}else Gn[Ji]=In.getAttribute("listType");Fi=In,In=In.nextSibling}}}(r.model,q)),m.mapper.registerViewToModelLength("li",Ng),l.mapper.registerViewToModelLength("li",Ng),m.mapper.on("modelToViewPosition",ru(m.view)),m.mapper.on("viewToModelPosition",(b=r.model,(q,B)=>{const at=B.viewPosition,_t=at.parent,Zt=B.mapper;if("ul"==_t.name||"ol"==_t.name){if(at.isAtEnd){const _e=Zt.toModelElement(at.nodeBefore),Be=Zt.getModelLength(at.nodeBefore);B.modelPosition=b.createPositionBefore(_e).getShiftedBy(Be)}else{const _e=Zt.toModelElement(at.nodeAfter);B.modelPosition=b.createPositionBefore(_e)}q.stop()}else if("li"==_t.name&&at.nodeBefore&&("ul"==at.nodeBefore.name||"ol"==at.nodeBefore.name)){const _e=Zt.toModelElement(_t);let Be=1,mn=at.nodeBefore;for(;mn&&qd(mn);)Be+=Zt.getModelLength(mn),mn=mn.previousSibling;B.modelPosition=b.createPositionBefore(_e).getShiftedBy(Be),q.stop()}})),l.mapper.on("modelToViewPosition",ru(m.view)),r.conversion.for("editingDowncast").add(q=>{var B;q.on("insert",au,{priority:"high"}),q.on("insert:listItem",la(r.model)),q.on("attribute:listType:listItem",er,{priority:"high"}),q.on("attribute:listType:listItem",Na,{priority:"low"}),q.on("attribute:listIndent:listItem",(B=r.model,(at,_t,Zt)=>{if(!Zt.consumable.consume(_t.item,"attribute:listIndent"))return;const _e=Zt.mapper.toViewElement(_t.item),Be=Zt.writer;Be.breakContainer(Be.createPositionBefore(_e)),Be.breakContainer(Be.createPositionAfter(_e));const mn=_e.parent,Mn=mn.previousSibling,In=Be.createRangeOn(mn);Be.remove(In),Mn&&Mn.nextSibling&&eo(Be,Mn,Mn.nextSibling),B_(_t.attributeOldValue+1,_t.range.start,In.start,_e,Zt,B),Xi(_t.item,_e,Zt,B);for(const Gn of _t.item.getChildren())Zt.consumable.consume(Gn,"insert")})),q.on("remove:listItem",function(B){return(at,_t,Zt)=>{const _e=Zt.mapper.toViewPosition(_t.position).getLastMatchingPosition(Fi=>!Fi.item.is("element","li")).nodeAfter,Be=Zt.writer;Be.breakContainer(Be.createPositionBefore(_e)),Be.breakContainer(Be.createPositionAfter(_e));const mn=_e.parent,Mn=mn.previousSibling,In=Be.createRangeOn(mn),Gn=Be.remove(In);Mn&&Mn.nextSibling&&eo(Be,Mn,Mn.nextSibling),B_(Zt.mapper.toModelElement(_e).getAttribute("listIndent")+1,_t.position,In.start,_e,Zt,B);for(const Fi of Be.createRangeIn(Gn).getItems())Zt.mapper.unbindViewElement(Fi);at.stop()}}(r.model)),q.on("remove",hc,{priority:"low"})}),r.conversion.for("dataDowncast").add(q=>{q.on("insert",au,{priority:"high"}),q.on("insert:listItem",la(r.model))}),r.conversion.for("upcast").add(q=>{q.on("element:ul",Cs,{priority:"high"}),q.on("element:ol",Cs,{priority:"high"}),q.on("element:li",Hl,{priority:"high"}),q.on("element:li",nl)}),r.model.on("insertContent",zm,{priority:"high"}),r.commands.add("numberedList",new dn(r,"numbered")),r.commands.add("bulletedList",new dn(r,"bulleted")),r.commands.add("indentList",new fi(r,"forward")),r.commands.add("outdentList",new fi(r,"backward"));const M=m.view.document;this.listenTo(M,"enter",(q,B)=>{const at=this.editor.model.document,_t=at.selection.getLastPosition().parent;at.selection.isCollapsed&&"listItem"==_t.name&&_t.isEmpty&&(this.editor.execute("outdentList"),B.preventDefault(),q.stop())}),this.listenTo(M,"delete",(q,B)=>{if("backward"!==B.direction)return;const at=this.editor.model.document.selection;if(!at.isCollapsed)return;const _t=at.getFirstPosition();if(!_t.isAtStart)return;const Zt=_t.parent;"listItem"===Zt.name&&(Zt.previousSibling&&"listItem"===Zt.previousSibling.name||(this.editor.execute("outdentList"),B.preventDefault(),q.stop()))},{priority:"high"});const S=q=>(B,at)=>{this.editor.commands.get(q).isEnabled&&(this.editor.execute(q),at())};r.keystrokes.set("Tab",S("indentList")),r.keystrokes.set("Shift+Tab",S("outdentList"))}afterInit(){const r=this.editor.commands,l=r.get("indent"),m=r.get("outdent");l&&l.registerChildCommand(r.get("indentList")),m&&m.registerChildCommand(r.get("outdentList"))}}function Ng(d){let r=1;for(const l of d.getChildren())if("ul"==l.name||"ol"==l.name)for(const m of l.getChildren())r+=Ng(m);return r}class c6 extends Eo{init(){const r=this.editor.t;ma(this.editor,"numberedList",r("Numbered List"),''),ma(this.editor,"bulletedList",r("Bulleted List"),'')}}function $0(d,r){return m=>{m.on("attribute:url:media",l)};function l(m,b,M){if(!M.consumable.consume(b.item,m.name))return;const S=b.attributeNewValue,q=M.writer,B=M.mapper.toViewElement(b.item),at=[...B.getChildren()].find(Zt=>Zt.getCustomProperty("media-content"));q.remove(at);const _t=d.getMediaViewElement(q,S,r);q.insert(q.createPositionAt(B,0),_t)}}function K0(d,r,l,m){const b=d.createContainerElement("figure",{class:"media"});return d.insert(d.createPositionAt(b,0),r.getMediaViewElement(d,l,m)),b}function X3(d){const r=d.getSelectedElement();return r&&r.is("element","media")?r:null}function t4(d,r,l){d.change(m=>{const b=m.createElement("media",{url:r});d.insertContent(b,l),m.setSelection(b,"on")})}class Ig extends Ha{refresh(){const r=this.editor.model,l=r.document.selection,m=r.schema,b=l.getFirstPosition(),M=X3(l);let S=b.parent;S!=S.root&&(S=S.parent),this.value=M?M.getAttribute("url"):null,this.isEnabled=m.checkChild(S,"media")}execute(r){const l=this.editor.model,m=l.document.selection,b=X3(m);if(b)l.change(M=>{M.setAttribute("url",r,b)});else{const M=_p(m,l);t4(l,r,M)}}}class e4{constructor(r,l){const m=l.providers,b=l.extraProviders||[],M=new Set(l.removeProviders),S=m.concat(b).filter(q=>{const B=q.name;return B?!M.has(B):(console.warn(Object(Qn.a)("media-embed-no-provider-name: The configured media provider has no name and cannot be used."),{provider:q}),!1)});this.locale=r,this.providerDefinitions=S}hasMedia(r){return!!this._getMedia(r)}getMediaViewElement(r,l,m){return this._getMedia(l).getViewElement(r,m)}_getMedia(r){if(!r)return new n4(this.locale);r=r.trim();for(const l of this.providerDefinitions){const m=l.html;let b=l.url;Array.isArray(b)||(b=[b]);for(const M of b){const S=this._getUrlMatches(r,M);if(S)return new n4(this.locale,r,S,m)}}return null}_getUrlMatches(r,l){let m=r.match(l);if(m)return m;let b=r.replace(/^https?:\/\//,"");return m=b.match(l),m||(b=b.replace(/^www\./,""),m=b.match(l),m||null)}}class n4{constructor(r,l,m,b){this.url=this._getValidUrl(l),this._t=r.t,this._match=m,this._previewRenderer=b}getViewElement(r,l){const m={};let b;if(l.renderForEditingView||l.renderMediaPreview&&this.url&&this._previewRenderer){this.url&&(m["data-oembed-url"]=this.url),l.renderForEditingView&&(m.class="ck-media__wrapper");const M=this._getPreviewHtml(l);b=r.createRawElement("div",m,function(S){S.innerHTML=M})}else this.url&&(m.url=this.url),b=r.createEmptyElement("oembed",m);return r.setCustomProperty("media-content",!0,b),b}_getPreviewHtml(r){return this._previewRenderer?this._previewRenderer(this._match):this.url&&r.renderForEditingView?this._getPlaceholderHtml():""}_getPlaceholderHtml(){const r=new h0,l=new Tm;return r.text=this._t("Open media in new tab"),l.content='',l.viewBox="0 0 64 42",new yl({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}}p(80);class X0 extends Eo{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 e4(r.locale,r.config.get("mediaEmbed"))}init(){const r=this.editor,l=r.model.schema,m=r.t,b=r.conversion,M=r.config.get("mediaEmbed.previewsInData"),S=this.registry;r.commands.add("mediaEmbed",new Ig(r)),l.register("media",{isObject:!0,isBlock:!0,allowWhere:"$block",allowAttributes:["url"]}),b.for("dataDowncast").elementToElement({model:"media",view:(q,B)=>{const at=q.getAttribute("url");return K0(B,S,at,{renderMediaPreview:at&&M})}}),b.for("dataDowncast").add($0(S,{renderMediaPreview:M})),b.for("editingDowncast").elementToElement({model:"media",view:(q,B)=>{const at=q.getAttribute("url");return Zt=K0(B,S,at,{renderForEditingView:!0}),_e=B,Be=m("media widget"),_e.setCustomProperty("media",!0,Zt),c1(Zt,_e,{label:Be});var Zt,_e,Be}}),b.for("editingDowncast").add($0(S,{renderForEditingView:!0})),b.for("upcast").elementToElement({view:{name:"oembed",attributes:{url:!0}},model:(q,B)=>{const at=q.getAttribute("url");if(S.hasMedia(at))return B.createElement("media",{url:at})}}).elementToElement({view:{name:"div",attributes:{"data-oembed-url":!0}},model:(q,B)=>{const at=q.getAttribute("data-oembed-url");if(S.hasMedia(at))return B.createElement("media",{url:at})}})}}const t3=/^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w.-]+)+[\w\-._~:/?#[\]@!$&'()*+,;=]+$/;class l6 extends Eo{static get requires(){return[Mm,Rf]}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(Mm),"inputTransformation",()=>{const m=l.selection.getFirstRange(),b=rc.fromPosition(m.start);b.stickiness="toPrevious";const M=rc.fromPosition(m.end);M.stickiness="toNext",l.once("change:data",()=>{this._embedMediaBetweenPositions(b,M),b.detach(),M.detach()},{priority:"high"})}),r.commands.get("undo").on("execute",()=>{this._timeoutId&&(ft.window.clearTimeout(this._timeoutId),this._positionToInsert.detach(),this._timeoutId=null,this._positionToInsert=null)},{priority:"high"})}_embedMediaBetweenPositions(r,l){const m=this.editor,b=m.plugins.get(X0).registry,M=new Pp(r,l),S=M.getWalker({ignoreElementEnd:!0});let q="";for(const B of S)B.item.is("$textProxy")&&(q+=B.item.data);q=q.trim(),q.match(t3)&&b.hasMedia(q)&&m.commands.get("mediaEmbed").isEnabled?(this._positionToInsert=rc.fromPosition(r),this._timeoutId=ft.window.setTimeout(()=>{m.model.change(B=>{let at;this._timeoutId=null,B.remove(M),M.detach(),"$graveyard"!==this._positionToInsert.root.rootName&&(at=this._positionToInsert),t4(m.model,q,at),this._positionToInsert.detach(),this._positionToInsert=null})},100)):M.detach()}}p(82);class i4 extends Xo{constructor(r,l){super(l);const m=l.t;this.focusTracker=new Ac,this.keystrokes=new Il,this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(m("Save"),I_,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(m("Cancel"),L2,"ck-button-cancel","cancel"),this._focusables=new O1,this._focusCycler=new Rp({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(),jr({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,m)=>{m.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 eh(this.locale,Zg),m=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,m.placeholder="https://example.com",m.on("input",()=>{l.infoText=m.element.value?this._urlInputViewInfoTip:this._urlInputViewInfoDefault}),l}_createButton(r,l,m,b){const M=new Rs(this.locale);return M.set({label:r,icon:l,tooltip:!0}),M.extendTemplate({attributes:{class:m}}),b&&M.delegate("execute").to(this,b),M}}class l1 extends Eo{static get requires(){return[X0]}static get pluginName(){return"MediaEmbedUI"}init(){const r=this.editor,l=r.commands.get("mediaEmbed"),m=r.plugins.get(X0).registry;r.ui.componentFactory.add("mediaEmbed",b=>{const M=r1(b),S=new i4((q=r.t,B=m,[at=>{if(!at.url.length)return q("The URL must not be empty.")},at=>{if(!B.hasMedia(at.url))return q("This media URL is not supported.")}]),r.locale);var q,B;return this._setUpDropdown(M,S,l,r),this._setUpForm(M,S,l),M})}_setUpDropdown(r,l,m){const b=this.editor,M=b.t,S=r.buttonView;function q(){b.editing.view.focus(),r.isOpen=!1}r.bind("isEnabled").to(m),r.panelView.children.add(l),S.set({label:M("Insert media"),icon:'',tooltip:!0}),S.on("open",()=>{l.url=m.value||"",l.urlInputView.fieldView.select(),l.focus()},{priority:"low"}),r.on("submit",()=>{l.isValid()&&(b.execute("mediaEmbed",l.url),q())}),r.on("change:isOpen",()=>l.resetFormStatus()),r.on("cancel",()=>q())}_setUpForm(r,l,m){l.delegate("submit","cancel").to(r),l.urlInputView.bind("value").to(m,"value"),l.urlInputView.bind("isReadOnly").to(m,"isEnabled",b=>!b),l.saveButtonView.bind("isEnabled").to(m)}}function mh(d,r,l){const m=r.parent,b=l.createElement(d.type),M=m.getChildIndex(r)+1;return l.insertChild(M,b,m),b}function u1(d){const r={},l=d.getStyle("mso-list");if(l){const m=l.match(/(^|\s+)l(\d+)/i),b=l.match(/\s*lfo(\d+)/i),M=l.match(/\s*level(\d+)/i);m&&b&&M&&(r.id=m[2],r.order=b[1],r.indent=M[1])}return r}p(84);const V1=/id=("|')docs-internal-guid-[-0-9a-f]+("|')/i;class e3{constructor(r){this.document=r}isActive(r){return V1.test(r)}execute(r){const l=new oh(this.document);(function(m,b){for(const M of m.getChildren())if(M.is("element","b")&&"normal"===M.getStyle("font-weight")){const S=m.getChildIndex(M);b.remove(M),b.insertChild(S,M.getChildren(),m)}})(r.content,l),function(m,b){for(const M of b.createRangeIn(m)){const S=M.item;if(S.is("element","li")){const q=S.getChild(0);q.is("element","p")&&b.unwrapElement(q)}}}(r.content,l)}}function u6(d){return d.replace(/(\s+)<\/span>/g,(r,l)=>1===l.length?" ":Array(l.length+1).join("\xa0 ").substr(0,l.length))}const _h=//i,d6=/xmlns:o="urn:schemas-microsoft-com/i;class n3{constructor(r){this.document=r}isActive(r){return _h.test(r)||d6.test(r)}execute(r){const{body:l,stylesString:m}=function Rg(d,r){const l=new DOMParser,m=u6(u6(function(B){const at=B.match(/<\/body>(.*?)(<\/html>|$)/);return at&&at[1]&&(B=B.slice(0,at.index)+B.slice(at.index).replace(at[1],"")),B}(d=d.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},h.prototype.json=function(x,t){return t=t||this.step,typeof JSON>"u"?x:"string"==typeof x?JSON.stringify(JSON.parse(x),null,t):"object"==typeof x?JSON.stringify(x,null,t):x},h.prototype.css=function(x,v){var t=x.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=v?j(v):this.shift;for(P=0;P/g,"").replace(/[ \r\n\t]{1,}xmlns/g," xmlns")).replace(/>\s{0,}<")},h.prototype.jsonmin=function(x){return typeof JSON>"u"?x:JSON.stringify(JSON.parse(x),null,0)},h.prototype.cssmin=function(x,v){return(v?x:x.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,"*/")},h.prototype.sqlmin=function(x){return x.replace(/\s{1,}/g," ").replace(/\s{1,}\(/,"(").replace(/\s{1,}\)/,")")},X.exports=new h},67824:(X,j,h)=>{"use strict";function u(p){for(var x in p)j.hasOwnProperty(x)||(j[x]=p[x])}Object.defineProperty(j,"__esModule",{value:!0}),u(h(95085)),u(h(26243)),u(h(91786)),u(h(30225)),u(h(76767)),u(h(30345)),u(h(15675)),u(h(86461)),u(h(58802)),u(h(33900)),u(h(88866)),u(h(94655)),u(h(4068)),u(h(33858)),u(h(98237)),u(h(83292))},95085:function(X,j,h){"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(j,"__esModule",{value:!0});var p=h(15675),x=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=p.Layout.dragStart,w.dragend=w.dragEnd=p.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}(p.Layout);j.LayoutAdaptor=x,j.adaptor=function v(t){return new x(t)}},83292:(X,j,h)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});var u=h(15675),p=h(76767);j.gridify=function x(T,U,w,P){T.cola.start(0,0,0,10,!1);var O=function v(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 p.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})},j.powerGraphGridLayout=function t(T,U,w){var P;T.nodes.forEach(function(V,W){return V.index=W}),(new u.Layout).avoidOverlaps(!1).nodes(T.nodes).links(T.links).powerGraphGroups(function(V){(P=V).groups.forEach(function(W){return W.padding=w})});var O=T.nodes.length,L=[],N=T.nodes.slice(0);return N.forEach(function(V,W){return V.index=W}),P.groups.forEach(function(V){var W=V.index=V.id+O;N.push(V),typeof V.leaves<"u"&&V.leaves.forEach(function(tt){return L.push({source:W,target:tt.index})}),typeof V.groups<"u"&&V.groups.forEach(function(tt){return L.push({source:W,target:tt.id+O})})}),P.powerEdges.forEach(function(V){L.push({source:V.source.index,target:V.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(V){(P=V).groups.forEach(function(W){W.padding=w})}).start(50,0,100,0,!1),powerGraph:P}}},26243:(X,j,h)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});var u=h(49346),p=h(22487);j.d3adaptor=function x(t){return!t||function v(t){return t.version&&null!==t.version.match(/^3\./)}(t)?new u.D3StyleLayoutAdaptor:new p.D3StyleLayoutAdaptor(t)}},49346:function(X,j,h){"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(j,"__esModule",{value:!0});var p=h(15675),x=function(t){function T(){var U=t.call(this)||this;U.event=d3.dispatch(p.EventType[p.EventType.start],p.EventType[p.EventType.tick],p.EventType[p.EventType.end]);var w=U;return U.drag=function(){if(!O)var O=d3.behavior.drag().origin(p.Layout.dragOrigin).on("dragstart.d3adaptor",p.Layout.dragStart).on("drag.d3adaptor",function(L){p.Layout.drag(L,d3.event),w.resume()}).on("dragend.d3adaptor",p.Layout.dragEnd);if(!arguments.length)return O;this.call(O)},U}return u(T,t),T.prototype.trigger=function(U){var w={type:p.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:p.EventType[U],w),this},T}(p.Layout);j.D3StyleLayoutAdaptor=x,j.d3adaptor=function v(){return new x}},22487:function(X,j,h){"use strict";var v,u=this&&this.__extends||(v=function(t,T){return(v=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}v(t,T),t.prototype=null===T?Object.create(T):(U.prototype=T.prototype,new U)});Object.defineProperty(j,"__esModule",{value:!0});var p=h(15675),x=function(v){function t(T){var U=v.call(this)||this;U.d3Context=T,U.event=T.dispatch(p.EventType[p.EventType.start],p.EventType[p.EventType.tick],p.EventType[p.EventType.end]);var w=U;return U.drag=function(){if(!O)var O=T.drag().subject(p.Layout.dragOrigin).on("start.d3adaptor",p.Layout.dragStart).on("drag.d3adaptor",function(L){p.Layout.drag(L,T.event),w.resume()}).on("end.d3adaptor",p.Layout.dragEnd);if(!arguments.length)return O;arguments[0].call(O)},U}return u(t,v),t.prototype.trigger=function(T){var U={type:p.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 v.prototype.tick.call(T)&&U.stop()})},t.prototype.on=function(T,U){return this.event.on("string"==typeof T?T:p.EventType[T],U),this},t}(p.Layout);j.D3StyleLayoutAdaptor=x},91786:(X,j)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});var h=function(){function x(){this.locks={}}return x.prototype.add=function(v,t){this.locks[v]=t},x.prototype.clear=function(){this.locks={}},x.prototype.isEmpty=function(){for(var v in this.locks)return!1;return!0},x.prototype.apply=function(v){for(var t in this.locks)v(Number(t),this.locks[t])},x}();j.Locks=h;var u=function(){function x(v,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 p,this.project=null,this.x=v,this.k=v.length;var U=this.n=v[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 h,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 ct=this.offsetDir();for(U=0;U1&&bt>Dt||!isFinite(Dt)){for(U=0;U1&&(wt=1);var qt=Dt*Dt,Jt=2*wt*(bt-Dt)/(qt*bt),yt=bt*bt*bt,At=2*-wt/(qt*yt);for(isFinite(Jt)||console.log(Jt),U=0;U0?ce-(fe+1)*pt:ce-(fe-1)*pt)&&st<=xt&&(this.scaleSnapByMaxH?(this.g[U][N]+=L*Bt*st,this.H[U][N][N]+=L*Bt):(this.g[U][N]+=Bt*st,this.H[U][N][N]+=Bt))}this.locks.isEmpty()||this.locks.apply(function(Fe,Ge){for(U=0;U0;)for(var w=t;w-- >0;)T(U,w)},x.prototype.matrixApply=function(v){x.mApply(this.k,this.n,v)},x.prototype.computeNextPosition=function(v,t){var T=this;this.computeDerivatives(v);var U=this.computeStepSize(this.g);if(this.stepAndProject(v,t,this.g,U),this.project){this.matrixApply(function(P,O){return T.e[P][O]=v[P][O]-t[P][O]});var w=this.computeStepSize(this.e);w=Math.max(.2,Math.min(w,1)),this.stepAndProject(v,t,this.e,w)}},x.prototype.run=function(v){for(var t=Number.MAX_VALUE,T=!1;!T&&v-- >0;){var U=this.rungeKutta();T=Math.abs(t/U-1)>16)/this.range},x.prototype.getNextBetween=function(v,t){return v+this.getNext()*(t-v)},x}();j.PseudoRandom=p},30225:function(X,j,h){"use strict";var ve,u=this&&this.__extends||(ve=function(fe,Le){return(ve=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Fe,Ge){Fe.__proto__=Ge}||function(Fe,Ge){for(var Gt in Ge)Ge.hasOwnProperty(Gt)&&(Fe[Gt]=Ge[Gt])})(fe,Le)},function(fe,Le){function Fe(){this.constructor=fe}ve(fe,Le),fe.prototype=null===Le?Object.create(Le):(Fe.prototype=Le.prototype,new Fe)});Object.defineProperty(j,"__esModule",{value:!0});var p=h(4068),x=function ve(){};j.Point=x;var v=function ve(fe,Le,Fe,Ge){this.x1=fe,this.y1=Le,this.x2=Fe,this.y2=Ge};j.LineSegment=v;var t=function(ve){function fe(){return null!==ve&&ve.apply(this,arguments)||this}return u(fe,ve),fe}(x);function T(ve,fe,Le){return(fe.x-ve.x)*(Le.y-ve.y)-(Le.x-ve.x)*(fe.y-ve.y)}function U(ve,fe,Le){return T(ve,fe,Le)>0}function w(ve,fe,Le){return T(ve,fe,Le)<0}function V(ve,fe){var Le=fe.slice(0);return Le.push(fe[0]),{rtan:W(ve,Le),ltan:tt(ve,Le)}}function W(ve,fe){var Fe,Ge,Gt,ne,Le=fe.length-1;if(w(ve,fe[1],fe[0])&&!U(ve,fe[Le-1],fe[0]))return 0;for(Fe=0,Ge=Le;;){if(Ge-Fe==1)return U(ve,fe[Fe],fe[Ge])?Fe:Ge;if((ne=w(ve,fe[(Gt=Math.floor((Fe+Ge)/2))+1],fe[Gt]))&&!U(ve,fe[Gt-1],fe[Gt]))return Gt;U(ve,fe[Fe+1],fe[Fe])?ne||U(ve,fe[Fe],fe[Gt])?Ge=Gt:Fe=Gt:ne&&w(ve,fe[Fe],fe[Gt])?Ge=Gt:Fe=Gt}}function tt(ve,fe){var Fe,Ge,Gt,ne,Le=fe.length-1;if(U(ve,fe[Le-1],fe[0])&&!w(ve,fe[1],fe[0]))return 0;for(Fe=0,Ge=Le;;){if(Ge-Fe==1)return w(ve,fe[Fe],fe[Ge])?Fe:Ge;if(ne=w(ve,fe[(Gt=Math.floor((Fe+Ge)/2))+1],fe[Gt]),U(ve,fe[Gt-1],fe[Gt])&&!ne)return Gt;w(ve,fe[Fe+1],fe[Fe])?ne?w(ve,fe[Fe],fe[Gt])?Ge=Gt:Fe=Gt:Ge=Gt:ne?Fe=Gt:U(ve,fe[Fe],fe[Gt])?Ge=Gt:Fe=Gt}}function st(ve,fe,Le,Fe,Ge,Gt){var Te,ne;ne=Fe(ve[Te=Le(fe[0],ve)],fe);for(var jt=!1;!jt;){for(jt=!0;Te===ve.length-1&&(Te=0),!Ge(fe[ne],ve[Te],ve[Te+1]);)++Te;for(;0===ne&&(ne=fe.length-1),!Gt(ve[Te],fe[ne],fe[ne-1]);)--ne,jt=!1}return{t1:Te,t2:ne}}function bt(ve,fe){return st(ve,fe,W,tt,U,w)}j.PolyPoint=t,j.isLeft=T,j.ConvexHull=function P(ve){var Fe,fe=ve.slice(0).sort(function(Me,en){return Me.x!==en.x?en.x-Me.x:en.y-Me.y}),Le=ve.length,Gt=fe[0].x;for(Fe=1;Fe=0&&fe[Fe].x===Xt;Fe--);for(jt=Fe+1,Fe=Te;++Fe<=jt;)if(!(T(fe[0],fe[jt],fe[Fe])>=0&&Fe1&&!(T(ne[ne.length-2],ne[ne.length-1],fe[Fe])>0);)ne.length-=1;0!=Fe&&ne.push(fe[Fe])}re!=jt&&ne.push(fe[re]);var oe=ne.length;for(Fe=jt;--Fe>=Te;)if(!(T(fe[re],fe[Te],fe[Fe])>=0&&Fe>Te)){for(;ne.length>oe&&!(T(ne[ne.length-2],ne[ne.length-1],fe[Fe])>0);)ne.length-=1;0!=Fe&&ne.push(fe[Fe])}}return ne},j.clockwiseRadialSweep=function O(ve,fe,Le){fe.slice(0).sort(function(Fe,Ge){return Math.atan2(Fe.y-ve.y,Fe.x-ve.x)-Math.atan2(Ge.y-ve.y,Ge.x-ve.x)}).forEach(Le)},j.tangent_PolyPolyC=st,j.LRtangent_PolyPolyC=function ct(ve,fe){var Le=bt(fe,ve);return{t1:Le.t2,t2:Le.t1}},j.RLtangent_PolyPolyC=bt,j.LLtangent_PolyPolyC=function Dt(ve,fe){return st(ve,fe,tt,tt,w,w)},j.RRtangent_PolyPolyC=function wt(ve,fe){return st(ve,fe,W,W,U,U)};var qt=function ve(fe,Le){this.t1=fe,this.t2=Le};j.BiTangent=qt;var Jt=function ve(){};j.BiTangents=Jt;var yt=function(ve){function fe(){return null!==ve&&ve.apply(this,arguments)||this}return u(fe,ve),fe}(x);j.TVGPoint=yt;var At=function ve(fe,Le,Fe,Ge){this.id=fe,this.polyid=Le,this.polyvertid=Fe,this.p=Ge,Ge.vv=this};j.VisibilityVertex=At;var xt=function(){function ve(fe,Le){this.source=fe,this.target=Le}return ve.prototype.length=function(){var fe=this.source.p.x-this.target.p.x,Le=this.source.p.y-this.target.p.y;return Math.sqrt(fe*fe+Le*Le)},ve}();j.VisibilityEdge=xt;var pt=function(){function ve(fe,Le){if(this.P=fe,this.V=[],this.E=[],Le)this.V=Le.V.slice(0),this.E=Le.E.slice(0);else{for(var Fe=fe.length,Ge=0;Ge0&&this.E.push(new xt(Gt[Te-1].vv,jt))}Gt.length>1&&this.E.push(new xt(Gt[0].vv,Gt[Gt.length-1].vv))}for(Ge=0;Ge0)return!0;return!1},ve}();function Ot(ve,fe){for(var Le=[],Fe=1,Ge=fe.length;Fe=0&&_n>=0&&xe<0&&vn>=0&&ke>=0&&un<0?Ge.ll=new qt(Gt,Te):en<=0&&_n<=0&&xe>0&&vn<=0&&ke<=0&&un>0?Ge.rr=new qt(Gt,Te):en<=0&&_n>0&&xe<=0&&vn>=0&&ke<0&&un>=0?Ge.rl=new qt(Gt,Te):en>=0&&_n<0&&xe>=0&&vn<=0&&ke>0&&un<=0&&(Ge.lr=new qt(Gt,Te))}return Ge}function ce(ve,fe){return!ve.every(function(Le){return!function St(ve,fe){for(var Le=1,Fe=fe.length;Le0)return!0}return!1}},76767:(X,j,h)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});var u=h(4068),p=h(98237),x=h(33858),v=function w(P,O,L){this.id=P,this.rect=O,this.children=L,this.leaf=typeof L>"u"||0===L.length};j.NodeWrapper=v;var t=function w(P,O,L,N,V){void 0===N&&(N=null),void 0===V&&(V=null),this.id=P,this.x=O,this.y=L,this.node=N,this.line=V};j.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(),V=w.findMatch(P,N);L.length>=V.length?(this.length=L.length,this.si=L.si,this.ti=L.ti,this.reversed=!1):(this.length=V.length,this.si=V.si,this.ti=O.length-V.ti-V.length,this.reversed=!0)}return w.findMatch=function(P,O){for(var L=P.length,N=O.length,V={length:0,si:-1,ti:-1},W=new Array(L),tt=0;ttV.length&&(V.length=ct,V.si=tt-ct+1,V.ti=st-ct+1)}else W[tt][st]=0}return V},w.prototype.getSequence=function(){return this.length>=0?this.s.slice(this.si,this.si+this.length):[]},w}();j.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(yt,At){return new v(At,O.getBounds(yt),O.getChildren(yt))}),this.leaves=this.nodes.filter(function(yt){return yt.leaf}),this.groups=this.nodes.filter(function(yt){return!yt.leaf}),this.cols=this.getGridLines("x"),this.rows=this.getGridLines("y"),this.groups.forEach(function(yt){return yt.children.forEach(function(At){return N.nodes[At].parent=yt})}),this.root={children:[]},this.nodes.forEach(function(yt){typeof yt.parent>"u"&&(yt.parent=N.root,N.root.children.push(yt.id)),yt.ports=[]}),this.backToFront=this.nodes.slice(0),this.backToFront.sort(function(yt,At){return N.getDepth(yt)-N.getDepth(At)}),this.backToFront.slice(0).reverse().filter(function(yt){return!yt.leaf}).forEach(function(yt){var At=u.Rectangle.empty();yt.children.forEach(function(xt){return At=At.union(N.nodes[xt].rect)}),yt.rect=At.inflate(N.groupPadding)});var W=this.midPoints(this.cols.map(function(yt){return yt.pos})),tt=this.midPoints(this.rows.map(function(yt){return yt.pos})),st=W[0],ct=W[W.length-1],bt=tt[0],Dt=tt[tt.length-1],wt=this.rows.map(function(yt){return{x1:st,x2:ct,y1:yt.pos,y2:yt.pos}}).concat(tt.map(function(yt){return{x1:st,x2:ct,y1:yt,y2:yt}})),qt=this.cols.map(function(yt){return{x1:yt.pos,x2:yt.pos,y1:bt,y2:Dt}}).concat(W.map(function(yt){return{x1:yt,x2:yt,y1:bt,y2:Dt}})),Jt=wt.concat(qt);Jt.forEach(function(yt){return yt.verts=[]}),this.verts=[],this.edges=[],wt.forEach(function(yt){return qt.forEach(function(At){var xt=new t(N.verts.length,At.x1,yt.y1);yt.verts.push(xt),At.verts.push(xt),N.verts.push(xt);for(var pt=N.backToFront.length;pt-- >0;){var Ot=N.backToFront[pt],Bt=Ot.rect,St=Math.abs(xt.x-Bt.cx()),ce=Math.abs(xt.y-Bt.cy());if(St0;){var N=L.filter(function(W){return W.rect["overlap"+P.toUpperCase()](L[0].rect)}),V={nodes:N,pos:this.avg(N.map(function(W){return W.rect["c"+P]()}))};O.push(V),V.nodes.forEach(function(W){return L.splice(L.indexOf(W),1)})}return O.sort(function(W,tt){return W.pos-tt.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)&&bt.push(Dt={pos:st[0][O],segments:[]}),Dt.segments.push(st)}return bt},w.nudgeSegs=function(P,O,L,N,V,W){var tt=N.length;if(!(tt<=1)){for(var st=N.map(function(Ot){return new p.Variable(Ot[0][P])}),ct=[],bt=0;bt=0&&ct.push(new p.Constraint(st[At],st[xt],W))}new p.Solver(st,ct).solve(),st.forEach(function(Ot,Bt){var St=N[Bt],ce=Ot.position();St[0][P]=St[1][P]=ce;var Vt=L[St.edgeid];St.i>0&&(Vt[St.i-1][1][P]=ce),St.iMath.PI||V<-Math.PI)&&(V=N-L),V},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(V,W){return typeof O[V]<"u"&&O[V][W]}},w.orderEdges=function(P){for(var O=[],L=0;L=V.length||tt.ti+tt.length>=W.length)){O.push({l:L,r:N});continue}tt.si+tt.length>=V.length||tt.ti+tt.length>=W.length?(st=V[tt.si+1],bt=V[tt.si-1],ct=W[tt.ti-1]):(st=V[tt.si+tt.length-2],ct=V[tt.si+tt.length],bt=W[tt.ti+tt.length]),w.isLeft(st,ct,bt)?O.push({l:N,r:L}):O.push({l:L,r:N})}}return w.getOrder(O)},w.makeSegments=function(P){function O(ct){return{x:ct.x,y:ct.y}}for(var N=[],V=O(P[0]),W=1;W1&&ve>1?1e3:0}).reverse().map(function(xt){return L.verts[xt]});return At.push(this.nodes[V.id].ports[0]),At.filter(function(xt,pt){return!(pt0&&xt.node===V&&At[pt-1].node===V)})},w.getRoutePath=function(P,O,L,N){var tt,st,ct,Vt,ve,V={routepath:"M "+P[0][0].x+" "+P[0][0].y+" ",arrowpath:""};if(P.length>1)for(var W=0;W0?st-=bt/Math.abs(bt)*O:ct-=Dt/Math.abs(Dt)*O,V.routepath+="L "+st+" "+ct+" ";var wt=P[W+1],qt=wt[0].x,Jt=wt[0].y;bt=wt[1].x-qt,Dt=wt[1].y-Jt;var pt,Ot,xt=w.angleBetween2Lines(tt,wt)<0?1:0;Math.abs(bt)>0?(pt=qt+bt/Math.abs(bt)*O,Ot=Jt):(pt=qt,Ot=Jt+Dt/Math.abs(Dt)*O);var Bt=Math.abs(pt-st),St=Math.abs(Ot-ct);V.routepath+="A "+Bt+" "+St+" 0 0 "+xt+" "+pt+" "+Ot+" "}else{var ce=[st,ct];Math.abs(bt)>0?(Vt=[st-=bt/Math.abs(bt)*N,ct+L],ve=[st,ct-L]):(Vt=[st+L,ct-=Dt/Math.abs(Dt)*N],ve=[st-L,ct]),V.routepath+="L "+st+" "+ct+" ",N>0&&(V.arrowpath="M "+ce[0]+" "+ce[1]+" L "+Vt[0]+" "+Vt[1]+" L "+ve[0]+" "+ve[1])}}else bt=(st=(tt=P[0])[1].x)-tt[0].x,Dt=(ct=tt[1].y)-tt[0].y,ce=[st,ct],Math.abs(bt)>0?(Vt=[st-=bt/Math.abs(bt)*N,ct+L],ve=[st,ct-L]):(Vt=[st+L,ct-=Dt/Math.abs(Dt)*N],ve=[st-L,ct]),V.routepath+="L "+st+" "+ct+" ",N>0&&(V.arrowpath="M "+ce[0]+" "+ce[1]+" L "+Vt[0]+" "+Vt[1]+" L "+ve[0]+" "+ve[1]);return V},w}();j.GridRouter=U},30345:(X,j)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});var h_GOLDEN_SECTION=(1+Math.sqrt(5))/2;j.applyPacking=function u(x,v,t,W,V,w){void 0===V&&(V=1),void 0===w&&(w=!0);var L=v,N=t,tt=(V=typeof V<"u"?V:1,W=typeof W<"u"?W:0,0),st=0,ct=0,bt=0,Dt=[];function yt(Ot,Bt){Dt=[],tt=0,st=0,bt=0;for(var St=0;St=Ot.height&&Dt[ce].x+Dt[ce].width+Ot.width+10-Bt<=1e-4){St=Dt[ce];break}Dt.push(Ot),void 0!==St?(Ot.x=St.x+St.width+10,Ot.y=St.bottom,Ot.space_left=Ot.height,Ot.bottom=Ot.y,St.space_left-=Ot.height+10,St.bottom+=Ot.height+10):(Ot.y=bt,bt+=Ot.height+10,Ot.x=0,Ot.bottom=Ot.y,Ot.space_left=Ot.height),Ot.y+Ot.height-st>-1e-4&&(st=Ot.y+Ot.height-0),Ot.x+Ot.width-tt>-1e-4&&(tt=Ot.x+Ot.width-0)}0!=x.length&&(function wt(Ot){Ot.forEach(function(St){!function Bt(St){var ce=Number.MAX_VALUE,Vt=Number.MAX_VALUE,ve=0,fe=0;St.array.forEach(function(Le){var Fe=typeof Le.width<"u"?Le.width:W,Ge=typeof Le.height<"u"?Le.height:W;Fe/=2,Ge/=2,ve=Math.max(Le.x+Fe,ve),ce=Math.min(Le.x-Fe,ce),fe=Math.max(Le.y+Ge,fe),Vt=Math.min(Le.y-Ge,Vt)}),St.width=ve-ce,St.height=fe-Vt}(St)})}(x),function Jt(Ot,Bt){var St=Number.POSITIVE_INFINITY,ce=0;Ot.sort(function(re,Xt){return Xt.height-re.height});for(var Vt=ne=ct=Ot.reduce(function(re,Xt){return re.widthct||Te>1e-4;){if(1!=Ge){var ne=ve-(ve-Vt)/h_GOLDEN_SECTION;Le=yt(Ot,ne)}if(0!=Ge){var jt=Vt+(ve-Vt)/h_GOLDEN_SECTION;Fe=yt(Ot,jt)}if(Gt=Math.abs(ne-jt),Te=Math.abs(Le-Fe),LeFe?(Vt=ne,ne=jt,Le=Fe,Ge=1):(ve=jt,jt=ne,Fe=Le,Ge=0),fe++>100)break}yt(Ot,ce)}(x),w&&function qt(Ot){Ot.forEach(function(Bt){var St={x:0,y:0};Bt.array.forEach(function(ve){St.x+=ve.x,St.y+=ve.y}),St.x/=Bt.array.length,St.y/=Bt.array.length;var Vt_x=Bt.x-(St.x-Bt.width/2)+L/2-tt/2,Vt_y=Bt.y-(St.y-Bt.height/2)+N/2-st/2;Bt.array.forEach(function(ve){ve.x+=Vt_x,ve.y+=Vt_y})})}(x))},j.separateGraphs=function p(x,v){for(var t={},T={},U=[],w=0,P=0;P{"use strict";Object.defineProperty(j,"__esModule",{value:!0});var w,L,u=h(33900),p=h(58802),x=h(91786),v=h(4068),t=h(33858),T=h(30225),U=h(30345);function P(L){return typeof L.leaves<"u"||typeof L.groups<"u"}(L=w=j.EventType||(j.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(V){return"function"==typeof N._linkType?N._linkType(V):0}}}return L.prototype.on=function(N,V){return this.event||(this.event={}),"string"==typeof N?this.event[w[N]]=V:this.event[N]=V,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 W.py>"u")&&(W.px=W.x,W.py=W.y),this._descent.locks.add(tt,[W.px,W.py]));var ct=this._descent.rungeKutta();return 0===ct?this._alpha=0:typeof this._lastStress<"u"&&(this._alpha=ct),this._lastStress=ct,this.updateNodePositions(),this.trigger({type:w.tick,alpha:this._alpha,stress:this._lastStress}),!1},L.prototype.updateNodePositions=function(){for(var W,N=this._descent.x[0],V=this._descent.x[1],tt=this._nodes.length;tt--;)(W=this._nodes[tt]).x=N[tt],W.y=V[tt]},L.prototype.nodes=function(N){if(!N){if(0===this._nodes.length&&this._links.length>0){var V=0;this._links.forEach(function(tt){V=Math.max(V,tt.source,tt.target)}),this._nodes=new Array(++V);for(var W=0;W"u"&&(W.padding=1),typeof W.leaves<"u"&&W.leaves.forEach(function(tt,st){"number"==typeof tt&&((W.leaves[st]=V._nodes[tt]).parent=W)}),typeof W.groups<"u"&&W.groups.forEach(function(tt,st){"number"==typeof tt&&((W.groups[st]=V._groups[tt]).parent=W)})}),this._rootGroup.leaves=this._nodes.filter(function(W){return typeof W.parent>"u"}),this._rootGroup.groups=this._groups.filter(function(W){return typeof W.parent>"u"}),this):this._groups},L.prototype.powerGraphGroups=function(N){var V=u.getGroups(this._nodes,this._links,this.linkAccessor,this._rootGroup);return this.groups(V.groups),N(V),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,V){return arguments.length||(N="y"),this._directedLinkConstraints={axis:N,getMinSeparation:"number"==typeof V?function(){return V}:V},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,V){N.length=V},L.prototype.getLinkType=function(N){return"function"==typeof this._linkType?this._linkType(N):0},L.prototype.symmetricDiffLinkLengths=function(N,V){var W=this;return void 0===V&&(V=1),this.linkDistance(function(tt){return N*tt.length}),this._linkLengthCalculator=function(){return p.symmetricDiffLinkLengths(W._links,W.linkAccessor,V)},this},L.prototype.jaccardLinkLengths=function(N,V){var W=this;return void 0===V&&(V=1),this.linkDistance(function(tt){return N*tt.length}),this._linkLengthCalculator=function(){return p.jaccardLinkLengths(W._links,W.linkAccessor,V)},this},L.prototype.start=function(N,V,W,tt,st,ct){var bt=this;void 0===N&&(N=0),void 0===V&&(V=0),void 0===W&&(W=0),void 0===tt&&(tt=0),void 0===st&&(st=!0),void 0===ct&&(ct=!0);var ce,qt=this.nodes().length,Jt=qt+2*this._groups.length,At=this._canvasSize[0],xt=this._canvasSize[1],pt=new Array(Jt),Ot=new Array(Jt),Bt=null,St=this._avoidOverlaps;this._nodes.forEach(function(Gt,Te){Gt.index=Te,typeof Gt.x>"u"&&(Gt.x=At/2,Gt.y=xt/2),pt[Te]=Gt.x,Ot[Te]=Gt.y}),this._linkLengthCalculator&&this._linkLengthCalculator(),this._distanceMatrix?ce=this._distanceMatrix:(ce=new t.Calculator(Jt,this._links,L.getSourceIndex,L.getTargetIndex,function(Gt){return bt.getLinkLength(Gt)}).DistanceMatrix(),Bt=x.Descent.createSquareMatrix(Jt,function(){return 2}),this._links.forEach(function(Gt){"number"==typeof Gt.source&&(Gt.source=bt._nodes[Gt.source]),"number"==typeof Gt.target&&(Gt.target=bt._nodes[Gt.target])}),this._links.forEach(function(Gt){var Te=L.getSourceIndex(Gt),ne=L.getTargetIndex(Gt);Bt[Te][ne]=Bt[ne][Te]=Gt.weight||1}));var Vt=x.Descent.createSquareMatrix(Jt,function(Gt,Te){return ce[Gt][Te]});if(this._rootGroup&&typeof this._rootGroup.groups<"u"){var Dt=qt;this._groups.forEach(function(Te){(function(Te,ne,jt,re){Bt[Te][ne]=Bt[ne][Te]=jt,Vt[Te][ne]=Vt[ne][Te]=.1})(Dt,Dt+1,bt._groupCompactness),pt[Dt]=0,Ot[Dt++]=0,pt[Dt]=0,Ot[Dt++]=0})}else this._rootGroup={leaves:this._nodes,groups:[]};var fe=this._constraints||[];for(this._directedLinkConstraints&&(this.linkAccessor.getMinSeparation=this._directedLinkConstraints.getMinSeparation,fe=fe.concat(p.generateDirectedEdgeConstraints(qt,this._links,this._directedLinkConstraints.axis,this.linkAccessor))),this.avoidOverlaps(!1),this._descent=new x.Descent([pt,Ot],Vt),this._descent.locks.clear(),Dt=0;Dt0&&(this._descent.project=new v.Projection(this._nodes,this._groups,this._rootGroup,fe).projectFunctions()),this._descent.run(V),this.separateOverlappingComponents(At,xt,ct),this.avoidOverlaps(St),St&&(this._nodes.forEach(function(Gt,Te){Gt.x=pt[Te],Gt.y=Ot[Te]}),this._descent.project=new v.Projection(this._nodes,this._groups,this._rootGroup,fe,!0).projectFunctions(),this._nodes.forEach(function(Gt,Te){pt[Te]=Gt.x,Ot[Te]=Gt.y})),this._descent.G=Bt,this._descent.run(W),tt){this._descent.snapStrength=1e3,this._descent.snapGridSize=this._nodes[0].width,this._descent.numGridSnapNodes=qt,this._descent.scaleSnapByMaxH=qt!=Jt;var Ge=x.Descent.createSquareMatrix(Jt,function(Gt,Te){return Gt>=qt||Te>=qt?Bt[Gt][Te]:0});this._descent.G=Ge,this._descent.run(tt)}return this.updateNodePositions(),this.separateOverlappingComponents(At,xt,ct),st?this.resume():this},L.prototype.initialLayout=function(N,V,W){if(this._groups.length>0&&N>0){var tt=this._nodes.length,st=this._links.map(function(bt){return{source:bt.source.index,target:bt.target.index}}),ct=this._nodes.map(function(bt){return{index:bt.index}});this._groups.forEach(function(bt,Dt){ct.push({index:bt.index=tt+Dt})}),this._groups.forEach(function(bt,Dt){typeof bt.leaves<"u"&&bt.leaves.forEach(function(wt){return st.push({source:bt.index,target:wt.index})}),typeof bt.groups<"u"&&bt.groups.forEach(function(wt){return st.push({source:bt.index,target:wt.index})})}),(new L).size(this.size()).nodes(ct).links(st).avoidOverlaps(!1).linkDistance(this.linkDistance()).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(N,0,0,0,!1),this._nodes.forEach(function(bt){V[bt.index]=ct[bt.index].x,W[bt.index]=ct[bt.index].y})}else this._descent.run(N)},L.prototype.separateOverlappingComponents=function(N,V,W){var tt=this;if(void 0===W&&(W=!0),!this._distanceMatrix&&this._handleDisconnected){var st=this._descent.x[0],ct=this._descent.x[1];this._nodes.forEach(function(Dt,wt){Dt.x=st[wt],Dt.y=ct[wt]});var bt=U.separateGraphs(this._nodes,this._links);U.applyPacking(bt,N,V,this._defaultNodeSize,1,W),this._nodes.forEach(function(Dt,wt){tt._descent.x[0][wt]=Dt.x,tt._descent.x[1][wt]=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(V){return V.bounds.inflate(-N).vertices()}))},L.prototype.routeEdge=function(N,V,W){void 0===V&&(V=5);var tt=[],st=new T.TangentVisibilityGraph(this._visibilityGraph.P,{V:this._visibilityGraph.V,E:this._visibilityGraph.E}),ct={x:N.source.x,y:N.source.y},bt={x:N.target.x,y:N.target.y},Dt=st.addPoint(ct,N.source.index),wt=st.addPoint(bt,N.target.index);st.addEdgeIfVisible(ct,bt,N.source.index,N.target.index),typeof W<"u"&&W(st);var xt=new t.Calculator(st.V.length,st.E,function(Vt){return Vt.source.id},function(Vt){return Vt.target.id},function(Vt){return Vt.length()}).PathFromNodeToNode(Dt.id,wt.id);if(1===xt.length||xt.length===st.V.length){var pt=v.makeEdgeBetween(N.source.innerBounds,N.target.innerBounds,V);tt=[pt.sourceIntersection,pt.arrowStart]}else{for(var Ot=xt.length-2,Bt=st.V[xt[Ot]].p,St=st.V[xt[0]].p,ce=(tt=[N.source.innerBounds.rayIntersection(Bt.x,Bt.y)],Ot);ce>=0;--ce)tt.push(st.V[xt[ce]].p);tt.push(v.makeEdgeTo(St,N.target.innerBounds,V))}return tt},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,V){typeof N.leaves<"u"&&N.leaves.forEach(function(W){W.fixed|=2,L.stopNode(W),W._dragGroupOffsetX=W.x-V.x,W._dragGroupOffsetY=W.y-V.y}),typeof N.groups<"u"&&N.groups.forEach(function(W){return L.storeOffset(W,V)})},L.dragOrigin=function(N){return P(N)?{x:N.bounds.cx(),y:N.bounds.cy()}:N},L.drag=function(N,V){P(N)?(typeof N.leaves<"u"&&N.leaves.forEach(function(W){N.bounds.setXCentre(V.x),N.bounds.setYCentre(V.y),W.px=W._dragGroupOffsetX+V.x,W.py=W._dragGroupOffsetY+V.y}),typeof N.groups<"u"&&N.groups.forEach(function(W){return L.drag(W,V)})):(N.px=V.x,N.py=V.y)},L.dragEnd=function(N){P(N)?(typeof N.leaves<"u"&&N.leaves.forEach(function(V){L.dragEnd(V),delete V._dragGroupOffsetX,delete V._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}();j.Layout=O},86461:(X,j,h)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});var u=h(33858),p=h(91786),x=h(4068),v=h(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,V){var W=V[L.target]-V[L.source];return N+W*W},0))},P}();j.Link3D=t,j.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 V=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 W=0;W"u"&&(tt[Dt]=Math.random())}V.result[0][st]=tt.x,V.result[1][st]=tt.y,V.result[2][st]=tt.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,V=new w;this.useJaccardLinkLengths&&v.jaccardLinkLengths(this.links,V,1.5),this.links.forEach(function(Dt){return Dt.length*=L.idealLinkLength});var W=new u.Calculator(N,this.links,function(Dt){return Dt.source},function(Dt){return Dt.target},function(Dt){return Dt.length}).DistanceMatrix(),tt=p.Descent.createSquareMatrix(N,function(Dt,wt){return W[Dt][wt]}),st=p.Descent.createSquareMatrix(N,function(){return 2});this.links.forEach(function(Dt){var wt=Dt.source,qt=Dt.target;return st[wt][qt]=st[qt][wt]=1}),this.descent=new p.Descent(this.result,tt),this.descent.threshold=.001,this.descent.G=st,this.constraints&&(this.descent.project=new x.Projection(this.nodes,null,null,this.constraints).projectFunctions());for(var ct=0;ct{"use strict";function h(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 x(w,P,O,L){var N=function p(w,P){var O={},L=function(N,V){typeof O[N]>"u"&&(O[N]={}),O[N][V]={}};return w.forEach(function(N){var V=P.getSourceIndex(N),W=P.getTargetIndex(N);L(V,W),L(W,V)}),O}(w,L);w.forEach(function(V){var W=N[L.getSourceIndex(V)],tt=N[L.getTargetIndex(V)];L.setLength(V,1+P*O(W,tt))})}function U(w,P,O){var L=[],N=0,V=[],W=[];function tt(xt){xt.index=xt.lowlink=N++,V.push(xt),xt.onStack=!0;for(var pt=0,Ot=xt.out;pt"u"?(tt(Bt),xt.lowlink=Math.min(xt.lowlink,Bt.lowlink)):Bt.onStack&&(xt.lowlink=Math.min(xt.lowlink,Bt.index))}if(xt.lowlink===xt.index){for(var St=[];V.length&&((Bt=V.pop()).onStack=!1,St.push(Bt),Bt!==xt););W.push(St.map(function(ce){return ce.id}))}}for(var st=0;st"u"&&tt(At)}return W}Object.defineProperty(j,"__esModule",{value:!0}),j.symmetricDiffLinkLengths=function v(w,P,O){void 0===O&&(O=1),x(w,O,function(L,N){return Math.sqrt(h(L,N)-u(L,N))},P)},j.jaccardLinkLengths=function t(w,P,O){void 0===O&&(O=1),x(w,O,function(L,N){return Math.min(Object.keys(L).length,Object.keys(N).length)<1.1?0:u(L,N)/h(L,N)},P)},j.generateDirectedEdgeConstraints=function T(w,P,O,L){var N=U(w,P,L),V={};N.forEach(function(tt,st){return tt.forEach(function(ct){return V[ct]=st})});var W=[];return P.forEach(function(tt){var st=L.getSourceIndex(tt),ct=L.getTargetIndex(tt);V[st]!==V[ct]&&W.push({axis:O,left:st,right:ct,gap:L.getMinSeparation(tt)})}),W},j.stronglyConnectedComponents=U},33900:(X,j)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});var h=function P(O,L,N){this.source=O,this.target=L,this.type=N};j.PowerEdge=h;var u=function(){function P(O,L,N,V){var W=this;if(this.linkAccessor=N,this.modules=new Array(O),this.roots=[],V)this.initModulesFromGroup(V);else{this.roots.push(new t);for(var tt=0;tt=this.R))return this.merge(N.a,N.b,O),!0}},P.prototype.nEdges=function(O,L){var N=O.incoming.intersection(L.incoming),V=O.outgoing.intersection(L.outgoing);return this.R-N.count()-V.count()},P.prototype.getGroupHierarchy=function(O){var L=this,N=[];return p(this.roots[0],{},N),this.allEdges().forEach(function(tt){var st=L.modules[tt.source],ct=L.modules[tt.target];O.push(new h(typeof st.gid>"u"?tt.source:N[st.gid],typeof ct.gid>"u"?tt.target:N[ct.gid],tt.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 p(P,O,L){P.forAll(function(N){if(N.isLeaf())O.leaves||(O.leaves=[]),O.leaves.push(N.id);else{var V=O;if(N.gid=L.length,!N.isIsland()||N.isPredefined()){if(V={id:N.gid},N.isPredefined())for(var W in N.definition)V[W]=N.definition[W];O.groups||(O.groups=[]),O.groups.push(N.gid),L.push(V)}p(N.children,V,L)}})}j.Configuration=u;var x=function(){function P(O,L,N,V,W){void 0===L&&(L=new T),void 0===N&&(N=new T),void 0===V&&(V=new t),this.id=O,this.outgoing=L,this.incoming=N,this.children=V,this.definition=W}return P.prototype.getEdges=function(O){var L=this;this.outgoing.forAll(function(N,V){N.forAll(function(W){O.push(new h(L.id,W.id,V))})})},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}();j.Module=x;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 v(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}();j.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,V){if(V in O.sets){var W=N.intersection(O.sets[V]),tt=W.count();tt>0&&(L.sets[V]=W,L.n+=tt)}}),L},P}();j.LinkSets=T,j.getGroups=function w(P,O,L,N){for(var W=new u(P.length,O,L,N);W.greedyMerge(););var tt=[],st=W.getGroupHierarchy(tt);return tt.forEach(function(ct){var bt=function(Dt){var wt=ct[Dt];"number"==typeof wt&&(ct[Dt]=P[wt])};bt("source"),bt("target")}),{groups:st,powerEdges:tt}}},88866:(X,j)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});var h=function(){function p(x){this.elem=x,this.subheaps=[]}return p.prototype.toString=function(x){for(var v="",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 p(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}();j.TreeBase=u;var p=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}();j.Iterator=p;var x=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}(),v=function(t){function T(U){var w=t.call(this)||this;return w._root=null,w._comparator=U,w.size=0,w}return h(T,t),T.prototype.insert=function(U){var w=!1;if(null===this._root)this._root=new x(U),w=!0,this.size++;else{var P=new x(void 0),O=!1,L=!1,N=null,V=P,W=null,tt=this._root;for(V.right=this._root;;){if(null===tt?(tt=new x(U),W.set_child(O,tt),w=!0,this.size++):T.is_red(tt.left)&&T.is_red(tt.right)&&(tt.red=!0,tt.left.red=!1,tt.right.red=!1),T.is_red(tt)&&T.is_red(W)){var st=V.right===N;tt===W.get_child(L)?V.set_child(st,T.single_rotate(N,!L)):V.set_child(st,T.double_rotate(N,!L))}var ct=this._comparator(tt.data,U);if(0===ct)break;L=O,null!==N&&(V=N),N=W,W=tt,tt=tt.get_child(O=ct<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 x(void 0),P=w;P.right=this._root;for(var O=null,L=null,N=null,V=!0;null!==P.get_child(V);){var W=V;L=O,O=P,P=P.get_child(V);var tt=this._comparator(U,P.data);if(V=tt>0,0===tt&&(N=P),!T.is_red(P)&&!T.is_red(P.get_child(V)))if(T.is_red(P.get_child(!V))){var st=T.single_rotate(P,V);O.set_child(W,st),O=st}else if(!T.is_red(P.get_child(!V))){var ct=O.get_child(!W);if(null!==ct)if(T.is_red(ct.get_child(!W))||T.is_red(ct.get_child(W))){var bt=L.right===O;T.is_red(ct.get_child(W))?L.set_child(bt,T.double_rotate(O,W)):T.is_red(ct.get_child(!W))&&L.set_child(bt,T.single_rotate(O,W));var Dt=L.get_child(bt);Dt.red=!0,P.red=!0,Dt.left.red=!1,Dt.right.red=!1}else O.red=!1,ct.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);j.RBTree=v},4068:function(X,j,h){"use strict";var xt,u=this&&this.__extends||(xt=function(pt,Ot){return(xt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Bt,St){Bt.__proto__=St}||function(Bt,St){for(var ce in St)St.hasOwnProperty(ce)&&(Bt[ce]=St[ce])})(pt,Ot)},function(pt,Ot){function Bt(){this.constructor=pt}xt(pt,Ot),pt.prototype=null===Ot?Object.create(Ot):(Bt.prototype=Ot.prototype,new Bt)});Object.defineProperty(j,"__esModule",{value:!0});var p=h(98237),x=h(94655);function v(xt){return xt.bounds=typeof xt.leaves<"u"?xt.leaves.reduce(function(pt,Ot){return Ot.bounds.union(pt)},t.empty()):t.empty(),typeof xt.groups<"u"&&(xt.bounds=xt.groups.reduce(function(pt,Ot){return v(Ot).union(pt)},xt.bounds)),xt.bounds=xt.bounds.inflate(xt.padding),xt.bounds}j.computeGroupBounds=v;var t=function(){function xt(pt,Ot,Bt,St){this.x=pt,this.X=Ot,this.y=Bt,this.Y=St}return xt.empty=function(){return new xt(Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY)},xt.prototype.cx=function(){return(this.x+this.X)/2},xt.prototype.cy=function(){return(this.y+this.Y)/2},xt.prototype.overlapX=function(pt){var Ot=this.cx(),Bt=pt.cx();return Ot<=Bt&&pt.x0?Bt[0]:null},xt.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}]},xt.lineIntersection=function(pt,Ot,Bt,St,ce,Vt,ve,fe){var Le=Bt-pt,Fe=ve-ce,Ge=St-Ot,Gt=fe-Vt,Te=Gt*Le-Fe*Ge;if(0==Te)return null;var ne=pt-ce,jt=Ot-Vt,Xt=(Fe*jt-Gt*ne)/Te,Me=(Le*jt-Ge*ne)/Te;return Xt>=0&&Xt<=1&&Me>=0&&Me<=1?{x:pt+Xt*Le,y:Ot+Xt*Ge}:null},xt.prototype.inflate=function(pt){return new xt(this.x-pt,this.X+pt,this.y-pt,this.Y+pt)},xt}();j.Rectangle=t,j.makeEdgeBetween=function T(xt,pt,Ot){var Bt=xt.rayIntersection(pt.cx(),pt.cy())||{x:xt.cx(),y:xt.cy()},St=pt.rayIntersection(xt.cx(),xt.cy())||{x:pt.cx(),y:pt.cy()},ce=St.x-Bt.x,Vt=St.y-Bt.y,ve=Math.sqrt(ce*ce+Vt*Vt),fe=ve-Ot;return{sourceIntersection:Bt,targetIntersection:St,arrowStart:{x:Bt.x+fe*ce/ve,y:Bt.y+fe*Vt/ve}}},j.makeEdgeTo=function U(xt,pt,Ot){var Bt=pt.rayIntersection(xt.x,xt.y);Bt||(Bt={x:pt.cx(),y:pt.cy()});var St=Bt.x-xt.x,ce=Bt.y-xt.y,Vt=Math.sqrt(St*St+ce*ce);return{x:Bt.x-Ot*St/Vt,y:Bt.y-Ot*ce/Vt}};var w=function xt(pt,Ot,Bt){this.v=pt,this.r=Ot,this.pos=Bt,this.prev=L(),this.next=L()},P=function xt(pt,Ot,Bt){this.isOpen=pt,this.v=Ot,this.pos=Bt};function O(xt,pt){return xt.pos>pt.pos?1:xt.pos0&&(xt[Bt].insert(ce),ce[St].insert(xt))};Ot("next","prev"),Ot("prev","next")}};function W(xt,pt,Ot,Bt){void 0===Bt&&(Bt=!1);var St=xt.padding,ce=typeof xt.groups<"u"?xt.groups.length:0,Vt=typeof xt.leaves<"u"?xt.leaves.length:0,ve=ce?xt.groups.reduce(function(_n,xe){return _n.concat(W(xe,pt,Ot,!0))},[]):[],fe=(Bt?2:0)+Vt+ce,Le=new Array(fe),Fe=new Array(fe),Ge=0,Gt=function(_n,xe){Fe[Ge]=_n,Le[Ge++]=xe};if(Bt){var Te=xt.bounds,ne=pt.getCentre(Te),jt=pt.getSize(Te)/2,re=pt.getOpen(Te),Xt=pt.getClose(Te),oe=ne-jt+St/2,Me=ne+jt-St/2;xt.minVar.desiredPosition=oe,Gt(pt.makeRect(re,Xt,oe,St),xt.minVar),xt.maxVar.desiredPosition=Me,Gt(pt.makeRect(re,Xt,Me,St),xt.maxVar)}Vt&&xt.leaves.forEach(function(_n){return Gt(_n.bounds,_n.variable)}),ce&&xt.groups.forEach(function(_n){var xe=_n.bounds;Gt(pt.makeRect(pt.getOpen(xe),pt.getClose(xe),pt.getCentre(xe),pt.getSize(xe)),_n.minVar)});var en=tt(Fe,Le,pt,Ot);return ce&&(Le.forEach(function(_n){_n.cOut=[],_n.cIn=[]}),en.forEach(function(_n){_n.left.cOut.push(_n),_n.right.cIn.push(_n)}),xt.groups.forEach(function(_n){var xe=(_n.padding-pt.getSize(_n.bounds))/2;_n.minVar.cIn.forEach(function(vn){return vn.gap+=xe}),_n.minVar.cOut.forEach(function(vn){vn.left=_n.maxVar,vn.gap+=xe})})),ve.concat(en)}function tt(xt,pt,Ot,Bt){var St,ce=xt.length,Vt=2*ce;console.assert(pt.length>=ce);var ve=new Array(Vt);for(St=0;Stve[Bt]&&(ve[Bt]=fe)}Vt=ve})}},xt.prototype.createAlignment=function(pt){var Ot=this,Bt=this.nodes[pt.offsets[0].node].variable;this.makeFeasible(pt);var St="x"===pt.axis?this.xConstraints:this.yConstraints;pt.offsets.slice(1).forEach(function(ce){St.push(new p.Constraint(Bt,Ot.nodes[ce.node].variable,ce.offset,!0))})},xt.prototype.createConstraints=function(pt){var Ot=this,Bt=function(St){return typeof St.type>"u"||"separation"===St.type};this.xConstraints=pt.filter(function(St){return"x"===St.axis&&Bt(St)}).map(function(St){return Ot.createSeparation(St)}),this.yConstraints=pt.filter(function(St){return"y"===St.axis&&Bt(St)}).map(function(St){return Ot.createSeparation(St)}),pt.filter(function(St){return"alignment"===St.type}).forEach(function(St){return Ot.createAlignment(St)})},xt.prototype.setupVariablesAndBounds=function(pt,Ot,Bt,St){this.nodes.forEach(function(ce,Vt){ce.fixed?(ce.variable.weight=ce.fixedWeight?ce.fixedWeight:1e3,Bt[Vt]=St(ce)):ce.variable.weight=1;var ve=(ce.width||0)/2,fe=(ce.height||0)/2,Le=pt[Vt],Fe=Ot[Vt];ce.bounds=new t(Le-ve,Le+ve,Fe-fe,Fe+fe)})},xt.prototype.xProject=function(pt,Ot,Bt){!this.rootGroup&&!this.avoidOverlaps&&!this.xConstraints||this.project(pt,Ot,pt,Bt,function(St){return St.px},this.xConstraints,wt,function(St){return St.bounds.setXCentre(Bt[St.variable.index]=St.variable.position())},function(St){var ce=Bt[St.minVar.index]=St.minVar.position(),Vt=Bt[St.maxVar.index]=St.maxVar.position(),ve=St.padding/2;St.bounds.x=ce-ve,St.bounds.X=Vt+ve})},xt.prototype.yProject=function(pt,Ot,Bt){!this.rootGroup&&!this.yConstraints||this.project(pt,Ot,Ot,Bt,function(St){return St.py},this.yConstraints,qt,function(St){return St.bounds.setYCentre(Bt[St.variable.index]=St.variable.position())},function(St){var ce=Bt[St.minVar.index]=St.minVar.position(),Vt=Bt[St.maxVar.index]=St.maxVar.position(),ve=St.padding/2;St.bounds.y=ce-ve,St.bounds.Y=Vt+ve})},xt.prototype.projectFunctions=function(){var pt=this;return[function(Ot,Bt,St){return pt.xProject(Ot,Bt,St)},function(Ot,Bt,St){return pt.yProject(Ot,Bt,St)}]},xt.prototype.project=function(pt,Ot,Bt,St,ce,Vt,ve,fe,Le){this.setupVariablesAndBounds(pt,Ot,St,ce),this.rootGroup&&this.avoidOverlaps&&(v(this.rootGroup),Vt=Vt.concat(ve(this.rootGroup))),this.solve(this.variables,Vt,Bt,St),this.nodes.forEach(fe),this.rootGroup&&this.avoidOverlaps&&(this.groups.forEach(Le),v(this.rootGroup))},xt.prototype.solve=function(pt,Ot,Bt,St){var ce=new p.Solver(pt,Ot);ce.setStartingPositions(Bt),ce.setDesiredPositions(St),ce.solve()},xt}();j.Projection=At},33858:(X,j,h)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});var u=h(88866),p=function T(U,w){this.id=U,this.distance=w},x=function T(U){this.id=U,this.neighbours=[]},v=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 x(N);for(N=this.es.length;N--;){var V=this.es[N],W=P(V),tt=O(V),st=L(V);this.neighbours[W].neighbours.push(new p(tt,st)),this.neighbours[tt].neighbours.push(new p(W,st))}}return T.prototype.DistanceMatrix=function(){for(var U=new Array(this.n),w=0;wct&&(tt.d=ct,tt.prev=V,P.reduceKey(tt.q,tt,function(Dt,wt){return Dt.q=wt}))}}return L},T}();j.Calculator=t},98237:(X,j)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});var h=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}();j.PositionStats=h;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}();j.Constraint=u;var p=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}();j.Variable=p;var x=function(){function U(w){this.vars=[],w.offset=0,this.ps=new h(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}();j.Solver=t,j.removeOverlapInOneDimension=function T(U,w,P){for(var O=U.map(function(yt){return new p(yt.desiredCenter)}),L=[],N=U.length,V=0;V{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 p(v){var t=x(v);return h(t)}function x(v){if(!h.o(u,v)){var t=new Error("Cannot find module '"+v+"'");throw t.code="MODULE_NOT_FOUND",t}return u[v]}p.keys=function(){return Object.keys(u)},p.resolve=x,X.exports=p,p.id=46700},7100:(X,j,h)=>{"use strict";h.d(j,{AB:()=>Sn,EC:()=>ai,K:()=>on,g2:()=>pn});var u=h(84080),p=h(94650),x=h(42654),v=h(8929),t=h(36787),T=h(29521),U=h(72986),w=h(1059),P=h(7625),O=h(80013),L=h(92198),N=h(99602),V=h(36895),W=h(3238),tt=h(40445),st=h(4859),ct=h(21281),bt=h(98184),Dt=h(24006),wt=h(59549),qt=h(284),Jt=h(97392),yt=h(65412),At=h(83353);const xt=["ngx-mat-calendar-body",""];function pt(Q,Et){if(1&Q&&(p.TgZ(0,"tr",2)(1,"td",3),p._uU(2),p.qZA()()),2&Q){const J=p.oxw();p.xp6(1),p.Udp("padding-top",J._cellPadding)("padding-bottom",J._cellPadding),p.uIk("colspan",J.numCols),p.xp6(1),p.hij(" ",J.label," ")}}function Ot(Q,Et){if(1&Q&&(p.TgZ(0,"td",7),p._uU(1),p.qZA()),2&Q){const J=p.oxw(2);p.Udp("padding-top",J._cellPadding)("padding-bottom",J._cellPadding),p.uIk("colspan",J._firstRowOffset),p.xp6(1),p.hij(" ",J._firstRowOffset>=J.labelMinRequiredCells?J.label:""," ")}}function Bt(Q,Et){if(1&Q){const J=p.EpF();p.TgZ(0,"td",8),p.NdJ("click",function(He){const Ki=p.CHM(J).$implicit,wo=p.oxw(2);return p.KtG(wo._cellClicked(Ki,He))}),p.TgZ(1,"div",9),p._uU(2),p.qZA(),p._UZ(3,"div",10),p.qZA()}if(2&Q){const J=Et.$implicit,Lt=Et.index,He=p.oxw().index,zn=p.oxw();p.Udp("width",zn._cellWidth)("padding-top",zn._cellPadding)("padding-bottom",zn._cellPadding),p.ekj("mat-calendar-body-disabled",!J.enabled)("mat-calendar-body-active",zn._isActiveCell(He,Lt))("mat-calendar-body-range-start",zn._isRangeStart(J.compareValue))("mat-calendar-body-range-end",zn._isRangeEnd(J.compareValue))("mat-calendar-body-in-range",zn._isInRange(J.compareValue))("mat-calendar-body-comparison-bridge-start",zn._isComparisonBridgeStart(J.compareValue,He,Lt))("mat-calendar-body-comparison-bridge-end",zn._isComparisonBridgeEnd(J.compareValue,He,Lt))("mat-calendar-body-comparison-start",zn._isComparisonStart(J.compareValue))("mat-calendar-body-comparison-end",zn._isComparisonEnd(J.compareValue))("mat-calendar-body-in-comparison-range",zn._isInComparisonRange(J.compareValue))("mat-calendar-body-preview-start",zn._isPreviewStart(J.compareValue))("mat-calendar-body-preview-end",zn._isPreviewEnd(J.compareValue))("mat-calendar-body-in-preview",zn._isInPreview(J.compareValue)),p.Q6J("ngClass",J.cssClasses)("tabindex",zn._isActiveCell(He,Lt)?0:-1),p.uIk("data-mat-row",He)("data-mat-col",Lt)("aria-label",J.ariaLabel)("aria-disabled",!J.enabled||null)("aria-selected",zn._isSelected(J)),p.xp6(1),p.ekj("mat-calendar-body-selected",zn._isSelected(J))("mat-calendar-body-today",zn.todayValue===J.compareValue),p.xp6(1),p.hij(" ",J.displayValue," ")}}function St(Q,Et){if(1&Q&&(p.TgZ(0,"tr",4),p.YNc(1,Ot,2,6,"td",5),p.YNc(2,Bt,4,44,"td",6),p.qZA()),2&Q){const J=Et.$implicit,Lt=Et.index,He=p.oxw();p.xp6(1),p.Q6J("ngIf",0===Lt&&He._firstRowOffset),p.xp6(1),p.Q6J("ngForOf",J)}}function ce(Q,Et){if(1&Q&&(p.TgZ(0,"th",5),p._uU(1),p.qZA()),2&Q){const J=Et.$implicit;p.uIk("aria-label",J.long),p.xp6(1),p.Oqu(J.narrow)}}const Vt=["*"];function ve(Q,Et){}function fe(Q,Et){if(1&Q){const J=p.EpF();p.TgZ(0,"ngx-mat-month-view",5),p.NdJ("activeDateChange",function(He){p.CHM(J);const zn=p.oxw();return p.KtG(zn.activeDate=He)})("selectedChange",function(He){p.CHM(J);const zn=p.oxw();return p.KtG(zn._dateSelected(He))})("_userSelection",function(){p.CHM(J);const He=p.oxw();return p.KtG(He._userSelected())}),p.qZA()}if(2&Q){const J=p.oxw();p.Q6J("activeDate",J.activeDate)("selected",J.selected)("dateFilter",J.dateFilter)("maxDate",J.maxDate)("minDate",J.minDate)("dateClass",J.dateClass)}}function Le(Q,Et){if(1&Q){const J=p.EpF();p.TgZ(0,"ngx-mat-year-view",6),p.NdJ("activeDateChange",function(He){p.CHM(J);const zn=p.oxw();return p.KtG(zn.activeDate=He)})("monthSelected",function(He){p.CHM(J);const zn=p.oxw();return p.KtG(zn._monthSelectedInYearView(He))})("selectedChange",function(He){p.CHM(J);const zn=p.oxw();return p.KtG(zn._goToDateInView(He,"month"))}),p.qZA()}if(2&Q){const J=p.oxw();p.Q6J("activeDate",J.activeDate)("selected",J.selected)("dateFilter",J.dateFilter)("maxDate",J.maxDate)("minDate",J.minDate)}}function Fe(Q,Et){if(1&Q){const J=p.EpF();p.TgZ(0,"ngx-mat-multi-year-view",7),p.NdJ("activeDateChange",function(He){p.CHM(J);const zn=p.oxw();return p.KtG(zn.activeDate=He)})("yearSelected",function(He){p.CHM(J);const zn=p.oxw();return p.KtG(zn._yearSelectedInMultiYearView(He))})("selectedChange",function(He){p.CHM(J);const zn=p.oxw();return p.KtG(zn._goToDateInView(He,"year"))}),p.qZA()}if(2&Q){const J=p.oxw();p.Q6J("activeDate",J.activeDate)("selected",J.selected)("dateFilter",J.dateFilter)("maxDate",J.maxDate)("minDate",J.minDate)}}function Ge(Q,Et){if(1&Q){const J=p.EpF();p.TgZ(0,"td")(1,"button",10),p.NdJ("click",function(){p.CHM(J);const He=p.oxw(2);return p.KtG(He.change("second",!0))}),p.TgZ(2,"mat-icon"),p._uU(3,"expand_less"),p.qZA()()()}if(2&Q){const J=p.oxw(2);p.xp6(1),p.Q6J("disabled",J.disabled||J.disableMinute)}}function Gt(Q,Et){1&Q&&p._UZ(0,"td",6)}function Te(Q,Et){1&Q&&p._UZ(0,"td")}function ne(Q,Et){if(1&Q){const J=p.EpF();p.TgZ(0,"tr")(1,"td")(2,"button",10),p.NdJ("click",function(){p.CHM(J);const He=p.oxw();return p.KtG(He.change("hour",!0))}),p.TgZ(3,"mat-icon"),p._uU(4,"expand_less"),p.qZA()()(),p._UZ(5,"td"),p.TgZ(6,"td")(7,"button",10),p.NdJ("click",function(){p.CHM(J);const He=p.oxw();return p.KtG(He.change("minute",!0))}),p.TgZ(8,"mat-icon"),p._uU(9,"expand_less"),p.qZA()()(),p._UZ(10,"td"),p.YNc(11,Ge,4,1,"td",3),p.YNc(12,Gt,1,0,"td",8),p.YNc(13,Te,1,0,"td",3),p.qZA()}if(2&Q){const J=p.oxw();p.xp6(2),p.Q6J("disabled",J.disabled),p.xp6(5),p.Q6J("disabled",J.disabled||J.disableMinute),p.xp6(4),p.Q6J("ngIf",J.showSeconds),p.xp6(1),p.Q6J("ngIf",J.enableMeridian),p.xp6(1),p.Q6J("ngIf",J.enableMeridian)}}function jt(Q,Et){1&Q&&(p.TgZ(0,"td",6),p._uU(1,":"),p.qZA())}function re(Q,Et){if(1&Q){const J=p.EpF();p.TgZ(0,"td")(1,"mat-form-field",4)(2,"input",11),p.NdJ("input",function(He){p.CHM(J);const zn=p.oxw();return p.KtG(zn.formatInput(He.target))})("keydown.ArrowUp",function(He){return p.CHM(J),p.oxw().change("second",!0),p.KtG(He.preventDefault())})("keydown.ArrowDown",function(He){return p.CHM(J),p.oxw().change("second",!1),p.KtG(He.preventDefault())})("blur",function(){p.CHM(J);const He=p.oxw();return p.KtG(He.change("second"))}),p.qZA()()()}}function Xt(Q,Et){1&Q&&p._UZ(0,"td",6)}function oe(Q,Et){if(1&Q){const J=p.EpF();p.TgZ(0,"td",12)(1,"button",13),p.NdJ("click",function(){p.CHM(J);const He=p.oxw();return p.KtG(He.toggleMeridian())}),p._uU(2),p.qZA()()}if(2&Q){const J=p.oxw();p.xp6(1),p.Q6J("color",J.color)("disabled",J.disabled),p.xp6(1),p.hij(" ",J.meridian," ")}}function Me(Q,Et){1&Q&&p._UZ(0,"td")}function en(Q,Et){if(1&Q){const J=p.EpF();p.TgZ(0,"td")(1,"button",14),p.NdJ("click",function(){p.CHM(J);const He=p.oxw(2);return p.KtG(He.change("second",!1))}),p.TgZ(2,"mat-icon"),p._uU(3,"expand_more"),p.qZA()()()}if(2&Q){const J=p.oxw(2);p.xp6(1),p.Q6J("disabled",J.disabled||J.disableMinute)}}function _n(Q,Et){1&Q&&p._UZ(0,"td",6)}function xe(Q,Et){1&Q&&p._UZ(0,"td")}function vn(Q,Et){if(1&Q){const J=p.EpF();p.TgZ(0,"tr")(1,"td")(2,"button",14),p.NdJ("click",function(){p.CHM(J);const He=p.oxw();return p.KtG(He.change("hour",!1))}),p.TgZ(3,"mat-icon"),p._uU(4,"expand_more"),p.qZA()()(),p._UZ(5,"td"),p.TgZ(6,"td")(7,"button",14),p.NdJ("click",function(){p.CHM(J);const He=p.oxw();return p.KtG(He.change("minute",!1))}),p.TgZ(8,"mat-icon"),p._uU(9,"expand_more"),p.qZA()()(),p.YNc(10,Me,1,0,"td",3),p.YNc(11,en,4,1,"td",3),p.YNc(12,_n,1,0,"td",8),p.YNc(13,xe,1,0,"td",3),p.qZA()}if(2&Q){const J=p.oxw();p.xp6(2),p.Q6J("disabled",J.disabled),p.xp6(5),p.Q6J("disabled",J.disabled||J.disableMinute),p.xp6(3),p.Q6J("ngIf",J.showSeconds),p.xp6(1),p.Q6J("ngIf",J.showSeconds),p.xp6(1),p.Q6J("ngIf",J.enableMeridian),p.xp6(1),p.Q6J("ngIf",J.enableMeridian)}}function ke(Q,Et){if(1&Q){const J=p.EpF();p.TgZ(0,"div",6)(1,"ngx-mat-timepicker",7),p.NdJ("ngModelChange",function(He){p.CHM(J);const zn=p.oxw(2);return p.KtG(zn.datepicker._selected=He)}),p.qZA()()}if(2&Q){const J=p.oxw(2);p.ekj("disable-seconds",!J.datepicker._showSeconds),p.xp6(1),p.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 un(Q,Et){1&Q&&(p.TgZ(0,"mat-icon"),p._uU(1,"done"),p.qZA())}function Dn(Q,Et){}function ii(Q,Et){if(1&Q){const J=p.EpF();p.ynx(0),p.YNc(1,ke,2,12,"div",2),p.TgZ(2,"div",3)(3,"button",4),p.NdJ("click",function(){p.CHM(J);const He=p.oxw();return p.KtG(He.datepicker.ok())}),p.YNc(4,un,2,0,"mat-icon",1),p.YNc(5,Dn,0,0,"ng-template",5),p.qZA()(),p.BQk()}if(2&Q){const J=p.oxw();p.xp6(1),p.Q6J("ngIf",!J.datepicker._hideTime),p.xp6(2),p.Q6J("color",J.datepicker._color)("disabled",!J.valid),p.xp6(1),p.Q6J("ngIf",!J.datepicker._customIcon),p.xp6(1),p.Q6J("cdkPortalOutlet",J._templateCustomIconPortal)}}const _i=new p.OlP("ngx-mat-date-formats");class oi{constructor(Et,J,Lt,He,zn={},Ki=Et,wo){this.value=Et,this.displayValue=J,this.ariaLabel=Lt,this.enabled=He,this.cssClasses=zn,this.compareValue=Ki,this.rawValue=wo}}let Qe=(()=>{class Q{constructor(J,Lt){this._elementRef=J,this._ngZone=Lt,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new p.vpe,this.previewChange=new p.vpe,this._enterHandler=He=>{if(this._skipNextFocus&&"focus"===He.type)this._skipNextFocus=!1;else if(He.target&&this.isRange){const zn=this._getCellFromElement(He.target);zn&&this._ngZone.run(()=>this.previewChange.emit({value:zn.enabled?zn:null,event:He}))}},this._leaveHandler=He=>{null!==this.previewEnd&&this.isRange&&He.target&&te(He.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:He}))},Lt.runOutsideAngular(()=>{const He=J.nativeElement;He.addEventListener("mouseenter",this._enterHandler,!0),He.addEventListener("focus",this._enterHandler,!0),He.addEventListener("mouseleave",this._leaveHandler,!0),He.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(J,Lt){J.enabled&&this.selectedValueChange.emit({value:J.value,event:Lt})}_isSelected(J){return this.startValue===J.compareValue||this.endValue===J.compareValue}ngOnChanges(J){const Lt=J.numCols,{rows:He,numCols:zn}=this;(J.rows||Lt)&&(this._firstRowOffset=He&&He.length&&He[0].length?zn-He[0].length:0),(J.cellAspectRatio||Lt||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/zn+"%"),(Lt||!this._cellWidth)&&(this._cellWidth=100/zn+"%")}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,Lt){let He=J*this.numCols+Lt;return J&&(He-=this._firstRowOffset),He==this.activeCell}_focusActiveCell(J=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.asObservable().pipe((0,U.q)(1)).subscribe(()=>{const Lt=this._elementRef.nativeElement.querySelector(".ngx-mat-calendar-body-active");Lt&&(J||(this._skipNextFocus=!0),Lt.focus())})})}_isRangeStart(J){return it(J,this.startValue,this.endValue)}_isRangeEnd(J){return K(J,this.startValue,this.endValue)}_isInRange(J){return Tt(J,this.startValue,this.endValue,this.isRange)}_isComparisonStart(J){return it(J,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(J,Lt,He){if(!this._isComparisonStart(J)||this._isRangeStart(J)||!this._isInRange(J))return!1;let zn=this.rows[Lt][He-1];if(!zn){const Ki=this.rows[Lt-1];zn=Ki&&Ki[Ki.length-1]}return zn&&!this._isRangeEnd(zn.compareValue)}_isComparisonBridgeEnd(J,Lt,He){if(!this._isComparisonEnd(J)||this._isRangeEnd(J)||!this._isInRange(J))return!1;let zn=this.rows[Lt][He+1];if(!zn){const Ki=this.rows[Lt+1];zn=Ki&&Ki[0]}return zn&&!this._isRangeStart(zn.compareValue)}_isComparisonEnd(J){return K(J,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(J){return Tt(J,this.comparisonStart,this.comparisonEnd,this.isRange)}_isPreviewStart(J){return it(J,this.previewStart,this.previewEnd)}_isPreviewEnd(J){return K(J,this.previewStart,this.previewEnd)}_isInPreview(J){return Tt(J,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(J){let Lt;if(te(J)?Lt=J:te(J.parentNode)&&(Lt=J.parentNode),Lt){const He=Lt.getAttribute("data-ngx-mat-row"),zn=Lt.getAttribute("data-ngx-mat-col");if(He&&zn)return this.rows[parseInt(He)][parseInt(zn)]}return null}}return Q.\u0275fac=function(J){return new(J||Q)(p.Y36(p.SBq),p.Y36(p.R0b))},Q.\u0275cmp=p.Xpm({type:Q,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:[p.TTD],attrs:xt,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,Lt){1&J&&(p.YNc(0,pt,3,6,"tr",0),p.YNc(1,St,3,2,"tr",1)),2&J&&(p.Q6J("ngIf",Lt._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}),Q})();function te(Q){return"TD"===Q.nodeName}function it(Q,Et,J){return null!==J&&Et!==J&&Q=Et&&Q===J}function Tt(Q,Et,J,Lt){return Lt&&null!==Et&&null!==J&&Et!==J&&Q>=Et&&Q<=J}class Rt extends W._A{isSameTime(Et,J){return null==Et||null==J||this.getHour(Et)===this.getHour(J)&&this.getMinute(Et)===this.getMinute(J)&&this.getSecond(Et)===this.getSecond(J)}copyTime(Et,J){this.setHour(Et,this.getHour(J)),this.setMinute(Et,this.getMinute(J)),this.setSecond(Et,this.getSecond(J))}compareDateWithTime(Et,J,Lt){let He=super.compareDate(Et,J)||this.getHour(Et)-this.getHour(J)||this.getMinute(Et)-this.getMinute(J);return Lt&&(He=He||this.getSecond(Et)-this.getSecond(J)),He}setTimeByDefaultValues(Et,J){if(!Array.isArray(J))throw Error("@Input DefaultTime should be an array");this.setHour(Et,J[0]||0),this.setMinute(Et,J[1]||0),this.setSecond(Et,J[2]||0)}}const le=new p.OlP("NGX_MAT_DATE_RANGE_SELECTION_STRATEGY");let be=(()=>{class Q{constructor(J){this._dateAdapter=J}selectionFinished(J,Lt){let{start:He,end:zn}=Lt;return null==He?He=J:null==zn&&J&&this._dateAdapter.compareDate(J,He)>=0?zn=J:(He=J,zn=null),new N.C0(He,zn)}createPreview(J,Lt){let He=null,zn=null;return Lt.start&&!Lt.end&&J&&(He=Lt.start,zn=J),new N.C0(He,zn)}}return Q.\u0275fac=function(J){return new(J||Q)(p.LFG(Rt))},Q.\u0275prov=p.Yz7({token:Q,factory:Q.\u0275fac}),Q})();const De={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 Yn(Q){const Et=Q.toString();return Et.length>1?Et:`0${Et}`}function Vn(Q){return Error(`NgxMatDatepicker: No provider found for ${Q}. You must import one of the following modules at your application root: NgxMatNativeDateModule, NgxMatMomentModule, or provide a custom implementation.`)}let Ye=(()=>{class Q{constructor(J,Lt,He,zn,Ki){if(this._changeDetectorRef=J,this._dateFormats=Lt,this._dateAdapter=He,this._dir=zn,this._rangeStrategy=Ki,this._rerenderSubscription=x.w.EMPTY,this.selectedChange=new p.vpe,this._userSelection=new p.vpe,this.activeDateChange=new p.vpe,!this._dateAdapter)throw Vn("NgxMatDateAdapter");if(!this._dateFormats)throw Vn("NGX_MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(J){const Lt=this._activeDate,He=this._getValidDateOrNull(this._dateAdapter.deserialize(J))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(He,this.minDate,this.maxDate),this._hasSameMonthAndYear(Lt,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 Lt=J.value,He=this._dateAdapter.getYear(this.activeDate),zn=this._dateAdapter.getMonth(this.activeDate),Ki=this._dateAdapter.createDate(He,zn,Lt);let wo,dr;this._selected instanceof N.C0?(wo=this._getDateInCurrentMonth(this._selected.start),dr=this._getDateInCurrentMonth(this._selected.end)):wo=dr=this._getDateInCurrentMonth(this._selected),(wo!==Lt||dr!==Lt)&&this.selectedChange.emit(Ki),this._userSelection.emit({value:Ki,event:J.event})}_handleCalendarBodyKeydown(J){const Lt=this._activeDate,He=this._isRtl();switch(J.keyCode){case T.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,He?1:-1);break;case T.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,He?-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(Lt,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:Lt}){if(this._rangeStrategy){const zn=this._rangeStrategy.createPreview(Lt?Lt.rawValue:null,this.selected,J);this._previewStart=this._getCellCompareValue(zn.start),this._previewEnd=this._getCellCompareValue(zn.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const J=this._dateAdapter.getFirstDayOfWeek(),Lt=this._dateAdapter.getDayOfWeekNames("narrow");let zn=this._dateAdapter.getDayOfWeekNames("long").map((Ki,wo)=>({long:Ki,narrow:Lt[wo]}));this._weekdays=zn.slice(J).concat(zn.slice(0,J))}_createWeekCells(){const J=this._dateAdapter.getNumDaysInMonth(this.activeDate),Lt=this._dateAdapter.getDateNames();this._weeks=[[]];for(let He=0,zn=this._firstWeekOffset;He=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,Lt){return!(!J||!Lt||this._dateAdapter.getMonth(J)!=this._dateAdapter.getMonth(Lt)||this._dateAdapter.getYear(J)!=this._dateAdapter.getYear(Lt))}_getCellCompareValue(J){if(J){const Lt=this._dateAdapter.getYear(J),He=this._dateAdapter.getMonth(J),zn=this._dateAdapter.getDate(J);return new Date(Lt,He,zn).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 Q.\u0275fac=function(J){return new(J||Q)(p.Y36(p.sBO),p.Y36(_i,8),p.Y36(Rt,8),p.Y36(tt.Is,8),p.Y36(le,8))},Q.\u0275cmp=p.Xpm({type:Q,selectors:[["ngx-mat-month-view"]],viewQuery:function(J,Lt){if(1&J&&p.Gf(Qe,5),2&J){let He;p.iGM(He=p.CRH())&&(Lt._matCalendarBody=He.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,Lt){1&J&&(p.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),p.YNc(3,ce,2,2,"th",2),p.qZA(),p.TgZ(4,"tr"),p._UZ(5,"th",3),p.qZA()(),p.TgZ(6,"tbody",4),p.NdJ("selectedValueChange",function(zn){return Lt._dateSelected(zn)})("previewChange",function(zn){return Lt._previewChanged(zn)})("keydown",function(zn){return Lt._handleCalendarBodyKeydown(zn)}),p.qZA()()),2&J&&(p.xp6(3),p.Q6J("ngForOf",Lt._weekdays),p.xp6(3),p.Q6J("label",Lt._monthLabel)("rows",Lt._weeks)("todayValue",Lt._todayDate)("startValue",Lt._rangeStart)("endValue",Lt._rangeEnd)("comparisonStart",Lt._comparisonRangeStart)("comparisonEnd",Lt._comparisonRangeEnd)("previewStart",Lt._previewStart)("previewEnd",Lt._previewEnd)("isRange",Lt._isRange)("labelMinRequiredCells",3)("activeCell",Lt._dateAdapter.getDate(Lt.activeDate)-1))},dependencies:[V.sg,Qe],encapsulation:2,changeDetection:0}),Q})(),se=(()=>{class Q{constructor(J,Lt,He){if(this._changeDetectorRef=J,this._dateAdapter=Lt,this._dir=He,this._rerenderSubscription=x.w.EMPTY,this.selectedChange=new p.vpe,this.yearSelected=new p.vpe,this.activeDateChange=new p.vpe,!this._dateAdapter)throw Vn("NgxMatDateAdapter");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(J){let Lt=this._activeDate;const He=this._getValidDateOrNull(this._dateAdapter.deserialize(J))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(He,this.minDate,this.maxDate),ze(this._dateAdapter,Lt,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 Lt=this._dateAdapter.getYear(this._activeDate)-ie(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let He=0,zn=[];He<24;He++)zn.push(Lt+He),4==zn.length&&(this._years.push(zn.map(Ki=>this._createCellForYear(Ki))),zn=[]);this._changeDetectorRef.markForCheck()}_yearSelected(J){const Lt=J.value;this.yearSelected.emit(this._dateAdapter.createDate(Lt,0,1));let He=this._dateAdapter.getMonth(this.activeDate),zn=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(Lt,He,1));this.selectedChange.emit(this._dateAdapter.createDate(Lt,He,Math.min(this._dateAdapter.getDate(this.activeDate),zn)))}_handleCalendarBodyKeydown(J){const Lt=this._activeDate,He=this._isRtl();switch(J.keyCode){case T.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,He?1:-1);break;case T.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,He?-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,-ie(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case T.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-ie(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(Lt,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),J.preventDefault()}_getActiveCell(){return ie(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(J){let Lt=this._dateAdapter.getYearName(this._dateAdapter.createDate(J,0,1));return new oi(J,Lt,Lt,this._shouldEnableYear(J))}_shouldEnableYear(J){if(null==J||this.maxDate&&J>this._dateAdapter.getYear(this.maxDate)||this.minDate&&J{class Q{constructor(J,Lt,He,zn){if(this._changeDetectorRef=J,this._dateFormats=Lt,this._dateAdapter=He,this._dir=zn,this._rerenderSubscription=x.w.EMPTY,this.selectedChange=new p.vpe,this.monthSelected=new p.vpe,this.activeDateChange=new p.vpe,!this._dateAdapter)throw Vn("NgxMatDateAdapter");if(!this._dateFormats)throw Vn("NGX_MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(J){let Lt=this._activeDate;const He=this._getValidDateOrNull(this._dateAdapter.deserialize(J))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(He,this.minDate,this.maxDate),this._dateAdapter.getYear(Lt)!==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 Lt=J.value,He=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Lt,1);this.monthSelected.emit(He);const zn=this._dateAdapter.getNumDaysInMonth(He);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Lt,Math.min(this._dateAdapter.getDate(this.activeDate),zn)))}_handleCalendarBodyKeydown(J){const Lt=this._activeDate,He=this._isRtl();switch(J.keyCode){case T.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,He?1:-1);break;case T.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,He?-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(Lt,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(Lt=>Lt.map(He=>this._createCellForMonth(He,J[He]))),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,Lt){let He=this._dateAdapter.format(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),J,1),this._dateFormats.display.monthYearA11yLabel);return new oi(J,Lt.toLocaleUpperCase(),He,this._shouldEnableMonth(J))}_shouldEnableMonth(J){const Lt=this._dateAdapter.getYear(this.activeDate);if(null==J||this._isYearAndMonthAfterMaxDate(Lt,J)||this._isYearAndMonthBeforeMinDate(Lt,J))return!1;if(!this.dateFilter)return!0;for(let zn=this._dateAdapter.createDate(Lt,J,1);this._dateAdapter.getMonth(zn)==J;zn=this._dateAdapter.addCalendarDays(zn,1))if(this.dateFilter(zn))return!0;return!1}_isYearAndMonthAfterMaxDate(J,Lt){if(this.maxDate){const He=this._dateAdapter.getYear(this.maxDate),zn=this._dateAdapter.getMonth(this.maxDate);return J>He||J===He&&Lt>zn}return!1}_isYearAndMonthBeforeMinDate(J,Lt){if(this.minDate){const He=this._dateAdapter.getYear(this.minDate),zn=this._dateAdapter.getMonth(this.minDate);return J{class Q{constructor(J,Lt,He,zn,Ki){this._intl=J,this.calendar=Lt,this._dateAdapter=He,this._dateFormats=zn,this.calendar.stateChanges.subscribe(()=>Ki.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 Lt=this._dateAdapter.getYear(this.calendar.activeDate)-ie(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),He=Lt+24-1;return function Je(Q,Et){return`${Q} \u2013 ${Et}`}(this._dateAdapter.getYearName(this._dateAdapter.createDate(Lt,0,1)),this._dateAdapter.getYearName(this._dateAdapter.createDate(He,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,Lt){return"month"==this.calendar.currentView?this._dateAdapter.getYear(J)==this._dateAdapter.getYear(Lt)&&this._dateAdapter.getMonth(J)==this._dateAdapter.getMonth(Lt):"year"==this.calendar.currentView?this._dateAdapter.getYear(J)==this._dateAdapter.getYear(Lt):ze(this._dateAdapter,J,Lt,this.calendar.minDate,this.calendar.maxDate)}}return Q.\u0275fac=function(J){return new(J||Q)(p.Y36(N.S8),p.Y36((0,p.Gpc)(()=>Nt)),p.Y36(Rt,8),p.Y36(_i,8),p.Y36(p.sBO))},Q.\u0275cmp=p.Xpm({type:Q,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,Lt){1&J&&(p.F$t(),p.TgZ(0,"div",0)(1,"div",1)(2,"button",2),p.NdJ("click",function(){return Lt.currentPeriodClicked()}),p._uU(3),p._UZ(4,"div",3),p.qZA(),p._UZ(5,"div",4),p.Hsn(6),p.TgZ(7,"button",5),p.NdJ("click",function(){return Lt.previousClicked()}),p.qZA(),p.TgZ(8,"button",6),p.NdJ("click",function(){return Lt.nextClicked()}),p.qZA()()()),2&J&&(p.xp6(2),p.uIk("aria-label",Lt.periodButtonLabel),p.xp6(1),p.hij(" ",Lt.periodButtonText," "),p.xp6(1),p.ekj("mat-calendar-invert","month"!=Lt.calendar.currentView),p.xp6(3),p.Q6J("disabled",!Lt.previousEnabled()),p.uIk("aria-label",Lt.prevButtonLabel),p.xp6(1),p.Q6J("disabled",!Lt.nextEnabled()),p.uIk("aria-label",Lt.nextButtonLabel))},dependencies:[st.lW],encapsulation:2,changeDetection:0}),Q})(),Nt=(()=>{class Q{constructor(J,Lt,He,zn){if(this._dateAdapter=Lt,this._dateFormats=He,this._changeDetectorRef=zn,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new p.vpe,this.yearSelected=new p.vpe,this.monthSelected=new p.vpe,this._userSelection=new p.vpe,this.stateChanges=new v.xQ,!this._dateAdapter)throw Vn("NgxDateAdapter");if(!this._dateFormats)throw Vn("NGX_MAT_DATE_FORMATS");this._intlChanges=J.changes.subscribe(()=>{zn.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||ge),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 Lt=J.minDate||J.maxDate||J.dateFilter;if(Lt&&!Lt.firstChange){const He=this._getCurrentViewComponent();He&&(this._changeDetectorRef.detectChanges(),He._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,Lt){this.activeDate=J,this.currentView=Lt}_getValidDateOrNull(J){return this._dateAdapter.isDateInstance(J)&&this._dateAdapter.isValid(J)?J:null}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return Q.\u0275fac=function(J){return new(J||Q)(p.Y36(N.S8),p.Y36(Rt,8),p.Y36(_i,8),p.Y36(p.sBO))},Q.\u0275cmp=p.Xpm({type:Q,selectors:[["ngx-mat-calendar"]],viewQuery:function(J,Lt){if(1&J&&(p.Gf(Ye,5),p.Gf(sn,5),p.Gf(se,5)),2&J){let He;p.iGM(He=p.CRH())&&(Lt.monthView=He.first),p.iGM(He=p.CRH())&&(Lt.yearView=He.first),p.iGM(He=p.CRH())&&(Lt.multiYearView=He.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:[p.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,Lt){1&J&&(p.YNc(0,ve,0,0,"ng-template",0),p.TgZ(1,"div",1),p.YNc(2,fe,1,6,"ngx-mat-month-view",2),p.YNc(3,Le,1,5,"ngx-mat-year-view",3),p.YNc(4,Fe,1,5,"ngx-mat-multi-year-view",4),p.qZA()),2&J&&(p.Q6J("cdkPortalOutlet",Lt._calendarHeaderPortal),p.xp6(1),p.Q6J("ngSwitch",Lt.currentView),p.xp6(1),p.Q6J("ngSwitchCase","month"),p.xp6(1),p.Q6J("ngSwitchCase","year"),p.xp6(1),p.Q6J("ngSwitchCase","multi-year"))},dependencies:[V.RF,V.n9,u.Pl,Ye,sn,se],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}),Q})(),Se=(()=>{class Q{constructor(J,Lt,He){if(this._dateAdapter=J,this.cd=Lt,this.formBuilder=He,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 v.xQ,this.pattern=Di,!this._dateAdapter)throw Vn("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,Lt){const He=this._getNextValueByProp(J,Lt);this.form.controls[J].setValue(Yn(He),{onlySelf:!1,emitEvent:!1}),this._updateModel()}_updateHourMinuteSecond(){let J=this._dateAdapter.getHour(this._model);const Lt=this._dateAdapter.getMinute(this._model),He=this._dateAdapter.getSecond(this._model);this.enableMeridian&&(J>=De.meridian?(J-=De.meridian,this.meridian="PM"):this.meridian="AM",0===J&&(J=De.meridian)),this.form.controls.hour.setValue(Yn(J)),this.form.controls.minute.setValue(Yn(Lt)),this.form.controls.second.setValue(Yn(He))}_updateModel(){let J=this.hour;this.enableMeridian&&("AM"===this.meridian&&J===De.meridian?J=0:"PM"===this.meridian&&J!==De.meridian&&(J+=De.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,Lt){const He=J[0].toUpperCase()+J.slice(1),zn=De[`min${He}`];let wo,Ki=De[`max${He}`];return"hour"===J&&this.enableMeridian&&(Ki=De.meridian),null==Lt?(wo=this[J]%Ki,"hour"===J&&this.enableMeridian&&0===wo&&(wo=Ki)):(wo=Lt?this[J]+this[`step${He}`]:this[J]-this[`step${He}`],"hour"===J&&this.enableMeridian?(wo%=Ki+1,0===wo&&(wo=Lt?1:Ki)):wo%=Ki,wo=Lt?wo>Ki?wo-Ki+zn:wo:woQ),multi:!0}]),p.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,Lt){1&J&&(p.TgZ(0,"form",0)(1,"table",1)(2,"tbody",2),p.YNc(3,ne,14,5,"tr",3),p.TgZ(4,"tr")(5,"td")(6,"mat-form-field",4)(7,"input",5),p.NdJ("input",function(zn){return Lt.formatInput(zn.target)})("keydown.ArrowUp",function(zn){return Lt.change("hour",!0),zn.preventDefault()})("keydown.ArrowDown",function(zn){return Lt.change("hour",!1),zn.preventDefault()})("blur",function(){return Lt.change("hour")}),p.qZA()()(),p.TgZ(8,"td",6),p._uU(9,":"),p.qZA(),p.TgZ(10,"td")(11,"mat-form-field",4)(12,"input",7),p.NdJ("input",function(zn){return Lt.formatInput(zn.target)})("keydown.ArrowUp",function(zn){return Lt.change("minute",!0),zn.preventDefault()})("keydown.ArrowDown",function(zn){return Lt.change("minute",!1),zn.preventDefault()})("blur",function(){return Lt.change("minute")}),p.qZA()()(),p.YNc(13,jt,2,0,"td",8),p.YNc(14,re,3,0,"td",3),p.YNc(15,Xt,1,0,"td",8),p.YNc(16,oe,3,3,"td",9),p.qZA(),p.YNc(17,vn,14,6,"tr",3),p.qZA()()()),2&J&&(p.Q6J("formGroup",Lt.form),p.xp6(3),p.Q6J("ngIf",Lt.showSpinners),p.xp6(10),p.Q6J("ngIf",Lt.showSeconds),p.xp6(1),p.Q6J("ngIf",Lt.showSeconds),p.xp6(1),p.Q6J("ngIf",Lt.enableMeridian),p.xp6(1),p.Q6J("ngIf",Lt.enableMeridian),p.xp6(1),p.Q6J("ngIf",Lt.showSpinners))},dependencies:[V.O5,wt.KE,qt.Nt,Dt._Y,Dt.Fj,Dt.JJ,Dt.JL,Dt.nD,Dt.sg,Dt.u,Jt.Hw,st.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}),Q})(),zt=0;const Ae=(0,W.pj)(class{constructor(Q){this._elementRef=Q}});let Ie=(()=>{class Q extends Ae{constructor(J,Lt,He){super(J),this.cd=Lt,this._viewContainerRef=He}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 Q.\u0275fac=function(J){return new(J||Q)(p.Y36(p.SBq),p.Y36(p.sBO),p.Y36(p.s_b))},Q.\u0275cmp=p.Xpm({type:Q,selectors:[["ngx-mat-datetime-content"]],viewQuery:function(J,Lt){if(1&J&&(p.Gf(Nt,5),p.Gf(Se,5)),2&J){let He;p.iGM(He=p.CRH())&&(Lt._calendar=He.first),p.iGM(He=p.CRH())&&(Lt._timePicker=He.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(J,Lt){2&J&&(p.d8E("@transformPanel","enter"),p.ekj("mat-datepicker-content-touch",Lt.datepicker.touchUi))},inputs:{color:"color"},exportAs:["ngxMatDatetimeContent"],features:[p.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,Lt){1&J&&(p.TgZ(0,"ngx-mat-calendar",0),p.NdJ("selectedChange",function(zn){return Lt.datepicker.select(zn)})("yearSelected",function(zn){return Lt.datepicker._selectYear(zn)})("monthSelected",function(zn){return Lt.datepicker._selectMonth(zn)}),p.qZA(),p.YNc(1,ii,6,5,"ng-container",1)),2&J&&(p.Q6J("id",Lt.datepicker.id)("ngClass",Lt.datepicker.panelClass)("startAt",Lt.datepicker.startAt)("startView",Lt.datepicker.startView)("minDate",Lt.datepicker._minDate)("maxDate",Lt.datepicker._maxDate)("dateFilter",Lt.datepicker._dateFilter)("headerComponent",Lt.datepicker.calendarHeaderComponent)("selected",Lt.datepicker._selected)("dateClass",Lt.datepicker.dateClass)("@fadeInCalendar","enter"),p.xp6(1),p.Q6J("ngIf",Lt.isViewMonth))},dependencies:[V.mk,V.O5,u.Pl,Dt.JJ,Dt.On,Jt.Hw,st.lW,Se,Nt],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}),Q})(),Sn=(()=>{class Q{constructor(J,Lt,He,zn,Ki,wo,dr,pr){if(this._dialog=J,this._overlay=Lt,this._ngZone=He,this._viewContainerRef=zn,this._dateAdapter=wo,this._dir=dr,this._document=pr,this.startView="month",this._defaultColor="primary",this._touchUi=!1,this._hideTime=!1,this.yearSelected=new p.vpe,this.monthSelected=new p.vpe,this.openedStream=new p.vpe,this.closedStream=new p.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=x.w.EMPTY,this.stateChanges=new v.xQ,this._selectedChanged=new v.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 Vn("NgxMatDateAdapter");this._scrollStrategy=Ki}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,ct.Ig)(J)}get hideTime(){return this._hideTime}set hideTime(J){this._hideTime=(0,ct.Ig)(J)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(J){const Lt=(0,ct.Ig)(J);Lt!==this._disabled&&(this._disabled=Lt,this.stateChanges.next(Lt))}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(),Lt=this._maxValidator();return null==J&&null==Lt}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(Lt=>this._selected=Lt)}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(Ie,{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(Ie,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 bt.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)(Lt=>Lt.keyCode===T.hY||this.datepickerInput&&Lt.altKey&&Lt.keyCode===T.LH))).subscribe(Lt=>{Lt&&Lt.preventDefault(),this._hasBackdrop&&Lt?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 Q.\u0275fac=function(J){return new(J||Q)(p.Y36(yt.uw),p.Y36(bt.aV),p.Y36(p.R0b),p.Y36(p.s_b),p.Y36(N.Uu),p.Y36(Rt,8),p.Y36(tt.Is,8),p.Y36(V.K0,8))},Q.\u0275cmp=p.Xpm({type:Q,selectors:[["ngx-mat-datetime-picker"]],contentQueries:function(J,Lt,He){if(1&J&&p.Suo(He,p.Rgc,5),2&J){let zn;p.iGM(zn=p.CRH())&&(Lt._customIcon=zn.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,Lt){},encapsulation:2,changeDetection:0}),Q})();const Ei={provide:Dt.JU,useExisting:(0,p.Gpc)(()=>pn),multi:!0},Vi={provide:Dt.Cf,useExisting:(0,p.Gpc)(()=>pn),multi:!0};class cn{constructor(Et,J){this.target=Et,this.targetElement=J,this.value=this.target.value}}let bi,pn=(()=>{class Q{constructor(J,Lt,He,zn){if(this._elementRef=J,this._dateAdapter=Lt,this._dateFormats=He,this._formField=zn,this.dateChange=new p.vpe,this.dateInput=new p.vpe,this._valueChange=new p.vpe,this.stateChanges=new p.vpe,this._onTouched=()=>{},this._cvaOnChange=()=>{},this._validatorOnChange=()=>{},this._datepickerSubscription=x.w.EMPTY,this._localeSubscription=x.w.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatetimePickerParse:{text:this._elementRef.nativeElement.value}},this._minValidator=Ki=>{const wo=this._getValidDateOrNull(this._dateAdapter.deserialize(Ki.value));return!this.min||!wo||this._dateAdapter.compareDateWithTime(this.min,wo,this._datepicker.showSeconds)<=0?null:{matDatetimePickerMin:{min:this.min,actual:wo}}},this._maxValidator=Ki=>{const wo=this._getValidDateOrNull(this._dateAdapter.deserialize(Ki.value));return!this.max||!wo||this._dateAdapter.compareDateWithTime(this.max,wo,this._datepicker.showSeconds)>=0?null:{matDatetimePickerMax:{max:this.max,actual:wo}}},this._filterValidator=Ki=>{const wo=this._getValidDateOrNull(this._dateAdapter.deserialize(Ki.value));return this._dateFilter&&wo&&!this._dateFilter(wo)?{matDatetimePickerFilter:!0}:null},this._validator=Dt.kI.compose([this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]),this._lastValueValid=!1,!this._dateAdapter)throw Vn("NgxMatDateAdapter");if(!this._dateFormats)throw Vn("NGX_MAT_DATE_FORMATS");this._localeSubscription=Lt.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(Lt=>{this.value=Lt,this._cvaOnChange(Lt),this._onTouched(),this.dateInput.emit(new cn(this,this._elementRef.nativeElement)),this.dateChange.emit(new cn(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 Lt=this.value;this._value=J,this._formatValue(J),this._dateAdapter.sameDate(Lt,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 Lt=null!=J&&"false"!=`${J}`,He=this._elementRef.nativeElement;this._disabled!==Lt&&(this._disabled=Lt,this.stateChanges.emit(void 0)),Lt&&He.blur&&He.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 Lt=this._lastValueValid;let He=this._dateAdapter.parse(J,this._dateFormats.parse.dateInput);this._lastValueValid=!He||this._dateAdapter.isValid(He),He=this._getValidDateOrNull(He);const zn=this._dateAdapter.isSameTime(He,this._value);null!=He&&(!zn||!this._dateAdapter.sameDate(He,this._value))||null==He&&null!=this._value?(this._value=He,this._cvaOnChange(He),this._valueChange.emit(He),this.dateInput.emit(new cn(this,this._elementRef.nativeElement))):Lt!==this._lastValueValid&&this._validatorOnChange()}_onChange(){this.dateChange.emit(new cn(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 Q.\u0275fac=function(J){return new(J||Q)(p.Y36(p.SBq),p.Y36(Rt,8),p.Y36(_i,8),p.Y36(wt.KE,8))},Q.\u0275dir=p.lG2({type:Q,selectors:[["input","ngxMatDatetimePicker",""]],hostVars:5,hostBindings:function(J,Lt){1&J&&p.NdJ("input",function(zn){return Lt._onInput(zn.target.value)})("change",function(){return Lt._onChange()})("blur",function(){return Lt._onBlur()})("focus",function(){return Lt._onFocus()})("keydown",function(zn){return Lt._onKeydown(zn)}),2&J&&(p.Ikx("disabled",Lt.disabled),p.uIk("aria-haspopup",Lt._datepicker?"dialog":null)("aria-owns",(null==Lt._datepicker?null:Lt._datepicker.opened)&&Lt._datepicker.id||null)("min",Lt.min?Lt._dateAdapter.toIso8601(Lt.min):null)("max",Lt.max?Lt._dateAdapter.toIso8601(Lt.max):null))},inputs:{ngxMatDatetimePicker:"ngxMatDatetimePicker",ngxMatDatetimePickerFilter:"ngxMatDatetimePickerFilter",value:"value",min:"min",max:"max",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},exportAs:["ngxMatDatetimePickerInput"],features:[p._Bn([Ei,Vi,{provide:qt.Jk,useExisting:Q}])]}),Q})(),We=(()=>{class Q{}return Q.\u0275fac=function(J){return new(J||Q)},Q.\u0275mod=p.oAB({type:Q}),Q.\u0275inj=p.cJS({imports:[V.ez,qt.c,Dt.UX,Dt.u5,Jt.Ps,st.ot]}),Q})(),ai=(()=>{class Q{}return Q.\u0275fac=function(J){return new(J||Q)},Q.\u0275mod=p.oAB({type:Q}),Q.\u0275inj=p.cJS({providers:[N.Lv,{provide:le,useClass:be}],imports:[V.ez,N.FA,yt.Is,u.eL,Dt.u5,Jt.Ps,st.ot,qt.c,We]}),Q})();try{bi=typeof Intl<"u"}catch{bi=!1}const so={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"]},To=Aa(31,Q=>String(Q+1)),Lo={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},ha=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Aa(Q,Et){const J=Array(Q);for(let Lt=0;Lt{class Q extends Rt{constructor(J,Lt){super(),this.useUtcForDisplay=!0,super.setLocale(J),this.useUtcForDisplay=!Lt.TRIDENT,this._clampDate=Lt.TRIDENT||Lt.EDGE}getYear(J){return J.getFullYear()}getMonth(J){return J.getMonth()}getDate(J){return J.getDate()}getDayOfWeek(J){return J.getDay()}getMonthNames(J){if(bi){const Lt=new Intl.DateTimeFormat(this.locale,{month:J,timeZone:"utc"});return Aa(12,He=>this._stripDirectionalityCharacters(this._format(Lt,new Date(2017,He,1))))}return so[J]}getDateNames(){if(bi){const J=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Aa(31,Lt=>this._stripDirectionalityCharacters(this._format(J,new Date(2017,0,Lt+1))))}return To}getDayOfWeekNames(J){if(bi){const Lt=new Intl.DateTimeFormat(this.locale,{weekday:J,timeZone:"utc"});return Aa(7,He=>this._stripDirectionalityCharacters(this._format(Lt,new Date(2017,0,He+1))))}return Lo[J]}getYearName(J){if(bi){const Lt=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(Lt,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,Lt,He){if(Lt<0||Lt>11)throw Error(`Invalid month index "${Lt}". Month index has to be between 0 and 11.`);if(He<1)throw Error(`Invalid date "${He}". Date has to be greater than 0.`);let zn=this._createDateWithOverflow(J,Lt,He);if(zn.getMonth()!=Lt)throw Error(`Invalid date "${He}" for month with index "${Lt}".`);return zn}today(){return new Date}parse(J){return"number"==typeof J?new Date(J):J?new Date(Date.parse(J)):null}format(J,Lt){if(!this.isValid(J))throw Error("NativeDateAdapter: Cannot format invalid date.");if(bi){this._clampDate&&(J.getFullYear()<1||J.getFullYear()>9999)&&(J=this.clone(J)).setFullYear(Math.max(1,Math.min(9999,J.getFullYear()))),Lt={...Lt,timeZone:"utc"};const He=new Intl.DateTimeFormat(this.locale,Lt);return this._stripDirectionalityCharacters(this._format(He,J))}return this._stripDirectionalityCharacters(J.toDateString())}addCalendarYears(J,Lt){return this.addCalendarMonths(J,12*Lt)}addCalendarMonths(J,Lt){let He=this._createDateWithOverflow(this.getYear(J),this.getMonth(J)+Lt,this.getDate(J));return this.getMonth(He)!=((this.getMonth(J)+Lt)%12+12)%12&&(He=this._createDateWithOverflow(this.getYear(He),this.getMonth(He),0)),He}addCalendarDays(J,Lt){return this._createDateWithOverflow(this.getYear(J),this.getMonth(J),this.getDate(J)+Lt)}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(ha.test(J)){let Lt=new Date(J);if(this.isValid(Lt))return Lt}}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,Lt){J.setHours(Lt)}setMinute(J,Lt){J.setMinutes(Lt)}setSecond(J,Lt){J.setSeconds(Lt)}_createDateWithOverflow(J,Lt,He){const zn=new Date(J,Lt,He);return J>=0&&J<100&&zn.setFullYear(this.getYear(zn)-1900),zn}_2digit(J){return("00"+J).slice(-2)}_stripDirectionalityCharacters(J){return J.replace(/[\u200e\u200f]/g,"")}_format(J,Lt){const He=new Date;return He.setUTCFullYear(Lt.getFullYear(),Lt.getMonth(),Lt.getDate()),He.setUTCHours(Lt.getHours(),Lt.getMinutes(),Lt.getSeconds(),Lt.getMilliseconds()),J.format(He)}}return Q.\u0275fac=function(J){return new(J||Q)(p.LFG(W.Ad,8),p.LFG(At.t4))},Q.\u0275prov=p.Yz7({token:Q,factory:Q.\u0275fac}),Q})();const Rn={year:"numeric",month:"numeric",day:"numeric",hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"},Re={parse:{dateInput:Rn},display:{dateInput:Rn,monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let we=(()=>{class Q{}return Q.\u0275fac=function(J){return new(J||Q)},Q.\u0275mod=p.oAB({type:Q}),Q.\u0275inj=p.cJS({providers:[{provide:Rt,useClass:Ne}],imports:[At.ud]}),Q})(),on=(()=>{class Q{}return Q.\u0275fac=function(J){return new(J||Q)},Q.\u0275mod=p.oAB({type:Q}),Q.\u0275inj=p.cJS({providers:[{provide:_i,useValue:Re}],imports:[we]}),Q})()},37340:(X,j,h)=>{"use strict";h.d(j,{F4:()=>O,IO:()=>tt,LC:()=>p,SB:()=>P,X$:()=>v,ZE:()=>Dt,ZN:()=>bt,_j:()=>u,eR:()=>L,jt:()=>t,k1:()=>wt,l3:()=>x,oB:()=>w,pV:()=>V,ru:()=>T,vP:()=>U});class u{}class p{}const x="*";function v(qt,Jt){return{type:7,name:qt,definitions:Jt,options:{}}}function t(qt,Jt=null){return{type:4,styles:Jt,timings:qt}}function T(qt,Jt=null){return{type:3,steps:qt,options:Jt}}function U(qt,Jt=null){return{type:2,steps:qt,options:Jt}}function w(qt){return{type:6,styles:qt,offset:null}}function P(qt,Jt,yt){return{type:0,name:qt,styles:Jt,options:yt}}function O(qt){return{type:5,steps:qt}}function L(qt,Jt,yt=null){return{type:1,expr:qt,animation:Jt,options:yt}}function V(qt=null){return{type:9,options:qt}}function tt(qt,Jt,yt=null){return{type:11,selector:qt,animation:Jt,options:yt}}function ct(qt){Promise.resolve().then(qt)}class bt{constructor(Jt=0,yt=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=Jt+yt}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Jt=>Jt()),this._onDoneFns=[])}onStart(Jt){this._originalOnStartFns.push(Jt),this._onStartFns.push(Jt)}onDone(Jt){this._originalOnDoneFns.push(Jt),this._onDoneFns.push(Jt)}onDestroy(Jt){this._onDestroyFns.push(Jt)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){ct(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(Jt=>Jt()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(Jt=>Jt()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(Jt){this._position=this.totalTime?Jt*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(Jt){const yt="start"==Jt?this._onStartFns:this._onDoneFns;yt.forEach(At=>At()),yt.length=0}}class Dt{constructor(Jt){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=Jt;let yt=0,At=0,xt=0;const pt=this.players.length;0==pt?ct(()=>this._onFinish()):this.players.forEach(Ot=>{Ot.onDone(()=>{++yt==pt&&this._onFinish()}),Ot.onDestroy(()=>{++At==pt&&this._onDestroy()}),Ot.onStart(()=>{++xt==pt&&this._onStart()})}),this.totalTime=this.players.reduce((Ot,Bt)=>Math.max(Ot,Bt.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Jt=>Jt()),this._onDoneFns=[])}init(){this.players.forEach(Jt=>Jt.init())}onStart(Jt){this._onStartFns.push(Jt)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(Jt=>Jt()),this._onStartFns=[])}onDone(Jt){this._onDoneFns.push(Jt)}onDestroy(Jt){this._onDestroyFns.push(Jt)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(Jt=>Jt.play())}pause(){this.players.forEach(Jt=>Jt.pause())}restart(){this.players.forEach(Jt=>Jt.restart())}finish(){this._onFinish(),this.players.forEach(Jt=>Jt.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(Jt=>Jt.destroy()),this._onDestroyFns.forEach(Jt=>Jt()),this._onDestroyFns=[])}reset(){this.players.forEach(Jt=>Jt.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(Jt){const yt=Jt*this.totalTime;this.players.forEach(At=>{const xt=At.totalTime?Math.min(1,yt/At.totalTime):1;At.setPosition(xt)})}getPosition(){const Jt=this.players.reduce((yt,At)=>null===yt||At.totalTime>yt.totalTime?At:yt,null);return null!=Jt?Jt.getPosition():0}beforeDestroy(){this.players.forEach(Jt=>{Jt.beforeDestroy&&Jt.beforeDestroy()})}triggerCallback(Jt){const yt="start"==Jt?this._onStartFns:this._onDoneFns;yt.forEach(At=>At()),yt.length=0}}const wt="!"},12687:(X,j,h)=>{"use strict";h.d(j,{$s:()=>Bt,Em:()=>fe,Kd:()=>mi,X6:()=>te,ic:()=>Fe,kH:()=>Vn,mK:()=>un,qV:()=>ke,qm:()=>Ee,rt:()=>Xe,s1:()=>ve,tE:()=>Yn,yG:()=>it});var u=h(36895),p=h(94650),x=h(83353),v=h(8929),t=h(42654),T=h(591),U=h(21086),w=h(29521),P=h(22868),O=h(80013),L=h(92198),N=h(24850),V=h(72986),W=h(31307),tt=h(75778),st=h(7625),ct=h(21281),bt=h(49643),Dt=h(62289);function yt(se,ze){return(se.getAttribute(ze)||"").match(/\S+/g)||[]}const xt="cdk-describedby-message",pt="cdk-describedby-host";let Ot=0,Bt=(()=>{class se{constructor(ie,rn){this._platform=rn,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Ot++,this._document=ie,this._id=(0,p.f3M)(p.AFp)+"-"+Ot++}describe(ie,rn,fn){if(!this._canBeDescribed(ie,rn))return;const sn=St(rn,fn);"string"!=typeof rn?(ce(rn,this._id),this._messageRegistry.set(sn,{messageElement:rn,referenceCount:0})):this._messageRegistry.has(sn)||this._createMessageElement(rn,fn),this._isElementDescribedByMessage(ie,sn)||this._addMessageReference(ie,sn)}removeDescription(ie,rn,fn){if(!rn||!this._isElementNode(ie))return;const sn=St(rn,fn);if(this._isElementDescribedByMessage(ie,sn)&&this._removeMessageReference(ie,sn),"string"==typeof rn){const ge=this._messageRegistry.get(sn);ge&&0===ge.referenceCount&&this._deleteMessageElement(sn)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const ie=this._document.querySelectorAll(`[${pt}="${this._id}"]`);for(let rn=0;rn0!=fn.indexOf(xt));ie.setAttribute("aria-describedby",rn.join(" "))}_addMessageReference(ie,rn){const fn=this._messageRegistry.get(rn);(function qt(se,ze,ie){const rn=yt(se,ze);rn.some(fn=>fn.trim()==ie.trim())||(rn.push(ie.trim()),se.setAttribute(ze,rn.join(" ")))})(ie,"aria-describedby",fn.messageElement.id),ie.setAttribute(pt,this._id),fn.referenceCount++}_removeMessageReference(ie,rn){const fn=this._messageRegistry.get(rn);fn.referenceCount--,function Jt(se,ze,ie){const fn=yt(se,ze).filter(sn=>sn!=ie.trim());fn.length?se.setAttribute(ze,fn.join(" ")):se.removeAttribute(ze)}(ie,"aria-describedby",fn.messageElement.id),ie.removeAttribute(pt)}_isElementDescribedByMessage(ie,rn){const fn=yt(ie,"aria-describedby"),sn=this._messageRegistry.get(rn),ge=sn&&sn.messageElement.id;return!!ge&&-1!=fn.indexOf(ge)}_canBeDescribed(ie,rn){if(!this._isElementNode(ie))return!1;if(rn&&"object"==typeof rn)return!0;const fn=null==rn?"":`${rn}`.trim(),sn=ie.getAttribute("aria-label");return!(!fn||sn&&sn.trim()===fn)}_isElementNode(ie){return ie.nodeType===this._document.ELEMENT_NODE}}return se.\u0275fac=function(ie){return new(ie||se)(p.LFG(u.K0),p.LFG(x.t4))},se.\u0275prov=p.Yz7({token:se,factory:se.\u0275fac,providedIn:"root"}),se})();function St(se,ze){return"string"==typeof se?`${ze||""}/${se}`:se}function ce(se,ze){se.id||(se.id=`${xt}-${ze}-${Ot++}`)}class Vt{constructor(ze){this._items=ze,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new v.xQ,this._typeaheadSubscription=t.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=ie=>ie.disabled,this._pressedLetters=[],this.tabOut=new v.xQ,this.change=new v.xQ,ze instanceof p.n_E&&ze.changes.subscribe(ie=>{if(this._activeItem){const fn=ie.toArray().indexOf(this._activeItem);fn>-1&&fn!==this._activeItemIndex&&(this._activeItemIndex=fn)}})}skipPredicate(ze){return this._skipPredicateFn=ze,this}withWrap(ze=!0){return this._wrap=ze,this}withVerticalOrientation(ze=!0){return this._vertical=ze,this}withHorizontalOrientation(ze){return this._horizontal=ze,this}withAllowedModifierKeys(ze){return this._allowedModifierKeys=ze,this}withTypeAhead(ze=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,P.b)(ie=>this._pressedLetters.push(ie)),(0,O.b)(ze),(0,L.h)(()=>this._pressedLetters.length>0),(0,N.U)(()=>this._pressedLetters.join(""))).subscribe(ie=>{const rn=this._getItemsArray();for(let fn=1;fn!ze[sn]||this._allowedModifierKeys.indexOf(sn)>-1);switch(ie){case w.Mf:return void this.tabOut.next();case w.JH:if(this._vertical&&fn){this.setNextItemActive();break}return;case w.LH:if(this._vertical&&fn){this.setPreviousItemActive();break}return;case w.SV:if(this._horizontal&&fn){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case w.oh:if(this._horizontal&&fn){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case w.Sd:if(this._homeAndEnd&&fn){this.setFirstItemActive();break}return;case w.uR:if(this._homeAndEnd&&fn){this.setLastItemActive();break}return;default:return void((fn||(0,w.Vb)(ze,"shiftKey"))&&(ze.key&&1===ze.key.length?this._letterKeyStream.next(ze.key.toLocaleUpperCase()):(ie>=w.A&&ie<=w.Z||ie>=w.xE&&ie<=w.aO)&&this._letterKeyStream.next(String.fromCharCode(ie))))}this._pressedLetters=[],ze.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(ze){const ie=this._getItemsArray(),rn="number"==typeof ze?ze:ie.indexOf(ze);this._activeItem=ie[rn]??null,this._activeItemIndex=rn}_setActiveItemByDelta(ze){this._wrap?this._setActiveInWrapMode(ze):this._setActiveInDefaultMode(ze)}_setActiveInWrapMode(ze){const ie=this._getItemsArray();for(let rn=1;rn<=ie.length;rn++){const fn=(this._activeItemIndex+ze*rn+ie.length)%ie.length;if(!this._skipPredicateFn(ie[fn]))return void this.setActiveItem(fn)}}_setActiveInDefaultMode(ze){this._setActiveItemByIndex(this._activeItemIndex+ze,ze)}_setActiveItemByIndex(ze,ie){const rn=this._getItemsArray();if(rn[ze]){for(;this._skipPredicateFn(rn[ze]);)if(!rn[ze+=ie])return;this.setActiveItem(ze)}}_getItemsArray(){return this._items instanceof p.n_E?this._items.toArray():this._items}}class ve extends Vt{setActiveItem(ze){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(ze),this.activeItem&&this.activeItem.setActiveStyles()}}class fe extends Vt{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(ze){return this._origin=ze,this}setActiveItem(ze){super.setActiveItem(ze),this.activeItem&&this.activeItem.focus(this._origin)}}let Fe=(()=>{class se{constructor(ie){this._platform=ie}isDisabled(ie){return ie.hasAttribute("disabled")}isVisible(ie){return function Gt(se){return!!(se.offsetWidth||se.offsetHeight||"function"==typeof se.getClientRects&&se.getClientRects().length)}(ie)&&"visible"===getComputedStyle(ie).visibility}isTabbable(ie){if(!this._platform.isBrowser)return!1;const rn=function Ge(se){try{return se.frameElement}catch{return null}}(function xe(se){return se.ownerDocument&&se.ownerDocument.defaultView||window}(ie));if(rn&&(-1===Me(rn)||!this.isVisible(rn)))return!1;let fn=ie.nodeName.toLowerCase(),sn=Me(ie);return ie.hasAttribute("contenteditable")?-1!==sn:!("iframe"===fn||"object"===fn||this._platform.WEBKIT&&this._platform.IOS&&!function en(se){let ze=se.nodeName.toLowerCase(),ie="input"===ze&&se.type;return"text"===ie||"password"===ie||"select"===ze||"textarea"===ze}(ie))&&("audio"===fn?!!ie.hasAttribute("controls")&&-1!==sn:"video"===fn?-1!==sn&&(null!==sn||this._platform.FIREFOX||ie.hasAttribute("controls")):ie.tabIndex>=0)}isFocusable(ie,rn){return function _n(se){return!function ne(se){return function re(se){return"input"==se.nodeName.toLowerCase()}(se)&&"hidden"==se.type}(se)&&(function Te(se){let ze=se.nodeName.toLowerCase();return"input"===ze||"select"===ze||"button"===ze||"textarea"===ze}(se)||function jt(se){return function Xt(se){return"a"==se.nodeName.toLowerCase()}(se)&&se.hasAttribute("href")}(se)||se.hasAttribute("contenteditable")||oe(se))}(ie)&&!this.isDisabled(ie)&&(rn?.ignoreVisibility||this.isVisible(ie))}}return se.\u0275fac=function(ie){return new(ie||se)(p.LFG(x.t4))},se.\u0275prov=p.Yz7({token:se,factory:se.\u0275fac,providedIn:"root"}),se})();function oe(se){if(!se.hasAttribute("tabindex")||void 0===se.tabIndex)return!1;let ze=se.getAttribute("tabindex");return!(!ze||isNaN(parseInt(ze,10)))}function Me(se){if(!oe(se))return null;const ze=parseInt(se.getAttribute("tabindex")||"",10);return isNaN(ze)?-1:ze}class vn{constructor(ze,ie,rn,fn,sn=!1){this._element=ze,this._checker=ie,this._ngZone=rn,this._document=fn,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,sn||this.attachAnchors()}get enabled(){return this._enabled}set enabled(ze){this._enabled=ze,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(ze,this._startAnchor),this._toggleAnchorTabIndex(ze,this._endAnchor))}destroy(){const ze=this._startAnchor,ie=this._endAnchor;ze&&(ze.removeEventListener("focus",this.startAnchorListener),ze.remove()),ie&&(ie.removeEventListener("focus",this.endAnchorListener),ie.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(ze){return new Promise(ie=>{this._executeOnStable(()=>ie(this.focusInitialElement(ze)))})}focusFirstTabbableElementWhenReady(ze){return new Promise(ie=>{this._executeOnStable(()=>ie(this.focusFirstTabbableElement(ze)))})}focusLastTabbableElementWhenReady(ze){return new Promise(ie=>{this._executeOnStable(()=>ie(this.focusLastTabbableElement(ze)))})}_getRegionBoundary(ze){const ie=this._element.querySelectorAll(`[cdk-focus-region-${ze}], [cdkFocusRegion${ze}], [cdk-focus-${ze}]`);return"start"==ze?ie.length?ie[0]:this._getFirstTabbableElement(this._element):ie.length?ie[ie.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(ze){const ie=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(ie){if(!this._checker.isFocusable(ie)){const rn=this._getFirstTabbableElement(ie);return rn?.focus(ze),!!rn}return ie.focus(ze),!0}return this.focusFirstTabbableElement(ze)}focusFirstTabbableElement(ze){const ie=this._getRegionBoundary("start");return ie&&ie.focus(ze),!!ie}focusLastTabbableElement(ze){const ie=this._getRegionBoundary("end");return ie&&ie.focus(ze),!!ie}hasAttached(){return this._hasAttached}_getFirstTabbableElement(ze){if(this._checker.isFocusable(ze)&&this._checker.isTabbable(ze))return ze;const ie=ze.children;for(let rn=0;rn=0;rn--){const fn=ie[rn].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(ie[rn]):null;if(fn)return fn}return null}_createAnchor(){const ze=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,ze),ze.classList.add("cdk-visually-hidden"),ze.classList.add("cdk-focus-trap-anchor"),ze.setAttribute("aria-hidden","true"),ze}_toggleAnchorTabIndex(ze,ie){ze?ie.setAttribute("tabindex","0"):ie.removeAttribute("tabindex")}toggleAnchors(ze){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(ze,this._startAnchor),this._toggleAnchorTabIndex(ze,this._endAnchor))}_executeOnStable(ze){this._ngZone.isStable?ze():this._ngZone.onStable.pipe((0,V.q)(1)).subscribe(ze)}}let ke=(()=>{class se{constructor(ie,rn,fn){this._checker=ie,this._ngZone=rn,this._document=fn}create(ie,rn=!1){return new vn(ie,this._checker,this._ngZone,this._document,rn)}}return se.\u0275fac=function(ie){return new(ie||se)(p.LFG(Fe),p.LFG(p.R0b),p.LFG(u.K0))},se.\u0275prov=p.Yz7({token:se,factory:se.\u0275fac,providedIn:"root"}),se})(),un=(()=>{class se{constructor(ie,rn,fn){this._elementRef=ie,this._focusTrapFactory=rn,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(ie){this.focusTrap.enabled=(0,ct.Ig)(ie)}get autoCapture(){return this._autoCapture}set autoCapture(ie){this._autoCapture=(0,ct.Ig)(ie)}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(ie){const rn=ie.autoCapture;rn&&!rn.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,x.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return se.\u0275fac=function(ie){return new(ie||se)(p.Y36(p.SBq),p.Y36(ke),p.Y36(u.K0))},se.\u0275dir=p.lG2({type:se,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[p.TTD]}),se})();function te(se){return 0===se.buttons||0===se.offsetX&&0===se.offsetY}function it(se){const ze=se.touches&&se.touches[0]||se.changedTouches&&se.changedTouches[0];return!(!ze||-1!==ze.identifier||null!=ze.radiusX&&1!==ze.radiusX||null!=ze.radiusY&&1!==ze.radiusY)}const K=new p.OlP("cdk-input-modality-detector-options"),Tt={ignoreKeys:[w.zL,w.jx,w.b2,w.MW,w.JU]},le=(0,x.i$)({passive:!0,capture:!0});let be=(()=>{class se{constructor(ie,rn,fn,sn){this._platform=ie,this._mostRecentTarget=null,this._modality=new T.X(null),this._lastTouchMs=0,this._onKeydown=ge=>{this._options?.ignoreKeys?.some(Nt=>Nt===ge.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,x.sA)(ge))},this._onMousedown=ge=>{Date.now()-this._lastTouchMs<650||(this._modality.next(te(ge)?"keyboard":"mouse"),this._mostRecentTarget=(0,x.sA)(ge))},this._onTouchstart=ge=>{it(ge)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,x.sA)(ge))},this._options={...Tt,...sn},this.modalityDetected=this._modality.pipe((0,W.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,tt.x)()),ie.isBrowser&&rn.runOutsideAngular(()=>{fn.addEventListener("keydown",this._onKeydown,le),fn.addEventListener("mousedown",this._onMousedown,le),fn.addEventListener("touchstart",this._onTouchstart,le)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,le),document.removeEventListener("mousedown",this._onMousedown,le),document.removeEventListener("touchstart",this._onTouchstart,le))}}return se.\u0275fac=function(ie){return new(ie||se)(p.LFG(x.t4),p.LFG(p.R0b),p.LFG(u.K0),p.LFG(K,8))},se.\u0275prov=p.Yz7({token:se,factory:se.\u0275fac,providedIn:"root"}),se})();const De=new p.OlP("liveAnnouncerElement",{providedIn:"root",factory:function hn(){return null}}),qn=new p.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let mi=(()=>{class se{constructor(ie,rn,fn,sn){this._ngZone=rn,this._defaultOptions=sn,this._document=fn,this._liveElement=ie||this._createLiveElement()}announce(ie,...rn){const fn=this._defaultOptions;let sn,ge;return 1===rn.length&&"number"==typeof rn[0]?ge=rn[0]:[sn,ge]=rn,this.clear(),clearTimeout(this._previousTimeout),sn||(sn=fn&&fn.politeness?fn.politeness:"polite"),null==ge&&fn&&(ge=fn.duration),this._liveElement.setAttribute("aria-live",sn),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(Nt=>this._currentResolve=Nt)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=ie,"number"==typeof ge&&(this._previousTimeout=setTimeout(()=>this.clear(),ge)),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 ie="cdk-live-announcer-element",rn=this._document.getElementsByClassName(ie),fn=this._document.createElement("div");for(let sn=0;sn{class se{constructor(ie,rn,fn,sn,ge){this._ngZone=ie,this._platform=rn,this._inputModalityDetector=fn,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 v.xQ,this._rootNodeFocusAndBlurListener=Nt=>{for(let zt=(0,x.sA)(Nt);zt;zt=zt.parentElement)"focus"===Nt.type?this._onFocus(Nt,zt):this._onBlur(Nt,zt)},this._document=sn,this._detectionMode=ge?.detectionMode||0}monitor(ie,rn=!1){const fn=(0,ct.fI)(ie);if(!this._platform.isBrowser||1!==fn.nodeType)return(0,U.of)(null);const sn=(0,x.kV)(fn)||this._getDocument(),ge=this._elementInfo.get(fn);if(ge)return rn&&(ge.checkChildren=!0),ge.subject;const Nt={checkChildren:rn,subject:new v.xQ,rootNode:sn};return this._elementInfo.set(fn,Nt),this._registerGlobalListeners(Nt),Nt.subject}stopMonitoring(ie){const rn=(0,ct.fI)(ie),fn=this._elementInfo.get(rn);fn&&(fn.subject.complete(),this._setClasses(rn),this._elementInfo.delete(rn),this._removeGlobalListeners(fn))}focusVia(ie,rn,fn){const sn=(0,ct.fI)(ie);sn===this._getDocument().activeElement?this._getClosestElementsInfo(sn).forEach(([Nt,Se])=>this._originChanged(Nt,rn,Se)):(this._setOrigin(rn),"function"==typeof sn.focus&&sn.focus(fn))}ngOnDestroy(){this._elementInfo.forEach((ie,rn)=>this.stopMonitoring(rn))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(ie){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(ie)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:ie&&this._isLastInteractionFromInputLabel(ie)?"mouse":"program"}_shouldBeAttributedToTouch(ie){return 1===this._detectionMode||!!ie?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(ie,rn){ie.classList.toggle("cdk-focused",!!rn),ie.classList.toggle("cdk-touch-focused","touch"===rn),ie.classList.toggle("cdk-keyboard-focused","keyboard"===rn),ie.classList.toggle("cdk-mouse-focused","mouse"===rn),ie.classList.toggle("cdk-program-focused","program"===rn)}_setOrigin(ie,rn=!1){this._ngZone.runOutsideAngular(()=>{this._origin=ie,this._originFromTouchInteraction="touch"===ie&&rn,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(ie,rn){const fn=this._elementInfo.get(rn),sn=(0,x.sA)(ie);!fn||!fn.checkChildren&&rn!==sn||this._originChanged(rn,this._getFocusOrigin(sn),fn)}_onBlur(ie,rn){const fn=this._elementInfo.get(rn);!fn||fn.checkChildren&&ie.relatedTarget instanceof Node&&rn.contains(ie.relatedTarget)||(this._setClasses(rn),this._emitOrigin(fn,null))}_emitOrigin(ie,rn){ie.subject.observers.length&&this._ngZone.run(()=>ie.subject.next(rn))}_registerGlobalListeners(ie){if(!this._platform.isBrowser)return;const rn=ie.rootNode,fn=this._rootNodeFocusListenerCount.get(rn)||0;fn||this._ngZone.runOutsideAngular(()=>{rn.addEventListener("focus",this._rootNodeFocusAndBlurListener,hi),rn.addEventListener("blur",this._rootNodeFocusAndBlurListener,hi)}),this._rootNodeFocusListenerCount.set(rn,fn+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,st.R)(this._stopInputModalityDetector)).subscribe(sn=>{this._setOrigin(sn,!0)}))}_removeGlobalListeners(ie){const rn=ie.rootNode;if(this._rootNodeFocusListenerCount.has(rn)){const fn=this._rootNodeFocusListenerCount.get(rn);fn>1?this._rootNodeFocusListenerCount.set(rn,fn-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(ie,rn,fn){this._setClasses(ie,rn),this._emitOrigin(fn,rn),this._lastFocusOrigin=rn}_getClosestElementsInfo(ie){const rn=[];return this._elementInfo.forEach((fn,sn)=>{(sn===ie||fn.checkChildren&&sn.contains(ie))&&rn.push([sn,fn])}),rn}_isLastInteractionFromInputLabel(ie){const{_mostRecentTarget:rn,mostRecentModality:fn}=this._inputModalityDetector;if("mouse"!==fn||!rn||rn===ie||"INPUT"!==ie.nodeName&&"TEXTAREA"!==ie.nodeName||ie.disabled)return!1;const sn=ie.labels;if(sn)for(let ge=0;ge{class se{constructor(ie,rn){this._elementRef=ie,this._focusMonitor=rn,this._focusOrigin=null,this.cdkFocusChange=new p.vpe}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const ie=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(ie,1===ie.nodeType&&ie.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(rn=>{this._focusOrigin=rn,this.cdkFocusChange.emit(rn)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return se.\u0275fac=function(ie){return new(ie||se)(p.Y36(p.SBq),p.Y36(Yn))},se.\u0275dir=p.lG2({type:se,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),se})();const Je="cdk-high-contrast-black-on-white",gn="cdk-high-contrast-white-on-black",Ye="cdk-high-contrast-active";let Ee=(()=>{class se{constructor(ie,rn){this._platform=ie,this._document=rn,this._breakpointSubscription=(0,p.f3M)(Dt.Yg).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const ie=this._document.createElement("div");ie.style.backgroundColor="rgb(1,2,3)",ie.style.position="absolute",this._document.body.appendChild(ie);const rn=this._document.defaultView||window,fn=rn&&rn.getComputedStyle?rn.getComputedStyle(ie):null,sn=(fn&&fn.backgroundColor||"").replace(/ /g,"");switch(ie.remove(),sn){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 ie=this._document.body.classList;ie.remove(Ye,Je,gn),this._hasCheckedHighContrastMode=!0;const rn=this.getHighContrastMode();1===rn?ie.add(Ye,Je):2===rn&&ie.add(Ye,gn)}}}return se.\u0275fac=function(ie){return new(ie||se)(p.LFG(x.t4),p.LFG(u.K0))},se.\u0275prov=p.Yz7({token:se,factory:se.\u0275fac,providedIn:"root"}),se})(),Xe=(()=>{class se{constructor(ie){ie._applyBodyHighContrastModeCssClasses()}}return se.\u0275fac=function(ie){return new(ie||se)(p.LFG(Ee))},se.\u0275mod=p.oAB({type:se}),se.\u0275inj=p.cJS({imports:[bt.Q8]}),se})()},40445:(X,j,h)=>{"use strict";h.d(j,{Is:()=>U,vT:()=>P});var u=h(94650),p=h(36895);const x=new u.OlP("cdk-dir-doc",{providedIn:"root",factory:function v(){return(0,u.f3M)(p.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 W=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)||W||"ltr")}}ngOnDestroy(){this.change.complete()}}return O.\u0275fac=function(N){return new(N||O)(u.LFG(x,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:(X,j,h)=>{"use strict";h.d(j,{TU:()=>v});var u=h(36895),p=h(94650);class x{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 v=(()=>{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 x(O,this._document)}}return w.\u0275fac=function(O){return new(O||w)(p.LFG(u.K0))},w.\u0275prov=p.Yz7({token:w,factory:w.\u0275fac,providedIn:"root"}),w})()},21281:(X,j,h)=>{"use strict";h.d(j,{Eq:()=>t,HM:()=>T,Ig:()=>p,du:()=>w,fI:()=>U,su:()=>x,t6:()=>v});var u=h(94650);function p(P){return null!=P&&"false"!=`${P}`}function x(P,O=0){return v(P)?Number(P):O}function v(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 V of N){const W=`${V}`.trim();W&&L.push(W)}}return L}},95017:(X,j,h)=>{"use strict";h.d(j,{A8:()=>L,Ov:()=>P,Z9:()=>t,eX:()=>w,k:()=>N,o2:()=>v,yy:()=>U});var u=h(71762),p=h(8929),x=h(94650);class v{}function t(V){return V&&"function"==typeof V.connect&&!(V instanceof u.c)}class U{applyChanges(W,tt,st,ct,bt){W.forEachOperation((Dt,wt,qt)=>{let Jt,yt;if(null==Dt.previousIndex){const At=st(Dt,wt,qt);Jt=tt.createEmbeddedView(At.templateRef,At.context,At.index),yt=1}else null==qt?(tt.remove(wt),yt=3):(Jt=tt.get(wt),tt.move(Jt,qt),yt=2);bt&&bt({context:Jt?.context,operation:yt,record:Dt})})}detach(){}}class w{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(W,tt,st,ct,bt){W.forEachOperation((Dt,wt,qt)=>{let Jt,yt;null==Dt.previousIndex?(Jt=this._insertView(()=>st(Dt,wt,qt),qt,tt,ct(Dt)),yt=Jt?1:0):null==qt?(this._detachAndCacheView(wt,tt),yt=3):(Jt=this._moveView(wt,qt,tt,ct(Dt)),yt=2),bt&&bt({context:Jt?.context,operation:yt,record:Dt})})}detach(){for(const W of this._viewCache)W.destroy();this._viewCache=[]}_insertView(W,tt,st,ct){const bt=this._insertViewFromCache(tt,st);if(bt)return void(bt.context.$implicit=ct);const Dt=W();return st.createEmbeddedView(Dt.templateRef,Dt.context,Dt.index)}_detachAndCacheView(W,tt){const st=tt.detach(W);this._maybeCacheView(st,tt)}_moveView(W,tt,st,ct){const bt=st.get(W);return st.move(bt,tt),bt.context.$implicit=ct,bt}_maybeCacheView(W,tt){if(this._viewCache.lengththis._markSelected(bt)):this._markSelected(tt[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...W){this._verifyValueAssignment(W),W.forEach(st=>this._markSelected(st));const tt=this._hasQueuedChanges();return this._emitChangeEvent(),tt}deselect(...W){this._verifyValueAssignment(W),W.forEach(st=>this._unmarkSelected(st));const tt=this._hasQueuedChanges();return this._emitChangeEvent(),tt}setSelection(...W){this._verifyValueAssignment(W);const tt=this.selected,st=new Set(W);W.forEach(bt=>this._markSelected(bt)),tt.filter(bt=>!st.has(bt)).forEach(bt=>this._unmarkSelected(bt));const ct=this._hasQueuedChanges();return this._emitChangeEvent(),ct}toggle(W){return this.isSelected(W)?this.deselect(W):this.select(W)}clear(W=!0){this._unmarkAll();const tt=this._hasQueuedChanges();return W&&this._emitChangeEvent(),tt}isSelected(W){if(this.compareWith){for(const tt of this._selection)if(this.compareWith(tt,W))return!0;return!1}return this._selection.has(W)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(W){this._multiple&&this.selected&&this._selected.sort(W)}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(W){this.isSelected(W)||(this._multiple||this._unmarkAll(),this.isSelected(W)||this._selection.add(W),this._emitChanges&&this._selectedToEmit.push(W))}_unmarkSelected(W){this.isSelected(W)&&(this._selection.delete(W),this._emitChanges&&this._deselectedToEmit.push(W))}_unmarkAll(){this.isEmpty()||this._selection.forEach(W=>this._unmarkSelected(W))}_verifyValueAssignment(W){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}}let L=(()=>{class V{constructor(){this._listeners=[]}notify(tt,st){for(let ct of this._listeners)ct(tt,st)}listen(tt){return this._listeners.push(tt),()=>{this._listeners=this._listeners.filter(st=>tt!==st)}}ngOnDestroy(){this._listeners=[]}}return V.\u0275fac=function(tt){return new(tt||V)},V.\u0275prov=x.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})();const N=new x.OlP("_ViewRepeater")},53977:(X,j,h)=>{"use strict";h.d(j,{Zt:()=>rn,Wj:()=>Je,_t:()=>fn,bA:()=>un});var u=h(94650),p=h(36895),x=h(67376),v=h(83353),t=h(21281),T=h(12687),U=h(8929),w=h(42654),P=h(56498),O=h(20353),L=h(84241);function V(sn){const{subscriber:ge,counter:Nt,period:Se}=sn;ge.next(Nt),this.schedule({subscriber:ge,counter:Nt+1,period:Se},Se)}var W=h(90352),tt=h(36787),st=h(7625),ct=h(1059),bt=h(24850),Dt=h(72986),wt=h(22868),qt=h(87545),Jt=h(40445);function yt(sn,ge,Nt){for(let Se in ge)if(ge.hasOwnProperty(Se)){const zt=ge[Se];zt?sn.setProperty(Se,zt,Nt?.has(Se)?"important":""):sn.removeProperty(Se)}return sn}function At(sn,ge){const Nt=ge?"":"none";yt(sn.style,{"touch-action":ge?"":"none","-webkit-user-drag":ge?"":"none","-webkit-tap-highlight-color":ge?"":"transparent","user-select":Nt,"-ms-user-select":Nt,"-webkit-user-select":Nt,"-moz-user-select":Nt})}function xt(sn,ge,Nt){yt(sn.style,{position:ge?"":"fixed",top:ge?"":"0",opacity:ge?"":"0",left:ge?"":"-999em"},Nt)}function pt(sn,ge){return ge&&"none"!=ge?sn+" "+ge:sn}function Ot(sn){const ge=sn.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(sn)*ge}function St(sn,ge){return sn.getPropertyValue(ge).split(",").map(Se=>Se.trim())}function ce(sn){const ge=sn.getBoundingClientRect();return{top:ge.top,right:ge.right,bottom:ge.bottom,left:ge.left,width:ge.width,height:ge.height,x:ge.x,y:ge.y}}function Vt(sn,ge,Nt){const{top:Se,bottom:zt,left:Ae,right:Ie}=sn;return Nt>=Se&&Nt<=zt&&ge>=Ae&&ge<=Ie}function ve(sn,ge,Nt){sn.top+=ge,sn.bottom=sn.top+sn.height,sn.left+=Nt,sn.right=sn.left+sn.width}function fe(sn,ge,Nt,Se){const{top:zt,right:Ae,bottom:Ie,left:Sn,width:Ei,height:Vi}=sn,cn=Ei*ge,pn=Vi*ge;return Se>zt-pn&&SeSn-cn&&Nt{this.positions.set(Nt,{scrollPosition:{top:Nt.scrollTop,left:Nt.scrollLeft},clientRect:ce(Nt)})})}handleScroll(ge){const Nt=(0,v.sA)(ge),Se=this.positions.get(Nt);if(!Se)return null;const zt=Se.scrollPosition;let Ae,Ie;if(Nt===this._document){const Vi=this.getViewportScrollPosition();Ae=Vi.top,Ie=Vi.left}else Ae=Nt.scrollTop,Ie=Nt.scrollLeft;const Sn=zt.top-Ae,Ei=zt.left-Ie;return this.positions.forEach((Vi,cn)=>{Vi.clientRect&&Nt!==cn&&Nt.contains(cn)&&ve(Vi.clientRect,Sn,Ei)}),zt.top=Ae,zt.left=Ie,{top:Sn,left:Ei}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function Fe(sn){const ge=sn.cloneNode(!0),Nt=ge.querySelectorAll("[id]"),Se=sn.nodeName.toLowerCase();ge.removeAttribute("id");for(let zt=0;zt{if(this.beforeStarted.next(),this._handles.length){const Ei=this._getTargetHandle(Sn);Ei&&!this._disabledHandles.has(Ei)&&!this.disabled&&this._initializeDragSequence(Ei,Sn)}else this.disabled||this._initializeDragSequence(this._rootElement,Sn)},this._pointerMove=Sn=>{const Ei=this._getPointerPositionOnPage(Sn);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(Sn),bi=this._dropContainer;if(!ai)return void this._endDragSequence(Sn);(!bi||!bi.isDragging()&&!bi.isReceiving())&&(Sn.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(Sn)))}return}Sn.preventDefault();const Vi=this._getConstrainedPointerPosition(Ei);if(this._hasMoved=!0,this._lastKnownPointerPosition=Ei,this._updatePointerDirectionDelta(Vi),this._dropContainer)this._updateActiveDropContainer(Vi,Ei);else{const cn=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,pn=this._activeTransform;pn.x=Vi.x-cn.x+this._passiveTransform.x,pn.y=Vi.y-cn.y+this._passiveTransform.y,this._applyRootElementTransform(pn.x,pn.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:Vi,event:Sn,distance:this._getDragDistance(Vi),delta:this._pointerDirectionDelta})})},this._pointerUp=Sn=>{this._endDragSequence(Sn)},this._nativeDragStart=Sn=>{if(this._handles.length){const Ei=this._getTargetHandle(Sn);Ei&&!this._disabledHandles.has(Ei)&&!this.disabled&&Sn.preventDefault()}else this.disabled||Sn.preventDefault()},this.withRootElement(ge).withParent(Nt.parentDragRef||null),this._parentPositions=new Le(Se),Ie.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(ge){const Nt=(0,t.Ig)(ge);Nt!==this._disabled&&(this._disabled=Nt,this._toggleNativeDragInteractions(),this._handles.forEach(Se=>At(Se,Nt)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(ge){this._handles=ge.map(Se=>(0,t.fI)(Se)),this._handles.forEach(Se=>At(Se,this.disabled)),this._toggleNativeDragInteractions();const Nt=new Set;return this._disabledHandles.forEach(Se=>{this._handles.indexOf(Se)>-1&&Nt.add(Se)}),this._disabledHandles=Nt,this}withPreviewTemplate(ge){return this._previewTemplate=ge,this}withPlaceholderTemplate(ge){return this._placeholderTemplate=ge,this}withRootElement(ge){const Nt=(0,t.fI)(ge);return Nt!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{Nt.addEventListener("mousedown",this._pointerDown,re),Nt.addEventListener("touchstart",this._pointerDown,jt),Nt.addEventListener("dragstart",this._nativeDragStart,re)}),this._initialTransform=void 0,this._rootElement=Nt),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(ge){return this._boundaryElement=ge?(0,t.fI)(ge):null,this._resizeSubscription.unsubscribe(),ge&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(ge){return this._parentDragRef=ge,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(ge){!this._disabledHandles.has(ge)&&this._handles.indexOf(ge)>-1&&(this._disabledHandles.add(ge),At(ge,!0))}enableHandle(ge){this._disabledHandles.has(ge)&&(this._disabledHandles.delete(ge),At(ge,this.disabled))}withDirection(ge){return this._direction=ge,this}_withDropContainer(ge){this._dropContainer=ge}getFreeDragPosition(){const ge=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:ge.x,y:ge.y}}setFreeDragPosition(ge){return this._activeTransform={x:0,y:0},this._passiveTransform.x=ge.x,this._passiveTransform.y=ge.y,this._dropContainer||this._applyRootElementTransform(ge.x,ge.y),this}withPreviewContainer(ge){return this._previewContainer=ge,this}_sortFromLastPointerPosition(){const ge=this._lastKnownPointerPosition;ge&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(ge),ge)}_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(ge){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:ge}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(ge),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const Nt=this._getPointerPositionOnPage(ge);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(Nt),dropPoint:Nt,event:ge})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(ge){xe(ge)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const Nt=this._dropContainer;if(Nt){const Se=this._rootElement,zt=Se.parentNode,Ae=this._placeholder=this._createPlaceholderElement(),Ie=this._anchor=this._anchor||this._document.createComment(""),Sn=this._getShadowRoot();zt.insertBefore(Ie,Se),this._initialTransform=Se.style.transform||"",this._preview=this._createPreviewElement(),xt(Se,!1,oe),this._document.body.appendChild(zt.replaceChild(Ae,Se)),this._getPreviewInsertionPoint(zt,Sn).appendChild(this._preview),this.started.next({source:this,event:ge}),Nt.start(),this._initialContainer=Nt,this._initialIndex=Nt.getItemIndex(this)}else this.started.next({source:this,event:ge}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(Nt?Nt.getScrollableParents():[])}_initializeDragSequence(ge,Nt){this._parentDragRef&&Nt.stopPropagation();const Se=this.isDragging(),zt=xe(Nt),Ae=!zt&&0!==Nt.button,Ie=this._rootElement,Sn=(0,v.sA)(Nt),Ei=!zt&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),Vi=zt?(0,T.yG)(Nt):(0,T.X6)(Nt);if(Sn&&Sn.draggable&&"mousedown"===Nt.type&&Nt.preventDefault(),Se||Ae||Ei||Vi)return;if(this._handles.length){const We=Ie.style;this._rootElementTapHighlight=We.webkitTapHighlightColor||"",We.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(We=>this._updateOnScroll(We)),this._boundaryElement&&(this._boundaryRect=ce(this._boundaryElement));const cn=this._previewTemplate;this._pickupPositionInElement=cn&&cn.template&&!cn.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,ge,Nt);const pn=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(Nt);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:pn.x,y:pn.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,Nt)}_cleanupDragArtifacts(ge){xt(this._rootElement,!0,oe),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 Nt=this._dropContainer,Se=Nt.getItemIndex(this),zt=this._getPointerPositionOnPage(ge),Ae=this._getDragDistance(zt),Ie=Nt._isOverContainer(zt.x,zt.y);this.ended.next({source:this,distance:Ae,dropPoint:zt,event:ge}),this.dropped.next({item:this,currentIndex:Se,previousIndex:this._initialIndex,container:Nt,previousContainer:this._initialContainer,isPointerOverContainer:Ie,distance:Ae,dropPoint:zt,event:ge}),Nt.drop(this,Se,this._initialIndex,this._initialContainer,Ie,Ae,zt,ge),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:ge,y:Nt},{x:Se,y:zt}){let Ae=this._initialContainer._getSiblingContainerFromPosition(this,ge,Nt);!Ae&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(ge,Nt)&&(Ae=this._initialContainer),Ae&&Ae!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=Ae,this._dropContainer.enter(this,ge,Nt,Ae===this._initialContainer&&Ae.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:Ae,currentIndex:Ae.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(Se,zt),this._dropContainer._sortItem(this,ge,Nt,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(ge,Nt):this._applyPreviewTransform(ge-this._pickupPositionInElement.x,Nt-this._pickupPositionInElement.y))}_createPreviewElement(){const ge=this._previewTemplate,Nt=this.previewClass,Se=ge?ge.template:null;let zt;if(Se&&ge){const Ae=ge.matchSize?this._initialClientRect:null,Ie=ge.viewContainer.createEmbeddedView(Se,ge.context);Ie.detectChanges(),zt=vn(Ie,this._document),this._previewRef=Ie,ge.matchSize?ke(zt,Ae):zt.style.transform=en(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else zt=Fe(this._rootElement),ke(zt,this._initialClientRect),this._initialTransform&&(zt.style.transform=this._initialTransform);return yt(zt.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},oe),At(zt,!1),zt.classList.add("cdk-drag-preview"),zt.setAttribute("dir",this._direction),Nt&&(Array.isArray(Nt)?Nt.forEach(Ae=>zt.classList.add(Ae)):zt.classList.add(Nt)),zt}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const ge=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(ge.left,ge.top);const Nt=function Bt(sn){const ge=getComputedStyle(sn),Nt=St(ge,"transition-property"),Se=Nt.find(Sn=>"transform"===Sn||"all"===Sn);if(!Se)return 0;const zt=Nt.indexOf(Se),Ae=St(ge,"transition-duration"),Ie=St(ge,"transition-delay");return Ot(Ae[zt])+Ot(Ie[zt])}(this._preview);return 0===Nt?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(Se=>{const zt=Ie=>{(!Ie||(0,v.sA)(Ie)===this._preview&&"transform"===Ie.propertyName)&&(this._preview?.removeEventListener("transitionend",zt),Se(),clearTimeout(Ae))},Ae=setTimeout(zt,1.5*Nt);this._preview.addEventListener("transitionend",zt)}))}_createPlaceholderElement(){const ge=this._placeholderTemplate,Nt=ge?ge.template:null;let Se;return Nt?(this._placeholderRef=ge.viewContainer.createEmbeddedView(Nt,ge.context),this._placeholderRef.detectChanges(),Se=vn(this._placeholderRef,this._document)):Se=Fe(this._rootElement),Se.style.pointerEvents="none",Se.classList.add("cdk-drag-placeholder"),Se}_getPointerPositionInElement(ge,Nt,Se){const zt=Nt===this._rootElement?null:Nt,Ae=zt?zt.getBoundingClientRect():ge,Ie=xe(Se)?Se.targetTouches[0]:Se,Sn=this._getViewportScrollPosition();return{x:Ae.left-ge.left+(Ie.pageX-Ae.left-Sn.left),y:Ae.top-ge.top+(Ie.pageY-Ae.top-Sn.top)}}_getPointerPositionOnPage(ge){const Nt=this._getViewportScrollPosition(),Se=xe(ge)?ge.touches[0]||ge.changedTouches[0]||{pageX:0,pageY:0}:ge,zt=Se.pageX-Nt.left,Ae=Se.pageY-Nt.top;if(this._ownerSVGElement){const Ie=this._ownerSVGElement.getScreenCTM();if(Ie){const Sn=this._ownerSVGElement.createSVGPoint();return Sn.x=zt,Sn.y=Ae,Sn.matrixTransform(Ie.inverse())}}return{x:zt,y:Ae}}_getConstrainedPointerPosition(ge){const Nt=this._dropContainer?this._dropContainer.lockAxis:null;let{x:Se,y:zt}=this.constrainPosition?this.constrainPosition(ge,this,this._initialClientRect,this._pickupPositionInElement):ge;if("x"===this.lockAxis||"x"===Nt?zt=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===Nt)&&(Se=this._pickupPositionOnPage.x),this._boundaryRect){const{x:Ae,y:Ie}=this._pickupPositionInElement,Sn=this._boundaryRect,{width:Ei,height:Vi}=this._getPreviewRect(),cn=Sn.top+Ie,pn=Sn.bottom-(Vi-Ie);Se=_n(Se,Sn.left+Ae,Sn.right-(Ei-Ae)),zt=_n(zt,cn,pn)}return{x:Se,y:zt}}_updatePointerDirectionDelta(ge){const{x:Nt,y:Se}=ge,zt=this._pointerDirectionDelta,Ae=this._pointerPositionAtLastDirectionChange,Ie=Math.abs(Nt-Ae.x),Sn=Math.abs(Se-Ae.y);return Ie>this._config.pointerDirectionChangeThreshold&&(zt.x=Nt>Ae.x?1:-1,Ae.x=Nt),Sn>this._config.pointerDirectionChangeThreshold&&(zt.y=Se>Ae.y?1:-1,Ae.y=Se),zt}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const ge=this._handles.length>0||!this.isDragging();ge!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=ge,At(this._rootElement,ge))}_removeRootElementListeners(ge){ge.removeEventListener("mousedown",this._pointerDown,re),ge.removeEventListener("touchstart",this._pointerDown,jt),ge.removeEventListener("dragstart",this._nativeDragStart,re)}_applyRootElementTransform(ge,Nt){const Se=en(ge,Nt),zt=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=zt.transform&&"none"!=zt.transform?zt.transform:""),zt.transform=pt(Se,this._initialTransform)}_applyPreviewTransform(ge,Nt){const Se=this._previewTemplate?.template?void 0:this._initialTransform,zt=en(ge,Nt);this._preview.style.transform=pt(zt,Se)}_getDragDistance(ge){const Nt=this._pickupPositionOnPage;return Nt?{x:ge.x-Nt.x,y:ge.y-Nt.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:ge,y:Nt}=this._passiveTransform;if(0===ge&&0===Nt||this.isDragging()||!this._boundaryElement)return;const Se=this._rootElement.getBoundingClientRect(),zt=this._boundaryElement.getBoundingClientRect();if(0===zt.width&&0===zt.height||0===Se.width&&0===Se.height)return;const Ae=zt.left-Se.left,Ie=Se.right-zt.right,Sn=zt.top-Se.top,Ei=Se.bottom-zt.bottom;zt.width>Se.width?(Ae>0&&(ge+=Ae),Ie>0&&(ge-=Ie)):ge=0,zt.height>Se.height?(Sn>0&&(Nt+=Sn),Ei>0&&(Nt-=Ei)):Nt=0,(ge!==this._passiveTransform.x||Nt!==this._passiveTransform.y)&&this.setFreeDragPosition({y:Nt,x:ge})}_getDragStartDelay(ge){const Nt=this.dragStartDelay;return"number"==typeof Nt?Nt:xe(ge)?Nt.touch:Nt?Nt.mouse:0}_updateOnScroll(ge){const Nt=this._parentPositions.handleScroll(ge);if(Nt){const Se=(0,v.sA)(ge);this._boundaryRect&&Se!==this._boundaryElement&&Se.contains(this._boundaryElement)&&ve(this._boundaryRect,Nt.top,Nt.left),this._pickupPositionOnPage.x+=Nt.left,this._pickupPositionOnPage.y+=Nt.top,this._dropContainer||(this._activeTransform.x-=Nt.left,this._activeTransform.y-=Nt.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,v.kV)(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(ge,Nt){const Se=this._previewContainer||"global";if("parent"===Se)return ge;if("global"===Se){const zt=this._document;return Nt||zt.fullscreenElement||zt.webkitFullscreenElement||zt.mozFullScreenElement||zt.msFullscreenElement||zt.body}return(0,t.fI)(Se)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(ge){return this._handles.find(Nt=>ge.target&&(ge.target===Nt||Nt.contains(ge.target)))}}function en(sn,ge){return`translate3d(${Math.round(sn)}px, ${Math.round(ge)}px, 0)`}function _n(sn,ge,Nt){return Math.max(ge,Math.min(Nt,sn))}function xe(sn){return"t"===sn.type[0]}function vn(sn,ge){const Nt=sn.rootNodes;if(1===Nt.length&&Nt[0].nodeType===ge.ELEMENT_NODE)return Nt[0];const Se=ge.createElement("div");return Nt.forEach(zt=>Se.appendChild(zt)),Se}function ke(sn,ge){sn.style.width=`${ge.width}px`,sn.style.height=`${ge.height}px`,sn.style.transform=en(ge.left,ge.top)}function un(sn,ge,Nt){const Se=_i(ge,sn.length-1),zt=_i(Nt,sn.length-1);if(Se===zt)return;const Ae=sn[Se],Ie=zt0)return null;const Sn="horizontal"===this.orientation,Ei=Ae.findIndex(To=>To.drag===ge),Vi=Ae[Ie],pn=Vi.clientRect,We=Ei>Ie?1:-1,ai=this._getItemOffsetPx(Ae[Ei].clientRect,pn,We),bi=this._getSiblingOffsetPx(Ei,Ae,We),so=Ae.slice();return un(Ae,Ei,Ie),Ae.forEach((To,Lo)=>{if(so[Lo]===To)return;const ha=To.drag===ge,Aa=ha?ai:bi,Ne=ha?ge.getPlaceholderElement():To.drag.getRootElement();To.offset+=Aa,Sn?(Ne.style.transform=pt(`translate3d(${Math.round(To.offset)}px, 0, 0)`,To.initialTransform),ve(To.clientRect,0,Aa)):(Ne.style.transform=pt(`translate3d(0, ${Math.round(To.offset)}px, 0)`,To.initialTransform),ve(To.clientRect,Aa,0))}),this._previousSwap.overlaps=Vt(pn,Nt,Se),this._previousSwap.drag=Vi.drag,this._previousSwap.delta=Sn?zt.x:zt.y,{previousIndex:Ei,currentIndex:Ie}}enter(ge,Nt,Se,zt){const Ae=null==zt||zt<0?this._getItemIndexFromPointerPosition(ge,Nt,Se):zt,Ie=this._activeDraggables,Sn=Ie.indexOf(ge),Ei=ge.getPlaceholderElement();let Vi=Ie[Ae];if(Vi===ge&&(Vi=Ie[Ae+1]),!Vi&&(null==Ae||-1===Ae||Ae-1&&Ie.splice(Sn,1),Vi&&!this._dragDropRegistry.isDragging(Vi)){const cn=Vi.getRootElement();cn.parentElement.insertBefore(Ei,cn),Ie.splice(Ae,0,ge)}else(0,t.fI)(this._element).appendChild(Ei),Ie.push(ge);Ei.style.transform="",this._cacheItemPositions()}withItems(ge){this._activeDraggables=ge.slice(),this._cacheItemPositions()}withSortPredicate(ge){this._sortPredicate=ge}reset(){this._activeDraggables.forEach(ge=>{const Nt=ge.getRootElement();if(Nt){const Se=this._itemPositions.find(zt=>zt.drag===ge)?.initialTransform;Nt.style.transform=Se||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(ge){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(Se=>Se.drag===ge)}updateOnScroll(ge,Nt){this._itemPositions.forEach(({clientRect:Se})=>{ve(Se,ge,Nt)}),this._itemPositions.forEach(({drag:Se})=>{this._dragDropRegistry.isDragging(Se)&&Se._sortFromLastPointerPosition()})}_cacheItemPositions(){const ge="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(Nt=>{const Se=Nt.getVisibleElement();return{drag:Nt,offset:0,initialTransform:Se.style.transform||"",clientRect:ce(Se)}}).sort((Nt,Se)=>ge?Nt.clientRect.left-Se.clientRect.left:Nt.clientRect.top-Se.clientRect.top)}_getItemOffsetPx(ge,Nt,Se){const zt="horizontal"===this.orientation;let Ae=zt?Nt.left-ge.left:Nt.top-ge.top;return-1===Se&&(Ae+=zt?Nt.width-ge.width:Nt.height-ge.height),Ae}_getSiblingOffsetPx(ge,Nt,Se){const zt="horizontal"===this.orientation,Ae=Nt[ge].clientRect,Ie=Nt[ge+-1*Se];let Sn=Ae[zt?"width":"height"]*Se;if(Ie){const Ei=zt?"left":"top",Vi=zt?"right":"bottom";-1===Se?Sn-=Ie.clientRect[Ei]-Ae[Vi]:Sn+=Ae[Ei]-Ie.clientRect[Vi]}return Sn}_shouldEnterAsFirstChild(ge,Nt){if(!this._activeDraggables.length)return!1;const Se=this._itemPositions,zt="horizontal"===this.orientation;if(Se[0].drag!==this._activeDraggables[0]){const Ie=Se[Se.length-1].clientRect;return zt?ge>=Ie.right:Nt>=Ie.bottom}{const Ie=Se[0].clientRect;return zt?ge<=Ie.left:Nt<=Ie.top}}_getItemIndexFromPointerPosition(ge,Nt,Se,zt){const Ae="horizontal"===this.orientation,Ie=this._itemPositions.findIndex(({drag:Sn,clientRect:Ei})=>{if(Sn===ge)return!1;if(zt){const Vi=Ae?zt.x:zt.y;if(Sn===this._previousSwap.drag&&this._previousSwap.overlaps&&Vi===this._previousSwap.delta)return!1}return Ae?Nt>=Math.floor(Ei.left)&&Nt=Math.floor(Ei.top)&&Se!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(sn=0,ge=O.P){return(!(0,L.k)(sn)||sn<0)&&(sn=0),(!ge||"function"!=typeof ge.schedule)&&(ge=O.P),new P.y(Nt=>(Nt.add(ge.schedule(V,sn,{subscriber:Nt,counter:0,period:sn})),Nt))}(0,W.Z).pipe((0,st.R)(this._stopScrollTimers)).subscribe(()=>{const Ie=this._scrollNode,Sn=this.autoScrollStep;1===this._verticalScrollDirection?Ie.scrollBy(0,-Sn):2===this._verticalScrollDirection&&Ie.scrollBy(0,Sn),1===this._horizontalScrollDirection?Ie.scrollBy(-Sn,0):2===this._horizontalScrollDirection&&Ie.scrollBy(Sn,0)})},this.element=(0,t.fI)(ge),this._document=Se,this.withScrollableParents([this.element]),Nt.registerDropContainer(this),this._parentPositions=new Le(Se),this._sortStrategy=new oi(this.element,Nt),this._sortStrategy.withSortPredicate((Ie,Sn)=>this.sortPredicate(Ie,Sn,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(ge,Nt,Se,zt){this._draggingStarted(),null==zt&&this.sortingDisabled&&(zt=this._draggables.indexOf(ge)),this._sortStrategy.enter(ge,Nt,Se,zt),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:ge,container:this,currentIndex:this.getItemIndex(ge)})}exit(ge){this._reset(),this.exited.next({item:ge,container:this})}drop(ge,Nt,Se,zt,Ae,Ie,Sn,Ei={}){this._reset(),this.dropped.next({item:ge,currentIndex:Nt,previousIndex:Se,container:this,previousContainer:zt,isPointerOverContainer:Ae,distance:Ie,dropPoint:Sn,event:Ei})}withItems(ge){const Nt=this._draggables;return this._draggables=ge,ge.forEach(Se=>Se._withDropContainer(this)),this.isDragging()&&(Nt.filter(zt=>zt.isDragging()).every(zt=>-1===ge.indexOf(zt))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(ge){return this._sortStrategy.direction=ge,this}connectedTo(ge){return this._siblings=ge.slice(),this}withOrientation(ge){return this._sortStrategy.orientation=ge,this}withScrollableParents(ge){const Nt=(0,t.fI)(this.element);return this._scrollableElements=-1===ge.indexOf(Nt)?[Nt,...ge]:ge.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(ge){return this._isDragging?this._sortStrategy.getItemIndex(ge):this._draggables.indexOf(ge)}isReceiving(){return this._activeSiblings.size>0}_sortItem(ge,Nt,Se,zt){if(this.sortingDisabled||!this._clientRect||!fe(this._clientRect,.05,Nt,Se))return;const Ae=this._sortStrategy.sort(ge,Nt,Se,zt);Ae&&this.sorted.next({previousIndex:Ae.previousIndex,currentIndex:Ae.currentIndex,container:this,item:ge})}_startScrollingIfNecessary(ge,Nt){if(this.autoScrollDisabled)return;let Se,zt=0,Ae=0;if(this._parentPositions.positions.forEach((Ie,Sn)=>{Sn===this._document||!Ie.clientRect||Se||fe(Ie.clientRect,.05,ge,Nt)&&([zt,Ae]=function Rt(sn,ge,Nt,Se){const zt=K(ge,Se),Ae=Tt(ge,Nt);let Ie=0,Sn=0;if(zt){const Ei=sn.scrollTop;1===zt?Ei>0&&(Ie=1):sn.scrollHeight-Ei>sn.clientHeight&&(Ie=2)}if(Ae){const Ei=sn.scrollLeft;1===Ae?Ei>0&&(Sn=1):sn.scrollWidth-Ei>sn.clientWidth&&(Sn=2)}return[Ie,Sn]}(Sn,Ie.clientRect,ge,Nt),(zt||Ae)&&(Se=Sn))}),!zt&&!Ae){const{width:Ie,height:Sn}=this._viewportRuler.getViewportSize(),Ei={width:Ie,height:Sn,top:0,right:Ie,bottom:Sn,left:0};zt=K(Ei,Nt),Ae=Tt(Ei,ge),Se=window}Se&&(zt!==this._verticalScrollDirection||Ae!==this._horizontalScrollDirection||Se!==this._scrollNode)&&(this._verticalScrollDirection=zt,this._horizontalScrollDirection=Ae,this._scrollNode=Se,(zt||Ae)&&Se?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const ge=(0,t.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=ge.msScrollSnapType||ge.scrollSnapType||"",ge.scrollSnapType=ge.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const ge=(0,t.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(ge).clientRect}_reset(){this._isDragging=!1;const ge=(0,t.fI)(this.element).style;ge.scrollSnapType=ge.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(Nt=>Nt._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(ge,Nt){return null!=this._clientRect&&Vt(this._clientRect,ge,Nt)}_getSiblingContainerFromPosition(ge,Nt,Se){return this._siblings.find(zt=>zt._canReceive(ge,Nt,Se))}_canReceive(ge,Nt,Se){if(!this._clientRect||!Vt(this._clientRect,Nt,Se)||!this.enterPredicate(ge,this))return!1;const zt=this._getShadowRoot().elementFromPoint(Nt,Se);if(!zt)return!1;const Ae=(0,t.fI)(this.element);return zt===Ae||Ae.contains(zt)}_startReceiving(ge,Nt){const Se=this._activeSiblings;!Se.has(ge)&&Nt.every(zt=>this.enterPredicate(zt,this)||this._draggables.indexOf(zt)>-1)&&(Se.add(ge),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(ge){this._activeSiblings.delete(ge),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(ge=>{if(this.isDragging()){const Nt=this._parentPositions.handleScroll(ge);Nt&&this._sortStrategy.updateOnScroll(Nt.top,Nt.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const ge=(0,v.kV)((0,t.fI)(this.element));this._cachedShadowRoot=ge||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const ge=this._sortStrategy.getActiveItemsSnapshot().filter(Nt=>Nt.isDragging());this._siblings.forEach(Nt=>Nt._startReceiving(this,ge))}}function K(sn,ge){const{top:Nt,bottom:Se,height:zt}=sn,Ae=.05*zt;return ge>=Nt-Ae&&ge<=Nt+Ae?1:ge>=Se-Ae&&ge<=Se+Ae?2:0}function Tt(sn,ge){const{left:Nt,right:Se,width:zt}=sn,Ae=.05*zt;return ge>=Nt-Ae&&ge<=Nt+Ae?1:ge>=Se-Ae&&ge<=Se+Ae?2:0}const le=(0,v.i$)({passive:!1,capture:!0});let be=(()=>{class sn{constructor(Nt,Se){this._ngZone=Nt,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=Se}registerDropContainer(Nt){this._dropInstances.has(Nt)||this._dropInstances.add(Nt)}registerDragItem(Nt){this._dragInstances.add(Nt),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,le)})}removeDropContainer(Nt){this._dropInstances.delete(Nt)}removeDragItem(Nt){this._dragInstances.delete(Nt),this.stopDragging(Nt),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,le)}startDragging(Nt,Se){if(!(this._activeDragInstances.indexOf(Nt)>-1)&&(this._activeDragInstances.push(Nt),1===this._activeDragInstances.length)){const zt=Se.type.startsWith("touch");this._globalListeners.set(zt?"touchend":"mouseup",{handler:Ae=>this.pointerUp.next(Ae),options:!0}).set("scroll",{handler:Ae=>this.scroll.next(Ae),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:le}),zt||this._globalListeners.set("mousemove",{handler:Ae=>this.pointerMove.next(Ae),options:le}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((Ae,Ie)=>{this._document.addEventListener(Ie,Ae.handler,Ae.options)})})}}stopDragging(Nt){const Se=this._activeDragInstances.indexOf(Nt);Se>-1&&(this._activeDragInstances.splice(Se,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(Nt){return this._activeDragInstances.indexOf(Nt)>-1}scrolled(Nt){const Se=[this.scroll];return Nt&&Nt!==this._document&&Se.push(new P.y(zt=>this._ngZone.runOutsideAngular(()=>{const Ie=Sn=>{this._activeDragInstances.length&&zt.next(Sn)};return Nt.addEventListener("scroll",Ie,!0),()=>{Nt.removeEventListener("scroll",Ie,!0)}}))),(0,tt.T)(...Se)}ngOnDestroy(){this._dragInstances.forEach(Nt=>this.removeDragItem(Nt)),this._dropInstances.forEach(Nt=>this.removeDropContainer(Nt)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((Nt,Se)=>{this._document.removeEventListener(Se,Nt.handler,Nt.options)}),this._globalListeners.clear()}}return sn.\u0275fac=function(Nt){return new(Nt||sn)(u.LFG(u.R0b),u.LFG(p.K0))},sn.\u0275prov=u.Yz7({token:sn,factory:sn.\u0275fac,providedIn:"root"}),sn})();const De={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let hn=(()=>{class sn{constructor(Nt,Se,zt,Ae){this._document=Nt,this._ngZone=Se,this._viewportRuler=zt,this._dragDropRegistry=Ae}createDrag(Nt,Se=De){return new Me(Nt,Se,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(Nt){return new it(Nt,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return sn.\u0275fac=function(Nt){return new(Nt||sn)(u.LFG(p.K0),u.LFG(u.R0b),u.LFG(x.rL),u.LFG(be))},sn.\u0275prov=u.Yz7({token:sn,factory:sn.\u0275fac,providedIn:"root"}),sn})();const qn=new u.OlP("CDK_DRAG_PARENT"),mi=new u.OlP("CdkDropListGroup"),bo=new u.OlP("CDK_DRAG_CONFIG");let Yn=0;const Vn=new u.OlP("CdkDropList");let Je=(()=>{class sn{constructor(Nt,Se,zt,Ae,Ie,Sn,Ei){this.element=Nt,this._changeDetectorRef=zt,this._scrollDispatcher=Ae,this._dir=Ie,this._group=Sn,this._destroyed=new U.xQ,this.connectedTo=[],this.id="cdk-drop-list-"+Yn++,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=Se.createDropList(Nt),this._dropListRef.data=this,Ei&&this._assignDefaults(Ei),this._dropListRef.enterPredicate=(Vi,cn)=>this.enterPredicate(Vi.data,cn.data),this._dropListRef.sortPredicate=(Vi,cn,pn)=>this.sortPredicate(Vi,cn.data,pn.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),sn._dropLists.push(this),Sn&&Sn._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(Nt){this._dropListRef.disabled=this._disabled=(0,t.Ig)(Nt)}addItem(Nt){this._unsortedItems.add(Nt),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(Nt){this._unsortedItems.delete(Nt),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((Nt,Se)=>Nt._dragRef.getVisibleElement().compareDocumentPosition(Se._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const Nt=sn._dropLists.indexOf(this);Nt>-1&&sn._dropLists.splice(Nt,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(Nt){this._dir&&this._dir.change.pipe((0,ct.O)(this._dir.value),(0,st.R)(this._destroyed)).subscribe(Se=>Nt.withDirection(Se)),Nt.beforeStarted.subscribe(()=>{const Se=(0,t.Eq)(this.connectedTo).map(zt=>"string"==typeof zt?sn._dropLists.find(Ie=>Ie.id===zt):zt);if(this._group&&this._group._items.forEach(zt=>{-1===Se.indexOf(zt)&&Se.push(zt)}),!this._scrollableParentsResolved){const zt=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(Ae=>Ae.getElementRef().nativeElement);this._dropListRef.withScrollableParents(zt),this._scrollableParentsResolved=!0}Nt.disabled=this.disabled,Nt.lockAxis=this.lockAxis,Nt.sortingDisabled=(0,t.Ig)(this.sortingDisabled),Nt.autoScrollDisabled=(0,t.Ig)(this.autoScrollDisabled),Nt.autoScrollStep=(0,t.su)(this.autoScrollStep,2),Nt.connectedTo(Se.filter(zt=>zt&&zt!==this).map(zt=>zt._dropListRef)).withOrientation(this.orientation)})}_handleEvents(Nt){Nt.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),Nt.entered.subscribe(Se=>{this.entered.emit({container:this,item:Se.item.data,currentIndex:Se.currentIndex})}),Nt.exited.subscribe(Se=>{this.exited.emit({container:this,item:Se.item.data}),this._changeDetectorRef.markForCheck()}),Nt.sorted.subscribe(Se=>{this.sorted.emit({previousIndex:Se.previousIndex,currentIndex:Se.currentIndex,container:this,item:Se.item.data})}),Nt.dropped.subscribe(Se=>{this.dropped.emit({previousIndex:Se.previousIndex,currentIndex:Se.currentIndex,previousContainer:Se.previousContainer.data,container:Se.container.data,item:Se.item.data,isPointerOverContainer:Se.isPointerOverContainer,distance:Se.distance,dropPoint:Se.dropPoint,event:Se.event}),this._changeDetectorRef.markForCheck()})}_assignDefaults(Nt){const{lockAxis:Se,draggingDisabled:zt,sortingDisabled:Ae,listAutoScrollDisabled:Ie,listOrientation:Sn}=Nt;this.disabled=zt??!1,this.sortingDisabled=Ae??!1,this.autoScrollDisabled=Ie??!1,this.orientation=Sn||"vertical",Se&&(this.lockAxis=Se)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(Nt=>Nt._dragRef))}}return sn._dropLists=[],sn.\u0275fac=function(Nt){return new(Nt||sn)(u.Y36(u.SBq),u.Y36(hn),u.Y36(u.sBO),u.Y36(x.mF),u.Y36(Jt.Is,8),u.Y36(mi,12),u.Y36(bo,8))},sn.\u0275dir=u.lG2({type:sn,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(Nt,Se){2&Nt&&(u.uIk("id",Se.id),u.ekj("cdk-drop-list-disabled",Se.disabled)("cdk-drop-list-dragging",Se._dropListRef.isDragging())("cdk-drop-list-receiving",Se._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:Vn,useExisting:sn}])]}),sn})();const gn=new u.OlP("CdkDragHandle"),Ee=new u.OlP("CdkDragPlaceholder"),se=new u.OlP("CdkDragPreview");let rn=(()=>{class sn{constructor(Nt,Se,zt,Ae,Ie,Sn,Ei,Vi,cn,pn,We){this.element=Nt,this.dropContainer=Se,this._ngZone=Ae,this._viewContainerRef=Ie,this._dir=Ei,this._changeDetectorRef=cn,this._selfHandle=pn,this._parentDrag=We,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 bi=this._dragRef.moved.pipe((0,bt.U)(so=>({source:this,pointerPosition:so.pointerPosition,event:so.event,delta:so.delta,distance:so.distance}))).subscribe(ai);return()=>{bi.unsubscribe()}}),this._dragRef=Vi.createDrag(Nt,{dragStartThreshold:Sn&&null!=Sn.dragStartThreshold?Sn.dragStartThreshold:5,pointerDirectionChangeThreshold:Sn&&null!=Sn.pointerDirectionChangeThreshold?Sn.pointerDirectionChangeThreshold:5,zIndex:Sn?.zIndex}),this._dragRef.data=this,sn._dragInstances.push(this),Sn&&this._assignDefaults(Sn),Se&&(this._dragRef._withDropContainer(Se._dropListRef),Se.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(Nt){this._disabled=(0,t.Ig)(Nt),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(Nt){this._dragRef.setFreeDragPosition(Nt)}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,Dt.q)(1),(0,st.R)(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(Nt){const Se=Nt.rootElementSelector,zt=Nt.freeDragPosition;Se&&!Se.firstChange&&this._updateRootElement(),zt&&!zt.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const Nt=sn._dragInstances.indexOf(this);Nt>-1&&sn._dragInstances.splice(Nt,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){const Nt=this.element.nativeElement;let Se=Nt;this.rootElementSelector&&(Se=void 0!==Nt.closest?Nt.closest(this.rootElementSelector):Nt.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(Se||Nt)}_getBoundaryElement(){const Nt=this.boundaryElement;return Nt?"string"==typeof Nt?this.element.nativeElement.closest(Nt):(0,t.fI)(Nt):null}_syncInputs(Nt){Nt.beforeStarted.subscribe(()=>{if(!Nt.isDragging()){const Se=this._dir,zt=this.dragStartDelay,Ae=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,Ie=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;Nt.disabled=this.disabled,Nt.lockAxis=this.lockAxis,Nt.dragStartDelay="object"==typeof zt&&zt?zt:(0,t.su)(zt),Nt.constrainPosition=this.constrainPosition,Nt.previewClass=this.previewClass,Nt.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(Ae).withPreviewTemplate(Ie).withPreviewContainer(this.previewContainer||"global"),Se&&Nt.withDirection(Se.value)}}),Nt.beforeStarted.pipe((0,Dt.q)(1)).subscribe(()=>{if(this._parentDrag)return void Nt.withParent(this._parentDrag._dragRef);let Se=this.element.nativeElement.parentElement;for(;Se;){if(Se.classList.contains("cdk-drag")){Nt.withParent(sn._dragInstances.find(zt=>zt.element.nativeElement===Se)?._dragRef||null);break}Se=Se.parentElement}})}_handleEvents(Nt){Nt.started.subscribe(Se=>{this.started.emit({source:this,event:Se.event}),this._changeDetectorRef.markForCheck()}),Nt.released.subscribe(Se=>{this.released.emit({source:this,event:Se.event})}),Nt.ended.subscribe(Se=>{this.ended.emit({source:this,distance:Se.distance,dropPoint:Se.dropPoint,event:Se.event}),this._changeDetectorRef.markForCheck()}),Nt.entered.subscribe(Se=>{this.entered.emit({container:Se.container.data,item:this,currentIndex:Se.currentIndex})}),Nt.exited.subscribe(Se=>{this.exited.emit({container:Se.container.data,item:this})}),Nt.dropped.subscribe(Se=>{this.dropped.emit({previousIndex:Se.previousIndex,currentIndex:Se.currentIndex,previousContainer:Se.previousContainer.data,container:Se.container.data,isPointerOverContainer:Se.isPointerOverContainer,item:this,distance:Se.distance,dropPoint:Se.dropPoint,event:Se.event})})}_assignDefaults(Nt){const{lockAxis:Se,dragStartDelay:zt,constrainPosition:Ae,previewClass:Ie,boundaryElement:Sn,draggingDisabled:Ei,rootElementSelector:Vi,previewContainer:cn}=Nt;this.disabled=Ei??!1,this.dragStartDelay=zt||0,Se&&(this.lockAxis=Se),Ae&&(this.constrainPosition=Ae),Ie&&(this.previewClass=Ie),Sn&&(this.boundaryElement=Sn),Vi&&(this.rootElementSelector=Vi),cn&&(this.previewContainer=cn)}_setupHandlesListener(){this._handles.changes.pipe((0,ct.O)(this._handles),(0,wt.b)(Nt=>{const Se=Nt.filter(zt=>zt._parentDrag===this).map(zt=>zt.element);this._selfHandle&&this.rootElementSelector&&Se.push(this.element),this._dragRef.withHandles(Se)}),(0,qt.w)(Nt=>(0,tt.T)(...Nt.map(Se=>Se._stateChanges.pipe((0,ct.O)(Se))))),(0,st.R)(this._destroyed)).subscribe(Nt=>{const Se=this._dragRef,zt=Nt.element.nativeElement;Nt.disabled?Se.disableHandle(zt):Se.enableHandle(zt)})}}return sn._dragInstances=[],sn.\u0275fac=function(Nt){return new(Nt||sn)(u.Y36(u.SBq),u.Y36(Vn,12),u.Y36(p.K0),u.Y36(u.R0b),u.Y36(u.s_b),u.Y36(bo,8),u.Y36(Jt.Is,8),u.Y36(hn),u.Y36(u.sBO),u.Y36(gn,10),u.Y36(qn,12))},sn.\u0275dir=u.lG2({type:sn,selectors:[["","cdkDrag",""]],contentQueries:function(Nt,Se,zt){if(1&Nt&&(u.Suo(zt,se,5),u.Suo(zt,Ee,5),u.Suo(zt,gn,5)),2&Nt){let Ae;u.iGM(Ae=u.CRH())&&(Se._previewTemplate=Ae.first),u.iGM(Ae=u.CRH())&&(Se._placeholderTemplate=Ae.first),u.iGM(Ae=u.CRH())&&(Se._handles=Ae)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(Nt,Se){2&Nt&&u.ekj("cdk-drag-disabled",Se.disabled)("cdk-drag-dragging",Se._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:sn}]),u.TTD]}),sn})(),fn=(()=>{class sn{}return sn.\u0275fac=function(Nt){return new(Nt||sn)},sn.\u0275mod=u.oAB({type:sn}),sn.\u0275inj=u.cJS({providers:[hn],imports:[x.ZD]}),sn})()},29521:(X,j,h)=>{"use strict";h.d(j,{A:()=>ne,JH:()=>wt,JU:()=>T,K5:()=>t,Ku:()=>V,LH:()=>bt,L_:()=>N,MW:()=>qn,Mf:()=>x,SV:()=>Dt,Sd:()=>st,VM:()=>W,Vb:()=>cc,Z:()=>hn,ZH:()=>p,aO:()=>Le,b2:()=>Er,hY:()=>L,jx:()=>U,oh:()=>ct,uR:()=>tt,xE:()=>xt,yY:()=>At,zL:()=>w});const p=8,x=9,t=13,T=16,U=17,w=18,L=27,N=32,V=33,W=34,tt=35,st=36,ct=37,bt=38,Dt=39,wt=40,At=46,xt=48,Le=57,ne=65,hn=90,qn=91,Er=224;function cc(nr,...ds){return ds.length?ds.some(Tr=>nr[Tr]):nr.altKey||nr.shiftKey||nr.ctrlKey||nr.metaKey}},62289:(X,j,h)=>{"use strict";h.d(j,{Yg:()=>wt,u3:()=>Jt,xu:()=>W});var u=h(94650),p=h(21281),x=h(8929),v=h(23426),t=h(61221),T=h(56498),U=h(72986),w=h(31307),P=h(80013),O=h(24850),L=h(1059),N=h(7625),V=h(83353);let W=(()=>{class yt{}return yt.\u0275fac=function(xt){return new(xt||yt)},yt.\u0275mod=u.oAB({type:yt}),yt.\u0275inj=u.cJS({}),yt})();const tt=new Set;let st,ct=(()=>{class yt{constructor(xt){this._platform=xt,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Dt}matchMedia(xt){return(this._platform.WEBKIT||this._platform.BLINK)&&function bt(yt){if(!tt.has(yt))try{st||(st=document.createElement("style"),st.setAttribute("type","text/css"),document.head.appendChild(st)),st.sheet&&(st.sheet.insertRule(`@media ${yt} {body{ }}`,0),tt.add(yt))}catch(At){console.error(At)}}(xt),this._matchMedia(xt)}}return yt.\u0275fac=function(xt){return new(xt||yt)(u.LFG(V.t4))},yt.\u0275prov=u.Yz7({token:yt,factory:yt.\u0275fac,providedIn:"root"}),yt})();function Dt(yt){return{matches:"all"===yt||""===yt,media:yt,addListener:()=>{},removeListener:()=>{}}}let wt=(()=>{class yt{constructor(xt,pt){this._mediaMatcher=xt,this._zone=pt,this._queries=new Map,this._destroySubject=new x.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(xt){return qt((0,p.Eq)(xt)).some(Ot=>this._registerQuery(Ot).mql.matches)}observe(xt){const Ot=qt((0,p.Eq)(xt)).map(St=>this._registerQuery(St).observable);let Bt=(0,v.aj)(Ot);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)(St=>{const ce={matches:!1,breakpoints:{}};return St.forEach(({matches:Vt,query:ve})=>{ce.matches=ce.matches||Vt,ce.breakpoints[ve]=Vt}),ce}))}_registerQuery(xt){if(this._queries.has(xt))return this._queries.get(xt);const pt=this._mediaMatcher.matchMedia(xt),Bt={observable:new T.y(St=>{const ce=Vt=>this._zone.run(()=>St.next(Vt));return pt.addListener(ce),()=>{pt.removeListener(ce)}}).pipe((0,L.O)(pt),(0,O.U)(({matches:St})=>({query:xt,matches:St})),(0,N.R)(this._destroySubject)),mql:pt};return this._queries.set(xt,Bt),Bt}}return yt.\u0275fac=function(xt){return new(xt||yt)(u.LFG(ct),u.LFG(u.R0b))},yt.\u0275prov=u.Yz7({token:yt,factory:yt.\u0275fac,providedIn:"root"}),yt})();function qt(yt){return yt.map(At=>At.split(",")).reduce((At,xt)=>At.concat(xt)).map(At=>At.trim())}const Jt={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:(X,j,h)=>{"use strict";h.d(j,{Q8:()=>P,wD:()=>w});var u=h(21281),p=h(94650),x=h(56498),v=h(8929),t=h(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=p.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,V)=>this._cleanupObserver(V))}observe(N){const V=(0,u.fI)(N);return new x.y(W=>{const st=this._observeElement(V).subscribe(W);return()=>{st.unsubscribe(),this._unobserveElement(V)}})}_observeElement(N){if(this._observedElements.has(N))this._observedElements.get(N).count++;else{const V=new v.xQ,W=this._mutationObserverFactory.create(tt=>V.next(tt));W&&W.observe(N,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(N,{observer:W,stream:V,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:V,stream:W}=this._observedElements.get(N);V&&V.disconnect(),W.complete(),this._observedElements.delete(N)}}}return O.\u0275fac=function(N){return new(N||O)(p.LFG(T))},O.\u0275prov=p.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"}),O})(),w=(()=>{class O{constructor(N,V,W){this._contentObserver=N,this._elementRef=V,this._ngZone=W,this.event=new p.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)(p.Y36(U),p.Y36(p.SBq),p.Y36(p.R0b))},O.\u0275dir=p.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=p.oAB({type:O}),O.\u0275inj=p.cJS({providers:[T]}),O})()},98184:(X,j,h)=>{"use strict";h.d(j,{Iu:()=>Le,U8:()=>oi,X_:()=>At,Xj:()=>fe,_G:()=>Gt,aV:()=>xe,pI:()=>Dn,xu:()=>un});var u=h(67376),p=h(36895),x=h(94650),v=h(21281),t=h(83353),T=h(40445),U=h(84080),w=h(8929),P=h(42654),O=h(36787),L=h(72986),N=h(7625),V=h(44290),W=h(29521);const tt=(0,t.Mq)();class st{constructor(it,K){this._viewportRuler=it,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=K}attach(){}enable(){if(this._canBeEnabled()){const it=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=it.style.left||"",this._previousHTMLStyles.top=it.style.top||"",it.style.left=(0,v.HM)(-this._previousScrollPosition.left),it.style.top=(0,v.HM)(-this._previousScrollPosition.top),it.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const it=this._document.documentElement,Tt=it.style,Rt=this._document.body.style,le=Tt.scrollBehavior||"",be=Rt.scrollBehavior||"";this._isEnabled=!1,Tt.left=this._previousHTMLStyles.left,Tt.top=this._previousHTMLStyles.top,it.classList.remove("cdk-global-scrollblock"),tt&&(Tt.scrollBehavior=Rt.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),tt&&(Tt.scrollBehavior=le,Rt.scrollBehavior=be)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const K=this._document.body,Tt=this._viewportRuler.getViewportSize();return K.scrollHeight>Tt.height||K.scrollWidth>Tt.width}}class bt{constructor(it,K,Tt,Rt){this._scrollDispatcher=it,this._ngZone=K,this._viewportRuler=Tt,this._config=Rt,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(it){this._overlayRef=it}enable(){if(this._scrollSubscription)return;const it=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=it.subscribe(()=>{const K=this._viewportRuler.getViewportScrollPosition().top;Math.abs(K-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=it.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Dt{enable(){}disable(){}attach(){}}function wt(te,it){return it.some(K=>te.bottomK.bottom||te.rightK.right)}function qt(te,it){return it.some(K=>te.topK.bottom||te.leftK.right)}class Jt{constructor(it,K,Tt,Rt){this._scrollDispatcher=it,this._viewportRuler=K,this._ngZone=Tt,this._config=Rt,this._scrollSubscription=null}attach(it){this._overlayRef=it}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 K=this._overlayRef.overlayElement.getBoundingClientRect(),{width:Tt,height:Rt}=this._viewportRuler.getViewportSize();wt(K,[{width:Tt,height:Rt,bottom:Rt,right:Tt,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 yt=(()=>{class te{constructor(K,Tt,Rt,le){this._scrollDispatcher=K,this._viewportRuler=Tt,this._ngZone=Rt,this.noop=()=>new Dt,this.close=be=>new bt(this._scrollDispatcher,this._ngZone,this._viewportRuler,be),this.block=()=>new st(this._viewportRuler,this._document),this.reposition=be=>new Jt(this._scrollDispatcher,this._viewportRuler,this._ngZone,be),this._document=le}}return te.\u0275fac=function(K){return new(K||te)(x.LFG(u.mF),x.LFG(u.rL),x.LFG(x.R0b),x.LFG(p.K0))},te.\u0275prov=x.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})();class At{constructor(it){if(this.scrollStrategy=new Dt,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,it){const K=Object.keys(it);for(const Tt of K)void 0!==it[Tt]&&(this[Tt]=it[Tt])}}}class Ot{constructor(it,K){this.connectionPair=it,this.scrollableViewProperties=K}}let ce=(()=>{class te{constructor(K){this._attachedOverlays=[],this._document=K}ngOnDestroy(){this.detach()}add(K){this.remove(K),this._attachedOverlays.push(K)}remove(K){const Tt=this._attachedOverlays.indexOf(K);Tt>-1&&this._attachedOverlays.splice(Tt,1),0===this._attachedOverlays.length&&this.detach()}}return te.\u0275fac=function(K){return new(K||te)(x.LFG(p.K0))},te.\u0275prov=x.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})(),Vt=(()=>{class te extends ce{constructor(K,Tt){super(K),this._ngZone=Tt,this._keydownListener=Rt=>{const le=this._attachedOverlays;for(let be=le.length-1;be>-1;be--)if(le[be]._keydownEvents.observers.length>0){const De=le[be]._keydownEvents;this._ngZone?this._ngZone.run(()=>De.next(Rt)):De.next(Rt);break}}}add(K){super.add(K),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 te.\u0275fac=function(K){return new(K||te)(x.LFG(p.K0),x.LFG(x.R0b,8))},te.\u0275prov=x.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})(),ve=(()=>{class te extends ce{constructor(K,Tt,Rt){super(K),this._platform=Tt,this._ngZone=Rt,this._cursorStyleIsSet=!1,this._pointerDownListener=le=>{this._pointerDownEventTarget=(0,t.sA)(le)},this._clickListener=le=>{const be=(0,t.sA)(le),De="click"===le.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:be;this._pointerDownEventTarget=null;const hn=this._attachedOverlays.slice();for(let qn=hn.length-1;qn>-1;qn--){const mi=hn[qn];if(mi._outsidePointerEvents.observers.length<1||!mi.hasAttached())continue;if(mi.overlayElement.contains(be)||mi.overlayElement.contains(De))break;const Di=mi._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>Di.next(le)):Di.next(le)}}}add(K){if(super.add(K),!this._isAttached){const Tt=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(Tt)):this._addEventListeners(Tt),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=Tt.style.cursor,Tt.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const K=this._document.body;K.removeEventListener("pointerdown",this._pointerDownListener,!0),K.removeEventListener("click",this._clickListener,!0),K.removeEventListener("auxclick",this._clickListener,!0),K.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(K.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(K){K.addEventListener("pointerdown",this._pointerDownListener,!0),K.addEventListener("click",this._clickListener,!0),K.addEventListener("auxclick",this._clickListener,!0),K.addEventListener("contextmenu",this._clickListener,!0)}}return te.\u0275fac=function(K){return new(K||te)(x.LFG(p.K0),x.LFG(t.t4),x.LFG(x.R0b,8))},te.\u0275prov=x.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})(),fe=(()=>{class te{constructor(K,Tt){this._platform=Tt,this._document=K}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const K="cdk-overlay-container";if(this._platform.isBrowser||(0,t.Oy)()){const Rt=this._document.querySelectorAll(`.${K}[platform="server"], .${K}[platform="test"]`);for(let le=0;lethis._backdropClick.next(Di),this._backdropTransitionendHandler=Di=>{this._disposeBackdrop(Di.target)},this._keydownEvents=new w.xQ,this._outsidePointerEvents=new w.xQ,Rt.scrollStrategy&&(this._scrollStrategy=Rt.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=Rt.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(it){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const K=this._portalOutlet.attach(it);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 K?.onDestroy&&K.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),K}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const it=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),it}dispose(){const it=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,it&&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(it){it!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=it,this.hasAttached()&&(it.attach(this),this.updatePosition()))}updateSize(it){this._config={...this._config,...it},this._updateElementSize()}setDirection(it){this._config={...this._config,direction:it},this._updateElementDirection()}addPanelClass(it){this._pane&&this._toggleClasses(this._pane,it,!0)}removePanelClass(it){this._pane&&this._toggleClasses(this._pane,it,!1)}getDirection(){const it=this._config.direction;return it?"string"==typeof it?it:it.value:"ltr"}updateScrollStrategy(it){it!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=it,this.hasAttached()&&(it.attach(this),it.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const it=this._pane.style;it.width=(0,v.HM)(this._config.width),it.height=(0,v.HM)(this._config.height),it.minWidth=(0,v.HM)(this._config.minWidth),it.minHeight=(0,v.HM)(this._config.minHeight),it.maxWidth=(0,v.HM)(this._config.maxWidth),it.maxHeight=(0,v.HM)(this._config.maxHeight)}_togglePointerEvents(it){this._pane.style.pointerEvents=it?"":"none"}_attachBackdrop(){const it="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(it)})}):this._backdropElement.classList.add(it)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const it=this._backdropElement;if(it){if(this._animationsDisabled)return void this._disposeBackdrop(it);it.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{it.addEventListener("transitionend",this._backdropTransitionendHandler)}),it.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(it)},500))}}_toggleClasses(it,K,Tt){const Rt=(0,v.Eq)(K||[]).filter(le=>!!le);Rt.length&&(Tt?it.classList.add(...Rt):it.classList.remove(...Rt))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const it=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()),it.unsubscribe())})})}_disposeScrollStrategy(){const it=this._scrollStrategy;it&&(it.disable(),it.detach&&it.detach())}_disposeBackdrop(it){it&&(it.removeEventListener("click",this._backdropClickHandler),it.removeEventListener("transitionend",this._backdropTransitionendHandler),it.remove(),this._backdropElement===it&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const Fe="cdk-overlay-connected-position-bounding-box",Ge=/([A-Za-z%]+)$/;class Gt{constructor(it,K,Tt,Rt,le){this._viewportRuler=K,this._document=Tt,this._platform=Rt,this._overlayContainer=le,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(it)}get positions(){return this._preferredPositions}attach(it){this._validatePositions(),it.hostElement.classList.add(Fe),this._overlayRef=it,this._boundingBox=it.hostElement,this._pane=it.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 it=this._originRect,K=this._overlayRect,Tt=this._viewportRect,Rt=this._containerRect,le=[];let be;for(let De of this._preferredPositions){let hn=this._getOriginPoint(it,Rt,De),qn=this._getOverlayPoint(hn,K,De),mi=this._getOverlayFit(qn,K,Tt,De);if(mi.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(De,hn);this._canFitWithFlexibleDimensions(mi,qn,Tt)?le.push({position:De,origin:hn,overlayRect:K,boundingBoxRect:this._calculateBoundingBoxRect(hn,De)}):(!be||be.overlayFit.visibleAreahn&&(hn=mi,De=qn)}return this._isPushed=!1,void this._applyPosition(De.position,De.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(be.position,be.originPoint);this._applyPosition(be.position,be.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Te(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Fe),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const it=this._lastPosition;if(it){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const K=this._getOriginPoint(this._originRect,this._containerRect,it);this._applyPosition(it,K)}else this.apply()}withScrollableContainers(it){return this._scrollables=it,this}withPositions(it){return this._preferredPositions=it,-1===it.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(it){return this._viewportMargin=it,this}withFlexibleDimensions(it=!0){return this._hasFlexibleDimensions=it,this}withGrowAfterOpen(it=!0){return this._growAfterOpen=it,this}withPush(it=!0){return this._canPush=it,this}withLockedPosition(it=!0){return this._positionLocked=it,this}setOrigin(it){return this._origin=it,this}withDefaultOffsetX(it){return this._offsetX=it,this}withDefaultOffsetY(it){return this._offsetY=it,this}withTransformOriginOn(it){return this._transformOriginSelector=it,this}_getOriginPoint(it,K,Tt){let Rt,le;if("center"==Tt.originX)Rt=it.left+it.width/2;else{const be=this._isRtl()?it.right:it.left,De=this._isRtl()?it.left:it.right;Rt="start"==Tt.originX?be:De}return K.left<0&&(Rt-=K.left),le="center"==Tt.originY?it.top+it.height/2:"top"==Tt.originY?it.top:it.bottom,K.top<0&&(le-=K.top),{x:Rt,y:le}}_getOverlayPoint(it,K,Tt){let Rt,le;return Rt="center"==Tt.overlayX?-K.width/2:"start"===Tt.overlayX?this._isRtl()?-K.width:0:this._isRtl()?0:-K.width,le="center"==Tt.overlayY?-K.height/2:"top"==Tt.overlayY?0:-K.height,{x:it.x+Rt,y:it.y+le}}_getOverlayFit(it,K,Tt,Rt){const le=jt(K);let{x:be,y:De}=it,hn=this._getOffset(Rt,"x"),qn=this._getOffset(Rt,"y");hn&&(be+=hn),qn&&(De+=qn);let bo=0-De,hi=De+le.height-Tt.height,Yn=this._subtractOverflows(le.width,0-be,be+le.width-Tt.width),Vn=this._subtractOverflows(le.height,bo,hi),Je=Yn*Vn;return{visibleArea:Je,isCompletelyWithinViewport:le.width*le.height===Je,fitsInViewportVertically:Vn===le.height,fitsInViewportHorizontally:Yn==le.width}}_canFitWithFlexibleDimensions(it,K,Tt){if(this._hasFlexibleDimensions){const Rt=Tt.bottom-K.y,le=Tt.right-K.x,be=ne(this._overlayRef.getConfig().minHeight),De=ne(this._overlayRef.getConfig().minWidth),qn=it.fitsInViewportHorizontally||null!=De&&De<=le;return(it.fitsInViewportVertically||null!=be&&be<=Rt)&&qn}return!1}_pushOverlayOnScreen(it,K,Tt){if(this._previousPushAmount&&this._positionLocked)return{x:it.x+this._previousPushAmount.x,y:it.y+this._previousPushAmount.y};const Rt=jt(K),le=this._viewportRect,be=Math.max(it.x+Rt.width-le.width,0),De=Math.max(it.y+Rt.height-le.height,0),hn=Math.max(le.top-Tt.top-it.y,0),qn=Math.max(le.left-Tt.left-it.x,0);let mi=0,Di=0;return mi=Rt.width<=le.width?qn||-be:it.xYn&&!this._isInitialRender&&!this._growAfterOpen&&(be=it.y-Yn/2)}if("end"===K.overlayX&&!Rt||"start"===K.overlayX&&Rt)bo=Tt.width-it.x+this._viewportMargin,mi=it.x-this._viewportMargin;else if("start"===K.overlayX&&!Rt||"end"===K.overlayX&&Rt)Di=it.x,mi=Tt.right-it.x;else{const hi=Math.min(Tt.right-it.x+Tt.left,it.x),Yn=this._lastBoundingBoxSize.width;mi=2*hi,Di=it.x-hi,mi>Yn&&!this._isInitialRender&&!this._growAfterOpen&&(Di=it.x-Yn/2)}return{top:be,left:Di,bottom:De,right:bo,width:mi,height:le}}_setBoundingBoxStyles(it,K){const Tt=this._calculateBoundingBoxRect(it,K);!this._isInitialRender&&!this._growAfterOpen&&(Tt.height=Math.min(Tt.height,this._lastBoundingBoxSize.height),Tt.width=Math.min(Tt.width,this._lastBoundingBoxSize.width));const Rt={};if(this._hasExactPosition())Rt.top=Rt.left="0",Rt.bottom=Rt.right=Rt.maxHeight=Rt.maxWidth="",Rt.width=Rt.height="100%";else{const le=this._overlayRef.getConfig().maxHeight,be=this._overlayRef.getConfig().maxWidth;Rt.height=(0,v.HM)(Tt.height),Rt.top=(0,v.HM)(Tt.top),Rt.bottom=(0,v.HM)(Tt.bottom),Rt.width=(0,v.HM)(Tt.width),Rt.left=(0,v.HM)(Tt.left),Rt.right=(0,v.HM)(Tt.right),Rt.alignItems="center"===K.overlayX?"center":"end"===K.overlayX?"flex-end":"flex-start",Rt.justifyContent="center"===K.overlayY?"center":"bottom"===K.overlayY?"flex-end":"flex-start",le&&(Rt.maxHeight=(0,v.HM)(le)),be&&(Rt.maxWidth=(0,v.HM)(be))}this._lastBoundingBoxSize=Tt,Te(this._boundingBox.style,Rt)}_resetBoundingBoxStyles(){Te(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Te(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(it,K){const Tt={},Rt=this._hasExactPosition(),le=this._hasFlexibleDimensions,be=this._overlayRef.getConfig();if(Rt){const mi=this._viewportRuler.getViewportScrollPosition();Te(Tt,this._getExactOverlayY(K,it,mi)),Te(Tt,this._getExactOverlayX(K,it,mi))}else Tt.position="static";let De="",hn=this._getOffset(K,"x"),qn=this._getOffset(K,"y");hn&&(De+=`translateX(${hn}px) `),qn&&(De+=`translateY(${qn}px)`),Tt.transform=De.trim(),be.maxHeight&&(Rt?Tt.maxHeight=(0,v.HM)(be.maxHeight):le&&(Tt.maxHeight="")),be.maxWidth&&(Rt?Tt.maxWidth=(0,v.HM)(be.maxWidth):le&&(Tt.maxWidth="")),Te(this._pane.style,Tt)}_getExactOverlayY(it,K,Tt){let Rt={top:"",bottom:""},le=this._getOverlayPoint(K,this._overlayRect,it);return this._isPushed&&(le=this._pushOverlayOnScreen(le,this._overlayRect,Tt)),"bottom"===it.overlayY?Rt.bottom=this._document.documentElement.clientHeight-(le.y+this._overlayRect.height)+"px":Rt.top=(0,v.HM)(le.y),Rt}_getExactOverlayX(it,K,Tt){let be,Rt={left:"",right:""},le=this._getOverlayPoint(K,this._overlayRect,it);return this._isPushed&&(le=this._pushOverlayOnScreen(le,this._overlayRect,Tt)),be=this._isRtl()?"end"===it.overlayX?"left":"right":"end"===it.overlayX?"right":"left","right"===be?Rt.right=this._document.documentElement.clientWidth-(le.x+this._overlayRect.width)+"px":Rt.left=(0,v.HM)(le.x),Rt}_getScrollVisibility(){const it=this._getOriginRect(),K=this._pane.getBoundingClientRect(),Tt=this._scrollables.map(Rt=>Rt.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:qt(it,Tt),isOriginOutsideView:wt(it,Tt),isOverlayClipped:qt(K,Tt),isOverlayOutsideView:wt(K,Tt)}}_subtractOverflows(it,...K){return K.reduce((Tt,Rt)=>Tt-Math.max(Rt,0),it)}_getNarrowedViewportRect(){const it=this._document.documentElement.clientWidth,K=this._document.documentElement.clientHeight,Tt=this._viewportRuler.getViewportScrollPosition();return{top:Tt.top+this._viewportMargin,left:Tt.left+this._viewportMargin,right:Tt.left+it-this._viewportMargin,bottom:Tt.top+K-this._viewportMargin,width:it-2*this._viewportMargin,height:K-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(it,K){return"x"===K?it.offsetX??this._offsetX:it.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(it){this._pane&&(0,v.Eq)(it).forEach(K=>{""!==K&&-1===this._appliedPanelClasses.indexOf(K)&&(this._appliedPanelClasses.push(K),this._pane.classList.add(K))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(it=>{this._pane.classList.remove(it)}),this._appliedPanelClasses=[])}_getOriginRect(){const it=this._origin;if(it instanceof x.SBq)return it.nativeElement.getBoundingClientRect();if(it instanceof Element)return it.getBoundingClientRect();const K=it.width||0,Tt=it.height||0;return{top:it.y,bottom:it.y+Tt,left:it.x,right:it.x+K,height:Tt,width:K}}}function Te(te,it){for(let K in it)it.hasOwnProperty(K)&&(te[K]=it[K]);return te}function ne(te){if("number"!=typeof te&&null!=te){const[it,K]=te.split(Ge);return K&&"px"!==K?null:parseFloat(it)}return te||null}function jt(te){return{top:Math.floor(te.top),right:Math.floor(te.right),bottom:Math.floor(te.bottom),left:Math.floor(te.left),width:Math.floor(te.width),height:Math.floor(te.height)}}const oe="cdk-global-overlay-wrapper";class Me{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(it){const K=it.getConfig();this._overlayRef=it,this._width&&!K.width&&it.updateSize({width:this._width}),this._height&&!K.height&&it.updateSize({height:this._height}),it.hostElement.classList.add(oe),this._isDisposed=!1}top(it=""){return this._bottomOffset="",this._topOffset=it,this._alignItems="flex-start",this}left(it=""){return this._xOffset=it,this._xPosition="left",this}bottom(it=""){return this._topOffset="",this._bottomOffset=it,this._alignItems="flex-end",this}right(it=""){return this._xOffset=it,this._xPosition="right",this}start(it=""){return this._xOffset=it,this._xPosition="start",this}end(it=""){return this._xOffset=it,this._xPosition="end",this}width(it=""){return this._overlayRef?this._overlayRef.updateSize({width:it}):this._width=it,this}height(it=""){return this._overlayRef?this._overlayRef.updateSize({height:it}):this._height=it,this}centerHorizontally(it=""){return this.left(it),this._xPosition="center",this}centerVertically(it=""){return this.top(it),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const it=this._overlayRef.overlayElement.style,K=this._overlayRef.hostElement.style,Tt=this._overlayRef.getConfig(),{width:Rt,height:le,maxWidth:be,maxHeight:De}=Tt,hn=!("100%"!==Rt&&"100vw"!==Rt||be&&"100%"!==be&&"100vw"!==be),qn=!("100%"!==le&&"100vh"!==le||De&&"100%"!==De&&"100vh"!==De),mi=this._xPosition,Di=this._xOffset,bo="rtl"===this._overlayRef.getConfig().direction;let hi="",Yn="",Vn="";hn?Vn="flex-start":"center"===mi?(Vn="center",bo?Yn=Di:hi=Di):bo?"left"===mi||"end"===mi?(Vn="flex-end",hi=Di):("right"===mi||"start"===mi)&&(Vn="flex-start",Yn=Di):"left"===mi||"start"===mi?(Vn="flex-start",hi=Di):("right"===mi||"end"===mi)&&(Vn="flex-end",Yn=Di),it.position=this._cssPosition,it.marginLeft=hn?"0":hi,it.marginTop=qn?"0":this._topOffset,it.marginBottom=this._bottomOffset,it.marginRight=hn?"0":Yn,K.justifyContent=Vn,K.alignItems=qn?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const it=this._overlayRef.overlayElement.style,K=this._overlayRef.hostElement,Tt=K.style;K.classList.remove(oe),Tt.justifyContent=Tt.alignItems=it.marginTop=it.marginBottom=it.marginLeft=it.marginRight=it.position="",this._overlayRef=null,this._isDisposed=!0}}let en=(()=>{class te{constructor(K,Tt,Rt,le){this._viewportRuler=K,this._document=Tt,this._platform=Rt,this._overlayContainer=le}global(){return new Me}flexibleConnectedTo(K){return new Gt(K,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return te.\u0275fac=function(K){return new(K||te)(x.LFG(u.rL),x.LFG(p.K0),x.LFG(t.t4),x.LFG(fe))},te.\u0275prov=x.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})(),_n=0,xe=(()=>{class te{constructor(K,Tt,Rt,le,be,De,hn,qn,mi,Di,bo,hi){this.scrollStrategies=K,this._overlayContainer=Tt,this._componentFactoryResolver=Rt,this._positionBuilder=le,this._keyboardDispatcher=be,this._injector=De,this._ngZone=hn,this._document=qn,this._directionality=mi,this._location=Di,this._outsideClickDispatcher=bo,this._animationsModuleType=hi}create(K){const Tt=this._createHostElement(),Rt=this._createPaneElement(Tt),le=this._createPortalOutlet(Rt),be=new At(K);return be.direction=be.direction||this._directionality.value,new Le(le,Tt,Rt,be,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(K){const Tt=this._document.createElement("div");return Tt.id="cdk-overlay-"+_n++,Tt.classList.add("cdk-overlay-pane"),K.appendChild(Tt),Tt}_createHostElement(){const K=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(K),K}_createPortalOutlet(K){return this._appRef||(this._appRef=this._injector.get(x.z2F)),new U.u0(K,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return te.\u0275fac=function(K){return new(K||te)(x.LFG(yt),x.LFG(fe),x.LFG(x._Vd),x.LFG(en),x.LFG(Vt),x.LFG(x.zs3),x.LFG(x.R0b),x.LFG(p.K0),x.LFG(T.Is),x.LFG(p.Ye),x.LFG(ve),x.LFG(x.QbO,8))},te.\u0275prov=x.Yz7({token:te,factory:te.\u0275fac}),te})();const vn=[{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"}],ke=new x.OlP("cdk-connected-overlay-scroll-strategy");let un=(()=>{class te{constructor(K){this.elementRef=K}}return te.\u0275fac=function(K){return new(K||te)(x.Y36(x.SBq))},te.\u0275dir=x.lG2({type:te,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),te})(),Dn=(()=>{class te{constructor(K,Tt,Rt,le,be){this._overlay=K,this._dir=be,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 x.vpe,this.positionChange=new x.vpe,this.attach=new x.vpe,this.detach=new x.vpe,this.overlayKeydown=new x.vpe,this.overlayOutsideClick=new x.vpe,this._templatePortal=new U.UE(Tt,Rt),this._scrollStrategyFactory=le,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(K){this._offsetX=K,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(K){this._offsetY=K,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(K){this._hasBackdrop=(0,v.Ig)(K)}get lockPosition(){return this._lockPosition}set lockPosition(K){this._lockPosition=(0,v.Ig)(K)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(K){this._flexibleDimensions=(0,v.Ig)(K)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(K){this._growAfterOpen=(0,v.Ig)(K)}get push(){return this._push}set push(K){this._push=(0,v.Ig)(K)}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(K){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),K.origin&&this.open&&this._position.apply()),K.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=vn);const K=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=K.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=K.detachments().subscribe(()=>this.detach.emit()),K.keydownEvents().subscribe(Tt=>{this.overlayKeydown.next(Tt),Tt.keyCode===W.hY&&!this.disableClose&&!(0,W.Vb)(Tt)&&(Tt.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(Tt=>{this.overlayOutsideClick.next(Tt)})}_buildConfig(){const K=this._position=this.positionStrategy||this._createPositionStrategy(),Tt=new At({direction:this._dir,positionStrategy:K,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(Tt.width=this.width),(this.height||0===this.height)&&(Tt.height=this.height),(this.minWidth||0===this.minWidth)&&(Tt.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(Tt.minHeight=this.minHeight),this.backdropClass&&(Tt.backdropClass=this.backdropClass),this.panelClass&&(Tt.panelClass=this.panelClass),Tt}_updatePositionStrategy(K){const Tt=this.positions.map(Rt=>({originX:Rt.originX,originY:Rt.originY,overlayX:Rt.overlayX,overlayY:Rt.overlayY,offsetX:Rt.offsetX||this.offsetX,offsetY:Rt.offsetY||this.offsetY,panelClass:Rt.panelClass||void 0}));return K.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(Tt).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const K=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(K),K}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof un?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(K=>{this.backdropClick.emit(K)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,V.o)(()=>this.positionChange.observers.length>0)).subscribe(K=>{this.positionChange.emit(K),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return te.\u0275fac=function(K){return new(K||te)(x.Y36(xe),x.Y36(x.Rgc),x.Y36(x.s_b),x.Y36(ke),x.Y36(T.Is,8))},te.\u0275dir=x.lG2({type:te,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:[x.TTD]}),te})();const _i={provide:ke,deps:[xe],useFactory:function ii(te){return()=>te.scrollStrategies.reposition()}};let oi=(()=>{class te{}return te.\u0275fac=function(K){return new(K||te)},te.\u0275mod=x.oAB({type:te}),te.\u0275inj=x.cJS({providers:[xe,_i],imports:[T.vT,U.eL,u.Cl,u.Cl]}),te})()},83353:(X,j,h)=>{"use strict";h.d(j,{Mq:()=>W,Oy:()=>qt,_i:()=>tt,ht:()=>Dt,i$:()=>L,kV:()=>bt,qK:()=>w,sA:()=>wt,t4:()=>v,ud:()=>t});var u=h(94650),p=h(36895);let x;try{x=typeof Intl<"u"&&Intl.v8BreakIterator}catch{x=!1}let T,v=(()=>{class Jt{constructor(At){this._platformId=At,this.isBrowser=this._platformId?(0,p.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&&!x)&&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 Jt.\u0275fac=function(At){return new(At||Jt)(u.LFG(u.Lbi))},Jt.\u0275prov=u.Yz7({token:Jt,factory:Jt.\u0275fac,providedIn:"root"}),Jt})(),t=(()=>{class Jt{}return Jt.\u0275fac=function(At){return new(At||Jt)},Jt.\u0275mod=u.oAB({type:Jt}),Jt.\u0275inj=u.cJS({}),Jt})();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 Jt=document.createElement("input");return T=new Set(U.filter(yt=>(Jt.setAttribute("type",yt),Jt.type===yt))),T}let P,N,V,st;function L(Jt){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}()?Jt:!!Jt.capture}function W(){if(null==V){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return V=!1,V;if("scrollBehavior"in document.documentElement.style)V=!0;else{const Jt=Element.prototype.scrollTo;V=!!Jt&&!/\{\s*\[native code\]\s*\}/.test(Jt.toString())}}return V}function tt(){if("object"!=typeof document||!document)return 0;if(null==N){const Jt=document.createElement("div"),yt=Jt.style;Jt.dir="rtl",yt.width="1px",yt.overflow="auto",yt.visibility="hidden",yt.pointerEvents="none",yt.position="absolute";const At=document.createElement("div"),xt=At.style;xt.width="2px",xt.height="1px",Jt.appendChild(At),document.body.appendChild(Jt),N=0,0===Jt.scrollLeft&&(Jt.scrollLeft=1,N=0===Jt.scrollLeft?1:2),Jt.remove()}return N}function bt(Jt){if(function ct(){if(null==st){const Jt=typeof document<"u"?document.head:null;st=!(!Jt||!Jt.createShadowRoot&&!Jt.attachShadow)}return st}()){const yt=Jt.getRootNode?Jt.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&yt instanceof ShadowRoot)return yt}return null}function Dt(){let Jt=typeof document<"u"&&document?document.activeElement:null;for(;Jt&&Jt.shadowRoot;){const yt=Jt.shadowRoot.activeElement;if(yt===Jt)break;Jt=yt}return Jt}function wt(Jt){return Jt.composedPath?Jt.composedPath()[0]:Jt.target}function qt(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},84080:(X,j,h)=>{"use strict";h.d(j,{C5:()=>O,Pl:()=>Dt,UE:()=>L,eL:()=>qt,en:()=>V,ig:()=>ct,u0:()=>tt});var u=h(94650),p=h(36895);class P{attach(At){return this._attachedHost=At,At.attach(this)}detach(){let At=this._attachedHost;null!=At&&(this._attachedHost=null,At.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(At){this._attachedHost=At}}class O extends P{constructor(At,xt,pt,Ot){super(),this.component=At,this.viewContainerRef=xt,this.injector=pt,this.componentFactoryResolver=Ot}}class L extends P{constructor(At,xt,pt,Ot){super(),this.templateRef=At,this.viewContainerRef=xt,this.context=pt,this.injector=Ot}get origin(){return this.templateRef.elementRef}attach(At,xt=this.context){return this.context=xt,super.attach(At)}detach(){return this.context=void 0,super.detach()}}class N extends P{constructor(At){super(),this.element=At instanceof u.SBq?At.nativeElement:At}}class V{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(At){return At instanceof O?(this._attachedPortal=At,this.attachComponentPortal(At)):At instanceof L?(this._attachedPortal=At,this.attachTemplatePortal(At)):this.attachDomPortal&&At instanceof N?(this._attachedPortal=At,this.attachDomPortal(At)):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(At){this._disposeFn=At}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class tt extends V{constructor(At,xt,pt,Ot,Bt){super(),this.outletElement=At,this._componentFactoryResolver=xt,this._appRef=pt,this._defaultInjector=Ot,this.attachDomPortal=St=>{const ce=St.element,Vt=this._document.createComment("dom-portal");ce.parentNode.insertBefore(Vt,ce),this.outletElement.appendChild(ce),this._attachedPortal=St,super.setDisposeFn(()=>{Vt.parentNode&&Vt.parentNode.replaceChild(ce,Vt)})},this._document=Bt}attachComponentPortal(At){const pt=(At.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(At.component);let Ot;return At.viewContainerRef?(Ot=At.viewContainerRef.createComponent(pt,At.viewContainerRef.length,At.injector||At.viewContainerRef.injector),this.setDisposeFn(()=>Ot.destroy())):(Ot=pt.create(At.injector||this._defaultInjector||u.zs3.NULL),this._appRef.attachView(Ot.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(Ot.hostView),Ot.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(Ot)),this._attachedPortal=At,Ot}attachTemplatePortal(At){let xt=At.viewContainerRef,pt=xt.createEmbeddedView(At.templateRef,At.context,{injector:At.injector});return pt.rootNodes.forEach(Ot=>this.outletElement.appendChild(Ot)),pt.detectChanges(),this.setDisposeFn(()=>{let Ot=xt.indexOf(pt);-1!==Ot&&xt.remove(Ot)}),this._attachedPortal=At,pt}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(At){return At.hostView.rootNodes[0]}}let ct=(()=>{class yt extends L{constructor(xt,pt){super(xt,pt)}}return yt.\u0275fac=function(xt){return new(xt||yt)(u.Y36(u.Rgc),u.Y36(u.s_b))},yt.\u0275dir=u.lG2({type:yt,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[u.qOj]}),yt})(),Dt=(()=>{class yt extends V{constructor(xt,pt,Ot){super(),this._componentFactoryResolver=xt,this._viewContainerRef=pt,this._isInitialized=!1,this.attached=new u.vpe,this.attachDomPortal=Bt=>{const St=Bt.element,ce=this._document.createComment("dom-portal");Bt.setAttachedHost(this),St.parentNode.insertBefore(ce,St),this._getRootNode().appendChild(St),this._attachedPortal=Bt,super.setDisposeFn(()=>{ce.parentNode&&ce.parentNode.replaceChild(St,ce)})},this._document=Ot}get portal(){return this._attachedPortal}set portal(xt){this.hasAttached()&&!xt&&!this._isInitialized||(this.hasAttached()&&super.detach(),xt&&super.attach(xt),this._attachedPortal=xt||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(xt){xt.setAttachedHost(this);const pt=null!=xt.viewContainerRef?xt.viewContainerRef:this._viewContainerRef,Bt=(xt.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(xt.component),St=pt.createComponent(Bt,pt.length,xt.injector||pt.injector);return pt!==this._viewContainerRef&&this._getRootNode().appendChild(St.hostView.rootNodes[0]),super.setDisposeFn(()=>St.destroy()),this._attachedPortal=xt,this._attachedRef=St,this.attached.emit(St),St}attachTemplatePortal(xt){xt.setAttachedHost(this);const pt=this._viewContainerRef.createEmbeddedView(xt.templateRef,xt.context,{injector:xt.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=xt,this._attachedRef=pt,this.attached.emit(pt),pt}_getRootNode(){const xt=this._viewContainerRef.element.nativeElement;return xt.nodeType===xt.ELEMENT_NODE?xt:xt.parentNode}}return yt.\u0275fac=function(xt){return new(xt||yt)(u.Y36(u._Vd),u.Y36(u.s_b),u.Y36(p.K0))},yt.\u0275dir=u.lG2({type:yt,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[u.qOj]}),yt})(),qt=(()=>{class yt{}return yt.\u0275fac=function(xt){return new(xt||yt)},yt.\u0275mod=u.oAB({type:yt}),yt.\u0275inj=u.cJS({}),yt})()},67376:(X,j,h)=>{"use strict";h.d(j,{Cl:()=>Ge,PQ:()=>yt,ZD:()=>Fe,mF:()=>Jt,rL:()=>xt});var u=h(21281),p=h(94650),x=h(8929),v=h(21086),t=h(56498),T=h(23753),P=(h(90352),h(8139),h(57138)),O=h(92198),L=h(7625),N=h(83353),V=h(36895),W=h(40445);let Jt=(()=>{class Gt{constructor(ne,jt,re){this._ngZone=ne,this._platform=jt,this._scrolled=new x.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=re}register(ne){this.scrollContainers.has(ne)||this.scrollContainers.set(ne,ne.elementScrolled().subscribe(()=>this._scrolled.next(ne)))}deregister(ne){const jt=this.scrollContainers.get(ne);jt&&(jt.unsubscribe(),this.scrollContainers.delete(ne))}scrolled(ne=20){return this._platform.isBrowser?new t.y(jt=>{this._globalSubscription||this._addGlobalListener();const re=ne>0?this._scrolled.pipe((0,P.e)(ne)).subscribe(jt):this._scrolled.subscribe(jt);return this._scrolledCount++,()=>{re.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,v.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((ne,jt)=>this.deregister(jt)),this._scrolled.complete()}ancestorScrolled(ne,jt){const re=this.getAncestorScrollContainers(ne);return this.scrolled(jt).pipe((0,O.h)(Xt=>!Xt||re.indexOf(Xt)>-1))}getAncestorScrollContainers(ne){const jt=[];return this.scrollContainers.forEach((re,Xt)=>{this._scrollableContainsElement(Xt,ne)&&jt.push(Xt)}),jt}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(ne,jt){let re=(0,u.fI)(jt),Xt=ne.getElementRef().nativeElement;do{if(re==Xt)return!0}while(re=re.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const ne=this._getWindow();return(0,T.R)(ne.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return Gt.\u0275fac=function(ne){return new(ne||Gt)(p.LFG(p.R0b),p.LFG(N.t4),p.LFG(V.K0,8))},Gt.\u0275prov=p.Yz7({token:Gt,factory:Gt.\u0275fac,providedIn:"root"}),Gt})(),yt=(()=>{class Gt{constructor(ne,jt,re,Xt){this.elementRef=ne,this.scrollDispatcher=jt,this.ngZone=re,this.dir=Xt,this._destroyed=new x.xQ,this._elementScrolled=new t.y(oe=>this.ngZone.runOutsideAngular(()=>(0,T.R)(this.elementRef.nativeElement,"scroll").pipe((0,L.R)(this._destroyed)).subscribe(oe)))}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(ne){const jt=this.elementRef.nativeElement,re=this.dir&&"rtl"==this.dir.value;null==ne.left&&(ne.left=re?ne.end:ne.start),null==ne.right&&(ne.right=re?ne.start:ne.end),null!=ne.bottom&&(ne.top=jt.scrollHeight-jt.clientHeight-ne.bottom),re&&0!=(0,N._i)()?(null!=ne.left&&(ne.right=jt.scrollWidth-jt.clientWidth-ne.left),2==(0,N._i)()?ne.left=ne.right:1==(0,N._i)()&&(ne.left=ne.right?-ne.right:ne.right)):null!=ne.right&&(ne.left=jt.scrollWidth-jt.clientWidth-ne.right),this._applyScrollToOptions(ne)}_applyScrollToOptions(ne){const jt=this.elementRef.nativeElement;(0,N.Mq)()?jt.scrollTo(ne):(null!=ne.top&&(jt.scrollTop=ne.top),null!=ne.left&&(jt.scrollLeft=ne.left))}measureScrollOffset(ne){const jt="left",Xt=this.elementRef.nativeElement;if("top"==ne)return Xt.scrollTop;if("bottom"==ne)return Xt.scrollHeight-Xt.clientHeight-Xt.scrollTop;const oe=this.dir&&"rtl"==this.dir.value;return"start"==ne?ne=oe?"right":jt:"end"==ne&&(ne=oe?jt:"right"),oe&&2==(0,N._i)()?ne==jt?Xt.scrollWidth-Xt.clientWidth-Xt.scrollLeft:Xt.scrollLeft:oe&&1==(0,N._i)()?ne==jt?Xt.scrollLeft+Xt.scrollWidth-Xt.clientWidth:-Xt.scrollLeft:ne==jt?Xt.scrollLeft:Xt.scrollWidth-Xt.clientWidth-Xt.scrollLeft}}return Gt.\u0275fac=function(ne){return new(ne||Gt)(p.Y36(p.SBq),p.Y36(Jt),p.Y36(p.R0b),p.Y36(W.Is,8))},Gt.\u0275dir=p.lG2({type:Gt,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),Gt})(),xt=(()=>{class Gt{constructor(ne,jt,re){this._platform=ne,this._change=new x.xQ,this._changeListener=Xt=>{this._change.next(Xt)},this._document=re,jt.runOutsideAngular(()=>{if(ne.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 ne=this._getWindow();ne.removeEventListener("resize",this._changeListener),ne.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const ne={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),ne}getViewportRect(){const ne=this.getViewportScrollPosition(),{width:jt,height:re}=this.getViewportSize();return{top:ne.top,left:ne.left,bottom:ne.top+re,right:ne.left+jt,height:re,width:jt}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const ne=this._document,jt=this._getWindow(),re=ne.documentElement,Xt=re.getBoundingClientRect();return{top:-Xt.top||ne.body.scrollTop||jt.scrollY||re.scrollTop||0,left:-Xt.left||ne.body.scrollLeft||jt.scrollX||re.scrollLeft||0}}change(ne=20){return ne>0?this._change.pipe((0,P.e)(ne)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const ne=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:ne.innerWidth,height:ne.innerHeight}:{width:0,height:0}}}return Gt.\u0275fac=function(ne){return new(ne||Gt)(p.LFG(N.t4),p.LFG(p.R0b),p.LFG(V.K0,8))},Gt.\u0275prov=p.Yz7({token:Gt,factory:Gt.\u0275fac,providedIn:"root"}),Gt})(),Fe=(()=>{class Gt{}return Gt.\u0275fac=function(ne){return new(ne||Gt)},Gt.\u0275mod=p.oAB({type:Gt}),Gt.\u0275inj=p.cJS({}),Gt})(),Ge=(()=>{class Gt{}return Gt.\u0275fac=function(ne){return new(ne||Gt)},Gt.\u0275mod=p.oAB({type:Gt}),Gt.\u0275inj=p.cJS({imports:[W.vT,Fe,W.vT,Fe]}),Gt})()},12138:(X,j,h)=>{"use strict";h.d(j,{B8:()=>wt,KL:()=>V,U5:()=>yt,be:()=>Dt,gx:()=>bt,po:()=>Jt,st:()=>qt,u6:()=>W});var u=h(12687),p=h(40445),x=h(21281),v=h(29521),t=h(94650),T=h(83353),U=h(8929),w=h(21086),P=h(1059),O=h(7625);function L(At,xt){1&At&&t.Hsn(0)}const N=["*"];let V=(()=>{class At{constructor(pt){this._elementRef=pt}focus(){this._elementRef.nativeElement.focus()}}return At.\u0275fac=function(pt){return new(pt||At)(t.Y36(t.SBq))},At.\u0275dir=t.lG2({type:At,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),At})(),W=(()=>{class At{constructor(pt){this.template=pt}}return At.\u0275fac=function(pt){return new(pt||At)(t.Y36(t.Rgc))},At.\u0275dir=t.lG2({type:At,selectors:[["","cdkStepLabel",""]]}),At})(),tt=0;const bt=new t.OlP("STEPPER_GLOBAL_OPTIONS");let Dt=(()=>{class At{constructor(pt,Ot){this._stepper=pt,this.interacted=!1,this.interactedStream=new t.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=Ot||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}get editable(){return this._editable}set editable(pt){this._editable=(0,x.Ig)(pt)}get optional(){return this._optional}set optional(pt){this._optional=(0,x.Ig)(pt)}get completed(){return this._completedOverride??this._getDefaultCompleted()}set completed(pt){this._completedOverride=(0,x.Ig)(pt)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return this._customError??this._getDefaultError()}set hasError(pt){this._customError=(0,x.Ig)(pt)}_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 At.\u0275fac=function(pt){return new(pt||At)(t.Y36((0,t.Gpc)(()=>wt)),t.Y36(bt,8))},At.\u0275cmp=t.Xpm({type:At,selectors:[["cdk-step"]],contentQueries:function(pt,Ot,Bt){if(1&pt&&t.Suo(Bt,W,5),2&pt){let St;t.iGM(St=t.CRH())&&(Ot.stepLabel=St.first)}},viewQuery:function(pt,Ot){if(1&pt&&t.Gf(t.Rgc,7),2&pt){let Bt;t.iGM(Bt=t.CRH())&&(Ot.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(pt,Ot){1&pt&&(t.F$t(),t.YNc(0,L,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),At})(),wt=(()=>{class At{constructor(pt,Ot,Bt){this._dir=pt,this._changeDetectorRef=Ot,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=tt++}get linear(){return this._linear}set linear(pt){this._linear=(0,x.Ig)(pt)}get selectedIndex(){return this._selectedIndex}set selectedIndex(pt){const Ot=(0,x.su)(pt);this.steps&&this._steps?(this._isValidIndex(Ot),this.selected?._markAsInteracted(),this._selectedIndex!==Ot&&!this._anyControlsInvalidOrPending(Ot)&&(Ot>=this._selectedIndex||this.steps.toArray()[Ot].editable)&&this._updateSelectedItemIndex(Ot)):this._selectedIndex=Ot}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(pt){this.selectedIndex=pt&&this.steps?this.steps.toArray().indexOf(pt):-1}get orientation(){return this._orientation}set orientation(pt){this._orientation=pt,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===pt)}ngAfterContentInit(){this._steps.changes.pipe((0,P.O)(this._steps),(0,O.R)(this._destroyed)).subscribe(pt=>{this.steps.reset(pt.filter(Ot=>Ot._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe((0,P.O)(this._stepHeader),(0,O.R)(this._destroyed)).subscribe(pt=>{this._sortedHeaders.reset(pt.toArray().sort((Ot,Bt)=>Ot._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(pt=>this._keyManager.withHorizontalOrientation(pt)),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(pt=>pt.reset()),this._stateChanged()}_getStepLabelId(pt){return`cdk-step-label-${this._groupId}-${pt}`}_getStepContentId(pt){return`cdk-step-content-${this._groupId}-${pt}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(pt){const Ot=pt-this._selectedIndex;return Ot<0?"rtl"===this._layoutDirection()?"next":"previous":Ot>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(pt,Ot="number"){const Bt=this.steps.toArray()[pt],St=this._isCurrentStep(pt);return Bt._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(Bt,St):this._getGuidelineLogic(Bt,St,Ot)}_getDefaultIndicatorLogic(pt,Ot){return pt._showError()&&pt.hasError&&!Ot?"error":!pt.completed||Ot?"number":pt.editable?"edit":"done"}_getGuidelineLogic(pt,Ot,Bt="number"){return pt._showError()&&pt.hasError&&!Ot?"error":pt.completed&&!Ot?"done":pt.completed&&Ot?Bt:pt.editable&&Ot?"edit":Bt}_isCurrentStep(pt){return this._selectedIndex===pt}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(pt){const Ot=this.steps.toArray();this.selectionChange.emit({selectedIndex:pt,previouslySelectedIndex:this._selectedIndex,selectedStep:Ot[pt],previouslySelectedStep:Ot[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(pt):this._keyManager.updateActiveItem(pt),this._selectedIndex=pt,this._stateChanged()}_onKeydown(pt){const Ot=(0,v.Vb)(pt),Bt=pt.keyCode,St=this._keyManager;null==St.activeItemIndex||Ot||Bt!==v.L_&&Bt!==v.K5?St.onKeydown(pt):(this.selectedIndex=St.activeItemIndex,pt.preventDefault())}_anyControlsInvalidOrPending(pt){return!!(this._linear&&pt>=0)&&this.steps.toArray().slice(0,pt).some(Ot=>{const Bt=Ot.stepControl;return(Bt?Bt.invalid||Bt.pending||!Ot.interacted:!Ot.completed)&&!Ot.optional&&!Ot._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const pt=this._elementRef.nativeElement,Ot=(0,T.ht)();return pt===Ot||pt.contains(Ot)}_isValidIndex(pt){return pt>-1&&(!this.steps||pt{class At{constructor(pt){this._stepper=pt,this.type="submit"}}return At.\u0275fac=function(pt){return new(pt||At)(t.Y36(wt))},At.\u0275dir=t.lG2({type:At,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(pt,Ot){1&pt&&t.NdJ("click",function(){return Ot._stepper.next()}),2&pt&&t.Ikx("type",Ot.type)},inputs:{type:"type"}}),At})(),Jt=(()=>{class At{constructor(pt){this._stepper=pt,this.type="button"}}return At.\u0275fac=function(pt){return new(pt||At)(t.Y36(wt))},At.\u0275dir=t.lG2({type:At,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(pt,Ot){1&pt&&t.NdJ("click",function(){return Ot._stepper.previous()}),2&pt&&t.Ikx("type",Ot.type)},inputs:{type:"type"}}),At})(),yt=(()=>{class At{}return At.\u0275fac=function(pt){return new(pt||At)},At.\u0275mod=t.oAB({type:At}),At.\u0275inj=t.cJS({imports:[p.vT]}),At})()},39349:(X,j,h)=>{"use strict";h.d(j,{IC:()=>V,Ky:()=>W,Lq:()=>L});var u=h(83353),p=h(94650),x=h(21281),v=h(68896),t=h(8929),T=h(23753),U=h(57138),w=h(7625),P=h(36895);const O=(0,u.i$)({passive:!0});let L=(()=>{class tt{constructor(ct,bt){this._platform=ct,this._ngZone=bt,this._monitoredElements=new Map}monitor(ct){if(!this._platform.isBrowser)return v.E;const bt=(0,x.fI)(ct),Dt=this._monitoredElements.get(bt);if(Dt)return Dt.subject;const wt=new t.xQ,qt="cdk-text-field-autofilled",Jt=yt=>{"cdk-text-field-autofill-start"!==yt.animationName||bt.classList.contains(qt)?"cdk-text-field-autofill-end"===yt.animationName&&bt.classList.contains(qt)&&(bt.classList.remove(qt),this._ngZone.run(()=>wt.next({target:yt.target,isAutofilled:!1}))):(bt.classList.add(qt),this._ngZone.run(()=>wt.next({target:yt.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{bt.addEventListener("animationstart",Jt,O),bt.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(bt,{subject:wt,unlisten:()=>{bt.removeEventListener("animationstart",Jt,O)}}),wt}stopMonitoring(ct){const bt=(0,x.fI)(ct),Dt=this._monitoredElements.get(bt);Dt&&(Dt.unlisten(),Dt.subject.complete(),bt.classList.remove("cdk-text-field-autofill-monitored"),bt.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(bt))}ngOnDestroy(){this._monitoredElements.forEach((ct,bt)=>this.stopMonitoring(bt))}}return tt.\u0275fac=function(ct){return new(ct||tt)(p.LFG(u.t4),p.LFG(p.R0b))},tt.\u0275prov=p.Yz7({token:tt,factory:tt.\u0275fac,providedIn:"root"}),tt})(),V=(()=>{class tt{constructor(ct,bt,Dt,wt){this._elementRef=ct,this._platform=bt,this._ngZone=Dt,this._destroyed=new t.xQ,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=qt=>{this._hasFocus="focus"===qt.type},this._document=wt,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(ct){this._minRows=(0,x.su)(ct),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(ct){this._maxRows=(0,x.su)(ct),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(ct){ct=(0,x.Ig)(ct),this._enabled!==ct&&((this._enabled=ct)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(ct){this._cachedPlaceholderHeight=void 0,ct?this._textareaElement.setAttribute("placeholder",ct):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const ct=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;ct&&(this._textareaElement.style.minHeight=ct)}_setMaxHeight(){const ct=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;ct&&(this._textareaElement.style.maxHeight=ct)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{const ct=this._getWindow();(0,T.R)(ct,"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 ct=this._textareaElement.cloneNode(!1);ct.rows=1,ct.style.position="absolute",ct.style.visibility="hidden",ct.style.border="none",ct.style.padding="0",ct.style.height="",ct.style.minHeight="",ct.style.maxHeight="",ct.style.overflow="hidden",this._textareaElement.parentNode.appendChild(ct),this._cachedLineHeight=ct.clientHeight,ct.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const ct=this._textareaElement,bt=ct.style.marginBottom||"",Dt=this._platform.FIREFOX,wt=Dt&&this._hasFocus,qt=Dt?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";wt&&(ct.style.marginBottom=`${ct.clientHeight}px`),ct.classList.add(qt);const Jt=ct.scrollHeight-4;return ct.classList.remove(qt),wt&&(ct.style.marginBottom=bt),Jt}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const ct=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=ct}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(ct=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const bt=this._elementRef.nativeElement,Dt=bt.value;if(!ct&&this._minRows===this._previousMinRows&&Dt===this._previousValue)return;const wt=this._measureScrollHeight(),qt=Math.max(wt,this._cachedPlaceholderHeight||0);bt.style.height=`${qt}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(bt)):setTimeout(()=>this._scrollToCaretPosition(bt))}),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(ct){const{selectionStart:bt,selectionEnd:Dt}=ct;!this._destroyed.isStopped&&this._hasFocus&&ct.setSelectionRange(bt,Dt)}}return tt.\u0275fac=function(ct){return new(ct||tt)(p.Y36(p.SBq),p.Y36(u.t4),p.Y36(p.R0b),p.Y36(P.K0,8))},tt.\u0275dir=p.lG2({type:tt,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(ct,bt){1&ct&&p.NdJ("input",function(){return bt._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),tt})(),W=(()=>{class tt{}return tt.\u0275fac=function(ct){return new(ct||tt)},tt.\u0275mod=p.oAB({type:tt}),tt.\u0275inj=p.cJS({}),tt})()},57851:(X,j,h)=>{"use strict";h.d(j,{C2:()=>V,HI:()=>tt,Hs:()=>xt,Ud:()=>Vt,VY:()=>W,XJ:()=>ce,Xx:()=>Bt,_0:()=>At,cu:()=>st,nZ:()=>fe,rO:()=>bt});var u=h(95017),p=h(54715),x=h(8929),v=h(591),t=h(21086),T=h(72986),U=h(92198),w=h(7625),P=h(94650),O=h(21281),L=h(40445);class N{constructor(){this.expansionModel=new u.Ov(!0)}toggle(Fe){this.expansionModel.toggle(this._trackByValue(Fe))}expand(Fe){this.expansionModel.select(this._trackByValue(Fe))}collapse(Fe){this.expansionModel.deselect(this._trackByValue(Fe))}isExpanded(Fe){return this.expansionModel.isSelected(this._trackByValue(Fe))}toggleDescendants(Fe){this.expansionModel.isSelected(this._trackByValue(Fe))?this.collapseDescendants(Fe):this.expandDescendants(Fe)}collapseAll(){this.expansionModel.clear()}expandDescendants(Fe){let Ge=[Fe];Ge.push(...this.getDescendants(Fe)),this.expansionModel.select(...Ge.map(Gt=>this._trackByValue(Gt)))}collapseDescendants(Fe){let Ge=[Fe];Ge.push(...this.getDescendants(Fe)),this.expansionModel.deselect(...Ge.map(Gt=>this._trackByValue(Gt)))}_trackByValue(Fe){return this.trackBy?this.trackBy(Fe):Fe}}class V extends N{constructor(Fe,Ge,Gt){super(),this.getLevel=Fe,this.isExpandable=Ge,this.options=Gt,this.options&&(this.trackBy=this.options.trackBy)}getDescendants(Fe){const Gt=[];for(let Te=this.dataNodes.indexOf(Fe)+1;Tethis._trackByValue(Fe)))}}class W extends N{constructor(Fe,Ge){super(),this.getChildren=Fe,this.options=Ge,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();const Fe=this.dataNodes.reduce((Ge,Gt)=>[...Ge,...this.getDescendants(Gt),Gt],[]);this.expansionModel.select(...Fe.map(Ge=>this._trackByValue(Ge)))}getDescendants(Fe){const Ge=[];return this._getDescendants(Ge,Fe),Ge.splice(1)}_getDescendants(Fe,Ge){Fe.push(Ge);const Gt=this.getChildren(Ge);Array.isArray(Gt)?Gt.forEach(Te=>this._getDescendants(Fe,Te)):(0,p.b)(Gt)&&Gt.pipe((0,T.q)(1),(0,U.h)(Boolean)).subscribe(Te=>{for(const ne of Te)this._getDescendants(Fe,ne)})}}const tt=new P.OlP("CDK_TREE_NODE_OUTLET_NODE");let st=(()=>{class Le{constructor(Ge,Gt){this.viewContainer=Ge,this._node=Gt}}return Le.\u0275fac=function(Ge){return new(Ge||Le)(P.Y36(P.s_b),P.Y36(tt,8))},Le.\u0275dir=P.lG2({type:Le,selectors:[["","cdkTreeNodeOutlet",""]]}),Le})();class ct{constructor(Fe){this.$implicit=Fe}}let bt=(()=>{class Le{constructor(Ge){this.template=Ge}}return Le.\u0275fac=function(Ge){return new(Ge||Le)(P.Y36(P.Rgc))},Le.\u0275dir=P.lG2({type:Le,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),Le})(),At=(()=>{class Le{constructor(Ge,Gt){this._differs=Ge,this._changeDetectorRef=Gt,this._onDestroy=new x.xQ,this._levels=new Map,this.viewChange=new v.X({start:0,end:Number.MAX_VALUE})}get dataSource(){return this._dataSource}set dataSource(Ge){this._dataSource!==Ge&&this._switchDataSource(Ge)}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 Ge=this._nodeDefs.filter(Gt=>!Gt.when);this._defaultNodeDef=Ge[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(Ge){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),Ge||this._nodeOutlet.viewContainer.clear(),this._dataSource=Ge,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let Ge;(0,u.Z9)(this._dataSource)?Ge=this._dataSource.connect(this):(0,p.b)(this._dataSource)?Ge=this._dataSource:Array.isArray(this._dataSource)&&(Ge=(0,t.of)(this._dataSource)),Ge&&(this._dataSubscription=Ge.pipe((0,w.R)(this._onDestroy)).subscribe(Gt=>this.renderNodeChanges(Gt)))}renderNodeChanges(Ge,Gt=this._dataDiffer,Te=this._nodeOutlet.viewContainer,ne){const jt=Gt.diff(Ge);!jt||(jt.forEachOperation((re,Xt,oe)=>{if(null==re.previousIndex)this.insertNode(Ge[oe],oe,Te,ne);else if(null==oe)Te.remove(Xt),this._levels.delete(re.item);else{const Me=Te.get(Xt);Te.move(Me,oe)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(Ge,Gt){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(ne=>ne.when&&ne.when(Gt,Ge))||this._defaultNodeDef}insertNode(Ge,Gt,Te,ne){const jt=this._getNodeDef(Ge,Gt),re=new ct(Ge);re.level=this.treeControl.getLevel?this.treeControl.getLevel(Ge):typeof ne<"u"&&this._levels.has(ne)?this._levels.get(ne)+1:0,this._levels.set(Ge,re.level),(Te||this._nodeOutlet.viewContainer).createEmbeddedView(jt.template,re,Gt),xt.mostRecentTreeNode&&(xt.mostRecentTreeNode.data=Ge)}}return Le.\u0275fac=function(Ge){return new(Ge||Le)(P.Y36(P.ZZ4),P.Y36(P.sBO))},Le.\u0275cmp=P.Xpm({type:Le,selectors:[["cdk-tree"]],contentQueries:function(Ge,Gt,Te){if(1&Ge&&P.Suo(Te,bt,5),2&Ge){let ne;P.iGM(ne=P.CRH())&&(Gt._nodeDefs=ne)}},viewQuery:function(Ge,Gt){if(1&Ge&&P.Gf(st,7),2&Ge){let Te;P.iGM(Te=P.CRH())&&(Gt._nodeOutlet=Te.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(Ge,Gt){1&Ge&&P.GkF(0,0)},dependencies:[st],encapsulation:2}),Le})(),xt=(()=>{class Le{constructor(Ge,Gt){this._elementRef=Ge,this._tree=Gt,this._destroyed=new x.xQ,this._dataChanges=new x.xQ,Le.mostRecentTreeNode=this,this.role="treeitem"}get role(){return"treeitem"}set role(Ge){this._elementRef.nativeElement.setAttribute("role",Ge)}get data(){return this._data}set data(Ge){Ge!==this._data&&(this._data=Ge,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 pt(Le){let Fe=Le.parentElement;for(;Fe&&!Ot(Fe);)Fe=Fe.parentElement;return Fe?Fe.classList.contains("cdk-nested-tree-node")?(0,O.su)(Fe.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngOnDestroy(){Le.mostRecentTreeNode===this&&(Le.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return Le.mostRecentTreeNode=null,Le.\u0275fac=function(Ge){return new(Ge||Le)(P.Y36(P.SBq),P.Y36(At))},Le.\u0275dir=P.lG2({type:Le,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(Ge,Gt){2&Ge&&P.uIk("aria-expanded",Gt.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]}),Le})();function Ot(Le){const Fe=Le.classList;return!(!Fe?.contains("cdk-nested-tree-node")&&!Fe?.contains("cdk-tree"))}let Bt=(()=>{class Le extends xt{constructor(Ge,Gt,Te){super(Ge,Gt),this._differs=Te}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);const Ge=this._tree.treeControl.getChildren(this.data);Array.isArray(Ge)?this.updateChildrenNodes(Ge):(0,p.b)(Ge)&&Ge.pipe((0,w.R)(this._destroyed)).subscribe(Gt=>this.updateChildrenNodes(Gt)),this.nodeOutlet.changes.pipe((0,w.R)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(Ge){const Gt=this._getNodeOutlet();Ge&&(this._children=Ge),Gt&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,Gt.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const Ge=this._getNodeOutlet();Ge&&(Ge.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const Ge=this.nodeOutlet;return Ge&&Ge.find(Gt=>!Gt._node||Gt._node===this)}}return Le.\u0275fac=function(Ge){return new(Ge||Le)(P.Y36(P.SBq),P.Y36(At),P.Y36(P.ZZ4))},Le.\u0275dir=P.lG2({type:Le,selectors:[["cdk-nested-tree-node"]],contentQueries:function(Ge,Gt,Te){if(1&Ge&&P.Suo(Te,st,5),2&Ge){let ne;P.iGM(ne=P.CRH())&&(Gt.nodeOutlet=ne)}},hostAttrs:[1,"cdk-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[P._Bn([{provide:xt,useExisting:Le},{provide:tt,useExisting:Le}]),P.qOj]}),Le})();const St=/([A-Za-z%]+)$/;let ce=(()=>{class Le{constructor(Ge,Gt,Te,ne){this._treeNode=Ge,this._tree=Gt,this._element=Te,this._dir=ne,this._destroyed=new x.xQ,this.indentUnits="px",this._indent=40,this._setPadding(),ne&&ne.change.pipe((0,w.R)(this._destroyed)).subscribe(()=>this._setPadding(!0)),Ge._dataChanges.subscribe(()=>this._setPadding())}get level(){return this._level}set level(Ge){this._setLevelInput(Ge)}get indent(){return this._indent}set indent(Ge){this._setIndentInput(Ge)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const Ge=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,Gt=this._level??Ge;return"number"==typeof Gt?`${Gt*this._indent}${this.indentUnits}`:null}_setPadding(Ge=!1){const Gt=this._paddingIndent();if(Gt!==this._currentPadding||Ge){const Te=this._element.nativeElement,ne=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",jt="paddingLeft"===ne?"paddingRight":"paddingLeft";Te.style[ne]=Gt||"",Te.style[jt]="",this._currentPadding=Gt}}_setLevelInput(Ge){this._level=(0,O.su)(Ge,null),this._setPadding()}_setIndentInput(Ge){let Gt=Ge,Te="px";if("string"==typeof Ge){const ne=Ge.split(St);Gt=ne[0],Te=ne[1]||Te}this.indentUnits=Te,this._indent=(0,O.su)(Gt),this._setPadding()}}return Le.\u0275fac=function(Ge){return new(Ge||Le)(P.Y36(xt),P.Y36(At),P.Y36(P.SBq),P.Y36(L.Is,8))},Le.\u0275dir=P.lG2({type:Le,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),Le})(),Vt=(()=>{class Le{constructor(Ge,Gt){this._tree=Ge,this._treeNode=Gt,this._recursive=!1}get recursive(){return this._recursive}set recursive(Ge){this._recursive=(0,O.Ig)(Ge)}_toggle(Ge){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),Ge.stopPropagation()}}return Le.\u0275fac=function(Ge){return new(Ge||Le)(P.Y36(At),P.Y36(xt))},Le.\u0275dir=P.lG2({type:Le,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(Ge,Gt){1&Ge&&P.NdJ("click",function(ne){return Gt._toggle(ne)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),Le})(),fe=(()=>{class Le{}return Le.\u0275fac=function(Ge){return new(Ge||Le)},Le.\u0275mod=P.oAB({type:Le}),Le.\u0275inj=P.cJS({}),Le})()},36895:(X,j,h)=>{"use strict";h.d(j,{Do:()=>wt,ED:()=>js,EM:()=>Ur,H9:()=>Wl,HT:()=>t,JF:()=>ms,JJ:()=>Dl,K0:()=>U,Mx:()=>zn,NF:()=>$l,Nd:()=>Wc,O5:()=>nr,Ov:()=>uc,PC:()=>ps,PM:()=>Pr,RF:()=>Sc,S$:()=>ct,V_:()=>O,Ye:()=>qt,b0:()=>Dt,bD:()=>qa,ez:()=>ed,i8:()=>Qc,mk:()=>Ki,n9:()=>Ml,q:()=>x,qS:()=>He,rS:()=>$s,sg:()=>ja,tP:()=>Hs,uU:()=>ll,w_:()=>T});var u=h(94650);let p=null;function x(){return p}function t(Pt){p||(p=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 x().getBaseHref(this._doc)}onPopState(Yt){const Ve=x().getGlobalEventTarget(this._doc,"window");return Ve.addEventListener("popstate",Yt,!1),()=>Ve.removeEventListener("popstate",Yt)}onHashChange(Yt){const Ve=x().getGlobalEventTarget(this._doc,"window");return Ve.addEventListener("hashchange",Yt,!1),()=>Ve.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,Ve,Ln){N()?this._history.pushState(Yt,Ve,Ln):this.location.hash=Ln}replaceState(Yt,Ve,Ln){N()?this._history.replaceState(Yt,Ve,Ln):this.location.hash=Ln}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 V(){return new L((0,u.LFG)(U))}()},providedIn:"platform"}),Pt})();function N(){return!!window.history.pushState}function W(Pt,de){if(0==Pt.length)return de;if(0==de.length)return Pt;let Yt=0;return Pt.endsWith("/")&&Yt++,de.startsWith("/")&&Yt++,2==Yt?Pt+de.substring(1):1==Yt?Pt+de:Pt+"/"+de}function tt(Pt){const de=Pt.match(/#|\?|$/),Yt=de&&de.index||Pt.length;return Pt.slice(0,Yt-("/"===Pt[Yt-1]?1:0))+Pt.slice(Yt)}function st(Pt){return Pt&&"?"!==Pt[0]?"?"+Pt:Pt}let ct=(()=>{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 bt=new u.OlP("appBaseHref");let Dt=(()=>{class Pt extends ct{constructor(Yt,Ve){super(),this._platformLocation=Yt,this._removeListenerFns=[],this._baseHref=Ve??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 W(this._baseHref,Yt)}path(Yt=!1){const Ve=this._platformLocation.pathname+st(this._platformLocation.search),Ln=this._platformLocation.hash;return Ln&&Yt?`${Ve}${Ln}`:Ve}pushState(Yt,Ve,Ln,kt){const ue=this.prepareExternalUrl(Ln+st(kt));this._platformLocation.pushState(Yt,Ve,ue)}replaceState(Yt,Ve,Ln,kt){const ue=this.prepareExternalUrl(Ln+st(kt));this._platformLocation.replaceState(Yt,Ve,ue)}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(bt,8))},Pt.\u0275prov=u.Yz7({token:Pt,factory:Pt.\u0275fac,providedIn:"root"}),Pt})(),wt=(()=>{class Pt extends ct{constructor(Yt,Ve){super(),this._platformLocation=Yt,this._baseHref="",this._removeListenerFns=[],null!=Ve&&(this._baseHref=Ve)}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 Ve=this._platformLocation.hash;return null==Ve&&(Ve="#"),Ve.length>0?Ve.substring(1):Ve}prepareExternalUrl(Yt){const Ve=W(this._baseHref,Yt);return Ve.length>0?"#"+Ve:Ve}pushState(Yt,Ve,Ln,kt){let ue=this.prepareExternalUrl(Ln+st(kt));0==ue.length&&(ue=this._platformLocation.pathname),this._platformLocation.pushState(Yt,Ve,ue)}replaceState(Yt,Ve,Ln,kt){let ue=this.prepareExternalUrl(Ln+st(kt));0==ue.length&&(ue=this._platformLocation.pathname),this._platformLocation.replaceState(Yt,Ve,ue)}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(bt,8))},Pt.\u0275prov=u.Yz7({token:Pt,factory:Pt.\u0275fac}),Pt})(),qt=(()=>{class Pt{constructor(Yt){this._subject=new u.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=Yt;const Ve=this._locationStrategy.getBaseHref();this._baseHref=tt(At(Ve)),this._locationStrategy.onPopState(Ln=>{this._subject.emit({url:this.path(!0),pop:!0,state:Ln.state,type:Ln.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(Yt=!1){return this.normalize(this._locationStrategy.path(Yt))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(Yt,Ve=""){return this.path()==this.normalize(Yt+st(Ve))}normalize(Yt){return Pt.stripTrailingSlash(function yt(Pt,de){return Pt&&de.startsWith(Pt)?de.substring(Pt.length):de}(this._baseHref,At(Yt)))}prepareExternalUrl(Yt){return Yt&&"/"!==Yt[0]&&(Yt="/"+Yt),this._locationStrategy.prepareExternalUrl(Yt)}go(Yt,Ve="",Ln=null){this._locationStrategy.pushState(Ln,"",Yt,Ve),this._notifyUrlChangeListeners(this.prepareExternalUrl(Yt+st(Ve)),Ln)}replaceState(Yt,Ve="",Ln=null){this._locationStrategy.replaceState(Ln,"",Yt,Ve),this._notifyUrlChangeListeners(this.prepareExternalUrl(Yt+st(Ve)),Ln)}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(Ve=>{this._notifyUrlChangeListeners(Ve.url,Ve.state)})),()=>{const Ve=this._urlChangeListeners.indexOf(Yt);this._urlChangeListeners.splice(Ve,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(Yt="",Ve){this._urlChangeListeners.forEach(Ln=>Ln(Yt,Ve))}subscribe(Yt,Ve,Ln){return this._subject.subscribe({next:Yt,error:Ve,complete:Ln})}}return Pt.normalizeQueryParams=st,Pt.joinWithSlash=W,Pt.stripTrailingSlash=tt,Pt.\u0275fac=function(Yt){return new(Yt||Pt)(u.LFG(ct))},Pt.\u0275prov=u.Yz7({token:Pt,factory:function(){return function Jt(){return new qt((0,u.LFG)(ct))}()},providedIn:"root"}),Pt})();function At(Pt){return Pt.replace(/\/index.html$/,"")}const xt={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 pt=(()=>((pt=pt||{})[pt.Decimal=0]="Decimal",pt[pt.Percent=1]="Percent",pt[pt.Currency=2]="Currency",pt[pt.Scientific=3]="Scientific",pt))(),Bt=(()=>((Bt=Bt||{})[Bt.Format=0]="Format",Bt[Bt.Standalone=1]="Standalone",Bt))(),St=(()=>((St=St||{})[St.Narrow=0]="Narrow",St[St.Abbreviated=1]="Abbreviated",St[St.Wide=2]="Wide",St[St.Short=3]="Short",St))(),ce=(()=>((ce=ce||{})[ce.Short=0]="Short",ce[ce.Medium=1]="Medium",ce[ce.Long=2]="Long",ce[ce.Full=3]="Full",ce))(),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 jt(Pt,de){return oi((0,u.cg1)(Pt)[u.wAp.DateFormat],de)}function re(Pt,de){return oi((0,u.cg1)(Pt)[u.wAp.TimeFormat],de)}function Xt(Pt,de){return oi((0,u.cg1)(Pt)[u.wAp.DateTimeFormat],de)}function oe(Pt,de){const Yt=(0,u.cg1)(Pt),Ve=Yt[u.wAp.NumberSymbols][de];if(typeof Ve>"u"){if(de===Vt.CurrencyDecimal)return Yt[u.wAp.NumberSymbols][Vt.Decimal];if(de===Vt.CurrencyGroup)return Yt[u.wAp.NumberSymbols][Vt.Group]}return Ve}function Me(Pt,de){return(0,u.cg1)(Pt)[u.wAp.NumberFormats][de]}function un(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,de){for(let Yt=de;Yt>-1;Yt--)if(typeof Pt[Yt]<"u")return Pt[Yt];throw new Error("Locale data API: locale data undefined")}function Qe(Pt){const[de,Yt]=Pt.split(":");return{hours:+de,minutes:+Yt}}const Tt=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Rt={},le=/((?:[^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 be=(()=>((be=be||{})[be.Short=0]="Short",be[be.ShortGMT=1]="ShortGMT",be[be.Long=2]="Long",be[be.Extended=3]="Extended",be))(),De=(()=>((De=De||{})[De.FullYear=0]="FullYear",De[De.Month=1]="Month",De[De.Date=2]="Date",De[De.Hours=3]="Hours",De[De.Minutes=4]="Minutes",De[De.Seconds=5]="Seconds",De[De.FractionalSeconds=6]="FractionalSeconds",De[De.Day=7]="Day",De))(),hn=(()=>((hn=hn||{})[hn.DayPeriods=0]="DayPeriods",hn[hn.Days=1]="Days",hn[hn.Months=2]="Months",hn[hn.Eras=3]="Eras",hn))();function qn(Pt,de,Yt,Ve){let Ln=function Ae(Pt){if(Sn(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[Ln,kt=1,ue=1]=Pt.split("-").map(Ce=>+Ce);return mi(Ln,kt-1,ue)}const Yt=parseFloat(Pt);if(!isNaN(Pt-Yt))return new Date(Yt);let Ve;if(Ve=Pt.match(Tt))return function Ie(Pt){const de=new Date(0);let Yt=0,Ve=0;const Ln=Pt[8]?de.setUTCFullYear:de.setFullYear,kt=Pt[8]?de.setUTCHours:de.setHours;Pt[9]&&(Yt=Number(Pt[9]+Pt[10]),Ve=Number(Pt[9]+Pt[11])),Ln.call(de,Number(Pt[1]),Number(Pt[2])-1,Number(Pt[3]));const ue=Number(Pt[4]||0)-Yt,Ce=Number(Pt[5]||0)-Ve,Ke=Number(Pt[6]||0),bn=Math.floor(1e3*parseFloat("0."+(Pt[7]||0)));return kt.call(de,ue,Ce,Ke,bn),de}(Ve)}const de=new Date(Pt);if(!Sn(de))throw new Error(`Unable to convert "${Pt}" into a date`);return de}(Pt);de=Di(Yt,de)||de;let Ce,ue=[];for(;de;){if(Ce=le.exec(de),!Ce){ue.push(de);break}{ue=ue.concat(Ce.slice(1));const Xn=ue.pop();if(!Xn)break;de=Xn}}let Ke=Ln.getTimezoneOffset();Ve&&(Ke=Nt(Ve,Ke),Ln=function zt(Pt,de,Yt){const Ve=Yt?-1:1,Ln=Pt.getTimezoneOffset();return function Se(Pt,de){return(Pt=new Date(Pt.getTime())).setMinutes(Pt.getMinutes()+de),Pt}(Pt,Ve*(Nt(de,Ln)-Ln))}(Ln,Ve,!0));let bn="";return ue.forEach(Xn=>{const ei=function ge(Pt){if(sn[Pt])return sn[Pt];let de;switch(Pt){case"G":case"GG":case"GGG":de=gn(hn.Eras,St.Abbreviated);break;case"GGGG":de=gn(hn.Eras,St.Wide);break;case"GGGGG":de=gn(hn.Eras,St.Narrow);break;case"y":de=Vn(De.FullYear,1,0,!1,!0);break;case"yy":de=Vn(De.FullYear,2,0,!0,!0);break;case"yyy":de=Vn(De.FullYear,3,0,!1,!0);break;case"yyyy":de=Vn(De.FullYear,4,0,!1,!0);break;case"Y":de=fn(1);break;case"YY":de=fn(2,!0);break;case"YYY":de=fn(3);break;case"YYYY":de=fn(4);break;case"M":case"L":de=Vn(De.Month,1,1);break;case"MM":case"LL":de=Vn(De.Month,2,1);break;case"MMM":de=gn(hn.Months,St.Abbreviated);break;case"MMMM":de=gn(hn.Months,St.Wide);break;case"MMMMM":de=gn(hn.Months,St.Narrow);break;case"LLL":de=gn(hn.Months,St.Abbreviated,Bt.Standalone);break;case"LLLL":de=gn(hn.Months,St.Wide,Bt.Standalone);break;case"LLLLL":de=gn(hn.Months,St.Narrow,Bt.Standalone);break;case"w":de=rn(1);break;case"ww":de=rn(2);break;case"W":de=rn(1,!0);break;case"d":de=Vn(De.Date,1);break;case"dd":de=Vn(De.Date,2);break;case"c":case"cc":de=Vn(De.Day,1);break;case"ccc":de=gn(hn.Days,St.Abbreviated,Bt.Standalone);break;case"cccc":de=gn(hn.Days,St.Wide,Bt.Standalone);break;case"ccccc":de=gn(hn.Days,St.Narrow,Bt.Standalone);break;case"cccccc":de=gn(hn.Days,St.Short,Bt.Standalone);break;case"E":case"EE":case"EEE":de=gn(hn.Days,St.Abbreviated);break;case"EEEE":de=gn(hn.Days,St.Wide);break;case"EEEEE":de=gn(hn.Days,St.Narrow);break;case"EEEEEE":de=gn(hn.Days,St.Short);break;case"a":case"aa":case"aaa":de=gn(hn.DayPeriods,St.Abbreviated);break;case"aaaa":de=gn(hn.DayPeriods,St.Wide);break;case"aaaaa":de=gn(hn.DayPeriods,St.Narrow);break;case"b":case"bb":case"bbb":de=gn(hn.DayPeriods,St.Abbreviated,Bt.Standalone,!0);break;case"bbbb":de=gn(hn.DayPeriods,St.Wide,Bt.Standalone,!0);break;case"bbbbb":de=gn(hn.DayPeriods,St.Narrow,Bt.Standalone,!0);break;case"B":case"BB":case"BBB":de=gn(hn.DayPeriods,St.Abbreviated,Bt.Format,!0);break;case"BBBB":de=gn(hn.DayPeriods,St.Wide,Bt.Format,!0);break;case"BBBBB":de=gn(hn.DayPeriods,St.Narrow,Bt.Format,!0);break;case"h":de=Vn(De.Hours,1,-12);break;case"hh":de=Vn(De.Hours,2,-12);break;case"H":de=Vn(De.Hours,1);break;case"HH":de=Vn(De.Hours,2);break;case"m":de=Vn(De.Minutes,1);break;case"mm":de=Vn(De.Minutes,2);break;case"s":de=Vn(De.Seconds,1);break;case"ss":de=Vn(De.Seconds,2);break;case"S":de=Vn(De.FractionalSeconds,1);break;case"SS":de=Vn(De.FractionalSeconds,2);break;case"SSS":de=Vn(De.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":de=Ee(be.Short);break;case"ZZZZZ":de=Ee(be.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":de=Ee(be.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":de=Ee(be.Long);break;default:return null}return sn[Pt]=de,de}(Xn);bn+=ei?ei(Ln,Yt,Ke):"''"===Xn?"'":Xn.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),bn}function mi(Pt,de,Yt){const Ve=new Date(0);return Ve.setFullYear(Pt,de,Yt),Ve.setHours(0,0,0),Ve}function Di(Pt,de){const Yt=function fe(Pt){return(0,u.cg1)(Pt)[u.wAp.LocaleId]}(Pt);if(Rt[Yt]=Rt[Yt]||{},Rt[Yt][de])return Rt[Yt][de];let Ve="";switch(de){case"shortDate":Ve=jt(Pt,ce.Short);break;case"mediumDate":Ve=jt(Pt,ce.Medium);break;case"longDate":Ve=jt(Pt,ce.Long);break;case"fullDate":Ve=jt(Pt,ce.Full);break;case"shortTime":Ve=re(Pt,ce.Short);break;case"mediumTime":Ve=re(Pt,ce.Medium);break;case"longTime":Ve=re(Pt,ce.Long);break;case"fullTime":Ve=re(Pt,ce.Full);break;case"short":const Ln=Di(Pt,"shortTime"),kt=Di(Pt,"shortDate");Ve=bo(Xt(Pt,ce.Short),[Ln,kt]);break;case"medium":const ue=Di(Pt,"mediumTime"),Ce=Di(Pt,"mediumDate");Ve=bo(Xt(Pt,ce.Medium),[ue,Ce]);break;case"long":const Ke=Di(Pt,"longTime"),bn=Di(Pt,"longDate");Ve=bo(Xt(Pt,ce.Long),[Ke,bn]);break;case"full":const Xn=Di(Pt,"fullTime"),ei=Di(Pt,"fullDate");Ve=bo(Xt(Pt,ce.Full),[Xn,ei])}return Ve&&(Rt[Yt][de]=Ve),Ve}function bo(Pt,de){return de&&(Pt=Pt.replace(/\{([^}]+)}/g,function(Yt,Ve){return null!=de&&Ve in de?de[Ve]:Yt})),Pt}function hi(Pt,de,Yt="-",Ve,Ln){let kt="";(Pt<0||Ln&&Pt<=0)&&(Ln?Pt=1-Pt:(Pt=-Pt,kt=Yt));let ue=String(Pt);for(;ue.length0||Ce>-Yt)&&(Ce+=Yt),Pt===De.Hours)0===Ce&&-12===Yt&&(Ce=12);else if(Pt===De.FractionalSeconds)return function Yn(Pt,de){return hi(Pt,3).substring(0,de)}(Ce,de);const Ke=oe(ue,Vt.MinusSign);return hi(Ce,de,Ke,Ve,Ln)}}function gn(Pt,de,Yt=Bt.Format,Ve=!1){return function(Ln,kt){return function Ye(Pt,de,Yt,Ve,Ln,kt){switch(Yt){case hn.Months:return function Ge(Pt,de,Yt){const Ve=(0,u.cg1)(Pt),kt=oi([Ve[u.wAp.MonthsFormat],Ve[u.wAp.MonthsStandalone]],de);return oi(kt,Yt)}(de,Ln,Ve)[Pt.getMonth()];case hn.Days:return function Fe(Pt,de,Yt){const Ve=(0,u.cg1)(Pt),kt=oi([Ve[u.wAp.DaysFormat],Ve[u.wAp.DaysStandalone]],de);return oi(kt,Yt)}(de,Ln,Ve)[Pt.getDay()];case hn.DayPeriods:const ue=Pt.getHours(),Ce=Pt.getMinutes();if(kt){const bn=function Dn(Pt){const de=(0,u.cg1)(Pt);return un(de),(de[u.wAp.ExtraData][2]||[]).map(Ve=>"string"==typeof Ve?Qe(Ve):[Qe(Ve[0]),Qe(Ve[1])])}(de),Xn=function ii(Pt,de,Yt){const Ve=(0,u.cg1)(Pt);un(Ve);const kt=oi([Ve[u.wAp.ExtraData][0],Ve[u.wAp.ExtraData][1]],de)||[];return oi(kt,Yt)||[]}(de,Ln,Ve),ei=bn.findIndex(Ai=>{if(Array.isArray(Ai)){const[wi,xo]=Ai,xi=ue>=wi.hours&&Ce>=wi.minutes,Yi=ue0?Math.floor(Ln/60):Math.ceil(Ln/60);switch(Pt){case be.Short:return(Ln>=0?"+":"")+hi(ue,2,kt)+hi(Math.abs(Ln%60),2,kt);case be.ShortGMT:return"GMT"+(Ln>=0?"+":"")+hi(ue,1,kt);case be.Long:return"GMT"+(Ln>=0?"+":"")+hi(ue,2,kt)+":"+hi(Math.abs(Ln%60),2,kt);case be.Extended:return 0===Ve?"Z":(Ln>=0?"+":"")+hi(ue,2,kt)+":"+hi(Math.abs(Ln%60),2,kt);default:throw new Error(`Unknown zone width "${Pt}"`)}}}function ie(Pt){return mi(Pt.getFullYear(),Pt.getMonth(),Pt.getDate()+(4-Pt.getDay()))}function rn(Pt,de=!1){return function(Yt,Ve){let Ln;if(de){const kt=new Date(Yt.getFullYear(),Yt.getMonth(),1).getDay()-1,ue=Yt.getDate();Ln=1+Math.floor((ue+kt)/7)}else{const kt=ie(Yt),ue=function ze(Pt){const de=mi(Pt,0,1).getDay();return mi(Pt,0,1+(de<=4?4:11)-de)}(kt.getFullYear()),Ce=kt.getTime()-ue.getTime();Ln=1+Math.round(Ce/6048e5)}return hi(Ln,Pt,oe(Ve,Vt.MinusSign))}}function fn(Pt,de=!1){return function(Yt,Ve){return hi(ie(Yt).getFullYear(),Pt,oe(Ve,Vt.MinusSign),de)}}const sn={};function Nt(Pt,de){Pt=Pt.replace(/:/g,"");const Yt=Date.parse("Jan 01, 1970 00:00:00 "+Pt)/6e4;return isNaN(Yt)?de:Yt}function Sn(Pt){return Pt instanceof Date&&!isNaN(Pt.valueOf())}const Ei=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function Lo(Pt,de,Yt,Ve,Ln,kt,ue=!1){let Ce="",Ke=!1;if(isFinite(Pt)){let bn=function we(Pt){let Ve,Ln,kt,ue,Ce,de=Math.abs(Pt)+"",Yt=0;for((Ln=de.indexOf("."))>-1&&(de=de.replace(".","")),(kt=de.search(/e/i))>0?(Ln<0&&(Ln=kt),Ln+=+de.slice(kt+1),de=de.substring(0,kt)):Ln<0&&(Ln=de.length),kt=0;"0"===de.charAt(kt);kt++);if(kt===(Ce=de.length))Ve=[0],Ln=1;else{for(Ce--;"0"===de.charAt(Ce);)Ce--;for(Ln-=kt,Ve=[],ue=0;kt<=Ce;kt++,ue++)Ve[ue]=Number(de.charAt(kt))}return Ln>22&&(Ve=Ve.splice(0,21),Yt=Ln-1,Ln=1),{digits:Ve,exponent:Yt,integerLen:Ln}}(Pt);ue&&(bn=function Re(Pt){if(0===Pt.digits[0])return Pt;const de=Pt.digits.length-Pt.integerLen;return Pt.exponent?Pt.exponent+=2:(0===de?Pt.digits.push(0,0):1===de&&Pt.digits.push(0),Pt.integerLen+=2),Pt}(bn));let Xn=de.minInt,ei=de.minFrac,Ai=de.maxFrac;if(kt){const oa=kt.match(Ei);if(null===oa)throw new Error(`${kt} is not a valid digit info`);const xa=oa[1],Xr=oa[3],vs=oa[5];null!=xa&&(Xn=Q(xa)),null!=Xr&&(ei=Q(Xr)),null!=vs?Ai=Q(vs):null!=Xr&&ei>Ai&&(Ai=ei)}!function on(Pt,de,Yt){if(de>Yt)throw new Error(`The minimum number of digits after fraction (${de}) is higher than the maximum (${Yt}).`);let Ve=Pt.digits,Ln=Ve.length-Pt.integerLen;const kt=Math.min(Math.max(de,Ln),Yt);let ue=kt+Pt.integerLen,Ce=Ve[ue];if(ue>0){Ve.splice(Math.max(Pt.integerLen,ue));for(let ei=ue;ei=5)if(ue-1<0){for(let ei=0;ei>ue;ei--)Ve.unshift(0),Pt.integerLen++;Ve.unshift(1),Pt.integerLen++}else Ve[ue-1]++;for(;Ln=bn?xo.pop():Ke=!1),Ai>=10?1:0},0);Xn&&(Ve.unshift(Xn),Pt.integerLen++)}(bn,ei,Ai);let wi=bn.digits,xo=bn.integerLen;const xi=bn.exponent;let Yi=[];for(Ke=wi.every(oa=>!oa);xo0?Yi=wi.splice(xo,wi.length):(Yi=wi,wi=[0]);const pa=[];for(wi.length>=de.lgSize&&pa.unshift(wi.splice(-de.lgSize,wi.length).join(""));wi.length>de.gSize;)pa.unshift(wi.splice(-de.gSize,wi.length).join(""));wi.length&&pa.unshift(wi.join("")),Ce=pa.join(oe(Yt,Ve)),Yi.length&&(Ce+=oe(Yt,Ln)+Yi.join("")),xi&&(Ce+=oe(Yt,Vt.Exponential)+"+"+xi)}else Ce=oe(Yt,Vt.Infinity);return Ce=Pt<0&&!Ke?de.negPre+Ce+de.negSuf:de.posPre+Ce+de.posSuf,Ce}function Rn(Pt,de="-"){const Yt={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},Ve=Pt.split(";"),Ln=Ve[0],kt=Ve[1],ue=-1!==Ln.indexOf(".")?Ln.split("."):[Ln.substring(0,Ln.lastIndexOf("0")+1),Ln.substring(Ln.lastIndexOf("0")+1)],Ce=ue[0],Ke=ue[1]||"";Yt.posPre=Ce.substring(0,Ce.indexOf("#"));for(let Xn=0;Xn{class Pt{constructor(Yt,Ve,Ln,kt){this._iterableDiffers=Yt,this._keyValueDiffers=Ve,this._ngEl=Ln,this._renderer=kt,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(Ve=>this._toggleClass(Ve.key,Ve.currentValue)),Yt.forEachChangedItem(Ve=>this._toggleClass(Ve.key,Ve.currentValue)),Yt.forEachRemovedItem(Ve=>{Ve.previousValue&&this._toggleClass(Ve.key,!1)})}_applyIterableChanges(Yt){Yt.forEachAddedItem(Ve=>{if("string"!=typeof Ve.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,u.AaK)(Ve.item)}`);this._toggleClass(Ve.item,!0)}),Yt.forEachRemovedItem(Ve=>this._toggleClass(Ve.item,!1))}_applyClasses(Yt){Yt&&(Array.isArray(Yt)||Yt instanceof Set?Yt.forEach(Ve=>this._toggleClass(Ve,!0)):Object.keys(Yt).forEach(Ve=>this._toggleClass(Ve,!!Yt[Ve])))}_removeClasses(Yt){Yt&&(Array.isArray(Yt)||Yt instanceof Set?Yt.forEach(Ve=>this._toggleClass(Ve,!1)):Object.keys(Yt).forEach(Ve=>this._toggleClass(Ve,!1)))}_toggleClass(Yt,Ve){(Yt=Yt.trim())&&Yt.split(/\s+/g).forEach(Ln=>{Ve?this._renderer.addClass(this._ngEl.nativeElement,Ln):this._renderer.removeClass(this._ngEl.nativeElement,Ln)})}}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 $r{constructor(de,Yt,Ve,Ln){this.$implicit=de,this.ngForOf=Yt,this.index=Ve,this.count=Ln}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,Ve,Ln){this._viewContainer=Yt,this._template=Ve,this._differs=Ln,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 Ve=this._viewContainer;Yt.forEachOperation((Ln,kt,ue)=>{if(null==Ln.previousIndex)Ve.createEmbeddedView(this._template,new $r(Ln.item,this._ngForOf,-1,-1),null===ue?void 0:ue);else if(null==ue)Ve.remove(null===kt?void 0:kt);else if(null!==kt){const Ce=Ve.get(kt);Ve.move(Ce,ue),Er(Ce,Ln)}});for(let Ln=0,kt=Ve.length;Ln{Er(Ve.get(Ln.currentIndex),Ln)})}static ngTemplateContextGuard(Yt,Ve){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 Er(Pt,de){Pt.context.$implicit=de.item}let nr=(()=>{class Pt{constructor(Yt,Ve){this._viewContainer=Yt,this._context=new ds,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Ve}set ngIf(Yt){this._context.$implicit=this._context.ngIf=Yt,this._updateView()}set ngIfThen(Yt){Tr("ngIfThen",Yt),this._thenTemplateRef=Yt,this._thenViewRef=null,this._updateView()}set ngIfElse(Yt){Tr("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,Ve){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 ds{constructor(){this.$implicit=null,this.ngIf=null}}function Tr(Pt,de){if(de&&!de.createEmbeddedView)throw new Error(`${Pt} must be a TemplateRef, but received '${(0,u.AaK)(de)}'.`)}class Ar{constructor(de,Yt){this._viewContainerRef=de,this._templateRef=Yt,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(de){de&&!this._created?this.create():!de&&this._created&&this.destroy()}}let Sc=(()=>{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 Ve=Yt==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Ve,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Ve}_updateDefaultCases(Yt){if(this._defaultViews&&Yt!==this._defaultUsed){this._defaultUsed=Yt;for(let Ve=0;Ve{class Pt{constructor(Yt,Ve,Ln){this.ngSwitch=Ln,Ln._addCase(),this._view=new Ar(Yt,Ve)}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(Sc,9))},Pt.\u0275dir=u.lG2({type:Pt,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),Pt})(),js=(()=>{class Pt{constructor(Yt,Ve,Ln){Ln._addDefault(new Ar(Yt,Ve))}}return Pt.\u0275fac=function(Yt){return new(Yt||Pt)(u.Y36(u.s_b),u.Y36(u.Rgc),u.Y36(Sc,9))},Pt.\u0275dir=u.lG2({type:Pt,selectors:[["","ngSwitchDefault",""]],standalone:!0}),Pt})(),ps=(()=>{class Pt{constructor(Yt,Ve,Ln){this._ngEl=Yt,this._differs=Ve,this._renderer=Ln,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,Ve){const[Ln,kt]=Yt.split("."),ue=-1===Ln.indexOf("-")?void 0:u.JOm.DashCase;null!=Ve?this._renderer.setStyle(this._ngEl.nativeElement,Ln,kt?`${Ve}${kt}`:Ve,ue):this._renderer.removeStyle(this._ngEl.nativeElement,Ln,ue)}_applyChanges(Yt){Yt.forEachRemovedItem(Ve=>this._setStyle(Ve.key,null)),Yt.forEachAddedItem(Ve=>this._setStyle(Ve.key,Ve.currentValue)),Yt.forEachChangedItem(Ve=>this._setStyle(Ve.key,Ve.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 Ve=this._viewContainerRef;if(this._viewRef&&Ve.remove(Ve.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:Ln,ngTemplateOutletContext:kt,ngTemplateOutletInjector:ue}=this;this._viewRef=Ve.createEmbeddedView(Ln,kt,ue?{injector:ue}: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 Fr(Pt,de){return new u.vHH(2100,!1)}class Ud{createSubscription(de,Yt){return de.subscribe({next:Yt,error:Ve=>{throw Ve}})}dispose(de){de.unsubscribe()}}class jd{createSubscription(de,Yt){return de.then(Yt,Ve=>{throw Ve})}dispose(de){}}const Gc=new jd,lc=new Ud;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,Ve=>this._updateLatestValue(Yt,Ve))}_selectStrategy(Yt){if((0,u.QGY)(Yt))return Gc;if((0,u.F4k)(Yt))return lc;throw Fr()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(Yt,Ve){Yt===this._obj&&(this._latestValue=Ve,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})(),Qc=(()=>{class Pt{transform(Yt){if(null==Yt)return null;if("string"!=typeof Yt)throw Fr();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 jc=/(?:[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 $s=(()=>{class Pt{transform(Yt){if(null==Yt)return null;if("string"!=typeof Yt)throw Fr();return Yt.replace(jc,Ve=>Ve[0].toUpperCase()+Ve.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 Ks=new u.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let ll=(()=>{class Pt{constructor(Yt,Ve){this.locale=Yt,this.defaultTimezone=Ve}transform(Yt,Ve="mediumDate",Ln,kt){if(null==Yt||""===Yt||Yt!=Yt)return null;try{return qn(Yt,Ve,kt||this.locale,Ln??this.defaultTimezone??void 0)}catch(ue){throw Fr()}}}return Pt.\u0275fac=function(Yt){return new(Yt||Pt)(u.Y36(u.soG,16),u.Y36(Ks,24))},Pt.\u0275pipe=u.Yjl({name:"date",type:Pt,pure:!0,standalone:!0}),Pt})(),Wc=(()=>{class Pt{constructor(Yt){this.differs=Yt,this.keyValues=[],this.compareFn=Xs}transform(Yt,Ve=Xs){if(!Yt||!(Yt instanceof Map)&&"object"!=typeof Yt)return null;this.differ||(this.differ=this.differs.find(Yt).create());const Ln=this.differ.diff(Yt),kt=Ve!==this.compareFn;return Ln&&(this.keyValues=[],Ln.forEachItem(ue=>{this.keyValues.push(function Ys(Pt,de){return{key:Pt,value:de}}(ue.key,ue.currentValue))})),(Ln||kt)&&(this.keyValues.sort(Ve),this.compareFn=Ve),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 Xs(Pt,de){const Yt=Pt.key,Ve=de.key;if(Yt===Ve)return 0;if(void 0===Yt)return 1;if(void 0===Ve)return-1;if(null===Yt)return 1;if(null===Ve)return-1;if("string"==typeof Yt&&"string"==typeof Ve)return Yt{class Pt{constructor(Yt){this._locale=Yt}transform(Yt,Ve,Ln){if(!Ca(Yt))return null;Ln=Ln||this._locale;try{return function Ne(Pt,de,Yt){return Lo(Pt,Rn(Me(de,pt.Decimal),oe(de,Vt.MinusSign)),de,Vt.Group,Vt.Decimal,Yt)}(ir(Yt),Ln,Ve)}catch(kt){throw Fr()}}}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})(),Wl=(()=>{class Pt{constructor(Yt,Ve="USD"){this._locale=Yt,this._defaultCurrencyCode=Ve}transform(Yt,Ve=this._defaultCurrencyCode,Ln="symbol",kt,ue){if(!Ca(Yt))return null;ue=ue||this._locale,"boolean"==typeof Ln&&(Ln=Ln?"symbol":"code");let Ce=Ve||this._defaultCurrencyCode;"code"!==Ln&&(Ce="symbol"===Ln||"symbol-narrow"===Ln?function te(Pt,de,Yt="en"){const Ve=function vn(Pt){return(0,u.cg1)(Pt)[u.wAp.Currencies]}(Yt)[Pt]||xt[Pt]||[],Ln=Ve[1];return"narrow"===de&&"string"==typeof Ln?Ln:Ve[0]||Pt}(Ce,"symbol"===Ln?"wide":"narrow",ue):Ln);try{return function ha(Pt,de,Yt,Ve,Ln){const ue=Rn(Me(de,pt.Currency),oe(de,Vt.MinusSign));return ue.minFrac=function K(Pt){let de;const Yt=xt[Pt];return Yt&&(de=Yt[2]),"number"==typeof de?de:2}(Ve),ue.maxFrac=ue.minFrac,Lo(Pt,ue,de,Vt.CurrencyGroup,Vt.CurrencyDecimal,Ln).replace("\xa4",Yt).replace("\xa4","").trim()}(ir(Yt),ue,Ce,Ve,kt)}catch(Ke){throw Fr()}}}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 Ca(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 ed=(()=>{class Pt{}return Pt.\u0275fac=function(Yt){return new(Yt||Pt)},Pt.\u0275mod=u.oAB({type:Pt}),Pt.\u0275inj=u.cJS({}),Pt})();const qa="browser";function $l(Pt){return Pt===qa}function Pr(Pt){return"server"===Pt}let Ur=(()=>{class Pt{}return Pt.\u0275prov=(0,u.Yz7)({token:Pt,providedIn:"root",factory:()=>new vr((0,u.LFG)(U),window)}),Pt})();class vr{constructor(de,Yt){this.document=de,this.window=Yt,this.offset=()=>[0,0]}setOffset(de){this.offset=Array.isArray(de)?()=>de:de}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(de){this.supportsScrolling()&&this.window.scrollTo(de[0],de[1])}scrollToAnchor(de){if(!this.supportsScrolling())return;const Yt=function Qn(Pt,de){const Yt=Pt.getElementById(de)||Pt.getElementsByName(de)[0];if(Yt)return Yt;if("function"==typeof Pt.createTreeWalker&&Pt.body&&(Pt.body.createShadowRoot||Pt.body.attachShadow)){const Ve=Pt.createTreeWalker(Pt.body,NodeFilter.SHOW_ELEMENT);let Ln=Ve.currentNode;for(;Ln;){const kt=Ln.shadowRoot;if(kt){const ue=kt.getElementById(de)||kt.querySelector(`[name="${de}"]`);if(ue)return ue}Ln=Ve.nextNode()}}return null}(this.document,de);Yt&&(this.scrollToElement(Yt),Yt.focus())}setHistoryScrollRestoration(de){if(this.supportScrollRestoration()){const Yt=this.window.history;Yt&&Yt.scrollRestoration&&(Yt.scrollRestoration=de)}}scrollToElement(de){const Yt=de.getBoundingClientRect(),Ve=Yt.left+this.window.pageXOffset,Ln=Yt.top+this.window.pageYOffset,kt=this.offset();this.window.scrollTo(Ve-kt[0],Ln-kt[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const de=as(this.window.history)||as(Object.getPrototypeOf(this.window.history));return!(!de||!de.writable&&!de.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function as(Pt){return Object.getOwnPropertyDescriptor(Pt,"scrollRestoration")}class ms{}},80529:(X,j,h)=>{"use strict";h.d(j,{JF:()=>K,LE:()=>bt,PG:()=>w,TP:()=>Fe,Zn:()=>ce,eN:()=>fe});var u=h(36895),p=h(94650),x=h(21086),v=h(56498),t=h(21406),T=h(92198),U=h(24850);class w{}class P{}class O{constructor(be){this.normalizedNames=new Map,this.lazyUpdate=null,be?this.lazyInit="string"==typeof be?()=>{this.headers=new Map,be.split("\n").forEach(De=>{const hn=De.indexOf(":");if(hn>0){const qn=De.slice(0,hn),mi=qn.toLowerCase(),Di=De.slice(hn+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(be).forEach(De=>{let hn=be[De];const qn=De.toLowerCase();"string"==typeof hn&&(hn=[hn]),hn.length>0&&(this.headers.set(qn,hn),this.maybeSetNormalizedName(De,qn))})}:this.headers=new Map}has(be){return this.init(),this.headers.has(be.toLowerCase())}get(be){this.init();const De=this.headers.get(be.toLowerCase());return De&&De.length>0?De[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(be){return this.init(),this.headers.get(be.toLowerCase())||null}append(be,De){return this.clone({name:be,value:De,op:"a"})}set(be,De){return this.clone({name:be,value:De,op:"s"})}delete(be,De){return this.clone({name:be,value:De,op:"d"})}maybeSetNormalizedName(be,De){this.normalizedNames.has(De)||this.normalizedNames.set(De,be)}init(){this.lazyInit&&(this.lazyInit instanceof O?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(be=>this.applyUpdate(be)),this.lazyUpdate=null))}copyFrom(be){be.init(),Array.from(be.headers.keys()).forEach(De=>{this.headers.set(De,be.headers.get(De)),this.normalizedNames.set(De,be.normalizedNames.get(De))})}clone(be){const De=new O;return De.lazyInit=this.lazyInit&&this.lazyInit instanceof O?this.lazyInit:this,De.lazyUpdate=(this.lazyUpdate||[]).concat([be]),De}applyUpdate(be){const De=be.name.toLowerCase();switch(be.op){case"a":case"s":let hn=be.value;if("string"==typeof hn&&(hn=[hn]),0===hn.length)return;this.maybeSetNormalizedName(be.name,De);const qn=("a"===be.op?this.headers.get(De):void 0)||[];qn.push(...hn),this.headers.set(De,qn);break;case"d":const mi=be.value;if(mi){let Di=this.headers.get(De);if(!Di)return;Di=Di.filter(bo=>-1===mi.indexOf(bo)),0===Di.length?(this.headers.delete(De),this.normalizedNames.delete(De)):this.headers.set(De,Di)}else this.headers.delete(De),this.normalizedNames.delete(De)}}forEach(be){this.init(),Array.from(this.normalizedNames.keys()).forEach(De=>be(this.normalizedNames.get(De),this.headers.get(De)))}}class N{encodeKey(be){return st(be)}encodeValue(be){return st(be)}decodeKey(be){return decodeURIComponent(be)}decodeValue(be){return decodeURIComponent(be)}}const W=/%(\d[a-f0-9])/gi,tt={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function st(le){return encodeURIComponent(le).replace(W,(be,De)=>tt[De]??be)}function ct(le){return`${le}`}class bt{constructor(be={}){if(this.updates=null,this.cloneFrom=null,this.encoder=be.encoder||new N,be.fromString){if(be.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function V(le,be){const De=new Map;return le.length>0&&le.replace(/^\?/,"").split("&").forEach(qn=>{const mi=qn.indexOf("="),[Di,bo]=-1==mi?[be.decodeKey(qn),""]:[be.decodeKey(qn.slice(0,mi)),be.decodeValue(qn.slice(mi+1))],hi=De.get(Di)||[];hi.push(bo),De.set(Di,hi)}),De}(be.fromString,this.encoder)}else be.fromObject?(this.map=new Map,Object.keys(be.fromObject).forEach(De=>{const hn=be.fromObject[De],qn=Array.isArray(hn)?hn.map(ct):[ct(hn)];this.map.set(De,qn)})):this.map=null}has(be){return this.init(),this.map.has(be)}get(be){this.init();const De=this.map.get(be);return De?De[0]:null}getAll(be){return this.init(),this.map.get(be)||null}keys(){return this.init(),Array.from(this.map.keys())}append(be,De){return this.clone({param:be,value:De,op:"a"})}appendAll(be){const De=[];return Object.keys(be).forEach(hn=>{const qn=be[hn];Array.isArray(qn)?qn.forEach(mi=>{De.push({param:hn,value:mi,op:"a"})}):De.push({param:hn,value:qn,op:"a"})}),this.clone(De)}set(be,De){return this.clone({param:be,value:De,op:"s"})}delete(be,De){return this.clone({param:be,value:De,op:"d"})}toString(){return this.init(),this.keys().map(be=>{const De=this.encoder.encodeKey(be);return this.map.get(be).map(hn=>De+"="+this.encoder.encodeValue(hn)).join("&")}).filter(be=>""!==be).join("&")}clone(be){const De=new bt({encoder:this.encoder});return De.cloneFrom=this.cloneFrom||this,De.updates=(this.updates||[]).concat(be),De}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(be=>this.map.set(be,this.cloneFrom.map.get(be))),this.updates.forEach(be=>{switch(be.op){case"a":case"s":const De=("a"===be.op?this.map.get(be.param):void 0)||[];De.push(ct(be.value)),this.map.set(be.param,De);break;case"d":if(void 0===be.value){this.map.delete(be.param);break}{let hn=this.map.get(be.param)||[];const qn=hn.indexOf(ct(be.value));-1!==qn&&hn.splice(qn,1),hn.length>0?this.map.set(be.param,hn):this.map.delete(be.param)}}}),this.cloneFrom=this.updates=null)}}class wt{constructor(){this.map=new Map}set(be,De){return this.map.set(be,De),this}get(be){return this.map.has(be)||this.map.set(be,be.defaultValue()),this.map.get(be)}delete(be){return this.map.delete(be),this}has(be){return this.map.has(be)}keys(){return this.map.keys()}}function Jt(le){return typeof ArrayBuffer<"u"&&le instanceof ArrayBuffer}function yt(le){return typeof Blob<"u"&&le instanceof Blob}function At(le){return typeof FormData<"u"&&le instanceof FormData}class pt{constructor(be,De,hn,qn){let mi;if(this.url=De,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=be.toUpperCase(),function qt(le){switch(le){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||qn?(this.body=void 0!==hn?hn:null,mi=qn):mi=hn,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 wt),this.params){const Di=this.params.toString();if(0===Di.length)this.urlWithParams=De;else{const bo=De.indexOf("?");this.urlWithParams=De+(-1===bo?"?":boJe.set(gn,be.setHeaders[gn]),hi)),be.setParams&&(Yn=Object.keys(be.setParams).reduce((Je,gn)=>Je.set(gn,be.setParams[gn]),Yn)),new pt(De,hn,mi,{params:Yn,headers:hi,context:Vn,reportProgress:bo,responseType:qn,withCredentials:Di})}}var Ot=(()=>((Ot=Ot||{})[Ot.Sent=0]="Sent",Ot[Ot.UploadProgress=1]="UploadProgress",Ot[Ot.ResponseHeader=2]="ResponseHeader",Ot[Ot.DownloadProgress=3]="DownloadProgress",Ot[Ot.Response=4]="Response",Ot[Ot.User=5]="User",Ot))();class Bt{constructor(be,De=200,hn="OK"){this.headers=be.headers||new O,this.status=void 0!==be.status?be.status:De,this.statusText=be.statusText||hn,this.url=be.url||null,this.ok=this.status>=200&&this.status<300}}class St extends Bt{constructor(be={}){super(be),this.type=Ot.ResponseHeader}clone(be={}){return new St({headers:be.headers||this.headers,status:void 0!==be.status?be.status:this.status,statusText:be.statusText||this.statusText,url:be.url||this.url||void 0})}}class ce extends Bt{constructor(be={}){super(be),this.type=Ot.Response,this.body=void 0!==be.body?be.body:null}clone(be={}){return new ce({body:void 0!==be.body?be.body:this.body,headers:be.headers||this.headers,status:void 0!==be.status?be.status:this.status,statusText:be.statusText||this.statusText,url:be.url||this.url||void 0})}}class Vt extends Bt{constructor(be){super(be,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${be.url||"(unknown url)"}`:`Http failure response for ${be.url||"(unknown url)"}: ${be.status} ${be.statusText}`,this.error=be.error||null}}function ve(le,be){return{body:be,headers:le.headers,context:le.context,observe:le.observe,params:le.params,reportProgress:le.reportProgress,responseType:le.responseType,withCredentials:le.withCredentials}}let fe=(()=>{class le{constructor(De){this.handler=De}request(De,hn,qn={}){let mi;if(De instanceof pt)mi=De;else{let hi,Yn;hi=qn.headers instanceof O?qn.headers:new O(qn.headers),qn.params&&(Yn=qn.params instanceof bt?qn.params:new bt({fromObject:qn.params})),mi=new pt(De,hn,void 0!==qn.body?qn.body:null,{headers:hi,context:qn.context,params:Yn,reportProgress:qn.reportProgress,responseType:qn.responseType||"json",withCredentials:qn.withCredentials})}const Di=(0,x.of)(mi).pipe((0,t.b)(hi=>this.handler.handle(hi)));if(De instanceof pt||"events"===qn.observe)return Di;const bo=Di.pipe((0,T.h)(hi=>hi instanceof ce));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(De,hn={}){return this.request("DELETE",De,hn)}get(De,hn={}){return this.request("GET",De,hn)}head(De,hn={}){return this.request("HEAD",De,hn)}jsonp(De,hn){return this.request("JSONP",De,{params:(new bt).append(hn,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(De,hn={}){return this.request("OPTIONS",De,hn)}patch(De,hn,qn={}){return this.request("PATCH",De,ve(qn,hn))}post(De,hn,qn={}){return this.request("POST",De,ve(qn,hn))}put(De,hn,qn={}){return this.request("PUT",De,ve(qn,hn))}}return le.\u0275fac=function(De){return new(De||le)(p.LFG(w))},le.\u0275prov=p.Yz7({token:le,factory:le.\u0275fac}),le})();class Le{constructor(be,De){this.next=be,this.interceptor=De}handle(be){return this.interceptor.intercept(be,this.next)}}const Fe=new p.OlP("HTTP_INTERCEPTORS");let Ge=(()=>{class le{intercept(De,hn){return hn.handle(De)}}return le.\u0275fac=function(De){return new(De||le)},le.\u0275prov=p.Yz7({token:le,factory:le.\u0275fac}),le})();const _n=/^\)\]\}',?\n/;let vn=(()=>{class le{constructor(De){this.xhrFactory=De}handle(De){if("JSONP"===De.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new v.y(hn=>{const qn=this.xhrFactory.build();if(qn.open(De.method,De.urlWithParams),De.withCredentials&&(qn.withCredentials=!0),De.headers.forEach((Ye,Ee)=>qn.setRequestHeader(Ye,Ee.join(","))),De.headers.has("Accept")||qn.setRequestHeader("Accept","application/json, text/plain, */*"),!De.headers.has("Content-Type")){const Ye=De.detectContentTypeHeader();null!==Ye&&qn.setRequestHeader("Content-Type",Ye)}if(De.responseType){const Ye=De.responseType.toLowerCase();qn.responseType="json"!==Ye?Ye:"text"}const mi=De.serializeBody();let Di=null;const bo=()=>{if(null!==Di)return Di;const Ye=qn.statusText||"OK",Ee=new O(qn.getAllResponseHeaders()),Xe=function xe(le){return"responseURL"in le&&le.responseURL?le.responseURL:/^X-Request-URL:/m.test(le.getAllResponseHeaders())?le.getResponseHeader("X-Request-URL"):null}(qn)||De.url;return Di=new St({headers:Ee,status:qn.status,statusText:Ye,url:Xe}),Di},hi=()=>{let{headers:Ye,status:Ee,statusText:Xe,url:se}=bo(),ze=null;204!==Ee&&(ze=typeof qn.response>"u"?qn.responseText:qn.response),0===Ee&&(Ee=ze?200:0);let ie=Ee>=200&&Ee<300;if("json"===De.responseType&&"string"==typeof ze){const rn=ze;ze=ze.replace(_n,"");try{ze=""!==ze?JSON.parse(ze):null}catch(fn){ze=rn,ie&&(ie=!1,ze={error:fn,text:ze})}}ie?(hn.next(new ce({body:ze,headers:Ye,status:Ee,statusText:Xe,url:se||void 0})),hn.complete()):hn.error(new Vt({error:ze,headers:Ye,status:Ee,statusText:Xe,url:se||void 0}))},Yn=Ye=>{const{url:Ee}=bo(),Xe=new Vt({error:Ye,status:qn.status||0,statusText:qn.statusText||"Unknown Error",url:Ee||void 0});hn.error(Xe)};let Vn=!1;const Je=Ye=>{Vn||(hn.next(bo()),Vn=!0);let Ee={type:Ot.DownloadProgress,loaded:Ye.loaded};Ye.lengthComputable&&(Ee.total=Ye.total),"text"===De.responseType&&!!qn.responseText&&(Ee.partialText=qn.responseText),hn.next(Ee)},gn=Ye=>{let Ee={type:Ot.UploadProgress,loaded:Ye.loaded};Ye.lengthComputable&&(Ee.total=Ye.total),hn.next(Ee)};return qn.addEventListener("load",hi),qn.addEventListener("error",Yn),qn.addEventListener("timeout",Yn),qn.addEventListener("abort",Yn),De.reportProgress&&(qn.addEventListener("progress",Je),null!==mi&&qn.upload&&qn.upload.addEventListener("progress",gn)),qn.send(mi),hn.next({type:Ot.Sent}),()=>{qn.removeEventListener("error",Yn),qn.removeEventListener("abort",Yn),qn.removeEventListener("load",hi),qn.removeEventListener("timeout",Yn),De.reportProgress&&(qn.removeEventListener("progress",Je),null!==mi&&qn.upload&&qn.upload.removeEventListener("progress",gn)),qn.readyState!==qn.DONE&&qn.abort()}})}}return le.\u0275fac=function(De){return new(De||le)(p.LFG(u.JF))},le.\u0275prov=p.Yz7({token:le,factory:le.\u0275fac}),le})();const ke=new p.OlP("XSRF_COOKIE_NAME"),un=new p.OlP("XSRF_HEADER_NAME");class Dn{}let ii=(()=>{class le{constructor(De,hn,qn){this.doc=De,this.platform=hn,this.cookieName=qn,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const De=this.doc.cookie||"";return De!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,u.Mx)(De,this.cookieName),this.lastCookieString=De),this.lastToken}}return le.\u0275fac=function(De){return new(De||le)(p.LFG(u.K0),p.LFG(p.Lbi),p.LFG(ke))},le.\u0275prov=p.Yz7({token:le,factory:le.\u0275fac}),le})(),_i=(()=>{class le{constructor(De,hn){this.tokenService=De,this.headerName=hn}intercept(De,hn){const qn=De.url.toLowerCase();if("GET"===De.method||"HEAD"===De.method||qn.startsWith("http://")||qn.startsWith("https://"))return hn.handle(De);const mi=this.tokenService.getToken();return null!==mi&&!De.headers.has(this.headerName)&&(De=De.clone({headers:De.headers.set(this.headerName,mi)})),hn.handle(De)}}return le.\u0275fac=function(De){return new(De||le)(p.LFG(Dn),p.LFG(un))},le.\u0275prov=p.Yz7({token:le,factory:le.\u0275fac}),le})(),oi=(()=>{class le{constructor(De,hn){this.backend=De,this.injector=hn,this.chain=null}handle(De){if(null===this.chain){const hn=this.injector.get(Fe,[]);this.chain=hn.reduceRight((qn,mi)=>new Le(qn,mi),this.backend)}return this.chain.handle(De)}}return le.\u0275fac=function(De){return new(De||le)(p.LFG(P),p.LFG(p.zs3))},le.\u0275prov=p.Yz7({token:le,factory:le.\u0275fac}),le})(),it=(()=>{class le{static disable(){return{ngModule:le,providers:[{provide:_i,useClass:Ge}]}}static withOptions(De={}){return{ngModule:le,providers:[De.cookieName?{provide:ke,useValue:De.cookieName}:[],De.headerName?{provide:un,useValue:De.headerName}:[]]}}}return le.\u0275fac=function(De){return new(De||le)},le.\u0275mod=p.oAB({type:le}),le.\u0275inj=p.cJS({providers:[_i,{provide:Fe,useExisting:_i,multi:!0},{provide:Dn,useClass:ii},{provide:ke,useValue:"XSRF-TOKEN"},{provide:un,useValue:"X-XSRF-TOKEN"}]}),le})(),K=(()=>{class le{}return le.\u0275fac=function(De){return new(De||le)},le.\u0275mod=p.oAB({type:le}),le.\u0275inj=p.cJS({providers:[fe,{provide:w,useClass:oi},vn,{provide:P,useExisting:vn}],imports:[it.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),le})()},94650:(X,j,h)=>{"use strict";h.d(j,{$8M:()=>Sl,$Z:()=>_p,AFp:()=>z8,ALo:()=>_8,AaK:()=>w,AsE:()=>U4,B6R:()=>ze,BQk:()=>Hg,CHM:()=>or,CRH:()=>w8,CZH:()=>R4,CqO:()=>Vm,D6c:()=>gy,DdM:()=>s8,Dn7:()=>v8,EJc:()=>H7,EiD:()=>g2,EpF:()=>d6,F$t:()=>Yg,F4k:()=>Gs,FYo:()=>og,FiY:()=>oc,G48:()=>ty,Gf:()=>_v,GfV:()=>s1,GkF:()=>_h,Gpc:()=>L,Gre:()=>p3,HOy:()=>u3,Hsn:()=>r3,Ikx:()=>M,JOm:()=>Lu,JVY:()=>Jh,Jf7:()=>Pm,KtG:()=>Kr,L6k:()=>p2,LAX:()=>xm,LFG:()=>ic,LSH:()=>y_,Lbi:()=>F7,Lck:()=>JC,MAs:()=>i4,MGl:()=>hh,MMx:()=>$5,NdJ:()=>fh,O4$:()=>Si,OlP:()=>Un,Oqu:()=>A4,PXZ:()=>ob,Q6J:()=>l1,QGY:()=>n3,QP$:()=>Sn,QbO:()=>I7,Qsj:()=>ao,R0b:()=>Wp,RDi:()=>rc,Rgc:()=>I4,SBq:()=>Zm,Sil:()=>G8,Suo:()=>U8,TTD:()=>lu,TgZ:()=>u1,Tol:()=>g4,Udp:()=>l3,VKq:()=>c8,W1O:()=>Z8,WFA:()=>o4,WLB:()=>l8,XFs:()=>oi,Xpm:()=>se,Xts:()=>x2,Y36:()=>iu,YKP:()=>O6,YNc:()=>t3,Yjl:()=>Se,Yz7:()=>re,Z0I:()=>en,ZZ4:()=>Rv,_Bn:()=>j5,_UZ:()=>e3,_Vd:()=>wm,_c5:()=>fy,_uU:()=>x6,aQg:()=>Y4,c2e:()=>q7,cJS:()=>oe,cg1:()=>_e,d8E:()=>S,dDg:()=>nb,dqk:()=>qn,dwT:()=>Zt,eBb:()=>Il,eFA:()=>rb,ekj:()=>h4,eoX:()=>ib,evT:()=>T2,f3M:()=>Up,g9A:()=>B8,gM2:()=>E6,h0i:()=>h3,hGG:()=>hy,hij:()=>Jg,iGM:()=>mv,ifc:()=>hn,ip1:()=>Y8,jDz:()=>t8,kL8:()=>mn,kYT:()=>sn,kcU:()=>vo,lG2:()=>Nt,lcZ:()=>h8,lnq:()=>b6,lqb:()=>up,lri:()=>tb,mCW:()=>cd,n5z:()=>Kd,n_E:()=>F6,oAB:()=>fn,oJD:()=>$h,oxw:()=>a4,pB0:()=>Ip,q3G:()=>hs,qLn:()=>Yp,qOj:()=>V2,qZA:()=>V1,qzn:()=>S1,rWj:()=>eb,s9C:()=>zg,sBO:()=>_b,sIi:()=>fi,s_b:()=>N6,soG:()=>G6,tb:()=>J8,tp0:()=>wp,uIk:()=>au,uOi:()=>T_,vHH:()=>tt,vpe:()=>J1,wAp:()=>Gn,xDo:()=>w4,xi3:()=>g8,xp6:()=>qf,ynx:()=>Rg,z2F:()=>t5,z3N:()=>Js,zSh:()=>lp,zs3:()=>dd});var u=h(8929),p=h(42654),x=h(56498),v=h(36787),t=h(12474);function T(f){for(let g in f)if(f[g]===T)return g;throw Error("Could not find renamed property on target object.")}function U(f,g){for(const y in g)g.hasOwnProperty(y)&&!f.hasOwnProperty(y)&&(f[y]=g[y])}function w(f){if("string"==typeof f)return f;if(Array.isArray(f))return"["+f.map(w).join(", ")+"]";if(null==f)return""+f;if(f.overriddenName)return`${f.overriddenName}`;if(f.name)return`${f.name}`;const g=f.toString();if(null==g)return""+g;const y=g.indexOf("\n");return-1===y?g:g.substring(0,y)}function P(f,g){return null==f||""===f?null===g?"":g:null==g||""===g?f:f+" "+g}const O=T({__forward_ref__:T});function L(f){return f.__forward_ref__=L,f.toString=function(){return w(this())},f}function N(f){return V(f)?f():f}function V(f){return"function"==typeof f&&f.hasOwnProperty(O)&&f.__forward_ref__===L}class tt extends Error{constructor(g,y){super(function st(f,g){return`NG0${Math.abs(f)}${g?": "+g.trim():""}`}(g,y)),this.code=g}}function ct(f){return"string"==typeof f?f:null==f?"":String(f)}function Jt(f,g){throw new tt(-201,!1)}function Ge(f,g){null==f&&function Gt(f,g,y,k){throw new Error(`ASSERTION ERROR: ${f}`+(null==k?"":` [Expected=> ${y} ${k} ${g} <=Actual]`))}(g,f,null,"!=")}function re(f){return{token:f.token,providedIn:f.providedIn||null,factory:f.factory,value:void 0}}function oe(f){return{providers:f.providers||[],imports:f.imports||[]}}function Me(f){return _n(f,un)||_n(f,ii)}function en(f){return null!==Me(f)}function _n(f,g){return f.hasOwnProperty(g)?f[g]:null}function ke(f){return f&&(f.hasOwnProperty(Dn)||f.hasOwnProperty(_i))?f[Dn]:null}const un=T({\u0275prov:T}),Dn=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 Qe;function it(f){const g=Qe;return Qe=f,g}function K(f,g,y){const k=Me(f);return k&&"root"==k.providedIn?void 0===k.value?k.value=k.factory():k.value:y&oi.Optional?null:void 0!==g?g:void Jt(w(f))}function Rt(f){return{toString:f}.toString()}var le=(()=>((le=le||{})[le.OnPush=0]="OnPush",le[le.Default=1]="Default",le))(),hn=(()=>{return(f=hn||(hn={}))[f.Emulated=0]="Emulated",f[f.None=2]="None",f[f.ShadowDom=3]="ShadowDom",hn;var f})();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=[],Yn=T({\u0275cmp:T}),Vn=T({\u0275dir:T}),Je=T({\u0275pipe:T}),gn=T({\u0275mod:T}),Ye=T({\u0275fac:T}),Ee=T({__NG_ELEMENT_ID__:T});let Xe=0;function se(f){return Rt(()=>{const y=!0===f.standalone,k={},F={type:f.type,providersResolver:null,decls:f.decls,vars:f.vars,factory:null,template:f.template||null,consts:f.consts||null,ngContentSelectors:f.ngContentSelectors,hostBindings:f.hostBindings||null,hostVars:f.hostVars||0,hostAttrs:f.hostAttrs||null,contentQueries:f.contentQueries||null,declaredInputs:k,inputs:null,outputs:null,exportAs:f.exportAs||null,onPush:f.changeDetection===le.OnPush,directiveDefs:null,pipeDefs:null,standalone:y,dependencies:y&&f.dependencies||null,getStandaloneInjector:null,selectors:f.selectors||hi,viewQuery:f.viewQuery||null,features:f.features||null,data:f.data||{},encapsulation:f.encapsulation||hn.Emulated,id:"c"+Xe++,styles:f.styles||hi,_:null,setInput:null,schemas:f.schemas||null,tView:null},H=f.dependencies,ot=f.features;return F.inputs=ge(f.inputs,k),F.outputs=ge(f.outputs),ot&&ot.forEach(Ct=>Ct(F)),F.directiveDefs=H?()=>("function"==typeof H?H():H).map(ie).filter(rn):null,F.pipeDefs=H?()=>("function"==typeof H?H():H).map(Ie).filter(rn):null,F})}function ze(f,g,y){const k=f.\u0275cmp;k.directiveDefs=()=>("function"==typeof g?g():g).map(ie),k.pipeDefs=()=>("function"==typeof y?y():y).map(Ie)}function ie(f){return zt(f)||Ae(f)}function rn(f){return null!==f}function fn(f){return Rt(()=>({type:f.type,bootstrap:f.bootstrap||hi,declarations:f.declarations||hi,imports:f.imports||hi,exports:f.exports||hi,transitiveCompileScopes:null,schemas:f.schemas||null,id:f.id||null}))}function sn(f,g){return Rt(()=>{const y=Ei(f,!0);y.declarations=g.declarations||hi,y.imports=g.imports||hi,y.exports=g.exports||hi})}function ge(f,g){if(null==f)return bo;const y={};for(const k in f)if(f.hasOwnProperty(k)){let F=f[k],H=F;Array.isArray(F)&&(H=F[1],F=F[0]),y[F]=k,g&&(g[F]=H)}return y}const Nt=se;function Se(f){return{type:f.type,name:f.name,factory:null,pure:!1!==f.pure,standalone:!0===f.standalone,onDestroy:f.type.prototype.ngOnDestroy||null}}function zt(f){return f[Yn]||null}function Ae(f){return f[Vn]||null}function Ie(f){return f[Je]||null}function Sn(f){const g=zt(f)||Ae(f)||Ie(f);return null!==g&&g.standalone}function Ei(f,g){const y=f[gn]||null;if(!y&&!0===g)throw new Error(`Type ${w(f)} does not have '\u0275mod' property.`);return y}const Q=16,J=18;function Tr(f){return Array.isArray(f)&&"object"==typeof f[1]}function Ar(f){return Array.isArray(f)&&!0===f[1]}function Sc(f){return 0!=(8&f.flags)}function Ml(f){return 2==(2&f.flags)}function js(f){return 1==(1&f.flags)}function Ls(f){return null!==f.template}function Ws(f){return 0!=(256&f[2])}function Xs(f,g){return f.hasOwnProperty(Ye)?f[Ye]:null}class Dl{constructor(g,y,k){this.previousValue=g,this.currentValue=y,this.firstChange=k}isFirstChange(){return this.firstChange}}function lu(){return Wl}function Wl(f){return f.type.prototype.ngOnChanges&&(f.setInput=ir),Ca}function Ca(){const f=Tu(this),g=f?.current;if(g){const y=f.previous;if(y===bo)f.previous=g;else for(let k in g)y[k]=g[k];f.current=null,this.ngOnChanges(g)}}function ir(f,g,y,k){const F=Tu(f)||function ed(f,g){return f[bc]=g}(f,{previous:bo,current:null}),H=F.current||(F.current={}),ot=F.previous,Ct=this.declaredInputs[y],It=ot[Ct];H[Ct]=new Dl(It&&It.currentValue,g,ot===bo),f[k]=g}lu.ngInherit=!0;const bc="__ngSimpleChanges__";function Tu(f){return f[bc]||null}function Va(f){for(;Array.isArray(f);)f=f[0];return f}function as(f,g){return Va(g[f])}function Qn(f,g){return Va(g[f.index])}function ms(f,g){return f.data[g]}function Za(f,g){return f[g]}function rs(f,g){const y=g[f];return Tr(y)?y:y[0]}function ws(f){return 64==(64&f[2])}function tc(f,g){return null==g?null:f[g]}function Ns(f){f[J]=0}function Ba(f,g){f[5]+=g;let y=f,k=f[3];for(;null!==k&&(1===g&&1===y[5]||-1===g&&0===y[5]);)k[5]+=g,y=k,k=k[3]}const io={lFrame:ut(null),bindingsEnabled:!0};function Cc(){return io.bindingsEnabled}function Gi(){return io.lFrame.lView}function da(){return io.lFrame.tView}function or(f){return io.lFrame.contextLView=f,f[8]}function Kr(f){return io.lFrame.contextLView=null,f}function Wa(){let f=ae();for(;null!==f&&64===f.type;)f=f.parent;return f}function ae(){return io.lFrame.currentTNode}function Ft(f,g){const y=io.lFrame;y.currentTNode=f,y.isParent=g}function et(){return io.lFrame.isParent}function Mi(){io.lFrame.isParent=!1}function Ir(){const f=io.lFrame;let g=f.bindingRootIndex;return-1===g&&(g=f.bindingRootIndex=f.tView.bindingStartIndex),g}function qr(){return io.lFrame.bindingIndex}function Ja(){return io.lFrame.bindingIndex++}function Kc(f){const g=io.lFrame,y=g.bindingIndex;return g.bindingIndex=g.bindingIndex+f,y}function x1(f,g){const y=io.lFrame;y.bindingIndex=y.bindingRootIndex=f,du(g)}function du(f){io.lFrame.currentDirectiveIndex=f}function Fc(f){const g=io.lFrame.currentDirectiveIndex;return-1===g?null:f[g]}function Nc(){return io.lFrame.currentQueryIndex}function dl(f){io.lFrame.currentQueryIndex=f}function tp(f){const g=f[1];return 2===g.type?g.declTNode:1===g.type?f[6]:null}function Pl(f,g,y){if(y&oi.SkipSelf){let F=g,H=f;for(;!(F=F.parent,null!==F||y&oi.Host||(F=tp(H),null===F||(H=H[15],10&F.type))););if(null===F)return!1;g=F,f=H}const k=io.lFrame=Bi();return k.currentTNode=g,k.lView=f,!0}function yc(f){const g=Bi(),y=f[1];io.lFrame=g,g.currentTNode=y.firstChild,g.lView=f,g.tView=y,g.contextLView=f,g.bindingIndex=y.bindingStartIndex,g.inI18n=!1}function Bi(){const f=io.lFrame,g=null===f?null:f.child;return null===g?ut(f):g}function ut(f){const g={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:f,child:null,inI18n:!1};return null!==f&&(f.child=g),g}function pu(){const f=io.lFrame;return io.lFrame=f.parent,f.currentTNode=null,f.lView=null,f}const Kl=pu;function wa(){const f=pu();f.isParent=!0,f.tView=null,f.selectedIndex=-1,f.contextLView=null,f.elementDepthCount=0,f.currentDirectiveIndex=-1,f.currentNamespace=null,f.bindingRootIndex=-1,f.bindingIndex=-1,f.currentQueryIndex=0}function Rr(){return io.lFrame.selectedIndex}function gs(f){io.lFrame.selectedIndex=f}function Pa(){const f=io.lFrame;return ms(f.tView,f.selectedIndex)}function Si(){io.lFrame.currentNamespace="svg"}function vo(){!function ln(){io.lFrame.currentNamespace=null}()}function Zi(f,g){for(let y=g.directiveStart,k=g.directiveEnd;y=k)break}else g[It]<0&&(f[J]+=65536),(Ct>11>16&&(3&f[2])===g){f[2]+=2048;try{H.call(Ct)}finally{}}}else try{H.call(Ct)}finally{}}class Uu{constructor(g,y,k){this.factory=g,this.resolving=!1,this.canSeeViewProviders=y,this.injectImpl=k}}function Ve(f,g,y){let k=0;for(;kg){ot=H-1;break}}}for(;H>16}(f),k=g;for(;y>0;)k=k[15],y--;return k}let Ai=!0;function wi(f){const g=Ai;return Ai=f,g}let pa=0;const oa={};function Xr(f,g){const y=Ms(f,g);if(-1!==y)return y;const k=g[1];k.firstCreatePass&&(f.injectorIndex=g.length,vs(k.data,f),vs(g,null),vs(k.blueprint,null));const F=ts(f,g),H=f.injectorIndex;if(Ke(F)){const ot=bn(F),Ct=ei(F,g),It=Ct[1].data;for(let he=0;he<8;he++)g[H+he]=Ct[ot+he]|It[ot+he]}return g[H+8]=F,H}function vs(f,g){f.push(0,0,0,0,0,0,0,0,g)}function Ms(f,g){return-1===f.injectorIndex||f.parent&&f.parent.injectorIndex===f.injectorIndex||null===g[f.injectorIndex+8]?-1:f.injectorIndex}function ts(f,g){if(f.parent&&-1!==f.parent.injectorIndex)return f.parent.injectorIndex;let y=0,k=null,F=g;for(;null!==F;){if(k=ip(F),null===k)return-1;if(y++,F=F[15],-1!==k.injectorIndex)return k.injectorIndex|y<<16}return-1}function Jr(f,g,y){!function xa(f,g,y){let k;"string"==typeof y?k=y.charCodeAt(0)||0:y.hasOwnProperty(Ee)&&(k=y[Ee]),null==k&&(k=y[Ee]=pa++);const F=255&k;g.data[f+(F>>5)]|=1<=0?255&g:Zd:g}(y);if("function"==typeof H){if(!Pl(g,f,k))return k&oi.Host?wr(F,0,k):Vs(g,y,k,F);try{const ot=H(k);if(null!=ot||k&oi.Optional)return ot;Jt()}finally{Kl()}}else if("number"==typeof H){let ot=null,Ct=Ms(f,g),It=-1,he=k&oi.Host?g[Q][6]:null;for((-1===Ct||k&oi.SkipSelf)&&(It=-1===Ct?ts(f,g):g[Ct+8],-1!==It&&Mu(k,!1)?(ot=g[1],Ct=bn(It),g=ei(It,g)):Ct=-1);-1!==Ct;){const je=g[1];if(kl(H,Ct,je.data)){const Tn=mr(Ct,g,y,ot,k,he);if(Tn!==oa)return Tn}It=g[Ct+8],-1!==It&&Mu(k,g[1].data[Ct+8]===he)&&kl(H,Ct,g)?(ot=je,Ct=bn(It),g=ei(It,g)):Ct=-1}}return F}function mr(f,g,y,k,F,H){const ot=g[1],Ct=ot.data[f+8],je=sa(Ct,ot,y,null==k?Ml(Ct)&&Ai:k!=ot&&0!=(3&Ct.type),F&oi.Host&&H===Ct);return null!==je?hr(g,ot,je,Ct):oa}function sa(f,g,y,k,F){const H=f.providerIndexes,ot=g.data,Ct=1048575&H,It=f.directiveStart,je=H>>20,ri=F?Ct+je:f.directiveEnd;for(let Ti=k?Ct:Ct+je;Ti=It&&ji.type===y)return Ti}if(F){const Ti=ot[It];if(Ti&&Ls(Ti)&&Ti.type===y)return It}return null}function hr(f,g,y,k){let F=f[y];const H=g.data;if(function tr(f){return f instanceof Uu}(F)){const ot=F;ot.resolving&&function Dt(f,g){const y=g?`. Dependency path: ${g.join(" > ")} > ${f}`:"";throw new tt(-200,`Circular dependency in DI detected for ${f}${y}`)}(function bt(f){return"function"==typeof f?f.name||f.toString():"object"==typeof f&&null!=f&&"function"==typeof f.type?f.type.name||f.type.toString():ct(f)}(H[y]));const Ct=wi(ot.canSeeViewProviders);ot.resolving=!0;const It=ot.injectImpl?it(ot.injectImpl):null;Pl(f,k,oi.Default);try{F=f[y]=ot.factory(void 0,H,f,k),g.firstCreatePass&&y>=k.directiveStart&&function Oi(f,g,y){const{ngOnChanges:k,ngOnInit:F,ngDoCheck:H}=g.type.prototype;if(k){const ot=Wl(g);(y.preOrderHooks||(y.preOrderHooks=[])).push(f,ot),(y.preOrderCheckHooks||(y.preOrderCheckHooks=[])).push(f,ot)}F&&(y.preOrderHooks||(y.preOrderHooks=[])).push(0-f,F),H&&((y.preOrderHooks||(y.preOrderHooks=[])).push(f,H),(y.preOrderCheckHooks||(y.preOrderCheckHooks=[])).push(f,H))}(y,H[y],g)}finally{null!==It&&it(It),wi(Ct),ot.resolving=!1,Kl()}}return F}function kl(f,g,y){return!!(y[g+(f>>5)]&1<{const g=f.prototype.constructor,y=g[Ye]||Zu(g),k=Object.prototype;let F=Object.getPrototypeOf(f.prototype).constructor;for(;F&&F!==k;){const H=F[Ye]||Zu(F);if(H&&H!==y)return H;F=Object.getPrototypeOf(F)}return H=>new H})}function Zu(f){return V(f)?()=>{const g=Zu(N(f));return g&&g()}:Xs(f)}function ip(f){const g=f[1],y=g.type;return 2===y?g.declTNode:1===y?f[6]:null}function Sl(f){return function es(f,g){if("class"===g)return f.classes;if("style"===g)return f.styles;const y=f.attrs;if(y){const k=y.length;let F=0;for(;F{const k=function b1(f){return function(...y){if(f){const k=f(...y);for(const F in k)this[F]=k[F]}}}(g);function F(...H){if(this instanceof F)return k.apply(this,H),this;const ot=new F(...H);return Ct.annotation=ot,Ct;function Ct(It,he,je){const Tn=It.hasOwnProperty(Ll)?It[Ll]:Object.defineProperty(It,Ll,{value:[]})[Ll];for(;Tn.length<=je;)Tn.push(null);return(Tn[je]=Tn[je]||[]).push(ot),It}}return y&&(F.prototype=Object.create(y.prototype)),F.prototype.ngMetadataName=f,F.annotationCls=F,F})}class Un{constructor(g,y){this._desc=g,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof y?this.__NG_ELEMENT_ID__=y:void 0!==y&&(this.\u0275prov=re({token:this,providedIn:y.providedIn||"root",factory:y.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function pc(f,g){void 0===g&&(g=f);for(let y=0;yArray.isArray(y)?Du(y,g):g(y))}function Xd(f,g,y){g>=f.length?f.push(y):f.splice(g,0,y)}function Fl(f,g){return g>=f.length-1?f.pop():f.splice(g,1)[0]}function mu(f,g){const y=[];for(let k=0;k=0?f[1|k]=y:(k=~k,function ft(f,g,y,k){let F=f.length;if(F==g)f.push(y,k);else if(1===F)f.push(k,f[0]),f[0]=y;else{for(F--,f.push(f[F-1],f[F]);F>g;)f[F]=f[F-2],F--;f[g]=y,f[g+1]=k}}(f,k,g,y)),k}function me(f,g){const y=Pn(f,g);if(y>=0)return f[1|y]}function Pn(f,g){return function qe(f,g,y){let k=0,F=f.length>>y;for(;F!==k;){const H=k+(F-k>>1),ot=f[H<g?F=H:k=H+1}return~(F<((Lu=Lu||{})[Lu.Important=1]="Important",Lu[Lu.DashCase=2]="DashCase",Lu))();const _m=new Map;let mf=0;const Bs="__ngContext__";function Ps(f,g){Tr(g)?(f[Bs]=g[20],function Pp(f){_m.set(f[20],f)}(g)):f[Bs]=g}function r2(f,g){return undefined(f,g)}function l_(f){const g=f[3];return Ar(g)?g[3]:g}function c2(f){return yf(f[13])}function u_(f){return yf(f[4])}function yf(f){for(;null!==f&&!Ar(f);)f=f[4];return f}function _u(f,g,y,k,F){if(null!=k){let H,ot=!1;Ar(k)?H=k:Tr(k)&&(ot=!0,k=k[0]);const Ct=Va(k);0===f&&null!==y?null==F?ks(g,y,Ct):o1(g,y,Ct,F||null,!0):1===f&&null!==y?o1(g,y,Ct,F||null,!0):2===f?function p_(f,g,y){const k=gm(f,g);k&&function Af(f,g,y,k){f.removeChild(g,y,k)}(f,k,g,y)}(g,Ct,ot):3===f&&g.destroyNode(Ct),null!=H&&function m_(f,g,y,k,F){const H=y[7];H!==Va(y)&&_u(g,f,k,H,F);for(let Ct=10;Ct0&&(f[y-1][4]=k[4]);const H=Fl(f,10+g);!function c0(f,g){sp(f,g,g[11],2,null,null),g[0]=null,g[6]=null}(k[1],k);const ot=H[19];null!==ot&&ot.detachView(H[1]),k[3]=null,k[4]=null,k[2]&=-65}return k}function Nu(f,g){if(!(128&g[2])){const y=g[11];y.destroyNode&&sp(f,g,y,3,null,null),function Lp(f){let g=f[13];if(!g)return Iu(f[1],f);for(;g;){let y=null;if(Tr(g))y=g[13];else{const k=g[10];k&&(y=k)}if(!y){for(;g&&!g[4]&&g!==f;)Tr(g)&&Iu(g[1],g),g=g[3];null===g&&(g=f),Tr(g)&&Iu(g[1],g),y=g&&g[4]}g=y}}(g)}}function Iu(f,g){if(!(128&g[2])){g[2]&=-65,g[2]|=128,function u2(f,g){let y;if(null!=f&&null!=(y=f.destroyHooks))for(let k=0;k=0?k[F=he]():k[F=-he].unsubscribe(),H+=2}else{const ot=k[F=y[H+1]];y[H].call(ot)}if(null!==k){for(let H=F+1;Hf,createScript:f=>f,createScriptURL:f=>f})}catch{}return qu}()?.createHTML(f)||f}function rc(f){tu=f}function bl(){if(void 0===v_&&(v_=null,qn.trustedTypes))try{v_=qn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:f=>f,createScript:f=>f,createScriptURL:f=>f})}catch{}return v_}function Cl(f){return bl()?.createHTML(f)||f}function Uf(f){return bl()?.createScriptURL(f)||f}class a1{constructor(g){this.changingThisBreaksApplicationSecurity=g}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class L3 extends a1{getTypeName(){return"HTML"}}class vm extends a1{getTypeName(){return"Style"}}class k1 extends a1{getTypeName(){return"Script"}}class u0 extends a1{getTypeName(){return"URL"}}class wf extends a1{getTypeName(){return"ResourceURL"}}function Js(f){return f instanceof a1?f.changingThisBreaksApplicationSecurity:f}function S1(f,g){const y=function Mf(f){return f instanceof a1&&f.getTypeName()||null}(f);if(null!=y&&y!==g){if("ResourceURL"===y&&"URL"===g)return!0;throw new Error(`Required a safe ${g}, got a ${y} (see https://g.co/ng/security#xss)`)}return y===g}function Jh(f){return new L3(f)}function p2(f){return new vm(f)}function Il(f){return new k1(f)}function xm(f){return new u0(f)}function Ip(f){return new wf(f)}class x_{constructor(g){this.inertDocumentHelper=g}getInertBodyElement(g){g=""+g;try{const y=(new window.DOMParser).parseFromString(ac(g),"text/html").body;return null===y?this.inertDocumentHelper.getInertBodyElement(g):(y.removeChild(y.firstChild),y)}catch{return null}}}class Gh{constructor(g){if(this.defaultDoc=g,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const y=this.inertDocument.createElement("html");this.inertDocument.appendChild(y);const k=this.inertDocument.createElement("body");y.appendChild(k)}}getInertBodyElement(g){const y=this.inertDocument.createElement("template");if("content"in y)return y.innerHTML=ac(g),y;const k=this.inertDocument.createElement("body");return k.innerHTML=ac(g),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(k),k}stripCustomNsAttrs(g){const y=g.attributes;for(let F=y.length-1;0"),!0}endElement(g){const y=g.nodeName.toLowerCase();Qh.hasOwnProperty(y)&&!kd.hasOwnProperty(y)&&(this.buf.push(""))}chars(g){this.buf.push(Wh(g))}checkClobberedElement(g,y){if(y&&(g.compareDocumentPosition(y)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${g.outerHTML}`);return y}}const d0=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,b_=/([^\#-~ |!])/g;function Wh(f){return f.replace(/&/g,"&").replace(d0,function(g){return"&#"+(1024*(g.charCodeAt(0)-55296)+(g.charCodeAt(1)-56320)+65536)+";"}).replace(b_,function(g){return"&#"+g.charCodeAt(0)+";"}).replace(//g,">")}let C_;function g2(f,g){let y=null;try{C_=C_||function Zf(f){const g=new Gh(f);return function m2(){try{return!!(new window.DOMParser).parseFromString(ac(""),"text/html")}catch{return!1}}()?new x_(g):g}(f);let k=g?String(g):"";y=C_.getInertBodyElement(k);let F=5,H=k;do{if(0===F)throw new Error("Failed to sanitize html because the input is unstable");F--,k=H,H=y.innerHTML,y=C_.getInertBodyElement(k)}while(k!==H);return ac((new h2).sanitizeChildren(kf(y)||y))}finally{if(y){const k=kf(y)||y;for(;k.firstChild;)k.removeChild(k.firstChild)}}}function kf(f){return"content"in f&&function p0(f){return f.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===f.nodeName}(f)?f.content:null}var hs=(()=>((hs=hs||{})[hs.NONE=0]="NONE",hs[hs.HTML=1]="HTML",hs[hs.STYLE=2]="STYLE",hs[hs.SCRIPT=3]="SCRIPT",hs[hs.URL=4]="URL",hs[hs.RESOURCE_URL=5]="RESOURCE_URL",hs))();function $h(f){const g=A_();return g?Cl(g.sanitize(hs.HTML,f)||""):S1(f,"HTML")?Cl(Js(f)):g2(function Bh(){return void 0!==tu?tu:typeof document<"u"?document:void 0}(),ct(f))}function y_(f){const g=A_();return g?g.sanitize(hs.URL,f)||"":S1(f,"URL")?Js(f):cd(ct(f))}function T_(f){const g=A_();if(g)return Uf(g.sanitize(hs.RESOURCE_URL,f)||"");if(S1(f,"ResourceURL"))return Uf(Js(f));throw new tt(904,!1)}function A_(){const f=Gi();return f&&f[12]}const x2=new Un("ENVIRONMENT_INITIALIZER"),f0=new Un("INJECTOR",-1),hu=new Un("INJECTOR_DEF_TYPES");class Sd{get(g,y=Is){if(y===Is){const k=new Error(`NullInjectorError: No provider for ${w(g)}!`);throw k.name="NullInjectorError",k}return y}}function F3(...f){return{\u0275providers:Rp(0,f)}}function Rp(f,...g){const y=[],k=new Set;let F;return Du(g,H=>{const ot=H;Sf(ot,y,[],k)&&(F||(F=[]),F.push(ot))}),void 0!==F&&Cm(F,y),y}function Cm(f,g){for(let y=0;y{g.push(H)})}}function Sf(f,g,y,k){if(!(f=N(f)))return!1;let F=null,H=ke(f);const ot=!H&&zt(f);if(H||ot){if(ot&&!ot.standalone)return!1;F=f}else{const It=f.ngModule;if(H=ke(It),!H)return!1;F=It}const Ct=k.has(F);if(ot){if(Ct)return!1;if(k.add(F),ot.dependencies){const It="function"==typeof ot.dependencies?ot.dependencies():ot.dependencies;for(const he of It)Sf(he,g,y,k)}}else{if(!H)return!1;{if(null!=H.imports&&!Ct){let he;k.add(F);try{Du(H.imports,je=>{Sf(je,g,y,k)&&(he||(he=[]),he.push(je))})}finally{}void 0!==he&&Cm(he,g)}if(!Ct){const he=Xs(F)||(()=>new F);g.push({provide:F,useFactory:he,deps:hi},{provide:hu,useValue:F,multi:!0},{provide:x2,useValue:()=>ic(F),multi:!0})}const It=H.providers;null==It||Ct||Du(It,je=>{g.push(je)})}}return F!==f&&void 0!==f.providers}const Kh=T({provide:String,useValue:T});function ym(f){return null!==f&&"object"==typeof f&&Kh in f}function Od(f){return"function"==typeof f}const lp=new Un("Set Injector scope."),Tm={},h0={};let Rs;function C2(){return void 0===Rs&&(Rs=new Sd),Rs}class up{}class g0 extends up{constructor(g,y,k,F){super(),this.parent=y,this.source=k,this.scopes=F,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,eg(g,ot=>this.processProvider(ot)),this.records.set(f0,r1(void 0,this)),F.has("environment")&&this.records.set(up,r1(void 0,this));const H=this.records.get(lp);null!=H&&"string"==typeof H.value&&this.scopes.add(H.value),this.injectorDefTypes=new Set(this.get(hu.multi,hi,oi.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const g of this._ngOnDestroyHooks)g.ngOnDestroy();for(const g of this._onDestroyHooks)g()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(g){this._onDestroyHooks.push(g)}runInContext(g){this.assertNotDestroyed();const y=Tc(this),k=it(void 0);try{return g()}finally{Tc(y),it(k)}}get(g,y=Is,k=oi.Default){this.assertNotDestroyed();const F=Tc(this),H=it(void 0);try{if(!(k&oi.SkipSelf)){let Ct=this.records.get(g);if(void 0===Ct){const It=function N3(f){return"function"==typeof f||"object"==typeof f&&f instanceof Un}(g)&&Me(g);Ct=It&&this.injectableDefInScope(It)?r1(Xh(g),Tm):null,this.records.set(g,Ct)}if(null!=Ct)return this.hydrate(g,Ct)}return(k&oi.Self?C2():this.parent).get(g,y=k&oi.Optional&&y===Is?null:y)}catch(ot){if("NullInjectorError"===ot.name){if((ot[Ap]=ot[Ap]||[]).unshift(w(g)),F)throw ot;return function op(f,g,y,k){const F=f[Ap];throw g[i_]&&F.unshift(g[i_]),f.message=function t2(f,g,y,k=null){f=f&&"\n"===f.charAt(0)&&"\u0275"==f.charAt(1)?f.slice(2):f;let F=w(g);if(Array.isArray(g))F=g.map(w).join(" -> ");else if("object"==typeof g){let H=[];for(let ot in g)if(g.hasOwnProperty(ot)){let Ct=g[ot];H.push(ot+":"+("string"==typeof Ct?JSON.stringify(Ct):w(Ct)))}F=`{${H.join(", ")}}`}return`${y}${k?"("+k+")":""}[${F}]: ${f.replace(lf,"\n ")}`}("\n"+f.message,F,y,k),f.ngTokenPath=F,f[Ap]=null,f}(ot,g,"R3InjectorError",this.source)}throw ot}finally{it(H),Tc(F)}}resolveInjectorInitializers(){const g=Tc(this),y=it(void 0);try{const k=this.get(x2.multi,hi,oi.Self);for(const F of k)F()}finally{Tc(g),it(y)}}toString(){const g=[],y=this.records;for(const k of y.keys())g.push(w(k));return`R3Injector[${g.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new tt(205,!1)}processProvider(g){let y=Od(g=N(g))?g:N(g&&g.provide);const k=function Am(f){return ym(f)?r1(void 0,f.useValue):r1(Um(f),Tm)}(g);if(Od(g)||!0!==g.multi)this.records.get(y);else{let F=this.records.get(y);F||(F=r1(void 0,Tm,!0),F.factory=()=>od(F.multi),this.records.set(y,F)),y=g,F.multi.push(g)}this.records.set(y,k)}hydrate(g,y){return y.value===Tm&&(y.value=h0,y.value=y.factory()),"object"==typeof y.value&&y.value&&function y2(f){return null!==f&&"object"==typeof f&&"function"==typeof f.ngOnDestroy}(y.value)&&this._ngOnDestroyHooks.add(y.value),y.value}injectableDefInScope(g){if(!g.providedIn)return!1;const y=N(g.providedIn);return"string"==typeof y?"any"===y||this.scopes.has(y):this.injectorDefTypes.has(y)}}function Xh(f){const g=Me(f),y=null!==g?g.factory:Xs(f);if(null!==y)return y;if(f instanceof Un)throw new tt(204,!1);if(f instanceof Function)return function tg(f){const g=f.length;if(g>0)throw mu(g,"?"),new tt(204,!1);const y=function xe(f){const g=f&&(f[un]||f[ii]);if(g){const y=function vn(f){if(f.hasOwnProperty("name"))return f.name;const g=(""+f).match(/^function\s*([^\s(]+)/);return null===g?"":g[1]}(f);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.`),g}return null}(f);return null!==y?()=>y.factory(f):()=>new f}(f);throw new tt(204,!1)}function Um(f,g,y){let k;if(Od(f)){const F=N(f);return Xs(F)||Xh(F)}if(ym(f))k=()=>N(f.useValue);else if(function Hp(f){return!(!f||!f.useFactory)}(f))k=()=>f.useFactory(...od(f.deps||[]));else if(function U_(f){return!(!f||!f.useExisting)}(f))k=()=>ic(N(f.useExisting));else{const F=N(f&&(f.useClass||f.provide));if(!function v0(f){return!!f.deps}(f))return Xs(F)||Xh(F);k=()=>new F(...od(f.deps))}return k}function r1(f,g,y=!1){return{factory:f,value:g,multi:y?[]:void 0}}function Of(f){return!!f.\u0275providers}function eg(f,g){for(const y of f)Array.isArray(y)?eg(y,g):Of(y)?eg(y.\u0275providers,g):g(y)}class Lf{}class b0{resolveComponentFactory(g){throw function Eo(f){const g=Error(`No component factory found for ${w(f)}. Did you add it to @NgModule.entryComponents?`);return g.ngComponent=f,g}(g)}}let wm=(()=>{class f{}return f.NULL=new b0,f})();function Mm(){return Ha(Wa(),Gi())}function Ha(f,g){return new Zm(Qn(f,g))}let Zm=(()=>{class f{constructor(y){this.nativeElement=y}}return f.__NG_ELEMENT_ID__=Mm,f})();function ig(f){return f instanceof Zm?f.nativeElement:f}class og{}let ao=(()=>{class f{}return f.__NG_ELEMENT_ID__=()=>function q3(){const f=Gi(),y=rs(Wa().index,f);return(Tr(y)?y:f)[11]}(),f})(),C0=(()=>{class f{}return f.\u0275prov=re({token:f,providedIn:"root",factory:()=>null}),f})();class s1{constructor(g){this.full=g,this.major=g.split(".")[0],this.minor=g.split(".")[1],this.patch=g.split(".").slice(2).join(".")}}const Ef=new s1("14.3.0"),Ff={};function M_(f){return f.ngOriginalError}class Yp{constructor(){this._console=console}handleError(g){const y=this._findOriginalError(g);this._console.error("ERROR",g),y&&this._console.error("ORIGINAL ERROR",y)}_findOriginalError(g){let y=g&&M_(g);for(;y&&M_(y);)y=M_(y);return y||null}}function Pm(f){return f.ownerDocument.defaultView}function T2(f){return f.ownerDocument}function E1(f){return f instanceof Function?f():f}function ug(f,g,y){let k=f.length;for(;;){const F=f.indexOf(g,y);if(-1===F)return F;if(0===F||f.charCodeAt(F-1)<=32){const H=g.length;if(F+H===k||f.charCodeAt(F+H)<=32)return F}y=F+1}}const br="ng-template";function ld(f,g,y){let k=0;for(;kH?"":F[Tn+1].toLowerCase();const Ti=8&k?ri:null;if(Ti&&-1!==ug(Ti,he,0)||2&k&&he!==ri){if(ud(k))return!1;ot=!0}}}}else{if(!ot&&!ud(k)&&!ud(It))return!1;if(ot&&ud(It))continue;ot=!1,k=It|1&k}}return ud(k)||ot}function ud(f){return 0==(1&f)}function pg(f,g,y,k){if(null===g)return-1;let F=0;if(k||!y){let H=!1;for(;F-1)for(y++;y0?'="'+Ct+'"':"")+"]"}else 8&k?F+="."+ot:4&k&&(F+=" "+ot);else""!==F&&!ud(ot)&&(g+=Sm(H,F),F=""),k=ot,H=H||!ud(k);y++}return""!==F&&(g+=Sm(H,F)),g}const Ea={};function qf(f){Z0(da(),Gi(),Rr()+f,!1)}function Z0(f,g,y,k){if(!k)if(3==(3&g[2])){const H=f.preOrderCheckHooks;null!==H&&No(g,H,y)}else{const H=f.preOrderHooks;null!==H&&ea(g,H,0,y)}gs(y)}function eu(f,g=null,y=null,k){const F=Uc(f,g,y,k);return F.resolveInjectorInitializers(),F}function Uc(f,g=null,y=null,k,F=new Set){const H=[y||hi,F3(f)];return k=k||("object"==typeof f?void 0:w(f)),new g0(H,g||C2(),k||null,F)}let dd=(()=>{class f{static create(y,k){if(Array.isArray(y))return eu({name:""},k,y,"");{const F=y.name??"";return eu({name:F},y.parent,y.providers,F)}}}return f.THROW_IF_NOT_FOUND=Is,f.NULL=new Sd,f.\u0275prov=re({token:f,providedIn:"any",factory:()=>ic(f0)}),f.__NG_ELEMENT_ID__=-1,f})();function iu(f,g=oi.Default){const y=Gi();return null===y?ic(f,g):Zs(Wa(),y,N(f),g)}function _p(){throw new Error("invalid")}function R1(f,g){return f<<17|g<<2}function md(f){return f>>17&32767}function fp(f){return 2|f}function ou(f){return(131068&f)>>2}function hp(f,g){return-131069&f|g<<2}function Sa(f){return 1|f}function O2(f,g){const y=f.contentQueries;if(null!==y)for(let k=0;k22&&Z0(f,g,22,!1),y(k,F)}finally{gs(H)}}function wg(f,g,y){if(Sc(g)){const F=g.directiveEnd;for(let H=g.directiveStart;H0;){const y=f[--g];if("number"==typeof y&&y<0)return y}return 0})(Ct)!=It&&Ct.push(It),Ct.push(k,F,ot)}}function kg(f,g){null!==f.hostBindings&&f.hostBindings(1,g)}function vp(f,g){g.flags|=2,(f.components||(f.components=[])).push(g.index)}function F2(f,g,y){if(y){if(g.exportAs)for(let k=0;k0&&sh(y)}}function sh(f){for(let k=c2(f);null!==k;k=u_(k))for(let F=10;F0&&sh(H)}const y=f[1].components;if(null!==y)for(let k=0;k0&&sh(F)}}function ch(f,g){const y=rs(g,f),k=y[1];(function lh(f,g){for(let y=g.length;y-1&&(hm(g,k),Fl(y,k))}this._attachedToViewContainer=!1}Nu(this._lView[1],this._lView)}onDestroy(g){jr(this._lView[1],this._lView,null,g)}markForCheck(){Bp(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){H_(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new tt(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function l0(f,g){sp(f,g,g[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(g){if(this._attachedToViewContainer)throw new tt(902,!1);this._appRef=g}}class Lg extends z_{constructor(g){super(g),this._view=g}detectChanges(){const g=this._view;H_(g[1],g,g[8],!1)}checkNoChanges(){}get context(){return null}}class Hm extends wm{constructor(g){super(),this.ngModule=g}resolveComponentFactory(g){const y=zt(g);return new H2(y,this.ngModule)}}function R2(f){const g=[];for(let y in f)f.hasOwnProperty(y)&&g.push({propName:f[y],templateName:y});return g}class j0{constructor(g,y){this.injector=g,this.parentInjector=y}get(g,y,k){const F=this.injector.get(g,Ff,k);return F!==Ff||y===Ff?F:this.parentInjector.get(g,y,k)}}class H2 extends Lf{constructor(g,y){super(),this.componentDef=g,this.ngModule=y,this.componentType=g.type,this.selector=function M0(f){return f.map(w0).join(",")}(g.selectors),this.ngContentSelectors=g.ngContentSelectors?g.ngContentSelectors:[],this.isBoundToModule=!!y}get inputs(){return R2(this.componentDef.inputs)}get outputs(){return R2(this.componentDef.outputs)}create(g,y,k,F){let H=(F=F||this.ngModule)instanceof up?F:F?.injector;H&&null!==this.componentDef.getStandaloneInjector&&(H=this.componentDef.getStandaloneInjector(H)||H);const ot=H?new j0(g,H):g,Ct=ot.get(og,null);if(null===Ct)throw new tt(407,!1);const It=ot.get(C0,null),he=Ct.createRenderer(null,this.componentDef),je=this.componentDef.selectors[0][0]||"div",Tn=k?function Zg(f,g,y){return f.selectRootElement(g,y===hn.ShadowDom)}(he,k,this.componentDef.encapsulation):Op(he,je,function Q0(f){const g=f.toLowerCase();return"svg"===g?"svg":"math"===g?"math":null}(je)),ri=this.componentDef.onPush?288:272,Ti=th(0,null,null,1,0,null,null,null,null,null),ji=hd(null,Ti,null,ri,null,null,Ct,he,It,ot,null);let Zo,Ho;yc(ji);try{const ca=function Y2(f,g,y,k,F,H){const ot=y[1];y[22]=f;const It=F_(ot,22,2,"#host",null),he=It.mergedAttrs=g.hostAttrs;null!==he&&(q2(It,he,!0),null!==f&&(Ve(F,f,he),null!==It.classes&&Vh(F,f,It.classes),null!==It.styles&&Np(F,f,It.styles)));const je=k.createRenderer(f,g),Tn=hd(y,Mg(g),null,g.onPush?32:16,y[22],It,k,je,H||null,null,null);return ot.firstCreatePass&&(Jr(Xr(It,y),ot,g.type),vp(ot,It),Vp(It,y.length,1)),R_(y,Tn),y[22]=Tn}(Tn,this.componentDef,ji,Ct,he);if(Tn)if(k)Ve(he,Tn,["ng-version",Ef.full]);else{const{attrs:Ta,classes:uo}=function If(f){const g=[],y=[];let k=1,F=2;for(;k0&&Vh(he,Tn,uo.join(" "))}if(Ho=ms(Ti,22),void 0!==y){const Ta=Ho.projection=[];for(let uo=0;uo=0;k--){const F=f[k];F.hostVars=g+=F.hostVars,F.hostAttrs=ue(F.hostAttrs,y=ue(y,F.hostAttrs))}}(k)}function V_(f){return f===bo?{}:f===hi?[]:f}function $3(f,g){const y=f.viewQuery;f.viewQuery=y?(k,F)=>{g(k,F),y(k,F)}:g}function D(f,g){const y=f.contentQueries;f.contentQueries=y?(k,F,H)=>{g(k,F,H),y(k,F,H)}:g}function I(f,g){const y=f.hostBindings;f.hostBindings=y?(k,F)=>{g(k,F),y(k,F)}:g}let dn=null;function Hn(){if(!dn){const f=qn.Symbol;if(f&&f.iterator)dn=f.iterator;else{const g=Object.getOwnPropertyNames(Map.prototype);for(let y=0;yCt(Va(is[k.index])):k.index;let Ia=null;if(!Ct&&It&&(Ia=function i3(f,g,y,k){const F=f.cleanup;if(null!=F)for(let H=0;HIt?Ct[It]:null}"string"==typeof ot&&(H+=2)}return null}(f,g,F,k.index)),null!==Ia)(Ia.__ngLastListenerFn__||Ia).__ngNextListenerFn__=H,Ia.__ngLastListenerFn__=H,Ti=!1;else{H=a3(k,g,Tn,H,!1);const is=y.listen(ca,F,H);ri.push(H,is),je&&je.push(F,uo,Ta,Ta+1)}}else H=a3(k,g,Tn,H,!1);const ji=k.outputs;let Zo;if(Ti&&null!==ji&&(Zo=ji[F])){const Ho=Zo.length;if(Ho)for(let ca=0;ca0;)g=g[15],f--;return g}(f,io.lFrame.contextLView))[8]}(f)}function w5(f,g){let y=null;const k=function zp(f){const g=f.attrs;if(null!=g){const y=g.indexOf(5);if(0==(1&y))return g[y+1]}return null}(f);for(let F=0;F=0}const Tl={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function l4(f){return f.substring(Tl.key,Tl.keyEnd)}function u4(f,g){const y=Tl.textEnd;return y===g?-1:(g=Tl.keyEnd=function s3(f,g,y){for(;g32;)g++;return g}(f,Tl.key=g,y),J2(f,g,y))}function J2(f,g,y){for(;g=0;y=u4(g,y))ee(f,l4(g),!0)}function d1(f,g,y,k){const F=Gi(),H=da(),ot=Kc(2);H.firstUpdatePass&&f6(H,f,ot,k),g!==Ea&&ua(F,ot,g)&&C4(H,H.data[Rr()],F,F[11],f,F[ot+1]=function y4(f,g){return null==f||("string"==typeof g?f+=g:"object"==typeof f&&(f=w(Js(f)))),f}(g,y),k,ot)}function Ju(f,g,y,k){const F=da(),H=Kc(2);F.firstUpdatePass&&f6(F,null,H,k);const ot=Gi();if(y!==Ea&&ua(ot,H,y)){const Ct=F.data[Rr()];if(T4(Ct,k)&&!v4(F,H)){let It=k?Ct.classesWithoutHost:Ct.stylesWithoutHost;null!==It&&(y=P(It,y||"")),qg(F,Ct,ot,y,k)}else!function P5(f,g,y,k,F,H,ot,Ct){F===Ea&&(F=hi);let It=0,he=0,je=0=f.expandoStartIndex}function f6(f,g,y,k){const F=f.data;if(null===F[y+1]){const H=F[Rr()],ot=v4(f,y);T4(H,k)&&null===g&&!ot&&(g=!1),g=function Z5(f,g,y,k){const F=Fc(f);let H=k?g.residualClasses:g.residualStyles;if(null===F)0===(k?g.classBindings:g.styleBindings)&&(y=Bg(y=x4(null,f,g,y,k),g.attrs,k),H=null);else{const ot=g.directiveStylingLast;if(-1===ot||f[ot]!==F)if(y=x4(F,f,g,y,k),null===H){let It=function h6(f,g,y){const k=y?g.classBindings:g.styleBindings;if(0!==ou(k))return f[md(k)]}(f,g,k);void 0!==It&&Array.isArray(It)&&(It=x4(null,f,g,It[1],k),It=Bg(It,g.attrs,k),function g6(f,g,y,k){f[md(y?g.classBindings:g.styleBindings)]=k}(f,g,k,It))}else H=function Hc(f,g,y){let k;const F=g.directiveEnd;for(let H=1+g.directiveStylingLast;H0)&&(he=!0)}else je=y;if(F)if(0!==It){const ri=md(f[Ct+1]);f[k+1]=R1(ri,Ct),0!==ri&&(f[ri+1]=hp(f[ri+1],k)),f[Ct+1]=function Bf(f,g){return 131071&f|g<<17}(f[Ct+1],k)}else f[k+1]=R1(Ct,0),0!==Ct&&(f[Ct+1]=hp(f[Ct+1],k)),Ct=k;else f[k+1]=R1(It,0),0===Ct?Ct=k:f[It+1]=hp(f[It+1],k),It=k;he&&(f[k+1]=fp(f[k+1])),Ya(f,je,k,!0),Ya(f,je,k,!1),function c4(f,g,y,k,F){const H=F?f.residualClasses:f.residualStyles;null!=H&&"string"==typeof g&&Pn(H,g)>=0&&(y[k+1]=Sa(y[k+1]))}(g,je,f,k,H),ot=R1(Ct,It),H?g.classBindings=ot:g.styleBindings=ot}(F,H,g,y,ot,k)}}function x4(f,g,y,k,F){let H=null;const ot=y.directiveEnd;let Ct=y.directiveStylingLast;for(-1===Ct?Ct=y.directiveStart:Ct++;Ct0;){const It=f[F],he=Array.isArray(It),je=he?It[1]:It,Tn=null===je;let ri=y[F+1];ri===Ea&&(ri=Tn?hi:void 0);let Ti=Tn?me(ri,k):je===k?ri:void 0;if(he&&!xh(Ti)&&(Ti=me(It,k)),xh(Ti)&&(Ct=Ti,ot))return Ct;const ji=f[F+1];F=ot?md(ji):ou(ji)}if(null!==g){let It=H?g.residualClasses:g.residualStyles;null!=It&&(Ct=me(It,k))}return Ct}function xh(f){return void 0!==f}function T4(f,g){return 0!=(f.flags&(g?16:32))}function x6(f,g=""){const y=Gi(),k=da(),F=f+22,H=k.firstCreatePass?F_(k,F,1,g,null):k.data[F],ot=y[F]=function Yh(f,g){return f.createText(g)}(y[11],g);Qr(k,y,ot,H),Ft(H,!1)}function A4(f){return Jg("",f,""),A4}function Jg(f,g,y){const k=Gi(),F=nl(k,f,g,y);return F!==Ea&&Id(k,Rr(),F),Jg}function U4(f,g,y,k,F){const H=Gi(),ot=function Cs(f,g,y,k,F,H){const Ct=la(f,qr(),y,F);return Kc(2),Ct?g+ct(y)+k+ct(F)+H:Ea}(H,f,g,y,k,F);return ot!==Ea&&Id(H,Rr(),ot),U4}function b6(f,g,y,k,F,H,ot){const Ct=Gi(),It=function Hl(f,g,y,k,F,H,ot,Ct){const he=er(f,qr(),y,F,ot);return Kc(3),he?g+ct(y)+k+ct(F)+H+ct(ot)+Ct:Ea}(Ct,f,g,y,k,F,H,ot);return It!==Ea&&Id(Ct,Rr(),It),b6}function u3(f,g,y,k,F,H,ot,Ct,It){const he=Gi(),je=function ru(f,g,y,k,F,H,ot,Ct,It,he){const Tn=Na(f,qr(),y,F,ot,It);return Kc(4),Tn?g+ct(y)+k+ct(F)+H+ct(ot)+Ct+ct(It)+he:Ea}(he,f,g,y,k,F,H,ot,Ct,It);return je!==Ea&&Id(he,Rr(),je),u3}function w4(f,g,y,k,F,H,ot,Ct,It,he,je){const Tn=Gi(),ri=function zm(f,g,y,k,F,H,ot,Ct,It,he,je,Tn){const ri=qr();let Ti=Na(f,ri,y,F,ot,It);return Ti=ua(f,ri+4,je)||Ti,Kc(5),Ti?g+ct(y)+k+ct(F)+H+ct(ot)+Ct+ct(It)+he+ct(je)+Tn:Ea}(Tn,f,g,y,k,F,H,ot,Ct,It,he,je);return ri!==Ea&&Id(Tn,Rr(),ri),w4}function p3(f,g,y){Ju(ee,Bu,nl(Gi(),f,g,y),!0)}function M(f,g,y){const k=Gi();return ua(k,Ja(),g)&&Rl(da(),Pa(),k,f,g,k[11],y,!0),M}function S(f,g,y){const k=Gi();if(ua(k,Ja(),g)){const H=da(),ot=Pa();Rl(H,ot,k,f,g,I2(Fc(H.data),ot,k),y,!0)}return S}const q=void 0;var at=["en",[["a","p"],["AM","PM"],q],[["AM","PM"],q,q],[["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"]],q,[["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"]],q,[["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}",q,"{1} 'at' {0}",q],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function B(f){const y=Math.floor(Math.abs(f)),k=f.toString().replace(/^[^.]*\.?/,"").length;return 1===y&&0===k?1:5}];let _t={};function Zt(f,g,y){"string"!=typeof g&&(y=g,g=f[Gn.LocaleId]),g=g.toLowerCase().replace(/_/g,"-"),_t[g]=f,y&&(_t[g][Gn.ExtraData]=y)}function _e(f){const g=function Fi(f){return f.toLowerCase().replace(/_/g,"-")}(f);let y=Mn(g);if(y)return y;const k=g.split("-")[0];if(y=Mn(k),y)return y;if("en"===k)return at;throw new tt(701,!1)}function mn(f){return _e(f)[Gn.PluralCase]}function Mn(f){return f in _t||(_t[f]=qn.ng&&qn.ng.common&&qn.ng.common.locales&&qn.ng.common.locales[f]),_t[f]}var Gn=(()=>((Gn=Gn||{})[Gn.LocaleId=0]="LocaleId",Gn[Gn.DayPeriodsFormat=1]="DayPeriodsFormat",Gn[Gn.DayPeriodsStandalone=2]="DayPeriodsStandalone",Gn[Gn.DaysFormat=3]="DaysFormat",Gn[Gn.DaysStandalone=4]="DaysStandalone",Gn[Gn.MonthsFormat=5]="MonthsFormat",Gn[Gn.MonthsStandalone=6]="MonthsStandalone",Gn[Gn.Eras=7]="Eras",Gn[Gn.FirstDayOfWeek=8]="FirstDayOfWeek",Gn[Gn.WeekendRange=9]="WeekendRange",Gn[Gn.DateFormat=10]="DateFormat",Gn[Gn.TimeFormat=11]="TimeFormat",Gn[Gn.DateTimeFormat=12]="DateTimeFormat",Gn[Gn.NumberSymbols=13]="NumberSymbols",Gn[Gn.NumberFormats=14]="NumberFormats",Gn[Gn.CurrencyCode=15]="CurrencyCode",Gn[Gn.CurrencySymbol=16]="CurrencySymbol",Gn[Gn.CurrencyName=17]="CurrencyName",Gn[Gn.Currencies=18]="Currencies",Gn[Gn.Directionality=19]="Directionality",Gn[Gn.PluralCase=20]="PluralCase",Gn[Gn.ExtraData=21]="ExtraData",Gn))();const ba="en-US";let Al=ba;function S6(f,g,y,k,F){if(f=N(f),Array.isArray(f))for(let H=0;H>20;if(Od(f)||!f.multi){const Ti=new Uu(It,F,iu),ji=Q5(Ct,g,F?je:je+ri,Tn);-1===ji?(Jr(Xr(he,ot),H,Ct),J5(H,f,g.length),g.push(Ct),he.directiveStart++,he.directiveEnd++,F&&(he.providerIndexes+=1048576),y.push(Ti),ot.push(Ti)):(y[ji]=Ti,ot[ji]=Ti)}else{const Ti=Q5(Ct,g,je+ri,Tn),ji=Q5(Ct,g,je,je+ri),Zo=Ti>=0&&y[Ti],Ho=ji>=0&&y[ji];if(F&&!Ho||!F&&!Zo){Jr(Xr(he,ot),H,Ct);const ca=function gi(f,g,y,k,F){const H=new Uu(f,y,iu);return H.multi=[],H.index=g,H.componentProviders=0,G5(H,F,k&&!y),H}(F?BC:VC,y.length,F,k,It);!F&&Ho&&(y[ji].providerFactory=ca),J5(H,f,g.length,0),g.push(Ct),he.directiveStart++,he.directiveEnd++,F&&(he.providerIndexes+=1048576),y.push(ca),ot.push(ca)}else J5(H,f,Ti>-1?Ti:ji,G5(y[F?ji:Ti],It,!F&&k));!F&&k&&Ho&&y[ji].componentProviders++}}}function J5(f,g,y,k){const F=Od(g),H=function b2(f){return!!f.useClass}(g);if(F||H){const It=(H?N(g.useClass):g).prototype.ngOnDestroy;if(It){const he=f.destroyHooks||(f.destroyHooks=[]);if(!F&&g.multi){const je=he.indexOf(y);-1===je?he.push(y,[k,It]):he[je+1].push(k,It)}else he.push(y,It)}}}function G5(f,g,y){return y&&f.componentProviders++,f.multi.push(g)-1}function Q5(f,g,y,k){for(let F=y;F{y.providersResolver=(k,F)=>function zC(f,g,y){const k=da();if(k.firstCreatePass){const F=Ls(f);S6(y,k.data,k.blueprint,F,!0),S6(g,k.data,k.blueprint,F,!1)}}(k,F?F(f):f,g)}}class h3{}class O6{}function JC(f,g){return new W5(f,g??null)}class W5 extends h3{constructor(g,y){super(),this._parent=y,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Hm(this);const k=Ei(g);this._bootstrapComponents=E1(k.bootstrap),this._r3Injector=Uc(g,y,[{provide:h3,useValue:this},{provide:wm,useValue:this.componentFactoryResolver}],w(g),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(g)}get injector(){return this._r3Injector}destroy(){const g=this._r3Injector;!g.destroyed&&g.destroy(),this.destroyCbs.forEach(y=>y()),this.destroyCbs=null}onDestroy(g){this.destroyCbs.push(g)}}class L6 extends O6{constructor(g){super(),this.moduleType=g}create(g){return new W5(this.moduleType,g)}}class GC extends h3{constructor(g,y,k){super(),this.componentFactoryResolver=new Hm(this),this.instance=null;const F=new g0([...g,{provide:h3,useValue:this},{provide:wm,useValue:this.componentFactoryResolver}],y||C2(),k,new Set(["environment"]));this.injector=F,F.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(g){this.injector.onDestroy(g)}}function $5(f,g,y=null){return new GC(f,g,y).injector}let QC=(()=>{class f{constructor(y){this._injector=y,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(y){if(!y.standalone)return null;if(!this.cachedInjectors.has(y.id)){const k=Rp(0,y.type),F=k.length>0?$5([k],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 f.\u0275prov=re({token:f,providedIn:"environment",factory:()=>new f(ic(up))}),f})();function t8(f){f.getStandaloneInjector=g=>g.get(QC).getOrCreateStandaloneInjector(f)}function s8(f,g,y){const k=Ir()+f,F=Gi();return F[k]===Ea?jo(F,k,y?g.call(y):g()):function ma(f,g){return f[g]}(F,k)}function c8(f,g,y,k){return nv(Gi(),Ir(),f,g,y,k)}function l8(f,g,y,k,F){return d8(Gi(),Ir(),f,g,y,k,F)}function F4(f,g){const y=f[g];return y===Ea?void 0:y}function nv(f,g,y,k,F,H){const ot=g+y;return ua(f,ot,F)?jo(f,ot+1,H?k.call(H,F):k(F)):F4(f,ot+1)}function d8(f,g,y,k,F,H,ot){const Ct=g+y;return la(f,Ct,F,H)?jo(f,Ct+2,ot?k.call(ot,F,H):k(F,H)):F4(f,Ct+2)}function _8(f,g){const y=da();let k;const F=f+22;y.firstCreatePass?(k=function f8(f,g){if(g)for(let y=g.length-1;y>=0;y--){const k=g[y];if(f===k.name)return k}}(g,y.pipeRegistry),y.data[F]=k,k.onDestroy&&(y.destroyHooks||(y.destroyHooks=[])).push(F,k.onDestroy)):k=y.data[F];const H=k.factory||(k.factory=Xs(k.type)),ot=it(iu);try{const Ct=wi(!1),It=H();return wi(Ct),function l6(f,g,y,k){y>=f.data.length&&(f.data[y]=null,f.blueprint[y]=null),g[y]=k}(y,Gi(),F,It),It}finally{it(ot)}}function h8(f,g,y){const k=f+22,F=Gi(),H=Za(F,k);return N4(F,k)?nv(F,Ir(),g,H.transform,y,H):H.transform(y)}function g8(f,g,y,k){const F=f+22,H=Gi(),ot=Za(H,F);return N4(H,F)?d8(H,Ir(),g,ot.transform,y,k,ot):ot.transform(y,k)}function v8(f,g,y,k,F){const H=f+22,ot=Gi(),Ct=Za(ot,H);return N4(ot,H)?function iv(f,g,y,k,F,H,ot,Ct){const It=g+y;return er(f,It,F,H,ot)?jo(f,It+3,Ct?k.call(Ct,F,H,ot):k(F,H,ot)):F4(f,It+3)}(ot,Ir(),g,Ct.transform,y,k,F,Ct):Ct.transform(y,k,F)}function E6(f,g,y,k,F,H){const ot=f+22,Ct=Gi(),It=Za(Ct,ot);return N4(Ct,ot)?function p8(f,g,y,k,F,H,ot,Ct,It){const he=g+y;return Na(f,he,F,H,ot,Ct)?jo(f,he+4,It?k.call(It,F,H,ot,Ct):k(F,H,ot,Ct)):F4(f,he+4)}(Ct,Ir(),g,It.transform,y,k,F,H,It):It.transform(y,k,F,H)}function N4(f,g){return f[1].data[g].pure}function ov(f){return g=>{setTimeout(f,void 0,g)}}const J1=class s7 extends u.xQ{constructor(g=!1){super(),this.__isAsync=g}emit(g){super.next(g)}subscribe(g,y,k){let F=g,H=y||(()=>null),ot=k;if(g&&"object"==typeof g){const It=g;F=It.next?.bind(It),H=It.error?.bind(It),ot=It.complete?.bind(It)}this.__isAsync&&(H=ov(H),F&&(F=ov(F)),ot&&(ot=ov(ot)));const Ct=super.subscribe({next:F,error:H,complete:ot});return g instanceof p.w&&g.add(Ct),Ct}};function c7(){return this._results[Hn()]()}class F6{constructor(g=!1){this._emitDistinctChangesOnly=g,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const y=Hn(),k=F6.prototype;k[y]||(k[y]=c7)}get changes(){return this._changes||(this._changes=new J1)}get(g){return this._results[g]}map(g){return this._results.map(g)}filter(g){return this._results.filter(g)}find(g){return this._results.find(g)}reduce(g,y){return this._results.reduce(g,y)}forEach(g){this._results.forEach(g)}some(g){return this._results.some(g)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(g,y){const k=this;k.dirty=!1;const F=pc(g);(this._changesDetected=!function qc(f,g,y){if(f.length!==g.length)return!1;for(let k=0;k{class f{}return f.__NG_ELEMENT_ID__=l7,f})();const av=I4,x8=class extends av{constructor(g,y,k){super(),this._declarationLView=g,this._declarationTContainer=y,this.elementRef=k}createEmbeddedView(g,y){const k=this._declarationTContainer.tViews,F=hd(this._declarationLView,k,g,16,null,k.declTNode,null,null,null,null,y||null);F[17]=this._declarationLView[this._declarationTContainer.index];const ot=this._declarationLView[19];return null!==ot&&(F[19]=ot.createEmbeddedView(k)),Ug(k,F,g),new z_(F)}};function l7(){return q4(Wa(),Gi())}function q4(f,g){return 4&f.type?new x8(g,f,Ha(f,g)):null}let N6=(()=>{class f{}return f.__NG_ELEMENT_ID__=u7,f})();function u7(){return sv(Wa(),Gi())}const b8=N6,C8=class extends b8{constructor(g,y,k){super(),this._lContainer=g,this._hostTNode=y,this._hostLView=k}get element(){return Ha(this._hostTNode,this._hostLView)}get injector(){return new _l(this._hostTNode,this._hostLView)}get parentInjector(){const g=ts(this._hostTNode,this._hostLView);if(Ke(g)){const y=ei(g,this._hostLView),k=bn(g);return new _l(y[1].data[k+8],y)}return new _l(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(g){const y=y8(this._lContainer);return null!==y&&y[g]||null}get length(){return this._lContainer.length-10}createEmbeddedView(g,y,k){let F,H;"number"==typeof k?F=k:null!=k&&(F=k.index,H=k.injector);const ot=g.createEmbeddedView(y||{},H);return this.insert(ot,F),ot}createComponent(g,y,k,F,H){const ot=g&&!function T1(f){return"function"==typeof f}(g);let Ct;if(ot)Ct=y;else{const Tn=y||{};Ct=Tn.index,k=Tn.injector,F=Tn.projectableNodes,H=Tn.environmentInjector||Tn.ngModuleRef}const It=ot?g:new H2(zt(g)),he=k||this.parentInjector;if(!H&&null==It.ngModule){const ri=(ot?he:this.parentInjector).get(up,null);ri&&(H=ri)}const je=It.create(he,F,void 0,H);return this.insert(je.hostView,Ct),je}insert(g,y){const k=g._lView,F=k[1];if(function Fs(f){return Ar(f[3])}(k)){const je=this.indexOf(g);if(-1!==je)this.detach(je);else{const Tn=k[3],ri=new C8(Tn,Tn[6],Tn[3]);ri.detach(ri.indexOf(g))}}const H=this._adjustIndex(y),ot=this._lContainer;!function qs(f,g,y,k){const F=10+k,H=y.length;k>0&&(y[F-1][4]=g),k0)k.push(ot[Ct/2]);else{const he=H[Ct+1],je=g[-It];for(let Tn=10;Tn{class f{constructor(y){this.appInits=y,this.resolve=B6,this.reject=B6,this.initialized=!1,this.done=!1,this.donePromise=new Promise((k,F)=>{this.resolve=k,this.reject=F})}runInitializers(){if(this.initialized)return;const y=[],k=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let F=0;F{H.subscribe({complete:Ct,error:It})});y.push(ot)}}Promise.all(y).then(()=>{k()}).catch(F=>{this.reject(F)}),0===y.length&&k(),this.initialized=!0}}return f.\u0275fac=function(y){return new(y||f)(ic(Y8,8))},f.\u0275prov=re({token:f,factory:f.\u0275fac,providedIn:"root"}),f})();const z8=new Un("AppId",{providedIn:"root",factory:function V8(){return`${J6()}${J6()}${J6()}`}});function J6(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const B8=new Un("Platform Initializer"),F7=new Un("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),J8=new Un("appBootstrapListener"),I7=new Un("AnimationModuleType");let q7=(()=>{class f{log(y){console.log(y)}warn(y){console.warn(y)}}return f.\u0275fac=function(y){return new(y||f)},f.\u0275prov=re({token:f,factory:f.\u0275fac,providedIn:"platform"}),f})();const G6=new Un("LocaleId",{providedIn:"root",factory:()=>Up(G6,oi.Optional|oi.SkipSelf)||function R7(){return typeof $localize<"u"&&$localize.locale||ba}()}),H7=new Un("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class z7{constructor(g,y){this.ngModuleFactory=g,this.componentFactories=y}}let G8=(()=>{class f{compileModuleSync(y){return new L6(y)}compileModuleAsync(y){return Promise.resolve(this.compileModuleSync(y))}compileModuleAndAllComponentsSync(y){const k=this.compileModuleSync(y),H=E1(Ei(y).declarations).reduce((ot,Ct)=>{const It=zt(Ct);return It&&ot.push(new H2(It)),ot},[]);return new z7(k,H)}compileModuleAndAllComponentsAsync(y){return Promise.resolve(this.compileModuleAndAllComponentsSync(y))}clearCache(){}clearCacheFor(y){}getModuleId(y){}}return f.\u0275fac=function(y){return new(y||f)},f.\u0275prov=re({token:f,factory:f.\u0275fac,providedIn:"root"}),f})();const B7=(()=>Promise.resolve(0))();function Q6(f){typeof Zone>"u"?B7.then(()=>{f&&f.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",f)}class Wp{constructor({enableLongStackTrace:g=!1,shouldCoalesceEventChangeDetection:y=!1,shouldCoalesceRunChangeDetection:k=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new J1(!1),this.onMicrotaskEmpty=new J1(!1),this.onStable=new J1(!1),this.onError=new J1(!1),typeof Zone>"u")throw new tt(908,!1);Zone.assertZonePatched();const F=this;if(F._nesting=0,F._outer=F._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const H=Zone.AsyncStackTaggingZoneSpec;F._inner=F._inner.fork(new H("Angular"))}Zone.TaskTrackingZoneSpec&&(F._inner=F._inner.fork(new Zone.TaskTrackingZoneSpec)),g&&Zone.longStackTraceZoneSpec&&(F._inner=F._inner.fork(Zone.longStackTraceZoneSpec)),F.shouldCoalesceEventChangeDetection=!k&&y,F.shouldCoalesceRunChangeDetection=k,F.lastRequestAnimationFrameId=-1,F.nativeRequestAnimationFrame=function $8(){let f=qn.requestAnimationFrame,g=qn.cancelAnimationFrame;if(typeof Zone<"u"&&f&&g){const y=f[Zone.__symbol__("OriginalDelegate")];y&&(f=y);const k=g[Zone.__symbol__("OriginalDelegate")];k&&(g=k)}return{nativeRequestAnimationFrame:f,nativeCancelAnimationFrame:g}}().nativeRequestAnimationFrame,function J7(f){const g=()=>{!function wv(f){f.isCheckStableRunning||-1!==f.lastRequestAnimationFrameId||(f.lastRequestAnimationFrameId=f.nativeRequestAnimationFrame.call(qn,()=>{f.fakeTopEventTask||(f.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{f.lastRequestAnimationFrameId=-1,Mv(f),f.isCheckStableRunning=!0,Uv(f),f.isCheckStableRunning=!1},void 0,()=>{},()=>{})),f.fakeTopEventTask.invoke()}),Mv(f))}(f)};f._inner=f._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(y,k,F,H,ot,Ct)=>{try{return X8(f),y.invokeTask(F,H,ot,Ct)}finally{(f.shouldCoalesceEventChangeDetection&&"eventTask"===H.type||f.shouldCoalesceRunChangeDetection)&&g(),Zv(f)}},onInvoke:(y,k,F,H,ot,Ct,It)=>{try{return X8(f),y.invoke(F,H,ot,Ct,It)}finally{f.shouldCoalesceRunChangeDetection&&g(),Zv(f)}},onHasTask:(y,k,F,H)=>{y.hasTask(F,H),k===F&&("microTask"==H.change?(f._hasPendingMicrotasks=H.microTask,Mv(f),Uv(f)):"macroTask"==H.change&&(f.hasPendingMacrotasks=H.macroTask))},onHandleError:(y,k,F,H)=>(y.handleError(F,H),f.runOutsideAngular(()=>f.onError.emit(H)),!1)})}(F)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Wp.isInAngularZone())throw new tt(909,!1)}static assertNotInAngularZone(){if(Wp.isInAngularZone())throw new tt(909,!1)}run(g,y,k){return this._inner.run(g,y,k)}runTask(g,y,k,F){const H=this._inner,ot=H.scheduleEventTask("NgZoneEvent: "+F,g,K8,B6,B6);try{return H.runTask(ot,y,k)}finally{H.cancelTask(ot)}}runGuarded(g,y,k){return this._inner.runGuarded(g,y,k)}runOutsideAngular(g){return this._outer.run(g)}}const K8={};function Uv(f){if(0==f._nesting&&!f.hasPendingMicrotasks&&!f.isStable)try{f._nesting++,f.onMicrotaskEmpty.emit(null)}finally{if(f._nesting--,!f.hasPendingMicrotasks)try{f.runOutsideAngular(()=>f.onStable.emit(null))}finally{f.isStable=!0}}}function Mv(f){f.hasPendingMicrotasks=!!(f._hasPendingMicrotasks||(f.shouldCoalesceEventChangeDetection||f.shouldCoalesceRunChangeDetection)&&-1!==f.lastRequestAnimationFrameId)}function X8(f){f._nesting++,f.isStable&&(f.isStable=!1,f.onUnstable.emit(null))}function Zv(f){f._nesting--,Uv(f)}class Dv{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new J1,this.onMicrotaskEmpty=new J1,this.onStable=new J1,this.onError=new J1}run(g,y,k){return g.apply(y,k)}runGuarded(g,y,k){return g.apply(y,k)}runOutsideAngular(g){return g()}runTask(g,y,k,F){return g.apply(y,k)}}const tb=new Un(""),eb=new Un("");let j6,nb=(()=>{class f{constructor(y,k,F){this._ngZone=y,this.registry=k,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,j6||(function G7(f){j6=f}(F),F.addToWindow(k)),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:()=>{Wp.assertNotInAngularZone(),Q6(()=>{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())Q6(()=>{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(k=>!k.updateCb||!k.updateCb(y)||(clearTimeout(k.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,k,F){let H=-1;k&&k>0&&(H=setTimeout(()=>{this._callbacks=this._callbacks.filter(ot=>ot.timeoutId!==H),y(this._didWork,this.getPendingTasks())},k)),this._callbacks.push({doneCb:y,timeoutId:H,updateCb:F})}whenStable(y,k,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,k,F),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(y){this.registry.registerApplication(y,this)}unregisterApplication(y){this.registry.unregisterApplication(y)}findProviders(y,k,F){return[]}}return f.\u0275fac=function(y){return new(y||f)(ic(Wp),ic(ib),ic(eb))},f.\u0275prov=re({token:f,factory:f.\u0275fac}),f})(),ib=(()=>{class f{constructor(){this._applications=new Map}registerApplication(y,k){this._applications.set(y,k)}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,k=!0){return j6?.findTestabilityInTree(this,y,k)??null}}return f.\u0275fac=function(y){return new(y||f)},f.\u0275prov=re({token:f,factory:f.\u0275fac,providedIn:"platform"}),f})(),Ch=null;const Pv=new Un("AllowMultipleToken"),kv=new Un("PlatformDestroyListeners");class ob{constructor(g,y){this.name=g,this.token=y}}function rb(f,g,y=[]){const k=`Platform: ${g}`,F=new Un(k);return(H=[])=>{let ot=$6();if(!ot||ot.injector.get(Pv,!1)){const Ct=[...y,...H,{provide:F,useValue:!0}];f?f(Ct):function j7(f){if(Ch&&!Ch.get(Pv,!1))throw new tt(400,!1);Ch=f;const g=f.get(Sv);(function ab(f){const g=f.get(B8,null);g&&g.forEach(y=>y())})(f)}(function sb(f=[],g){return dd.create({name:g,providers:[{provide:lp,useValue:"platform"},{provide:kv,useValue:new Set([()=>Ch=null])},...f]})}(Ct,k))}return function $7(f){const g=$6();if(!g)throw new tt(401,!1);return g}()}}function $6(){return Ch?.get(Sv)??null}let Sv=(()=>{class f{constructor(y){this._injector=y,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(y,k){const F=function cb(f,g){let y;return y="noop"===f?new Dv:("zone.js"===f?void 0:f)||new Wp(g),y}(k?.ngZone,function K6(f){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!f||!f.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!f||!f.ngZoneRunCoalescing)||!1}}(k)),H=[{provide:Wp,useValue:F}];return F.run(()=>{const ot=dd.create({providers:H,parent:this.injector,name:y.moduleType.name}),Ct=y.create(ot),It=Ct.injector.get(Yp,null);if(!It)throw new tt(402,!1);return F.runOutsideAngular(()=>{const he=F.onError.subscribe({next:je=>{It.handleError(je)}});Ct.onDestroy(()=>{H4(this._modules,Ct),he.unsubscribe()})}),function lb(f,g,y){try{const k=y();return n3(k)?k.catch(F=>{throw g.runOutsideAngular(()=>f.handleError(F)),F}):k}catch(k){throw g.runOutsideAngular(()=>f.handleError(k)),k}}(It,F,()=>{const he=Ct.injector.get(R4);return he.runInitializers(),he.donePromise.then(()=>(function al(f){Ge(f,"Expected localeId to be defined"),"string"==typeof f&&(Al=f.toLowerCase().replace(/_/g,"-"))}(Ct.injector.get(G6,ba)||ba),this._moduleDoBootstrap(Ct),Ct))})})}bootstrapModule(y,k=[]){const F=X6({},k);return function Q7(f,g,y){const k=new L6(y);return Promise.resolve(k)}(0,0,y).then(H=>this.bootstrapModuleFactory(H,F))}_moduleDoBootstrap(y){const k=y.injector.get(t5);if(y._bootstrapComponents.length>0)y._bootstrapComponents.forEach(F=>k.bootstrap(F));else{if(!y.instance.ngDoBootstrap)throw new tt(403,!1);y.instance.ngDoBootstrap(k)}this._modules.push(y)}onDestroy(y){this._destroyListeners.push(y)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new tt(404,!1);this._modules.slice().forEach(k=>k.destroy()),this._destroyListeners.forEach(k=>k());const y=this._injector.get(kv,null);y&&(y.forEach(k=>k()),y.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return f.\u0275fac=function(y){return new(y||f)(ic(dd))},f.\u0275prov=re({token:f,factory:f.\u0275fac,providedIn:"platform"}),f})();function X6(f,g){return Array.isArray(g)?g.reduce(X6,f):{...f,...g}}let t5=(()=>{class f{constructor(y,k,F){this._zone=y,this._injector=k,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 H=new x.y(Ct=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{Ct.next(this._stable),Ct.complete()})}),ot=new x.y(Ct=>{let It;this._zone.runOutsideAngular(()=>{It=this._zone.onStable.subscribe(()=>{Wp.assertNotInAngularZone(),Q6(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,Ct.next(!0))})})});const he=this._zone.onUnstable.subscribe(()=>{Wp.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{Ct.next(!1)}))});return()=>{It.unsubscribe(),he.unsubscribe()}});this.isStable=(0,v.T)(H,ot.pipe((0,t.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(y,k){const F=y instanceof Lf;if(!this._injector.get(R4).done)throw!F&&Sn(y),new tt(405,false);let ot;ot=F?y:this._injector.get(wm).resolveComponentFactory(y),this.componentTypes.push(ot.componentType);const Ct=function W6(f){return f.isBoundToModule}(ot)?void 0:this._injector.get(h3),he=ot.create(dd.NULL,[],k||ot.selector,Ct),je=he.location.nativeElement,Tn=he.injector.get(tb,null);return Tn?.registerApplication(je),he.onDestroy(()=>{this.detachView(he.hostView),H4(this.components,he),Tn?.unregisterApplication(je)}),this._loadComponent(he),he}tick(){if(this._runningTick)throw new tt(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 k=y;this._views.push(k),k.attachToAppRef(this)}detachView(y){const k=y;H4(this._views,k),k.detachFromAppRef()}_loadComponent(y){this.attachView(y.hostView),this.tick(),this.components.push(y),this._injector.get(J8,[]).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),()=>H4(this._destroyListeners,y)}destroy(){if(this._destroyed)throw new tt(406,!1);const y=this._injector;y.destroy&&!y.destroyed&&y.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return f.\u0275fac=function(y){return new(y||f)(ic(Wp),ic(up),ic(Yp))},f.\u0275prov=re({token:f,factory:f.\u0275fac,providedIn:"root"}),f})();function H4(f,g){const y=f.indexOf(g);y>-1&&f.splice(y,1)}let db=!0;function ty(){db=!1}let _b=(()=>{class f{}return f.__NG_ELEMENT_ID__=ny,f})();function ny(f){return function fb(f,g,y){if(Ml(f)&&!y){const k=rs(f.index,g);return new z_(k,k)}return 47&f.type?new z_(g[Q],g):null}(Wa(),Gi(),16==(16&f))}class vb{constructor(){}supports(g){return fi(g)}create(g){return new cy(g)}}const sy=(f,g)=>g;class cy{constructor(g){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=g||sy}forEachItem(g){let y;for(y=this._itHead;null!==y;y=y._next)g(y)}forEachOperation(g){let y=this._itHead,k=this._removalsHead,F=0,H=null;for(;y||k;){const ot=!k||y&&y.currentIndex{ot=this._trackByFn(F,Ct),null!==y&&Object.is(y.trackById,ot)?(k&&(y=this._verifyReinsertion(y,Ct,ot,F)),Object.is(y.item,Ct)||this._addIdentityChange(y,Ct)):(y=this._mismatch(y,Ct,ot,F),k=!0),y=y._next,F++}),this.length=F;return this._truncate(y),this.collection=g,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let g;for(g=this._previousItHead=this._itHead;null!==g;g=g._next)g._nextPrevious=g._next;for(g=this._additionsHead;null!==g;g=g._nextAdded)g.previousIndex=g.currentIndex;for(this._additionsHead=this._additionsTail=null,g=this._movesHead;null!==g;g=g._nextMoved)g.previousIndex=g.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(g,y,k,F){let H;return null===g?H=this._itTail:(H=g._prev,this._remove(g)),null!==(g=null===this._unlinkedRecords?null:this._unlinkedRecords.get(k,null))?(Object.is(g.item,y)||this._addIdentityChange(g,y),this._reinsertAfter(g,H,F)):null!==(g=null===this._linkedRecords?null:this._linkedRecords.get(k,F))?(Object.is(g.item,y)||this._addIdentityChange(g,y),this._moveAfter(g,H,F)):g=this._addAfter(new ly(y,k),H,F),g}_verifyReinsertion(g,y,k,F){let H=null===this._unlinkedRecords?null:this._unlinkedRecords.get(k,null);return null!==H?g=this._reinsertAfter(H,g._prev,F):g.currentIndex!=F&&(g.currentIndex=F,this._addToMoves(g,F)),g}_truncate(g){for(;null!==g;){const y=g._next;this._addToRemovals(this._unlink(g)),g=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(g,y,k){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(g);const F=g._prevRemoved,H=g._nextRemoved;return null===F?this._removalsHead=H:F._nextRemoved=H,null===H?this._removalsTail=F:H._prevRemoved=F,this._insertAfter(g,y,k),this._addToMoves(g,k),g}_moveAfter(g,y,k){return this._unlink(g),this._insertAfter(g,y,k),this._addToMoves(g,k),g}_addAfter(g,y,k){return this._insertAfter(g,y,k),this._additionsTail=null===this._additionsTail?this._additionsHead=g:this._additionsTail._nextAdded=g,g}_insertAfter(g,y,k){const F=null===y?this._itHead:y._next;return g._next=F,g._prev=y,null===F?this._itTail=g:F._prev=g,null===y?this._itHead=g:y._next=g,null===this._linkedRecords&&(this._linkedRecords=new Iv),this._linkedRecords.put(g),g.currentIndex=k,g}_remove(g){return this._addToRemovals(this._unlink(g))}_unlink(g){null!==this._linkedRecords&&this._linkedRecords.remove(g);const y=g._prev,k=g._next;return null===y?this._itHead=k:y._next=k,null===k?this._itTail=y:k._prev=y,g}_addToMoves(g,y){return g.previousIndex===y||(this._movesTail=null===this._movesTail?this._movesHead=g:this._movesTail._nextMoved=g),g}_addToRemovals(g){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Iv),this._unlinkedRecords.put(g),g.currentIndex=null,g._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=g,g._prevRemoved=null):(g._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=g),g}_addIdentityChange(g,y){return g.item=y,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=g:this._identityChangesTail._nextIdentityChange=g,g}}class ly{constructor(g,y){this.item=g,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 uy{constructor(){this._head=null,this._tail=null}add(g){null===this._head?(this._head=this._tail=g,g._nextDup=null,g._prevDup=null):(this._tail._nextDup=g,g._prevDup=this._tail,g._nextDup=null,this._tail=g)}get(g,y){let k;for(k=this._head;null!==k;k=k._nextDup)if((null===y||y<=k.currentIndex)&&Object.is(k.trackById,g))return k;return null}remove(g){const y=g._prevDup,k=g._nextDup;return null===y?this._head=k:y._nextDup=k,null===k?this._tail=y:k._prevDup=y,null===this._head}}class Iv{constructor(){this.map=new Map}put(g){const y=g.trackById;let k=this.map.get(y);k||(k=new uy,this.map.set(y,k)),k.add(g)}get(g,y){const F=this.map.get(g);return F?F.get(g,y):null}remove(g){const y=g.trackById;return this.map.get(y).remove(g)&&this.map.delete(y),g}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function xb(f,g,y){const k=f.previousIndex;if(null===k)return k;let F=0;return y&&k{if(y&&y.key===F)this._maybeAddToChanges(y,k),this._appendAfter=y,y=y._next;else{const H=this._getOrCreateRecordForKey(F,k);y=this._insertBeforeOrAppend(y,H)}}),y){y._prev&&(y._prev._next=null),this._removalsHead=y;for(let k=y;null!==k;k=k._nextRemoved)k===this._mapHead&&(this._mapHead=null),this._records.delete(k.key),k._nextRemoved=k._next,k.previousValue=k.currentValue,k.currentValue=null,k._prev=null,k._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(g,y){if(g){const k=g._prev;return y._next=g,y._prev=k,g._prev=y,k&&(k._next=y),g===this._mapHead&&(this._mapHead=y),this._appendAfter=g,g}return this._appendAfter?(this._appendAfter._next=y,y._prev=this._appendAfter):this._mapHead=y,this._appendAfter=y,null}_getOrCreateRecordForKey(g,y){if(this._records.has(g)){const F=this._records.get(g);this._maybeAddToChanges(F,y);const H=F._prev,ot=F._next;return H&&(H._next=ot),ot&&(ot._prev=H),F._next=null,F._prev=null,F}const k=new py(g);return this._records.set(g,k),k.currentValue=y,this._addToAdditions(k),k}_reset(){if(this.isDirty){let g;for(this._previousMapHead=this._mapHead,g=this._previousMapHead;null!==g;g=g._next)g._nextPrevious=g._next;for(g=this._changesHead;null!==g;g=g._nextChanged)g.previousValue=g.currentValue;for(g=this._additionsHead;null!=g;g=g._nextAdded)g.previousValue=g.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(g,y){Object.is(y,g.currentValue)||(g.previousValue=g.currentValue,g.currentValue=y,this._addToChanges(g))}_addToAdditions(g){null===this._additionsHead?this._additionsHead=this._additionsTail=g:(this._additionsTail._nextAdded=g,this._additionsTail=g)}_addToChanges(g){null===this._changesHead?this._changesHead=this._changesTail=g:(this._changesTail._nextChanged=g,this._changesTail=g)}_forEach(g,y){g instanceof Map?g.forEach(y):Object.keys(g).forEach(k=>y(g[k],k))}}class py{constructor(g){this.key=g,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 qv(){return new Rv([new vb])}let Rv=(()=>{class f{constructor(y){this.factories=y}static create(y,k){if(null!=k){const F=k.factories.slice();y=y.concat(F)}return new f(y)}static extend(y){return{provide:f,useFactory:k=>f.create(y,k||qv()),deps:[[f,new wp,new oc]]}}find(y){const k=this.factories.find(F=>F.supports(y));if(null!=k)return k;throw new tt(901,!1)}}return f.\u0275prov=re({token:f,providedIn:"root",factory:qv}),f})();function Cb(){return new Y4([new bb])}let Y4=(()=>{class f{constructor(y){this.factories=y}static create(y,k){if(k){const F=k.factories.slice();y=y.concat(F)}return new f(y)}static extend(y){return{provide:f,useFactory:k=>f.create(y,k||Cb()),deps:[[f,new wp,new oc]]}}find(y){const k=this.factories.find(F=>F.supports(y));if(k)return k;throw new tt(901,!1)}}return f.\u0275prov=re({token:f,providedIn:"root",factory:Cb}),f})();const fy=rb(null,"core",[]);let hy=(()=>{class f{constructor(y){}}return f.\u0275fac=function(y){return new(y||f)(ic(t5))},f.\u0275mod=fn({type:f}),f.\u0275inj=oe({}),f})();function gy(f){return"boolean"==typeof f?f:null!=f&&"false"!==f}},85863:(X,j,h)=>{"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}h.d(j,{Ar:()=>v,GK:()=>u,iQ:()=>x,kt:()=>P,tj:()=>T});const p="inline",x=["row","column","row-reverse","column-reverse"];function v(O){let[L,N,V]=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,V)}function t(O){O=O?.toLowerCase()??"";let[L,N,V]=O.split(" ");return x.find(W=>W===L)||(L=x[0]),N===p&&(N=V!==p?V:"",V=p),[L,U(N),!!V]}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 V in N)N.hasOwnProperty(V)&&(O[V]=N[V]);return O}},32233:(X,j,h)=>{"use strict";h.d(j,{Bs:()=>Dt,FL:()=>hi,IR:()=>V,Ot:()=>mi,QI:()=>qt,RK:()=>Jt,WU:()=>ct,g5:()=>st,iR:()=>it,wY:()=>bt,yB:()=>Qe});var u=h(94650),p=h(36895),x=h(591),v=h(56498),t=h(36787),T=h(8929),U=h(85863),w=h(92198),P=h(22868);const L={provide:u.tb,useFactory:function O(Yn,Vn){return()=>{if((0,p.NF)(Vn)){const Je=Array.from(Yn.querySelectorAll(`[class*=${N}]`)),gn=/\bflex-layout-.+?\b/g;Je.forEach(Ye=>{Ye.classList.contains(`${N}ssr`)&&Ye.parentNode?Ye.parentNode.removeChild(Ye):Ye.className.replace(gn,"")})}}},deps:[p.K0,u.Lbi],multi:!0},N="flex-layout-";let V=(()=>{class Yn{}return Yn.\u0275fac=function(Je){return new(Je||Yn)},Yn.\u0275mod=u.oAB({type:Yn}),Yn.\u0275inj=u.cJS({providers:[L]}),Yn})();class W{constructor(Vn=!1,Je="all",gn="",Ye="",Ee=0){this.matches=Vn,this.mediaQuery=Je,this.mqAlias=gn,this.suffix=Ye,this.priority=Ee,this.property=""}clone(){return new W(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let tt=(()=>{class Yn{constructor(){this.stylesheet=new Map}addStyleToElement(Je,gn,Ye){const Ee=this.stylesheet.get(Je);Ee?Ee.set(gn,Ye):this.stylesheet.set(Je,new Map([[gn,Ye]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(Je,gn){const Ye=this.stylesheet.get(Je);let Ee="";if(Ye){const Xe=Ye.get(gn);("number"==typeof Xe||"string"==typeof Xe)&&(Ee=Xe+"")}return Ee}}return Yn.\u0275fac=function(Je){return new(Je||Yn)},Yn.\u0275prov=u.Yz7({token:Yn,factory:Yn.\u0275fac,providedIn:"root"}),Yn})();const st={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},ct=new u.OlP("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>st}),bt=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 wt(Yn,Vn){return Yn=Yn?.clone()??new W,Vn&&(Yn.mqAlias=Vn.alias,Yn.mediaQuery=Vn.mediaQuery,Yn.suffix=Vn.suffix,Yn.priority=Vn.priority),Yn}class qt{constructor(){this.shouldCache=!0}sideEffect(Vn,Je,gn){}}let Jt=(()=>{class Yn{constructor(Je,gn,Ye,Ee){this._serverStylesheet=Je,this._serverModuleLoaded=gn,this._platformId=Ye,this.layoutConfig=Ee}applyStyleToElement(Je,gn,Ye=null){let Ee={};"string"==typeof gn&&(Ee[gn]=Ye,gn=Ee),Ee=this.layoutConfig.disableVendorPrefixes?gn:(0,U.GK)(gn),this._applyMultiValueStyleToElement(Ee,Je)}applyStyleToElements(Je,gn=[]){const Ye=this.layoutConfig.disableVendorPrefixes?Je:(0,U.GK)(Je);gn.forEach(Ee=>{this._applyMultiValueStyleToElement(Ye,Ee)})}getFlowDirection(Je){const gn="flex-direction";let Ye=this.lookupStyle(Je,gn);return[Ye||"row",this.lookupInlineStyle(Je,gn)||(0,p.PM)(this._platformId)&&this._serverModuleLoaded?Ye:""]}hasWrap(Je){return"wrap"===this.lookupStyle(Je,"flex-wrap")}lookupAttributeValue(Je,gn){return Je.getAttribute(gn)??""}lookupInlineStyle(Je,gn){return(0,p.NF)(this._platformId)?Je.style.getPropertyValue(gn):function yt(Yn,Vn){return pt(Yn)[Vn]??""}(Je,gn)}lookupStyle(Je,gn,Ye=!1){let Ee="";return Je&&((Ee=this.lookupInlineStyle(Je,gn))||((0,p.NF)(this._platformId)?Ye||(Ee=getComputedStyle(Je).getPropertyValue(gn)):this._serverModuleLoaded&&(Ee=this._serverStylesheet.getStyleForElement(Je,gn)))),Ee?Ee.trim():""}_applyMultiValueStyleToElement(Je,gn){Object.keys(Je).sort().forEach(Ye=>{const Ee=Je[Ye],Xe=Array.isArray(Ee)?Ee:[Ee];Xe.sort();for(let se of Xe)se=se?se+"":"",(0,p.NF)(this._platformId)||!this._serverModuleLoaded?(0,p.NF)(this._platformId)?gn.style.setProperty(Ye,se):At(gn,Ye,se):this._serverStylesheet.addStyleToElement(gn,Ye,se)})}}return Yn.\u0275fac=function(Je){return new(Je||Yn)(u.LFG(tt),u.LFG(bt),u.LFG(u.Lbi),u.LFG(ct))},Yn.\u0275prov=u.Yz7({token:Yn,factory:Yn.\u0275fac,providedIn:"root"}),Yn})();function At(Yn,Vn,Je){Vn=Vn.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const gn=pt(Yn);gn[Vn]=Je??"",function xt(Yn,Vn){let Je="";for(const gn in Vn)Vn[gn]&&(Je+=`${gn}:${Vn[gn]};`);Yn.setAttribute("style",Je)}(Yn,gn)}function pt(Yn){const Vn={},Je=Yn.getAttribute("style");if(Je){const gn=Je.split(/;+/g);for(let Ye=0;Ye0){const Xe=Ee.indexOf(":");if(-1===Xe)throw new Error(`Invalid CSS style: ${Ee}`);Vn[Ee.substr(0,Xe).trim()]=Ee.substr(Xe+1).trim()}}}return Vn}function Ot(Yn,Vn){return(Vn&&Vn.priority||0)-(Yn&&Yn.priority||0)}function Bt(Yn,Vn){return(Yn.priority||0)-(Vn.priority||0)}let St=(()=>{class Yn{constructor(Je,gn,Ye){this._zone=Je,this._platformId=gn,this._document=Ye,this.source=new x.X(new W(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const Je=[];return this.registry.forEach((gn,Ye)=>{gn.matches&&Je.push(Ye)}),Je}isActive(Je){return this.registry.get(Je)?.matches??this.registerQuery(Je).some(Ye=>Ye.matches)}observe(Je,gn=!1){if(Je&&Je.length){const Ye=this._observable$.pipe((0,w.h)(Xe=>!gn||Je.indexOf(Xe.mediaQuery)>-1)),Ee=new v.y(Xe=>{const se=this.registerQuery(Je);if(se.length){const ze=se.pop();se.forEach(ie=>{Xe.next(ie)}),this.source.next(ze)}Xe.complete()});return(0,t.T)(Ee,Ye)}return this._observable$}registerQuery(Je){const gn=Array.isArray(Je)?Je:[Je],Ye=[];return function Vt(Yn,Vn){const Je=Yn.filter(gn=>!ce[gn]);if(Je.length>0){const gn=Je.join(", ");try{const Ye=Vn.createElement("style");Ye.setAttribute("type","text/css"),Ye.styleSheet||Ye.appendChild(Vn.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${gn} {.fx-query-test{ }}\n`)),Vn.head.appendChild(Ye),Je.forEach(Ee=>ce[Ee]=Ye)}catch(Ye){console.error(Ye)}}}(gn,this._document),gn.forEach(Ee=>{const Xe=ze=>{this._zone.run(()=>this.source.next(new W(ze.matches,Ee)))};let se=this.registry.get(Ee);se||(se=this.buildMQL(Ee),se.addListener(Xe),this.pendingRemoveListenerFns.push(()=>se.removeListener(Xe)),this.registry.set(Ee,se)),se.matches&&Ye.push(new W(!0,Ee))}),Ye}ngOnDestroy(){let Je;for(;Je=this.pendingRemoveListenerFns.pop();)Je()}buildMQL(Je){return function fe(Yn,Vn){return Vn&&window.matchMedia("all").addListener?window.matchMedia(Yn):function ve(Yn){const Vn=new EventTarget;return Vn.matches="all"===Yn||""===Yn,Vn.media=Yn,Vn.addListener=()=>{},Vn.removeListener=()=>{},Vn.addEventListener=()=>{},Vn.dispatchEvent=()=>!1,Vn.onchange=null,Vn}(Yn)}(Je,(0,p.NF)(this._platformId))}}return Yn.\u0275fac=function(Je){return new(Je||Yn)(u.LFG(u.R0b),u.LFG(u.Lbi),u.LFG(p.K0))},Yn.\u0275prov=u.Yz7({token:Yn,factory:Yn.\u0275fac,providedIn:"root"}),Yn})();const ce={},Le=[{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}],Fe="(orientation: portrait) and (max-width: 599.98px)",Ge="(orientation: landscape) and (max-width: 959.98px)",Gt="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",Te="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",ne="(orientation: portrait) and (min-width: 840px)",jt="(orientation: landscape) and (min-width: 1280px)",re={HANDSET:`${Fe}, ${Ge}`,TABLET:`${Gt} , ${Te}`,WEB:`${ne}, ${jt} `,HANDSET_PORTRAIT:`${Fe}`,TABLET_PORTRAIT:`${Gt} `,WEB_PORTRAIT:`${ne}`,HANDSET_LANDSCAPE:`${Ge}`,TABLET_LANDSCAPE:`${Te}`,WEB_LANDSCAPE:`${jt}`},Xt=[{alias:"handset",priority:2e3,mediaQuery:re.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:re.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:re.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:re.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:re.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:re.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:re.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:re.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:re.WEB_PORTRAIT,overlapping:!0}],oe=/(\.|-|_)/g;function Me(Yn){let Vn=Yn.length>0?Yn.charAt(0):"",Je=Yn.length>1?Yn.slice(1):"";return Vn.toUpperCase()+Je}const vn=new u.OlP("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const Yn=(0,u.f3M)(Dt),Vn=(0,u.f3M)(ct),Je=[].concat.apply([],(Yn||[]).map(Ye=>Array.isArray(Ye)?Ye:[Ye]));return function xe(Yn,Vn=[]){const Je={};return Yn.forEach(gn=>{Je[gn.alias]=gn}),Vn.forEach(gn=>{Je[gn.alias]?(0,U.kt)(Je[gn.alias],gn):Je[gn.alias]=gn}),function _n(Yn){return Yn.forEach(Vn=>{Vn.suffix||(Vn.suffix=function en(Yn){return Yn.replace(oe,"|").split("|").map(Me).join("")}(Vn.alias),Vn.overlapping=!!Vn.overlapping)}),Yn}(Object.keys(Je).map(gn=>Je[gn]))}((Vn.disableDefaultBps?[]:Le).concat(Vn.addOrientationBps?Xt:[]),Je)}});let ke=(()=>{class Yn{constructor(Je){this.findByMap=new Map,this.items=[...Je].sort(Bt)}findByAlias(Je){return Je?this.findWithPredicate(Je,gn=>gn.alias===Je):null}findByQuery(Je){return this.findWithPredicate(Je,gn=>gn.mediaQuery===Je)}get overlappings(){return this.items.filter(Je=>Je.overlapping)}get aliases(){return this.items.map(Je=>Je.alias)}get suffixes(){return this.items.map(Je=>Je?.suffix??"")}findWithPredicate(Je,gn){let Ye=this.findByMap.get(Je);return Ye||(Ye=this.items.find(gn)??null,this.findByMap.set(Je,Ye)),Ye??null}}return Yn.\u0275fac=function(Je){return new(Je||Yn)(u.LFG(vn))},Yn.\u0275prov=u.Yz7({token:Yn,factory:Yn.\u0275fac,providedIn:"root"}),Yn})();const un="print",Dn={alias:un,mediaQuery:un,priority:1e3};let ii=(()=>{class Yn{constructor(Je,gn,Ye){this.breakpoints=Je,this.layoutConfig=gn,this._document=Ye,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new _i,this.deactivations=[]}withPrintQuery(Je){return[...Je,un]}isPrintEvent(Je){return Je.mediaQuery.startsWith(un)}get printAlias(){return[...this.layoutConfig.printWithBreakpoints??[]]}get printBreakPoints(){return this.printAlias.map(Je=>this.breakpoints.findByAlias(Je)).filter(Je=>null!==Je)}getEventBreakpoints({mediaQuery:Je}){const gn=this.breakpoints.findByQuery(Je);return(gn?[...this.printBreakPoints,gn]:this.printBreakPoints).sort(Ot)}updateEvent(Je){let gn=this.breakpoints.findByQuery(Je.mediaQuery);return this.isPrintEvent(Je)&&(gn=this.getEventBreakpoints(Je)[0],Je.mediaQuery=gn?.mediaQuery??""),wt(Je,gn)}registerBeforeAfterPrintHooks(Je){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const gn=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(Je,this.getEventBreakpoints(new W(!0,un))),Je.updateStyles())},Ye=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(Je),Je.updateStyles())};this._document.defaultView.addEventListener("beforeprint",gn),this._document.defaultView.addEventListener("afterprint",Ye),this.beforePrintEventListeners.push(gn),this.afterPrintEventListeners.push(Ye)}interceptEvents(Je){return gn=>{this.isPrintEvent(gn)?gn.matches&&!this.isPrinting?(this.startPrinting(Je,this.getEventBreakpoints(gn)),Je.updateStyles()):!gn.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(Je),Je.updateStyles()):this.collectActivations(Je,gn)}}blockPropagation(){return Je=>!(this.isPrinting||this.isPrintEvent(Je))}startPrinting(Je,gn){this.isPrinting=!0,this.formerActivations=Je.activatedBreakpoints,Je.activatedBreakpoints=this.queue.addPrintBreakpoints(gn)}stopPrinting(Je){Je.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(Je,gn){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!gn.matches){const Ye=this.breakpoints.findByQuery(gn.mediaQuery);if(Ye){const Ee=this.formerActivations&&this.formerActivations.includes(Ye),Xe=!this.formerActivations&&Je.activatedBreakpoints.includes(Ye);(Ee||Xe)&&(this.deactivations.push(Ye),this.deactivations.sort(Ot))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(Je=>this._document.defaultView.removeEventListener("beforeprint",Je)),this.afterPrintEventListeners.forEach(Je=>this._document.defaultView.removeEventListener("afterprint",Je)))}}return Yn.\u0275fac=function(Je){return new(Je||Yn)(u.LFG(ke),u.LFG(ct),u.LFG(p.K0))},Yn.\u0275prov=u.Yz7({token:Yn,factory:Yn.\u0275fac,providedIn:"root"}),Yn})();class _i{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(Vn){return Vn.push(Dn),Vn.sort(Ot),Vn.forEach(Je=>this.addBreakpoint(Je)),this.printBreakpoints}addBreakpoint(Vn){Vn&&void 0===this.printBreakpoints.find(gn=>gn.mediaQuery===Vn.mediaQuery)&&(this.printBreakpoints=function oi(Yn){return Yn?.mediaQuery.startsWith(un)??!1}(Vn)?[Vn,...this.printBreakpoints]:[...this.printBreakpoints,Vn])}clear(){this.printBreakpoints=[]}}let Qe=(()=>{class Yn{constructor(Je,gn,Ye){this.matchMedia=Je,this.breakpoints=gn,this.hook=Ye,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(Je){this._activatedBreakpoints=[...Je]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(Je){this._useFallbacks=Je}onMediaChange(Je){const gn=this.findByQuery(Je.mediaQuery);if(gn){Je=wt(Je,gn);const Ye=this.activatedBreakpoints.indexOf(gn);Je.matches&&-1===Ye?(this._activatedBreakpoints.push(gn),this._activatedBreakpoints.sort(Ot),this.updateStyles()):!Je.matches&&-1!==Ye&&(this._activatedBreakpoints.splice(Ye,1),this._activatedBreakpoints.sort(Ot),this.updateStyles())}}init(Je,gn,Ye,Ee,Xe=[]){te(this.updateMap,Je,gn,Ye),te(this.clearMap,Je,gn,Ee),this.buildElementKeyMap(Je,gn),this.watchExtraTriggers(Je,gn,Xe)}getValue(Je,gn,Ye){const Ee=this.elementMap.get(Je);if(Ee){const Xe=void 0!==Ye?Ee.get(Ye):this.getActivatedValues(Ee,gn);if(Xe)return Xe.get(gn)}}hasValue(Je,gn){const Ye=this.elementMap.get(Je);if(Ye){const Ee=this.getActivatedValues(Ye,gn);if(Ee)return void 0!==Ee.get(gn)||!1}return!1}setValue(Je,gn,Ye,Ee){let Xe=this.elementMap.get(Je);if(Xe){const ze=(Xe.get(Ee)??new Map).set(gn,Ye);Xe.set(Ee,ze),this.elementMap.set(Je,Xe)}else Xe=(new Map).set(Ee,(new Map).set(gn,Ye)),this.elementMap.set(Je,Xe);const se=this.getValue(Je,gn);void 0!==se&&this.updateElement(Je,gn,se)}trackValue(Je,gn){return this.subject.asObservable().pipe((0,w.h)(Ye=>Ye.element===Je&&Ye.key===gn))}updateStyles(){this.elementMap.forEach((Je,gn)=>{const Ye=new Set(this.elementKeyMap.get(gn));let Ee=this.getActivatedValues(Je);Ee&&Ee.forEach((Xe,se)=>{this.updateElement(gn,se,Xe),Ye.delete(se)}),Ye.forEach(Xe=>{if(Ee=this.getActivatedValues(Je,Xe),Ee){const se=Ee.get(Xe);this.updateElement(gn,Xe,se)}else this.clearElement(gn,Xe)})})}clearElement(Je,gn){const Ye=this.clearMap.get(Je);if(Ye){const Ee=Ye.get(gn);Ee&&(Ee(),this.subject.next({element:Je,key:gn,value:""}))}}updateElement(Je,gn,Ye){const Ee=this.updateMap.get(Je);if(Ee){const Xe=Ee.get(gn);Xe&&(Xe(Ye),this.subject.next({element:Je,key:gn,value:Ye}))}}releaseElement(Je){const gn=this.watcherMap.get(Je);gn&&(gn.forEach(Ee=>Ee.unsubscribe()),this.watcherMap.delete(Je));const Ye=this.elementMap.get(Je);Ye&&(Ye.forEach((Ee,Xe)=>Ye.delete(Xe)),this.elementMap.delete(Je))}triggerUpdate(Je,gn){const Ye=this.elementMap.get(Je);if(Ye){const Ee=this.getActivatedValues(Ye,gn);Ee&&(gn?this.updateElement(Je,gn,Ee.get(gn)):Ee.forEach((Xe,se)=>this.updateElement(Je,se,Xe)))}}buildElementKeyMap(Je,gn){let Ye=this.elementKeyMap.get(Je);Ye||(Ye=new Set,this.elementKeyMap.set(Je,Ye)),Ye.add(gn)}watchExtraTriggers(Je,gn,Ye){if(Ye&&Ye.length){let Ee=this.watcherMap.get(Je);if(Ee||(Ee=new Map,this.watcherMap.set(Je,Ee)),!Ee.get(gn)){const se=(0,t.T)(...Ye).subscribe(()=>{const ze=this.getValue(Je,gn);this.updateElement(Je,gn,ze)});Ee.set(gn,se)}}}findByQuery(Je){return this.breakpoints.findByQuery(Je)}getActivatedValues(Je,gn){for(let Ee=0;Eegn.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(Je)).pipe((0,P.b)(this.hook.interceptEvents(this)),(0,w.h)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return Yn.\u0275fac=function(Je){return new(Je||Yn)(u.LFG(St),u.LFG(ke),u.LFG(ii))},Yn.\u0275prov=u.Yz7({token:Yn,factory:Yn.\u0275fac,providedIn:"root"}),Yn})();function te(Yn,Vn,Je,gn){if(void 0!==gn){const Ye=Yn.get(Vn)??new Map;Ye.set(Je,gn),Yn.set(Vn,Ye)}}let it=(()=>{class Yn{constructor(Je,gn,Ye,Ee){this.elementRef=Je,this.styleBuilder=gn,this.styler=Ye,this.marshal=Ee,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(Je){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,Je,this.marshal.activatedAlias)}ngOnChanges(Je){Object.keys(Je).forEach(gn=>{if(-1!==this.inputs.indexOf(gn)){const Ye=gn.split(".").slice(1).join(".");this.setValue(Je[gn].currentValue,Ye)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(Je=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),Je)}addStyles(Je,gn){const Ye=this.styleBuilder,Ee=Ye.shouldCache;let Xe=this.styleCache.get(Je);(!Xe||!Ee)&&(Xe=Ye.buildStyles(Je,gn),Ee&&this.styleCache.set(Je,Xe)),this.mru={...Xe},this.applyStyleToElement(Xe),Ye.sideEffect(Je,Xe,gn)}clearStyles(){Object.keys(this.mru).forEach(Je=>{this.mru[Je]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(Je,gn=!1){if(Je){const[Ye,Ee]=this.styler.getFlowDirection(Je);if(!Ee&&gn){const Xe=(0,U.Ar)(Ye);this.styler.applyStyleToElements(Xe,[Je])}return Ye.trim()}return"row"}hasWrap(Je){return this.styler.hasWrap(Je)}applyStyleToElement(Je,gn,Ye=this.nativeElement){this.styler.applyStyleToElement(Ye,Je,gn)}setValue(Je,gn){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,Je,gn)}updateWithValue(Je){this.currentValue!==Je&&(this.addStyles(Je),this.currentValue=Je)}}return Yn.\u0275fac=function(Je){return new(Je||Yn)(u.Y36(u.SBq),u.Y36(qt),u.Y36(Jt),u.Y36(Qe))},Yn.\u0275dir=u.lG2({type:Yn,features:[u.TTD]}),Yn})();function mi(Yn,Vn="1",Je="1"){let gn=[Vn,Je,Yn],Ye=Yn.indexOf("calc");if(Ye>0){gn[2]=Di(Yn.substring(Ye).trim());let Ee=Yn.substr(0,Ye).trim().split(" ");2==Ee.length&&(gn[0]=Ee[0],gn[1]=Ee[1])}else if(0==Ye)gn[2]=Di(Yn.trim());else{let Ee=Yn.split(" ");gn=3===Ee.length?Ee:[Vn,Je,Yn]}return gn}function Di(Yn){return Yn.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}function hi(Yn,Vn){if(void 0===Vn)return Yn;const Je=gn=>{const Ye=+gn.slice(0,-"x".length);return Yn.endsWith("x")&&!isNaN(Ye)?`${Ye*Vn.value}${Vn.unit}`:Yn};return Yn.includes(" ")?Yn.split(" ").map(Je).join(" "):Je(Yn)}EventTarget},55829:(X,j,h)=>{"use strict";h.d(j,{Zl:()=>fe,aT:()=>Ge,b8:()=>Jt,oO:()=>st});var u=h(94650),p=h(32233),x=h(36895),v=h(21281),t=h(7625),T=h(11481);let V=(()=>{class Gt extends p.iR{constructor(ne,jt,re,Xt,oe,Me,en){super(ne,null,jt,re),this.ngClassInstance=en,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new x.mk(Xt,oe,ne,Me)),this.init(),this.setValue("","")}set klass(ne){this.ngClassInstance.klass=ne,this.setValue(ne,"")}updateWithValue(ne){this.ngClassInstance.ngClass=ne,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return Gt.\u0275fac=function(ne){return new(ne||Gt)(u.Y36(u.SBq),u.Y36(p.RK),u.Y36(p.yB),u.Y36(u.ZZ4),u.Y36(u.aQg),u.Y36(u.Qsj),u.Y36(x.mk,10))},Gt.\u0275dir=u.lG2({type:Gt,inputs:{klass:["class","klass"]},features:[u.qOj]}),Gt})();const W=["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 st=(()=>{class Gt extends V{constructor(){super(...arguments),this.inputs=W}}return Gt.\u0275fac=function(){let Te;return function(jt){return(Te||(Te=u.n5z(Gt)))(jt||Gt)}}(),Gt.\u0275dir=u.lG2({type:Gt,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]}),Gt})(),ct=(()=>{class Gt extends p.QI{buildStyles(ne,jt){return{display:"true"===ne?jt.display||(jt.isServer?"initial":""):"none"}}}return Gt.\u0275fac=function(){let Te;return function(jt){return(Te||(Te=u.n5z(Gt)))(jt||Gt)}}(),Gt.\u0275prov=u.Yz7({token:Gt,factory:Gt.\u0275fac,providedIn:"root"}),Gt})(),bt=(()=>{class Gt extends p.iR{constructor(ne,jt,re,Xt,oe,Me,en){super(ne,jt,re,Xt),this.layoutConfig=oe,this.platformId=Me,this.serverModuleLoaded=en,this.DIRECTIVE_KEY="show-hide",this.display="",this.hasLayout=!1,this.hasFlexChild=!1}ngAfterViewInit(){this.trackExtraTriggers();const ne=Array.from(this.nativeElement.children);for(let re=0;re{if(-1!==this.inputs.indexOf(jt)){const re=jt.split("."),Xt=re.slice(1).join("."),oe=ne[jt].currentValue;let Me=""===oe||0!==oe&&(0,v.Ig)(oe);"fxHide"===re[0]&&(Me=!Me),this.setValue(Me,Xt)}})}trackExtraTriggers(){this.hasLayout=this.marshal.hasValue(this.nativeElement,"layout"),["layout","layout-align"].forEach(ne=>{this.marshal.trackValue(this.nativeElement,ne).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(ne=!0){if(""===ne)return;const jt=(0,x.PM)(this.platformId);this.addStyles(ne?"true":"false",{display:this.display,isServer:jt}),jt&&this.serverModuleLoaded&&this.nativeElement.style.setProperty("display",""),this.marshal.triggerUpdate(this.parentElement,"layout-gap")}}return Gt.\u0275fac=function(ne){return new(ne||Gt)(u.Y36(u.SBq),u.Y36(ct),u.Y36(p.RK),u.Y36(p.yB),u.Y36(p.WU),u.Y36(u.Lbi),u.Y36(p.wY))},Gt.\u0275dir=u.lG2({type:Gt,features:[u.qOj,u.TTD]}),Gt})();const Dt=new WeakMap,wt=["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 Jt=(()=>{class Gt extends bt{constructor(){super(...arguments),this.inputs=wt}}return Gt.\u0275fac=function(){let Te;return function(jt){return(Te||(Te=u.n5z(Gt)))(jt||Gt)}}(),Gt.\u0275dir=u.lG2({type:Gt,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]}),Gt})();class yt{constructor(Te,ne,jt=!0){this.key=Te,this.value=ne,this.key=jt?Te.replace(/['"]/g,"").trim():Te.trim(),this.value=jt?ne.replace(/['"]/g,"").trim():ne.trim(),this.value=this.value.replace(/;/,"")}}function At(Gt){let Te=typeof Gt;return"object"===Te?Gt.constructor===Array?"array":Gt.constructor===Set?"set":"object":Te}function Bt(Gt){const[Te,...ne]=Gt.split(":");return new yt(Te,ne.join(":"))}function St(Gt,Te){return Te.key&&(Gt[Te.key]=Te.value),Gt}let ce=(()=>{class Gt extends p.iR{constructor(ne,jt,re,Xt,oe,Me,en,_n,xe){super(ne,null,jt,re),this.sanitizer=Xt,this.ngStyleInstance=en,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new x.PC(ne,oe,Me)),this.init();const vn=this.nativeElement.getAttribute("style")??"";this.fallbackStyles=this.buildStyleMap(vn),this.isServer=_n&&(0,x.PM)(xe)}updateWithValue(ne){const jt=this.buildStyleMap(ne);this.ngStyleInstance.ngStyle={...this.fallbackStyles,...jt},this.isServer&&this.applyStyleToElement(jt),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(ne){const jt=re=>this.sanitizer.sanitize(u.q3G.STYLE,re)??"";if(ne)switch(At(ne)){case"string":return Le(function xt(Gt,Te=";"){return String(Gt).trim().split(Te).map(ne=>ne.trim()).filter(ne=>""!==ne)}(ne),jt);case"array":return Le(ne,jt);default:return function Ot(Gt,Te){let ne=[];return"set"===At(Gt)?Gt.forEach(jt=>ne.push(jt)):Object.keys(Gt).forEach(jt=>{ne.push(`${jt}:${Gt[jt]}`)}),function pt(Gt,Te){return Gt.map(Bt).filter(jt=>!!jt).map(jt=>(Te&&(jt.value=Te(jt.value)),jt)).reduce(St,{})}(ne,Te)}(ne,jt)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return Gt.\u0275fac=function(ne){return new(ne||Gt)(u.Y36(u.SBq),u.Y36(p.RK),u.Y36(p.yB),u.Y36(T.H7),u.Y36(u.aQg),u.Y36(u.Qsj),u.Y36(x.PC,10),u.Y36(p.wY),u.Y36(u.Lbi))},Gt.\u0275dir=u.lG2({type:Gt,features:[u.qOj]}),Gt})();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 fe=(()=>{class Gt extends ce{constructor(){super(...arguments),this.inputs=Vt}}return Gt.\u0275fac=function(){let Te;return function(jt){return(Te||(Te=u.n5z(Gt)))(jt||Gt)}}(),Gt.\u0275dir=u.lG2({type:Gt,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]}),Gt})();function Le(Gt,Te){return Gt.map(Bt).filter(jt=>!!jt).map(jt=>(Te&&(jt.value=Te(jt.value)),jt)).reduce(St,{})}let Ge=(()=>{class Gt{}return Gt.\u0275fac=function(ne){return new(ne||Gt)},Gt.\u0275mod=u.oAB({type:Gt}),Gt.\u0275inj=u.cJS({imports:[p.IR]}),Gt})()},1576:(X,j,h)=>{"use strict";h.d(j,{SQ:()=>bt,Wh:()=>mi,XD:()=>it,ae:()=>Xe,s9:()=>Rt,xw:()=>L,yH:()=>ve});var u=h(94650),p=h(40445),x=h(32233),v=h(85863),t=h(8929),T=h(7625);let U=(()=>{class se extends x.QI{buildStyles(ie,{display:rn}){const fn=(0,v.Ar)(ie);return{...fn,display:"none"===rn?rn:fn.display}}}return se.\u0275fac=function(){let ze;return function(rn){return(ze||(ze=u.n5z(se)))(rn||se)}}(),se.\u0275prov=u.Yz7({token:se,factory:se.\u0275fac,providedIn:"root"}),se})();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 se extends x.iR{constructor(ie,rn,fn,sn,ge){super(ie,fn,rn,sn),this._config=ge,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(ie){const fn=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=N.get(fn)??new Map,N.set(fn,this.styleCache),this.currentValue!==ie&&(this.addStyles(ie,{display:fn}),this.currentValue=ie)}}return se.\u0275fac=function(ie){return new(ie||se)(u.Y36(u.SBq),u.Y36(x.RK),u.Y36(U),u.Y36(x.yB),u.Y36(x.WU))},se.\u0275dir=u.lG2({type:se,features:[u.qOj]}),se})(),L=(()=>{class se extends O{constructor(){super(...arguments),this.inputs=w}}return se.\u0275fac=function(){let ze;return function(rn){return(ze||(ze=u.n5z(se)))(rn||se)}}(),se.\u0275dir=u.lG2({type:se,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]}),se})();const N=new Map,V={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null};let W=(()=>{class se extends x.QI{constructor(ie,rn){super(),this._styler=ie,this._config=rn}buildStyles(ie,rn){return ie.endsWith(yt)?(ie=ie.slice(0,ie.indexOf(yt)),function xt(se,ze){const[ie,rn]=se.split(" "),sn=zt=>`-${zt}`;let ge="0px",Nt=sn(rn??ie),Se="0px";return"rtl"===ze?Se=sn(ie):ge=sn(ie),{margin:`0px ${ge} ${Nt} ${Se}`}}(ie=(0,x.FL)(ie,this._config.multiplier),rn.directionality)):{}}sideEffect(ie,rn,fn){const sn=fn.items;if(ie.endsWith(yt)){ie=ie.slice(0,ie.indexOf(yt));const ge=function At(se,ze){const[ie,rn]=se.split(" ");let sn="0px",Nt="0px";return"rtl"===ze?Nt=ie:sn=ie,{padding:`0px ${sn} ${rn??ie} ${Nt}`}}(ie=(0,x.FL)(ie,this._config.multiplier),fn.directionality);this._styler.applyStyleToElements(ge,fn.items)}else{ie=(0,x.FL)(ie,this._config.multiplier),ie=this.addFallbackUnit(ie);const ge=sn.pop(),Nt=function Ot(se,ze){const ie=pt(ze.directionality,ze.layout),rn={...V};return rn[ie]=se,rn}(ie,fn);this._styler.applyStyleToElements(Nt,sn),this._styler.applyStyleToElements(V,[ge])}}addFallbackUnit(ie){return isNaN(+ie)?ie:`${ie}${this._config.defaultUnit}`}}return se.\u0275fac=function(ie){return new(ie||se)(u.LFG(x.RK),u.LFG(x.WU))},se.\u0275prov=u.Yz7({token:se,factory:se.\u0275fac,providedIn:"root"}),se})();const tt=["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 ct=(()=>{class se extends x.iR{constructor(ie,rn,fn,sn,ge,Nt){super(ie,ge,sn,Nt),this.zone=rn,this.directionality=fn,this.styleUtils=sn,this.layout="row",this.DIRECTIVE_KEY="layout-gap",this.observerSubject=new t.xQ;const Se=[this.directionality.change,this.observerSubject.asObservable()];this.init(Se),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,T.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}get childrenNodes(){const ie=this.nativeElement.children,rn=[];for(let fn=ie.length;fn--;)rn[fn]=ie[fn];return rn}ngAfterContentInit(){this.buildChildObservable(),this.triggerUpdate()}ngOnDestroy(){super.ngOnDestroy(),this.observer&&this.observer.disconnect()}onLayoutChange(ie){const fn=ie.value.split(" ");this.layout=fn[0],v.iQ.find(sn=>sn===this.layout)||(this.layout="row"),this.triggerUpdate()}updateWithValue(ie){const rn=this.childrenNodes.filter(fn=>1===fn.nodeType&&this.willDisplay(fn)).sort((fn,sn)=>{const ge=+this.styler.lookupStyle(fn,"order"),Nt=+this.styler.lookupStyle(sn,"order");return isNaN(ge)||isNaN(Nt)||ge===Nt?0:ge>Nt?1:-1});if(rn.length>0){const fn=this.directionality.value,sn=this.layout;"row"===sn&&"rtl"===fn?this.styleCache=Dt:"row"===sn&&"rtl"!==fn?this.styleCache=qt:"column"===sn&&"rtl"===fn?this.styleCache=wt:"column"===sn&&"rtl"!==fn&&(this.styleCache=Jt),this.addStyles(ie,{directionality:fn,items:rn,layout:sn})}}clearStyles(){const ie=Object.keys(this.mru).length>0,rn=ie?"padding":pt(this.directionality.value,this.layout);ie&&super.clearStyles(),this.styleUtils.applyStyleToElements({[rn]:""},this.childrenNodes)}willDisplay(ie){const rn=this.marshal.getValue(ie,"show-hide");return!0===rn||void 0===rn&&"none"!==this.styleUtils.lookupStyle(ie,"display")}buildChildObservable(){this.zone.runOutsideAngular(()=>{typeof MutationObserver<"u"&&(this.observer=new MutationObserver(ie=>{ie.some(fn=>fn.addedNodes&&fn.addedNodes.length>0||fn.removedNodes&&fn.removedNodes.length>0)&&this.observerSubject.next()}),this.observer.observe(this.nativeElement,{childList:!0}))})}}return se.\u0275fac=function(ie){return new(ie||se)(u.Y36(u.SBq),u.Y36(u.R0b),u.Y36(p.Is),u.Y36(x.RK),u.Y36(W),u.Y36(x.yB))},se.\u0275dir=u.lG2({type:se,features:[u.qOj]}),se})(),bt=(()=>{class se extends ct{constructor(){super(...arguments),this.inputs=tt}}return se.\u0275fac=function(){let ze;return function(rn){return(ze||(ze=u.n5z(se)))(rn||se)}}(),se.\u0275dir=u.lG2({type:se,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]}),se})();const Dt=new Map,wt=new Map,qt=new Map,Jt=new Map,yt=" grid";function pt(se,ze){switch(ze){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":default:return"rtl"===se?"margin-left":"margin-right";case"row-reverse":return"rtl"===se?"margin-right":"margin-left"}}let Bt=(()=>{class se extends x.QI{constructor(ie){super(),this.layoutConfig=ie}buildStyles(ie,rn){let[fn,sn,...ge]=ie.split(" "),Nt=ge.join(" ");const Se=rn.direction.indexOf("column")>-1?"column":"row",zt=(0,v.tj)(Se)?"max-width":"max-height",Ae=(0,v.tj)(Se)?"min-width":"min-height",Ie=String(Nt).indexOf("calc")>-1,Sn=Ie||"auto"===Nt,Ei=String(Nt).indexOf("%")>-1&&!Ie,Vi=String(Nt).indexOf("px")>-1||String(Nt).indexOf("rem")>-1||String(Nt).indexOf("em")>-1||String(Nt).indexOf("vw")>-1||String(Nt).indexOf("vh")>-1;let cn=Ie||Vi;fn="0"==fn?0:fn,sn="0"==sn?0:sn;const pn=!fn&&!sn;let We={};const ai={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(Nt||""){case"":const bi=!1!==this.layoutConfig.useColumnBasisZero;Nt="row"===Se?"0%":bi?"0.000000001px":"auto";break;case"initial":case"nogrow":fn=0,Nt="auto";break;case"grow":Nt="100%";break;case"noshrink":sn=0,Nt="auto";break;case"auto":break;case"none":fn=0,sn=0,Nt="auto";break;default:!cn&&!Ei&&!isNaN(Nt)&&(Nt+="%"),"0%"===Nt&&(cn=!0),"0px"===Nt&&(Nt="0%"),We=(0,v.kt)(ai,Ie?{"flex-grow":fn,"flex-shrink":sn,"flex-basis":cn?Nt:"100%"}:{flex:`${fn} ${sn} ${cn?Nt:"100%"}`})}return We.flex||We["flex-grow"]||(We=(0,v.kt)(ai,Ie?{"flex-grow":fn,"flex-shrink":sn,"flex-basis":Nt}:{flex:`${fn} ${sn} ${Nt}`})),"0%"!==Nt&&"0px"!==Nt&&"0.000000001px"!==Nt&&"auto"!==Nt&&(We[Ae]=pn||cn&&fn?Nt:null,We[zt]=pn||!Sn&&sn?Nt:null),We[Ae]||We[zt]?rn.hasWrap&&(We[Ie?"flex-basis":"flex"]=We[zt]?Ie?We[zt]:`${fn} ${sn} ${We[zt]}`:Ie?We[Ae]:`${fn} ${sn} ${We[Ae]}`):We=(0,v.kt)(ai,Ie?{"flex-grow":fn,"flex-shrink":sn,"flex-basis":Nt}:{flex:`${fn} ${sn} ${Nt}`}),(0,v.kt)(We,{"box-sizing":"border-box"})}}return se.\u0275fac=function(ie){return new(ie||se)(u.LFG(x.WU))},se.\u0275prov=u.Yz7({token:se,factory:se.\u0275fac,providedIn:"root"}),se})();const St=["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 se extends x.iR{constructor(ie,rn,fn,sn,ge){super(ie,sn,rn,ge),this.layoutConfig=fn,this.marshal=ge,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(ie){this.flexShrink=ie||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(ie){this.flexGrow=ie||"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(ie){const fn=ie.value.split(" ");this.direction=fn[0],this.wrap=void 0!==fn[1]&&"wrap"===fn[1],this.triggerUpdate()}updateWithValue(ie){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 fn=this.direction,sn=fn.startsWith("row"),ge=this.wrap;sn&&ge?this.styleCache=Fe:sn&&!ge?this.styleCache=fe:!sn&&ge?this.styleCache=Ge:!sn&&!ge&&(this.styleCache=Le);const Nt=String(ie).replace(";",""),Se=(0,x.Ot)(Nt,this.flexGrow,this.flexShrink);this.addStyles(Se.join(" "),{direction:fn,hasWrap:ge})}triggerReflow(){const ie=this.activatedValue;if(void 0!==ie){const rn=(0,x.Ot)(ie+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,rn.join(" "))}}}return se.\u0275fac=function(ie){return new(ie||se)(u.Y36(u.SBq),u.Y36(x.RK),u.Y36(x.WU),u.Y36(Bt),u.Y36(x.yB))},se.\u0275dir=u.lG2({type:se,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[u.qOj]}),se})(),ve=(()=>{class se extends Vt{constructor(){super(...arguments),this.inputs=St}}return se.\u0275fac=function(){let ze;return function(rn){return(ze||(ze=u.n5z(se)))(rn||se)}}(),se.\u0275dir=u.lG2({type:se,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]}),se})();const fe=new Map,Le=new Map,Fe=new Map,Ge=new Map;let ii=(()=>{class se extends x.QI{buildStyles(ie){const rn={};switch(ie=ie||"stretch"){case"start":rn["align-self"]="flex-start";break;case"end":rn["align-self"]="flex-end";break;default:rn["align-self"]=ie}return rn}}return se.\u0275fac=function(){let ze;return function(rn){return(ze||(ze=u.n5z(se)))(rn||se)}}(),se.\u0275prov=u.Yz7({token:se,factory:se.\u0275fac,providedIn:"root"}),se})();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 Qe=(()=>{class se extends x.iR{constructor(ie,rn,fn,sn){super(ie,fn,rn,sn),this.DIRECTIVE_KEY="flex-align",this.styleCache=te,this.init()}}return se.\u0275fac=function(ie){return new(ie||se)(u.Y36(u.SBq),u.Y36(x.RK),u.Y36(ii),u.Y36(x.yB))},se.\u0275dir=u.lG2({type:se,features:[u.qOj]}),se})();const te=new Map;let it=(()=>{class se extends Qe{constructor(){super(...arguments),this.inputs=_i}}return se.\u0275fac=function(){let ze;return function(rn){return(ze||(ze=u.n5z(se)))(rn||se)}}(),se.\u0275dir=u.lG2({type:se,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]}),se})();const K={margin:0,width:"100%",height:"100%","min-width":"100%","min-height":"100%"};let Tt=(()=>{class se extends x.QI{buildStyles(ie){return K}}return se.\u0275fac=function(){let ze;return function(rn){return(ze||(ze=u.n5z(se)))(rn||se)}}(),se.\u0275prov=u.Yz7({token:se,factory:se.\u0275fac,providedIn:"root"}),se})(),Rt=(()=>{class se extends x.iR{constructor(ie,rn,fn,sn){super(ie,fn,rn,sn),this.styleCache=le,this.addStyles("")}}return se.\u0275fac=function(ie){return new(ie||se)(u.Y36(u.SBq),u.Y36(x.RK),u.Y36(Tt),u.Y36(x.yB))},se.\u0275dir=u.lG2({type:se,selectors:[["","fxFill",""],["","fxFlexFill",""]],features:[u.qOj]}),se})();const le=new Map;let be=(()=>{class se extends x.QI{buildStyles(ie,rn){const fn={},[sn,ge]=ie.split(" ");switch(sn){case"center":fn["justify-content"]="center";break;case"space-around":fn["justify-content"]="space-around";break;case"space-between":fn["justify-content"]="space-between";break;case"space-evenly":fn["justify-content"]="space-evenly";break;case"end":case"flex-end":fn["justify-content"]="flex-end";break;default:fn["justify-content"]="flex-start"}switch(ge){case"start":case"flex-start":fn["align-items"]=fn["align-content"]="flex-start";break;case"center":fn["align-items"]=fn["align-content"]="center";break;case"end":case"flex-end":fn["align-items"]=fn["align-content"]="flex-end";break;case"space-between":fn["align-content"]="space-between",fn["align-items"]="stretch";break;case"space-around":fn["align-content"]="space-around",fn["align-items"]="stretch";break;case"baseline":fn["align-content"]="stretch",fn["align-items"]="baseline";break;default:fn["align-items"]=fn["align-content"]="stretch"}return(0,v.kt)(fn,{display:rn.inline?"inline-flex":"flex","flex-direction":rn.layout,"box-sizing":"border-box","max-width":"stretch"===ge?(0,v.tj)(rn.layout)?null:"100%":null,"max-height":"stretch"===ge&&(0,v.tj)(rn.layout)?"100%":null})}}return se.\u0275fac=function(){let ze;return function(rn){return(ze||(ze=u.n5z(se)))(rn||se)}}(),se.\u0275prov=u.Yz7({token:se,factory:se.\u0275fac,providedIn:"root"}),se})();const De=["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 se extends x.iR{constructor(ie,rn,fn,sn){super(ie,fn,rn,sn),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(ie){const rn=this.layout||"row",fn=this.inline;"row"===rn&&fn?this.styleCache=Vn:"row"!==rn||fn?"row-reverse"===rn&&fn?this.styleCache=gn:"row-reverse"!==rn||fn?"column"===rn&&fn?this.styleCache=Je:"column"!==rn||fn?"column-reverse"===rn&&fn?this.styleCache=Ye:"column-reverse"===rn&&!fn&&(this.styleCache=Yn):this.styleCache=bo:this.styleCache=hi:this.styleCache=Di,this.addStyles(ie,{layout:rn,inline:fn})}onLayoutChange(ie){const rn=ie.value.split(" ");this.layout=rn[0],this.inline=ie.value.includes("inline"),v.iQ.find(fn=>fn===this.layout)||(this.layout="row"),this.triggerUpdate()}}return se.\u0275fac=function(ie){return new(ie||se)(u.Y36(u.SBq),u.Y36(x.RK),u.Y36(be),u.Y36(x.yB))},se.\u0275dir=u.lG2({type:se,features:[u.qOj]}),se})(),mi=(()=>{class se extends qn{constructor(){super(...arguments),this.inputs=De}}return se.\u0275fac=function(){let ze;return function(rn){return(ze||(ze=u.n5z(se)))(rn||se)}}(),se.\u0275dir=u.lG2({type:se,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]}),se})();const Di=new Map,bo=new Map,hi=new Map,Yn=new Map,Vn=new Map,Je=new Map,gn=new Map,Ye=new Map;let Xe=(()=>{class se{}return se.\u0275fac=function(ie){return new(ie||se)},se.\u0275mod=u.oAB({type:se}),se.\u0275inj=u.cJS({imports:[x.IR,p.vT]}),se})()},24006:(X,j,h)=>{"use strict";h.d(j,{CE:()=>Ys,Cf:()=>bt,F:()=>pr,Fd:()=>Va,Fj:()=>W,JJ:()=>oi,JL:()=>Qe,JU:()=>w,NI:()=>Er,On:()=>ps,Q7:()=>zs,QS:()=>Kr,UX:()=>ul,Zs:()=>ms,_Y:()=>Hs,a5:()=>un,kI:()=>qt,nD:()=>tc,nJ:()=>Ae,oH:()=>Ks,p4:()=>cc,qQ:()=>vr,qu:()=>da,sg:()=>td,u:()=>Dl,u5:()=>Lc,wV:()=>Fr,x0:()=>Es});var u=h(94650),p=h(36895),x=h(5254),v=h(30567),t=h(24850);let T=(()=>{class ae{constructor(Ft,et){this._renderer=Ft,this._elementRef=et,this.onChange=Mi=>{},this.onTouched=()=>{}}setProperty(Ft,et){this._renderer.setProperty(this._elementRef.nativeElement,Ft,et)}registerOnTouched(Ft){this.onTouched=Ft}registerOnChange(Ft){this.onChange=Ft}setDisabledState(Ft){this.setProperty("disabled",Ft)}}return ae.\u0275fac=function(Ft){return new(Ft||ae)(u.Y36(u.Qsj),u.Y36(u.SBq))},ae.\u0275dir=u.lG2({type:ae}),ae})(),U=(()=>{class ae extends T{}return ae.\u0275fac=function(){let $t;return function(et){return($t||($t=u.n5z(ae)))(et||ae)}}(),ae.\u0275dir=u.lG2({type:ae,features:[u.qOj]}),ae})();const w=new u.OlP("NgValueAccessor"),L={provide:w,useExisting:(0,u.Gpc)(()=>W),multi:!0},V=new u.OlP("CompositionEventMode");let W=(()=>{class ae extends T{constructor(Ft,et,Mi){super(Ft,et),this._compositionMode=Mi,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function N(){const ae=(0,p.q)()?(0,p.q)().getUserAgent():"";return/android (\d+)/.test(ae.toLowerCase())}())}writeValue(Ft){this.setProperty("value",Ft??"")}_handleInput(Ft){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(Ft)}_compositionStart(){this._composing=!0}_compositionEnd(Ft){this._composing=!1,this._compositionMode&&this.onChange(Ft)}}return ae.\u0275fac=function(Ft){return new(Ft||ae)(u.Y36(u.Qsj),u.Y36(u.SBq),u.Y36(V,8))},ae.\u0275dir=u.lG2({type:ae,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(Ft,et){1&Ft&&u.NdJ("input",function(Qo){return et._handleInput(Qo.target.value)})("blur",function(){return et.onTouched()})("compositionstart",function(){return et._compositionStart()})("compositionend",function(Qo){return et._compositionEnd(Qo.target.value)})},features:[u._Bn([L]),u.qOj]}),ae})();function st(ae){return null==ae||("string"==typeof ae||Array.isArray(ae))&&0===ae.length}function ct(ae){return null!=ae&&"number"==typeof ae.length}const bt=new u.OlP("NgValidators"),Dt=new u.OlP("NgAsyncValidators"),wt=/^(?=.{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 qt{static min($t){return Jt($t)}static max($t){return yt($t)}static required($t){return At($t)}static requiredTrue($t){return xt($t)}static email($t){return function pt(ae){return st(ae.value)||wt.test(ae.value)?null:{email:!0}}($t)}static minLength($t){return function Ot(ae){return $t=>st($t.value)||!ct($t.value)?null:$t.value.length{if(st(et.value))return null;const Mi=et.value;return $t.test(Mi)?null:{pattern:{requiredPattern:Ft,actualValue:Mi}}}}($t)}static nullValidator($t){return null}static compose($t){return Gt($t)}static composeAsync($t){return ne($t)}}function Jt(ae){return $t=>{if(st($t.value)||st(ae))return null;const Ft=parseFloat($t.value);return!isNaN(Ft)&&Ft{if(st($t.value)||st(ae))return null;const Ft=parseFloat($t.value);return!isNaN(Ft)&&Ft>ae?{max:{max:ae,actual:$t.value}}:null}}function At(ae){return st(ae.value)?{required:!0}:null}function xt(ae){return!0===ae.value?null:{required:!0}}function Bt(ae){return $t=>ct($t.value)&&$t.value.length>ae?{maxlength:{requiredLength:ae,actualLength:$t.value.length}}:null}function ce(ae){return null}function Vt(ae){return null!=ae}function ve(ae){return(0,u.QGY)(ae)?(0,x.D)(ae):ae}function fe(ae){let $t={};return ae.forEach(Ft=>{$t=null!=Ft?{...$t,...Ft}:$t}),0===Object.keys($t).length?null:$t}function Le(ae,$t){return $t.map(Ft=>Ft(ae))}function Ge(ae){return ae.map($t=>function Fe(ae){return!ae.validate}($t)?$t:Ft=>$t.validate(Ft))}function Gt(ae){if(!ae)return null;const $t=ae.filter(Vt);return 0==$t.length?null:function(Ft){return fe(Le(Ft,$t))}}function Te(ae){return null!=ae?Gt(Ge(ae)):null}function ne(ae){if(!ae)return null;const $t=ae.filter(Vt);return 0==$t.length?null:function(Ft){const et=Le(Ft,$t).map(ve);return(0,v.D)(et).pipe((0,t.U)(fe))}}function jt(ae){return null!=ae?ne(Ge(ae)):null}function re(ae,$t){return null===ae?[$t]:Array.isArray(ae)?[...ae,$t]:[ae,$t]}function Xt(ae){return ae._rawValidators}function oe(ae){return ae._rawAsyncValidators}function Me(ae){return ae?Array.isArray(ae)?ae:[ae]:[]}function en(ae,$t){return Array.isArray(ae)?ae.includes($t):ae===$t}function _n(ae,$t){const Ft=Me($t);return Me(ae).forEach(Mi=>{en(Ft,Mi)||Ft.push(Mi)}),Ft}function xe(ae,$t){return Me($t).filter(Ft=>!en(ae,Ft))}class vn{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=Te(this._rawValidators)}_setAsyncValidators($t){this._rawAsyncValidators=$t||[],this._composedAsyncValidatorFn=jt(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,Ft){return!!this.control&&this.control.hasError($t,Ft)}getError($t,Ft){return this.control?this.control.getError($t,Ft):null}}class ke extends vn{get formDirective(){return null}get path(){return null}}class un extends vn{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Dn{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 ae extends Dn{constructor(Ft){super(Ft)}}return ae.\u0275fac=function(Ft){return new(Ft||ae)(u.Y36(un,2))},ae.\u0275dir=u.lG2({type:ae,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Ft,et){2&Ft&&u.ekj("ng-untouched",et.isUntouched)("ng-touched",et.isTouched)("ng-pristine",et.isPristine)("ng-dirty",et.isDirty)("ng-valid",et.isValid)("ng-invalid",et.isInvalid)("ng-pending",et.isPending)},features:[u.qOj]}),ae})(),Qe=(()=>{class ae extends Dn{constructor(Ft){super(Ft)}}return ae.\u0275fac=function(Ft){return new(Ft||ae)(u.Y36(ke,10))},ae.\u0275dir=u.lG2({type:ae,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(Ft,et){2&Ft&&u.ekj("ng-untouched",et.isUntouched)("ng-touched",et.isTouched)("ng-pristine",et.isPristine)("ng-dirty",et.isDirty)("ng-valid",et.isValid)("ng-invalid",et.isInvalid)("ng-pending",et.isPending)("ng-submitted",et.isSubmitted)},features:[u.qOj]}),ae})();const Ye="VALID",Ee="INVALID",Xe="PENDING",se="DISABLED";function ze(ae){return(sn(ae)?ae.validators:ae)||null}function ie(ae){return Array.isArray(ae)?Te(ae):ae||null}function rn(ae,$t){return(sn($t)?$t.asyncValidators:ae)||null}function fn(ae){return Array.isArray(ae)?jt(ae):ae||null}function sn(ae){return null!=ae&&!Array.isArray(ae)&&"object"==typeof ae}function ge(ae,$t,Ft){const et=ae.controls;if(!($t?Object.keys(et):et).length)throw new u.vHH(1e3,"");if(!et[Ft])throw new u.vHH(1001,"")}function Nt(ae,$t,Ft){ae._forEachChild((et,Mi)=>{if(void 0===Ft[Mi])throw new u.vHH(1002,"")})}class Se{constructor($t,Ft){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=Ft,this._composedValidatorFn=ie(this._rawValidators),this._composedAsyncValidatorFn=fn(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===Ye}get invalid(){return this.status===Ee}get pending(){return this.status==Xe}get disabled(){return this.status===se}get enabled(){return this.status!==se}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=ie($t)}setAsyncValidators($t){this._rawAsyncValidators=$t,this._composedAsyncValidatorFn=fn($t)}addValidators($t){this.setValidators(_n($t,this._rawValidators))}addAsyncValidators($t){this.setAsyncValidators(_n($t,this._rawAsyncValidators))}removeValidators($t){this.setValidators(xe($t,this._rawValidators))}removeAsyncValidators($t){this.setAsyncValidators(xe($t,this._rawAsyncValidators))}hasValidator($t){return en(this._rawValidators,$t)}hasAsyncValidator($t){return en(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(Ft=>{Ft.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(Ft=>{Ft.markAsPristine({onlySelf:!0})}),this._parent&&!$t.onlySelf&&this._parent._updatePristine($t)}markAsPending($t={}){this.status=Xe,!1!==$t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!$t.onlySelf&&this._parent.markAsPending($t)}disable($t={}){const Ft=this._parentMarkedDirty($t.onlySelf);this.status=se,this.errors=null,this._forEachChild(et=>{et.disable({...$t,onlySelf:!0})}),this._updateValue(),!1!==$t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...$t,skipPristineCheck:Ft}),this._onDisabledChange.forEach(et=>et(!0))}enable($t={}){const Ft=this._parentMarkedDirty($t.onlySelf);this.status=Ye,this._forEachChild(et=>{et.enable({...$t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:$t.emitEvent}),this._updateAncestors({...$t,skipPristineCheck:Ft}),this._onDisabledChange.forEach(et=>et(!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===Ye||this.status===Xe)&&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(Ft=>Ft._updateTreeValidity($t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:$t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?se:Ye}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator($t){if(this.asyncValidator){this.status=Xe,this._hasOwnPendingAsyncValidator=!0;const Ft=ve(this.asyncValidator(this));this._asyncValidationSubscription=Ft.subscribe(et=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(et,{emitEvent:$t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors($t,Ft={}){this.errors=$t,this._updateControlsErrors(!1!==Ft.emitEvent)}get($t){let Ft=$t;return null==Ft||(Array.isArray(Ft)||(Ft=Ft.split(".")),0===Ft.length)?null:Ft.reduce((et,Mi)=>et&&et._find(Mi),this)}getError($t,Ft){const et=Ft?this.get(Ft):this;return et&&et.errors?et.errors[$t]:null}hasError($t,Ft){return!!this.getError($t,Ft)}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()?se:this.errors?Ee:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Xe)?Xe:this._anyControlsHaveStatus(Ee)?Ee:Ye}_anyControlsHaveStatus($t){return this._anyControls(Ft=>Ft.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){sn($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 Se{constructor($t,Ft,et){super(ze(Ft),rn(et,Ft)),this.controls=$t,this._initObservables(),this._setUpdateStrategy(Ft),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl($t,Ft){return this.controls[$t]?this.controls[$t]:(this.controls[$t]=Ft,Ft.setParent(this),Ft._registerOnCollectionChange(this._onCollectionChange),Ft)}addControl($t,Ft,et={}){this.registerControl($t,Ft),this.updateValueAndValidity({emitEvent:et.emitEvent}),this._onCollectionChange()}removeControl($t,Ft={}){this.controls[$t]&&this.controls[$t]._registerOnCollectionChange(()=>{}),delete this.controls[$t],this.updateValueAndValidity({emitEvent:Ft.emitEvent}),this._onCollectionChange()}setControl($t,Ft,et={}){this.controls[$t]&&this.controls[$t]._registerOnCollectionChange(()=>{}),delete this.controls[$t],Ft&&this.registerControl($t,Ft),this.updateValueAndValidity({emitEvent:et.emitEvent}),this._onCollectionChange()}contains($t){return this.controls.hasOwnProperty($t)&&this.controls[$t].enabled}setValue($t,Ft={}){Nt(this,0,$t),Object.keys($t).forEach(et=>{ge(this,!0,et),this.controls[et].setValue($t[et],{onlySelf:!0,emitEvent:Ft.emitEvent})}),this.updateValueAndValidity(Ft)}patchValue($t,Ft={}){null!=$t&&(Object.keys($t).forEach(et=>{const Mi=this.controls[et];Mi&&Mi.patchValue($t[et],{onlySelf:!0,emitEvent:Ft.emitEvent})}),this.updateValueAndValidity(Ft))}reset($t={},Ft={}){this._forEachChild((et,Mi)=>{et.reset($t[Mi],{onlySelf:!0,emitEvent:Ft.emitEvent})}),this._updatePristine(Ft),this._updateTouched(Ft),this.updateValueAndValidity(Ft)}getRawValue(){return this._reduceChildren({},($t,Ft,et)=>($t[et]=Ft.getRawValue(),$t))}_syncPendingControls(){let $t=this._reduceChildren(!1,(Ft,et)=>!!et._syncPendingControls()||Ft);return $t&&this.updateValueAndValidity({onlySelf:!0}),$t}_forEachChild($t){Object.keys(this.controls).forEach(Ft=>{const et=this.controls[Ft];et&&$t(et,Ft)})}_setUpControls(){this._forEachChild($t=>{$t.setParent(this),$t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls($t){for(const[Ft,et]of Object.entries(this.controls))if(this.contains(Ft)&&$t(et))return!0;return!1}_reduceValue(){return this._reduceChildren({},(Ft,et,Mi)=>((et.enabled||this.disabled)&&(Ft[Mi]=et.value),Ft))}_reduceChildren($t,Ft){let et=$t;return this._forEachChild((Mi,Qo)=>{et=Ft(et,Mi,Qo)}),et}_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 Ae=zt;class Sn extends zt{}function Vi(ae,$t){return[...$t.path,ae]}function cn(ae,$t){bi(ae,$t),$t.valueAccessor.writeValue(ae.value),ae.disabled&&$t.valueAccessor.setDisabledState?.(!0),function To(ae,$t){$t.valueAccessor.registerOnChange(Ft=>{ae._pendingValue=Ft,ae._pendingChange=!0,ae._pendingDirty=!0,"change"===ae.updateOn&&ha(ae,$t)})}(ae,$t),function Aa(ae,$t){const Ft=(et,Mi)=>{$t.valueAccessor.writeValue(et),Mi&&$t.viewToModelUpdate(et)};ae.registerOnChange(Ft),$t._registerOnDestroy(()=>{ae._unregisterOnChange(Ft)})}(ae,$t),function Lo(ae,$t){$t.valueAccessor.registerOnTouched(()=>{ae._pendingTouched=!0,"blur"===ae.updateOn&&ae._pendingChange&&ha(ae,$t),"submit"!==ae.updateOn&&ae.markAsTouched()})}(ae,$t),function ai(ae,$t){if($t.valueAccessor.setDisabledState){const Ft=et=>{$t.valueAccessor.setDisabledState(et)};ae.registerOnDisabledChange(Ft),$t._registerOnDestroy(()=>{ae._unregisterOnDisabledChange(Ft)})}}(ae,$t)}function pn(ae,$t,Ft=!0){const et=()=>{};$t.valueAccessor&&($t.valueAccessor.registerOnChange(et),$t.valueAccessor.registerOnTouched(et)),so(ae,$t),ae&&($t._invokeOnDestroyCallbacks(),ae._registerOnCollectionChange(()=>{}))}function We(ae,$t){ae.forEach(Ft=>{Ft.registerOnValidatorChange&&Ft.registerOnValidatorChange($t)})}function bi(ae,$t){const Ft=Xt(ae);null!==$t.validator?ae.setValidators(re(Ft,$t.validator)):"function"==typeof Ft&&ae.setValidators([Ft]);const et=oe(ae);null!==$t.asyncValidator?ae.setAsyncValidators(re(et,$t.asyncValidator)):"function"==typeof et&&ae.setAsyncValidators([et]);const Mi=()=>ae.updateValueAndValidity();We($t._rawValidators,Mi),We($t._rawAsyncValidators,Mi)}function so(ae,$t){let Ft=!1;if(null!==ae){if(null!==$t.validator){const Mi=Xt(ae);if(Array.isArray(Mi)&&Mi.length>0){const Qo=Mi.filter(Ua=>Ua!==$t.validator);Qo.length!==Mi.length&&(Ft=!0,ae.setValidators(Qo))}}if(null!==$t.asyncValidator){const Mi=oe(ae);if(Array.isArray(Mi)&&Mi.length>0){const Qo=Mi.filter(Ua=>Ua!==$t.asyncValidator);Qo.length!==Mi.length&&(Ft=!0,ae.setAsyncValidators(Qo))}}}const et=()=>{};return We($t._rawValidators,et),We($t._rawAsyncValidators,et),Ft}function ha(ae,$t){ae._pendingDirty&&ae.markAsDirty(),ae.setValue(ae._pendingValue,{emitModelToViewChange:!1}),$t.viewToModelUpdate(ae._pendingValue),ae._pendingChange=!1}function Ne(ae,$t){bi(ae,$t)}function Et(ae,$t){if(!ae.hasOwnProperty("model"))return!1;const Ft=ae.model;return!!Ft.isFirstChange()||!Object.is($t,Ft.currentValue)}function Lt(ae,$t){ae._syncPendingControls(),$t.forEach(Ft=>{const et=Ft.control;"submit"===et.updateOn&&et._pendingChange&&(Ft.viewToModelUpdate(et._pendingValue),et._pendingChange=!1)})}function He(ae,$t){if(!$t)return null;let Ft,et,Mi;return Array.isArray($t),$t.forEach(Qo=>{Qo.constructor===W?Ft=Qo:function J(ae){return Object.getPrototypeOf(ae.constructor)===U}(Qo)?et=Qo:Mi=Qo}),Mi||et||Ft||null}const wo={provide:ke,useExisting:(0,u.Gpc)(()=>pr)},dr=(()=>Promise.resolve())();let pr=(()=>{class ae extends ke{constructor(Ft,et){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new u.vpe,this.form=new zt({},Te(Ft),jt(et))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(Ft){dr.then(()=>{const et=this._findContainer(Ft.path);Ft.control=et.registerControl(Ft.name,Ft.control),cn(Ft.control,Ft),Ft.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(Ft)})}getControl(Ft){return this.form.get(Ft.path)}removeControl(Ft){dr.then(()=>{const et=this._findContainer(Ft.path);et&&et.removeControl(Ft.name),this._directives.delete(Ft)})}addFormGroup(Ft){dr.then(()=>{const et=this._findContainer(Ft.path),Mi=new zt({});Ne(Mi,Ft),et.registerControl(Ft.name,Mi),Mi.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(Ft){dr.then(()=>{const et=this._findContainer(Ft.path);et&&et.removeControl(Ft.name)})}getFormGroup(Ft){return this.form.get(Ft.path)}updateModel(Ft,et){dr.then(()=>{this.form.get(Ft.path).setValue(et)})}setValue(Ft){this.control.setValue(Ft)}onSubmit(Ft){return this.submitted=!0,Lt(this.form,this._directives),this.ngSubmit.emit(Ft),"dialog"===Ft?.target?.method}onReset(){this.resetForm()}resetForm(Ft){this.form.reset(Ft),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(Ft){return Ft.pop(),Ft.length?this.form.get(Ft):this.form}}return ae.\u0275fac=function(Ft){return new(Ft||ae)(u.Y36(bt,10),u.Y36(Dt,10))},ae.\u0275dir=u.lG2({type:ae,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Ft,et){1&Ft&&u.NdJ("submit",function(Qo){return et.onSubmit(Qo)})("reset",function(){return et.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[u._Bn([wo]),u.qOj]}),ae})();function $r(ae,$t){const Ft=ae.indexOf($t);Ft>-1&&ae.splice(Ft,1)}function ja(ae){return"object"==typeof ae&&null!==ae&&2===Object.keys(ae).length&&"value"in ae&&"disabled"in ae}const Er=class extends Se{constructor($t=null,Ft,et){super(ze(Ft),rn(et,Ft)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState($t),this._setUpdateStrategy(Ft),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),sn(Ft)&&(Ft.nonNullable||Ft.initialValueIsDefault)&&(this.defaultValue=ja($t)?$t.value:$t)}setValue($t,Ft={}){this.value=this._pendingValue=$t,this._onChange.length&&!1!==Ft.emitModelToViewChange&&this._onChange.forEach(et=>et(this.value,!1!==Ft.emitViewToModelChange)),this.updateValueAndValidity(Ft)}patchValue($t,Ft={}){this.setValue($t,Ft)}reset($t=this.defaultValue,Ft={}){this._applyFormState($t),this.markAsPristine(Ft),this.markAsUntouched(Ft),this.setValue(this.value,Ft),this._pendingChange=!1}_updateValue(){}_anyControls($t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange($t){this._onChange.push($t)}_unregisterOnChange($t){$r(this._onChange,$t)}registerOnDisabledChange($t){this._onDisabledChange.push($t)}_unregisterOnDisabledChange($t){$r(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=Er;let ds=(()=>{class ae extends ke{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Vi(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return ae.\u0275fac=function(){let $t;return function(et){return($t||($t=u.n5z(ae)))(et||ae)}}(),ae.\u0275dir=u.lG2({type:ae,features:[u.qOj]}),ae})();const Ws={provide:un,useExisting:(0,u.Gpc)(()=>ps)},Oc=(()=>Promise.resolve())();let ps=(()=>{class ae extends un{constructor(Ft,et,Mi,Qo,Ua){super(),this._changeDetectorRef=Ua,this.control=new Er,this._registered=!1,this.update=new u.vpe,this._parent=Ft,this._setValidators(et),this._setAsyncValidators(Mi),this.valueAccessor=He(0,Qo)}ngOnChanges(Ft){if(this._checkForErrors(),!this._registered||"name"in Ft){if(this._registered&&(this._checkName(),this.formDirective)){const et=Ft.name.previousValue;this.formDirective.removeControl({name:et,path:this._getPath(et)})}this._setUpControl()}"isDisabled"in Ft&&this._updateDisabled(Ft),Et(Ft,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(Ft){this.viewModel=Ft,this.update.emit(Ft)}_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(){cn(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(Ft){Oc.then(()=>{this.control.setValue(Ft,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(Ft){const et=Ft.isDisabled.currentValue,Mi=0!==et&&(0,u.D6c)(et);Oc.then(()=>{Mi&&!this.control.disabled?this.control.disable():!Mi&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(Ft){return this._parent?Vi(Ft,this._parent):[Ft]}}return ae.\u0275fac=function(Ft){return new(Ft||ae)(u.Y36(ke,9),u.Y36(bt,10),u.Y36(Dt,10),u.Y36(w,10),u.Y36(u.sBO,8))},ae.\u0275dir=u.lG2({type:ae,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([Ws]),u.qOj,u.TTD]}),ae})(),Hs=(()=>{class ae{}return ae.\u0275fac=function(Ft){return new(Ft||ae)},ae.\u0275dir=u.lG2({type:ae,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),ae})();const Qd={provide:w,useExisting:(0,u.Gpc)(()=>Fr),multi:!0};let Fr=(()=>{class ae extends U{writeValue(Ft){this.setProperty("value",Ft??"")}registerOnChange(Ft){this.onChange=et=>{Ft(""==et?null:parseFloat(et))}}}return ae.\u0275fac=function(){let $t;return function(et){return($t||($t=u.n5z(ae)))(et||ae)}}(),ae.\u0275dir=u.lG2({type:ae,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(Ft,et){1&Ft&&u.NdJ("input",function(Qo){return et.onChange(Qo.target.value)})("blur",function(){return et.onTouched()})},features:[u._Bn([Qd]),u.qOj]}),ae})(),Gc=(()=>{class ae{}return ae.\u0275fac=function(Ft){return new(Ft||ae)},ae.\u0275mod=u.oAB({type:ae}),ae.\u0275inj=u.cJS({}),ae})();const $s=new u.OlP("NgModelWithFormControlWarning"),xc={provide:un,useExisting:(0,u.Gpc)(()=>Ks)};let Ks=(()=>{class ae extends un{constructor(Ft,et,Mi,Qo){super(),this._ngModelWarningConfig=Qo,this.update=new u.vpe,this._ngModelWarningSent=!1,this._setValidators(Ft),this._setAsyncValidators(et),this.valueAccessor=He(0,Mi)}set isDisabled(Ft){}ngOnChanges(Ft){if(this._isControlChanged(Ft)){const et=Ft.form.previousValue;et&&pn(et,this,!1),cn(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}Et(Ft,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&pn(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(Ft){this.viewModel=Ft,this.update.emit(Ft)}_isControlChanged(Ft){return Ft.hasOwnProperty("form")}}return ae._ngModelWarningSentOnce=!1,ae.\u0275fac=function(Ft){return new(Ft||ae)(u.Y36(bt,10),u.Y36(Dt,10),u.Y36(w,10),u.Y36($s,8))},ae.\u0275dir=u.lG2({type:ae,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]}),ae})();const ll={provide:ke,useExisting:(0,u.Gpc)(()=>td)};let td=(()=>{class ae extends ke{constructor(Ft,et){super(),this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new u.vpe,this._setValidators(Ft),this._setAsyncValidators(et)}ngOnChanges(Ft){this._checkFormPresent(),Ft.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(so(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(Ft){const et=this.form.get(Ft.path);return cn(et,Ft),et.updateValueAndValidity({emitEvent:!1}),this.directives.push(Ft),et}getControl(Ft){return this.form.get(Ft.path)}removeControl(Ft){pn(Ft.control||null,Ft,!1),function zn(ae,$t){const Ft=ae.indexOf($t);Ft>-1&&ae.splice(Ft,1)}(this.directives,Ft)}addFormGroup(Ft){this._setUpFormContainer(Ft)}removeFormGroup(Ft){this._cleanUpFormContainer(Ft)}getFormGroup(Ft){return this.form.get(Ft.path)}addFormArray(Ft){this._setUpFormContainer(Ft)}removeFormArray(Ft){this._cleanUpFormContainer(Ft)}getFormArray(Ft){return this.form.get(Ft.path)}updateModel(Ft,et){this.form.get(Ft.path).setValue(et)}onSubmit(Ft){return this.submitted=!0,Lt(this.form,this.directives),this.ngSubmit.emit(Ft),"dialog"===Ft?.target?.method}onReset(){this.resetForm()}resetForm(Ft){this.form.reset(Ft),this.submitted=!1}_updateDomValue(){this.directives.forEach(Ft=>{const et=Ft.control,Mi=this.form.get(Ft.path);et!==Mi&&(pn(et||null,Ft),(ae=>ae instanceof Er)(Mi)&&(cn(Mi,Ft),Ft.control=Mi))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(Ft){const et=this.form.get(Ft.path);Ne(et,Ft),et.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(Ft){if(this.form){const et=this.form.get(Ft.path);et&&function Rn(ae,$t){return so(ae,$t)}(et,Ft)&&et.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){bi(this.form,this),this._oldForm&&so(this._oldForm,this)}_checkFormPresent(){}}return ae.\u0275fac=function(Ft){return new(Ft||ae)(u.Y36(bt,10),u.Y36(Dt,10))},ae.\u0275dir=u.lG2({type:ae,selectors:[["","formGroup",""]],hostBindings:function(Ft,et){1&Ft&&u.NdJ("submit",function(Qo){return et.onSubmit(Qo)})("reset",function(){return et.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[u._Bn([ll]),u.qOj,u.TTD]}),ae})();const jl={provide:ke,useExisting:(0,u.Gpc)(()=>Es)};let Es=(()=>{class ae extends ds{constructor(Ft,et,Mi){super(),this._parent=Ft,this._setValidators(et),this._setAsyncValidators(Mi)}_checkParentType(){Wc(this._parent)}}return ae.\u0275fac=function(Ft){return new(Ft||ae)(u.Y36(ke,13),u.Y36(bt,10),u.Y36(Dt,10))},ae.\u0275dir=u.lG2({type:ae,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[u._Bn([jl]),u.qOj]}),ae})();const Zl={provide:ke,useExisting:(0,u.Gpc)(()=>Ys)};let Ys=(()=>{class ae extends ke{constructor(Ft,et,Mi){super(),this._parent=Ft,this._setValidators(et),this._setAsyncValidators(Mi)}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 Vi(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){Wc(this._parent)}}return ae.\u0275fac=function(Ft){return new(Ft||ae)(u.Y36(ke,13),u.Y36(bt,10),u.Y36(Dt,10))},ae.\u0275dir=u.lG2({type:ae,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[u._Bn([Zl]),u.qOj]}),ae})();function Wc(ae){return!(ae instanceof Es||ae instanceof td||ae instanceof Ys)}const Xs={provide:un,useExisting:(0,u.Gpc)(()=>Dl)};let Dl=(()=>{class ae extends un{constructor(Ft,et,Mi,Qo,Ua){super(),this._ngModelWarningConfig=Ua,this._added=!1,this.update=new u.vpe,this._ngModelWarningSent=!1,this._parent=Ft,this._setValidators(et),this._setAsyncValidators(Mi),this.valueAccessor=He(0,Qo)}set isDisabled(Ft){}ngOnChanges(Ft){this._added||this._setUpControl(),Et(Ft,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(Ft){this.viewModel=Ft,this.update.emit(Ft)}get path(){return Vi(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 ae._ngModelWarningSentOnce=!1,ae.\u0275fac=function(Ft){return new(Ft||ae)(u.Y36(ke,13),u.Y36(bt,10),u.Y36(Dt,10),u.Y36(w,10),u.Y36($s,8))},ae.\u0275dir=u.lG2({type:ae,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[u._Bn([Xs]),u.qOj,u.TTD]}),ae})();function Pr(ae){return"number"==typeof ae?ae:parseFloat(ae)}let dc=(()=>{class ae{constructor(){this._validator=ce}ngOnChanges(Ft){if(this.inputName in Ft){const et=this.normalizeInput(Ft[this.inputName].currentValue);this._enabled=this.enabled(et),this._validator=this._enabled?this.createValidator(et):ce,this._onChange&&this._onChange()}}validate(Ft){return this._validator(Ft)}registerOnValidatorChange(Ft){this._onChange=Ft}enabled(Ft){return null!=Ft}}return ae.\u0275fac=function(Ft){return new(Ft||ae)},ae.\u0275dir=u.lG2({type:ae,features:[u.TTD]}),ae})();const za={provide:bt,useExisting:(0,u.Gpc)(()=>Va),multi:!0};let Va=(()=>{class ae extends dc{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=Ft=>Pr(Ft),this.createValidator=Ft=>yt(Ft)}}return ae.\u0275fac=function(){let $t;return function(et){return($t||($t=u.n5z(ae)))(et||ae)}}(),ae.\u0275dir=u.lG2({type:ae,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(Ft,et){2&Ft&&u.uIk("max",et._enabled?et.max:null)},inputs:{max:"max"},features:[u._Bn([za]),u.qOj]}),ae})();const Ur={provide:bt,useExisting:(0,u.Gpc)(()=>vr),multi:!0};let vr=(()=>{class ae extends dc{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=Ft=>Pr(Ft),this.createValidator=Ft=>Jt(Ft)}}return ae.\u0275fac=function(){let $t;return function(et){return($t||($t=u.n5z(ae)))(et||ae)}}(),ae.\u0275dir=u.lG2({type:ae,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(Ft,et){2&Ft&&u.uIk("min",et._enabled?et.min:null)},inputs:{min:"min"},features:[u._Bn([Ur]),u.qOj]}),ae})();const as={provide:bt,useExisting:(0,u.Gpc)(()=>zs),multi:!0},Qn={provide:bt,useExisting:(0,u.Gpc)(()=>ms),multi:!0};let zs=(()=>{class ae extends dc{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=u.D6c,this.createValidator=Ft=>At}enabled(Ft){return Ft}}return ae.\u0275fac=function(){let $t;return function(et){return($t||($t=u.n5z(ae)))(et||ae)}}(),ae.\u0275dir=u.lG2({type:ae,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(Ft,et){2&Ft&&u.uIk("required",et._enabled?"":null)},inputs:{required:"required"},features:[u._Bn([as]),u.qOj]}),ae})(),ms=(()=>{class ae extends zs{constructor(){super(...arguments),this.createValidator=Ft=>xt}}return ae.\u0275fac=function(){let $t;return function(et){return($t||($t=u.n5z(ae)))(et||ae)}}(),ae.\u0275dir=u.lG2({type:ae,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(Ft,et){2&Ft&&u.uIk("required",et._enabled?"":null)},features:[u._Bn([Qn]),u.qOj]}),ae})();const Fs={provide:bt,useExisting:(0,u.Gpc)(()=>tc),multi:!0};let tc=(()=>{class ae extends dc{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=Ft=>function $l(ae){return"number"==typeof ae?ae:parseInt(ae,10)}(Ft),this.createValidator=Ft=>Bt(Ft)}}return ae.\u0275fac=function(){let $t;return function(et){return($t||($t=u.n5z(ae)))(et||ae)}}(),ae.\u0275dir=u.lG2({type:ae,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(Ft,et){2&Ft&&u.uIk("maxlength",et._enabled?et.maxlength:null)},inputs:{maxlength:"maxlength"},features:[u._Bn([Fs]),u.qOj]}),ae})(),Br=(()=>{class ae{}return ae.\u0275fac=function(Ft){return new(Ft||ae)},ae.\u0275mod=u.oAB({type:ae}),ae.\u0275inj=u.cJS({imports:[Gc]}),ae})(),Lc=(()=>{class ae{}return ae.\u0275fac=function(Ft){return new(Ft||ae)},ae.\u0275mod=u.oAB({type:ae}),ae.\u0275inj=u.cJS({imports:[Br]}),ae})(),ul=(()=>{class ae{static withConfig(Ft){return{ngModule:ae,providers:[{provide:$s,useValue:Ft.warnOnNgModelWithFormControl}]}}}return ae.\u0275fac=function(Ft){return new(Ft||ae)},ae.\u0275mod=u.oAB({type:ae}),ae.\u0275inj=u.cJS({imports:[Br]}),ae})();class Cc extends Se{constructor($t,Ft,et){super(ze(Ft),rn(et,Ft)),this.controls=$t,this._initObservables(),this._setUpdateStrategy(Ft),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at($t){return this.controls[this._adjustIndex($t)]}push($t,Ft={}){this.controls.push($t),this._registerControl($t),this.updateValueAndValidity({emitEvent:Ft.emitEvent}),this._onCollectionChange()}insert($t,Ft,et={}){this.controls.splice($t,0,Ft),this._registerControl(Ft),this.updateValueAndValidity({emitEvent:et.emitEvent})}removeAt($t,Ft={}){let et=this._adjustIndex($t);et<0&&(et=0),this.controls[et]&&this.controls[et]._registerOnCollectionChange(()=>{}),this.controls.splice(et,1),this.updateValueAndValidity({emitEvent:Ft.emitEvent})}setControl($t,Ft,et={}){let Mi=this._adjustIndex($t);Mi<0&&(Mi=0),this.controls[Mi]&&this.controls[Mi]._registerOnCollectionChange(()=>{}),this.controls.splice(Mi,1),Ft&&(this.controls.splice(Mi,0,Ft),this._registerControl(Ft)),this.updateValueAndValidity({emitEvent:et.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue($t,Ft={}){Nt(this,0,$t),$t.forEach((et,Mi)=>{ge(this,!1,Mi),this.at(Mi).setValue(et,{onlySelf:!0,emitEvent:Ft.emitEvent})}),this.updateValueAndValidity(Ft)}patchValue($t,Ft={}){null!=$t&&($t.forEach((et,Mi)=>{this.at(Mi)&&this.at(Mi).patchValue(et,{onlySelf:!0,emitEvent:Ft.emitEvent})}),this.updateValueAndValidity(Ft))}reset($t=[],Ft={}){this._forEachChild((et,Mi)=>{et.reset($t[Mi],{onlySelf:!0,emitEvent:Ft.emitEvent})}),this._updatePristine(Ft),this._updateTouched(Ft),this.updateValueAndValidity(Ft)}getRawValue(){return this.controls.map($t=>$t.getRawValue())}clear($t={}){this.controls.length<1||(this._forEachChild(Ft=>Ft._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((Ft,et)=>!!et._syncPendingControls()||Ft,!1);return $t&&this.updateValueAndValidity({onlySelf:!0}),$t}_forEachChild($t){this.controls.forEach((Ft,et)=>{$t(Ft,et)})}_updateValue(){this.value=this.controls.filter($t=>$t.enabled||this.disabled).map($t=>$t.value)}_anyControls($t){return this.controls.some(Ft=>Ft.enabled&&$t(Ft))}_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 Gi(ae){return!!ae&&(void 0!==ae.asyncValidators||void 0!==ae.validators||void 0!==ae.updateOn)}let da=(()=>{class ae{constructor(){this.useNonNullable=!1}get nonNullable(){const Ft=new ae;return Ft.useNonNullable=!0,Ft}group(Ft,et=null){const Mi=this._reduceControls(Ft);let Qo={};return Gi(et)?Qo=et:null!==et&&(Qo.validators=et.validator,Qo.asyncValidators=et.asyncValidator),new zt(Mi,Qo)}record(Ft,et=null){const Mi=this._reduceControls(Ft);return new Sn(Mi,et)}control(Ft,et,Mi){let Qo={};return this.useNonNullable?(Gi(et)?Qo=et:(Qo.validators=et,Qo.asyncValidators=Mi),new Er(Ft,{...Qo,nonNullable:!0})):new Er(Ft,et,Mi)}array(Ft,et,Mi){const Qo=Ft.map(Ua=>this._createControl(Ua));return new Cc(Qo,et,Mi)}_reduceControls(Ft){const et={};return Object.keys(Ft).forEach(Mi=>{et[Mi]=this._createControl(Ft[Mi])}),et}_createControl(Ft){return Ft instanceof Er||Ft instanceof Se?Ft:Array.isArray(Ft)?this.control(Ft[0],Ft.length>1?Ft[1]:null,Ft.length>2?Ft[2]:null):this.control(Ft)}}return ae.\u0275fac=function(Ft){return new(Ft||ae)},ae.\u0275prov=u.Yz7({token:ae,factory:ae.\u0275fac,providedIn:ul}),ae})(),Kr=(()=>{class ae extends da{group(Ft,et=null){return super.group(Ft,et)}control(Ft,et,Mi){return super.control(Ft,et,Mi)}array(Ft,et,Mi){return super.array(Ft,et,Mi)}}return ae.\u0275fac=function(){let $t;return function(et){return($t||($t=u.n5z(ae)))(et||ae)}}(),ae.\u0275prov=u.Yz7({token:ae,factory:ae.\u0275fac,providedIn:ul}),ae})()},47957:(X,j,h)=>{"use strict";h.d(j,{Bb:()=>_n,XC:()=>Ge,ZL:()=>en});var u=h(12687),p=h(21281),x=h(83353),v=h(94650),t=h(3238),T=h(42654),U=h(8929),w=h(88514),P=h(36787),O=h(21086),L=h(23753),N=h(36895),V=h(98184),W=h(67376),tt=h(40445),st=h(29521),ct=h(84080),bt=h(24006),Dt=h(59549),wt=h(1059),qt=h(87545),Jt=h(72986),yt=h(92198),At=h(24850),xt=h(22868),pt=h(18583);const Ot=["panel"];function Bt(xe,vn){if(1&xe&&(v.TgZ(0,"div",0,1),v.Hsn(2),v.qZA()),2&xe){const ke=vn.id,un=v.oxw();v.Q6J("id",un.id)("ngClass",un._classList),v.uIk("aria-label",un.ariaLabel||null)("aria-labelledby",un._getPanelAriaLabelledby(ke))}}const St=["*"];let ce=0;class Vt{constructor(vn,ke){this.source=vn,this.option=ke}}const ve=(0,t.Kr)(class{}),fe=new v.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function Le(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1}}});let Fe=(()=>{class xe extends ve{constructor(ke,un,Dn,ii){super(),this._changeDetectorRef=ke,this._elementRef=un,this._activeOptionChanges=T.w.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new v.vpe,this.opened=new v.vpe,this.closed=new v.vpe,this.optionActivated=new v.vpe,this._classList={},this.id="mat-autocomplete-"+ce++,this.inertGroups=ii?.SAFARI||!1,this._autoActiveFirstOption=!!Dn.autoActiveFirstOption,this._autoSelectActiveOption=!!Dn.autoSelectActiveOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(ke){this._autoActiveFirstOption=(0,p.Ig)(ke)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(ke){this._autoSelectActiveOption=(0,p.Ig)(ke)}set classList(ke){this._classList=ke&&ke.length?(0,p.du)(ke).reduce((un,Dn)=>(un[Dn]=!0,un),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new u.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(ke=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[ke]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(ke){this.panel&&(this.panel.nativeElement.scrollTop=ke)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(ke){const un=new Vt(this,ke);this.optionSelected.emit(un)}_getPanelAriaLabelledby(ke){return this.ariaLabel?null:this.ariaLabelledby?(ke?ke+" ":"")+this.ariaLabelledby:ke}_setVisibilityClasses(ke){ke[this._visibleClass]=this.showPanel,ke[this._hiddenClass]=!this.showPanel}}return xe.\u0275fac=function(ke){return new(ke||xe)(v.Y36(v.sBO),v.Y36(v.SBq),v.Y36(fe),v.Y36(x.t4))},xe.\u0275dir=v.lG2({type:xe,viewQuery:function(ke,un){if(1&ke&&(v.Gf(v.Rgc,7),v.Gf(Ot,5)),2&ke){let Dn;v.iGM(Dn=v.CRH())&&(un.template=Dn.first),v.iGM(Dn=v.CRH())&&(un.panel=Dn.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:[v.qOj]}),xe})(),Ge=(()=>{class xe extends Fe{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return xe.\u0275fac=function(){let vn;return function(un){return(vn||(vn=v.n5z(xe)))(un||xe)}}(),xe.\u0275cmp=v.Xpm({type:xe,selectors:[["mat-autocomplete"]],contentQueries:function(ke,un,Dn){if(1&ke&&(v.Suo(Dn,t.K7,5),v.Suo(Dn,t.ey,5)),2&ke){let ii;v.iGM(ii=v.CRH())&&(un.optionGroups=ii),v.iGM(ii=v.CRH())&&(un.options=ii)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[v._Bn([{provide:t.HF,useExisting:xe}]),v.qOj],ngContentSelectors:St,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(ke,un){1&ke&&(v.F$t(),v.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}),xe})();const ne=new v.OlP("mat-autocomplete-scroll-strategy"),re={provide:ne,deps:[V.aV],useFactory:function jt(xe){return()=>xe.scrollStrategies.reposition()}},Xt={provide:bt.JU,useExisting:(0,v.Gpc)(()=>en),multi:!0};let Me=(()=>{class xe{constructor(ke,un,Dn,ii,_i,oi,Qe,te,it,K,Tt){this._element=ke,this._overlay=un,this._viewContainerRef=Dn,this._zone=ii,this._changeDetectorRef=_i,this._dir=Qe,this._formField=te,this._document=it,this._viewportRuler=K,this._defaults=Tt,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 Rt=this.autocomplete?this.autocomplete.options:null;return Rt?Rt.changes.pipe((0,wt.O)(Rt),(0,qt.w)(()=>(0,P.T)(...Rt.map(le=>le.onSelectionChange)))):this._zone.onStable.pipe((0,Jt.q)(1),(0,qt.w)(()=>this.optionSelections))}),this._scrollStrategy=oi}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(ke){this._autocompleteDisabled=(0,p.Ig)(ke)}ngAfterViewInit(){const ke=this._getWindow();typeof ke<"u"&&this._zone.runOutsideAngular(()=>ke.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(ke){ke.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const ke=this._getWindow();typeof ke<"u"&&ke.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,yt.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,yt.h)(()=>this._overlayAttached)):(0,O.of)()).pipe((0,At.U)(ke=>ke instanceof t.rN?ke: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,yt.h)(ke=>{const un=(0,x.sA)(ke),Dn=this._formField?this._formField._elementRef.nativeElement:null,ii=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&un!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!Dn||!Dn.contains(un))&&(!ii||!ii.contains(un))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(un)}))}writeValue(ke){Promise.resolve(null).then(()=>this._assignOptionValue(ke))}registerOnChange(ke){this._onChange=ke}registerOnTouched(ke){this._onTouched=ke}setDisabledState(ke){this._element.nativeElement.disabled=ke}_handleKeydown(ke){const un=ke.keyCode,Dn=(0,st.Vb)(ke);if(un===st.hY&&!Dn&&ke.preventDefault(),this.activeOption&&un===st.K5&&this.panelOpen&&!Dn)this.activeOption._selectViaInteraction(),this._resetActiveItem(),ke.preventDefault();else if(this.autocomplete){const ii=this.autocomplete._keyManager.activeItem,_i=un===st.LH||un===st.JH;un===st.Mf||_i&&!Dn&&this.panelOpen?this.autocomplete._keyManager.onKeydown(ke):_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(ke){let un=ke.target,Dn=un.value;"number"===un.type&&(Dn=""==Dn?null:parseFloat(Dn)),this._previousValue!==Dn&&(this._previousValue=Dn,this._pendingAutoselectedOption=null,this._onChange(Dn),this._canOpen()&&this._document.activeElement===ke.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(ke=!1){this._formField&&"auto"===this._formField.floatLabel&&(ke?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const ke=this._zone.onStable.pipe((0,Jt.q)(1)),un=this.autocomplete.options.changes.pipe((0,xt.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,pt.g)(0));return(0,P.T)(ke,un).pipe((0,qt.w)(()=>(this._zone.run(()=>{const Dn=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),Dn!==this.panelOpen&&(this.panelOpen?this.autocomplete.opened.emit():this.autocomplete.closed.emit())}),this.panelClosingActions)),(0,Jt.q)(1)).subscribe(Dn=>this._setValueAndClose(Dn))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(ke){const un=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(ke):ke;this._updateNativeInputValue(un??"")}_updateNativeInputValue(ke){this._formField?this._formField._control.value=ke:this._element.nativeElement.value=ke,this._previousValue=ke}_setValueAndClose(ke){const un=ke?ke.source:this._pendingAutoselectedOption;un&&(this._clearPreviousSelectedOption(un),this._assignOptionValue(un.value),this._onChange(un.value),this.autocomplete._emitSelectEvent(un),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(ke){this.autocomplete.options.forEach(un=>{un!==ke&&un.selected&&un.deselect()})}_attachOverlay(){let ke=this._overlayRef;ke?(this._positionStrategy.setOrigin(this._getConnectedElement()),ke.updateSize({width:this._getPanelWidth()})):(this._portal=new ct.UE(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),ke=this._overlay.create(this._getOverlayConfig()),this._overlayRef=ke,this._handleOverlayEvents(ke),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&ke&&ke.updateSize({width:this._getPanelWidth()})})),ke&&!ke.hasAttached()&&(ke.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const un=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&un!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){return new V.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const ke=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(ke),this._positionStrategy=ke,ke}_setStrategyPositions(ke){const un=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Dn=this._aboveClass,ii=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:Dn},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:Dn}];let _i;_i="above"===this.position?ii:"below"===this.position?un:[...un,...ii],ke.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 ke=this.autocomplete;ke.autoActiveFirstOption?ke._keyManager.setFirstItemActive():ke._keyManager.setActiveItem(-1)}_canOpen(){const ke=this._element.nativeElement;return!ke.readOnly&&!ke.disabled&&!this._autocompleteDisabled}_getWindow(){return this._document?.defaultView||window}_scrollToOption(ke){const un=this.autocomplete,Dn=(0,t.CB)(ke,un.options,un.optionGroups);if(0===ke&&1===Dn)un._setScrollTop(0);else if(un.panel){const ii=un.options.toArray()[ke];if(ii){const _i=ii._getHostElement(),oi=(0,t.jH)(_i.offsetTop,_i.offsetHeight,un._getScrollTop(),un.panel.nativeElement.offsetHeight);un._setScrollTop(oi)}}}_handleOverlayEvents(ke){ke.keydownEvents().subscribe(un=>{(un.keyCode===st.hY&&!(0,st.Vb)(un)||un.keyCode===st.LH&&(0,st.Vb)(un,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),un.stopPropagation(),un.preventDefault())}),ke.outsidePointerEvents().subscribe()}}return xe.\u0275fac=function(ke){return new(ke||xe)(v.Y36(v.SBq),v.Y36(V.aV),v.Y36(v.s_b),v.Y36(v.R0b),v.Y36(v.sBO),v.Y36(ne),v.Y36(tt.Is,8),v.Y36(Dt.G_,9),v.Y36(N.K0,8),v.Y36(W.rL),v.Y36(fe,8))},xe.\u0275dir=v.lG2({type:xe,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[v.TTD]}),xe})(),en=(()=>{class xe extends Me{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return xe.\u0275fac=function(){let vn;return function(un){return(vn||(vn=v.n5z(xe)))(un||xe)}}(),xe.\u0275dir=v.lG2({type:xe,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(ke,un){1&ke&&v.NdJ("focusin",function(){return un._handleFocus()})("blur",function(){return un._onTouched()})("input",function(ii){return un._handleInput(ii)})("keydown",function(ii){return un._handleKeydown(ii)})("click",function(){return un._handleClick()}),2&ke&&v.uIk("autocomplete",un.autocompleteAttribute)("role",un.autocompleteDisabled?null:"combobox")("aria-autocomplete",un.autocompleteDisabled?null:"list")("aria-activedescendant",un.panelOpen&&un.activeOption?un.activeOption.id:null)("aria-expanded",un.autocompleteDisabled?null:un.panelOpen.toString())("aria-owns",un.autocompleteDisabled||!un.panelOpen||null==un.autocomplete?null:un.autocomplete.id)("aria-haspopup",un.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[v._Bn([Xt]),v.qOj]}),xe})(),_n=(()=>{class xe{}return xe.\u0275fac=function(ke){return new(ke||xe)},xe.\u0275mod=v.oAB({type:xe}),xe.\u0275inj=v.cJS({providers:[re],imports:[V.U8,t.Ng,t.BQ,N.ez,W.ZD,t.Ng,t.BQ]}),xe})()},42673:(X,j,h)=>{"use strict";h.d(j,{g:()=>P,k:()=>w});var u=h(94650),p=h(3238),x=h(12687),v=h(21281);let t=0;const T=(0,p.Id)(class{}),U="mat-badge-content";let w=(()=>{class O extends T{constructor(N,V,W,tt,st){super(),this._ngZone=N,this._elementRef=V,this._ariaDescriber=W,this._renderer=tt,this._animationMode=st,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,v.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,v.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"),V="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(V)})}):N.classList.add(V),N}_updateRenderedContent(N){const V=`${N??""}`.trim();this._isInitialized&&V&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=V),this._content=V}_updateHostAriaDescription(N){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),N&&this._ariaDescriber.describe(this._elementRef.nativeElement,N),this._description=N}_setColor(N){const V=this._elementRef.nativeElement.classList;V.remove(`mat-badge-${this._color}`),N&&V.add(`mat-badge-${N}`)}_clearExistingBadges(){const N=this._elementRef.nativeElement.querySelectorAll(`:scope > .${U}`);for(const V of Array.from(N))V!==this._badgeElement&&V.remove()}}return O.\u0275fac=function(N){return new(N||O)(u.Y36(u.R0b),u.Y36(u.SBq),u.Y36(x.$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,V){2&N&&u.ekj("mat-badge-overlap",V.overlap)("mat-badge-above",V.isAbove())("mat-badge-below",!V.isAbove())("mat-badge-before",!V.isAfter())("mat-badge-after",V.isAfter())("mat-badge-small","small"===V.size)("mat-badge-medium","medium"===V.size)("mat-badge-large","large"===V.size)("mat-badge-hidden",V.hidden||!V.content)("mat-badge-disabled",V.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:[x.rt,p.BQ,p.BQ]}),O})()},90811:(X,j,h)=>{"use strict";h.d(j,{A9:()=>W,Yi:()=>st,vV:()=>ct});var u=h(12687),p=h(21281),x=h(95017),v=h(94650),t=h(24006),T=h(3238);const U=["button"],w=["*"],P=new v.OlP("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS"),O=new v.OlP("MatButtonToggleGroup"),L={provide:t.JU,useExisting:(0,v.Gpc)(()=>W),multi:!0};let N=0;class V{constructor(Dt,wt){this.source=Dt,this.value=wt}}let W=(()=>{class bt{constructor(wt,qt){this._changeDetector=wt,this._vertical=!1,this._multiple=!1,this._disabled=!1,this._controlValueAccessorChangeFn=()=>{},this._onTouched=()=>{},this._name="mat-button-toggle-group-"+N++,this.valueChange=new v.vpe,this.change=new v.vpe,this.appearance=qt&&qt.appearance?qt.appearance:"standard"}get name(){return this._name}set name(wt){this._name=wt,this._markButtonsForCheck()}get vertical(){return this._vertical}set vertical(wt){this._vertical=(0,p.Ig)(wt)}get value(){const wt=this._selectionModel?this._selectionModel.selected:[];return this.multiple?wt.map(qt=>qt.value):wt[0]?wt[0].value:void 0}set value(wt){this._setSelectionByValue(wt),this.valueChange.emit(this.value)}get selected(){const wt=this._selectionModel?this._selectionModel.selected:[];return this.multiple?wt:wt[0]||null}get multiple(){return this._multiple}set multiple(wt){this._multiple=(0,p.Ig)(wt),this._markButtonsForCheck()}get disabled(){return this._disabled}set disabled(wt){this._disabled=(0,p.Ig)(wt),this._markButtonsForCheck()}ngOnInit(){this._selectionModel=new x.Ov(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(wt=>wt.checked))}writeValue(wt){this.value=wt,this._changeDetector.markForCheck()}registerOnChange(wt){this._controlValueAccessorChangeFn=wt}registerOnTouched(wt){this._onTouched=wt}setDisabledState(wt){this.disabled=wt}_emitChangeEvent(wt){const qt=new V(wt,this.value);this._controlValueAccessorChangeFn(qt.value),this.change.emit(qt)}_syncButtonToggle(wt,qt,Jt=!1,yt=!1){!this.multiple&&this.selected&&!wt.checked&&(this.selected.checked=!1),this._selectionModel?qt?this._selectionModel.select(wt):this._selectionModel.deselect(wt):yt=!0,yt?Promise.resolve().then(()=>this._updateModelValue(wt,Jt)):this._updateModelValue(wt,Jt)}_isSelected(wt){return this._selectionModel&&this._selectionModel.isSelected(wt)}_isPrechecked(wt){return!(typeof this._rawValue>"u")&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(qt=>null!=wt.value&&qt===wt.value):wt.value===this._rawValue)}_setSelectionByValue(wt){this._rawValue=wt,this._buttonToggles&&(this.multiple&&wt?(Array.isArray(wt),this._clearSelection(),wt.forEach(qt=>this._selectValue(qt))):(this._clearSelection(),this._selectValue(wt)))}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(wt=>wt.checked=!1)}_selectValue(wt){const qt=this._buttonToggles.find(Jt=>null!=Jt.value&&Jt.value===wt);qt&&(qt.checked=!0,this._selectionModel.select(qt))}_updateModelValue(wt,qt){qt&&this._emitChangeEvent(wt),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(wt=>wt._markForCheck())}}return bt.\u0275fac=function(wt){return new(wt||bt)(v.Y36(v.sBO),v.Y36(P,8))},bt.\u0275dir=v.lG2({type:bt,selectors:[["mat-button-toggle-group"]],contentQueries:function(wt,qt,Jt){if(1&wt&&v.Suo(Jt,st,5),2&wt){let yt;v.iGM(yt=v.CRH())&&(qt._buttonToggles=yt)}},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(wt,qt){2&wt&&(v.uIk("aria-disabled",qt.disabled),v.ekj("mat-button-toggle-vertical",qt.vertical)("mat-button-toggle-group-appearance-standard","standard"===qt.appearance))},inputs:{appearance:"appearance",name:"name",vertical:"vertical",value:"value",multiple:"multiple",disabled:"disabled"},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[v._Bn([L,{provide:O,useExisting:bt}])]}),bt})();const tt=(0,T.Kr)(class{});let st=(()=>{class bt extends tt{constructor(wt,qt,Jt,yt,At,xt){super(),this._changeDetectorRef=qt,this._elementRef=Jt,this._focusMonitor=yt,this._checked=!1,this.ariaLabelledby=null,this._disabled=!1,this.change=new v.vpe;const pt=Number(At);this.tabIndex=pt||0===pt?pt:null,this.buttonToggleGroup=wt,this.appearance=xt&&xt.appearance?xt.appearance:"standard"}get buttonId(){return`${this.id}-button`}get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(wt){this._appearance=wt}get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(wt){const qt=(0,p.Ig)(wt);qt!==this._checked&&(this._checked=qt,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(wt){this._disabled=(0,p.Ig)(wt)}ngOnInit(){const wt=this.buttonToggleGroup;this.id=this.id||"mat-button-toggle-"+N++,wt&&(wt._isPrechecked(this)?this.checked=!0:wt._isSelected(this)!==this._checked&&wt._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){const wt=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),wt&&wt._isSelected(this)&&wt._syncButtonToggle(this,!1,!1,!0)}focus(wt){this._buttonElement.nativeElement.focus(wt)}_onButtonClick(){const wt=!!this._isSingleSelector()||!this._checked;wt!==this._checked&&(this._checked=wt,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.change.emit(new V(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 bt.\u0275fac=function(wt){return new(wt||bt)(v.Y36(O,8),v.Y36(v.sBO),v.Y36(v.SBq),v.Y36(u.tE),v.$8M("tabindex"),v.Y36(P,8))},bt.\u0275cmp=v.Xpm({type:bt,selectors:[["mat-button-toggle"]],viewQuery:function(wt,qt){if(1&wt&&v.Gf(U,5),2&wt){let Jt;v.iGM(Jt=v.CRH())&&(qt._buttonElement=Jt.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(wt,qt){1&wt&&v.NdJ("focus",function(){return qt.focus()}),2&wt&&(v.uIk("aria-label",null)("aria-labelledby",null)("id",qt.id)("name",null),v.ekj("mat-button-toggle-standalone",!qt.buttonToggleGroup)("mat-button-toggle-checked",qt.checked)("mat-button-toggle-disabled",qt.disabled)("mat-button-toggle-appearance-standard","standard"===qt.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:[v.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(wt,qt){if(1&wt&&(v.F$t(),v.TgZ(0,"button",0,1),v.NdJ("click",function(){return qt._onButtonClick()}),v.TgZ(2,"span",2),v.Hsn(3),v.qZA()(),v._UZ(4,"span",3)(5,"span",4)),2&wt){const Jt=v.MAs(1);v.Q6J("id",qt.buttonId)("disabled",qt.disabled||null),v.uIk("tabindex",qt.disabled?-1:qt.tabIndex)("aria-pressed",qt.checked)("name",qt._getButtonName())("aria-label",qt.ariaLabel)("aria-labelledby",qt.ariaLabelledby),v.xp6(5),v.Q6J("matRippleTrigger",Jt)("matRippleDisabled",qt.disableRipple||qt.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}),bt})(),ct=(()=>{class bt{}return bt.\u0275fac=function(wt){return new(wt||bt)},bt.\u0275mod=v.oAB({type:bt}),bt.\u0275inj=v.cJS({imports:[T.BQ,T.si,T.BQ]}),bt})()},4859:(X,j,h)=>{"use strict";h.d(j,{lW:()=>O,ot:()=>N});var u=h(94650),p=h(3238),x=h(12687);const v=["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,p.pj)((0,p.Id)((0,p.Kr)(class{constructor(V){this._elementRef=V}})));let O=(()=>{class V extends P{constructor(tt,st,ct){super(tt),this._focusMonitor=st,this._animationMode=ct,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const bt of w)this._hasHostAttributes(bt)&&this._getHostElement().classList.add(bt);tt.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(tt,st){tt?this._focusMonitor.focusVia(this._getHostElement(),tt,st):this._getHostElement().focus(st)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...tt){return tt.some(st=>this._getHostElement().hasAttribute(st))}}return V.\u0275fac=function(tt){return new(tt||V)(u.Y36(u.SBq),u.Y36(x.tE),u.Y36(u.QbO,8))},V.\u0275cmp=u.Xpm({type:V,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(tt,st){if(1&tt&&u.Gf(p.wG,5),2&tt){let ct;u.iGM(ct=u.CRH())&&(st.ripple=ct.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(tt,st){2&tt&&(u.uIk("disabled",st.disabled||null),u.ekj("_mat-animation-noopable","NoopAnimations"===st._animationMode)("mat-button-disabled",st.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[u.qOj],attrs:v,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(tt,st){1&tt&&(u.F$t(),u.TgZ(0,"span",0),u.Hsn(1),u.qZA(),u._UZ(2,"span",1)(3,"span",2)),2&tt&&(u.xp6(2),u.ekj("mat-button-ripple-round",st.isRoundButton||st.isIconButton),u.Q6J("matRippleDisabled",st._isRippleDisabled())("matRippleCentered",st.isIconButton)("matRippleTrigger",st._getHostElement()))},dependencies:[p.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}),V})(),N=(()=>{class V{}return V.\u0275fac=function(tt){return new(tt||V)},V.\u0275mod=u.oAB({type:V}),V.\u0275inj=u.cJS({imports:[p.si,p.BQ,p.BQ]}),V})()},73546:(X,j,h)=>{"use strict";h.d(j,{$j:()=>L,C1:()=>Jt,G2:()=>W,QW:()=>yt,a8:()=>wt,dk:()=>qt,dn:()=>P,hq:()=>N,n5:()=>O,nc:()=>st});var u=h(94650),p=h(3238);const x=["*",[["mat-card-footer"]]],v=["*","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 At{}return At.\u0275fac=function(pt){return new(pt||At)},At.\u0275dir=u.lG2({type:At,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),At})(),O=(()=>{class At{}return At.\u0275fac=function(pt){return new(pt||At)},At.\u0275dir=u.lG2({type:At,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),At})(),L=(()=>{class At{}return At.\u0275fac=function(pt){return new(pt||At)},At.\u0275dir=u.lG2({type:At,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),At})(),N=(()=>{class At{constructor(){this.align="start"}}return At.\u0275fac=function(pt){return new(pt||At)},At.\u0275dir=u.lG2({type:At,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(pt,Ot){2&pt&&u.ekj("mat-card-actions-align-end","end"===Ot.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),At})(),W=(()=>{class At{}return At.\u0275fac=function(pt){return new(pt||At)},At.\u0275dir=u.lG2({type:At,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-card-image"]}),At})(),st=(()=>{class At{}return At.\u0275fac=function(pt){return new(pt||At)},At.\u0275dir=u.lG2({type:At,selectors:[["","mat-card-md-image",""],["","matCardImageMedium",""]],hostAttrs:[1,"mat-card-md-image"]}),At})(),wt=(()=>{class At{constructor(pt){this._animationMode=pt}}return At.\u0275fac=function(pt){return new(pt||At)(u.Y36(u.QbO,8))},At.\u0275cmp=u.Xpm({type:At,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(pt,Ot){2&pt&&u.ekj("_mat-animation-noopable","NoopAnimations"===Ot._animationMode)},exportAs:["matCard"],ngContentSelectors:v,decls:2,vars:0,template:function(pt,Ot){1&pt&&(u.F$t(x),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}),At})(),qt=(()=>{class At{}return At.\u0275fac=function(pt){return new(pt||At)},At.\u0275cmp=u.Xpm({type:At,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:T,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(pt,Ot){1&pt&&(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}),At})(),Jt=(()=>{class At{}return At.\u0275fac=function(pt){return new(pt||At)},At.\u0275cmp=u.Xpm({type:At,selectors:[["mat-card-title-group"]],hostAttrs:[1,"mat-card-title-group"],ngContentSelectors:w,decls:4,vars:0,template:function(pt,Ot){1&pt&&(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}),At})(),yt=(()=>{class At{}return At.\u0275fac=function(pt){return new(pt||At)},At.\u0275mod=u.oAB({type:At}),At.\u0275inj=u.cJS({imports:[p.BQ,p.BQ]}),At})()},56709:(X,j,h)=>{"use strict";h.d(j,{e_:()=>qt,oG:()=>Dt,p9:()=>yt});var u=h(12687),p=h(21281),x=h(94650),v=h(24006),t=h(3238),T=h(49643);const U=["input"],w=["label"],P=function(At){return{enterDuration:At}},O=["*"],L=new x.OlP("mat-checkbox-default-options",{providedIn:"root",factory:N});function N(){return{color:"accent",clickAction:"check-indeterminate"}}let V=0;const W=N(),tt={provide:v.JU,useExisting:(0,x.Gpc)(()=>Dt),multi:!0};class st{}const ct=(0,t.sb)((0,t.pj)((0,t.Kr)((0,t.Id)(class{constructor(At){this._elementRef=At}}))));let bt=(()=>{class At extends ct{constructor(pt,Ot,Bt,St,ce,Vt,ve){super(Ot),this._changeDetectorRef=Bt,this._ngZone=St,this._animationMode=Vt,this._options=ve,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new x.vpe,this.indeterminateChange=new x.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||W,this.color=this.defaultColor=this._options.color||W.color,this.tabIndex=parseInt(ce)||0,this.id=this._uniqueId=`${pt}${++V}`}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(pt){this._required=(0,p.Ig)(pt)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(pt){const Ot=(0,p.Ig)(pt);Ot!=this.checked&&(this._checked=Ot,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(pt){const Ot=(0,p.Ig)(pt);Ot!==this.disabled&&(this._disabled=Ot,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(pt){const Ot=pt!=this._indeterminate;this._indeterminate=(0,p.Ig)(pt),Ot&&(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(pt){this.checked=!!pt}registerOnChange(pt){this._controlValueAccessorChangeFn=pt}registerOnTouched(pt){this._onTouched=pt}setDisabledState(pt){this.disabled=pt}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(pt){let Ot=this._currentCheckState,Bt=this._getAnimationTargetElement();if(Ot!==pt&&Bt&&(this._currentAnimationClass&&Bt.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(Ot,pt),this._currentCheckState=pt,this._currentAnimationClass.length>0)){Bt.classList.add(this._currentAnimationClass);const St=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{Bt.classList.remove(St)},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 pt=this._options?.clickAction;this.disabled||"noop"===pt?!this.disabled&&"noop"===pt&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==pt&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(pt){pt.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(pt,Ot){if("NoopAnimations"===this._animationMode)return"";switch(pt){case 0:if(1===Ot)return this._animationClasses.uncheckedToChecked;if(3==Ot)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===Ot?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===Ot?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===Ot?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(pt){const Ot=this._inputElement;Ot&&(Ot.nativeElement.indeterminate=pt)}}return At.\u0275fac=function(pt){x.$Z()},At.\u0275dir=x.lG2({type:At,viewQuery:function(pt,Ot){if(1&pt&&(x.Gf(U,5),x.Gf(w,5),x.Gf(t.wG,5)),2&pt){let Bt;x.iGM(Bt=x.CRH())&&(Ot._inputElement=Bt.first),x.iGM(Bt=x.CRH())&&(Ot._labelElement=Bt.first),x.iGM(Bt=x.CRH())&&(Ot.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:[x.qOj]}),At})(),Dt=(()=>{class At extends bt{constructor(pt,Ot,Bt,St,ce,Vt,ve){super("mat-checkbox-",pt,Ot,St,ce,Vt,ve),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(pt){const Ot=new st;return Ot.source=this,Ot.checked=pt,Ot}_getAnimationTargetElement(){return this._elementRef.nativeElement}ngAfterViewInit(){super.ngAfterViewInit(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(pt=>{pt||this._onBlur()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onInputClick(pt){pt.stopPropagation(),super._handleInputClick()}focus(pt,Ot){pt?this._focusMonitor.focusVia(this._inputElement,pt,Ot):this._inputElement.nativeElement.focus(Ot)}}return At.\u0275fac=function(pt){return new(pt||At)(x.Y36(x.SBq),x.Y36(x.sBO),x.Y36(u.tE),x.Y36(x.R0b),x.$8M("tabindex"),x.Y36(x.QbO,8),x.Y36(L,8))},At.\u0275cmp=x.Xpm({type:At,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(pt,Ot){2&pt&&(x.Ikx("id",Ot.id),x.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),x.ekj("mat-checkbox-indeterminate",Ot.indeterminate)("mat-checkbox-checked",Ot.checked)("mat-checkbox-disabled",Ot.disabled)("mat-checkbox-label-before","before"==Ot.labelPosition)("_mat-animation-noopable","NoopAnimations"===Ot._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[x._Bn([tt]),x.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(pt,Ot){if(1&pt&&(x.F$t(),x.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),x.NdJ("change",function(St){return Ot._onInteractionEvent(St)})("click",function(St){return Ot._onInputClick(St)}),x.qZA(),x.TgZ(5,"span",5),x._UZ(6,"span",6),x.qZA(),x._UZ(7,"span",7),x.TgZ(8,"span",8),x.O4$(),x.TgZ(9,"svg",9),x._UZ(10,"path",10),x.qZA(),x.kcU(),x._UZ(11,"span",11),x.qZA()(),x.TgZ(12,"span",12,13),x.NdJ("cdkObserveContent",function(){return Ot._onLabelTextChange()}),x.TgZ(14,"span",14),x._uU(15,"\xa0"),x.qZA(),x.Hsn(16),x.qZA()()),2&pt){const Bt=x.MAs(1),St=x.MAs(13);x.uIk("for",Ot.inputId),x.xp6(2),x.ekj("mat-checkbox-inner-container-no-side-margin",!St.textContent||!St.textContent.trim()),x.xp6(1),x.Q6J("id",Ot.inputId)("required",Ot.required)("checked",Ot.checked)("disabled",Ot.disabled)("tabIndex",Ot.tabIndex),x.uIk("value",Ot.value)("name",Ot.name)("aria-label",Ot.ariaLabel||null)("aria-labelledby",Ot.ariaLabelledby)("aria-checked",Ot._getAriaChecked())("aria-describedby",Ot.ariaDescribedby),x.xp6(2),x.Q6J("matRippleTrigger",Bt)("matRippleDisabled",Ot._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",x.VKq(19,P,"NoopAnimations"===Ot._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}),At})();const wt={provide:v.Cf,useExisting:(0,x.Gpc)(()=>qt),multi:!0};let qt=(()=>{class At extends v.Zs{}return At.\u0275fac=function(){let xt;return function(Ot){return(xt||(xt=x.n5z(At)))(Ot||At)}}(),At.\u0275dir=x.lG2({type:At,selectors:[["mat-checkbox","required","","formControlName",""],["mat-checkbox","required","","formControl",""],["mat-checkbox","required","","ngModel",""]],features:[x._Bn([wt]),x.qOj]}),At})(),Jt=(()=>{class At{}return At.\u0275fac=function(pt){return new(pt||At)},At.\u0275mod=x.oAB({type:At}),At.\u0275inj=x.cJS({}),At})(),yt=(()=>{class At{}return At.\u0275fac=function(pt){return new(pt||At)},At.\u0275mod=x.oAB({type:At}),At.\u0275inj=x.cJS({imports:[t.si,t.BQ,T.Q8,Jt,t.BQ,Jt]}),At})()},3238:(X,j,h)=>{"use strict";h.d(j,{yN:()=>bt,mZ:()=>Dt,_A:()=>Le,rD:()=>oe,sG:()=>Fe,Ad:()=>ve,K7:()=>qn,HF:()=>le,Y2:()=>te,BQ:()=>Jt,X2:()=>Me,uc:()=>xe,XK:()=>re,ey:()=>Yn,Ng:()=>gn,rN:()=>bo,nP:()=>Tt,us:()=>Rt,wG:()=>it,si:()=>K,IR:()=>oi,CB:()=>Vn,jH:()=>Je,pj:()=>Ot,Kr:()=>Bt,Id:()=>pt,FD:()=>ce,dB:()=>Vt,sb:()=>St,E0:()=>en});var u=h(94650),p=h(12687),x=h(40445),t=h(36895),T=h(83353),U=h(21281),w=h(56498),P=h(8929),O=h(1059),L=h(29521);function W(Ye,Ee){if(1&Ye&&u._UZ(0,"mat-pseudo-checkbox",4),2&Ye){const Xe=u.oxw();u.Q6J("state",Xe.selected?"checked":"unchecked")("disabled",Xe.disabled)}}function tt(Ye,Ee){if(1&Ye&&(u.TgZ(0,"span",5),u._uU(1),u.qZA()),2&Ye){const Xe=u.oxw();u.xp6(1),u.hij("(",Xe.group.label,")")}}const st=["*"];let bt=(()=>{class Ye{}return Ye.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",Ye.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",Ye.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",Ye.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",Ye})(),Dt=(()=>{class Ye{}return Ye.COMPLEX="375ms",Ye.ENTERING="225ms",Ye.EXITING="195ms",Ye})();const qt=new u.OlP("mat-sanity-checks",{providedIn:"root",factory:function wt(){return!0}});let Jt=(()=>{class Ye{constructor(Xe,se,ze){this._sanityChecks=se,this._document=ze,this._hasDoneGlobalChecks=!1,Xe._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(Xe){return!(0,T.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[Xe])}}return Ye.\u0275fac=function(Xe){return new(Xe||Ye)(u.LFG(p.qm),u.LFG(qt,8),u.LFG(t.K0))},Ye.\u0275mod=u.oAB({type:Ye}),Ye.\u0275inj=u.cJS({imports:[x.vT,x.vT]}),Ye})();function pt(Ye){return class extends Ye{constructor(...Ee){super(...Ee),this._disabled=!1}get disabled(){return this._disabled}set disabled(Ee){this._disabled=(0,U.Ig)(Ee)}}}function Ot(Ye,Ee){return class extends Ye{constructor(...Xe){super(...Xe),this.defaultColor=Ee,this.color=Ee}get color(){return this._color}set color(Xe){const se=Xe||this.defaultColor;se!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),se&&this._elementRef.nativeElement.classList.add(`mat-${se}`),this._color=se)}}}function Bt(Ye){return class extends Ye{constructor(...Ee){super(...Ee),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(Ee){this._disableRipple=(0,U.Ig)(Ee)}}}function St(Ye,Ee=0){return class extends Ye{constructor(...Xe){super(...Xe),this._tabIndex=Ee,this.defaultTabIndex=Ee}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(Xe){this._tabIndex=null!=Xe?(0,U.su)(Xe):this.defaultTabIndex}}}function ce(Ye){return class extends Ye{constructor(...Ee){super(...Ee),this.errorState=!1}updateErrorState(){const Ee=this.errorState,ie=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);ie!==Ee&&(this.errorState=ie,this.stateChanges.next())}}}function Vt(Ye){return class extends Ye{constructor(...Ee){super(...Ee),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new w.y(Xe=>{this._isInitialized?this._notifySubscriber(Xe):this._pendingSubscribers.push(Xe)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(Ee){Ee.next(),Ee.complete()}}}const ve=new u.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function fe(){return(0,u.f3M)(u.soG)}});class Le{constructor(){this._localeChanges=new P.xQ,this.localeChanges=this._localeChanges}getValidDateOrNull(Ee){return this.isDateInstance(Ee)&&this.isValid(Ee)?Ee:null}deserialize(Ee){return null==Ee||this.isDateInstance(Ee)&&this.isValid(Ee)?Ee:this.invalid()}setLocale(Ee){this.locale=Ee,this._localeChanges.next()}compareDate(Ee,Xe){return this.getYear(Ee)-this.getYear(Xe)||this.getMonth(Ee)-this.getMonth(Xe)||this.getDate(Ee)-this.getDate(Xe)}sameDate(Ee,Xe){if(Ee&&Xe){let se=this.isValid(Ee),ze=this.isValid(Xe);return se&&ze?!this.compareDate(Ee,Xe):se==ze}return Ee==Xe}clampDate(Ee,Xe,se){return Xe&&this.compareDate(Ee,Xe)<0?Xe:se&&this.compareDate(Ee,se)>0?se:Ee}}const Fe=new u.OlP("mat-date-formats"),Ge=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Gt(Ye,Ee){const Xe=Array(Ye);for(let se=0;se{class Ye extends Le{constructor(Xe,se){super(),this.useUtcForDisplay=!1,super.setLocale(Xe)}getYear(Xe){return Xe.getFullYear()}getMonth(Xe){return Xe.getMonth()}getDate(Xe){return Xe.getDate()}getDayOfWeek(Xe){return Xe.getDay()}getMonthNames(Xe){const se=new Intl.DateTimeFormat(this.locale,{month:Xe,timeZone:"utc"});return Gt(12,ze=>this._format(se,new Date(2017,ze,1)))}getDateNames(){const Xe=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Gt(31,se=>this._format(Xe,new Date(2017,0,se+1)))}getDayOfWeekNames(Xe){const se=new Intl.DateTimeFormat(this.locale,{weekday:Xe,timeZone:"utc"});return Gt(7,ze=>this._format(se,new Date(2017,0,ze+1)))}getYearName(Xe){const se=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(se,Xe)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(Xe){return this.getDate(this._createDateWithOverflow(this.getYear(Xe),this.getMonth(Xe)+1,0))}clone(Xe){return new Date(Xe.getTime())}createDate(Xe,se,ze){let ie=this._createDateWithOverflow(Xe,se,ze);return ie.getMonth(),ie}today(){return new Date}parse(Xe,se){return"number"==typeof Xe?new Date(Xe):Xe?new Date(Date.parse(Xe)):null}format(Xe,se){if(!this.isValid(Xe))throw Error("NativeDateAdapter: Cannot format invalid date.");const ze=new Intl.DateTimeFormat(this.locale,{...se,timeZone:"utc"});return this._format(ze,Xe)}addCalendarYears(Xe,se){return this.addCalendarMonths(Xe,12*se)}addCalendarMonths(Xe,se){let ze=this._createDateWithOverflow(this.getYear(Xe),this.getMonth(Xe)+se,this.getDate(Xe));return this.getMonth(ze)!=((this.getMonth(Xe)+se)%12+12)%12&&(ze=this._createDateWithOverflow(this.getYear(ze),this.getMonth(ze),0)),ze}addCalendarDays(Xe,se){return this._createDateWithOverflow(this.getYear(Xe),this.getMonth(Xe),this.getDate(Xe)+se)}toIso8601(Xe){return[Xe.getUTCFullYear(),this._2digit(Xe.getUTCMonth()+1),this._2digit(Xe.getUTCDate())].join("-")}deserialize(Xe){if("string"==typeof Xe){if(!Xe)return null;if(Ge.test(Xe)){let se=new Date(Xe);if(this.isValid(se))return se}}return super.deserialize(Xe)}isDateInstance(Xe){return Xe instanceof Date}isValid(Xe){return!isNaN(Xe.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(Xe,se,ze){const ie=new Date;return ie.setFullYear(Xe,se,ze),ie.setHours(0,0,0,0),ie}_2digit(Xe){return("00"+Xe).slice(-2)}_format(Xe,se){const ze=new Date;return ze.setUTCFullYear(se.getFullYear(),se.getMonth(),se.getDate()),ze.setUTCHours(se.getHours(),se.getMinutes(),se.getSeconds(),se.getMilliseconds()),Xe.format(ze)}}return Ye.\u0275fac=function(Xe){return new(Xe||Ye)(u.LFG(ve,8),u.LFG(T.t4))},Ye.\u0275prov=u.Yz7({token:Ye,factory:Ye.\u0275fac}),Ye})();const ne={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 jt=(()=>{class Ye{}return Ye.\u0275fac=function(Xe){return new(Xe||Ye)},Ye.\u0275mod=u.oAB({type:Ye}),Ye.\u0275inj=u.cJS({providers:[{provide:Le,useClass:Te}]}),Ye})(),re=(()=>{class Ye{}return Ye.\u0275fac=function(Xe){return new(Xe||Ye)},Ye.\u0275mod=u.oAB({type:Ye}),Ye.\u0275inj=u.cJS({providers:[{provide:Fe,useValue:ne}],imports:[jt]}),Ye})(),oe=(()=>{class Ye{isErrorState(Xe,se){return!!(Xe&&Xe.invalid&&(Xe.touched||se&&se.submitted))}}return Ye.\u0275fac=function(Xe){return new(Xe||Ye)},Ye.\u0275prov=u.Yz7({token:Ye,factory:Ye.\u0275fac,providedIn:"root"}),Ye})(),Me=(()=>{class Ye{}return Ye.\u0275fac=function(Xe){return new(Xe||Ye)},Ye.\u0275dir=u.lG2({type:Ye,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),Ye})();function en(Ye,Ee,Xe="mat"){Ye.changes.pipe((0,O.O)(Ye)).subscribe(({length:se})=>{_n(Ee,`${Xe}-2-line`,!1),_n(Ee,`${Xe}-3-line`,!1),_n(Ee,`${Xe}-multi-line`,!1),2===se||3===se?_n(Ee,`${Xe}-${se}-line`,!0):se>3&&_n(Ee,`${Xe}-multi-line`,!0)})}function _n(Ye,Ee,Xe){Ye.nativeElement.classList.toggle(Ee,Xe)}let xe=(()=>{class Ye{}return Ye.\u0275fac=function(Xe){return new(Xe||Ye)},Ye.\u0275mod=u.oAB({type:Ye}),Ye.\u0275inj=u.cJS({imports:[Jt,Jt]}),Ye})();class vn{constructor(Ee,Xe,se,ze=!1){this._renderer=Ee,this.element=Xe,this.config=se,this._animationForciblyDisabledThroughCss=ze,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const ke={enterDuration:225,exitDuration:150},Dn=(0,T.i$)({passive:!0}),ii=["mousedown","touchstart"],_i=["mouseup","mouseleave","touchend","touchcancel"];class oi{constructor(Ee,Xe,se,ze){this._target=Ee,this._ngZone=Xe,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,ze.isBrowser&&(this._containerElement=(0,U.fI)(se))}fadeInRipple(Ee,Xe,se={}){const ze=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),ie={...ke,...se.animation};se.centered&&(Ee=ze.left+ze.width/2,Xe=ze.top+ze.height/2);const rn=se.radius||function Qe(Ye,Ee,Xe){const se=Math.max(Math.abs(Ye-Xe.left),Math.abs(Ye-Xe.right)),ze=Math.max(Math.abs(Ee-Xe.top),Math.abs(Ee-Xe.bottom));return Math.sqrt(se*se+ze*ze)}(Ee,Xe,ze),fn=Ee-ze.left,sn=Xe-ze.top,ge=ie.enterDuration,Nt=document.createElement("div");Nt.classList.add("mat-ripple-element"),Nt.style.left=fn-rn+"px",Nt.style.top=sn-rn+"px",Nt.style.height=2*rn+"px",Nt.style.width=2*rn+"px",null!=se.color&&(Nt.style.backgroundColor=se.color),Nt.style.transitionDuration=`${ge}ms`,this._containerElement.appendChild(Nt);const Se=window.getComputedStyle(Nt),Ae=Se.transitionDuration,Ie="none"===Se.transitionProperty||"0s"===Ae||"0s, 0s"===Ae,Sn=new vn(this,Nt,se,Ie);Nt.style.transform="scale3d(1, 1, 1)",Sn.state=0,se.persistent||(this._mostRecentTransientRipple=Sn);let Ei=null;return!Ie&&(ge||ie.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const Vi=()=>this._finishRippleTransition(Sn),cn=()=>this._destroyRipple(Sn);Nt.addEventListener("transitionend",Vi),Nt.addEventListener("transitioncancel",cn),Ei={onTransitionEnd:Vi,onTransitionCancel:cn}}),this._activeRipples.set(Sn,Ei),(Ie||!ge)&&this._finishRippleTransition(Sn),Sn}fadeOutRipple(Ee){if(2===Ee.state||3===Ee.state)return;const Xe=Ee.element,se={...ke,...Ee.config.animation};Xe.style.transitionDuration=`${se.exitDuration}ms`,Xe.style.opacity="0",Ee.state=2,(Ee._animationForciblyDisabledThroughCss||!se.exitDuration)&&this._finishRippleTransition(Ee)}fadeOutAll(){this._getActiveRipples().forEach(Ee=>Ee.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(Ee=>{Ee.config.persistent||Ee.fadeOut()})}setupTriggerEvents(Ee){const Xe=(0,U.fI)(Ee);!Xe||Xe===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=Xe,this._registerEvents(ii))}handleEvent(Ee){"mousedown"===Ee.type?this._onMousedown(Ee):"touchstart"===Ee.type?this._onTouchStart(Ee):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(_i),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(Ee){0===Ee.state?this._startFadeOutTransition(Ee):2===Ee.state&&this._destroyRipple(Ee)}_startFadeOutTransition(Ee){const Xe=Ee===this._mostRecentTransientRipple,{persistent:se}=Ee.config;Ee.state=1,!se&&(!Xe||!this._isPointerDown)&&Ee.fadeOut()}_destroyRipple(Ee){const Xe=this._activeRipples.get(Ee)??null;this._activeRipples.delete(Ee),this._activeRipples.size||(this._containerRect=null),Ee===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),Ee.state=3,null!==Xe&&(Ee.element.removeEventListener("transitionend",Xe.onTransitionEnd),Ee.element.removeEventListener("transitioncancel",Xe.onTransitionCancel)),Ee.element.remove()}_onMousedown(Ee){const Xe=(0,p.X6)(Ee),se=this._lastTouchStartEvent&&Date.now(){!Ee.config.persistent&&(1===Ee.state||Ee.config.terminateOnPointerUp&&0===Ee.state)&&Ee.fadeOut()}))}_registerEvents(Ee){this._ngZone.runOutsideAngular(()=>{Ee.forEach(Xe=>{this._triggerElement.addEventListener(Xe,this,Dn)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(ii.forEach(Ee=>{this._triggerElement.removeEventListener(Ee,this,Dn)}),this._pointerUpEventsRegistered&&_i.forEach(Ee=>{this._triggerElement.removeEventListener(Ee,this,Dn)}))}}const te=new u.OlP("mat-ripple-global-options");let it=(()=>{class Ye{constructor(Xe,se,ze,ie,rn){this._elementRef=Xe,this._animationMode=rn,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=ie||{},this._rippleRenderer=new oi(this,se,Xe,ze)}get disabled(){return this._disabled}set disabled(Xe){Xe&&this.fadeOutAllNonPersistent(),this._disabled=Xe,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(Xe){this._trigger=Xe,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(Xe,se=0,ze){return"number"==typeof Xe?this._rippleRenderer.fadeInRipple(Xe,se,{...this.rippleConfig,...ze}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...Xe})}}return Ye.\u0275fac=function(Xe){return new(Xe||Ye)(u.Y36(u.SBq),u.Y36(u.R0b),u.Y36(T.t4),u.Y36(te,8),u.Y36(u.QbO,8))},Ye.\u0275dir=u.lG2({type:Ye,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(Xe,se){2&Xe&&u.ekj("mat-ripple-unbounded",se.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"]}),Ye})(),K=(()=>{class Ye{}return Ye.\u0275fac=function(Xe){return new(Xe||Ye)},Ye.\u0275mod=u.oAB({type:Ye}),Ye.\u0275inj=u.cJS({imports:[Jt,Jt]}),Ye})(),Tt=(()=>{class Ye{constructor(Xe){this._animationMode=Xe,this.state="unchecked",this.disabled=!1}}return Ye.\u0275fac=function(Xe){return new(Xe||Ye)(u.Y36(u.QbO,8))},Ye.\u0275cmp=u.Xpm({type:Ye,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(Xe,se){2&Xe&&u.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===se.state)("mat-pseudo-checkbox-checked","checked"===se.state)("mat-pseudo-checkbox-disabled",se.disabled)("_mat-animation-noopable","NoopAnimations"===se._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(Xe,se){},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}),Ye})(),Rt=(()=>{class Ye{}return Ye.\u0275fac=function(Xe){return new(Xe||Ye)},Ye.\u0275mod=u.oAB({type:Ye}),Ye.\u0275inj=u.cJS({imports:[Jt]}),Ye})();const le=new u.OlP("MAT_OPTION_PARENT_COMPONENT"),qn=new u.OlP("MatOptgroup");let Di=0;class bo{constructor(Ee,Xe=!1){this.source=Ee,this.isUserInput=Xe}}let hi=(()=>{class Ye{constructor(Xe,se,ze,ie){this._element=Xe,this._changeDetectorRef=se,this._parent=ze,this.group=ie,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(Xe){this._disabled=(0,U.Ig)(Xe)}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(Xe,se){const ze=this._getHostElement();"function"==typeof ze.focus&&ze.focus(se)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(Xe){(Xe.keyCode===L.K5||Xe.keyCode===L.L_)&&!(0,L.Vb)(Xe)&&(this._selectViaInteraction(),Xe.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 Xe=this.viewValue;Xe!==this._mostRecentViewValue&&(this._mostRecentViewValue=Xe,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(Xe=!1){this.onSelectionChange.emit(new bo(this,Xe))}}return Ye.\u0275fac=function(Xe){u.$Z()},Ye.\u0275dir=u.lG2({type:Ye,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),Ye})(),Yn=(()=>{class Ye extends hi{constructor(Xe,se,ze,ie){super(Xe,se,ze,ie)}}return Ye.\u0275fac=function(Xe){return new(Xe||Ye)(u.Y36(u.SBq),u.Y36(u.sBO),u.Y36(le,8),u.Y36(qn,8))},Ye.\u0275cmp=u.Xpm({type:Ye,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(Xe,se){1&Xe&&u.NdJ("click",function(){return se._selectViaInteraction()})("keydown",function(ie){return se._handleKeydown(ie)}),2&Xe&&(u.Ikx("id",se.id),u.uIk("tabindex",se._getTabIndex())("aria-selected",se._getAriaSelected())("aria-disabled",se.disabled.toString()),u.ekj("mat-selected",se.selected)("mat-option-multiple",se.multiple)("mat-active",se.active)("mat-option-disabled",se.disabled))},exportAs:["matOption"],features:[u.qOj],ngContentSelectors:st,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(Xe,se){1&Xe&&(u.F$t(),u.YNc(0,W,1,2,"mat-pseudo-checkbox",0),u.TgZ(1,"span",1),u.Hsn(2),u.qZA(),u.YNc(3,tt,2,1,"span",2),u._UZ(4,"div",3)),2&Xe&&(u.Q6J("ngIf",se.multiple),u.xp6(3),u.Q6J("ngIf",se.group&&se.group._inert),u.xp6(1),u.Q6J("matRippleTrigger",se._getHostElement())("matRippleDisabled",se.disabled||se.disableRipple))},dependencies:[it,t.O5,Tt],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}),Ye})();function Vn(Ye,Ee,Xe){if(Xe.length){let se=Ee.toArray(),ze=Xe.toArray(),ie=0;for(let rn=0;rnXe+se?Math.max(0,Ye-se+Ee):Xe}let gn=(()=>{class Ye{}return Ye.\u0275fac=function(Xe){return new(Xe||Ye)},Ye.\u0275mod=u.oAB({type:Ye}),Ye.\u0275inj=u.cJS({imports:[K,t.ez,Jt,Rt]}),Ye})()},99602:(X,j,h)=>{"use strict";h.d(j,{C0:()=>Dn,E2:()=>Xe,FA:()=>Re,Lv:()=>rn,Mq:()=>Nt,S8:()=>Me,Uu:()=>ze,hl:()=>Ei,nW:()=>cn});var u=h(12687),p=h(98184),x=h(84080),v=h(36895),t=h(94650),T=h(4859),U=h(67376),w=h(3238),P=h(8929),O=h(42654),L=h(36787),N=h(21086),V=h(29521),W=h(40445),tt=h(72986),st=h(1059),ct=h(92198),bt=h(21281),Dt=h(83353),wt=h(37340),qt=h(24006),Jt=h(59549),yt=h(284);const At=["mat-calendar-body",""];function xt(we,on){if(1&we&&(t.TgZ(0,"tr",2)(1,"td",3),t._uU(2),t.qZA()()),2&we){const Q=t.oxw();t.xp6(1),t.Udp("padding-top",Q._cellPadding)("padding-bottom",Q._cellPadding),t.uIk("colspan",Q.numCols),t.xp6(1),t.hij(" ",Q.label," ")}}function pt(we,on){if(1&we&&(t.TgZ(0,"td",3),t._uU(1),t.qZA()),2&we){const Q=t.oxw(2);t.Udp("padding-top",Q._cellPadding)("padding-bottom",Q._cellPadding),t.uIk("colspan",Q._firstRowOffset),t.xp6(1),t.hij(" ",Q._firstRowOffset>=Q.labelMinRequiredCells?Q.label:""," ")}}function Ot(we,on){if(1&we){const Q=t.EpF();t.TgZ(0,"td",7)(1,"button",8),t.NdJ("click",function(J){const He=t.CHM(Q).$implicit,zn=t.oxw(2);return t.KtG(zn._cellClicked(He,J))})("focus",function(J){const He=t.CHM(Q).$implicit,zn=t.oxw(2);return t.KtG(zn._emitActiveDateChange(He,J))}),t.TgZ(2,"div",9),t._uU(3),t.qZA(),t._UZ(4,"div",10),t.qZA()()}if(2&we){const Q=on.$implicit,Et=on.index,J=t.oxw().index,Lt=t.oxw();t.Udp("width",Lt._cellWidth)("padding-top",Lt._cellPadding)("padding-bottom",Lt._cellPadding),t.uIk("data-mat-row",J)("data-mat-col",Et),t.xp6(1),t.ekj("mat-calendar-body-disabled",!Q.enabled)("mat-calendar-body-active",Lt._isActiveCell(J,Et))("mat-calendar-body-range-start",Lt._isRangeStart(Q.compareValue))("mat-calendar-body-range-end",Lt._isRangeEnd(Q.compareValue))("mat-calendar-body-in-range",Lt._isInRange(Q.compareValue))("mat-calendar-body-comparison-bridge-start",Lt._isComparisonBridgeStart(Q.compareValue,J,Et))("mat-calendar-body-comparison-bridge-end",Lt._isComparisonBridgeEnd(Q.compareValue,J,Et))("mat-calendar-body-comparison-start",Lt._isComparisonStart(Q.compareValue))("mat-calendar-body-comparison-end",Lt._isComparisonEnd(Q.compareValue))("mat-calendar-body-in-comparison-range",Lt._isInComparisonRange(Q.compareValue))("mat-calendar-body-preview-start",Lt._isPreviewStart(Q.compareValue))("mat-calendar-body-preview-end",Lt._isPreviewEnd(Q.compareValue))("mat-calendar-body-in-preview",Lt._isInPreview(Q.compareValue)),t.Q6J("ngClass",Q.cssClasses)("tabindex",Lt._isActiveCell(J,Et)?0:-1),t.uIk("aria-label",Q.ariaLabel)("aria-disabled",!Q.enabled||null)("aria-pressed",Lt._isSelected(Q.compareValue))("aria-current",Lt.todayValue===Q.compareValue?"date":null),t.xp6(1),t.ekj("mat-calendar-body-selected",Lt._isSelected(Q.compareValue))("mat-calendar-body-comparison-identical",Lt._isComparisonIdentical(Q.compareValue))("mat-calendar-body-today",Lt.todayValue===Q.compareValue),t.xp6(1),t.hij(" ",Q.displayValue," ")}}function Bt(we,on){if(1&we&&(t.TgZ(0,"tr",4),t.YNc(1,pt,2,6,"td",5),t.YNc(2,Ot,5,47,"td",6),t.qZA()),2&we){const Q=on.$implicit,Et=on.index,J=t.oxw();t.xp6(1),t.Q6J("ngIf",0===Et&&J._firstRowOffset),t.xp6(1),t.Q6J("ngForOf",Q)}}function St(we,on){if(1&we&&(t.TgZ(0,"th",5)(1,"span",6),t._uU(2),t.qZA(),t.TgZ(3,"span",7),t._uU(4),t.qZA()()),2&we){const Q=on.$implicit;t.xp6(2),t.Oqu(Q.long),t.xp6(2),t.Oqu(Q.narrow)}}const ce=["*"];function Vt(we,on){}function ve(we,on){if(1&we){const Q=t.EpF();t.TgZ(0,"mat-month-view",5),t.NdJ("activeDateChange",function(J){t.CHM(Q);const Lt=t.oxw();return t.KtG(Lt.activeDate=J)})("_userSelection",function(J){t.CHM(Q);const Lt=t.oxw();return t.KtG(Lt._dateSelected(J))}),t.qZA()}if(2&we){const Q=t.oxw();t.Q6J("activeDate",Q.activeDate)("selected",Q.selected)("dateFilter",Q.dateFilter)("maxDate",Q.maxDate)("minDate",Q.minDate)("dateClass",Q.dateClass)("comparisonStart",Q.comparisonStart)("comparisonEnd",Q.comparisonEnd)}}function fe(we,on){if(1&we){const Q=t.EpF();t.TgZ(0,"mat-year-view",6),t.NdJ("activeDateChange",function(J){t.CHM(Q);const Lt=t.oxw();return t.KtG(Lt.activeDate=J)})("monthSelected",function(J){t.CHM(Q);const Lt=t.oxw();return t.KtG(Lt._monthSelectedInYearView(J))})("selectedChange",function(J){t.CHM(Q);const Lt=t.oxw();return t.KtG(Lt._goToDateInView(J,"month"))}),t.qZA()}if(2&we){const Q=t.oxw();t.Q6J("activeDate",Q.activeDate)("selected",Q.selected)("dateFilter",Q.dateFilter)("maxDate",Q.maxDate)("minDate",Q.minDate)("dateClass",Q.dateClass)}}function Le(we,on){if(1&we){const Q=t.EpF();t.TgZ(0,"mat-multi-year-view",7),t.NdJ("activeDateChange",function(J){t.CHM(Q);const Lt=t.oxw();return t.KtG(Lt.activeDate=J)})("yearSelected",function(J){t.CHM(Q);const Lt=t.oxw();return t.KtG(Lt._yearSelectedInMultiYearView(J))})("selectedChange",function(J){t.CHM(Q);const Lt=t.oxw();return t.KtG(Lt._goToDateInView(J,"year"))}),t.qZA()}if(2&we){const Q=t.oxw();t.Q6J("activeDate",Q.activeDate)("selected",Q.selected)("dateFilter",Q.dateFilter)("maxDate",Q.maxDate)("minDate",Q.minDate)("dateClass",Q.dateClass)}}function Fe(we,on){}const Ge=["button"];function Gt(we,on){1&we&&(t.O4$(),t.TgZ(0,"svg",3),t._UZ(1,"path",4),t.qZA())}const Te=[[["","matDatepickerToggleIcon",""]]],ne=["[matDatepickerToggleIcon]"];let Me=(()=>{class we{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(Q,Et){return`${Q} \u2013 ${Et}`}formatYearRangeLabel(Q,Et){return`${Q} to ${Et}`}}return we.\u0275fac=function(Q){return new(Q||we)},we.\u0275prov=t.Yz7({token:we,factory:we.\u0275fac,providedIn:"root"}),we})();class en{constructor(on,Q,Et,J,Lt={},He=on,zn){this.value=on,this.displayValue=Q,this.ariaLabel=Et,this.enabled=J,this.cssClasses=Lt,this.compareValue=He,this.rawValue=zn}}let _n=(()=>{class we{constructor(Q,Et){this._elementRef=Q,this._ngZone=Et,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 Lt=this._getCellFromElement(J.target);Lt&&this._ngZone.run(()=>this.previewChange.emit({value:Lt.enabled?Lt: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}))},Et.runOutsideAngular(()=>{const J=Q.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(Q,Et){Q.enabled&&this.selectedValueChange.emit({value:Q.value,event:Et})}_emitActiveDateChange(Q,Et){Q.enabled&&this.activeDateChange.emit({value:Q.value,event:Et})}_isSelected(Q){return this.startValue===Q||this.endValue===Q}ngOnChanges(Q){const Et=Q.numCols,{rows:J,numCols:Lt}=this;(Q.rows||Et)&&(this._firstRowOffset=J&&J.length&&J[0].length?Lt-J[0].length:0),(Q.cellAspectRatio||Et||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/Lt+"%"),(Et||!this._cellWidth)&&(this._cellWidth=100/Lt+"%")}ngOnDestroy(){const Q=this._elementRef.nativeElement;Q.removeEventListener("mouseenter",this._enterHandler,!0),Q.removeEventListener("focus",this._enterHandler,!0),Q.removeEventListener("mouseleave",this._leaveHandler,!0),Q.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(Q,Et){let J=Q*this.numCols+Et;return Q&&(J-=this._firstRowOffset),J==this.activeCell}_focusActiveCell(Q=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,tt.q)(1)).subscribe(()=>{setTimeout(()=>{const Et=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");Et&&(Q||(this._skipNextFocus=!0),Et.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(Q){return vn(Q,this.startValue,this.endValue)}_isRangeEnd(Q){return ke(Q,this.startValue,this.endValue)}_isInRange(Q){return un(Q,this.startValue,this.endValue,this.isRange)}_isComparisonStart(Q){return vn(Q,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(Q,Et,J){if(!this._isComparisonStart(Q)||this._isRangeStart(Q)||!this._isInRange(Q))return!1;let Lt=this.rows[Et][J-1];if(!Lt){const He=this.rows[Et-1];Lt=He&&He[He.length-1]}return Lt&&!this._isRangeEnd(Lt.compareValue)}_isComparisonBridgeEnd(Q,Et,J){if(!this._isComparisonEnd(Q)||this._isRangeEnd(Q)||!this._isInRange(Q))return!1;let Lt=this.rows[Et][J+1];if(!Lt){const He=this.rows[Et+1];Lt=He&&He[0]}return Lt&&!this._isRangeStart(Lt.compareValue)}_isComparisonEnd(Q){return ke(Q,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(Q){return un(Q,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(Q){return this.comparisonStart===this.comparisonEnd&&Q===this.comparisonStart}_isPreviewStart(Q){return vn(Q,this.previewStart,this.previewEnd)}_isPreviewEnd(Q){return ke(Q,this.previewStart,this.previewEnd)}_isInPreview(Q){return un(Q,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(Q){let Et;if(xe(Q)?Et=Q:xe(Q.parentNode)&&(Et=Q.parentNode),Et){const J=Et.getAttribute("data-mat-row"),Lt=Et.getAttribute("data-mat-col");if(J&&Lt)return this.rows[parseInt(J)][parseInt(Lt)]}return null}}return we.\u0275fac=function(Q){return new(Q||we)(t.Y36(t.SBq),t.Y36(t.R0b))},we.\u0275cmp=t.Xpm({type:we,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:At,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(Q,Et){1&Q&&(t.YNc(0,xt,3,6,"tr",0),t.YNc(1,Bt,3,2,"tr",1)),2&Q&&(t.Q6J("ngIf",Et._firstRowOffset=on&&we===Q}function un(we,on,Q,Et){return Et&&null!==on&&null!==Q&&on!==Q&&we>=on&&we<=Q}class Dn{constructor(on,Q){this.start=on,this.end=Q}}let ii=(()=>{class we{constructor(Q,Et){this.selection=Q,this._adapter=Et,this._selectionChanged=new P.xQ,this.selectionChanged=this._selectionChanged,this.selection=Q}updateSelection(Q,Et){const J=this.selection;this.selection=Q,this._selectionChanged.next({selection:Q,source:Et,oldValue:J})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(Q){return this._adapter.isDateInstance(Q)&&this._adapter.isValid(Q)}}return we.\u0275fac=function(Q){t.$Z()},we.\u0275prov=t.Yz7({token:we,factory:we.\u0275fac}),we})(),_i=(()=>{class we extends ii{constructor(Q){super(null,Q)}add(Q){super.updateSelection(Q,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const Q=new we(this._adapter);return Q.updateSelection(this.selection,this),Q}}return we.\u0275fac=function(Q){return new(Q||we)(t.LFG(w._A))},we.\u0275prov=t.Yz7({token:we,factory:we.\u0275fac}),we})();const te={provide:ii,deps:[[new t.FiY,new t.tp0,ii],w._A],useFactory:function Qe(we,on){return we||new _i(on)}},Tt=new t.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let hn=(()=>{class we{constructor(Q,Et,J,Lt,He){this._changeDetectorRef=Q,this._dateFormats=Et,this._dateAdapter=J,this._dir=Lt,this._rangeStrategy=He,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(Q){const Et=this._activeDate,J=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(J,this.minDate,this.maxDate),this._hasSameMonthAndYear(Et,this._activeDate)||this._init()}get selected(){return this._selected}set selected(Q){this._selected=Q instanceof Dn?Q:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(Q){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q))}get maxDate(){return this._maxDate}set maxDate(Q){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,st.O)(null)).subscribe(()=>this._init())}ngOnChanges(Q){const Et=Q.comparisonStart||Q.comparisonEnd;Et&&!Et.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(Q){const Et=Q.value,J=this._getDateFromDayOfMonth(Et);let Lt,He;this._selected instanceof Dn?(Lt=this._getDateInCurrentMonth(this._selected.start),He=this._getDateInCurrentMonth(this._selected.end)):Lt=He=this._getDateInCurrentMonth(this._selected),(Lt!==Et||He!==Et)&&this.selectedChange.emit(J),this._userSelection.emit({value:J,event:Q.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_updateActiveDate(Q){const J=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(Q.value),this._dateAdapter.compareDate(J,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(Q){const Et=this._activeDate,J=this._isRtl();switch(Q.keyCode){case V.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,J?1:-1);break;case V.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,J?-1:1);break;case V.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case V.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case V.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case V.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case V.Ku:this.activeDate=Q.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case V.VM:this.activeDate=Q.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case V.K5:case V.L_:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&Q.preventDefault());case V.hY:return void(null!=this._previewEnd&&!(0,V.Vb)(Q)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:Q}),Q.preventDefault(),Q.stopPropagation()));default:return}this._dateAdapter.compareDate(Et,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),Q.preventDefault()}_handleCalendarBodyKeyup(Q){(Q.keyCode===V.L_||Q.keyCode===V.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:Q}),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 Q=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(Q)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(Q){this._matCalendarBody._focusActiveCell(Q)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:Q,value:Et}){if(this._rangeStrategy){const Lt=this._rangeStrategy.createPreview(Et?Et.rawValue:null,this.selected,Q);this._previewStart=this._getCellCompareValue(Lt.start),this._previewEnd=this._getCellCompareValue(Lt.end),this._changeDetectorRef.detectChanges()}}_getDateFromDayOfMonth(Q){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),Q)}_initWeekdays(){const Q=this._dateAdapter.getFirstDayOfWeek(),Et=this._dateAdapter.getDayOfWeekNames("narrow");let Lt=this._dateAdapter.getDayOfWeekNames("long").map((He,zn)=>({long:He,narrow:Et[zn]}));this._weekdays=Lt.slice(Q).concat(Lt.slice(0,Q))}_createWeekCells(){const Q=this._dateAdapter.getNumDaysInMonth(this.activeDate),Et=this._dateAdapter.getDateNames();this._weeks=[[]];for(let J=0,Lt=this._firstWeekOffset;J=0)&&(!this.maxDate||this._dateAdapter.compareDate(Q,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(Q))}_getDateInCurrentMonth(Q){return Q&&this._hasSameMonthAndYear(Q,this.activeDate)?this._dateAdapter.getDate(Q):null}_hasSameMonthAndYear(Q,Et){return!(!Q||!Et||this._dateAdapter.getMonth(Q)!=this._dateAdapter.getMonth(Et)||this._dateAdapter.getYear(Q)!=this._dateAdapter.getYear(Et))}_getCellCompareValue(Q){if(Q){const Et=this._dateAdapter.getYear(Q),J=this._dateAdapter.getMonth(Q),Lt=this._dateAdapter.getDate(Q);return new Date(Et,J,Lt).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(Q){Q instanceof Dn?(this._rangeStart=this._getCellCompareValue(Q.start),this._rangeEnd=this._getCellCompareValue(Q.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(Q),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(Q){return!this.dateFilter||this.dateFilter(Q)}}return we.\u0275fac=function(Q){return new(Q||we)(t.Y36(t.sBO),t.Y36(w.sG,8),t.Y36(w._A,8),t.Y36(W.Is,8),t.Y36(Tt,8))},we.\u0275cmp=t.Xpm({type:we,selectors:[["mat-month-view"]],viewQuery:function(Q,Et){if(1&Q&&t.Gf(_n,5),2&Q){let J;t.iGM(J=t.CRH())&&(Et._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(Q,Et){1&Q&&(t.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),t.YNc(3,St,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(Lt){return Et._dateSelected(Lt)})("activeDateChange",function(Lt){return Et._updateActiveDate(Lt)})("previewChange",function(Lt){return Et._previewChanged(Lt)})("keyup",function(Lt){return Et._handleCalendarBodyKeyup(Lt)})("keydown",function(Lt){return Et._handleCalendarBodyKeydown(Lt)}),t.qZA()()),2&Q&&(t.xp6(3),t.Q6J("ngForOf",Et._weekdays),t.xp6(3),t.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:[v.sg,_n],encapsulation:2,changeDetection:0}),we})(),Di=(()=>{class we{constructor(Q,Et,J){this._changeDetectorRef=Q,this._dateAdapter=Et,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(Q){let Et=this._activeDate;const J=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(J,this.minDate,this.maxDate),bo(this._dateAdapter,Et,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(Q){this._selected=Q instanceof Dn?Q:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q)),this._setSelectedYear(Q)}get minDate(){return this._minDate}set minDate(Q){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q))}get maxDate(){return this._maxDate}set maxDate(Q){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,st.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)-hi(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let J=0,Lt=[];J<24;J++)Lt.push(Et+J),4==Lt.length&&(this._years.push(Lt.map(He=>this._createCellForYear(He))),Lt=[]);this._changeDetectorRef.markForCheck()}_yearSelected(Q){const Et=Q.value,J=this._dateAdapter.createDate(Et,0,1),Lt=this._getDateFromYear(Et);this.yearSelected.emit(J),this.selectedChange.emit(Lt)}_updateActiveDate(Q){const J=this._activeDate;this.activeDate=this._getDateFromYear(Q.value),this._dateAdapter.compareDate(J,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(Q){const Et=this._activeDate,J=this._isRtl();switch(Q.keyCode){case V.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,J?1:-1);break;case V.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,J?-1:1);break;case V.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case V.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case V.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-hi(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case V.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-hi(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case V.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Q.altKey?-240:-24);break;case V.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Q.altKey?240:24);break;case V.K5:case V.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Et,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),Q.preventDefault()}_handleCalendarBodyKeyup(Q){(Q.keyCode===V.L_||Q.keyCode===V.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:Q}),this._selectionKeyPressed=!1)}_getActiveCell(){return hi(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(Q){const Et=this._dateAdapter.getMonth(this.activeDate),J=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(Q,Et,1));return this._dateAdapter.createDate(Q,Et,Math.min(this._dateAdapter.getDate(this.activeDate),J))}_createCellForYear(Q){const Et=this._dateAdapter.createDate(Q,0,1),J=this._dateAdapter.getYearName(Et),Lt=this.dateClass?this.dateClass(Et,"multi-year"):void 0;return new en(Q,J,J,this._shouldEnableYear(Q),Lt)}_shouldEnableYear(Q){if(null==Q||this.maxDate&&Q>this._dateAdapter.getYear(this.maxDate)||this.minDate&&Q{class we{constructor(Q,Et,J,Lt){this._changeDetectorRef=Q,this._dateFormats=Et,this._dateAdapter=J,this._dir=Lt,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(Q){let Et=this._activeDate;const J=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(J,this.minDate,this.maxDate),this._dateAdapter.getYear(Et)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(Q){this._selected=Q instanceof Dn?Q:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q)),this._setSelectedMonth(Q)}get minDate(){return this._minDate}set minDate(Q){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q))}get maxDate(){return this._maxDate}set maxDate(Q){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,st.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(Q){const Et=Q.value,J=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Et,1);this.monthSelected.emit(J);const Lt=this._getDateFromMonth(Et);this.selectedChange.emit(Lt)}_updateActiveDate(Q){const J=this._activeDate;this.activeDate=this._getDateFromMonth(Q.value),this._dateAdapter.compareDate(J,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(Q){const Et=this._activeDate,J=this._isRtl();switch(Q.keyCode){case V.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,J?1:-1);break;case V.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,J?-1:1);break;case V.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case V.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case V.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case V.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case V.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Q.altKey?-10:-1);break;case V.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Q.altKey?10:1);break;case V.K5:case V.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Et,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),Q.preventDefault()}_handleCalendarBodyKeyup(Q){(Q.keyCode===V.L_||Q.keyCode===V.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:Q}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let Q=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(Et=>Et.map(J=>this._createCellForMonth(J,Q[J]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(Q){return Q&&this._dateAdapter.getYear(Q)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(Q):null}_getDateFromMonth(Q){const Et=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Q,1),J=this._dateAdapter.getNumDaysInMonth(Et);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Q,Math.min(this._dateAdapter.getDate(this.activeDate),J))}_createCellForMonth(Q,Et){const J=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Q,1),Lt=this._dateAdapter.format(J,this._dateFormats.display.monthYearA11yLabel),He=this.dateClass?this.dateClass(J,"year"):void 0;return new en(Q,Et.toLocaleUpperCase(),Lt,this._shouldEnableMonth(Q),He)}_shouldEnableMonth(Q){const Et=this._dateAdapter.getYear(this.activeDate);if(null==Q||this._isYearAndMonthAfterMaxDate(Et,Q)||this._isYearAndMonthBeforeMinDate(Et,Q))return!1;if(!this.dateFilter)return!0;for(let Lt=this._dateAdapter.createDate(Et,Q,1);this._dateAdapter.getMonth(Lt)==Q;Lt=this._dateAdapter.addCalendarDays(Lt,1))if(this.dateFilter(Lt))return!0;return!1}_isYearAndMonthAfterMaxDate(Q,Et){if(this.maxDate){const J=this._dateAdapter.getYear(this.maxDate),Lt=this._dateAdapter.getMonth(this.maxDate);return Q>J||Q===J&&Et>Lt}return!1}_isYearAndMonthBeforeMinDate(Q,Et){if(this.minDate){const J=this._dateAdapter.getYear(this.minDate),Lt=this._dateAdapter.getMonth(this.minDate);return Q{class we{constructor(Q,Et,J,Lt,He){this._intl=Q,this.calendar=Et,this._dateAdapter=J,this._dateFormats=Lt,this._buttonDescriptionId="mat-calendar-button-"+gn++,this.calendar.stateChanges.subscribe(()=>He.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)-hi(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),J=Et+24-1,Lt=this._dateAdapter.getYearName(this._dateAdapter.createDate(Et,0,1)),He=this._dateAdapter.getYearName(this._dateAdapter.createDate(J,0,1));return this._intl.formatYearRange(Lt,He)}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(Q,Et){return"month"==this.calendar.currentView?this._dateAdapter.getYear(Q)==this._dateAdapter.getYear(Et)&&this._dateAdapter.getMonth(Q)==this._dateAdapter.getMonth(Et):"year"==this.calendar.currentView?this._dateAdapter.getYear(Q)==this._dateAdapter.getYear(Et):bo(this._dateAdapter,Q,Et,this.calendar.minDate,this.calendar.maxDate)}}return we.\u0275fac=function(Q){return new(Q||we)(t.Y36(Me),t.Y36((0,t.Gpc)(()=>Ee)),t.Y36(w._A,8),t.Y36(w.sG,8),t.Y36(t.sBO))},we.\u0275cmp=t.Xpm({type:we,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:ce,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(Q,Et){1&Q&&(t.F$t(),t.TgZ(0,"div",0)(1,"div",1)(2,"button",2),t.NdJ("click",function(){return Et.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 Et.previousClicked()}),t.qZA(),t.TgZ(10,"button",7),t.NdJ("click",function(){return Et.nextClicked()}),t.qZA()()()),2&Q&&(t.xp6(2),t.uIk("aria-label",Et.periodButtonLabel)("aria-describedby",Et._buttonDescriptionId),t.xp6(1),t.uIk("id",Et._buttonDescriptionId),t.xp6(1),t.Oqu(Et.periodButtonText),t.xp6(1),t.ekj("mat-calendar-invert","month"!==Et.calendar.currentView),t.xp6(4),t.Q6J("disabled",!Et.previousEnabled()),t.uIk("aria-label",Et.prevButtonLabel),t.xp6(1),t.Q6J("disabled",!Et.nextEnabled()),t.uIk("aria-label",Et.nextButtonLabel))},dependencies:[T.lW],encapsulation:2,changeDetection:0}),we})(),Ee=(()=>{class we{constructor(Q,Et,J,Lt){this._dateAdapter=Et,this._dateFormats=J,this._changeDetectorRef=Lt,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=Q.changes.subscribe(()=>{Lt.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(Q){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q))}get selected(){return this._selected}set selected(Q){this._selected=Q instanceof Dn?Q:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q))}get minDate(){return this._minDate}set minDate(Q){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q))}get maxDate(){return this._maxDate}set maxDate(Q){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q))}get activeDate(){return this._clampedActiveDate}set activeDate(Q){this._clampedActiveDate=this._dateAdapter.clampDate(Q,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(Q){const Et=this._currentView!==Q?Q:null;this._currentView=Q,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),Et&&this.viewChanged.emit(Et)}ngAfterContentInit(){this._calendarHeaderPortal=new x.C5(this.headerComponent||Ye),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(Q){const Et=Q.minDate&&!this._dateAdapter.sameDate(Q.minDate.previousValue,Q.minDate.currentValue)?Q.minDate:void 0,J=Q.maxDate&&!this._dateAdapter.sameDate(Q.maxDate.previousValue,Q.maxDate.currentValue)?Q.maxDate:void 0,Lt=Et||J||Q.dateFilter;if(Lt&&!Lt.firstChange){const He=this._getCurrentViewComponent();He&&(this._changeDetectorRef.detectChanges(),He._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(Q){const Et=Q.value;(this.selected instanceof Dn||Et&&!this._dateAdapter.sameDate(Et,this.selected))&&this.selectedChange.emit(Et),this._userSelection.emit(Q)}_yearSelectedInMultiYearView(Q){this.yearSelected.emit(Q)}_monthSelectedInYearView(Q){this.monthSelected.emit(Q)}_goToDateInView(Q,Et){this.activeDate=Q,this.currentView=Et}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return we.\u0275fac=function(Q){return new(Q||we)(t.Y36(Me),t.Y36(w._A,8),t.Y36(w.sG,8),t.Y36(t.sBO))},we.\u0275cmp=t.Xpm({type:we,selectors:[["mat-calendar"]],viewQuery:function(Q,Et){if(1&Q&&(t.Gf(hn,5),t.Gf(Je,5),t.Gf(Di,5)),2&Q){let J;t.iGM(J=t.CRH())&&(Et.monthView=J.first),t.iGM(J=t.CRH())&&(Et.yearView=J.first),t.iGM(J=t.CRH())&&(Et.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([te]),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(Q,Et){1&Q&&(t.YNc(0,Vt,0,0,"ng-template",0),t.TgZ(1,"div",1),t.YNc(2,ve,1,8,"mat-month-view",2),t.YNc(3,fe,1,6,"mat-year-view",3),t.YNc(4,Le,1,6,"mat-multi-year-view",4),t.qZA()),2&Q&&(t.Q6J("cdkPortalOutlet",Et._calendarHeaderPortal),t.xp6(1),t.Q6J("ngSwitch",Et.currentView),t.xp6(1),t.Q6J("ngSwitchCase","month"),t.xp6(1),t.Q6J("ngSwitchCase","year"),t.xp6(1),t.Q6J("ngSwitchCase","multi-year"))},dependencies:[v.RF,v.n9,u.kH,x.Pl,hn,Je,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}),we})();const Xe={transformPanel:(0,wt.X$)("transformPanel",[(0,wt.eR)("void => enter-dropdown",(0,wt.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,wt.F4)([(0,wt.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,wt.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,wt.eR)("void => enter-dialog",(0,wt.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,wt.F4)([(0,wt.oB)({opacity:0,transform:"scale(0.7)"}),(0,wt.oB)({transform:"none",opacity:1})]))),(0,wt.eR)("* => void",(0,wt.jt)("100ms linear",(0,wt.oB)({opacity:0})))]),fadeInCalendar:(0,wt.X$)("fadeInCalendar",[(0,wt.SB)("void",(0,wt.oB)({opacity:0})),(0,wt.SB)("enter",(0,wt.oB)({opacity:1})),(0,wt.eR)("void => *",(0,wt.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let se=0;const ze=new t.OlP("mat-datepicker-scroll-strategy"),rn={provide:ze,deps:[p.aV],useFactory:function ie(we){return()=>we.scrollStrategies.reposition()}},fn=(0,w.pj)(class{constructor(we){this._elementRef=we}});let sn=(()=>{class we extends fn{constructor(Q,Et,J,Lt,He,zn){super(Q),this._changeDetectorRef=Et,this._globalModel=J,this._dateAdapter=Lt,this._rangeSelectionStrategy=He,this._subscriptions=new O.w,this._animationDone=new P.xQ,this._actionsPortal=null,this._closeButtonText=zn.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(Q){const Et=this._model.selection,J=Q.value,Lt=Et instanceof Dn;if(Lt&&this._rangeSelectionStrategy){const He=this._rangeSelectionStrategy.selectionFinished(J,Et,Q.event);this._model.updateSelection(He,this)}else J&&(Lt||!this._dateAdapter.sameDate(J,Et))&&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(Q,Et){this._model=Q?this._globalModel.clone():this._globalModel,this._actionsPortal=Q,Et&&this._changeDetectorRef.detectChanges()}}return we.\u0275fac=function(Q){return new(Q||we)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(ii),t.Y36(w._A),t.Y36(Tt,8),t.Y36(Me))},we.\u0275cmp=t.Xpm({type:we,selectors:[["mat-datepicker-content"]],viewQuery:function(Q,Et){if(1&Q&&t.Gf(Ee,5),2&Q){let J;t.iGM(J=t.CRH())&&(Et._calendar=J.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(Q,Et){1&Q&&t.WFA("@transformPanel.done",function(){return Et._animationDone.next()}),2&Q&&(t.d8E("@transformPanel",Et._animationState),t.ekj("mat-datepicker-content-touch",Et.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(Q,Et){if(1&Q&&(t.TgZ(0,"div",0)(1,"mat-calendar",1),t.NdJ("yearSelected",function(Lt){return Et.datepicker._selectYear(Lt)})("monthSelected",function(Lt){return Et.datepicker._selectMonth(Lt)})("viewChanged",function(Lt){return Et.datepicker._viewChanged(Lt)})("_userSelection",function(Lt){return Et._handleUserSelection(Lt)}),t.qZA(),t.YNc(2,Fe,0,0,"ng-template",2),t.TgZ(3,"button",3),t.NdJ("focus",function(){return Et._closeButtonFocused=!0})("blur",function(){return Et._closeButtonFocused=!1})("click",function(){return Et.datepicker.close()}),t._uU(4),t.qZA()()),2&Q){let J;t.ekj("mat-datepicker-content-container-with-custom-header",Et.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",Et._actionsPortal),t.uIk("aria-modal",!0)("aria-labelledby",null!==(J=Et._dialogLabelId)&&void 0!==J?J:void 0),t.xp6(1),t.Q6J("id",Et.datepicker.id)("ngClass",Et.datepicker.panelClass)("startAt",Et.datepicker.startAt)("startView",Et.datepicker.startView)("minDate",Et.datepicker._getMinDate())("maxDate",Et.datepicker._getMaxDate())("dateFilter",Et.datepicker._getDateFilter())("headerComponent",Et.datepicker.calendarHeaderComponent)("selected",Et._getSelected())("dateClass",Et.datepicker.dateClass)("comparisonStart",Et.comparisonStart)("comparisonEnd",Et.comparisonEnd)("@fadeInCalendar","enter"),t.xp6(1),t.Q6J("cdkPortalOutlet",Et._actionsPortal),t.xp6(1),t.ekj("cdk-visually-hidden",!Et._closeButtonFocused),t.Q6J("color",Et.color||"primary"),t.xp6(1),t.Oqu(Et._closeButtonText)}},dependencies:[v.mk,T.lW,u.mK,x.Pl,Ee],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:[Xe.transformPanel,Xe.fadeInCalendar]},changeDetection:0}),we})(),ge=(()=>{class we{constructor(Q,Et,J,Lt,He,zn,Ki){this._overlay=Q,this._ngZone=Et,this._viewContainerRef=J,this._dateAdapter=He,this._dir=zn,this._model=Ki,this._inputStateChanges=O.w.EMPTY,this._document=(0,t.f3M)(v.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-"+se++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new P.xQ,this._scrollStrategy=Lt}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(Q){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(Q){this._color=Q}get touchUi(){return this._touchUi}set touchUi(Q){this._touchUi=(0,bt.Ig)(Q)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(Q){const Et=(0,bt.Ig)(Q);Et!==this._disabled&&(this._disabled=Et,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(Q){this._restoreFocus=(0,bt.Ig)(Q)}get panelClass(){return this._panelClass}set panelClass(Q){this._panelClass=(0,bt.du)(Q)}get opened(){return this._opened}set opened(Q){(0,bt.Ig)(Q)?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(Q){const Et=Q.xPosition||Q.yPosition;if(Et&&!Et.firstChange&&this._overlayRef){const J=this._overlayRef.getConfig().positionStrategy;J instanceof p._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(Q){this._model.add(Q)}_selectYear(Q){this.yearSelected.emit(Q)}_selectMonth(Q){this.monthSelected.emit(Q)}_viewChanged(Q){this.viewChanged.emit(Q)}registerInput(Q){return this._inputStateChanges.unsubscribe(),this.datepickerInput=Q,this._inputStateChanges=Q.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(Q){this._actionsPortal=Q,this._componentRef?.instance._assignActions(Q,!0)}removeActions(Q){Q===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 Q=this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus,Et=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){const{instance:J,location:Lt}=this._componentRef;J._startExitAnimation(),J._animationDone.pipe((0,tt.q)(1)).subscribe(()=>{const He=this._document.activeElement;Q&&(!He||He===this._document.activeElement||Lt.nativeElement.contains(He))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}Q?setTimeout(Et):Et()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(Q){Q.datepicker=this,Q.color=this.color,Q._dialogLabelId=this.datepickerInput.getOverlayLabelId(),Q._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const Q=this.touchUi,Et=new x.C5(sn,this._viewContainerRef),J=this._overlayRef=this._overlay.create(new p.X_({positionStrategy:Q?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[Q?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:Q?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(Q?"dialog":"popup")}));this._getCloseStream(J).subscribe(Lt=>{Lt&&Lt.preventDefault(),this.close()}),J.keydownEvents().subscribe(Lt=>{const He=Lt.keyCode;(He===V.LH||He===V.JH||He===V.oh||He===V.SV||He===V.Ku||He===V.VM)&&Lt.preventDefault()}),this._componentRef=J.attach(Et),this._forwardContentValues(this._componentRef.instance),Q||this._ngZone.onStable.pipe((0,tt.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 Q=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(Q)}_setConnectedPositions(Q){const Et="end"===this.xPosition?"end":"start",J="start"===Et?"end":"start",Lt="above"===this.yPosition?"bottom":"top",He="top"===Lt?"bottom":"top";return Q.withPositions([{originX:Et,originY:He,overlayX:Et,overlayY:Lt},{originX:Et,originY:Lt,overlayX:Et,overlayY:He},{originX:J,originY:He,overlayX:J,overlayY:Lt},{originX:J,originY:Lt,overlayX:J,overlayY:He}])}_getCloseStream(Q){return(0,L.T)(Q.backdropClick(),Q.detachments(),Q.keydownEvents().pipe((0,ct.h)(Et=>Et.keyCode===V.hY&&!(0,V.Vb)(Et)||this.datepickerInput&&(0,V.Vb)(Et,"altKey")&&Et.keyCode===V.LH)))}}return we.\u0275fac=function(Q){return new(Q||we)(t.Y36(p.aV),t.Y36(t.R0b),t.Y36(t.s_b),t.Y36(ze),t.Y36(w._A,8),t.Y36(W.Is,8),t.Y36(ii))},we.\u0275dir=t.lG2({type:we,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]}),we})(),Nt=(()=>{class we extends ge{}return we.\u0275fac=function(){let on;return function(Et){return(on||(on=t.n5z(we)))(Et||we)}}(),we.\u0275cmp=t.Xpm({type:we,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[t._Bn([te,{provide:ge,useExisting:we}]),t.qOj],decls:0,vars:0,template:function(Q,Et){},encapsulation:2,changeDetection:0}),we})();class Se{constructor(on,Q){this.target=on,this.targetElement=Q,this.value=this.target.value}}let zt=(()=>{class we{constructor(Q,Et,J){this._elementRef=Q,this._dateAdapter=Et,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=Lt=>{const He=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Lt.value));return!He||this._matchesFilter(He)?null:{matDatepickerFilter:!0}},this._minValidator=Lt=>{const He=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Lt.value)),zn=this._getMinDate();return!zn||!He||this._dateAdapter.compareDate(zn,He)<=0?null:{matDatepickerMin:{min:zn,actual:He}}},this._maxValidator=Lt=>{const He=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Lt.value)),zn=this._getMaxDate();return!zn||!He||this._dateAdapter.compareDate(zn,He)>=0?null:{matDatepickerMax:{max:zn,actual:He}}},this._lastValueValid=!1,this._localeSubscription=Et.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(Q){this._assignValueProgrammatically(Q)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(Q){const Et=(0,bt.Ig)(Q),J=this._elementRef.nativeElement;this._disabled!==Et&&(this._disabled=Et,this.stateChanges.next(void 0)),Et&&this._isInitialized&&J.blur&&J.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(Q){this._model=Q,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(Et=>{if(this._shouldHandleChangeEvent(Et)){const J=this._getValueFromModel(Et.selection);this._lastValueValid=this._isValidValue(J),this._cvaOnChange(J),this._onTouched(),this._formatValue(J),this.dateInput.emit(new Se(this,this._elementRef.nativeElement)),this.dateChange.emit(new Se(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(Q){(function Ae(we,on){const Q=Object.keys(we);for(let Et of Q){const{previousValue:J,currentValue:Lt}=we[Et];if(!on.isDateInstance(J)||!on.isDateInstance(Lt))return!0;if(!on.sameDate(J,Lt))return!0}return!1})(Q,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(Q){this._validatorOnChange=Q}validate(Q){return this._validator?this._validator(Q):null}writeValue(Q){this._assignValueProgrammatically(Q)}registerOnChange(Q){this._cvaOnChange=Q}registerOnTouched(Q){this._onTouched=Q}setDisabledState(Q){this.disabled=Q}_onKeydown(Q){Q.altKey&&Q.keyCode===V.JH&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),Q.preventDefault())}_onInput(Q){const Et=this._lastValueValid;let J=this._dateAdapter.parse(Q,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(J),J=this._dateAdapter.getValidDateOrNull(J);const Lt=!this._dateAdapter.sameDate(J,this.value);!J||Lt?this._cvaOnChange(J):(Q&&!this.value&&this._cvaOnChange(J),Et!==this._lastValueValid&&this._validatorOnChange()),Lt&&(this._assignValue(J),this.dateInput.emit(new Se(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Se(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(Q){this._elementRef.nativeElement.value=null!=Q?this._dateAdapter.format(Q,this._dateFormats.display.dateInput):""}_assignValue(Q){this._model?(this._assignValueToModel(Q),this._pendingValue=null):this._pendingValue=Q}_isValidValue(Q){return!Q||this._dateAdapter.isValid(Q)}_parentDisabled(){return!1}_assignValueProgrammatically(Q){Q=this._dateAdapter.deserialize(Q),this._lastValueValid=this._isValidValue(Q),Q=this._dateAdapter.getValidDateOrNull(Q),this._assignValue(Q),this._formatValue(Q)}_matchesFilter(Q){const Et=this._getDateFilter();return!Et||Et(Q)}}return we.\u0275fac=function(Q){return new(Q||we)(t.Y36(t.SBq),t.Y36(w._A,8),t.Y36(w.sG,8))},we.\u0275dir=t.lG2({type:we,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[t.TTD]}),we})();const Ie={provide:qt.JU,useExisting:(0,t.Gpc)(()=>Ei),multi:!0},Sn={provide:qt.Cf,useExisting:(0,t.Gpc)(()=>Ei),multi:!0};let Ei=(()=>{class we extends zt{constructor(Q,Et,J,Lt){super(Q,Et,J),this._formField=Lt,this._closedSubscription=O.w.EMPTY,this._validator=qt.kI.compose(super._getValidators())}set matDatepicker(Q){Q&&(this._datepicker=Q,this._closedSubscription=Q.closedStream.subscribe(()=>this._onTouched()),this._registerModel(Q.registerInput(this)))}get min(){return this._min}set min(Q){const Et=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q));this._dateAdapter.sameDate(Et,this._min)||(this._min=Et,this._validatorOnChange())}get max(){return this._max}set max(Q){const Et=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q));this._dateAdapter.sameDate(Et,this._max)||(this._max=Et,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(Q){const Et=this._matchesFilter(this.value);this._dateFilter=Q,this._matchesFilter(this.value)!==Et&&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(Q){return Q}_assignValueToModel(Q){this._model&&this._model.updateSelection(Q,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(Q){return Q.source!==this}}return we.\u0275fac=function(Q){return new(Q||we)(t.Y36(t.SBq),t.Y36(w._A,8),t.Y36(w.sG,8),t.Y36(Jt.G_,8))},we.\u0275dir=t.lG2({type:we,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(Q,Et){1&Q&&t.NdJ("input",function(Lt){return Et._onInput(Lt.target.value)})("change",function(){return Et._onChange()})("blur",function(){return Et._onBlur()})("keydown",function(Lt){return Et._onKeydown(Lt)}),2&Q&&(t.Ikx("disabled",Et.disabled),t.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)("data-mat-calendar",Et._datepicker?Et._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[t._Bn([Ie,Sn,{provide:yt.Jk,useExisting:we}]),t.qOj]}),we})(),Vi=(()=>{class we{}return we.\u0275fac=function(Q){return new(Q||we)},we.\u0275dir=t.lG2({type:we,selectors:[["","matDatepickerToggleIcon",""]]}),we})(),cn=(()=>{class we{constructor(Q,Et,J){this._intl=Q,this._changeDetectorRef=Et,this._stateChanges=O.w.EMPTY;const Lt=Number(J);this.tabIndex=Lt||0===Lt?Lt:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(Q){this._disabled=(0,bt.Ig)(Q)}ngOnChanges(Q){Q.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(Q){this.datepicker&&!this.disabled&&(this.datepicker.open(),Q.stopPropagation())}_watchStateChanges(){const Q=this.datepicker?this.datepicker.stateChanges:(0,N.of)(),Et=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,Q,Et,J).subscribe(()=>this._changeDetectorRef.markForCheck())}}return we.\u0275fac=function(Q){return new(Q||we)(t.Y36(Me),t.Y36(t.sBO),t.$8M("tabindex"))},we.\u0275cmp=t.Xpm({type:we,selectors:[["mat-datepicker-toggle"]],contentQueries:function(Q,Et,J){if(1&Q&&t.Suo(J,Vi,5),2&Q){let Lt;t.iGM(Lt=t.CRH())&&(Et._customIcon=Lt.first)}},viewQuery:function(Q,Et){if(1&Q&&t.Gf(Ge,5),2&Q){let J;t.iGM(J=t.CRH())&&(Et._button=J.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(Q,Et){1&Q&&t.NdJ("click",function(Lt){return Et._open(Lt)}),2&Q&&(t.uIk("tabindex",null)("data-mat-calendar",Et.datepicker?Et.datepicker.id:null),t.ekj("mat-datepicker-toggle-active",Et.datepicker&&Et.datepicker.opened)("mat-accent",Et.datepicker&&"accent"===Et.datepicker.color)("mat-warn",Et.datepicker&&"warn"===Et.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[t.TTD],ngContentSelectors:ne,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(Q,Et){1&Q&&(t.F$t(Te),t.TgZ(0,"button",0,1),t.YNc(2,Gt,2,0,"svg",2),t.Hsn(3),t.qZA()),2&Q&&(t.Q6J("disabled",Et.disabled)("disableRipple",Et.disableRipple),t.uIk("aria-haspopup",Et.datepicker?"dialog":null)("aria-label",Et.ariaLabel||Et._intl.openCalendarLabel)("tabindex",Et.disabled?-1:Et.tabIndex),t.xp6(2),t.Q6J("ngIf",!Et._customIcon))},dependencies:[v.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}),we})(),Re=(()=>{class we{}return we.\u0275fac=function(Q){return new(Q||we)},we.\u0275mod=t.oAB({type:we}),we.\u0275inj=t.cJS({providers:[Me,rn],imports:[v.ez,T.ot,p.U8,u.rt,x.eL,w.BQ,U.ZD]}),we})()},65412:(X,j,h)=>{"use strict";h.d(j,{WI:()=>jt,uw:()=>vn,H8:()=>_i,ZT:()=>un,xY:()=>ii,Is:()=>Qe,so:()=>Te,uh:()=>Dn});var u=h(12687),p=h(98184),x=h(83353),v=h(84080),t=h(36895),T=h(94650),U=h(29521),w=h(8929),P=h(88514),O=h(21086),L=h(40445),N=h(1059);function V(te,it){}class W{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 st=(()=>{class te extends v.en{constructor(K,Tt,Rt,le,be,De,hn,qn){super(),this._elementRef=K,this._focusTrapFactory=Tt,this._config=le,this._interactivityChecker=be,this._ngZone=De,this._overlayRef=hn,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=Rt}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(K){this._portalOutlet.hasAttached();const Tt=this._portalOutlet.attachComponentPortal(K);return this._contentAttached(),Tt}attachTemplatePortal(K){this._portalOutlet.hasAttached();const Tt=this._portalOutlet.attachTemplatePortal(K);return this._contentAttached(),Tt}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(K,Tt){this._interactivityChecker.isFocusable(K)||(K.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Rt=()=>{K.removeEventListener("blur",Rt),K.removeEventListener("mousedown",Rt),K.removeAttribute("tabindex")};K.addEventListener("blur",Rt),K.addEventListener("mousedown",Rt)})),K.focus(Tt)}_focusByCssSelector(K,Tt){let Rt=this._elementRef.nativeElement.querySelector(K);Rt&&this._forceFocus(Rt,Tt)}_trapFocus(){const K=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||K.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(Tt=>{Tt||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 K=this._config.restoreFocus;let Tt=null;if("string"==typeof K?Tt=this._document.querySelector(K):"boolean"==typeof K?Tt=K?this._elementFocusedBeforeDialogWasOpened:null:K&&(Tt=K),this._config.restoreFocus&&Tt&&"function"==typeof Tt.focus){const Rt=(0,x.ht)(),le=this._elementRef.nativeElement;(!Rt||Rt===this._document.body||Rt===le||le.contains(Rt))&&(this._focusMonitor?(this._focusMonitor.focusVia(Tt,this._closeInteractionType),this._closeInteractionType=null):Tt.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const K=this._elementRef.nativeElement,Tt=(0,x.ht)();return K===Tt||K.contains(Tt)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,x.ht)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return te.\u0275fac=function(K){return new(K||te)(T.Y36(T.SBq),T.Y36(u.qV),T.Y36(t.K0,8),T.Y36(W),T.Y36(u.ic),T.Y36(T.R0b),T.Y36(p.Iu),T.Y36(u.tE))},te.\u0275cmp=T.Xpm({type:te,selectors:[["cdk-dialog-container"]],viewQuery:function(K,Tt){if(1&K&&T.Gf(v.Pl,7),2&K){let Rt;T.iGM(Rt=T.CRH())&&(Tt._portalOutlet=Rt.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(K,Tt){2&K&&T.uIk("id",Tt._config.id||null)("role",Tt._config.role)("aria-modal",Tt._config.ariaModal)("aria-labelledby",Tt._config.ariaLabel?null:Tt._ariaLabelledBy)("aria-label",Tt._config.ariaLabel)("aria-describedby",Tt._config.ariaDescribedBy||null)},features:[T.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(K,Tt){1&K&&T.YNc(0,V,0,0,"ng-template",0)},dependencies:[v.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),te})();class ct{constructor(it,K){this.overlayRef=it,this.config=K,this.closed=new w.xQ,this.disableClose=K.disableClose,this.backdropClick=it.backdropClick(),this.keydownEvents=it.keydownEvents(),this.outsidePointerEvents=it.outsidePointerEvents(),this.id=K.id,this.keydownEvents.subscribe(Tt=>{Tt.keyCode===U.hY&&!this.disableClose&&!(0,U.Vb)(Tt)&&(Tt.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(it,K){if(this.containerInstance){const Tt=this.closed;this.containerInstance._closeInteractionType=K?.focusOrigin||"program",this.overlayRef.dispose(),Tt.next(it),Tt.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(it="",K=""){return this.overlayRef.updateSize({width:it,height:K}),this}addPanelClass(it){return this.overlayRef.addPanelClass(it),this}removePanelClass(it){return this.overlayRef.removePanelClass(it),this}}const bt=new T.OlP("DialogScrollStrategy"),Dt=new T.OlP("DialogData"),wt=new T.OlP("DefaultDialogConfig"),Jt={provide:bt,deps:[p.aV],useFactory:function qt(te){return()=>te.scrollStrategies.block()}};let yt=0,At=(()=>{class te{constructor(K,Tt,Rt,le,be,De){this._overlay=K,this._injector=Tt,this._defaultOptions=Rt,this._parentDialog=le,this._overlayContainer=be,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=De}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(K,Tt){(Tt={...this._defaultOptions||new W,...Tt}).id=Tt.id||"cdk-dialog-"+yt++,Tt.id&&this.getDialogById(Tt.id);const le=this._getOverlayConfig(Tt),be=this._overlay.create(le),De=new ct(be,Tt),hn=this._attachContainer(be,De,Tt);return De.containerInstance=hn,this._attachDialogContent(K,De,hn,Tt),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(De),De.closed.subscribe(()=>this._removeOpenDialog(De,!0)),this.afterOpened.next(De),De}closeAll(){xt(this.openDialogs,K=>K.close())}getDialogById(K){return this.openDialogs.find(Tt=>Tt.id===K)}ngOnDestroy(){xt(this._openDialogsAtThisLevel,K=>{!1===K.config.closeOnDestroy&&this._removeOpenDialog(K,!1)}),xt(this._openDialogsAtThisLevel,K=>K.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(K){const Tt=new p.X_({positionStrategy:K.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:K.scrollStrategy||this._scrollStrategy(),panelClass:K.panelClass,hasBackdrop:K.hasBackdrop,direction:K.direction,minWidth:K.minWidth,minHeight:K.minHeight,maxWidth:K.maxWidth,maxHeight:K.maxHeight,width:K.width,height:K.height,disposeOnNavigation:K.closeOnNavigation});return K.backdropClass&&(Tt.backdropClass=K.backdropClass),Tt}_attachContainer(K,Tt,Rt){const le=Rt.injector||Rt.viewContainerRef?.injector,be=[{provide:W,useValue:Rt},{provide:ct,useValue:Tt},{provide:p.Iu,useValue:K}];let De;Rt.container?"function"==typeof Rt.container?De=Rt.container:(De=Rt.container.type,be.push(...Rt.container.providers(Rt))):De=st;const hn=new v.C5(De,Rt.viewContainerRef,T.zs3.create({parent:le||this._injector,providers:be}),Rt.componentFactoryResolver);return K.attach(hn).instance}_attachDialogContent(K,Tt,Rt,le){if(K instanceof T.Rgc){const be=this._createInjector(le,Tt,Rt,void 0);let De={$implicit:le.data,dialogRef:Tt};le.templateContext&&(De={...De,..."function"==typeof le.templateContext?le.templateContext():le.templateContext}),Rt.attachTemplatePortal(new v.UE(K,null,De,be))}else{const be=this._createInjector(le,Tt,Rt,this._injector),De=Rt.attachComponentPortal(new v.C5(K,le.viewContainerRef,be,le.componentFactoryResolver));Tt.componentInstance=De.instance}}_createInjector(K,Tt,Rt,le){const be=K.injector||K.viewContainerRef?.injector,De=[{provide:Dt,useValue:K.data},{provide:ct,useValue:Tt}];return K.providers&&("function"==typeof K.providers?De.push(...K.providers(Tt,K,Rt)):De.push(...K.providers)),K.direction&&(!be||!be.get(L.Is,null,T.XFs.Optional))&&De.push({provide:L.Is,useValue:{value:K.direction,change:(0,O.of)()}}),T.zs3.create({parent:be||le,providers:De})}_removeOpenDialog(K,Tt){const Rt=this.openDialogs.indexOf(K);Rt>-1&&(this.openDialogs.splice(Rt,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((le,be)=>{le?be.setAttribute("aria-hidden",le):be.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),Tt&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const K=this._overlayContainer.getContainerElement();if(K.parentElement){const Tt=K.parentElement.children;for(let Rt=Tt.length-1;Rt>-1;Rt--){const le=Tt[Rt];le!==K&&"SCRIPT"!==le.nodeName&&"STYLE"!==le.nodeName&&!le.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(le,le.getAttribute("aria-hidden")),le.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const K=this._parentDialog;return K?K._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return te.\u0275fac=function(K){return new(K||te)(T.LFG(p.aV),T.LFG(T.zs3),T.LFG(wt,8),T.LFG(te,12),T.LFG(p.Xj),T.LFG(bt))},te.\u0275prov=T.Yz7({token:te,factory:te.\u0275fac}),te})();function xt(te,it){let K=te.length;for(;K--;)it(te[K])}let pt=(()=>{class te{}return te.\u0275fac=function(K){return new(K||te)},te.\u0275mod=T.oAB({type:te}),te.\u0275inj=T.cJS({providers:[At,Jt],imports:[p.U8,v.eL,u.rt,v.eL]}),te})();var Ot=h(3238),Bt=h(36787),St=h(92198),ce=h(72986),Vt=h(37340);function ve(te,it){}const fe={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},Le={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})]),fe),(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})]),fe)])};class Fe{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=fe.params.enterAnimationDuration,this.exitAnimationDuration=fe.params.exitAnimationDuration}}let Ge=(()=>{class te extends st{constructor(K,Tt,Rt,le,be,De,hn,qn){super(K,Tt,Rt,le,be,De,hn,qn),this._animationStateChanged=new T.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(K){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:K})}}return te.\u0275fac=function(K){return new(K||te)(T.Y36(T.SBq),T.Y36(u.qV),T.Y36(t.K0,8),T.Y36(Fe),T.Y36(u.ic),T.Y36(T.R0b),T.Y36(p.Iu),T.Y36(u.tE))},te.\u0275cmp=T.Xpm({type:te,selectors:[["ng-component"]],features:[T.qOj],decls:0,vars:0,template:function(K,Tt){},encapsulation:2}),te})(),Gt=(()=>{class te extends Ge{constructor(K,Tt,Rt,le,be,De,hn,qn,mi){super(K,Tt,Rt,le,be,De,hn,mi),this._changeDetectorRef=qn,this._state="enter"}_onAnimationDone({toState:K,totalTime:Tt}){"enter"===K?this._openAnimationDone(Tt):"exit"===K&&this._animationStateChanged.next({state:"closed",totalTime:Tt})}_onAnimationStart({toState:K,totalTime:Tt}){"enter"===K?this._animationStateChanged.next({state:"opening",totalTime:Tt}):("exit"===K||"void"===K)&&this._animationStateChanged.next({state:"closing",totalTime:Tt})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||fe.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||fe.params.exitAnimationDuration}}}}return te.\u0275fac=function(K){return new(K||te)(T.Y36(T.SBq),T.Y36(u.qV),T.Y36(t.K0,8),T.Y36(Fe),T.Y36(u.ic),T.Y36(T.R0b),T.Y36(p.Iu),T.Y36(T.sBO),T.Y36(u.tE))},te.\u0275cmp=T.Xpm({type:te,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(K,Tt){1&K&&T.WFA("@dialogContainer.start",function(le){return Tt._onAnimationStart(le)})("@dialogContainer.done",function(le){return Tt._onAnimationDone(le)}),2&K&&(T.Ikx("id",Tt._config.id),T.uIk("aria-modal",Tt._config.ariaModal)("role",Tt._config.role)("aria-labelledby",Tt._config.ariaLabel?null:Tt._ariaLabelledBy)("aria-label",Tt._config.ariaLabel)("aria-describedby",Tt._config.ariaDescribedBy||null),T.d8E("@dialogContainer",Tt._getAnimationState()))},features:[T.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(K,Tt){1&K&&T.YNc(0,ve,0,0,"ng-template",0)},dependencies:[v.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:[Le.dialogContainer]}}),te})();class Te{constructor(it,K,Tt){this._ref=it,this._containerInstance=Tt,this._afterOpened=new w.xQ,this._beforeClosed=new w.xQ,this._state=0,this.disableClose=K.disableClose,this.id=it.id,Tt._animationStateChanged.pipe((0,St.h)(Rt=>"opened"===Rt.state),(0,ce.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),Tt._animationStateChanged.pipe((0,St.h)(Rt=>"closed"===Rt.state),(0,ce.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),it.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,Bt.T)(this.backdropClick(),this.keydownEvents().pipe((0,St.h)(Rt=>Rt.keyCode===U.hY&&!this.disableClose&&!(0,U.Vb)(Rt)))).subscribe(Rt=>{this.disableClose||(Rt.preventDefault(),ne(this,"keydown"===Rt.type?"keyboard":"mouse"))})}close(it){this._result=it,this._containerInstance._animationStateChanged.pipe((0,St.h)(K=>"closing"===K.state),(0,ce.q)(1)).subscribe(K=>{this._beforeClosed.next(it),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),K.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(it){let K=this._ref.config.positionStrategy;return it&&(it.left||it.right)?it.left?K.left(it.left):K.right(it.right):K.centerHorizontally(),it&&(it.top||it.bottom)?it.top?K.top(it.top):K.bottom(it.bottom):K.centerVertically(),this._ref.updatePosition(),this}updateSize(it="",K=""){return this._ref.updateSize(it,K),this}addPanelClass(it){return this._ref.addPanelClass(it),this}removePanelClass(it){return this._ref.removePanelClass(it),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function ne(te,it,K){return te._closeInteractionType=it,te.close(K)}const jt=new T.OlP("MatDialogData"),re=new T.OlP("mat-dialog-default-options"),Xt=new T.OlP("mat-dialog-scroll-strategy"),en={provide:Xt,deps:[p.aV],useFactory:function Me(te){return()=>te.scrollStrategies.block()}};let _n=0,xe=(()=>{class te{constructor(K,Tt,Rt,le,be,De,hn,qn,mi,Di){this._overlay=K,this._defaultOptions=Rt,this._parentDialog=le,this._dialogRefConstructor=hn,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=De,this._dialog=Tt.get(At)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const K=this._parentDialog;return K?K._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(K,Tt){let Rt;(Tt={...this._defaultOptions||new Fe,...Tt}).id=Tt.id||`${this._idPrefix}${_n++}`,Tt.scrollStrategy=Tt.scrollStrategy||this._scrollStrategy();const le=this._dialog.open(K,{...Tt,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:Fe,useValue:Tt},{provide:W,useValue:Tt}]},templateContext:()=>({dialogRef:Rt}),providers:(be,De,hn)=>(Rt=new this._dialogRefConstructor(be,Tt,hn),Rt.updatePosition(Tt?.position),[{provide:this._dialogContainerType,useValue:hn},{provide:this._dialogDataToken,useValue:De.data},{provide:this._dialogRefConstructor,useValue:Rt}])});return Rt.componentInstance=le.componentInstance,this.openDialogs.push(Rt),this.afterOpened.next(Rt),Rt.afterClosed().subscribe(()=>{const be=this.openDialogs.indexOf(Rt);be>-1&&(this.openDialogs.splice(be,1),this.openDialogs.length||this._getAfterAllClosed().next())}),Rt}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(K){return this.openDialogs.find(Tt=>Tt.id===K)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(K){let Tt=K.length;for(;Tt--;)K[Tt].close()}}return te.\u0275fac=function(K){T.$Z()},te.\u0275prov=T.Yz7({token:te,factory:te.\u0275fac}),te})(),vn=(()=>{class te extends xe{constructor(K,Tt,Rt,le,be,De,hn,qn){super(K,Tt,le,De,hn,be,Te,Gt,jt,qn)}}return te.\u0275fac=function(K){return new(K||te)(T.LFG(p.aV),T.LFG(T.zs3),T.LFG(t.Ye,8),T.LFG(re,8),T.LFG(Xt),T.LFG(te,12),T.LFG(p.Xj),T.LFG(T.QbO,8))},te.\u0275prov=T.Yz7({token:te,factory:te.\u0275fac}),te})(),ke=0,un=(()=>{class te{constructor(K,Tt,Rt){this.dialogRef=K,this._elementRef=Tt,this._dialog=Rt,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=oi(this._elementRef,this._dialog.openDialogs))}ngOnChanges(K){const Tt=K._matDialogClose||K._matDialogCloseResult;Tt&&(this.dialogResult=Tt.currentValue)}_onButtonClick(K){ne(this.dialogRef,0===K.screenX&&0===K.screenY?"keyboard":"mouse",this.dialogResult)}}return te.\u0275fac=function(K){return new(K||te)(T.Y36(Te,8),T.Y36(T.SBq),T.Y36(vn))},te.\u0275dir=T.lG2({type:te,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(K,Tt){1&K&&T.NdJ("click",function(le){return Tt._onButtonClick(le)}),2&K&&T.uIk("aria-label",Tt.ariaLabel||null)("type",Tt.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[T.TTD]}),te})(),Dn=(()=>{class te{constructor(K,Tt,Rt){this._dialogRef=K,this._elementRef=Tt,this._dialog=Rt,this.id="mat-dialog-title-"+ke++}ngOnInit(){this._dialogRef||(this._dialogRef=oi(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const K=this._dialogRef._containerInstance;K&&!K._ariaLabelledBy&&(K._ariaLabelledBy=this.id)})}}return te.\u0275fac=function(K){return new(K||te)(T.Y36(Te,8),T.Y36(T.SBq),T.Y36(vn))},te.\u0275dir=T.lG2({type:te,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(K,Tt){2&K&&T.Ikx("id",Tt.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),te})(),ii=(()=>{class te{}return te.\u0275fac=function(K){return new(K||te)},te.\u0275dir=T.lG2({type:te,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),te})(),_i=(()=>{class te{constructor(){this.align="start"}}return te.\u0275fac=function(K){return new(K||te)},te.\u0275dir=T.lG2({type:te,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(K,Tt){2&K&&T.ekj("mat-dialog-actions-align-center","center"===Tt.align)("mat-dialog-actions-align-end","end"===Tt.align)},inputs:{align:"align"}}),te})();function oi(te,it){let K=te.nativeElement.parentElement;for(;K&&!K.classList.contains("mat-dialog-container");)K=K.parentElement;return K?it.find(Tt=>Tt.id===K.id):null}let Qe=(()=>{class te{}return te.\u0275fac=function(K){return new(K||te)},te.\u0275mod=T.oAB({type:te}),te.\u0275inj=T.cJS({providers:[vn,en],imports:[pt,p.U8,v.eL,Ot.BQ,Ot.BQ]}),te})()},44850:(X,j,h)=>{"use strict";h.d(j,{d:()=>v,t:()=>t});var u=h(94650),p=h(21281),x=h(3238);let v=(()=>{class T{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(w){this._vertical=(0,p.Ig)(w)}get inset(){return this._inset}set inset(w){this._inset=(0,p.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:[x.BQ,x.BQ]}),T})()},37084:(X,j,h)=>{"use strict";h.d(j,{pp:()=>en,To:()=>_n,ib:()=>Te,u4:()=>oe,yz:()=>Xt,yK:()=>Me});var u=h(94650),p=h(95017),x=h(21281),v=h(8929),t=h(42654);let T=0;const U=new u.OlP("CdkAccordion");let w=(()=>{class xe{constructor(){this._stateChanges=new v.xQ,this._openCloseAllActions=new v.xQ,this.id="cdk-accordion-"+T++,this._multi=!1}get multi(){return this._multi}set multi(ke){this._multi=(0,x.Ig)(ke)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(ke){this._stateChanges.next(ke)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return xe.\u0275fac=function(ke){return new(ke||xe)},xe.\u0275dir=u.lG2({type:xe,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[u._Bn([{provide:U,useExisting:xe}]),u.TTD]}),xe})(),P=0,O=(()=>{class xe{constructor(ke,un,Dn){this.accordion=ke,this._changeDetectorRef=un,this._expansionDispatcher=Dn,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=Dn.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(ke){ke=(0,x.Ig)(ke),this._expanded!==ke&&(this._expanded=ke,this.expandedChange.emit(ke),ke?(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(ke){this._disabled=(0,x.Ig)(ke)}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(ke=>{this.disabled||(this.expanded=ke)})}}return xe.\u0275fac=function(ke){return new(ke||xe)(u.Y36(U,12),u.Y36(u.sBO),u.Y36(p.A8))},xe.\u0275dir=u.lG2({type:xe,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}])]}),xe})(),L=(()=>{class xe{}return xe.\u0275fac=function(ke){return new(ke||xe)},xe.\u0275mod=u.oAB({type:xe}),xe.\u0275inj=u.cJS({}),xe})();var N=h(84080),V=h(36895),W=h(3238),tt=h(12687),st=h(75778),ct=h(1059),bt=h(92198),Dt=h(72986),wt=h(29521),qt=h(68896),Jt=h(36787),yt=h(37340);const At=["body"];function xt(xe,vn){}const pt=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Ot=["mat-expansion-panel-header","*","mat-action-row"];function Bt(xe,vn){if(1&xe&&u._UZ(0,"span",2),2&xe){const ke=u.oxw();u.Q6J("@indicatorRotate",ke._getExpandedState())}}const St=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],ce=["mat-panel-title","mat-panel-description","*"],Vt=new u.OlP("MAT_ACCORDION"),ve="225ms cubic-bezier(0.4,0.0,0.2,1)",fe={indicatorRotate:(0,yt.X$)("indicatorRotate",[(0,yt.SB)("collapsed, void",(0,yt.oB)({transform:"rotate(0deg)"})),(0,yt.SB)("expanded",(0,yt.oB)({transform:"rotate(180deg)"})),(0,yt.eR)("expanded <=> collapsed, void => collapsed",(0,yt.jt)(ve))]),bodyExpansion:(0,yt.X$)("bodyExpansion",[(0,yt.SB)("collapsed, void",(0,yt.oB)({height:"0px",visibility:"hidden"})),(0,yt.SB)("expanded",(0,yt.oB)({height:"*",visibility:"visible"})),(0,yt.eR)("expanded <=> collapsed, void => collapsed",(0,yt.jt)(ve))])},Le=new u.OlP("MAT_EXPANSION_PANEL");let Fe=(()=>{class xe{constructor(ke,un){this._template=ke,this._expansionPanel=un}}return xe.\u0275fac=function(ke){return new(ke||xe)(u.Y36(u.Rgc),u.Y36(Le,8))},xe.\u0275dir=u.lG2({type:xe,selectors:[["ng-template","matExpansionPanelContent",""]]}),xe})(),Ge=0;const Gt=new u.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let Te=(()=>{class xe extends O{constructor(ke,un,Dn,ii,_i,oi,Qe){super(ke,un,Dn),this._viewContainerRef=ii,this._animationMode=oi,this._hideToggle=!1,this.afterExpand=new u.vpe,this.afterCollapse=new u.vpe,this._inputChanges=new v.xQ,this._headerId="mat-expansion-panel-header-"+Ge++,this._bodyAnimationDone=new v.xQ,this.accordion=ke,this._document=_i,this._bodyAnimationDone.pipe((0,st.x)((te,it)=>te.fromState===it.fromState&&te.toState===it.toState)).subscribe(te=>{"void"!==te.fromState&&("expanded"===te.toState?this.afterExpand.emit():"collapsed"===te.toState&&this.afterCollapse.emit())}),Qe&&(this.hideToggle=Qe.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(ke){this._hideToggle=(0,x.Ig)(ke)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(ke){this._togglePosition=ke}_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,ct.O)(null),(0,bt.h)(()=>this.expanded&&!this._portal),(0,Dt.q)(1)).subscribe(()=>{this._portal=new N.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(ke){this._inputChanges.next(ke)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const ke=this._document.activeElement,un=this._body.nativeElement;return ke===un||un.contains(ke)}return!1}}return xe.\u0275fac=function(ke){return new(ke||xe)(u.Y36(Vt,12),u.Y36(u.sBO),u.Y36(p.A8),u.Y36(u.s_b),u.Y36(V.K0),u.Y36(u.QbO,8),u.Y36(Gt,8))},xe.\u0275cmp=u.Xpm({type:xe,selectors:[["mat-expansion-panel"]],contentQueries:function(ke,un,Dn){if(1&ke&&u.Suo(Dn,Fe,5),2&ke){let ii;u.iGM(ii=u.CRH())&&(un._lazyContent=ii.first)}},viewQuery:function(ke,un){if(1&ke&&u.Gf(At,5),2&ke){let Dn;u.iGM(Dn=u.CRH())&&(un._body=Dn.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(ke,un){2&ke&&u.ekj("mat-expanded",un.expanded)("_mat-animation-noopable","NoopAnimations"===un._animationMode)("mat-expansion-panel-spacing",un._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:Le,useExisting:xe}]),u.qOj,u.TTD],ngContentSelectors:Ot,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(ke,un){1&ke&&(u.F$t(pt),u.Hsn(0),u.TgZ(1,"div",0,1),u.NdJ("@bodyExpansion.done",function(ii){return un._bodyAnimationDone.next(ii)}),u.TgZ(3,"div",2),u.Hsn(4,1),u.YNc(5,xt,0,0,"ng-template",3),u.qZA(),u.Hsn(6,2),u.qZA()),2&ke&&(u.xp6(1),u.Q6J("@bodyExpansion",un._getExpandedState())("id",un.id),u.uIk("aria-labelledby",un._headerId),u.xp6(4),u.Q6J("cdkPortalOutlet",un._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:[fe.bodyExpansion]},changeDetection:0}),xe})();class jt{}const re=(0,W.sb)(jt);let Xt=(()=>{class xe extends re{constructor(ke,un,Dn,ii,_i,oi,Qe){super(),this.panel=ke,this._element=un,this._focusMonitor=Dn,this._changeDetectorRef=ii,this._animationMode=oi,this._parentChangeSubscription=t.w.EMPTY;const te=ke.accordion?ke.accordion._stateChanges.pipe((0,bt.h)(it=>!(!it.hideToggle&&!it.togglePosition))):qt.E;this.tabIndex=parseInt(Qe||"")||0,this._parentChangeSubscription=(0,Jt.T)(ke.opened,ke.closed,te,ke._inputChanges.pipe((0,bt.h)(it=>!!(it.hideToggle||it.disabled||it.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),ke.closed.pipe((0,bt.h)(()=>ke._containsFocus())).subscribe(()=>Dn.focusVia(un,"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 ke=this._isExpanded();return ke&&this.expandedHeight?this.expandedHeight:!ke&&this.collapsedHeight?this.collapsedHeight:null}_keydown(ke){switch(ke.keyCode){case wt.L_:case wt.K5:(0,wt.Vb)(ke)||(ke.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(ke))}}focus(ke,un){ke?this._focusMonitor.focusVia(this._element,ke,un):this._element.nativeElement.focus(un)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(ke=>{ke&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return xe.\u0275fac=function(ke){return new(ke||xe)(u.Y36(Te,1),u.Y36(u.SBq),u.Y36(tt.tE),u.Y36(u.sBO),u.Y36(Gt,8),u.Y36(u.QbO,8),u.$8M("tabindex"))},xe.\u0275cmp=u.Xpm({type:xe,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(ke,un){1&ke&&u.NdJ("click",function(){return un._toggle()})("keydown",function(ii){return un._keydown(ii)}),2&ke&&(u.uIk("id",un.panel._headerId)("tabindex",un.tabIndex)("aria-controls",un._getPanelId())("aria-expanded",un._isExpanded())("aria-disabled",un.panel.disabled),u.Udp("height",un._getHeaderHeight()),u.ekj("mat-expanded",un._isExpanded())("mat-expansion-toggle-indicator-after","after"===un._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===un._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===un._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[u.qOj],ngContentSelectors:ce,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(ke,un){1&ke&&(u.F$t(St),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&ke&&(u.ekj("mat-content-hide-toggle",!un._showToggle()),u.xp6(4),u.Q6J("ngIf",un._showToggle()))},dependencies:[V.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:[fe.indicatorRotate]},changeDetection:0}),xe})(),oe=(()=>{class xe{}return xe.\u0275fac=function(ke){return new(ke||xe)},xe.\u0275dir=u.lG2({type:xe,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),xe})(),Me=(()=>{class xe{}return xe.\u0275fac=function(ke){return new(ke||xe)},xe.\u0275dir=u.lG2({type:xe,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),xe})(),en=(()=>{class xe 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(ke){this._hideToggle=(0,x.Ig)(ke)}ngAfterContentInit(){this._headers.changes.pipe((0,ct.O)(this._headers)).subscribe(ke=>{this._ownHeaders.reset(ke.filter(un=>un.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new tt.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(ke){this._keyManager.onKeydown(ke)}_handleHeaderFocus(ke){this._keyManager.updateActiveItem(ke)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return xe.\u0275fac=function(){let vn;return function(un){return(vn||(vn=u.n5z(xe)))(un||xe)}}(),xe.\u0275dir=u.lG2({type:xe,selectors:[["mat-accordion"]],contentQueries:function(ke,un,Dn){if(1&ke&&u.Suo(Dn,Xt,5),2&ke){let ii;u.iGM(ii=u.CRH())&&(un._headers=ii)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(ke,un){2&ke&&u.ekj("mat-accordion-multi",un.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[u._Bn([{provide:Vt,useExisting:xe}]),u.qOj]}),xe})(),_n=(()=>{class xe{}return xe.\u0275fac=function(ke){return new(ke||xe)},xe.\u0275mod=u.oAB({type:xe}),xe.\u0275inj=u.cJS({imports:[V.ez,W.BQ,L,N.eL]}),xe})()},59549:(X,j,h)=>{"use strict";h.d(j,{Eo:()=>Fe,G_:()=>_i,KE:()=>oi,R9:()=>xe,TO:()=>fe,bx:()=>re,hX:()=>Xt,lN:()=>Qe,o2:()=>ii,qo:()=>en});var u=h(49643),p=h(36895),x=h(94650),v=h(3238),t=h(40445),T=h(21281),U=h(8929),w=h(36787),P=h(23753),O=h(1059),L=h(7625),N=h(72986),V=h(37340),W=h(83353);const tt=["connectionContainer"],st=["inputContainer"],ct=["label"];function bt(te,it){1&te&&(x.ynx(0),x.TgZ(1,"div",14),x._UZ(2,"div",15)(3,"div",16)(4,"div",17),x.qZA(),x.TgZ(5,"div",18),x._UZ(6,"div",15)(7,"div",16)(8,"div",17),x.qZA(),x.BQk())}function Dt(te,it){if(1&te){const K=x.EpF();x.TgZ(0,"div",19),x.NdJ("cdkObserveContent",function(){x.CHM(K);const Rt=x.oxw();return x.KtG(Rt.updateOutlineGap())}),x.Hsn(1,1),x.qZA()}if(2&te){const K=x.oxw();x.Q6J("cdkObserveContentDisabled","outline"!=K.appearance)}}function wt(te,it){if(1&te&&(x.ynx(0),x.Hsn(1,2),x.TgZ(2,"span"),x._uU(3),x.qZA(),x.BQk()),2&te){const K=x.oxw(2);x.xp6(3),x.Oqu(K._control.placeholder)}}function qt(te,it){1&te&&x.Hsn(0,3,["*ngSwitchCase","true"])}function Jt(te,it){1&te&&(x.TgZ(0,"span",23),x._uU(1," *"),x.qZA())}function yt(te,it){if(1&te){const K=x.EpF();x.TgZ(0,"label",20,21),x.NdJ("cdkObserveContent",function(){x.CHM(K);const Rt=x.oxw();return x.KtG(Rt.updateOutlineGap())}),x.YNc(2,wt,4,1,"ng-container",12),x.YNc(3,qt,1,0,"ng-content",12),x.YNc(4,Jt,2,0,"span",22),x.qZA()}if(2&te){const K=x.oxw();x.ekj("mat-empty",K._control.empty&&!K._shouldAlwaysFloat())("mat-form-field-empty",K._control.empty&&!K._shouldAlwaysFloat())("mat-accent","accent"==K.color)("mat-warn","warn"==K.color),x.Q6J("cdkObserveContentDisabled","outline"!=K.appearance)("id",K._labelId)("ngSwitch",K._hasLabel()),x.uIk("for",K._control.id)("aria-owns",K._control.id),x.xp6(2),x.Q6J("ngSwitchCase",!1),x.xp6(1),x.Q6J("ngSwitchCase",!0),x.xp6(1),x.Q6J("ngIf",!K.hideRequiredMarker&&K._control.required&&!K._control.disabled)}}function At(te,it){1&te&&(x.TgZ(0,"div",24),x.Hsn(1,4),x.qZA())}function xt(te,it){if(1&te&&(x.TgZ(0,"div",25),x._UZ(1,"span",26),x.qZA()),2&te){const K=x.oxw();x.xp6(1),x.ekj("mat-accent","accent"==K.color)("mat-warn","warn"==K.color)}}function pt(te,it){if(1&te&&(x.TgZ(0,"div"),x.Hsn(1,5),x.qZA()),2&te){const K=x.oxw();x.Q6J("@transitionMessages",K._subscriptAnimationState)}}function Ot(te,it){if(1&te&&(x.TgZ(0,"div",30),x._uU(1),x.qZA()),2&te){const K=x.oxw(2);x.Q6J("id",K._hintLabelId),x.xp6(1),x.Oqu(K.hintLabel)}}function Bt(te,it){if(1&te&&(x.TgZ(0,"div",27),x.YNc(1,Ot,2,2,"div",28),x.Hsn(2,6),x._UZ(3,"div",29),x.Hsn(4,7),x.qZA()),2&te){const K=x.oxw();x.Q6J("@transitionMessages",K._subscriptAnimationState),x.xp6(1),x.Q6J("ngIf",K.hintLabel)}}const St=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],ce=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let Vt=0;const ve=new x.OlP("MatError");let fe=(()=>{class te{constructor(K,Tt){this.id="mat-error-"+Vt++,K||Tt.nativeElement.setAttribute("aria-live","polite")}}return te.\u0275fac=function(K){return new(K||te)(x.$8M("aria-live"),x.Y36(x.SBq))},te.\u0275dir=x.lG2({type:te,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(K,Tt){2&K&&x.uIk("id",Tt.id)},inputs:{id:"id"},features:[x._Bn([{provide:ve,useExisting:te}])]}),te})();const Le={transitionMessages:(0,V.X$)("transitionMessages",[(0,V.SB)("enter",(0,V.oB)({opacity:1,transform:"translateY(0%)"})),(0,V.eR)("void => enter",[(0,V.oB)({opacity:0,transform:"translateY(-5px)"}),(0,V.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Fe=(()=>{class te{}return te.\u0275fac=function(K){return new(K||te)},te.\u0275dir=x.lG2({type:te}),te})(),ne=0;const jt=new x.OlP("MatHint");let re=(()=>{class te{constructor(){this.align="start",this.id="mat-hint-"+ne++}}return te.\u0275fac=function(K){return new(K||te)},te.\u0275dir=x.lG2({type:te,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(K,Tt){2&K&&(x.uIk("id",Tt.id)("align",null),x.ekj("mat-form-field-hint-end","end"===Tt.align))},inputs:{align:"align",id:"id"},features:[x._Bn([{provide:jt,useExisting:te}])]}),te})(),Xt=(()=>{class te{}return te.\u0275fac=function(K){return new(K||te)},te.\u0275dir=x.lG2({type:te,selectors:[["mat-label"]]}),te})(),oe=(()=>{class te{}return te.\u0275fac=function(K){return new(K||te)},te.\u0275dir=x.lG2({type:te,selectors:[["mat-placeholder"]]}),te})();const Me=new x.OlP("MatPrefix");let en=(()=>{class te{}return te.\u0275fac=function(K){return new(K||te)},te.\u0275dir=x.lG2({type:te,selectors:[["","matPrefix",""]],features:[x._Bn([{provide:Me,useExisting:te}])]}),te})();const _n=new x.OlP("MatSuffix");let xe=(()=>{class te{}return te.\u0275fac=function(K){return new(K||te)},te.\u0275dir=x.lG2({type:te,selectors:[["","matSuffix",""]],features:[x._Bn([{provide:_n,useExisting:te}])]}),te})(),vn=0;const Dn=(0,v.pj)(class{constructor(te){this._elementRef=te}},"primary"),ii=new x.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),_i=new x.OlP("MatFormField");let oi=(()=>{class te extends Dn{constructor(K,Tt,Rt,le,be,De,hn){super(K),this._changeDetectorRef=Tt,this._dir=Rt,this._defaults=le,this._platform=be,this._ngZone=De,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-"+vn++,this._labelId="mat-form-field-label-"+vn++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==hn,this.appearance=le?.appearance||"legacy",le&&(this._hideRequiredMarker=Boolean(le.hideRequiredMarker),le.color&&(this.color=this.defaultColor=le.color))}get appearance(){return this._appearance}set appearance(K){const Tt=this._appearance;this._appearance=K||this._defaults?.appearance||"legacy","outline"===this._appearance&&Tt!==K&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(K){this._hideRequiredMarker=(0,T.Ig)(K)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(K){this._hintLabel=K,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(K){K!==this._floatLabel&&(this._floatLabel=K||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(K){this._explicitFormFieldControl=K}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const K=this._control;K.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${K.controlType}`),K.stateChanges.pipe((0,O.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),K.ngControl&&K.ngControl.valueChanges&&K.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(K){const Tt=this._control?this._control.ngControl:null;return Tt&&Tt[K]}_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 K=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&K.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const Tt=this._hintChildren?this._hintChildren.find(le=>"start"===le.align):null,Rt=this._hintChildren?this._hintChildren.find(le=>"end"===le.align):null;Tt?K.push(Tt.id):this._hintLabel&&K.push(this._hintLabelId),Rt&&K.push(Rt.id)}else this._errorChildren&&K.push(...this._errorChildren.map(Tt=>Tt.id));this._control.setDescribedByIds(K)}}_validateControlChild(){}updateOutlineGap(){const K=this._label?this._label.nativeElement:null,Tt=this._connectionContainerRef.nativeElement,Rt=".mat-form-field-outline-start",le=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!K||!K.children.length||!K.textContent.trim()){const mi=Tt.querySelectorAll(`${Rt}, ${le}`);for(let Di=0;Di0?.75*Yn+10:0}for(let mi=0;mi{class te{}return te.\u0275fac=function(K){return new(K||te)},te.\u0275mod=x.oAB({type:te}),te.\u0275inj=x.cJS({imports:[p.ez,v.BQ,u.Q8,v.BQ]}),te})()},90782:(X,j,h)=>{"use strict";h.d(j,{DX:()=>N,Il:()=>xt,N6:()=>pt});var u=h(94650),p=h(3238),x=h(21281),v=h(40445);const t=["*"];class P{constructor(){this.columnIndex=0,this.rowIndex=0}get rowCount(){return this.rowIndex+1}get rowspan(){const St=Math.max(...this.tracker);return St>1?this.rowCount+St-1:this.rowCount}update(St,ce){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(St),this.tracker.fill(0,0,this.tracker.length),this.positions=ce.map(Vt=>this._trackTile(Vt))}_trackTile(St){const ce=this._findMatchingGap(St.colspan);return this._markTilePosition(ce,St),this.columnIndex=ce+St.colspan,new O(this.rowIndex,ce)}_findMatchingGap(St){let ce=-1,Vt=-1;do{this.columnIndex+St>this.tracker.length?(this._nextRow(),ce=this.tracker.indexOf(0,this.columnIndex),Vt=this._findGapEndIndex(ce)):(ce=this.tracker.indexOf(0,this.columnIndex),-1!=ce?(Vt=this._findGapEndIndex(ce),this.columnIndex=ce+1):(this._nextRow(),ce=this.tracker.indexOf(0,this.columnIndex),Vt=this._findGapEndIndex(ce)))}while(Vt-ce{class Bt{constructor(ce,Vt){this._element=ce,this._gridList=Vt,this._rowspan=1,this._colspan=1}get rowspan(){return this._rowspan}set rowspan(ce){this._rowspan=Math.round((0,x.su)(ce))}get colspan(){return this._colspan}set colspan(ce){this._colspan=Math.round((0,x.su)(ce))}_setStyle(ce,Vt){this._element.nativeElement.style[ce]=Vt}}return Bt.\u0275fac=function(ce){return new(ce||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(ce,Vt){2&ce&&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(ce,Vt){1&ce&&(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 ct=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/;class bt{constructor(){this._rows=0,this._rowspan=0}init(St,ce,Vt,ve){this._gutterSize=yt(St),this._rows=ce.rowCount,this._rowspan=ce.rowspan,this._cols=Vt,this._direction=ve}getBaseTileSize(St,ce){return`(${St}% - (${this._gutterSize} * ${ce}))`}getTilePosition(St,ce){return 0===ce?"0":Jt(`(${St} + ${this._gutterSize}) * ${ce}`)}getTileSize(St,ce){return`(${St} * ${ce}) + (${ce-1} * ${this._gutterSize})`}setStyle(St,ce,Vt){let ve=100/this._cols,fe=(this._cols-1)/this._cols;this.setColStyles(St,Vt,ve,fe),this.setRowStyles(St,ce,ve,fe)}setColStyles(St,ce,Vt,ve){let fe=this.getBaseTileSize(Vt,ve);St._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(fe,ce)),St._setStyle("width",Jt(this.getTileSize(fe,St.colspan)))}getGutterSpan(){return`${this._gutterSize} * (${this._rowspan} - 1)`}getTileSpan(St){return`${this._rowspan} * ${this.getTileSize(St,1)}`}getComputedHeight(){return null}}class Dt extends bt{constructor(St){super(),this.fixedRowHeight=St}init(St,ce,Vt,ve){super.init(St,ce,Vt,ve),this.fixedRowHeight=yt(this.fixedRowHeight),ct.test(this.fixedRowHeight)}setRowStyles(St,ce){St._setStyle("top",this.getTilePosition(this.fixedRowHeight,ce)),St._setStyle("height",Jt(this.getTileSize(this.fixedRowHeight,St.rowspan)))}getComputedHeight(){return["height",Jt(`${this.getTileSpan(this.fixedRowHeight)} + ${this.getGutterSpan()}`)]}reset(St){St._setListStyle(["height",null]),St._tiles&&St._tiles.forEach(ce=>{ce._setStyle("top",null),ce._setStyle("height",null)})}}class wt extends bt{constructor(St){super(),this._parseRatio(St)}setRowStyles(St,ce,Vt,ve){this.baseTileHeight=this.getBaseTileSize(Vt/this.rowHeightRatio,ve),St._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,ce)),St._setStyle("paddingTop",Jt(this.getTileSize(this.baseTileHeight,St.rowspan)))}getComputedHeight(){return["paddingBottom",Jt(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(St){St._setListStyle(["paddingBottom",null]),St._tiles.forEach(ce=>{ce._setStyle("marginTop",null),ce._setStyle("paddingTop",null)})}_parseRatio(St){const ce=St.split(":");this.rowHeightRatio=parseFloat(ce[0])/parseFloat(ce[1])}}class qt extends bt{setRowStyles(St,ce){let fe=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);St._setStyle("top",this.getTilePosition(fe,ce)),St._setStyle("height",Jt(this.getTileSize(fe,St.rowspan)))}reset(St){St._tiles&&St._tiles.forEach(ce=>{ce._setStyle("top",null),ce._setStyle("height",null)})}}function Jt(Bt){return`calc(${Bt})`}function yt(Bt){return Bt.match(/([A-Za-z%]+)$/)?Bt:`${Bt}px`}let xt=(()=>{class Bt{constructor(ce,Vt){this._element=ce,this._dir=Vt,this._gutter="1px"}get cols(){return this._cols}set cols(ce){this._cols=Math.max(1,Math.round((0,x.su)(ce)))}get gutterSize(){return this._gutter}set gutterSize(ce){this._gutter=`${ce??""}`}get rowHeight(){return this._rowHeight}set rowHeight(ce){const Vt=`${ce??""}`;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(ce){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===ce?new qt:ce&&ce.indexOf(":")>-1?new wt(ce):new Dt(ce)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new P);const ce=this._tileCoordinator,Vt=this._tiles.filter(fe=>!fe._gridList||fe._gridList===this),ve=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,Vt),this._tileStyler.init(this.gutterSize,ce,this.cols,ve),Vt.forEach((fe,Le)=>{const Fe=ce.positions[Le];this._tileStyler.setStyle(fe,Fe.row,Fe.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(ce){ce&&(this._element.nativeElement.style[ce[0]]=ce[1])}}return Bt.\u0275fac=function(ce){return new(ce||Bt)(u.Y36(u.SBq),u.Y36(v.Is,8))},Bt.\u0275cmp=u.Xpm({type:Bt,selectors:[["mat-grid-list"]],contentQueries:function(ce,Vt,ve){if(1&ce&&u.Suo(ve,N,5),2&ce){let fe;u.iGM(fe=u.CRH())&&(Vt._tiles=fe)}},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(ce,Vt){2&ce&&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(ce,Vt){1&ce&&(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})(),pt=(()=>{class Bt{}return Bt.\u0275fac=function(ce){return new(ce||Bt)},Bt.\u0275mod=u.oAB({type:Bt}),Bt.\u0275inj=u.cJS({imports:[p.uc,p.BQ,p.uc,p.BQ]}),Bt})()},97392:(X,j,h)=>{"use strict";h.d(j,{Hw:()=>ne,Ps:()=>jt});var u=h(94650),p=h(3238),x=h(21281),v=h(36895),t=h(21086),T=h(61737),U=h(30567),w=h(42654),P=h(22868),O=h(24850),L=h(27221),N=h(40537),V=h(12474),W=h(72986),tt=h(80529),st=h(11481);const ct=["*"];let bt;function wt(re){return function Dt(){if(void 0===bt&&(bt=null,typeof window<"u")){const re=window;void 0!==re.trustedTypes&&(bt=re.trustedTypes.createPolicy("angular#components",{createHTML:Xt=>Xt}))}return bt}()?.createHTML(re)||re}function qt(re){return Error(`Unable to find icon with the name "${re}"`)}function yt(re){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${re}".`)}function At(re){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${re}".`)}class xt{constructor(Xt,oe,Me){this.url=Xt,this.svgText=oe,this.options=Me}}let pt=(()=>{class re{constructor(oe,Me,en,_n){this._httpClient=oe,this._sanitizer=Me,this._errorHandler=_n,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=en}addSvgIcon(oe,Me,en){return this.addSvgIconInNamespace("",oe,Me,en)}addSvgIconLiteral(oe,Me,en){return this.addSvgIconLiteralInNamespace("",oe,Me,en)}addSvgIconInNamespace(oe,Me,en,_n){return this._addSvgIconConfig(oe,Me,new xt(en,null,_n))}addSvgIconResolver(oe){return this._resolvers.push(oe),this}addSvgIconLiteralInNamespace(oe,Me,en,_n){const xe=this._sanitizer.sanitize(u.q3G.HTML,en);if(!xe)throw At(en);const vn=wt(xe);return this._addSvgIconConfig(oe,Me,new xt("",vn,_n))}addSvgIconSet(oe,Me){return this.addSvgIconSetInNamespace("",oe,Me)}addSvgIconSetLiteral(oe,Me){return this.addSvgIconSetLiteralInNamespace("",oe,Me)}addSvgIconSetInNamespace(oe,Me,en){return this._addSvgIconSetConfig(oe,new xt(Me,null,en))}addSvgIconSetLiteralInNamespace(oe,Me,en){const _n=this._sanitizer.sanitize(u.q3G.HTML,Me);if(!_n)throw At(Me);const xe=wt(_n);return this._addSvgIconSetConfig(oe,new xt("",xe,en))}registerFontClassAlias(oe,Me=oe){return this._fontCssClassesByAlias.set(oe,Me),this}classNameForFontAlias(oe){return this._fontCssClassesByAlias.get(oe)||oe}setDefaultFontSetClass(...oe){return this._defaultFontSetClass=oe,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(oe){const Me=this._sanitizer.sanitize(u.q3G.RESOURCE_URL,oe);if(!Me)throw yt(oe);const en=this._cachedIconsByUrl.get(Me);return en?(0,t.of)(St(en)):this._loadSvgIconFromConfig(new xt(oe,null)).pipe((0,P.b)(_n=>this._cachedIconsByUrl.set(Me,_n)),(0,O.U)(_n=>St(_n)))}getNamedSvgIcon(oe,Me=""){const en=ce(Me,oe);let _n=this._svgIconConfigs.get(en);if(_n)return this._getSvgFromConfig(_n);if(_n=this._getIconConfigFromResolvers(Me,oe),_n)return this._svgIconConfigs.set(en,_n),this._getSvgFromConfig(_n);const xe=this._iconSetConfigs.get(Me);return xe?this._getSvgFromIconSetConfigs(oe,xe):(0,T._)(qt(en))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(oe){return oe.svgText?(0,t.of)(St(this._svgElementFromConfig(oe))):this._loadSvgIconFromConfig(oe).pipe((0,O.U)(Me=>St(Me)))}_getSvgFromIconSetConfigs(oe,Me){const en=this._extractIconWithNameFromAnySet(oe,Me);if(en)return(0,t.of)(en);const _n=Me.filter(xe=>!xe.svgText).map(xe=>this._loadSvgIconSetFromConfig(xe).pipe((0,L.K)(vn=>{const un=`Loading icon set URL: ${this._sanitizer.sanitize(u.q3G.RESOURCE_URL,xe.url)} failed: ${vn.message}`;return this._errorHandler.handleError(new Error(un)),(0,t.of)(null)})));return(0,U.D)(_n).pipe((0,O.U)(()=>{const xe=this._extractIconWithNameFromAnySet(oe,Me);if(!xe)throw qt(oe);return xe}))}_extractIconWithNameFromAnySet(oe,Me){for(let en=Me.length-1;en>=0;en--){const _n=Me[en];if(_n.svgText&&_n.svgText.toString().indexOf(oe)>-1){const xe=this._svgElementFromConfig(_n),vn=this._extractSvgIconFromSet(xe,oe,_n.options);if(vn)return vn}}return null}_loadSvgIconFromConfig(oe){return this._fetchIcon(oe).pipe((0,P.b)(Me=>oe.svgText=Me),(0,O.U)(()=>this._svgElementFromConfig(oe)))}_loadSvgIconSetFromConfig(oe){return oe.svgText?(0,t.of)(null):this._fetchIcon(oe).pipe((0,P.b)(Me=>oe.svgText=Me))}_extractSvgIconFromSet(oe,Me,en){const _n=oe.querySelector(`[id="${Me}"]`);if(!_n)return null;const xe=_n.cloneNode(!0);if(xe.removeAttribute("id"),"svg"===xe.nodeName.toLowerCase())return this._setSvgAttributes(xe,en);if("symbol"===xe.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(xe),en);const vn=this._svgElementFromString(wt(""));return vn.appendChild(xe),this._setSvgAttributes(vn,en)}_svgElementFromString(oe){const Me=this._document.createElement("DIV");Me.innerHTML=oe;const en=Me.querySelector("svg");if(!en)throw Error(" tag not found");return en}_toSvgElement(oe){const Me=this._svgElementFromString(wt("")),en=oe.attributes;for(let _n=0;_nwt(un)),(0,N.x)(()=>this._inProgressUrlFetches.delete(xe)),(0,V.B)());return this._inProgressUrlFetches.set(xe,ke),ke}_addSvgIconConfig(oe,Me,en){return this._svgIconConfigs.set(ce(oe,Me),en),this}_addSvgIconSetConfig(oe,Me){const en=this._iconSetConfigs.get(oe);return en?en.push(Me):this._iconSetConfigs.set(oe,[Me]),this}_svgElementFromConfig(oe){if(!oe.svgElement){const Me=this._svgElementFromString(oe.svgText);this._setSvgAttributes(Me,oe.options),oe.svgElement=Me}return oe.svgElement}_getIconConfigFromResolvers(oe,Me){for(let en=0;enXt?Xt.pathname+Xt.search:""}}}),Ge=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Gt=Ge.map(re=>`[${re}]`).join(", "),Te=/^url\(['"]?#(.*?)['"]?\)$/;let ne=(()=>{class re extends ve{constructor(oe,Me,en,_n,xe,vn){super(oe),this._iconRegistry=Me,this._location=_n,this._errorHandler=xe,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=w.w.EMPTY,vn&&(vn.color&&(this.color=this.defaultColor=vn.color),vn.fontSet&&(this.fontSet=vn.fontSet)),en||oe.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(oe){this._inline=(0,x.Ig)(oe)}get svgIcon(){return this._svgIcon}set svgIcon(oe){oe!==this._svgIcon&&(oe?this._updateSvgIcon(oe):this._svgIcon&&this._clearSvgElement(),this._svgIcon=oe)}get fontSet(){return this._fontSet}set fontSet(oe){const Me=this._cleanupFontValue(oe);Me!==this._fontSet&&(this._fontSet=Me,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(oe){const Me=this._cleanupFontValue(oe);Me!==this._fontIcon&&(this._fontIcon=Me,this._updateFontIconClasses())}_splitIconName(oe){if(!oe)return["",""];const Me=oe.split(":");switch(Me.length){case 1:return["",Me[0]];case 2:return Me;default:throw Error(`Invalid icon name: "${oe}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const oe=this._elementsWithExternalReferences;if(oe&&oe.size){const Me=this._location.getPathname();Me!==this._previousPath&&(this._previousPath=Me,this._prependPathToReferences(Me))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(oe){this._clearSvgElement();const Me=this._location.getPathname();this._previousPath=Me,this._cacheChildrenWithExternalReferences(oe),this._prependPathToReferences(Me),this._elementRef.nativeElement.appendChild(oe)}_clearSvgElement(){const oe=this._elementRef.nativeElement;let Me=oe.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();Me--;){const en=oe.childNodes[Me];(1!==en.nodeType||"svg"===en.nodeName.toLowerCase())&&en.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const oe=this._elementRef.nativeElement,Me=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(en=>en.length>0);this._previousFontSetClass.forEach(en=>oe.classList.remove(en)),Me.forEach(en=>oe.classList.add(en)),this._previousFontSetClass=Me,this.fontIcon!==this._previousFontIconClass&&!Me.includes("mat-ligature-font")&&(this._previousFontIconClass&&oe.classList.remove(this._previousFontIconClass),this.fontIcon&&oe.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(oe){return"string"==typeof oe?oe.trim().split(" ")[0]:oe}_prependPathToReferences(oe){const Me=this._elementsWithExternalReferences;Me&&Me.forEach((en,_n)=>{en.forEach(xe=>{_n.setAttribute(xe.name,`url('${oe}#${xe.value}')`)})})}_cacheChildrenWithExternalReferences(oe){const Me=oe.querySelectorAll(Gt),en=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let _n=0;_n{const vn=Me[_n],ke=vn.getAttribute(xe),un=ke?ke.match(Te):null;if(un){let Dn=en.get(vn);Dn||(Dn=[],en.set(vn,Dn)),Dn.push({name:xe,value:un[1]})}})}_updateSvgIcon(oe){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),oe){const[Me,en]=this._splitIconName(oe);Me&&(this._svgNamespace=Me),en&&(this._svgName=en),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(en,Me).pipe((0,W.q)(1)).subscribe(_n=>this._setSvgElement(_n),_n=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${Me}:${en}! ${_n.message}`))})}}}return re.\u0275fac=function(oe){return new(oe||re)(u.Y36(u.SBq),u.Y36(pt),u.$8M("aria-hidden"),u.Y36(Le),u.Y36(u.qLn),u.Y36(fe,8))},re.\u0275cmp=u.Xpm({type:re,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(oe,Me){2&oe&&(u.uIk("data-mat-icon-type",Me._usingFontIcon()?"font":"svg")("data-mat-icon-name",Me._svgName||Me.fontIcon)("data-mat-icon-namespace",Me._svgNamespace||Me.fontSet)("fontIcon",Me._usingFontIcon()?Me.fontIcon:null),u.ekj("mat-icon-inline",Me.inline)("mat-icon-no-color","primary"!==Me.color&&"accent"!==Me.color&&"warn"!==Me.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[u.qOj],ngContentSelectors:ct,decls:1,vars:0,template:function(oe,Me){1&oe&&(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}),re})(),jt=(()=>{class re{}return re.\u0275fac=function(oe){return new(oe||re)},re.\u0275mod=u.oAB({type:re}),re.\u0275inj=u.cJS({imports:[p.BQ,p.BQ]}),re})()},284:(X,j,h)=>{"use strict";h.d(j,{Jk:()=>O,Nt:()=>W,c:()=>tt});var u=h(21281),p=h(83353),x=h(39349),v=h(94650),t=h(24006),T=h(3238),U=h(59549),w=h(8929);const O=new v.OlP("MAT_INPUT_VALUE_ACCESSOR"),L=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let N=0;const V=(0,T.FD)(class{constructor(st,ct,bt,Dt){this._defaultErrorStateMatcher=st,this._parentForm=ct,this._parentFormGroup=bt,this.ngControl=Dt,this.stateChanges=new w.xQ}});let W=(()=>{class st extends V{constructor(bt,Dt,wt,qt,Jt,yt,At,xt,pt,Ot){super(yt,qt,Jt,wt),this._elementRef=bt,this._platform=Dt,this._autofillMonitor=xt,this._formField=Ot,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(ce=>(0,p.qK)().has(ce)),this._iOSKeyupListener=ce=>{const Vt=ce.target;!Vt.value&&0===Vt.selectionStart&&0===Vt.selectionEnd&&(Vt.setSelectionRange(1,1),Vt.setSelectionRange(0,0))};const Bt=this._elementRef.nativeElement,St=Bt.nodeName.toLowerCase();this._inputValueAccessor=At||Bt,this._previousNativeValue=this.value,this.id=this.id,Dt.IOS&&pt.runOutsideAngular(()=>{bt.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===St,this._isTextarea="textarea"===St,this._isInFormField=!!Ot,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(bt){this._disabled=(0,u.Ig)(bt),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(bt){this._id=bt||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(t.kI.required)??!1}set required(bt){this._required=(0,u.Ig)(bt)}get type(){return this._type}set type(bt){this._type=bt||"text",this._validateType(),!this._isTextarea&&(0,p.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(bt){bt!==this.value&&(this._inputValueAccessor.value=bt,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(bt){this._readonly=(0,u.Ig)(bt)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(bt=>{this.autofilled=bt.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(bt){this._elementRef.nativeElement.focus(bt)}_focusChanged(bt){bt!==this.focused&&(this.focused=bt,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const bt=this._formField,Dt=bt&&"legacy"===bt.appearance&&!bt._hasLabel?.()?null:this.placeholder;if(Dt!==this._previousPlaceholder){const wt=this._elementRef.nativeElement;this._previousPlaceholder=Dt,Dt?wt.setAttribute("placeholder",Dt):wt.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const bt=this._elementRef.nativeElement.value;this._previousNativeValue!==bt&&(this._previousNativeValue=bt,this.stateChanges.next())}_validateType(){L.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let bt=this._elementRef.nativeElement.validity;return bt&&bt.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const bt=this._elementRef.nativeElement,Dt=bt.options[0];return this.focused||bt.multiple||!this.empty||!!(bt.selectedIndex>-1&&Dt&&Dt.label)}return this.focused||!this.empty}setDescribedByIds(bt){bt.length?this._elementRef.nativeElement.setAttribute("aria-describedby",bt.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const bt=this._elementRef.nativeElement;return this._isNativeSelect&&(bt.multiple||bt.size>1)}}return st.\u0275fac=function(bt){return new(bt||st)(v.Y36(v.SBq),v.Y36(p.t4),v.Y36(t.a5,10),v.Y36(t.F,8),v.Y36(t.sg,8),v.Y36(T.rD),v.Y36(O,10),v.Y36(x.Lq),v.Y36(v.R0b),v.Y36(U.G_,8))},st.\u0275dir=v.lG2({type:st,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(bt,Dt){1&bt&&v.NdJ("focus",function(){return Dt._focusChanged(!0)})("blur",function(){return Dt._focusChanged(!1)})("input",function(){return Dt._onInput()}),2&bt&&(v.Ikx("disabled",Dt.disabled)("required",Dt.required),v.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),v.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:[v._Bn([{provide:U.Eo,useExisting:st}]),v.qOj,v.TTD]}),st})(),tt=(()=>{class st{}return st.\u0275fac=function(bt){return new(bt||st)},st.\u0275mod=v.oAB({type:st}),st.\u0275inj=v.cJS({providers:[T.rD],imports:[x.Ky,U.lN,T.BQ,x.Ky,U.lN]}),st})()},96338:(X,j,h)=>{"use strict";h.d(j,{Hk:()=>xt,Nh:()=>Bt,Tg:()=>ce,gs:()=>St,i$:()=>pt,ie:()=>Gt});var u=h(36895),p=h(94650),x=h(3238),v=h(21281),t=h(8929),T=h(7625),N=(h(1059),h(12687),h(95017),h(29521),h(24006),h(44850));const V=["*"],tt=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],st=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],qt=(0,x.Id)((0,x.Kr)(class{})),Jt=(0,x.Kr)(class{}),yt=new p.OlP("MatList"),At=new p.OlP("MatNavList");let xt=(()=>{class Te extends qt{constructor(){super(...arguments),this._stateChanges=new t.xQ}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return Te.\u0275fac=function(){let ne;return function(re){return(ne||(ne=p.n5z(Te)))(re||Te)}}(),Te.\u0275cmp=p.Xpm({type:Te,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[p._Bn([{provide:At,useExisting:Te}]),p.qOj,p.TTD],ngContentSelectors:V,decls:1,vars:0,template:function(jt,re){1&jt&&(p.F$t(),p.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}),Te})(),pt=(()=>{class Te extends qt{constructor(jt){super(),this._elementRef=jt,this._stateChanges=new t.xQ,"action-list"===this._getListType()&&(jt.nativeElement.classList.add("mat-action-list"),jt.nativeElement.setAttribute("role","group"))}_getListType(){const jt=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===jt?"list":"mat-action-list"===jt?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return Te.\u0275fac=function(jt){return new(jt||Te)(p.Y36(p.SBq))},Te.\u0275cmp=p.Xpm({type:Te,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[p._Bn([{provide:yt,useExisting:Te}]),p.qOj,p.TTD],ngContentSelectors:V,decls:1,vars:0,template:function(jt,re){1&jt&&(p.F$t(),p.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}),Te})(),Ot=(()=>{class Te{}return Te.\u0275fac=function(jt){return new(jt||Te)},Te.\u0275dir=p.lG2({type:Te,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),Te})(),Bt=(()=>{class Te{}return Te.\u0275fac=function(jt){return new(jt||Te)},Te.\u0275dir=p.lG2({type:Te,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),Te})(),St=(()=>{class Te{}return Te.\u0275fac=function(jt){return new(jt||Te)},Te.\u0275dir=p.lG2({type:Te,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-subheader"]}),Te})(),ce=(()=>{class Te extends Jt{constructor(jt,re,Xt,oe){super(),this._element=jt,this._isInteractiveList=!1,this._destroyed=new t.xQ,this._disabled=!1,this._isInteractiveList=!!(Xt||oe&&"action-list"===oe._getListType()),this._list=Xt||oe;const Me=this._getHostElement();"button"===Me.nodeName.toLowerCase()&&!Me.hasAttribute("type")&&Me.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe((0,T.R)(this._destroyed)).subscribe(()=>{re.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(jt){this._disabled=(0,v.Ig)(jt)}ngAfterContentInit(){(0,x.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 Te.\u0275fac=function(jt){return new(jt||Te)(p.Y36(p.SBq),p.Y36(p.sBO),p.Y36(At,8),p.Y36(yt,8))},Te.\u0275cmp=p.Xpm({type:Te,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(jt,re,Xt){if(1&jt&&(p.Suo(Xt,Ot,5),p.Suo(Xt,Bt,5),p.Suo(Xt,x.X2,5)),2&jt){let oe;p.iGM(oe=p.CRH())&&(re._avatar=oe.first),p.iGM(oe=p.CRH())&&(re._icon=oe.first),p.iGM(oe=p.CRH())&&(re._lines=oe)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:4,hostBindings:function(jt,re){2&jt&&p.ekj("mat-list-item-disabled",re.disabled)("mat-list-item-with-avatar",re._avatar||re._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[p.qOj],ngContentSelectors:st,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(jt,re){1&jt&&(p.F$t(tt),p.TgZ(0,"span",0),p._UZ(1,"span",1),p.Hsn(2),p.TgZ(3,"span",2),p.Hsn(4,1),p.qZA(),p.Hsn(5,2),p.qZA()),2&jt&&(p.xp6(1),p.Q6J("matRippleTrigger",re._getHostElement())("matRippleDisabled",re._isRippleDisabled()))},dependencies:[x.wG],encapsulation:2,changeDetection:0}),Te})(),Gt=(()=>{class Te{}return Te.\u0275fac=function(jt){return new(jt||Te)},Te.\u0275mod=p.oAB({type:Te}),Te.\u0275inj=p.cJS({imports:[x.uc,x.si,x.BQ,x.us,u.ez,x.uc,x.BQ,x.us,N.t]}),Te})()},28255:(X,j,h)=>{"use strict";h.d(j,{OP:()=>ne,Tx:()=>ii,VK:()=>Me,p6:()=>Dn});var u=h(12687),p=h(21281),x=h(29521),v=h(94650),t=h(8929),T=h(42654),U=h(36787),w=h(21086),P=h(8139),O=h(1059),L=h(87545),N=h(72986),V=h(7625),W=h(92198),tt=h(18583),st=h(37340),ct=h(84080),bt=h(36895),Dt=h(3238),wt=h(40445),qt=h(98184),Jt=h(83353),yt=h(67376);const At=["mat-menu-item",""];function xt(_i,oi){1&_i&&(v.O4$(),v.TgZ(0,"svg",2),v._UZ(1,"polygon",3),v.qZA())}const pt=["*"];function Ot(_i,oi){if(1&_i){const Qe=v.EpF();v.TgZ(0,"div",0),v.NdJ("keydown",function(it){v.CHM(Qe);const K=v.oxw();return v.KtG(K._handleKeydown(it))})("click",function(){v.CHM(Qe);const it=v.oxw();return v.KtG(it.closed.emit("click"))})("@transformMenu.start",function(it){v.CHM(Qe);const K=v.oxw();return v.KtG(K._onAnimationStart(it))})("@transformMenu.done",function(it){v.CHM(Qe);const K=v.oxw();return v.KtG(K._onAnimationDone(it))}),v.TgZ(1,"div",1),v.Hsn(2),v.qZA()()}if(2&_i){const Qe=v.oxw();v.Q6J("id",Qe.panelId)("ngClass",Qe._classList)("@transformMenu",Qe._panelAnimationState),v.uIk("aria-label",Qe.ariaLabel||null)("aria-labelledby",Qe.ariaLabelledby||null)("aria-describedby",Qe.ariaDescribedby||null)}}const Bt={transformMenu:(0,st.X$)("transformMenu",[(0,st.SB)("void",(0,st.oB)({opacity:0,transform:"scale(0.8)"})),(0,st.eR)("void => enter",(0,st.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,st.oB)({opacity:1,transform:"scale(1)"}))),(0,st.eR)("* => void",(0,st.jt)("100ms 25ms linear",(0,st.oB)({opacity:0})))]),fadeInItems:(0,st.X$)("fadeInItems",[(0,st.SB)("showing",(0,st.oB)({opacity:1})),(0,st.eR)("void => *",[(0,st.oB)({opacity:0}),(0,st.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Vt=new v.OlP("MatMenuContent"),Gt=new v.OlP("MAT_MENU_PANEL"),Te=(0,Dt.Kr)((0,Dt.Id)(class{}));let ne=(()=>{class _i extends Te{constructor(Qe,te,it,K,Tt){super(),this._elementRef=Qe,this._document=te,this._focusMonitor=it,this._parentMenu=K,this._changeDetectorRef=Tt,this.role="menuitem",this._hovered=new t.xQ,this._focused=new t.xQ,this._highlighted=!1,this._triggersSubmenu=!1,K?.addItem?.(this)}focus(Qe,te){this._focusMonitor&&Qe?this._focusMonitor.focusVia(this._getHostElement(),Qe,te):this._getHostElement().focus(te),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(Qe){this.disabled&&(Qe.preventDefault(),Qe.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const Qe=this._elementRef.nativeElement.cloneNode(!0),te=Qe.querySelectorAll("mat-icon, .material-icons");for(let it=0;it{class _i{constructor(Qe,te,it,K){this._elementRef=Qe,this._ngZone=te,this._defaultOptions=it,this._changeDetectorRef=K,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new v.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 v.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+Xt++}get xPosition(){return this._xPosition}set xPosition(Qe){this._xPosition=Qe,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(Qe){this._yPosition=Qe,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(Qe){this._overlapTrigger=(0,p.Ig)(Qe)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(Qe){this._hasBackdrop=(0,p.Ig)(Qe)}set panelClass(Qe){const te=this._previousPanelClass;te&&te.length&&te.split(" ").forEach(it=>{this._classList[it]=!1}),this._previousPanelClass=Qe,Qe&&Qe.length&&(Qe.split(" ").forEach(it=>{this._classList[it]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(Qe){this.panelClass=Qe}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)(Qe=>(0,U.T)(...Qe.map(te=>te._focused)))).subscribe(Qe=>this._keyManager.updateActiveItem(Qe)),this._directDescendantItems.changes.subscribe(Qe=>{const te=this._keyManager;if("enter"===this._panelAnimationState&&te.activeItem?._hasFocus()){const it=Qe.toArray(),K=Math.max(0,Math.min(it.length-1,te.activeItemIndex||0));it[K]&&!it[K].disabled?te.setActiveItem(K):te.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)(te=>(0,U.T)(...te.map(it=>it._hovered))))}addItem(Qe){}removeItem(Qe){}_handleKeydown(Qe){const te=Qe.keyCode,it=this._keyManager;switch(te){case x.hY:(0,x.Vb)(Qe)||(Qe.preventDefault(),this.closed.emit("keydown"));break;case x.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case x.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(te===x.LH||te===x.JH)&&it.setFocusOrigin("keyboard"),void it.onKeydown(Qe)}Qe.stopPropagation()}focusFirstItem(Qe="program"){this._ngZone.onStable.pipe((0,N.q)(1)).subscribe(()=>{let te=null;if(this._directDescendantItems.length&&(te=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!te||!te.contains(document.activeElement)){const it=this._keyManager;it.setFocusOrigin(Qe).setFirstItemActive(),!it.activeItem&&te&&te.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(Qe){const te=Math.min(this._baseElevation+Qe,24),it=`${this._elevationPrefix}${te}`,K=Object.keys(this._classList).find(Tt=>Tt.startsWith(this._elevationPrefix));(!K||K===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[it]=!0,this._previousElevation=it)}setPositionClasses(Qe=this.xPosition,te=this.yPosition){const it=this._classList;it["mat-menu-before"]="before"===Qe,it["mat-menu-after"]="after"===Qe,it["mat-menu-above"]="above"===te,it["mat-menu-below"]="below"===te,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(Qe){this._animationDone.next(Qe),this._isAnimating=!1}_onAnimationStart(Qe){this._isAnimating=!0,"enter"===Qe.toState&&0===this._keyManager.activeItemIndex&&(Qe.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,O.O)(this._allItems)).subscribe(Qe=>{this._directDescendantItems.reset(Qe.filter(te=>te._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return _i.\u0275fac=function(Qe){return new(Qe||_i)(v.Y36(v.SBq),v.Y36(v.R0b),v.Y36(jt),v.Y36(v.sBO))},_i.\u0275dir=v.lG2({type:_i,contentQueries:function(Qe,te,it){if(1&Qe&&(v.Suo(it,Vt,5),v.Suo(it,ne,5),v.Suo(it,ne,4)),2&Qe){let K;v.iGM(K=v.CRH())&&(te.lazyContent=K.first),v.iGM(K=v.CRH())&&(te._allItems=K),v.iGM(K=v.CRH())&&(te.items=K)}},viewQuery:function(Qe,te){if(1&Qe&&v.Gf(v.Rgc,5),2&Qe){let it;v.iGM(it=v.CRH())&&(te.templateRef=it.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})(),Me=(()=>{class _i extends oe{constructor(Qe,te,it,K){super(Qe,te,it,K),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return _i.\u0275fac=function(Qe){return new(Qe||_i)(v.Y36(v.SBq),v.Y36(v.R0b),v.Y36(jt),v.Y36(v.sBO))},_i.\u0275cmp=v.Xpm({type:_i,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(Qe,te){2&Qe&&v.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[v._Bn([{provide:Gt,useExisting:_i}]),v.qOj],ngContentSelectors:pt,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(Qe,te){1&Qe&&(v.F$t(),v.YNc(0,Ot,3,6,"ng-template"))},dependencies:[bt.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 en=new v.OlP("mat-menu-scroll-strategy"),xe={provide:en,deps:[qt.aV],useFactory:function _n(_i){return()=>_i.scrollStrategies.reposition()}},ke=(0,Jt.i$)({passive:!0});let un=(()=>{class _i{constructor(Qe,te,it,K,Tt,Rt,le,be,De){this._overlay=Qe,this._element=te,this._viewContainerRef=it,this._menuItemInstance=Rt,this._dir=le,this._focusMonitor=be,this._ngZone=De,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=T.w.EMPTY,this._hoverSubscription=T.w.EMPTY,this._menuCloseSubscription=T.w.EMPTY,this._handleTouchStart=hn=>{(0,u.yG)(hn)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new v.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new v.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=K,this._parentMaterialMenu=Tt instanceof oe?Tt:void 0,te.nativeElement.addEventListener("touchstart",this._handleTouchStart,ke),Rt&&(Rt._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(Qe){this.menu=Qe}get menu(){return this._menu}set menu(Qe){Qe!==this._menu&&(this._menu=Qe,this._menuCloseSubscription.unsubscribe(),Qe&&(this._menuCloseSubscription=Qe.close.subscribe(te=>{this._destroyMenu(te),("click"===te||"tab"===te)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(te)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,ke),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 Qe=this.menu;if(this._menuOpen||!Qe)return;const te=this._createOverlay(Qe),it=te.getConfig(),K=it.positionStrategy;this._setPosition(Qe,K),it.hasBackdrop=Qe.hasBackdrop??!this.triggersSubmenu(),te.attach(this._getPortal(Qe)),Qe.lazyContent&&Qe.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(Qe),Qe instanceof oe&&(Qe._startAnimation(),Qe._directDescendantItems.changes.pipe((0,V.R)(Qe.close)).subscribe(()=>{K.withLockedPosition(!1).reapplyLastPosition(),K.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(Qe,te){this._focusMonitor&&Qe?this._focusMonitor.focusVia(this._element,Qe,te):this._element.nativeElement.focus(te)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(Qe){if(!this._overlayRef||!this.menuOpen)return;const te=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===Qe||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,te instanceof oe?(te._resetAnimation(),te.lazyContent?te._animationDone.pipe((0,W.h)(it=>"void"===it.toState),(0,N.q)(1),(0,V.R)(te.lazyContent._attached)).subscribe({next:()=>te.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),te?.lazyContent?.detach())}_initMenu(Qe){Qe.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,Qe.direction=this.dir,this._setMenuElevation(Qe),Qe.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(Qe){if(Qe.setElevation){let te=0,it=Qe.parentMenu;for(;it;)te++,it=it.parentMenu;Qe.setElevation(te)}}_setIsMenuOpen(Qe){this._menuOpen=Qe,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(Qe)}_createOverlay(Qe){if(!this._overlayRef){const te=this._getOverlayConfig(Qe);this._subscribeToPositions(Qe,te.positionStrategy),this._overlayRef=this._overlay.create(te),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(Qe){return new qt.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:Qe.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:Qe.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(Qe,te){Qe.setPositionClasses&&te.positionChanges.subscribe(it=>{const K="start"===it.connectionPair.overlayX?"after":"before",Tt="top"===it.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>Qe.setPositionClasses(K,Tt)):Qe.setPositionClasses(K,Tt)})}_setPosition(Qe,te){let[it,K]="before"===Qe.xPosition?["end","start"]:["start","end"],[Tt,Rt]="above"===Qe.yPosition?["bottom","top"]:["top","bottom"],[le,be]=[Tt,Rt],[De,hn]=[it,K],qn=0;if(this.triggersSubmenu()){if(hn=it="before"===Qe.xPosition?"start":"end",K=De="end"===it?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const mi=this._parentMaterialMenu.items.first;this._parentInnerPadding=mi?mi._getHostElement().offsetTop:0}qn="bottom"===Tt?this._parentInnerPadding:-this._parentInnerPadding}}else Qe.overlapTrigger||(le="top"===Tt?"bottom":"top",be="top"===Rt?"bottom":"top");te.withPositions([{originX:it,originY:le,overlayX:De,overlayY:Tt,offsetY:qn},{originX:K,originY:le,overlayX:hn,overlayY:Tt,offsetY:qn},{originX:it,originY:be,overlayX:De,overlayY:Rt,offsetY:-qn},{originX:K,originY:be,overlayX:hn,overlayY:Rt,offsetY:-qn}])}_menuClosingActions(){const Qe=this._overlayRef.backdropClick(),te=this._overlayRef.detachments(),it=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,w.of)(),K=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,W.h)(Tt=>Tt!==this._menuItemInstance),(0,W.h)(()=>this._menuOpen)):(0,w.of)();return(0,U.T)(Qe,it,K,te)}_handleMousedown(Qe){(0,u.X6)(Qe)||(this._openedBy=0===Qe.button?"mouse":void 0,this.triggersSubmenu()&&Qe.preventDefault())}_handleKeydown(Qe){const te=Qe.keyCode;(te===x.K5||te===x.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(te===x.SV&&"ltr"===this.dir||te===x.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(Qe){this.triggersSubmenu()?(Qe.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,W.h)(Qe=>Qe===this._menuItemInstance&&!Qe.disabled),(0,tt.g)(0,P.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof oe&&this.menu._isAnimating?this.menu._animationDone.pipe((0,N.q)(1),(0,tt.g)(0,P.E),(0,V.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(Qe){return(!this._portal||this._portal.templateRef!==Qe.templateRef)&&(this._portal=new ct.UE(Qe.templateRef,this._viewContainerRef)),this._portal}}return _i.\u0275fac=function(Qe){return new(Qe||_i)(v.Y36(qt.aV),v.Y36(v.SBq),v.Y36(v.s_b),v.Y36(en),v.Y36(Gt,8),v.Y36(ne,10),v.Y36(wt.Is,8),v.Y36(u.tE),v.Y36(v.R0b))},_i.\u0275dir=v.lG2({type:_i,hostVars:3,hostBindings:function(Qe,te){1&Qe&&v.NdJ("click",function(K){return te._handleClick(K)})("mousedown",function(K){return te._handleMousedown(K)})("keydown",function(K){return te._handleKeydown(K)}),2&Qe&&v.uIk("aria-haspopup",te.menu?"menu":null)("aria-expanded",te.menuOpen||null)("aria-controls",te.menuOpen?te.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})(),Dn=(()=>{class _i extends un{}return _i.\u0275fac=function(){let oi;return function(te){return(oi||(oi=v.n5z(_i)))(te||_i)}}(),_i.\u0275dir=v.lG2({type:_i,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[v.qOj]}),_i})(),ii=(()=>{class _i{}return _i.\u0275fac=function(Qe){return new(Qe||_i)},_i.\u0275mod=v.oAB({type:_i}),_i.\u0275inj=v.cJS({providers:[xe],imports:[bt.ez,Dt.BQ,Dt.si,qt.U8,yt.ZD,Dt.BQ]}),_i})()},98739:(X,j,h)=>{"use strict";h.d(j,{NW:()=>At,TU:()=>xt});var u=h(36895),p=h(94650),x=h(3238),v=h(4859),t=h(84385),T=h(10266),U=h(21281),w=h(8929),P=h(59549);function O(pt,Ot){if(1&pt&&(p.TgZ(0,"mat-option",19),p._uU(1),p.qZA()),2&pt){const Bt=Ot.$implicit;p.Q6J("value",Bt),p.xp6(1),p.hij(" ",Bt," ")}}function L(pt,Ot){if(1&pt){const Bt=p.EpF();p.TgZ(0,"mat-form-field",16)(1,"mat-select",17),p.NdJ("selectionChange",function(ce){p.CHM(Bt);const Vt=p.oxw(2);return p.KtG(Vt._changePageSize(ce.value))}),p.YNc(2,O,2,2,"mat-option",18),p.qZA()()}if(2&pt){const Bt=p.oxw(2);p.Q6J("appearance",Bt._formFieldAppearance)("color",Bt.color),p.xp6(1),p.Q6J("value",Bt.pageSize)("disabled",Bt.disabled)("panelClass",Bt.selectConfig.panelClass||"")("disableOptionCentering",Bt.selectConfig.disableOptionCentering)("aria-label",Bt._intl.itemsPerPageLabel),p.xp6(1),p.Q6J("ngForOf",Bt._displayedPageSizeOptions)}}function N(pt,Ot){if(1&pt&&(p.TgZ(0,"div",20),p._uU(1),p.qZA()),2&pt){const Bt=p.oxw(2);p.xp6(1),p.Oqu(Bt.pageSize)}}function V(pt,Ot){if(1&pt&&(p.TgZ(0,"div",12)(1,"div",13),p._uU(2),p.qZA(),p.YNc(3,L,3,8,"mat-form-field",14),p.YNc(4,N,2,1,"div",15),p.qZA()),2&pt){const Bt=p.oxw();p.xp6(2),p.hij(" ",Bt._intl.itemsPerPageLabel," "),p.xp6(1),p.Q6J("ngIf",Bt._displayedPageSizeOptions.length>1),p.xp6(1),p.Q6J("ngIf",Bt._displayedPageSizeOptions.length<=1)}}function W(pt,Ot){if(1&pt){const Bt=p.EpF();p.TgZ(0,"button",21),p.NdJ("click",function(){p.CHM(Bt);const ce=p.oxw();return p.KtG(ce.firstPage())}),p.O4$(),p.TgZ(1,"svg",7),p._UZ(2,"path",22),p.qZA()()}if(2&pt){const Bt=p.oxw();p.Q6J("matTooltip",Bt._intl.firstPageLabel)("matTooltipDisabled",Bt._previousButtonsDisabled())("matTooltipPosition","above")("disabled",Bt._previousButtonsDisabled()),p.uIk("aria-label",Bt._intl.firstPageLabel)}}function tt(pt,Ot){if(1&pt){const Bt=p.EpF();p.O4$(),p.kcU(),p.TgZ(0,"button",23),p.NdJ("click",function(){p.CHM(Bt);const ce=p.oxw();return p.KtG(ce.lastPage())}),p.O4$(),p.TgZ(1,"svg",7),p._UZ(2,"path",24),p.qZA()()}if(2&pt){const Bt=p.oxw();p.Q6J("matTooltip",Bt._intl.lastPageLabel)("matTooltipDisabled",Bt._nextButtonsDisabled())("matTooltipPosition","above")("disabled",Bt._nextButtonsDisabled()),p.uIk("aria-label",Bt._intl.lastPageLabel)}}let st=(()=>{class pt{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,St,ce)=>{if(0==ce||0==St)return`0 of ${ce}`;const Vt=Bt*St;return`${Vt+1} \u2013 ${Vt<(ce=Math.max(ce,0))?Math.min(Vt+St,ce):Vt+St} of ${ce}`}}}return pt.\u0275fac=function(Bt){return new(Bt||pt)},pt.\u0275prov=p.Yz7({token:pt,factory:pt.\u0275fac,providedIn:"root"}),pt})();const bt={provide:st,deps:[[new p.FiY,new p.tp0,st]],useFactory:function ct(pt){return pt||new st}},qt=new p.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),Jt=(0,x.Id)((0,x.dB)(class{}));let yt=(()=>{class pt extends Jt{constructor(Bt,St,ce){if(super(),this._intl=Bt,this._changeDetectorRef=St,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new p.vpe,this._intlChanges=Bt.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),ce){const{pageSize:Vt,pageSizeOptions:ve,hidePageSize:fe,showFirstLastButtons:Le}=ce;null!=Vt&&(this._pageSize=Vt),null!=ve&&(this._pageSizeOptions=ve),null!=fe&&(this._hidePageSize=fe),null!=Le&&(this._showFirstLastButtons=Le)}}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(St=>(0,U.su)(St)),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-St),this._changeDetectorRef.markForCheck())}_emitPageEvent(Bt){this.page.emit({previousPageIndex:Bt,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return pt.\u0275fac=function(Bt){p.$Z()},pt.\u0275dir=p.lG2({type:pt,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[p.qOj]}),pt})(),At=(()=>{class pt extends yt{constructor(Bt,St,ce){super(Bt,St,ce),ce&&null!=ce.formFieldAppearance&&(this._formFieldAppearance=ce.formFieldAppearance)}}return pt.\u0275fac=function(Bt){return new(Bt||pt)(p.Y36(st),p.Y36(p.sBO),p.Y36(qt,8))},pt.\u0275cmp=p.Xpm({type:pt,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[p.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,St){1&Bt&&(p.TgZ(0,"div",0)(1,"div",1),p.YNc(2,V,5,3,"div",2),p.TgZ(3,"div",3)(4,"div",4),p._uU(5),p.qZA(),p.YNc(6,W,3,5,"button",5),p.TgZ(7,"button",6),p.NdJ("click",function(){return St.previousPage()}),p.O4$(),p.TgZ(8,"svg",7),p._UZ(9,"path",8),p.qZA()(),p.kcU(),p.TgZ(10,"button",9),p.NdJ("click",function(){return St.nextPage()}),p.O4$(),p.TgZ(11,"svg",7),p._UZ(12,"path",10),p.qZA()(),p.YNc(13,tt,3,5,"button",11),p.qZA()()()),2&Bt&&(p.xp6(2),p.Q6J("ngIf",!St.hidePageSize),p.xp6(3),p.hij(" ",St._intl.getRangeLabel(St.pageIndex,St.pageSize,St.length)," "),p.xp6(1),p.Q6J("ngIf",St.showFirstLastButtons),p.xp6(1),p.Q6J("matTooltip",St._intl.previousPageLabel)("matTooltipDisabled",St._previousButtonsDisabled())("matTooltipPosition","above")("disabled",St._previousButtonsDisabled()),p.uIk("aria-label",St._intl.previousPageLabel),p.xp6(3),p.Q6J("matTooltip",St._intl.nextPageLabel)("matTooltipDisabled",St._nextButtonsDisabled())("matTooltipPosition","above")("disabled",St._nextButtonsDisabled()),p.uIk("aria-label",St._intl.nextPageLabel),p.xp6(3),p.Q6J("ngIf",St.showFirstLastButtons))},dependencies:[u.sg,u.O5,v.lW,P.KE,t.gD,x.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}),pt})(),xt=(()=>{class pt{}return pt.\u0275fac=function(Bt){return new(Bt||pt)},pt.\u0275mod=p.oAB({type:pt}),pt.\u0275inj=p.cJS({providers:[bt],imports:[u.ez,v.ot,t.LD,T.AV,x.BQ]}),pt})()},73162:(X,j,h)=>{"use strict";h.d(j,{Cv:()=>st,pW:()=>W});var u=h(94650),p=h(36895),x=h(3238),v=h(21281),t=h(42654),T=h(23753),U=h(92198);const w=["primaryValueBar"],P=(0,x.pj)(class{constructor(ct){this._elementRef=ct}},"primary"),O=new u.OlP("mat-progress-bar-location",{providedIn:"root",factory:function L(){const ct=(0,u.f3M)(p.K0),bt=ct?ct.location:null;return{getPathname:()=>bt?bt.pathname+bt.search:""}}}),N=new u.OlP("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");let V=0,W=(()=>{class ct extends P{constructor(Dt,wt,qt,Jt,yt,At){super(Dt),this._ngZone=wt,this._animationMode=qt,this._changeDetectorRef=At,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-"+V++;const xt=Jt?Jt.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${xt}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===qt,yt&&(yt.color&&(this.color=this.defaultColor=yt.color),this.mode=yt.mode||this.mode)}get value(){return this._value}set value(Dt){this._value=tt((0,v.su)(Dt)||0),this._changeDetectorRef?.markForCheck()}get bufferValue(){return this._bufferValue}set bufferValue(Dt){this._bufferValue=tt(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)(wt=>wt.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 ct.\u0275fac=function(Dt){return new(Dt||ct)(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))},ct.\u0275cmp=u.Xpm({type:ct,selectors:[["mat-progress-bar"]],viewQuery:function(Dt,wt){if(1&Dt&&u.Gf(w,5),2&Dt){let qt;u.iGM(qt=u.CRH())&&(wt._primaryValueBar=qt.first)}},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(Dt,wt){2&Dt&&(u.uIk("aria-valuenow","indeterminate"===wt.mode||"query"===wt.mode?null:wt.value)("mode",wt.mode),u.ekj("_mat-animation-noopable",wt._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,wt){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",wt.progressbarId),u.xp6(2),u.uIk("fill",wt._rectangleFillValue),u.xp6(1),u.Q6J("ngStyle",wt._bufferTransform()),u.xp6(1),u.Q6J("ngStyle",wt._primaryTransform()))},dependencies:[p.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}),ct})();function tt(ct,bt=0,Dt=100){return Math.max(bt,Math.min(Dt,ct))}let st=(()=>{class ct{}return ct.\u0275fac=function(Dt){return new(Dt||ct)},ct.\u0275mod=u.oAB({type:ct}),ct.\u0275inj=u.cJS({imports:[p.ez,x.BQ,x.BQ]}),ct})()},51572:(X,j,h)=>{"use strict";h.d(j,{Cq:()=>ct,Ou:()=>st});var u=h(21281),p=h(83353),x=h(67376),v=h(36895),t=h(94650),T=h(3238),U=h(42654);function w(Dt,wt){if(1&Dt&&(t.O4$(),t._UZ(0,"circle",4)),2&Dt){const qt=t.oxw(),Jt=t.MAs(1);t.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+qt._spinnerAnimationLabel)("stroke-dashoffset",qt._getStrokeDashOffset(),"px")("stroke-dasharray",qt._getStrokeCircumference(),"px")("stroke-width",qt._getCircleStrokeWidth(),"%")("transform-origin",qt._getCircleTransformOrigin(Jt)),t.uIk("r",qt._getCircleRadius())}}function P(Dt,wt){if(1&Dt&&(t.O4$(),t._UZ(0,"circle",4)),2&Dt){const qt=t.oxw(),Jt=t.MAs(1);t.Udp("stroke-dashoffset",qt._getStrokeDashOffset(),"px")("stroke-dasharray",qt._getStrokeCircumference(),"px")("stroke-width",qt._getCircleStrokeWidth(),"%")("transform-origin",qt._getCircleTransformOrigin(Jt)),t.uIk("r",qt._getCircleRadius())}}const N=(0,T.pj)(class{constructor(Dt){this._elementRef=Dt}},"primary"),V=new t.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function W(){return{diameter:100}}});class st extends N{constructor(wt,qt,Jt,yt,At,xt,pt,Ot){super(wt),this._document=Jt,this._diameter=100,this._value=0,this._resizeSubscription=U.w.EMPTY,this.mode="determinate";const Bt=st._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),Bt.has(Jt.head)||Bt.set(Jt.head,new Set([100])),this._noopAnimations="NoopAnimations"===yt&&!!At&&!At._forceAnimations,"mat-spinner"===wt.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),At&&(At.color&&(this.color=this.defaultColor=At.color),At.diameter&&(this.diameter=At.diameter),At.strokeWidth&&(this.strokeWidth=At.strokeWidth)),qt.isBrowser&&qt.SAFARI&&pt&&xt&&Ot&&(this._resizeSubscription=pt.change(150).subscribe(()=>{"indeterminate"===this.mode&&Ot.run(()=>xt.markForCheck())}))}get diameter(){return this._diameter}set diameter(wt){this._diameter=(0,u.su)(wt),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(wt){this._strokeWidth=(0,u.su)(wt)}get value(){return"determinate"===this.mode?this._value:0}set value(wt){this._value=Math.max(0,Math.min(100,(0,u.su)(wt)))}ngOnInit(){const wt=this._elementRef.nativeElement;this._styleRoot=(0,p.kV)(wt)||this._document.head,this._attachStyleNode(),wt.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const wt=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${wt} ${wt}`}_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(wt){const qt=50*(wt.currentScale??1);return`${qt}% ${qt}%`}_attachStyleNode(){const wt=this._styleRoot,qt=this._diameter,Jt=st._diameters;let yt=Jt.get(wt);if(!yt||!yt.has(qt)){const At=this._document.createElement("style");At.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),At.textContent=this._getAnimationText(),wt.appendChild(At),yt||(yt=new Set,Jt.set(wt,yt)),yt.add(qt)}}_getAnimationText(){const wt=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*wt).replace(/END_VALUE/g,""+.2*wt).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}st._diameters=new WeakMap,st.\u0275fac=function(wt){return new(wt||st)(t.Y36(t.SBq),t.Y36(p.t4),t.Y36(v.K0,8),t.Y36(t.QbO,8),t.Y36(V),t.Y36(t.sBO),t.Y36(x.rL),t.Y36(t.R0b))},st.\u0275cmp=t.Xpm({type:st,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(wt,qt){2&wt&&(t.uIk("aria-valuemin","determinate"===qt.mode?0:null)("aria-valuemax","determinate"===qt.mode?100:null)("aria-valuenow","determinate"===qt.mode?qt.value:null)("mode",qt.mode),t.Udp("width",qt.diameter,"px")("height",qt.diameter,"px"),t.ekj("_mat-animation-noopable",qt._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(wt,qt){1&wt&&(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&wt&&(t.Udp("width",qt.diameter,"px")("height",qt.diameter,"px"),t.Q6J("ngSwitch","indeterminate"===qt.mode),t.uIk("viewBox",qt._getViewBox()),t.xp6(2),t.Q6J("ngSwitchCase",!0),t.xp6(1),t.Q6J("ngSwitchCase",!1))},dependencies:[v.RF,v.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 ct=(()=>{class Dt{}return Dt.\u0275fac=function(qt){return new(qt||Dt)},Dt.\u0275mod=t.oAB({type:Dt}),Dt.\u0275inj=t.cJS({imports:[T.BQ,v.ez,T.BQ]}),Dt})()},71948:(X,j,h)=>{"use strict";h.d(j,{Fk:()=>Jt,U0:()=>qt,VQ:()=>ct});var u=h(94650),p=h(3238),x=h(12687),v=h(21281),t=h(95017),T=h(24006);const U=["input"],w=function(yt){return{enterDuration:yt}},P=["*"],O=new u.OlP("mat-radio-default-options",{providedIn:"root",factory:function L(){return{color:"accent"}}});let N=0;const V={provide:T.JU,useExisting:(0,u.Gpc)(()=>ct),multi:!0};class W{constructor(At,xt){this.source=At,this.value=xt}}const tt=new u.OlP("MatRadioGroup");let st=(()=>{class yt{constructor(xt){this._changeDetector=xt,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(xt){this._name=xt,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(xt){this._labelPosition="before"===xt?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(xt){this._value!==xt&&(this._value=xt,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(xt){this._selected=xt,this.value=xt?xt.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(xt){this._disabled=(0,v.Ig)(xt),this._markRadiosForCheck()}get required(){return this._required}set required(xt){this._required=(0,v.Ig)(xt),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(xt=>{xt.name=this.name,xt._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(pt=>{pt.checked=this.value===pt.value,pt.checked&&(this._selected=pt)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new W(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(xt=>xt._markForCheck())}writeValue(xt){this.value=xt,this._changeDetector.markForCheck()}registerOnChange(xt){this._controlValueAccessorChangeFn=xt}registerOnTouched(xt){this.onTouched=xt}setDisabledState(xt){this.disabled=xt,this._changeDetector.markForCheck()}}return yt.\u0275fac=function(xt){return new(xt||yt)(u.Y36(u.sBO))},yt.\u0275dir=u.lG2({type:yt,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),yt})(),ct=(()=>{class yt extends st{}return yt.\u0275fac=function(){let At;return function(pt){return(At||(At=u.n5z(yt)))(pt||yt)}}(),yt.\u0275dir=u.lG2({type:yt,selectors:[["mat-radio-group"]],contentQueries:function(xt,pt,Ot){if(1&xt&&u.Suo(Ot,qt,5),2&xt){let Bt;u.iGM(Bt=u.CRH())&&(pt._radios=Bt)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[u._Bn([V,{provide:tt,useExisting:yt}]),u.qOj]}),yt})();class bt{constructor(At){this._elementRef=At}}const Dt=(0,p.Kr)((0,p.sb)(bt));let wt=(()=>{class yt extends Dt{constructor(xt,pt,Ot,Bt,St,ce,Vt,ve){super(pt),this._changeDetector=Ot,this._focusMonitor=Bt,this._radioDispatcher=St,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=xt,this._noopAnimations="NoopAnimations"===ce,ve&&(this.tabIndex=(0,v.su)(ve,0)),this._removeUniqueSelectionListener=St.listen((fe,Le)=>{fe!==this.id&&Le===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(xt){const pt=(0,v.Ig)(xt);this._checked!==pt&&(this._checked=pt,pt&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!pt&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),pt&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(xt){this._value!==xt&&(this._value=xt,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===xt),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(xt){this._labelPosition=xt}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(xt){this._setDisabled((0,v.Ig)(xt))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(xt){this._required=(0,v.Ig)(xt)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(xt){this._color=xt}get inputId(){return`${this.id||this._uniqueId}-input`}focus(xt,pt){pt?this._focusMonitor.focusVia(this._inputElement,pt,xt):this._inputElement.nativeElement.focus(xt)}_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(xt=>{!xt&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new W(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(xt){xt.stopPropagation()}_onInputInteraction(xt){if(xt.stopPropagation(),!this.checked&&!this.disabled){const pt=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),pt&&this.radioGroup._emitChangeEvent())}}_setDisabled(xt){this._disabled!==xt&&(this._disabled=xt,this._changeDetector.markForCheck())}_updateTabIndex(){const xt=this.radioGroup;let pt;if(pt=xt&&xt.selected&&!this.disabled?xt.selected===this?this.tabIndex:-1:this.tabIndex,pt!==this._previousTabIndex){const Ot=this._inputElement?.nativeElement;Ot&&(Ot.setAttribute("tabindex",pt+""),this._previousTabIndex=pt)}}}return yt.\u0275fac=function(xt){u.$Z()},yt.\u0275dir=u.lG2({type:yt,viewQuery:function(xt,pt){if(1&xt&&u.Gf(U,5),2&xt){let Ot;u.iGM(Ot=u.CRH())&&(pt._inputElement=Ot.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]}),yt})(),qt=(()=>{class yt extends wt{constructor(xt,pt,Ot,Bt,St,ce,Vt,ve){super(xt,pt,Ot,Bt,St,ce,Vt,ve)}}return yt.\u0275fac=function(xt){return new(xt||yt)(u.Y36(tt,8),u.Y36(u.SBq),u.Y36(u.sBO),u.Y36(x.tE),u.Y36(t.A8),u.Y36(u.QbO,8),u.Y36(O,8),u.$8M("tabindex"))},yt.\u0275cmp=u.Xpm({type:yt,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(xt,pt){1&xt&&u.NdJ("focus",function(){return pt._inputElement.nativeElement.focus()}),2&xt&&(u.uIk("tabindex",null)("id",pt.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),u.ekj("mat-radio-checked",pt.checked)("mat-radio-disabled",pt.disabled)("_mat-animation-noopable",pt._noopAnimations)("mat-primary","primary"===pt.color)("mat-accent","accent"===pt.color)("mat-warn","warn"===pt.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(xt,pt){if(1&xt&&(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 pt._onInputInteraction(Bt)})("click",function(Bt){return pt._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&xt){const Ot=u.MAs(1);u.uIk("for",pt.inputId),u.xp6(5),u.Q6J("id",pt.inputId)("checked",pt.checked)("disabled",pt.disabled)("required",pt.required),u.uIk("name",pt.name)("value",pt.value)("aria-label",pt.ariaLabel)("aria-labelledby",pt.ariaLabelledby)("aria-describedby",pt.ariaDescribedby),u.xp6(2),u.Q6J("matRippleTrigger",Ot)("matRippleDisabled",pt._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",u.VKq(17,w,pt._noopAnimations?0:150)),u.xp6(2),u.ekj("mat-radio-label-before","before"==pt.labelPosition)}},dependencies:[p.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}),yt})(),Jt=(()=>{class yt{}return yt.\u0275fac=function(xt){return new(xt||yt)},yt.\u0275mod=u.oAB({type:yt}),yt.\u0275inj=u.cJS({imports:[p.si,p.BQ,p.BQ]}),yt})()},84385:(X,j,h)=>{"use strict";h.d(j,{LD:()=>oi,gD:()=>_i});var u=h(98184),p=h(36895),x=h(94650),v=h(3238),t=h(59549),T=h(67376),U=h(12687),w=h(40445),P=h(21281),O=h(95017),L=h(29521),N=h(24006),V=h(8929),W=h(88514),tt=h(36787),st=h(1059),ct=h(87545),bt=h(72986),Dt=h(92198),wt=h(24850),qt=h(75778),Jt=h(7625),yt=h(37340);const At=["trigger"],xt=["panel"];function pt(Qe,te){if(1&Qe&&(x.TgZ(0,"span",8),x._uU(1),x.qZA()),2&Qe){const it=x.oxw();x.xp6(1),x.Oqu(it.placeholder)}}function Ot(Qe,te){if(1&Qe&&(x.TgZ(0,"span",12),x._uU(1),x.qZA()),2&Qe){const it=x.oxw(2);x.xp6(1),x.Oqu(it.triggerValue)}}function Bt(Qe,te){1&Qe&&x.Hsn(0,0,["*ngSwitchCase","true"])}function St(Qe,te){if(1&Qe&&(x.TgZ(0,"span",9),x.YNc(1,Ot,2,1,"span",10),x.YNc(2,Bt,1,0,"ng-content",11),x.qZA()),2&Qe){const it=x.oxw();x.Q6J("ngSwitch",!!it.customTrigger),x.xp6(2),x.Q6J("ngSwitchCase",!0)}}function ce(Qe,te){if(1&Qe){const it=x.EpF();x.TgZ(0,"div",13)(1,"div",14,15),x.NdJ("@transformPanel.done",function(Tt){x.CHM(it);const Rt=x.oxw();return x.KtG(Rt._panelDoneAnimatingStream.next(Tt.toState))})("keydown",function(Tt){x.CHM(it);const Rt=x.oxw();return x.KtG(Rt._handleKeydown(Tt))}),x.Hsn(3,1),x.qZA()()}if(2&Qe){const it=x.oxw();x.Q6J("@transformPanelWrap",void 0),x.xp6(1),x.Gre("mat-select-panel ",it._getPanelTheme(),""),x.Udp("transform-origin",it._transformOrigin)("font-size",it._triggerFontSize,"px"),x.Q6J("ngClass",it.panelClass)("@transformPanel",it.multiple?"showing-multiple":"showing"),x.uIk("id",it.id+"-panel")("aria-multiselectable",it.multiple)("aria-label",it.ariaLabel||null)("aria-labelledby",it._getPanelAriaLabelledby())}}const Vt=[[["mat-select-trigger"]],"*"],ve=["mat-select-trigger","*"],fe={transformPanelWrap:(0,yt.X$)("transformPanelWrap",[(0,yt.eR)("* => void",(0,yt.IO)("@transformPanel",[(0,yt.pV)()],{optional:!0}))]),transformPanel:(0,yt.X$)("transformPanel",[(0,yt.SB)("void",(0,yt.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,yt.SB)("showing",(0,yt.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,yt.SB)("showing-multiple",(0,yt.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,yt.eR)("void => *",(0,yt.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,yt.eR)("* => void",(0,yt.jt)("100ms 25ms linear",(0,yt.oB)({opacity:0})))])};let Gt=0;const Me=new x.OlP("mat-select-scroll-strategy"),_n=new x.OlP("MAT_SELECT_CONFIG"),xe={provide:Me,deps:[u.aV],useFactory:function en(Qe){return()=>Qe.scrollStrategies.reposition()}};class vn{constructor(te,it){this.source=te,this.value=it}}const ke=(0,v.Kr)((0,v.sb)((0,v.Id)((0,v.FD)(class{constructor(Qe,te,it,K,Tt){this._elementRef=Qe,this._defaultErrorStateMatcher=te,this._parentForm=it,this._parentFormGroup=K,this.ngControl=Tt,this.stateChanges=new V.xQ}})))),un=new x.OlP("MatSelectTrigger");let ii=(()=>{class Qe extends ke{constructor(it,K,Tt,Rt,le,be,De,hn,qn,mi,Di,bo,hi,Yn){super(le,Rt,De,hn,mi),this._viewportRuler=it,this._changeDetectorRef=K,this._ngZone=Tt,this._dir=be,this._parentFormField=qn,this._liveAnnouncer=hi,this._defaultOptions=Yn,this._panelOpen=!1,this._compareWith=(Vn,Je)=>Vn===Je,this._uid="mat-select-"+Gt++,this._triggerAriaLabelledBy=null,this._destroy=new V.xQ,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+Gt++,this._panelDoneAnimatingStream=new V.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,W.P)(()=>{const Vn=this.options;return Vn?Vn.changes.pipe((0,st.O)(Vn),(0,ct.w)(()=>(0,tt.T)(...Vn.map(Je=>Je.onSelectionChange)))):this._ngZone.onStable.pipe((0,bt.q)(1),(0,ct.w)(()=>this.optionSelectionChanges))}),this.openedChange=new x.vpe,this._openedStream=this.openedChange.pipe((0,Dt.h)(Vn=>Vn),(0,wt.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,Dt.h)(Vn=>!Vn),(0,wt.U)(()=>{})),this.selectionChange=new x.vpe,this.valueChange=new x.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=Yn?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=Yn.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(it){this._placeholder=it,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(N.kI.required)??!1}set required(it){this._required=(0,P.Ig)(it),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(it){this._multiple=(0,P.Ig)(it)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(it){this._disableOptionCentering=(0,P.Ig)(it)}get compareWith(){return this._compareWith}set compareWith(it){this._compareWith=it,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(it){this._assignValue(it)&&this._onChange(it)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(it){this._typeaheadDebounceInterval=(0,P.su)(it)}get id(){return this._id}set id(it){this._id=it||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new O.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,qt.x)(),(0,Jt.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,Jt.R)(this._destroy)).subscribe(it=>{it.added.forEach(K=>K.select()),it.removed.forEach(K=>K.deselect())}),this.options.changes.pipe((0,st.O)(null),(0,Jt.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const it=this._getTriggerAriaLabelledby(),K=this.ngControl;if(it!==this._triggerAriaLabelledBy){const Tt=this._elementRef.nativeElement;this._triggerAriaLabelledBy=it,it?Tt.setAttribute("aria-labelledby",it):Tt.removeAttribute("aria-labelledby")}K&&(this._previousControl!==K.control&&(void 0!==this._previousControl&&null!==K.disabled&&K.disabled!==this.disabled&&(this.disabled=K.disabled),this._previousControl=K.control),this.updateErrorState())}ngOnChanges(it){(it.disabled||it.userAriaDescribedBy)&&this.stateChanges.next(),it.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(it){this._assignValue(it)}registerOnChange(it){this._onChange=it}registerOnTouched(it){this._onTouched=it}setDisabledState(it){this.disabled=it,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 it=this._selectionModel.selected.map(K=>K.viewValue);return this._isRtl()&&it.reverse(),it.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(it){this.disabled||(this.panelOpen?this._handleOpenKeydown(it):this._handleClosedKeydown(it))}_handleClosedKeydown(it){const K=it.keyCode,Tt=K===L.JH||K===L.LH||K===L.oh||K===L.SV,Rt=K===L.K5||K===L.L_,le=this._keyManager;if(!le.isTyping()&&Rt&&!(0,L.Vb)(it)||(this.multiple||it.altKey)&&Tt)it.preventDefault(),this.open();else if(!this.multiple){const be=this.selected;le.onKeydown(it);const De=this.selected;De&&be!==De&&this._liveAnnouncer.announce(De.viewValue,1e4)}}_handleOpenKeydown(it){const K=this._keyManager,Tt=it.keyCode,Rt=Tt===L.JH||Tt===L.LH,le=K.isTyping();if(Rt&&it.altKey)it.preventDefault(),this.close();else if(le||Tt!==L.K5&&Tt!==L.L_||!K.activeItem||(0,L.Vb)(it))if(!le&&this._multiple&&Tt===L.A&&it.ctrlKey){it.preventDefault();const be=this.options.some(De=>!De.disabled&&!De.selected);this.options.forEach(De=>{De.disabled||(be?De.select():De.deselect())})}else{const be=K.activeItemIndex;K.onKeydown(it),this._multiple&&Rt&&it.shiftKey&&K.activeItem&&K.activeItemIndex!==be&&K.activeItem._selectViaInteraction()}else it.preventDefault(),K.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,bt.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(it){if(this._selectionModel.selected.forEach(K=>K.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&it)Array.isArray(it),it.forEach(K=>this._selectOptionByValue(K)),this._sortValues();else{const K=this._selectOptionByValue(it);K?this._keyManager.updateActiveItem(K):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(it){const K=this.options.find(Tt=>{if(this._selectionModel.isSelected(Tt))return!1;try{return null!=Tt.value&&this._compareWith(Tt.value,it)}catch{return!1}});return K&&this._selectionModel.select(K),K}_assignValue(it){return!!(it!==this._value||this._multiple&&Array.isArray(it))&&(this.options&&this._setSelectionByValue(it),this._value=it,!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,Jt.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,Jt.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 it=(0,tt.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,Jt.R)(it)).subscribe(K=>{this._onSelect(K.source,K.isUserInput),K.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,tt.T)(...this.options.map(K=>K._stateChanges)).pipe((0,Jt.R)(it)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(it,K){const Tt=this._selectionModel.isSelected(it);null!=it.value||this._multiple?(Tt!==it.selected&&(it.selected?this._selectionModel.select(it):this._selectionModel.deselect(it)),K&&this._keyManager.setActiveItem(it),this.multiple&&(this._sortValues(),K&&this.focus())):(it.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(it.value)),Tt!==this._selectionModel.isSelected(it)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const it=this.options.toArray();this._selectionModel.sort((K,Tt)=>this.sortComparator?this.sortComparator(K,Tt,it):it.indexOf(K)-it.indexOf(Tt)),this.stateChanges.next()}}_propagateChanges(it){let K=null;K=this.multiple?this.selected.map(Tt=>Tt.value):this.selected?this.selected.value:it,this._value=K,this.valueChange.emit(K),this._onChange(K),this.selectionChange.emit(this._getChangeEvent(K)),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(it){this._elementRef.nativeElement.focus(it)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const it=this._parentFormField?.getLabelId();return this.ariaLabelledby?(it?it+" ":"")+this.ariaLabelledby:it}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const it=this._parentFormField?.getLabelId();let K=(it?it+" ":"")+this._valueId;return this.ariaLabelledby&&(K+=" "+this.ariaLabelledby),K}_panelDoneAnimating(it){this.openedChange.emit(it)}setDescribedByIds(it){it.length?this._elementRef.nativeElement.setAttribute("aria-describedby",it.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return Qe.\u0275fac=function(it){return new(it||Qe)(x.Y36(T.rL),x.Y36(x.sBO),x.Y36(x.R0b),x.Y36(v.rD),x.Y36(x.SBq),x.Y36(w.Is,8),x.Y36(N.F,8),x.Y36(N.sg,8),x.Y36(t.G_,8),x.Y36(N.a5,10),x.$8M("tabindex"),x.Y36(Me),x.Y36(U.Kd),x.Y36(_n,8))},Qe.\u0275dir=x.lG2({type:Qe,viewQuery:function(it,K){if(1&it&&(x.Gf(At,5),x.Gf(xt,5),x.Gf(u.pI,5)),2&it){let Tt;x.iGM(Tt=x.CRH())&&(K.trigger=Tt.first),x.iGM(Tt=x.CRH())&&(K.panel=Tt.first),x.iGM(Tt=x.CRH())&&(K._overlayDir=Tt.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:[x.qOj,x.TTD]}),Qe})(),_i=(()=>{class Qe 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(it,K,Tt){const Rt=this._getItemHeight();return Math.min(Math.max(0,Rt*it-K+Rt/2),Tt)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,Jt.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,bt.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(it){const K=(0,v.CB)(it,this.options,this.optionGroups),Tt=this._getItemHeight();this.panel.nativeElement.scrollTop=0===it&&1===K?0:(0,v.jH)((it+K)*Tt,Tt,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(it){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(it)}_getChangeEvent(it){return new vn(this,it)}_calculateOverlayOffsetX(){const it=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),K=this._viewportRuler.getViewportSize(),Tt=this._isRtl(),Rt=this.multiple?56:32;let le;if(this.multiple)le=40;else if(this.disableOptionCentering)le=16;else{let hn=this._selectionModel.selected[0]||this.options.first;le=hn&&hn.group?32:16}Tt||(le*=-1);const be=0-(it.left+le-(Tt?Rt:0)),De=it.right+le-K.width+(Tt?0:Rt);be>0?le+=be+8:De>0&&(le-=De+8),this._overlayDir.offsetX=Math.round(le),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(it,K,Tt){const Rt=this._getItemHeight(),le=(Rt-this._triggerRect.height)/2,be=Math.floor(256/Rt);let De;return this.disableOptionCentering?0:(De=0===this._scrollTop?it*Rt:this._scrollTop===Tt?(it-(this._getItemCount()-be))*Rt+(Rt-(this._getItemCount()*Rt-256)%Rt):K-Rt/2,Math.round(-1*De-le))}_checkOverlayWithinViewport(it){const K=this._getItemHeight(),Tt=this._viewportRuler.getViewportSize(),Rt=this._triggerRect.top-8,le=Tt.height-this._triggerRect.bottom-8,be=Math.abs(this._offsetY),hn=Math.min(this._getItemCount()*K,256)-be-this._triggerRect.height;hn>le?this._adjustPanelUp(hn,le):be>Rt?this._adjustPanelDown(be,Rt,it):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(it,K){const Tt=Math.round(it-K);this._scrollTop-=Tt,this._offsetY-=Tt,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(it,K,Tt){const Rt=Math.round(it-K);if(this._scrollTop+=Rt,this._offsetY+=Rt,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=Tt)return this._scrollTop=Tt,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const it=this._getItemHeight(),K=this._getItemCount(),Tt=Math.min(K*it,256),le=K*it-Tt;let be;be=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),be+=(0,v.CB)(be,this.options,this.optionGroups);const De=Tt/2;this._scrollTop=this._calculateOverlayScroll(be,De,le),this._offsetY=this._calculateOverlayOffsetY(be,De,le),this._checkOverlayWithinViewport(le)}_getOriginBasedOnOption(){const it=this._getItemHeight(),K=(it-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-K+it/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return Qe.\u0275fac=function(){let te;return function(K){return(te||(te=x.n5z(Qe)))(K||Qe)}}(),Qe.\u0275cmp=x.Xpm({type:Qe,selectors:[["mat-select"]],contentQueries:function(it,K,Tt){if(1&it&&(x.Suo(Tt,un,5),x.Suo(Tt,v.ey,5),x.Suo(Tt,v.K7,5)),2&it){let Rt;x.iGM(Rt=x.CRH())&&(K.customTrigger=Rt.first),x.iGM(Rt=x.CRH())&&(K.options=Rt),x.iGM(Rt=x.CRH())&&(K.optionGroups=Rt)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(it,K){1&it&&x.NdJ("keydown",function(Rt){return K._handleKeydown(Rt)})("focus",function(){return K._onFocus()})("blur",function(){return K._onBlur()}),2&it&&(x.uIk("id",K.id)("tabindex",K.tabIndex)("aria-controls",K.panelOpen?K.id+"-panel":null)("aria-expanded",K.panelOpen)("aria-label",K.ariaLabel||null)("aria-required",K.required.toString())("aria-disabled",K.disabled.toString())("aria-invalid",K.errorState)("aria-activedescendant",K._getAriaActiveDescendant()),x.ekj("mat-select-disabled",K.disabled)("mat-select-invalid",K.errorState)("mat-select-required",K.required)("mat-select-empty",K.empty)("mat-select-multiple",K.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[x._Bn([{provide:t.Eo,useExisting:Qe},{provide:v.HF,useExisting:Qe}]),x.qOj],ngContentSelectors:ve,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(it,K){if(1&it&&(x.F$t(Vt),x.TgZ(0,"div",0,1),x.NdJ("click",function(){return K.toggle()}),x.TgZ(3,"div",2),x.YNc(4,pt,2,1,"span",3),x.YNc(5,St,3,2,"span",4),x.qZA(),x.TgZ(6,"div",5),x._UZ(7,"div",6),x.qZA()(),x.YNc(8,ce,4,14,"ng-template",7),x.NdJ("backdropClick",function(){return K.close()})("attach",function(){return K._onAttached()})("detach",function(){return K.close()})),2&it){const Tt=x.MAs(1);x.uIk("aria-owns",K.panelOpen?K.id+"-panel":null),x.xp6(3),x.Q6J("ngSwitch",K.empty),x.uIk("id",K._valueId),x.xp6(1),x.Q6J("ngSwitchCase",!0),x.xp6(1),x.Q6J("ngSwitchCase",!1),x.xp6(3),x.Q6J("cdkConnectedOverlayPanelClass",K._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",K._scrollStrategy)("cdkConnectedOverlayOrigin",Tt)("cdkConnectedOverlayOpen",K.panelOpen)("cdkConnectedOverlayPositions",K._positions)("cdkConnectedOverlayMinWidth",null==K._triggerRect?null:K._triggerRect.width)("cdkConnectedOverlayOffsetY",K._offsetY)}},dependencies:[p.mk,p.RF,p.n9,p.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:[fe.transformPanelWrap,fe.transformPanel]},changeDetection:0}),Qe})(),oi=(()=>{class Qe{}return Qe.\u0275fac=function(it){return new(it||Qe)},Qe.\u0275mod=x.oAB({type:Qe}),Qe.\u0275inj=x.cJS({providers:[xe],imports:[p.ez,u.U8,v.Ng,v.BQ,T.ZD,t.lN,v.Ng,v.BQ]}),Qe})()},23267:(X,j,h)=>{"use strict";h.d(j,{JX:()=>Xt,Rh:()=>re,SJ:()=>Me,TM:()=>oe});var u=h(67376),p=h(36895),x=h(94650),v=h(3238),t=h(12687),T=h(40445),U=h(21281),w=h(29521),P=h(83353),O=h(8929),L=h(23753),N=h(36787),V=h(92198),W=h(24850),tt=h(77604),st=h(7625),ct=h(75778),bt=h(72986),Dt=h(1059),wt=h(80013),qt=h(37340);const Jt=["*"],yt=["content"];function At(en,_n){if(1&en){const xe=x.EpF();x.TgZ(0,"div",2),x.NdJ("click",function(){x.CHM(xe);const ke=x.oxw();return x.KtG(ke._onBackdropClicked())}),x.qZA()}if(2&en){const xe=x.oxw();x.ekj("mat-drawer-shown",xe._isShowingBackdrop())}}function xt(en,_n){1&en&&(x.TgZ(0,"mat-drawer-content"),x.Hsn(1,2),x.qZA())}const pt=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Ot=["mat-drawer","mat-drawer-content","*"];function Bt(en,_n){if(1&en){const xe=x.EpF();x.TgZ(0,"div",2),x.NdJ("click",function(){x.CHM(xe);const ke=x.oxw();return x.KtG(ke._onBackdropClicked())}),x.qZA()}if(2&en){const xe=x.oxw();x.ekj("mat-drawer-shown",xe._isShowingBackdrop())}}function St(en,_n){1&en&&(x.TgZ(0,"mat-sidenav-content"),x.Hsn(1,2),x.qZA())}const ce=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],Vt=["mat-sidenav","mat-sidenav-content","*"],fe={transformDrawer:(0,qt.X$)("transform",[(0,qt.SB)("open, open-instant",(0,qt.oB)({transform:"none",visibility:"visible"})),(0,qt.SB)("void",(0,qt.oB)({"box-shadow":"none",visibility:"hidden"})),(0,qt.eR)("void => open-instant",(0,qt.jt)("0ms")),(0,qt.eR)("void <=> open, open-instant => void",(0,qt.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},Fe=new x.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function Gt(){return!1}}),Ge=new x.OlP("MAT_DRAWER_CONTAINER");let Te=(()=>{class en extends u.PQ{constructor(xe,vn,ke,un,Dn){super(ke,un,Dn),this._changeDetectorRef=xe,this._container=vn}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return en.\u0275fac=function(xe){return new(xe||en)(x.Y36(x.sBO),x.Y36((0,x.Gpc)(()=>jt)),x.Y36(x.SBq),x.Y36(u.mF),x.Y36(x.R0b))},en.\u0275cmp=x.Xpm({type:en,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(xe,vn){2&xe&&x.Udp("margin-left",vn._container._contentMargins.left,"px")("margin-right",vn._container._contentMargins.right,"px")},features:[x._Bn([{provide:u.PQ,useExisting:en}]),x.qOj],ngContentSelectors:Jt,decls:1,vars:0,template:function(xe,vn){1&xe&&(x.F$t(),x.Hsn(0))},encapsulation:2,changeDetection:0}),en})(),ne=(()=>{class en{constructor(xe,vn,ke,un,Dn,ii,_i,oi){this._elementRef=xe,this._focusTrapFactory=vn,this._focusMonitor=ke,this._platform=un,this._ngZone=Dn,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 x.vpe(!0),this._openedStream=this.openedChange.pipe((0,V.h)(Qe=>Qe),(0,W.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,V.h)(Qe=>Qe.fromState!==Qe.toState&&0===Qe.toState.indexOf("open")),(0,tt.h)(void 0)),this._closedStream=this.openedChange.pipe((0,V.h)(Qe=>!Qe),(0,W.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,V.h)(Qe=>Qe.fromState!==Qe.toState&&"void"===Qe.toState),(0,tt.h)(void 0)),this._destroyed=new O.xQ,this.onPositionChanged=new x.vpe,this._modeChanged=new O.xQ,this.openedChange.subscribe(Qe=>{Qe?(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,V.h)(Qe=>Qe.keyCode===w.hY&&!this.disableClose&&!(0,w.Vb)(Qe)),(0,st.R)(this._destroyed)).subscribe(Qe=>this._ngZone.run(()=>{this.close(),Qe.stopPropagation(),Qe.preventDefault()}))}),this._animationEnd.pipe((0,ct.x)((Qe,te)=>Qe.fromState===te.fromState&&Qe.toState===te.toState)).subscribe(Qe=>{const{fromState:te,toState:it}=Qe;(0===it.indexOf("open")&&"void"===te||"void"===it&&0===te.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(xe){(xe="end"===xe?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(xe),this._position=xe,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(xe){this._mode=xe,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(xe){this._disableClose=(0,U.Ig)(xe)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(xe){("true"===xe||"false"===xe||null==xe)&&(xe=(0,U.Ig)(xe)),this._autoFocus=xe}get opened(){return this._opened}set opened(xe){this.toggle((0,U.Ig)(xe))}_forceFocus(xe,vn){this._interactivityChecker.isFocusable(xe)||(xe.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const ke=()=>{xe.removeEventListener("blur",ke),xe.removeEventListener("mousedown",ke),xe.removeAttribute("tabindex")};xe.addEventListener("blur",ke),xe.addEventListener("mousedown",ke)})),xe.focus(vn)}_focusByCssSelector(xe,vn){let ke=this._elementRef.nativeElement.querySelector(xe);ke&&this._forceFocus(ke,vn)}_takeFocus(){if(!this._focusTrap)return;const xe=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(vn=>{!vn&&"function"==typeof this._elementRef.nativeElement.focus&&xe.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(xe){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,xe):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const xe=this._doc.activeElement;return!!xe&&this._elementRef.nativeElement.contains(xe)}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(xe){return this.toggle(!0,xe)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(xe=!this.opened,vn){xe&&vn&&(this._openedVia=vn);const ke=this._setOpen(xe,!xe&&this._isFocusWithinDrawer(),this._openedVia||"program");return xe||(this._openedVia=null),ke}_setOpen(xe,vn,ke){return this._opened=xe,xe?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",vn&&this._restoreFocus(ke)),this._updateFocusTrapState(),new Promise(un=>{this.openedChange.pipe((0,bt.q)(1)).subscribe(Dn=>un(Dn?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(xe){const vn=this._elementRef.nativeElement,ke=vn.parentNode;"end"===xe?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),ke.insertBefore(this._anchor,vn)),ke.appendChild(vn)):this._anchor&&this._anchor.parentNode.insertBefore(vn,this._anchor)}}return en.\u0275fac=function(xe){return new(xe||en)(x.Y36(x.SBq),x.Y36(t.qV),x.Y36(t.tE),x.Y36(P.t4),x.Y36(x.R0b),x.Y36(t.ic),x.Y36(p.K0,8),x.Y36(Ge,8))},en.\u0275cmp=x.Xpm({type:en,selectors:[["mat-drawer"]],viewQuery:function(xe,vn){if(1&xe&&x.Gf(yt,5),2&xe){let ke;x.iGM(ke=x.CRH())&&(vn._content=ke.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(xe,vn){1&xe&&x.WFA("@transform.start",function(un){return vn._animationStarted.next(un)})("@transform.done",function(un){return vn._animationEnd.next(un)}),2&xe&&(x.uIk("align",null),x.d8E("@transform",vn._animationState),x.ekj("mat-drawer-end","end"===vn.position)("mat-drawer-over","over"===vn.mode)("mat-drawer-push","push"===vn.mode)("mat-drawer-side","side"===vn.mode)("mat-drawer-opened",vn.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:Jt,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(xe,vn){1&xe&&(x.F$t(),x.TgZ(0,"div",0,1),x.Hsn(2),x.qZA())},dependencies:[u.PQ],encapsulation:2,data:{animation:[fe.transformDrawer]},changeDetection:0}),en})(),jt=(()=>{class en{constructor(xe,vn,ke,un,Dn,ii=!1,_i){this._dir=xe,this._element=vn,this._ngZone=ke,this._changeDetectorRef=un,this._animationMode=_i,this._drawers=new x.n_E,this.backdropClick=new x.vpe,this._destroyed=new O.xQ,this._doCheckSubject=new O.xQ,this._contentMargins={left:null,right:null},this._contentMarginChanges=new O.xQ,xe&&xe.change.pipe((0,st.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),Dn.change().pipe((0,st.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(xe){this._autosize=(0,U.Ig)(xe)}get hasBackdrop(){return this._backdropOverride??(!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode)}set hasBackdrop(xe){this._backdropOverride=null==xe?null:(0,U.Ig)(xe)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe((0,Dt.O)(this._allDrawers),(0,st.R)(this._destroyed)).subscribe(xe=>{this._drawers.reset(xe.filter(vn=>!vn._container||vn._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,Dt.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(xe=>{this._watchDrawerToggle(xe),this._watchDrawerPosition(xe),this._watchDrawerMode(xe)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,wt.b)(10),(0,st.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(xe=>xe.open())}close(){this._drawers.forEach(xe=>xe.close())}updateContentMargins(){let xe=0,vn=0;if(this._left&&this._left.opened)if("side"==this._left.mode)xe+=this._left._getWidth();else if("push"==this._left.mode){const ke=this._left._getWidth();xe+=ke,vn-=ke}if(this._right&&this._right.opened)if("side"==this._right.mode)vn+=this._right._getWidth();else if("push"==this._right.mode){const ke=this._right._getWidth();vn+=ke,xe-=ke}xe=xe||null,vn=vn||null,(xe!==this._contentMargins.left||vn!==this._contentMargins.right)&&(this._contentMargins={left:xe,right:vn},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(xe){xe._animationStarted.pipe((0,V.h)(vn=>vn.fromState!==vn.toState),(0,st.R)(this._drawers.changes)).subscribe(vn=>{"open-instant"!==vn.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==xe.mode&&xe.openedChange.pipe((0,st.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(xe.opened))}_watchDrawerPosition(xe){!xe||xe.onPositionChanged.pipe((0,st.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,bt.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(xe){xe&&xe._modeChanged.pipe((0,st.R)((0,N.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(xe){const vn=this._element.nativeElement.classList,ke="mat-drawer-container-has-open";xe?vn.add(ke):vn.remove(ke)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(xe=>{"end"==xe.position?this._end=xe:this._start=xe}),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(xe=>xe&&!xe.disableClose&&this._canHaveBackdrop(xe)).forEach(xe=>xe._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(xe){return"side"!==xe.mode||!!this._backdropOverride}_isDrawerOpen(xe){return null!=xe&&xe.opened}}return en.\u0275fac=function(xe){return new(xe||en)(x.Y36(T.Is,8),x.Y36(x.SBq),x.Y36(x.R0b),x.Y36(x.sBO),x.Y36(u.rL),x.Y36(Fe),x.Y36(x.QbO,8))},en.\u0275cmp=x.Xpm({type:en,selectors:[["mat-drawer-container"]],contentQueries:function(xe,vn,ke){if(1&xe&&(x.Suo(ke,Te,5),x.Suo(ke,ne,5)),2&xe){let un;x.iGM(un=x.CRH())&&(vn._content=un.first),x.iGM(un=x.CRH())&&(vn._allDrawers=un)}},viewQuery:function(xe,vn){if(1&xe&&x.Gf(Te,5),2&xe){let ke;x.iGM(ke=x.CRH())&&(vn._userContent=ke.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(xe,vn){2&xe&&x.ekj("mat-drawer-container-explicit-backdrop",vn._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[x._Bn([{provide:Ge,useExisting:en}])],ngContentSelectors:Ot,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(xe,vn){1&xe&&(x.F$t(pt),x.YNc(0,At,1,2,"div",0),x.Hsn(1),x.Hsn(2,1),x.YNc(3,xt,2,0,"mat-drawer-content",1)),2&xe&&(x.Q6J("ngIf",vn.hasBackdrop),x.xp6(3),x.Q6J("ngIf",!vn._content))},dependencies:[p.O5,Te],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}),en})(),re=(()=>{class en extends Te{constructor(xe,vn,ke,un,Dn){super(xe,vn,ke,un,Dn)}}return en.\u0275fac=function(xe){return new(xe||en)(x.Y36(x.sBO),x.Y36((0,x.Gpc)(()=>oe)),x.Y36(x.SBq),x.Y36(u.mF),x.Y36(x.R0b))},en.\u0275cmp=x.Xpm({type:en,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(xe,vn){2&xe&&x.Udp("margin-left",vn._container._contentMargins.left,"px")("margin-right",vn._container._contentMargins.right,"px")},features:[x._Bn([{provide:u.PQ,useExisting:en}]),x.qOj],ngContentSelectors:Jt,decls:1,vars:0,template:function(xe,vn){1&xe&&(x.F$t(),x.Hsn(0))},encapsulation:2,changeDetection:0}),en})(),Xt=(()=>{class en extends ne{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(xe){this._fixedInViewport=(0,U.Ig)(xe)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(xe){this._fixedTopGap=(0,U.su)(xe)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(xe){this._fixedBottomGap=(0,U.su)(xe)}}return en.\u0275fac=function(){let _n;return function(vn){return(_n||(_n=x.n5z(en)))(vn||en)}}(),en.\u0275cmp=x.Xpm({type:en,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(xe,vn){2&xe&&(x.uIk("align",null),x.Udp("top",vn.fixedInViewport?vn.fixedTopGap:null,"px")("bottom",vn.fixedInViewport?vn.fixedBottomGap:null,"px"),x.ekj("mat-drawer-end","end"===vn.position)("mat-drawer-over","over"===vn.mode)("mat-drawer-push","push"===vn.mode)("mat-drawer-side","side"===vn.mode)("mat-drawer-opened",vn.opened)("mat-sidenav-fixed",vn.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[x.qOj],ngContentSelectors:Jt,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(xe,vn){1&xe&&(x.F$t(),x.TgZ(0,"div",0,1),x.Hsn(2),x.qZA())},dependencies:[u.PQ],encapsulation:2,data:{animation:[fe.transformDrawer]},changeDetection:0}),en})(),oe=(()=>{class en extends jt{}return en.\u0275fac=function(){let _n;return function(vn){return(_n||(_n=x.n5z(en)))(vn||en)}}(),en.\u0275cmp=x.Xpm({type:en,selectors:[["mat-sidenav-container"]],contentQueries:function(xe,vn,ke){if(1&xe&&(x.Suo(ke,re,5),x.Suo(ke,Xt,5)),2&xe){let un;x.iGM(un=x.CRH())&&(vn._content=un.first),x.iGM(un=x.CRH())&&(vn._allDrawers=un)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(xe,vn){2&xe&&x.ekj("mat-drawer-container-explicit-backdrop",vn._backdropOverride)},exportAs:["matSidenavContainer"],features:[x._Bn([{provide:Ge,useExisting:en}]),x.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(xe,vn){1&xe&&(x.F$t(ce),x.YNc(0,Bt,1,2,"div",0),x.Hsn(1),x.Hsn(2,1),x.YNc(3,St,2,0,"mat-sidenav-content",1)),2&xe&&(x.Q6J("ngIf",vn.hasBackdrop),x.xp6(3),x.Q6J("ngIf",!vn._content))},dependencies:[p.O5,re],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}),en})(),Me=(()=>{class en{}return en.\u0275fac=function(xe){return new(xe||en)},en.\u0275mod=x.oAB({type:en}),en.\u0275inj=x.cJS({imports:[p.ez,v.BQ,u.ZD,u.ZD,v.BQ]}),en})()},90455:(X,j,h)=>{"use strict";h.d(j,{Rr:()=>st,rP:()=>wt});var u=h(49643),p=h(94650),x=h(3238),v=h(12687),t=h(21281),T=h(24006);const U=["input"],w=function(qt){return{enterDuration:qt}},P=["*"],O=new p.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let L=0;const N={provide:T.JU,useExisting:(0,p.Gpc)(()=>st),multi:!0};class V{constructor(Jt,yt){this.source=Jt,this.checked=yt}}const W=(0,x.sb)((0,x.pj)((0,x.Kr)((0,x.Id)(class{constructor(qt){this._elementRef=qt}}))));let tt=(()=>{class qt extends W{constructor(yt,At,xt,pt,Ot,Bt,St){super(yt),this._focusMonitor=At,this._changeDetectorRef=xt,this.defaults=Ot,this._onChange=ce=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new p.vpe,this.toggleChange=new p.vpe,this.tabIndex=parseInt(pt)||0,this.color=this.defaultColor=Ot.color||"accent",this._noopAnimations="NoopAnimations"===Bt,this.id=this._uniqueId=`${St}${++L}`}get required(){return this._required}set required(yt){this._required=(0,t.Ig)(yt)}get checked(){return this._checked}set checked(yt){this._checked=(0,t.Ig)(yt),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(yt=>{"keyboard"===yt||"program"===yt?this._focused=!0:yt||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(yt){this.checked=!!yt}registerOnChange(yt){this._onChange=yt}registerOnTouched(yt){this._onTouched=yt}setDisabledState(yt){this.disabled=yt,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 qt.\u0275fac=function(yt){p.$Z()},qt.\u0275dir=p.lG2({type:qt,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:[p.qOj]}),qt})(),st=(()=>{class qt extends tt{constructor(yt,At,xt,pt,Ot,Bt){super(yt,At,xt,pt,Ot,Bt,"mat-slide-toggle-")}_createChangeEvent(yt){return new V(this,yt)}_onChangeEvent(yt){yt.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(yt){yt.stopPropagation()}focus(yt,At){At?this._focusMonitor.focusVia(this._inputElement,At,yt):this._inputElement.nativeElement.focus(yt)}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return qt.\u0275fac=function(yt){return new(yt||qt)(p.Y36(p.SBq),p.Y36(v.tE),p.Y36(p.sBO),p.$8M("tabindex"),p.Y36(O),p.Y36(p.QbO,8))},qt.\u0275cmp=p.Xpm({type:qt,selectors:[["mat-slide-toggle"]],viewQuery:function(yt,At){if(1&yt&&p.Gf(U,5),2&yt){let xt;p.iGM(xt=p.CRH())&&(At._inputElement=xt.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(yt,At){2&yt&&(p.Ikx("id",At.id),p.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),p.ekj("mat-checked",At.checked)("mat-disabled",At.disabled)("mat-slide-toggle-label-before","before"==At.labelPosition)("_mat-animation-noopable",At._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[p._Bn([N]),p.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(yt,At){if(1&yt&&(p.F$t(),p.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),p.NdJ("change",function(pt){return At._onChangeEvent(pt)})("click",function(pt){return At._onInputClick(pt)}),p.qZA(),p.TgZ(5,"span",5),p._UZ(6,"span",6),p.TgZ(7,"span",7),p._UZ(8,"span",8),p.qZA()()(),p.TgZ(9,"span",9,10),p.NdJ("cdkObserveContent",function(){return At._onLabelTextChange()}),p.TgZ(11,"span",11),p._uU(12,"\xa0"),p.qZA(),p.Hsn(13),p.qZA()()),2&yt){const xt=p.MAs(1),pt=p.MAs(10);p.uIk("for",At.inputId),p.xp6(2),p.ekj("mat-slide-toggle-bar-no-side-margin",!pt.textContent||!pt.textContent.trim()),p.xp6(1),p.Q6J("id",At.inputId)("required",At.required)("tabIndex",At.tabIndex)("checked",At.checked)("disabled",At.disabled),p.uIk("name",At.name)("aria-checked",At.checked)("aria-label",At.ariaLabel)("aria-labelledby",At.ariaLabelledby)("aria-describedby",At.ariaDescribedby),p.xp6(4),p.Q6J("matRippleTrigger",xt)("matRippleDisabled",At.disableRipple||At.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",p.VKq(18,w,At._noopAnimations?0:150))}},dependencies:[x.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}),qt})(),Dt=(()=>{class qt{}return qt.\u0275fac=function(yt){return new(yt||qt)},qt.\u0275mod=p.oAB({type:qt}),qt.\u0275inj=p.cJS({}),qt})(),wt=(()=>{class qt{}return qt.\u0275fac=function(yt){return new(yt||qt)},qt.\u0275mod=p.oAB({type:qt}),qt.\u0275inj=p.cJS({imports:[Dt,x.si,x.BQ,u.Q8,Dt,x.BQ]}),qt})()},17009:(X,j,h)=>{"use strict";h.d(j,{ZX:()=>At,ux:()=>Bt});var u=h(98184),p=h(84080),x=h(36895),v=h(94650),t=h(3238),T=h(4859),U=h(8929),w=h(83353),P=h(72986),O=h(7625),L=h(37340),N=h(12687),V=h(62289);function W(St,ce){if(1&St){const Vt=v.EpF();v.TgZ(0,"div",2)(1,"button",3),v.NdJ("click",function(){v.CHM(Vt);const fe=v.oxw();return v.KtG(fe.action())}),v._uU(2),v.qZA()()}if(2&St){const Vt=v.oxw();v.xp6(2),v.Oqu(Vt.data.action)}}function tt(St,ce){}const st=new v.OlP("MatSnackBarData");class ct{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const bt=Math.pow(2,31)-1;class Dt{constructor(ce,Vt){this._overlayRef=Vt,this._afterDismissed=new U.xQ,this._afterOpened=new U.xQ,this._onAction=new U.xQ,this._dismissedByAction=!1,this.containerInstance=ce,ce._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(ce){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(ce,bt))}_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 wt=(()=>{class St{constructor(Vt,ve){this.snackBarRef=Vt,this.data=ve}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return St.\u0275fac=function(Vt){return new(Vt||St)(v.Y36(Dt),v.Y36(st))},St.\u0275cmp=v.Xpm({type:St,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,ve){1&Vt&&(v.TgZ(0,"span",0),v._uU(1),v.qZA(),v.YNc(2,W,3,1,"div",1)),2&Vt&&(v.xp6(1),v.Oqu(ve.data.message),v.xp6(1),v.Q6J("ngIf",ve.hasAction))},dependencies:[x.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}),St})();const qt={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 Jt=(()=>{class St extends p.en{constructor(Vt,ve,fe,Le,Fe){super(),this._ngZone=Vt,this._elementRef=ve,this._changeDetectorRef=fe,this._platform=Le,this.snackBarConfig=Fe,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=Ge=>{this._assertNotAttached();const Gt=this._portalOutlet.attachDomPortal(Ge);return this._afterPortalAttached(),Gt},this._live="assertive"!==Fe.politeness||Fe.announcementMessage?"off"===Fe.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(Vt){this._assertNotAttached();const ve=this._portalOutlet.attachComponentPortal(Vt);return this._afterPortalAttached(),ve}attachTemplatePortal(Vt){this._assertNotAttached();const ve=this._portalOutlet.attachTemplatePortal(Vt);return this._afterPortalAttached(),ve}onAnimationEnd(Vt){const{fromState:ve,toState:fe}=Vt;if(("void"===fe&&"void"!==ve||"hidden"===fe)&&this._completeExit(),"visible"===fe){const Le=this._onEnter;this._ngZone.run(()=>{Le.next(),Le.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,ve=this.snackBarConfig.panelClass;ve&&(Array.isArray(ve)?ve.forEach(fe=>Vt.classList.add(fe)):Vt.classList.add(ve))}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const Vt=this._elementRef.nativeElement.querySelector("[aria-hidden]"),ve=this._elementRef.nativeElement.querySelector("[aria-live]");if(Vt&&ve){let fe=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&Vt.contains(document.activeElement)&&(fe=document.activeElement),Vt.removeAttribute("aria-hidden"),ve.appendChild(Vt),fe?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return St.\u0275fac=function(Vt){return new(Vt||St)(v.Y36(v.R0b),v.Y36(v.SBq),v.Y36(v.sBO),v.Y36(w.t4),v.Y36(ct))},St.\u0275dir=v.lG2({type:St,viewQuery:function(Vt,ve){if(1&Vt&&v.Gf(p.Pl,7),2&Vt){let fe;v.iGM(fe=v.CRH())&&(ve._portalOutlet=fe.first)}},features:[v.qOj]}),St})(),yt=(()=>{class St extends Jt{_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 St.\u0275fac=function(){let ce;return function(ve){return(ce||(ce=v.n5z(St)))(ve||St)}}(),St.\u0275cmp=v.Xpm({type:St,selectors:[["snack-bar-container"]],hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(Vt,ve){1&Vt&&v.WFA("@state.done",function(Le){return ve.onAnimationEnd(Le)}),2&Vt&&v.d8E("@state",ve._animationState)},features:[v.qOj],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(Vt,ve){1&Vt&&(v.TgZ(0,"div",0),v.YNc(1,tt,0,0,"ng-template",1),v.qZA(),v._UZ(2,"div")),2&Vt&&(v.xp6(2),v.uIk("aria-live",ve._live)("role",ve._role))},dependencies:[p.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:[qt.snackBarState]}}),St})(),At=(()=>{class St{}return St.\u0275fac=function(Vt){return new(Vt||St)},St.\u0275mod=v.oAB({type:St}),St.\u0275inj=v.cJS({imports:[u.U8,p.eL,x.ez,T.ot,t.BQ,t.BQ]}),St})();const xt=new v.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function pt(){return new ct}});let Ot=(()=>{class St{constructor(Vt,ve,fe,Le,Fe,Ge){this._overlay=Vt,this._live=ve,this._injector=fe,this._breakpointObserver=Le,this._parentSnackBar=Fe,this._defaultConfig=Ge,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,ve){return this._attach(Vt,ve)}openFromTemplate(Vt,ve){return this._attach(Vt,ve)}open(Vt,ve="",fe){const Le={...this._defaultConfig,...fe};return Le.data={message:Vt,action:ve},Le.announcementMessage===Vt&&(Le.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,Le)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(Vt,ve){const Le=v.zs3.create({parent:ve&&ve.viewContainerRef&&ve.viewContainerRef.injector||this._injector,providers:[{provide:ct,useValue:ve}]}),Fe=new p.C5(this.snackBarContainerComponent,ve.viewContainerRef,Le),Ge=Vt.attach(Fe);return Ge.instance.snackBarConfig=ve,Ge.instance}_attach(Vt,ve){const fe={...new ct,...this._defaultConfig,...ve},Le=this._createOverlay(fe),Fe=this._attachSnackBarContainer(Le,fe),Ge=new Dt(Fe,Le);if(Vt instanceof v.Rgc){const Gt=new p.UE(Vt,null,{$implicit:fe.data,snackBarRef:Ge});Ge.instance=Fe.attachTemplatePortal(Gt)}else{const Gt=this._createInjector(fe,Ge),Te=new p.C5(Vt,void 0,Gt),ne=Fe.attachComponentPortal(Te);Ge.instance=ne.instance}return this._breakpointObserver.observe(V.u3.HandsetPortrait).pipe((0,O.R)(Le.detachments())).subscribe(Gt=>{Le.overlayElement.classList.toggle(this.handsetCssClass,Gt.matches)}),fe.announcementMessage&&Fe._onAnnounce.subscribe(()=>{this._live.announce(fe.announcementMessage,fe.politeness)}),this._animateSnackBar(Ge,fe),this._openedSnackBarRef=Ge,this._openedSnackBarRef}_animateSnackBar(Vt,ve){Vt.afterDismissed().subscribe(()=>{this._openedSnackBarRef==Vt&&(this._openedSnackBarRef=null),ve.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{Vt.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):Vt.containerInstance.enter(),ve.duration&&ve.duration>0&&Vt.afterOpened().subscribe(()=>Vt._dismissAfter(ve.duration))}_createOverlay(Vt){const ve=new u.X_;ve.direction=Vt.direction;let fe=this._overlay.position().global();const Le="rtl"===Vt.direction,Fe="left"===Vt.horizontalPosition||"start"===Vt.horizontalPosition&&!Le||"end"===Vt.horizontalPosition&&Le,Ge=!Fe&&"center"!==Vt.horizontalPosition;return Fe?fe.left("0"):Ge?fe.right("0"):fe.centerHorizontally(),"top"===Vt.verticalPosition?fe.top("0"):fe.bottom("0"),ve.positionStrategy=fe,this._overlay.create(ve)}_createInjector(Vt,ve){return v.zs3.create({parent:Vt&&Vt.viewContainerRef&&Vt.viewContainerRef.injector||this._injector,providers:[{provide:Dt,useValue:ve},{provide:st,useValue:Vt.data}]})}}return St.\u0275fac=function(Vt){return new(Vt||St)(v.LFG(u.aV),v.LFG(N.Kd),v.LFG(v.zs3),v.LFG(V.Yg),v.LFG(St,12),v.LFG(xt))},St.\u0275prov=v.Yz7({token:St,factory:St.\u0275fac}),St})(),Bt=(()=>{class St extends Ot{constructor(Vt,ve,fe,Le,Fe,Ge){super(Vt,ve,fe,Le,Fe,Ge),this.simpleSnackBarComponent=wt,this.snackBarContainerComponent=yt,this.handsetCssClass="mat-snack-bar-handset"}}return St.\u0275fac=function(Vt){return new(Vt||St)(v.LFG(u.aV),v.LFG(N.Kd),v.LFG(v.zs3),v.LFG(V.Yg),v.LFG(St,12),v.LFG(xt))},St.\u0275prov=v.Yz7({token:St,factory:St.\u0275fac,providedIn:At}),St})()},96308:(X,j,h)=>{"use strict";h.d(j,{JX:()=>Bt,YE:()=>Dt,nU:()=>Ot});var u=h(94650),p=h(12687),x=h(21281),v=h(29521),t=h(3238),T=h(8929),U=h(36787),w=h(37340),P=h(36895);const O=["mat-sort-header",""];function L(St,ce){if(1&St){const Vt=u.EpF();u.TgZ(0,"div",3),u.NdJ("@arrowPosition.start",function(){u.CHM(Vt);const fe=u.oxw();return u.KtG(fe._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){u.CHM(Vt);const fe=u.oxw();return u.KtG(fe._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&St){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=["*"],ct=new u.OlP("MAT_SORT_DEFAULT_OPTIONS"),bt=(0,t.dB)((0,t.Id)(class{}));let Dt=(()=>{class St extends bt{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,x.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 fe=function wt(St,ce){let Vt=["asc","desc"];return"desc"==St&&Vt.reverse(),ce||Vt.push(""),Vt}(Vt.start||this.start,Vt?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear),Le=fe.indexOf(this.direction)+1;return Le>=fe.length&&(Le=0),fe[Le]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return St.\u0275fac=function(Vt){return new(Vt||St)(u.Y36(ct,8))},St.\u0275dir=u.lG2({type:St,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]}),St})();const qt=t.mZ.ENTERING+" "+t.yN.STANDARD_CURVE,Jt={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)(qt))]),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)(qt))]),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)(qt))]),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)(qt))]),arrowPosition:(0,w.X$)("arrowPosition",[(0,w.eR)("* => desc-to-hint, * => desc-to-active",(0,w.jt)(qt,(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)(qt,(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)(qt,(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)(qt,(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 yt=(()=>{class St{constructor(){this.changes=new T.xQ}}return St.\u0275fac=function(Vt){return new(Vt||St)},St.\u0275prov=u.Yz7({token:St,factory:St.\u0275fac,providedIn:"root"}),St})();const xt={provide:yt,deps:[[new u.FiY,new u.tp0,yt]],useFactory:function At(St){return St||new yt}},pt=(0,t.Id)(class{});let Ot=(()=>{class St extends pt{constructor(Vt,ve,fe,Le,Fe,Ge,Gt,Te){super(),this._intl=Vt,this._changeDetectorRef=ve,this._sort=fe,this._columnDef=Le,this._focusMonitor=Fe,this._elementRef=Ge,this._ariaDescriber=Gt,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",Te?.arrowPosition&&(this.arrowPosition=Te?.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,x.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 ve=!!Vt;ve!==this._showIndicatorHint&&(this._setIndicatorHintVisible(ve),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===v.L_||Vt.keyCode===v.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 St.\u0275fac=function(Vt){return new(Vt||St)(u.Y36(yt),u.Y36(u.sBO),u.Y36(Dt,8),u.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),u.Y36(p.tE),u.Y36(u.SBq),u.Y36(p.$s,8),u.Y36(ct,8))},St.\u0275cmp=u.Xpm({type:St,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(Vt,ve){1&Vt&&u.NdJ("click",function(){return ve._handleClick()})("keydown",function(Le){return ve._handleKeydown(Le)})("mouseenter",function(){return ve._setIndicatorHintVisible(!0)})("mouseleave",function(){return ve._setIndicatorHintVisible(!1)}),2&Vt&&(u.uIk("aria-sort",ve._getAriaSortAttribute()),u.ekj("mat-sort-header-disabled",ve._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,ve){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",ve._isSorted())("mat-sort-header-position-before","before"===ve.arrowPosition),u.uIk("tabindex",ve._isDisabled()?null:0)("role",ve._isDisabled()?null:"button"),u.xp6(3),u.Q6J("ngIf",ve._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:[Jt.indicator,Jt.leftPointer,Jt.rightPointer,Jt.arrowOpacity,Jt.arrowPosition,Jt.allowChildren]},changeDetection:0}),St})(),Bt=(()=>{class St{}return St.\u0275fac=function(Vt){return new(Vt||St)},St.\u0275mod=u.oAB({type:St}),St.\u0275inj=u.cJS({providers:[xt],imports:[P.ez,t.BQ]}),St})()},58425:(X,j,h)=>{"use strict";h.d(j,{C0:()=>ii,Ic:()=>oi,T5:()=>te,VY:()=>re,Vq:()=>_i,fd:()=>Qe,z9:()=>un});var u=h(84080),p=h(12138),x=h(36895),v=h(94650),t=h(4859),T=h(3238),U=h(97392),w=h(12687),P=h(8929),O=h(42654),L=h(40445),N=h(87545),V=h(24850),W=h(1059),tt=h(7625),st=h(75778),ct=h(37340);function bt(it,K){if(1&it&&v.GkF(0,8),2&it){const Tt=v.oxw();v.Q6J("ngTemplateOutlet",Tt.iconOverrides[Tt.state])("ngTemplateOutletContext",Tt._getIconContext())}}function Dt(it,K){if(1&it&&(v.TgZ(0,"span",13),v._uU(1),v.qZA()),2&it){const Tt=v.oxw(2);v.xp6(1),v.Oqu(Tt._getDefaultTextForState(Tt.state))}}function wt(it,K){if(1&it&&(v.TgZ(0,"span",14),v._uU(1),v.qZA()),2&it){const Tt=v.oxw(2);v.xp6(1),v.Oqu(Tt._intl.completedLabel)}}function qt(it,K){if(1&it&&(v.TgZ(0,"span",14),v._uU(1),v.qZA()),2&it){const Tt=v.oxw(2);v.xp6(1),v.Oqu(Tt._intl.editableLabel)}}function Jt(it,K){if(1&it&&(v.TgZ(0,"mat-icon",13),v._uU(1),v.qZA()),2&it){const Tt=v.oxw(2);v.xp6(1),v.Oqu(Tt._getDefaultTextForState(Tt.state))}}function yt(it,K){if(1&it&&(v.ynx(0,9),v.YNc(1,Dt,2,1,"span",10),v.YNc(2,wt,2,1,"span",11),v.YNc(3,qt,2,1,"span",11),v.YNc(4,Jt,2,1,"mat-icon",12),v.BQk()),2&it){const Tt=v.oxw();v.Q6J("ngSwitch",Tt.state),v.xp6(1),v.Q6J("ngSwitchCase","number"),v.xp6(1),v.Q6J("ngIf","done"===Tt.state),v.xp6(1),v.Q6J("ngIf","edit"===Tt.state)}}function At(it,K){if(1&it&&(v.TgZ(0,"div",15),v.GkF(1,16),v.qZA()),2&it){const Tt=v.oxw();v.xp6(1),v.Q6J("ngTemplateOutlet",Tt._templateLabel().template)}}function xt(it,K){if(1&it&&(v.TgZ(0,"div",15),v._uU(1),v.qZA()),2&it){const Tt=v.oxw();v.xp6(1),v.Oqu(Tt.label)}}function pt(it,K){if(1&it&&(v.TgZ(0,"div",17),v._uU(1),v.qZA()),2&it){const Tt=v.oxw();v.xp6(1),v.Oqu(Tt._intl.optionalLabel)}}function Ot(it,K){if(1&it&&(v.TgZ(0,"div",18),v._uU(1),v.qZA()),2&it){const Tt=v.oxw();v.xp6(1),v.Oqu(Tt.errorMessage)}}function Bt(it,K){}function St(it,K){if(1&it&&(v.Hsn(0),v.YNc(1,Bt,0,0,"ng-template",0)),2&it){const Tt=v.oxw();v.xp6(1),v.Q6J("cdkPortalOutlet",Tt._portal)}}const ce=["*"];function Vt(it,K){1&it&&v._UZ(0,"div",11)}const ve=function(it,K){return{step:it,i:K}};function fe(it,K){if(1&it&&(v.ynx(0),v.GkF(1,9),v.YNc(2,Vt,1,0,"div",10),v.BQk()),2&it){const Tt=K.$implicit,Rt=K.index,le=K.last;v.oxw(2);const be=v.MAs(4);v.xp6(1),v.Q6J("ngTemplateOutlet",be)("ngTemplateOutletContext",v.WLB(3,ve,Tt,Rt)),v.xp6(1),v.Q6J("ngIf",!le)}}const Le=function(it){return{animationDuration:it}},Fe=function(it,K){return{value:it,params:K}};function Ge(it,K){if(1&it){const Tt=v.EpF();v.TgZ(0,"div",12),v.NdJ("@horizontalStepTransition.done",function(le){v.CHM(Tt);const be=v.oxw(2);return v.KtG(be._animationDone.next(le))}),v.GkF(1,13),v.qZA()}if(2&it){const Tt=K.$implicit,Rt=K.index,le=v.oxw(2);v.ekj("mat-horizontal-stepper-content-inactive",le.selectedIndex!==Rt),v.Q6J("@horizontalStepTransition",v.WLB(8,Fe,le._getAnimationDirection(Rt),v.VKq(6,Le,le._getAnimationDuration())))("id",le._getStepContentId(Rt)),v.uIk("aria-labelledby",le._getStepLabelId(Rt)),v.xp6(1),v.Q6J("ngTemplateOutlet",Tt.content)}}function Gt(it,K){if(1&it&&(v.TgZ(0,"div",4)(1,"div",5),v.YNc(2,fe,3,6,"ng-container",6),v.qZA(),v.TgZ(3,"div",7),v.YNc(4,Ge,2,11,"div",8),v.qZA()()),2&it){const Tt=v.oxw();v.xp6(2),v.Q6J("ngForOf",Tt.steps),v.xp6(2),v.Q6J("ngForOf",Tt.steps)}}function Te(it,K){if(1&it){const Tt=v.EpF();v.TgZ(0,"div",15),v.GkF(1,9),v.TgZ(2,"div",16)(3,"div",17),v.NdJ("@verticalStepTransition.done",function(le){v.CHM(Tt);const be=v.oxw(2);return v.KtG(be._animationDone.next(le))}),v.TgZ(4,"div",18),v.GkF(5,13),v.qZA()()()()}if(2&it){const Tt=K.$implicit,Rt=K.index,le=K.last,be=v.oxw(2),De=v.MAs(4);v.xp6(1),v.Q6J("ngTemplateOutlet",De)("ngTemplateOutletContext",v.WLB(10,ve,Tt,Rt)),v.xp6(1),v.ekj("mat-stepper-vertical-line",!le),v.xp6(1),v.ekj("mat-vertical-stepper-content-inactive",be.selectedIndex!==Rt),v.Q6J("@verticalStepTransition",v.WLB(15,Fe,be._getAnimationDirection(Rt),v.VKq(13,Le,be._getAnimationDuration())))("id",be._getStepContentId(Rt)),v.uIk("aria-labelledby",be._getStepLabelId(Rt)),v.xp6(2),v.Q6J("ngTemplateOutlet",Tt.content)}}function ne(it,K){if(1&it&&(v.ynx(0),v.YNc(1,Te,6,18,"div",14),v.BQk()),2&it){const Tt=v.oxw();v.xp6(1),v.Q6J("ngForOf",Tt.steps)}}function jt(it,K){if(1&it){const Tt=v.EpF();v.TgZ(0,"mat-step-header",19),v.NdJ("click",function(){const be=v.CHM(Tt).step;return v.KtG(be.select())})("keydown",function(le){v.CHM(Tt);const be=v.oxw();return v.KtG(be._onKeydown(le))}),v.qZA()}if(2&it){const Tt=K.step,Rt=K.i,le=v.oxw();v.ekj("mat-horizontal-stepper-header","horizontal"===le.orientation)("mat-vertical-stepper-header","vertical"===le.orientation),v.Q6J("tabIndex",le._getFocusIndex()===Rt?0:-1)("id",le._getStepLabelId(Rt))("index",Rt)("state",le._getIndicatorType(Rt,Tt.state))("label",Tt.stepLabel||Tt.label)("selected",le.selectedIndex===Rt)("active",le._stepIsNavigable(Rt,Tt))("optional",Tt.optional)("errorMessage",Tt.errorMessage)("iconOverrides",le._iconOverrides)("disableRipple",le.disableRipple||!le._stepIsNavigable(Rt,Tt))("color",Tt.color||le.color),v.uIk("aria-posinset",Rt+1)("aria-setsize",le.steps.length)("aria-controls",le._getStepContentId(Rt))("aria-selected",le.selectedIndex==Rt)("aria-label",Tt.ariaLabel||null)("aria-labelledby",!Tt.ariaLabel&&Tt.ariaLabelledby?Tt.ariaLabelledby:null)("aria-disabled",!le._stepIsNavigable(Rt,Tt)||null)}}let re=(()=>{class it extends p.u6{}return it.\u0275fac=function(){let K;return function(Rt){return(K||(K=v.n5z(it)))(Rt||it)}}(),it.\u0275dir=v.lG2({type:it,selectors:[["","matStepLabel",""]],features:[v.qOj]}),it})(),Xt=(()=>{class it{constructor(){this.changes=new P.xQ,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return it.\u0275fac=function(Tt){return new(Tt||it)},it.\u0275prov=v.Yz7({token:it,factory:it.\u0275fac,providedIn:"root"}),it})();const Me={provide:Xt,deps:[[new v.FiY,new v.tp0,Xt]],useFactory:function oe(it){return it||new Xt}},en=(0,T.pj)(class extends p.KL{constructor(K){super(K)}},"primary");let _n=(()=>{class it extends en{constructor(Tt,Rt,le,be){super(le),this._intl=Tt,this._focusMonitor=Rt,this._intlSubscription=Tt.changes.subscribe(()=>be.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(Tt,Rt){Tt?this._focusMonitor.focusVia(this._elementRef,Tt,Rt):this._elementRef.nativeElement.focus(Rt)}_stringLabel(){return this.label instanceof re?null:this.label}_templateLabel(){return this.label instanceof re?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(Tt){return"number"==Tt?`${this.index+1}`:"edit"==Tt?"create":"error"==Tt?"warning":Tt}}return it.\u0275fac=function(Tt){return new(Tt||it)(v.Y36(Xt),v.Y36(w.tE),v.Y36(v.SBq),v.Y36(v.sBO))},it.\u0275cmp=v.Xpm({type:it,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:[v.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(Tt,Rt){1&Tt&&(v._UZ(0,"div",0),v.TgZ(1,"div")(2,"div",1),v.YNc(3,bt,1,2,"ng-container",2),v.YNc(4,yt,5,4,"ng-container",3),v.qZA()(),v.TgZ(5,"div",4),v.YNc(6,At,2,1,"div",5),v.YNc(7,xt,2,1,"div",5),v.YNc(8,pt,2,1,"div",6),v.YNc(9,Ot,2,1,"div",7),v.qZA()),2&Tt&&(v.Q6J("matRippleTrigger",Rt._getHostElement())("matRippleDisabled",Rt.disableRipple),v.xp6(1),v.Gre("mat-step-icon-state-",Rt.state," mat-step-icon"),v.ekj("mat-step-icon-selected",Rt.selected),v.xp6(1),v.Q6J("ngSwitch",!(!Rt.iconOverrides||!Rt.iconOverrides[Rt.state])),v.xp6(1),v.Q6J("ngSwitchCase",!0),v.xp6(2),v.ekj("mat-step-label-active",Rt.active)("mat-step-label-selected",Rt.selected)("mat-step-label-error","error"==Rt.state),v.xp6(1),v.Q6J("ngIf",Rt._templateLabel()),v.xp6(1),v.Q6J("ngIf",Rt._stringLabel()),v.xp6(1),v.Q6J("ngIf",Rt.optional&&"error"!=Rt.state),v.xp6(1),v.Q6J("ngIf","error"==Rt.state))},dependencies:[x.O5,x.tP,x.RF,x.n9,x.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}),it})();const ke={horizontalStepTransition:(0,ct.X$)("horizontalStepTransition",[(0,ct.SB)("previous",(0,ct.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,ct.SB)("current",(0,ct.oB)({transform:"none",visibility:"inherit"})),(0,ct.SB)("next",(0,ct.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,ct.eR)("* => *",(0,ct.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),{params:{animationDuration:"500ms"}})]),verticalStepTransition:(0,ct.X$)("verticalStepTransition",[(0,ct.SB)("previous",(0,ct.oB)({height:"0px",visibility:"hidden"})),(0,ct.SB)("next",(0,ct.oB)({height:"0px",visibility:"hidden"})),(0,ct.SB)("current",(0,ct.oB)({height:"*",visibility:"inherit"})),(0,ct.eR)("* <=> current",(0,ct.jt)("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),{params:{animationDuration:"225ms"}})])};let un=(()=>{class it{constructor(Tt){this.templateRef=Tt}}return it.\u0275fac=function(Tt){return new(Tt||it)(v.Y36(v.Rgc))},it.\u0275dir=v.lG2({type:it,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),it})(),Dn=(()=>{class it{constructor(Tt){this._template=Tt}}return it.\u0275fac=function(Tt){return new(Tt||it)(v.Y36(v.Rgc))},it.\u0275dir=v.lG2({type:it,selectors:[["ng-template","matStepContent",""]]}),it})(),ii=(()=>{class it extends p.be{constructor(Tt,Rt,le,be){super(Tt,be),this._errorStateMatcher=Rt,this._viewContainerRef=le,this._isSelected=O.w.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,N.w)(()=>this._stepper.selectionChange.pipe((0,V.U)(Tt=>Tt.selectedStep===this),(0,W.O)(this._stepper.selected===this)))).subscribe(Tt=>{Tt&&this._lazyContent&&!this._portal&&(this._portal=new u.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(Tt,Rt){return this._errorStateMatcher.isErrorState(Tt,Rt)||!!(Tt&&Tt.invalid&&this.interacted)}}return it.\u0275fac=function(Tt){return new(Tt||it)(v.Y36((0,v.Gpc)(()=>_i)),v.Y36(T.rD,4),v.Y36(v.s_b),v.Y36(p.gx,8))},it.\u0275cmp=v.Xpm({type:it,selectors:[["mat-step"]],contentQueries:function(Tt,Rt,le){if(1&Tt&&(v.Suo(le,re,5),v.Suo(le,Dn,5)),2&Tt){let be;v.iGM(be=v.CRH())&&(Rt.stepLabel=be.first),v.iGM(be=v.CRH())&&(Rt._lazyContent=be.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[v._Bn([{provide:T.rD,useExisting:it},{provide:p.be,useExisting:it}]),v.qOj],ngContentSelectors:ce,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(Tt,Rt){1&Tt&&(v.F$t(),v.YNc(0,St,2,1,"ng-template"))},dependencies:[u.Pl],encapsulation:2,changeDetection:0}),it})(),_i=(()=>{class it extends p.B8{constructor(Tt,Rt,le){super(Tt,Rt,le),this.steps=new v.n_E,this.animationDone=new v.vpe,this.labelPosition="end",this.headerPosition="top",this._iconOverrides={},this._animationDone=new P.xQ,this._animationDuration="";const be=le.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===be?"vertical":"horizontal"}get animationDuration(){return this._animationDuration}set animationDuration(Tt){this._animationDuration=/^\d+$/.test(Tt)?Tt+"ms":Tt}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:Tt,templateRef:Rt})=>this._iconOverrides[Tt]=Rt),this.steps.changes.pipe((0,tt.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,st.x)((Tt,Rt)=>Tt.fromState===Rt.fromState&&Tt.toState===Rt.toState),(0,tt.R)(this._destroyed)).subscribe(Tt=>{"current"===Tt.toState&&this.animationDone.emit()})}_stepIsNavigable(Tt,Rt){return Rt.completed||this.selectedIndex===Tt||!this.linear}_getAnimationDuration(){return this.animationDuration?this.animationDuration:"horizontal"===this.orientation?"500ms":"225ms"}}return it.\u0275fac=function(Tt){return new(Tt||it)(v.Y36(L.Is,8),v.Y36(v.sBO),v.Y36(v.SBq))},it.\u0275cmp=v.Xpm({type:it,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(Tt,Rt,le){if(1&Tt&&(v.Suo(le,ii,5),v.Suo(le,un,5)),2&Tt){let be;v.iGM(be=v.CRH())&&(Rt._steps=be),v.iGM(be=v.CRH())&&(Rt._icons=be)}},viewQuery:function(Tt,Rt){if(1&Tt&&v.Gf(_n,5),2&Tt){let le;v.iGM(le=v.CRH())&&(Rt._stepHeader=le)}},hostAttrs:["role","tablist"],hostVars:11,hostBindings:function(Tt,Rt){2&Tt&&(v.uIk("aria-orientation",Rt.orientation),v.ekj("mat-stepper-horizontal","horizontal"===Rt.orientation)("mat-stepper-vertical","vertical"===Rt.orientation)("mat-stepper-label-position-end","horizontal"===Rt.orientation&&"end"==Rt.labelPosition)("mat-stepper-label-position-bottom","horizontal"===Rt.orientation&&"bottom"==Rt.labelPosition)("mat-stepper-header-position-bottom","bottom"===Rt.headerPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[v._Bn([{provide:p.B8,useExisting:it}]),v.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(Tt,Rt){1&Tt&&(v.ynx(0,0),v.YNc(1,Gt,5,2,"div",1),v.YNc(2,ne,2,1,"ng-container",2),v.BQk(),v.YNc(3,jt,1,23,"ng-template",null,3,v.W1O)),2&Tt&&(v.Q6J("ngSwitch",Rt.orientation),v.xp6(1),v.Q6J("ngSwitchCase","horizontal"),v.xp6(1),v.Q6J("ngSwitchCase","vertical"))},dependencies:[x.sg,x.O5,x.tP,x.RF,x.n9,_n],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:[ke.horizontalStepTransition,ke.verticalStepTransition]},changeDetection:0}),it})(),oi=(()=>{class it extends p.st{}return it.\u0275fac=function(){let K;return function(Rt){return(K||(K=v.n5z(it)))(Rt||it)}}(),it.\u0275dir=v.lG2({type:it,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(Tt,Rt){2&Tt&&v.Ikx("type",Rt.type)},inputs:{type:"type"},features:[v.qOj]}),it})(),Qe=(()=>{class it extends p.po{}return it.\u0275fac=function(){let K;return function(Rt){return(K||(K=v.n5z(it)))(Rt||it)}}(),it.\u0275dir=v.lG2({type:it,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(Tt,Rt){2&Tt&&v.Ikx("type",Rt.type)},inputs:{type:"type"},features:[v.qOj]}),it})(),te=(()=>{class it{}return it.\u0275fac=function(Tt){return new(Tt||it)},it.\u0275mod=v.oAB({type:it}),it.\u0275inj=v.cJS({providers:[Me,T.rD],imports:[T.BQ,x.ez,u.eL,t.ot,p.U5,U.Ps,T.si,T.BQ]}),it})()},30671:(X,j,h)=>{"use strict";h.d(j,{ev:()=>Ie,Dz:()=>sn,w1:()=>Se,yh:()=>Ae,mD:()=>Nt,Q2:()=>pn,Ke:()=>Ei,ge:()=>zt,fO:()=>ge,XQ:()=>cn,as:()=>Sn,Gk:()=>We,nj:()=>Vi,BZ:()=>fn,by:()=>Aa,p0:()=>To});var u=h(94650),p=h(40445),x=h(21281),v=h(95017),t=h(83353),T=h(67376),U=h(36895),w=h(8929),P=h(5254),O=h(591),L=h(54715),N=h(21086),V=h(7625),W=h(72986);const tt=[[["caption"]],[["colgroup"],["col"]]],st=["caption","colgroup, col"];function Dt(Ne){return class extends Ne{constructor(...Rn){super(...Rn),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(Rn){const Re=this._sticky;this._sticky=(0,x.Ig)(Rn),this._hasStickyChanged=Re!==this._sticky}hasStickyChanged(){const Rn=this._hasStickyChanged;return this._hasStickyChanged=!1,Rn}resetStickyChanged(){this._hasStickyChanged=!1}}}const wt=new u.OlP("CDK_TABLE");let Jt=(()=>{class Ne{constructor(Re){this.template=Re}}return Ne.\u0275fac=function(Re){return new(Re||Ne)(u.Y36(u.Rgc))},Ne.\u0275dir=u.lG2({type:Ne,selectors:[["","cdkCellDef",""]]}),Ne})(),yt=(()=>{class Ne{constructor(Re){this.template=Re}}return Ne.\u0275fac=function(Re){return new(Re||Ne)(u.Y36(u.Rgc))},Ne.\u0275dir=u.lG2({type:Ne,selectors:[["","cdkHeaderCellDef",""]]}),Ne})(),At=(()=>{class Ne{constructor(Re){this.template=Re}}return Ne.\u0275fac=function(Re){return new(Re||Ne)(u.Y36(u.Rgc))},Ne.\u0275dir=u.lG2({type:Ne,selectors:[["","cdkFooterCellDef",""]]}),Ne})();class xt{}const pt=Dt(xt);let Ot=(()=>{class Ne extends pt{constructor(Re){super(),this._table=Re,this._stickyEnd=!1}get name(){return this._name}set name(Re){this._setNameInput(Re)}get stickyEnd(){return this._stickyEnd}set stickyEnd(Re){const we=this._stickyEnd;this._stickyEnd=(0,x.Ig)(Re),this._hasStickyChanged=we!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(Re){Re&&(this._name=Re,this.cssClassFriendlyName=Re.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return Ne.\u0275fac=function(Re){return new(Re||Ne)(u.Y36(wt,8))},Ne.\u0275dir=u.lG2({type:Ne,selectors:[["","cdkColumnDef",""]],contentQueries:function(Re,we,on){if(1&Re&&(u.Suo(on,Jt,5),u.Suo(on,yt,5),u.Suo(on,At,5)),2&Re){let Q;u.iGM(Q=u.CRH())&&(we.cell=Q.first),u.iGM(Q=u.CRH())&&(we.headerCell=Q.first),u.iGM(Q=u.CRH())&&(we.footerCell=Q.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[u._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Ne}]),u.qOj]}),Ne})();class Bt{constructor(Rn,Re){Re.nativeElement.classList.add(...Rn._columnCssClassName)}}let St=(()=>{class Ne extends Bt{constructor(Re,we){super(Re,we)}}return Ne.\u0275fac=function(Re){return new(Re||Ne)(u.Y36(Ot),u.Y36(u.SBq))},Ne.\u0275dir=u.lG2({type:Ne,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[u.qOj]}),Ne})(),ce=(()=>{class Ne extends Bt{constructor(Re,we){if(super(Re,we),1===Re._table?._elementRef.nativeElement.nodeType){const on=Re._table._elementRef.nativeElement.getAttribute("role");we.nativeElement.setAttribute("role","grid"===on||"treegrid"===on?"gridcell":"cell")}}}return Ne.\u0275fac=function(Re){return new(Re||Ne)(u.Y36(Ot),u.Y36(u.SBq))},Ne.\u0275dir=u.lG2({type:Ne,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[u.qOj]}),Ne})(),Vt=(()=>{class Ne extends Bt{constructor(Re,we){if(super(Re,we),1===Re._table?._elementRef.nativeElement.nodeType){const on=Re._table._elementRef.nativeElement.getAttribute("role");we.nativeElement.setAttribute("role","grid"===on||"treegrid"===on?"gridcell":"cell")}}}return Ne.\u0275fac=function(Re){return new(Re||Ne)(u.Y36(Ot),u.Y36(u.SBq))},Ne.\u0275dir=u.lG2({type:Ne,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[u.qOj]}),Ne})();class ve{constructor(){this.tasks=[],this.endTasks=[]}}const fe=new u.OlP("_COALESCED_STYLE_SCHEDULER");let Le=(()=>{class Ne{constructor(Re){this._ngZone=Re,this._currentSchedule=null,this._destroyed=new w.xQ}schedule(Re){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(Re)}scheduleEnd(Re){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(Re)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new ve,this._getScheduleObservable().pipe((0,V.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const Re=this._currentSchedule;this._currentSchedule=new ve;for(const we of Re.tasks)we();for(const we of Re.endTasks)we()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,P.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,W.q)(1))}}return Ne.\u0275fac=function(Re){return new(Re||Ne)(u.LFG(u.R0b))},Ne.\u0275prov=u.Yz7({token:Ne,factory:Ne.\u0275fac}),Ne})(),Ge=(()=>{class Ne{constructor(Re,we){this.template=Re,this._differs=we}ngOnChanges(Re){if(!this._columnsDiffer){const we=Re.columns&&Re.columns.currentValue||[];this._columnsDiffer=this._differs.find(we).create(),this._columnsDiffer.diff(we)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(Re){return this instanceof ne?Re.headerCell.template:this instanceof Xt?Re.footerCell.template:Re.cell.template}}return Ne.\u0275fac=function(Re){return new(Re||Ne)(u.Y36(u.Rgc),u.Y36(u.ZZ4))},Ne.\u0275dir=u.lG2({type:Ne,features:[u.TTD]}),Ne})();class Gt extends Ge{}const Te=Dt(Gt);let ne=(()=>{class Ne extends Te{constructor(Re,we,on){super(Re,we),this._table=on}ngOnChanges(Re){super.ngOnChanges(Re)}}return Ne.\u0275fac=function(Re){return new(Re||Ne)(u.Y36(u.Rgc),u.Y36(u.ZZ4),u.Y36(wt,8))},Ne.\u0275dir=u.lG2({type:Ne,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[u.qOj,u.TTD]}),Ne})();class jt extends Ge{}const re=Dt(jt);let Xt=(()=>{class Ne extends re{constructor(Re,we,on){super(Re,we),this._table=on}ngOnChanges(Re){super.ngOnChanges(Re)}}return Ne.\u0275fac=function(Re){return new(Re||Ne)(u.Y36(u.Rgc),u.Y36(u.ZZ4),u.Y36(wt,8))},Ne.\u0275dir=u.lG2({type:Ne,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[u.qOj,u.TTD]}),Ne})(),oe=(()=>{class Ne extends Ge{constructor(Re,we,on){super(Re,we),this._table=on}}return Ne.\u0275fac=function(Re){return new(Re||Ne)(u.Y36(u.Rgc),u.Y36(u.ZZ4),u.Y36(wt,8))},Ne.\u0275dir=u.lG2({type:Ne,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[u.qOj]}),Ne})(),Me=(()=>{class Ne{constructor(Re){this._viewContainer=Re,Ne.mostRecentCellOutlet=this}ngOnDestroy(){Ne.mostRecentCellOutlet===this&&(Ne.mostRecentCellOutlet=null)}}return Ne.mostRecentCellOutlet=null,Ne.\u0275fac=function(Re){return new(Re||Ne)(u.Y36(u.s_b))},Ne.\u0275dir=u.lG2({type:Ne,selectors:[["","cdkCellOutlet",""]]}),Ne})(),en=(()=>{class Ne{}return Ne.\u0275fac=function(Re){return new(Re||Ne)},Ne.\u0275cmp=u.Xpm({type:Ne,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Re,we){1&Re&&u.GkF(0,0)},dependencies:[Me],encapsulation:2}),Ne})(),_n=(()=>{class Ne{}return Ne.\u0275fac=function(Re){return new(Re||Ne)},Ne.\u0275cmp=u.Xpm({type:Ne,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Re,we){1&Re&&u.GkF(0,0)},dependencies:[Me],encapsulation:2}),Ne})(),xe=(()=>{class Ne{}return Ne.\u0275fac=function(Re){return new(Re||Ne)},Ne.\u0275cmp=u.Xpm({type:Ne,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Re,we){1&Re&&u.GkF(0,0)},dependencies:[Me],encapsulation:2}),Ne})(),vn=(()=>{class Ne{constructor(Re){this.templateRef=Re,this._contentClassName="cdk-no-data-row"}}return Ne.\u0275fac=function(Re){return new(Re||Ne)(u.Y36(u.Rgc))},Ne.\u0275dir=u.lG2({type:Ne,selectors:[["ng-template","cdkNoDataRow",""]]}),Ne})();const ke=["top","bottom","left","right"];class un{constructor(Rn,Re,we,on,Q=!0,Et=!0,J){this._isNativeHtmlTable=Rn,this._stickCellCss=Re,this.direction=we,this._coalescedStyleScheduler=on,this._isBrowser=Q,this._needsPositionStickyOnElement=Et,this._positionListener=J,this._cachedCellWidths=[],this._borderCellCss={top:`${Re}-border-elem-top`,bottom:`${Re}-border-elem-bottom`,left:`${Re}-border-elem-left`,right:`${Re}-border-elem-right`}}clearStickyPositioning(Rn,Re){const we=[];for(const on of Rn)if(on.nodeType===on.ELEMENT_NODE){we.push(on);for(let Q=0;Q{for(const on of we)this._removeStickyStyle(on,Re)})}updateStickyColumns(Rn,Re,we,on=!0){if(!Rn.length||!this._isBrowser||!Re.some(wo=>wo)&&!we.some(wo=>wo))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const Q=Rn[0],Et=Q.children.length,J=this._getCellWidths(Q,on),Lt=this._getStickyStartColumnPositions(J,Re),He=this._getStickyEndColumnPositions(J,we),zn=Re.lastIndexOf(!0),Ki=we.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const wo="rtl"===this.direction,dr=wo?"right":"left",pr=wo?"left":"right";for(const $r of Rn)for(let ja=0;jaRe[ja]?$r:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===Ki?[]:J.slice(Ki).map(($r,ja)=>we[ja+Ki]?$r:null).reverse()}))})}stickRows(Rn,Re,we){if(!this._isBrowser)return;const on="bottom"===we?Rn.slice().reverse():Rn,Q="bottom"===we?Re.slice().reverse():Re,Et=[],J=[],Lt=[];for(let zn=0,Ki=0;zn{for(let zn=0;zn{Re.some(on=>!on)?this._removeStickyStyle(we,["bottom"]):this._addStickyStyle(we,"bottom",0,!1)})}_removeStickyStyle(Rn,Re){for(const on of Re)Rn.style[on]="",Rn.classList.remove(this._borderCellCss[on]);ke.some(on=>-1===Re.indexOf(on)&&Rn.style[on])?Rn.style.zIndex=this._getCalculatedZIndex(Rn):(Rn.style.zIndex="",this._needsPositionStickyOnElement&&(Rn.style.position=""),Rn.classList.remove(this._stickCellCss))}_addStickyStyle(Rn,Re,we,on){Rn.classList.add(this._stickCellCss),on&&Rn.classList.add(this._borderCellCss[Re]),Rn.style[Re]=`${we}px`,Rn.style.zIndex=this._getCalculatedZIndex(Rn),this._needsPositionStickyOnElement&&(Rn.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(Rn){const Re={top:100,bottom:10,left:1,right:1};let we=0;for(const on of ke)Rn.style[on]&&(we+=Re[on]);return we?`${we}`:""}_getCellWidths(Rn,Re=!0){if(!Re&&this._cachedCellWidths.length)return this._cachedCellWidths;const we=[],on=Rn.children;for(let Q=0;Q0;Q--)Re[Q]&&(we[Q]=on,on+=Rn[Q]);return we}}const Tt=new u.OlP("CDK_SPL");let le=(()=>{class Ne{constructor(Re,we){this.viewContainer=Re,this.elementRef=we}}return Ne.\u0275fac=function(Re){return new(Re||Ne)(u.Y36(u.s_b),u.Y36(u.SBq))},Ne.\u0275dir=u.lG2({type:Ne,selectors:[["","rowOutlet",""]]}),Ne})(),be=(()=>{class Ne{constructor(Re,we){this.viewContainer=Re,this.elementRef=we}}return Ne.\u0275fac=function(Re){return new(Re||Ne)(u.Y36(u.s_b),u.Y36(u.SBq))},Ne.\u0275dir=u.lG2({type:Ne,selectors:[["","headerRowOutlet",""]]}),Ne})(),De=(()=>{class Ne{constructor(Re,we){this.viewContainer=Re,this.elementRef=we}}return Ne.\u0275fac=function(Re){return new(Re||Ne)(u.Y36(u.s_b),u.Y36(u.SBq))},Ne.\u0275dir=u.lG2({type:Ne,selectors:[["","footerRowOutlet",""]]}),Ne})(),hn=(()=>{class Ne{constructor(Re,we){this.viewContainer=Re,this.elementRef=we}}return Ne.\u0275fac=function(Re){return new(Re||Ne)(u.Y36(u.s_b),u.Y36(u.SBq))},Ne.\u0275dir=u.lG2({type:Ne,selectors:[["","noDataRowOutlet",""]]}),Ne})(),Di=(()=>{class Ne{constructor(Re,we,on,Q,Et,J,Lt,He,zn,Ki,wo,dr){this._differs=Re,this._changeDetectorRef=we,this._elementRef=on,this._dir=Et,this._platform=Lt,this._viewRepeater=He,this._coalescedStyleScheduler=zn,this._viewportRuler=Ki,this._stickyPositioningListener=wo,this._ngZone=dr,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}),Q||this._elementRef.nativeElement.setAttribute("role","table"),this._document=J,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(Re){this._trackByFn=Re}get dataSource(){return this._dataSource}set dataSource(Re){this._dataSource!==Re&&this._switchDataSource(Re)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(Re){this._multiTemplateDataRows=(0,x.Ig)(Re),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(Re){this._fixedLayout=(0,x.Ig)(Re),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((Re,we)=>this.trackBy?this.trackBy(we.dataIndex,we.data):we),this._viewportRuler.change().pipe((0,V.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const we=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||we,this._forceRecalculateCellWidths=we,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(Re=>{Re.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,v.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const Re=this._dataDiffer.diff(this._renderRows);if(!Re)return this._updateNoDataRow(),void this.contentChanged.next();const we=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(Re,we,(on,Q,Et)=>this._getEmbeddedViewArgs(on.item,Et),on=>on.item.data,on=>{1===on.operation&&on.context&&this._renderCellTemplateForItem(on.record.item.rowDef,on.context)}),this._updateRowIndexContext(),Re.forEachIdentityChange(on=>{we.get(on.currentIndex).context.$implicit=on.item.data}),this._updateNoDataRow(),this._ngZone&&u.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,W.q)(1),(0,V.R)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(Re){this._customColumnDefs.add(Re)}removeColumnDef(Re){this._customColumnDefs.delete(Re)}addRowDef(Re){this._customRowDefs.add(Re)}removeRowDef(Re){this._customRowDefs.delete(Re)}addHeaderRowDef(Re){this._customHeaderRowDefs.add(Re),this._headerRowDefChanged=!0}removeHeaderRowDef(Re){this._customHeaderRowDefs.delete(Re),this._headerRowDefChanged=!0}addFooterRowDef(Re){this._customFooterRowDefs.add(Re),this._footerRowDefChanged=!0}removeFooterRowDef(Re){this._customFooterRowDefs.delete(Re),this._footerRowDefChanged=!0}setNoDataRow(Re){this._customNoDataRow=Re}updateStickyHeaderRowStyles(){const Re=this._getRenderedRows(this._headerRowOutlet),on=this._elementRef.nativeElement.querySelector("thead");on&&(on.style.display=Re.length?"":"none");const Q=this._headerRowDefs.map(Et=>Et.sticky);this._stickyStyler.clearStickyPositioning(Re,["top"]),this._stickyStyler.stickRows(Re,Q,"top"),this._headerRowDefs.forEach(Et=>Et.resetStickyChanged())}updateStickyFooterRowStyles(){const Re=this._getRenderedRows(this._footerRowOutlet),on=this._elementRef.nativeElement.querySelector("tfoot");on&&(on.style.display=Re.length?"":"none");const Q=this._footerRowDefs.map(Et=>Et.sticky);this._stickyStyler.clearStickyPositioning(Re,["bottom"]),this._stickyStyler.stickRows(Re,Q,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,Q),this._footerRowDefs.forEach(Et=>Et.resetStickyChanged())}updateStickyColumnStyles(){const Re=this._getRenderedRows(this._headerRowOutlet),we=this._getRenderedRows(this._rowOutlet),on=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...Re,...we,...on],["left","right"]),this._stickyColumnStylesNeedReset=!1),Re.forEach((Q,Et)=>{this._addStickyColumnStyles([Q],this._headerRowDefs[Et])}),this._rowDefs.forEach(Q=>{const Et=[];for(let J=0;J{this._addStickyColumnStyles([Q],this._footerRowDefs[Et])}),Array.from(this._columnDefsByName.values()).forEach(Q=>Q.resetStickyChanged())}_getAllRenderRows(){const Re=[],we=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let on=0;on{const J=on&&on.has(Et)?on.get(Et):[];if(J.length){const Lt=J.shift();return Lt.dataIndex=we,Lt}return{data:Re,rowDef:Et,dataIndex:we}})}_cacheColumnDefs(){this._columnDefsByName.clear(),bo(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(we=>{this._columnDefsByName.has(we.name),this._columnDefsByName.set(we.name,we)})}_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 Re=this._rowDefs.filter(we=>!we.when);this._defaultRowDef=Re[0]}_renderUpdatedColumns(){const Re=(Et,J)=>Et||!!J.getColumnsDiff(),we=this._rowDefs.reduce(Re,!1);we&&this._forceRenderDataRows();const on=this._headerRowDefs.reduce(Re,!1);on&&this._forceRenderHeaderRows();const Q=this._footerRowDefs.reduce(Re,!1);return Q&&this._forceRenderFooterRows(),we||on||Q}_switchDataSource(Re){this._data=[],(0,v.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),Re||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=Re}_observeRenderChanges(){if(!this.dataSource)return;let Re;(0,v.Z9)(this.dataSource)?Re=this.dataSource.connect(this):(0,L.b)(this.dataSource)?Re=this.dataSource:Array.isArray(this.dataSource)&&(Re=(0,N.of)(this.dataSource)),this._renderChangeSubscription=Re.pipe((0,V.R)(this._onDestroy)).subscribe(we=>{this._data=we||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((Re,we)=>this._renderRow(this._headerRowOutlet,Re,we)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((Re,we)=>this._renderRow(this._footerRowOutlet,Re,we)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(Re,we){const on=Array.from(we.columns||[]).map(J=>this._columnDefsByName.get(J)),Q=on.map(J=>J.sticky),Et=on.map(J=>J.stickyEnd);this._stickyStyler.updateStickyColumns(Re,Q,Et,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(Re){const we=[];for(let on=0;on!Q.when||Q.when(we,Re));else{let Q=this._rowDefs.find(Et=>Et.when&&Et.when(we,Re))||this._defaultRowDef;Q&&on.push(Q)}return on}_getEmbeddedViewArgs(Re,we){return{templateRef:Re.rowDef.template,context:{$implicit:Re.data},index:we}}_renderRow(Re,we,on,Q={}){const Et=Re.viewContainer.createEmbeddedView(we.template,Q,on);return this._renderCellTemplateForItem(we,Q),Et}_renderCellTemplateForItem(Re,we){for(let on of this._getCellTemplates(Re))Me.mostRecentCellOutlet&&Me.mostRecentCellOutlet._viewContainer.createEmbeddedView(on,we);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const Re=this._rowOutlet.viewContainer;for(let we=0,on=Re.length;we{const on=this._columnDefsByName.get(we);return Re.extractCellTemplate(on)}):[]}_applyNativeTableSections(){const Re=this._document.createDocumentFragment(),we=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const on of we){const Q=this._document.createElement(on.tag);Q.setAttribute("role","rowgroup");for(const Et of on.outlets)Q.appendChild(Et.elementRef.nativeElement);Re.appendChild(Q)}this._elementRef.nativeElement.appendChild(Re)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const Re=(we,on)=>we||on.hasStickyChanged();this._headerRowDefs.reduce(Re,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(Re,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(Re,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new un(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,V.R)(this._onDestroy)).subscribe(we=>{this._stickyStyler.direction=we,this.updateStickyColumnStyles()})}_getOwnDefs(Re){return Re.filter(we=>!we._table||we._table===this)}_updateNoDataRow(){const Re=this._customNoDataRow||this._noDataRow;if(!Re)return;const we=0===this._rowOutlet.viewContainer.length;if(we===this._isShowingNoDataRow)return;const on=this._noDataRowOutlet.viewContainer;if(we){const Q=on.createEmbeddedView(Re.templateRef),Et=Q.rootNodes[0];1===Q.rootNodes.length&&Et?.nodeType===this._document.ELEMENT_NODE&&(Et.setAttribute("role","row"),Et.classList.add(Re._contentClassName))}else on.clear();this._isShowingNoDataRow=we}}return Ne.\u0275fac=function(Re){return new(Re||Ne)(u.Y36(u.ZZ4),u.Y36(u.sBO),u.Y36(u.SBq),u.$8M("role"),u.Y36(p.Is,8),u.Y36(U.K0),u.Y36(t.t4),u.Y36(v.k),u.Y36(fe),u.Y36(T.rL),u.Y36(Tt,12),u.Y36(u.R0b,8))},Ne.\u0275cmp=u.Xpm({type:Ne,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(Re,we,on){if(1&Re&&(u.Suo(on,vn,5),u.Suo(on,Ot,5),u.Suo(on,oe,5),u.Suo(on,ne,5),u.Suo(on,Xt,5)),2&Re){let Q;u.iGM(Q=u.CRH())&&(we._noDataRow=Q.first),u.iGM(Q=u.CRH())&&(we._contentColumnDefs=Q),u.iGM(Q=u.CRH())&&(we._contentRowDefs=Q),u.iGM(Q=u.CRH())&&(we._contentHeaderRowDefs=Q),u.iGM(Q=u.CRH())&&(we._contentFooterRowDefs=Q)}},viewQuery:function(Re,we){if(1&Re&&(u.Gf(le,7),u.Gf(be,7),u.Gf(De,7),u.Gf(hn,7)),2&Re){let on;u.iGM(on=u.CRH())&&(we._rowOutlet=on.first),u.iGM(on=u.CRH())&&(we._headerRowOutlet=on.first),u.iGM(on=u.CRH())&&(we._footerRowOutlet=on.first),u.iGM(on=u.CRH())&&(we._noDataRowOutlet=on.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(Re,we){2&Re&&u.ekj("cdk-table-fixed-layout",we.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[u._Bn([{provide:wt,useExisting:Ne},{provide:v.k,useClass:v.yy},{provide:fe,useClass:Le},{provide:Tt,useValue:null}])],ngContentSelectors:st,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(Re,we){1&Re&&(u.F$t(tt),u.Hsn(0),u.Hsn(1,1),u.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[le,be,De,hn],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),Ne})();function bo(Ne,Rn){return Ne.concat(Array.from(Rn))}let Vn=(()=>{class Ne{}return Ne.\u0275fac=function(Re){return new(Re||Ne)},Ne.\u0275mod=u.oAB({type:Ne}),Ne.\u0275inj=u.cJS({imports:[T.Cl]}),Ne})();var Je=h(3238),gn=h(36787),Ye=h(23426),Ee=h(24850);const Xe=[[["caption"]],[["colgroup"],["col"]]],se=["caption","colgroup, col"];let fn=(()=>{class Ne extends Di{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return Ne.\u0275fac=function(){let Rn;return function(we){return(Rn||(Rn=u.n5z(Ne)))(we||Ne)}}(),Ne.\u0275cmp=u.Xpm({type:Ne,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(Re,we){2&Re&&u.ekj("mat-table-fixed-layout",we.fixedLayout)},exportAs:["matTable"],features:[u._Bn([{provide:v.k,useClass:v.yy},{provide:Di,useExisting:Ne},{provide:wt,useExisting:Ne},{provide:fe,useClass:Le},{provide:Tt,useValue:null}]),u.qOj],ngContentSelectors:se,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(Re,we){1&Re&&(u.F$t(Xe),u.Hsn(0),u.Hsn(1,1),u.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[le,be,De,hn],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}),Ne})(),sn=(()=>{class Ne extends Jt{}return Ne.\u0275fac=function(){let Rn;return function(we){return(Rn||(Rn=u.n5z(Ne)))(we||Ne)}}(),Ne.\u0275dir=u.lG2({type:Ne,selectors:[["","matCellDef",""]],features:[u._Bn([{provide:Jt,useExisting:Ne}]),u.qOj]}),Ne})(),ge=(()=>{class Ne extends yt{}return Ne.\u0275fac=function(){let Rn;return function(we){return(Rn||(Rn=u.n5z(Ne)))(we||Ne)}}(),Ne.\u0275dir=u.lG2({type:Ne,selectors:[["","matHeaderCellDef",""]],features:[u._Bn([{provide:yt,useExisting:Ne}]),u.qOj]}),Ne})(),Nt=(()=>{class Ne extends At{}return Ne.\u0275fac=function(){let Rn;return function(we){return(Rn||(Rn=u.n5z(Ne)))(we||Ne)}}(),Ne.\u0275dir=u.lG2({type:Ne,selectors:[["","matFooterCellDef",""]],features:[u._Bn([{provide:At,useExisting:Ne}]),u.qOj]}),Ne})(),Se=(()=>{class Ne extends Ot{get name(){return this._name}set name(Re){this._setNameInput(Re)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return Ne.\u0275fac=function(){let Rn;return function(we){return(Rn||(Rn=u.n5z(Ne)))(we||Ne)}}(),Ne.\u0275dir=u.lG2({type:Ne,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[u._Bn([{provide:Ot,useExisting:Ne},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Ne}]),u.qOj]}),Ne})(),zt=(()=>{class Ne extends St{}return Ne.\u0275fac=function(){let Rn;return function(we){return(Rn||(Rn=u.n5z(Ne)))(we||Ne)}}(),Ne.\u0275dir=u.lG2({type:Ne,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[u.qOj]}),Ne})(),Ae=(()=>{class Ne extends ce{}return Ne.\u0275fac=function(){let Rn;return function(we){return(Rn||(Rn=u.n5z(Ne)))(we||Ne)}}(),Ne.\u0275dir=u.lG2({type:Ne,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[u.qOj]}),Ne})(),Ie=(()=>{class Ne extends Vt{}return Ne.\u0275fac=function(){let Rn;return function(we){return(Rn||(Rn=u.n5z(Ne)))(we||Ne)}}(),Ne.\u0275dir=u.lG2({type:Ne,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[u.qOj]}),Ne})(),Sn=(()=>{class Ne extends ne{}return Ne.\u0275fac=function(){let Rn;return function(we){return(Rn||(Rn=u.n5z(Ne)))(we||Ne)}}(),Ne.\u0275dir=u.lG2({type:Ne,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[u._Bn([{provide:ne,useExisting:Ne}]),u.qOj]}),Ne})(),Ei=(()=>{class Ne extends Xt{}return Ne.\u0275fac=function(){let Rn;return function(we){return(Rn||(Rn=u.n5z(Ne)))(we||Ne)}}(),Ne.\u0275dir=u.lG2({type:Ne,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[u._Bn([{provide:Xt,useExisting:Ne}]),u.qOj]}),Ne})(),Vi=(()=>{class Ne extends oe{}return Ne.\u0275fac=function(){let Rn;return function(we){return(Rn||(Rn=u.n5z(Ne)))(we||Ne)}}(),Ne.\u0275dir=u.lG2({type:Ne,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[u._Bn([{provide:oe,useExisting:Ne}]),u.qOj]}),Ne})(),cn=(()=>{class Ne extends en{}return Ne.\u0275fac=function(){let Rn;return function(we){return(Rn||(Rn=u.n5z(Ne)))(we||Ne)}}(),Ne.\u0275cmp=u.Xpm({type:Ne,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[u._Bn([{provide:en,useExisting:Ne}]),u.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Re,we){1&Re&&u.GkF(0,0)},dependencies:[Me],encapsulation:2}),Ne})(),pn=(()=>{class Ne extends _n{}return Ne.\u0275fac=function(){let Rn;return function(we){return(Rn||(Rn=u.n5z(Ne)))(we||Ne)}}(),Ne.\u0275cmp=u.Xpm({type:Ne,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[u._Bn([{provide:_n,useExisting:Ne}]),u.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Re,we){1&Re&&u.GkF(0,0)},dependencies:[Me],encapsulation:2}),Ne})(),We=(()=>{class Ne extends xe{}return Ne.\u0275fac=function(){let Rn;return function(we){return(Rn||(Rn=u.n5z(Ne)))(we||Ne)}}(),Ne.\u0275cmp=u.Xpm({type:Ne,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[u._Bn([{provide:xe,useExisting:Ne}]),u.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Re,we){1&Re&&u.GkF(0,0)},dependencies:[Me],encapsulation:2}),Ne})(),To=(()=>{class Ne{}return Ne.\u0275fac=function(Re){return new(Re||Ne)},Ne.\u0275mod=u.oAB({type:Ne}),Ne.\u0275inj=u.cJS({imports:[Vn,Je.BQ,Je.BQ]}),Ne})();class ha extends v.o2{constructor(Rn=[]){super(),this._renderData=new O.X([]),this._filter=new O.X(""),this._internalPageChanges=new w.xQ,this._renderChangesSubscription=null,this.sortingDataAccessor=(Re,we)=>{const on=Re[we];if((0,x.t6)(on)){const Q=Number(on);return Q<9007199254740991?Q:on}return on},this.sortData=(Re,we)=>{const on=we.active,Q=we.direction;return on&&""!=Q?Re.sort((Et,J)=>{let Lt=this.sortingDataAccessor(Et,on),He=this.sortingDataAccessor(J,on);const zn=typeof Lt,Ki=typeof He;zn!==Ki&&("number"===zn&&(Lt+=""),"number"===Ki&&(He+=""));let wo=0;return null!=Lt&&null!=He?Lt>He?wo=1:Lt{const on=Object.keys(Re).reduce((Et,J)=>Et+Re[J]+"\u25ec","").toLowerCase(),Q=we.trim().toLowerCase();return-1!=on.indexOf(Q)},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,gn.T)(this._sort.sortChange,this._sort.initialized):(0,N.of)(null),Re=this._paginator?(0,gn.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,N.of)(null),on=(0,Ye.aj)([this._data,this._filter]).pipe((0,Ee.U)(([J])=>this._filterData(J))),Q=(0,Ye.aj)([on,Rn]).pipe((0,Ee.U)(([J])=>this._orderData(J))),Et=(0,Ye.aj)([Q,Re]).pipe((0,Ee.U)(([J])=>this._pageData(J)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=Et.subscribe(J=>this._renderData.next(J))}_filterData(Rn){return this.filteredData=null==this.filter||""===this.filter?Rn:Rn.filter(Re=>this.filterPredicate(Re,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 Re=this.paginator.pageIndex*this.paginator.pageSize;return Rn.slice(Re,Re+this.paginator.pageSize)}_updatePaginator(Rn){Promise.resolve().then(()=>{const Re=this.paginator;if(Re&&(Re.length=Rn,Re.pageIndex>0)){const we=Math.ceil(Re.length/Re.pageSize)-1||0,on=Math.min(Re.pageIndex,we);on!==Re.pageIndex&&(Re.pageIndex=on,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}class Aa extends ha{}},3848:(X,j,h)=>{"use strict";h.d(j,{BU:()=>ze,Nh:()=>ge,Nj:()=>fn,SP:()=>Ee,uD:()=>_i,uX:()=>te});var u=h(12687),p=h(49643),x=h(84080),v=h(36895),t=h(94650),T=h(3238),U=h(72986),w=h(1059),P=h(75778),O=h(7625),L=h(87545),N=h(31307),V=h(92198),W=h(8929),tt=h(42654),st=h(23753),ct=h(21086),bt=h(36787),Dt=h(68896),wt=h(56498),qt=h(98723),Jt=h(40445),yt=h(37340),At=h(21281),xt=h(67376),pt=h(83353),Ot=h(29521);function Bt(Nt,Se){1&Nt&&t.Hsn(0)}const St=["*"];function ce(Nt,Se){}const Vt=function(Nt){return{animationDuration:Nt}},ve=function(Nt,Se){return{value:Nt,params:Se}},fe=["tabListContainer"],Le=["tabList"],Fe=["tabListInner"],Ge=["nextPaginator"],Gt=["previousPaginator"],Te=["tabBodyWrapper"],ne=["tabHeader"];function jt(Nt,Se){}function re(Nt,Se){if(1&Nt&&t.YNc(0,jt,0,0,"ng-template",10),2&Nt){const zt=t.oxw().$implicit;t.Q6J("cdkPortalOutlet",zt.templateLabel)}}function Xt(Nt,Se){if(1&Nt&&t._uU(0),2&Nt){const zt=t.oxw().$implicit;t.Oqu(zt.textLabel)}}function oe(Nt,Se){if(1&Nt){const zt=t.EpF();t.TgZ(0,"div",6),t.NdJ("click",function(){const Ie=t.CHM(zt),Sn=Ie.$implicit,Ei=Ie.index,Vi=t.oxw(),cn=t.MAs(1);return t.KtG(Vi._handleClick(Sn,cn,Ei))})("cdkFocusChange",function(Ie){const Ei=t.CHM(zt).index,Vi=t.oxw();return t.KtG(Vi._tabFocusChanged(Ie,Ei))}),t.TgZ(1,"div",7),t.YNc(2,re,1,1,"ng-template",8),t.YNc(3,Xt,1,1,"ng-template",null,9,t.W1O),t.qZA()()}if(2&Nt){const zt=Se.$implicit,Ae=Se.index,Ie=t.MAs(4),Sn=t.oxw();t.ekj("mat-tab-label-active",Sn.selectedIndex===Ae),t.Q6J("id",Sn._getTabLabelId(Ae))("ngClass",zt.labelClass)("disabled",zt.disabled)("matRippleDisabled",zt.disabled||Sn.disableRipple),t.uIk("tabIndex",Sn._getTabIndex(zt,Ae))("aria-posinset",Ae+1)("aria-setsize",Sn._tabs.length)("aria-controls",Sn._getTabContentId(Ae))("aria-selected",Sn.selectedIndex===Ae)("aria-label",zt.ariaLabel||null)("aria-labelledby",!zt.ariaLabel&&zt.ariaLabelledby?zt.ariaLabelledby:null),t.xp6(2),t.Q6J("ngIf",zt.templateLabel)("ngIfElse",Ie)}}function Me(Nt,Se){if(1&Nt){const zt=t.EpF();t.TgZ(0,"mat-tab-body",11),t.NdJ("_onCentered",function(){t.CHM(zt);const Ie=t.oxw();return t.KtG(Ie._removeTabBodyWrapperHeight())})("_onCentering",function(Ie){t.CHM(zt);const Sn=t.oxw();return t.KtG(Sn._setTabBodyWrapperHeight(Ie))}),t.qZA()}if(2&Nt){const zt=Se.$implicit,Ae=Se.index,Ie=t.oxw();t.ekj("mat-tab-body-active",Ie.selectedIndex===Ae),t.Q6J("id",Ie._getTabContentId(Ae))("ngClass",zt.bodyClass)("content",zt.content)("position",zt.position)("origin",zt.origin)("animationDuration",Ie.animationDuration)("preserveContent",Ie.preserveContent),t.uIk("tabindex",null!=Ie.contentTabIndex&&Ie.selectedIndex===Ae?Ie.contentTabIndex:null)("aria-labelledby",Ie._getTabLabelId(Ae))}}const en=["mat-tab-nav-bar",""],_n=new t.OlP("MatInkBarPositioner",{providedIn:"root",factory:function xe(){return Se=>({left:Se?(Se.offsetLeft||0)+"px":"0",width:Se?(Se.offsetWidth||0)+"px":"0"})}});let vn=(()=>{class Nt{constructor(zt,Ae,Ie,Sn){this._elementRef=zt,this._ngZone=Ae,this._inkBarPositioner=Ie,this._animationMode=Sn}alignToElement(zt){this.show(),this._ngZone.run(()=>{this._ngZone.onStable.pipe((0,U.q)(1)).subscribe(()=>{const Ae=this._inkBarPositioner(zt),Ie=this._elementRef.nativeElement;Ie.style.left=Ae.left,Ie.style.width=Ae.width})})}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}}return Nt.\u0275fac=function(zt){return new(zt||Nt)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(_n),t.Y36(t.QbO,8))},Nt.\u0275dir=t.lG2({type:Nt,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(zt,Ae){2&zt&&t.ekj("_mat-animation-noopable","NoopAnimations"===Ae._animationMode)}}),Nt})();const ke=new t.OlP("MatTabContent"),Dn=new t.OlP("MatTabLabel"),ii=new t.OlP("MAT_TAB");let _i=(()=>{class Nt extends x.ig{constructor(zt,Ae,Ie){super(zt,Ae),this._closestTab=Ie}}return Nt.\u0275fac=function(zt){return new(zt||Nt)(t.Y36(t.Rgc),t.Y36(t.s_b),t.Y36(ii,8))},Nt.\u0275dir=t.lG2({type:Nt,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[t._Bn([{provide:Dn,useExisting:Nt}]),t.qOj]}),Nt})();const oi=(0,T.Id)(class{}),Qe=new t.OlP("MAT_TAB_GROUP");let te=(()=>{class Nt extends oi{constructor(zt,Ae){super(),this._viewContainerRef=zt,this._closestTabGroup=Ae,this.textLabel="",this._contentPortal=null,this._stateChanges=new W.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 x.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(zt){zt&&zt._closestTab===this&&(this._templateLabel=zt)}}return Nt.\u0275fac=function(zt){return new(zt||Nt)(t.Y36(t.s_b),t.Y36(Qe,8))},Nt.\u0275cmp=t.Xpm({type:Nt,selectors:[["mat-tab"]],contentQueries:function(zt,Ae,Ie){if(1&zt&&(t.Suo(Ie,Dn,5),t.Suo(Ie,ke,7,t.Rgc)),2&zt){let Sn;t.iGM(Sn=t.CRH())&&(Ae.templateLabel=Sn.first),t.iGM(Sn=t.CRH())&&(Ae._explicitContent=Sn.first)}},viewQuery:function(zt,Ae){if(1&zt&&t.Gf(t.Rgc,7),2&zt){let Ie;t.iGM(Ie=t.CRH())&&(Ae._implicitContent=Ie.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:Nt}]),t.qOj,t.TTD],ngContentSelectors:St,decls:1,vars:0,template:function(zt,Ae){1&zt&&(t.F$t(),t.YNc(0,Bt,1,0,"ng-template"))},encapsulation:2}),Nt})();const it={translateTab:(0,yt.X$)("translateTab",[(0,yt.SB)("center, void, left-origin-center, right-origin-center",(0,yt.oB)({transform:"none"})),(0,yt.SB)("left",(0,yt.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,yt.SB)("right",(0,yt.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,yt.eR)("* => left, * => right, left => center, right => center",(0,yt.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,yt.eR)("void => left-origin-center",[(0,yt.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),(0,yt.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,yt.eR)("void => right-origin-center",[(0,yt.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),(0,yt.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let K=(()=>{class Nt extends x.Pl{constructor(zt,Ae,Ie,Sn){super(zt,Ae,Sn),this._host=Ie,this._centeringSub=tt.w.EMPTY,this._leavingSub=tt.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 Nt.\u0275fac=function(zt){return new(zt||Nt)(t.Y36(t._Vd),t.Y36(t.s_b),t.Y36((0,t.Gpc)(()=>Rt)),t.Y36(v.K0))},Nt.\u0275dir=t.lG2({type:Nt,selectors:[["","matTabBodyHost",""]],features:[t.qOj]}),Nt})(),Tt=(()=>{class Nt{constructor(zt,Ae,Ie){this._elementRef=zt,this._dir=Ae,this._dirChangeSubscription=tt.w.EMPTY,this._translateTabComplete=new W.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,Ae&&(this._dirChangeSubscription=Ae.change.subscribe(Sn=>{this._computePositionAnimationState(Sn),Ie.markForCheck()})),this._translateTabComplete.pipe((0,P.x)((Sn,Ei)=>Sn.fromState===Ei.fromState&&Sn.toState===Ei.toState)).subscribe(Sn=>{this._isCenterPosition(Sn.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(Sn.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 Ae=this._isCenterPosition(zt.toState);this._beforeCentering.emit(Ae),Ae&&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 Ae=this._getLayoutDirection();return"ltr"==Ae&&zt<=0||"rtl"==Ae&&zt>0?"left-origin-center":"right-origin-center"}}return Nt.\u0275fac=function(zt){return new(zt||Nt)(t.Y36(t.SBq),t.Y36(Jt.Is,8),t.Y36(t.sBO))},Nt.\u0275dir=t.lG2({type:Nt,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),Nt})(),Rt=(()=>{class Nt extends Tt{constructor(zt,Ae,Ie){super(zt,Ae,Ie)}}return Nt.\u0275fac=function(zt){return new(zt||Nt)(t.Y36(t.SBq),t.Y36(Jt.Is,8),t.Y36(t.sBO))},Nt.\u0275cmp=t.Xpm({type:Nt,selectors:[["mat-tab-body"]],viewQuery:function(zt,Ae){if(1&zt&&t.Gf(x.Pl,5),2&zt){let Ie;t.iGM(Ie=t.CRH())&&(Ae._portalHost=Ie.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,Ae){1&zt&&(t.TgZ(0,"div",0,1),t.NdJ("@translateTab.start",function(Sn){return Ae._onTranslateTabStarted(Sn)})("@translateTab.done",function(Sn){return Ae._translateTabComplete.next(Sn)}),t.YNc(2,ce,0,0,"ng-template",2),t.qZA()),2&zt&&t.Q6J("@translateTab",t.WLB(3,ve,Ae._position,t.VKq(1,Vt,Ae.animationDuration)))},dependencies:[K],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:[it.translateTab]}}),Nt})();const le=new t.OlP("MAT_TABS_CONFIG"),be=(0,T.Id)(class{});let De=(()=>{class Nt extends be{constructor(zt){super(),this.elementRef=zt}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return Nt.\u0275fac=function(zt){return new(zt||Nt)(t.Y36(t.SBq))},Nt.\u0275dir=t.lG2({type:Nt,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(zt,Ae){2&zt&&(t.uIk("aria-disabled",!!Ae.disabled),t.ekj("mat-tab-disabled",Ae.disabled))},inputs:{disabled:"disabled"},features:[t.qOj]}),Nt})();const hn=(0,pt.i$)({passive:!0});let bo=(()=>{class Nt{constructor(zt,Ae,Ie,Sn,Ei,Vi,cn){this._elementRef=zt,this._changeDetectorRef=Ae,this._viewportRuler=Ie,this._dir=Sn,this._ngZone=Ei,this._platform=Vi,this._animationMode=cn,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new W.xQ,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new W.xQ,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new t.vpe,this.indexFocused=new t.vpe,Ei.runOutsideAngular(()=>{(0,st.R)(zt.nativeElement,"mouseleave").pipe((0,O.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get disablePagination(){return this._disablePagination}set disablePagination(zt){this._disablePagination=(0,At.Ig)(zt)}get selectedIndex(){return this._selectedIndex}set selectedIndex(zt){zt=(0,At.su)(zt),this._selectedIndex!=zt&&(this._selectedIndexChanged=!0,this._selectedIndex=zt,this._keyManager&&this._keyManager.updateActiveItem(zt))}ngAfterViewInit(){(0,st.R)(this._previousPaginator.nativeElement,"touchstart",hn).pipe((0,O.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,st.R)(this._nextPaginator.nativeElement,"touchstart",hn).pipe((0,O.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const zt=this._dir?this._dir.change:(0,ct.of)("ltr"),Ae=this._viewportRuler.change(150),Ie=()=>{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(Ie),(0,bt.T)(zt,Ae,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)),Ie()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,O.R)(this._destroyed)).subscribe(Sn=>{this.indexFocused.emit(Sn),this._setTabFocus(Sn)})}_itemsResized(){return"function"!=typeof ResizeObserver?Dt.E:this._items.changes.pipe((0,w.O)(this._items),(0,L.w)(zt=>new wt.y(Ae=>this._ngZone.runOutsideAngular(()=>{const Ie=new ResizeObserver(Sn=>Ae.next(Sn));return zt.forEach(Sn=>Ie.observe(Sn.elementRef.nativeElement)),()=>{Ie.disconnect()}}))),(0,N.T)(1),(0,V.h)(zt=>zt.some(Ae=>Ae.contentRect.width>0&&Ae.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,Ot.Vb)(zt))switch(zt.keyCode){case Ot.K5:case Ot.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 Ae=this._items?this._items.toArray()[zt]:null;return!!Ae&&!Ae.disabled}_setTabFocus(zt){if(this._showPaginationControls&&this._scrollToLabel(zt),this._items&&this._items.length){this._items.toArray()[zt].focus();const Ae=this._tabListContainer.nativeElement;Ae.scrollLeft="ltr"==this._getLayoutDirection()?0:Ae.scrollWidth-Ae.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const zt=this.scrollDistance,Ae="ltr"===this._getLayoutDirection()?-zt:zt;this._tabList.nativeElement.style.transform=`translateX(${Math.round(Ae)}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 Ae=this._items?this._items.toArray()[zt]:null;if(!Ae)return;const Ie=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:Sn,offsetWidth:Ei}=Ae.elementRef.nativeElement;let Vi,cn;"ltr"==this._getLayoutDirection()?(Vi=Sn,cn=Vi+Ei):(cn=this._tabListInner.nativeElement.offsetWidth-Sn,Vi=cn-Ei);const pn=this.scrollDistance,We=this.scrollDistance+Ie;ViWe&&(this.scrollDistance+=cn-We+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,Ae=zt?zt.elementRef.nativeElement:null;Ae?this._inkBar.alignToElement(Ae):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(zt,Ae){Ae&&null!=Ae.button&&0!==Ae.button||(this._stopInterval(),(0,qt.H)(650,100).pipe((0,O.R)((0,bt.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:Ie,distance:Sn}=this._scrollHeader(zt);(0===Sn||Sn>=Ie)&&this._stopInterval()}))}_scrollTo(zt){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const Ae=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(Ae,zt)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:Ae,distance:this._scrollDistance}}}return Nt.\u0275fac=function(zt){return new(zt||Nt)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(xt.rL),t.Y36(Jt.Is,8),t.Y36(t.R0b),t.Y36(pt.t4),t.Y36(t.QbO,8))},Nt.\u0275dir=t.lG2({type:Nt,inputs:{disablePagination:"disablePagination"}}),Nt})(),hi=(()=>{class Nt extends bo{constructor(zt,Ae,Ie,Sn,Ei,Vi,cn){super(zt,Ae,Ie,Sn,Ei,Vi,cn),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(zt){this._disableRipple=(0,At.Ig)(zt)}_itemSelected(zt){zt.preventDefault()}}return Nt.\u0275fac=function(zt){return new(zt||Nt)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(xt.rL),t.Y36(Jt.Is,8),t.Y36(t.R0b),t.Y36(pt.t4),t.Y36(t.QbO,8))},Nt.\u0275dir=t.lG2({type:Nt,inputs:{disableRipple:"disableRipple"},features:[t.qOj]}),Nt})(),Yn=(()=>{class Nt extends hi{constructor(zt,Ae,Ie,Sn,Ei,Vi,cn){super(zt,Ae,Ie,Sn,Ei,Vi,cn)}}return Nt.\u0275fac=function(zt){return new(zt||Nt)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(xt.rL),t.Y36(Jt.Is,8),t.Y36(t.R0b),t.Y36(pt.t4),t.Y36(t.QbO,8))},Nt.\u0275cmp=t.Xpm({type:Nt,selectors:[["mat-tab-header"]],contentQueries:function(zt,Ae,Ie){if(1&zt&&t.Suo(Ie,De,4),2&zt){let Sn;t.iGM(Sn=t.CRH())&&(Ae._items=Sn)}},viewQuery:function(zt,Ae){if(1&zt&&(t.Gf(vn,7),t.Gf(fe,7),t.Gf(Le,7),t.Gf(Fe,7),t.Gf(Ge,5),t.Gf(Gt,5)),2&zt){let Ie;t.iGM(Ie=t.CRH())&&(Ae._inkBar=Ie.first),t.iGM(Ie=t.CRH())&&(Ae._tabListContainer=Ie.first),t.iGM(Ie=t.CRH())&&(Ae._tabList=Ie.first),t.iGM(Ie=t.CRH())&&(Ae._tabListInner=Ie.first),t.iGM(Ie=t.CRH())&&(Ae._nextPaginator=Ie.first),t.iGM(Ie=t.CRH())&&(Ae._previousPaginator=Ie.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(zt,Ae){2&zt&&t.ekj("mat-tab-header-pagination-controls-enabled",Ae._showPaginationControls)("mat-tab-header-rtl","rtl"==Ae._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[t.qOj],ngContentSelectors:St,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,Ae){1&zt&&(t.F$t(),t.TgZ(0,"button",0,1),t.NdJ("click",function(){return Ae._handlePaginatorClick("before")})("mousedown",function(Sn){return Ae._handlePaginatorPress("before",Sn)})("touchend",function(){return Ae._stopInterval()}),t._UZ(2,"div",2),t.qZA(),t.TgZ(3,"div",3,4),t.NdJ("keydown",function(Sn){return Ae._handleKeydown(Sn)}),t.TgZ(5,"div",5,6),t.NdJ("cdkObserveContent",function(){return Ae._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(Sn){return Ae._handlePaginatorPress("after",Sn)})("click",function(){return Ae._handlePaginatorClick("after")})("touchend",function(){return Ae._stopInterval()}),t._UZ(13,"div",2),t.qZA()),2&zt&&(t.ekj("mat-tab-header-pagination-disabled",Ae._disableScrollBefore),t.Q6J("matRippleDisabled",Ae._disableScrollBefore||Ae.disableRipple)("disabled",Ae._disableScrollBefore||null),t.xp6(5),t.ekj("_mat-animation-noopable","NoopAnimations"===Ae._animationMode),t.xp6(6),t.ekj("mat-tab-header-pagination-disabled",Ae._disableScrollAfter),t.Q6J("matRippleDisabled",Ae._disableScrollAfter||Ae.disableRipple)("disabled",Ae._disableScrollAfter||null))},dependencies:[T.wG,p.wD,vn],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}),Nt})(),Vn=0;class Je{}const gn=(0,T.pj)((0,T.Kr)(class{constructor(Nt){this._elementRef=Nt}}),"primary");let Ye=(()=>{class Nt extends gn{constructor(zt,Ae,Ie,Sn){super(zt),this._changeDetectorRef=Ae,this._animationMode=Sn,this._tabs=new t.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=tt.w.EMPTY,this._tabLabelSubscription=tt.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=Vn++,this.animationDuration=Ie&&Ie.animationDuration?Ie.animationDuration:"500ms",this.disablePagination=!(!Ie||null==Ie.disablePagination)&&Ie.disablePagination,this.dynamicHeight=!(!Ie||null==Ie.dynamicHeight)&&Ie.dynamicHeight,this.contentTabIndex=Ie?.contentTabIndex??null,this.preserveContent=!!Ie?.preserveContent}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(zt){this._dynamicHeight=(0,At.Ig)(zt)}get selectedIndex(){return this._selectedIndex}set selectedIndex(zt){this._indexToSelect=(0,At.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,At.su)(zt,null)}get disablePagination(){return this._disablePagination}set disablePagination(zt){this._disablePagination=(0,At.Ig)(zt)}get preserveContent(){return this._preserveContent}set preserveContent(zt){this._preserveContent=(0,At.Ig)(zt)}get backgroundColor(){return this._backgroundColor}set backgroundColor(zt){const Ae=this._elementRef.nativeElement;Ae.classList.remove(`mat-background-${this.backgroundColor}`),zt&&Ae.classList.add(`mat-background-${zt}`),this._backgroundColor=zt}ngAfterContentChecked(){const zt=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=zt){const Ae=null==this._selectedIndex;if(!Ae){this.selectedTabChange.emit(this._createChangeEvent(zt));const Ie=this._tabBodyWrapper.nativeElement;Ie.style.minHeight=Ie.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((Ie,Sn)=>Ie.isActive=Sn===zt),Ae||(this.selectedIndexChange.emit(zt),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((Ae,Ie)=>{Ae.position=Ie-zt,null!=this._selectedIndex&&0==Ae.position&&!Ae.origin&&(Ae.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 Ae=this._tabs.toArray();let Ie;for(let Sn=0;Sn{Ae[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(Ae=>Ae._closestTabGroup===this||!Ae._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 Ae=this._tabHeader;Ae&&(Ae.focusIndex=zt)}_focusChanged(zt){this._lastFocusedTabIndex=zt,this.focusChange.emit(this._createChangeEvent(zt))}_createChangeEvent(zt){const Ae=new Je;return Ae.index=zt,this._tabs&&this._tabs.length&&(Ae.tab=this._tabs.toArray()[zt]),Ae}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,bt.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 Ae=this._tabBodyWrapper.nativeElement;Ae.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(Ae.style.height=zt+"px")}_removeTabBodyWrapperHeight(){const zt=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=zt.clientHeight,zt.style.height="",this.animationDone.emit()}_handleClick(zt,Ae,Ie){zt.disabled||(this.selectedIndex=Ae.focusIndex=Ie)}_getTabIndex(zt,Ae){return zt.disabled?null:Ae===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(zt,Ae){zt&&"mouse"!==zt&&"touch"!==zt&&(this._tabHeader.focusIndex=Ae)}}return Nt.\u0275fac=function(zt){return new(zt||Nt)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(le,8),t.Y36(t.QbO,8))},Nt.\u0275dir=t.lG2({type:Nt,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]}),Nt})(),Ee=(()=>{class Nt extends Ye{constructor(zt,Ae,Ie,Sn){super(zt,Ae,Ie,Sn)}}return Nt.\u0275fac=function(zt){return new(zt||Nt)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(le,8),t.Y36(t.QbO,8))},Nt.\u0275cmp=t.Xpm({type:Nt,selectors:[["mat-tab-group"]],contentQueries:function(zt,Ae,Ie){if(1&zt&&t.Suo(Ie,te,5),2&zt){let Sn;t.iGM(Sn=t.CRH())&&(Ae._allTabs=Sn)}},viewQuery:function(zt,Ae){if(1&zt&&(t.Gf(Te,5),t.Gf(ne,5)),2&zt){let Ie;t.iGM(Ie=t.CRH())&&(Ae._tabBodyWrapper=Ie.first),t.iGM(Ie=t.CRH())&&(Ae._tabHeader=Ie.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(zt,Ae){2&zt&&t.ekj("mat-tab-group-dynamic-height",Ae.dynamicHeight)("mat-tab-group-inverted-header","below"===Ae.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[t._Bn([{provide:Qe,useExisting:Nt}]),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,Ae){1&zt&&(t.TgZ(0,"mat-tab-header",0,1),t.NdJ("indexFocused",function(Sn){return Ae._focusChanged(Sn)})("selectFocusedIndex",function(Sn){return Ae.selectedIndex=Sn}),t.YNc(2,oe,5,15,"div",2),t.qZA(),t.TgZ(3,"div",3,4),t.YNc(5,Me,1,11,"mat-tab-body",5),t.qZA()),2&zt&&(t.Q6J("selectedIndex",Ae.selectedIndex||0)("disableRipple",Ae.disableRipple)("disablePagination",Ae.disablePagination),t.xp6(2),t.Q6J("ngForOf",Ae._tabs),t.xp6(1),t.ekj("_mat-animation-noopable","NoopAnimations"===Ae._animationMode),t.xp6(2),t.Q6J("ngForOf",Ae._tabs))},dependencies:[v.mk,v.sg,v.O5,x.Pl,T.wG,u.kH,De,Rt,Yn],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}),Nt})(),Xe=0,se=(()=>{class Nt extends bo{constructor(zt,Ae,Ie,Sn,Ei,Vi,cn){super(zt,Sn,Ei,Ae,Ie,Vi,cn),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(zt){const Ae=this._elementRef.nativeElement.classList;Ae.remove(`mat-background-${this.backgroundColor}`),zt&&Ae.add(`mat-background-${zt}`),this._backgroundColor=zt}get disableRipple(){return this._disableRipple}set disableRipple(zt){this._disableRipple=(0,At.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 Ae=0;Ae{class Nt extends se{constructor(zt,Ae,Ie,Sn,Ei,Vi,cn){super(zt,Ae,Ie,Sn,Ei,Vi,cn)}}return Nt.\u0275fac=function(zt){return new(zt||Nt)(t.Y36(t.SBq),t.Y36(Jt.Is,8),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(xt.rL),t.Y36(pt.t4),t.Y36(t.QbO,8))},Nt.\u0275cmp=t.Xpm({type:Nt,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(zt,Ae,Ie){if(1&zt&&t.Suo(Ie,fn,5),2&zt){let Sn;t.iGM(Sn=t.CRH())&&(Ae._items=Sn)}},viewQuery:function(zt,Ae){if(1&zt&&(t.Gf(vn,7),t.Gf(fe,7),t.Gf(Le,7),t.Gf(Fe,7),t.Gf(Ge,5),t.Gf(Gt,5)),2&zt){let Ie;t.iGM(Ie=t.CRH())&&(Ae._inkBar=Ie.first),t.iGM(Ie=t.CRH())&&(Ae._tabListContainer=Ie.first),t.iGM(Ie=t.CRH())&&(Ae._tabList=Ie.first),t.iGM(Ie=t.CRH())&&(Ae._tabListInner=Ie.first),t.iGM(Ie=t.CRH())&&(Ae._nextPaginator=Ie.first),t.iGM(Ie=t.CRH())&&(Ae._previousPaginator=Ie.first)}},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:11,hostBindings:function(zt,Ae){2&zt&&(t.uIk("role",Ae._getRole()),t.ekj("mat-tab-header-pagination-controls-enabled",Ae._showPaginationControls)("mat-tab-header-rtl","rtl"==Ae._getLayoutDirection())("mat-primary","warn"!==Ae.color&&"accent"!==Ae.color)("mat-accent","accent"===Ae.color)("mat-warn","warn"===Ae.color))},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[t.qOj],attrs:en,ngContentSelectors:St,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,Ae){1&zt&&(t.F$t(),t.TgZ(0,"button",0,1),t.NdJ("click",function(){return Ae._handlePaginatorClick("before")})("mousedown",function(Sn){return Ae._handlePaginatorPress("before",Sn)})("touchend",function(){return Ae._stopInterval()}),t._UZ(2,"div",2),t.qZA(),t.TgZ(3,"div",3,4),t.NdJ("keydown",function(Sn){return Ae._handleKeydown(Sn)}),t.TgZ(5,"div",5,6),t.NdJ("cdkObserveContent",function(){return Ae._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(Sn){return Ae._handlePaginatorPress("after",Sn)})("click",function(){return Ae._handlePaginatorClick("after")})("touchend",function(){return Ae._stopInterval()}),t._UZ(13,"div",2),t.qZA()),2&zt&&(t.ekj("mat-tab-header-pagination-disabled",Ae._disableScrollBefore),t.Q6J("matRippleDisabled",Ae._disableScrollBefore||Ae.disableRipple)("disabled",Ae._disableScrollBefore||null),t.xp6(5),t.ekj("_mat-animation-noopable","NoopAnimations"===Ae._animationMode),t.xp6(6),t.ekj("mat-tab-header-pagination-disabled",Ae._disableScrollAfter),t.Q6J("matRippleDisabled",Ae._disableScrollAfter||Ae.disableRipple)("disabled",Ae._disableScrollAfter||null))},dependencies:[T.wG,p.wD,vn],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}),Nt})();const ie=(0,T.sb)((0,T.Kr)((0,T.Id)(class{})));let rn=(()=>{class Nt extends ie{constructor(zt,Ae,Ie,Sn,Ei,Vi){super(),this._tabNavBar=zt,this.elementRef=Ae,this._focusMonitor=Ei,this._isActive=!1,this.id="mat-tab-link-"+Xe++,this.rippleConfig=Ie||{},this.tabIndex=parseInt(Sn)||0,"NoopAnimations"===Vi&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get active(){return this._isActive}set active(zt){const Ae=(0,At.Ig)(zt);Ae!==this._isActive&&(this._isActive=Ae,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===Ot.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 Nt.\u0275fac=function(zt){return new(zt||Nt)(t.Y36(se),t.Y36(t.SBq),t.Y36(T.Y2,8),t.$8M("tabindex"),t.Y36(u.tE),t.Y36(t.QbO,8))},Nt.\u0275dir=t.lG2({type:Nt,inputs:{active:"active",id:"id"},features:[t.qOj]}),Nt})(),fn=(()=>{class Nt extends rn{constructor(zt,Ae,Ie,Sn,Ei,Vi,cn,pn){super(zt,Ae,Ei,Vi,cn,pn),this._tabLinkRipple=new T.IR(this,Ie,Ae,Sn),this._tabLinkRipple.setupTriggerEvents(Ae.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return Nt.\u0275fac=function(zt){return new(zt||Nt)(t.Y36(ze),t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(pt.t4),t.Y36(T.Y2,8),t.$8M("tabindex"),t.Y36(u.tE),t.Y36(t.QbO,8))},Nt.\u0275dir=t.lG2({type:Nt,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(zt,Ae){1&zt&&t.NdJ("focus",function(){return Ae._handleFocus()})("keydown",function(Sn){return Ae._handleKeydown(Sn)}),2&zt&&(t.uIk("aria-controls",Ae._getAriaControls())("aria-current",Ae._getAriaCurrent())("aria-disabled",Ae.disabled)("aria-selected",Ae._getAriaSelected())("id",Ae.id)("tabIndex",Ae._getTabIndex())("role",Ae._getRole()),t.ekj("mat-tab-disabled",Ae.disabled)("mat-tab-label-active",Ae.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[t.qOj]}),Nt})(),ge=(()=>{class Nt{}return Nt.\u0275fac=function(zt){return new(zt||Nt)},Nt.\u0275mod=t.oAB({type:Nt}),Nt.\u0275inj=t.cJS({imports:[v.ez,T.BQ,x.eL,T.si,p.Q8,u.rt,T.BQ]}),Nt})()},83683:(X,j,h)=>{"use strict";h.d(j,{Ye:()=>P,g0:()=>L});var u=h(94650),p=h(3238),x=h(83353),v=h(36895);const t=["*",[["mat-toolbar-row"]]],T=["*","mat-toolbar-row"],U=(0,p.pj)(class{constructor(N){this._elementRef=N}});let w=(()=>{class N{}return N.\u0275fac=function(W){return new(W||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(W,tt,st){super(W),this._platform=tt,this._document=st}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return N.\u0275fac=function(W){return new(W||N)(u.Y36(u.SBq),u.Y36(x.t4),u.Y36(v.K0))},N.\u0275cmp=u.Xpm({type:N,selectors:[["mat-toolbar"]],contentQueries:function(W,tt,st){if(1&W&&u.Suo(st,w,5),2&W){let ct;u.iGM(ct=u.CRH())&&(tt._toolbarRows=ct)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(W,tt){2&W&&u.ekj("mat-toolbar-multiple-rows",tt._toolbarRows.length>0)("mat-toolbar-single-row",0===tt._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[u.qOj],ngContentSelectors:T,decls:2,vars:0,template:function(W,tt){1&W&&(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(W){return new(W||N)},N.\u0275mod=u.oAB({type:N}),N.\u0275inj=u.cJS({imports:[p.BQ,p.BQ]}),N})()},10266:(X,j,h)=>{"use strict";h.d(j,{AV:()=>fe,gM:()=>ce});var u=h(98184),p=h(12687),x=h(36895),v=h(94650),t=h(3238),T=h(67376),U=h(40445),w=h(21281),P=h(29521),O=h(62289),L=h(83353),N=h(84080),V=h(8929),W=h(7625),tt=h(72986);h(37340);const ct=["tooltip"],wt="tooltip-panel",qt=(0,L.i$)({passive:!0}),At=new v.OlP("mat-tooltip-scroll-strategy"),pt={provide:At,deps:[u.aV],useFactory:function xt(Fe){return()=>Fe.scrollStrategies.reposition({scrollThrottle:20})}},Ot=new v.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function Bt(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let St=(()=>{class Fe{constructor(Gt,Te,ne,jt,re,Xt,oe,Me,en,_n,xe,vn){this._overlay=Gt,this._elementRef=Te,this._scrollDispatcher=ne,this._viewContainerRef=jt,this._ngZone=re,this._platform=Xt,this._ariaDescriber=oe,this._focusMonitor=Me,this._dir=_n,this._defaultOptions=xe,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 V.xQ,this._scrollStrategy=en,this._document=vn,xe&&(xe.position&&(this.position=xe.position),xe.touchGestures&&(this.touchGestures=xe.touchGestures)),_n.change.pipe((0,W.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(Gt){Gt!==this._position&&(this._position=Gt,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(Gt){this._disabled=(0,w.Ig)(Gt),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(Gt){this._showDelay=(0,w.su)(Gt)}get hideDelay(){return this._hideDelay}set hideDelay(Gt){this._hideDelay=(0,w.su)(Gt),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(Gt){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=Gt?String(Gt).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(Gt){this._tooltipClass=Gt,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,W.R)(this._destroyed)).subscribe(Gt=>{Gt?"keyboard"===Gt&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const Gt=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([Te,ne])=>{Gt.removeEventListener(Te,ne,qt)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(Gt,this.message,"tooltip"),this._focusMonitor.stopMonitoring(Gt)}show(Gt=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const Te=this._createOverlay();this._detach(),this._portal=this._portal||new N.C5(this._tooltipComponent,this._viewContainerRef);const ne=this._tooltipInstance=Te.attach(this._portal).instance;ne._triggerElement=this._elementRef.nativeElement,ne._mouseLeaveHideDelay=this._hideDelay,ne.afterHidden().pipe((0,W.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),ne.show(Gt)}hide(Gt=this.hideDelay){const Te=this._tooltipInstance;Te&&(Te.isVisible()?Te.hide(Gt):(Te._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 Gt=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),Te=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(Gt);return Te.positionChanges.pipe((0,W.R)(this._destroyed)).subscribe(ne=>{this._updateCurrentPositionClass(ne.connectionPair),this._tooltipInstance&&ne.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:Te,panelClass:`${this._cssClassPrefix}-${wt}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,W.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,W.R)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,W.R)(this._destroyed)).subscribe(ne=>{this._isTooltipVisible()&&ne.keyCode===P.hY&&!(0,P.Vb)(ne)&&(ne.preventDefault(),ne.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(Gt){const Te=Gt.getConfig().positionStrategy,ne=this._getOrigin(),jt=this._getOverlayPosition();Te.withPositions([this._addOffset({...ne.main,...jt.main}),this._addOffset({...ne.fallback,...jt.fallback})])}_addOffset(Gt){return Gt}_getOrigin(){const Gt=!this._dir||"ltr"==this._dir.value,Te=this.position;let ne;"above"==Te||"below"==Te?ne={originX:"center",originY:"above"==Te?"top":"bottom"}:"before"==Te||"left"==Te&&Gt||"right"==Te&&!Gt?ne={originX:"start",originY:"center"}:("after"==Te||"right"==Te&&Gt||"left"==Te&&!Gt)&&(ne={originX:"end",originY:"center"});const{x:jt,y:re}=this._invertPosition(ne.originX,ne.originY);return{main:ne,fallback:{originX:jt,originY:re}}}_getOverlayPosition(){const Gt=!this._dir||"ltr"==this._dir.value,Te=this.position;let ne;"above"==Te?ne={overlayX:"center",overlayY:"bottom"}:"below"==Te?ne={overlayX:"center",overlayY:"top"}:"before"==Te||"left"==Te&&Gt||"right"==Te&&!Gt?ne={overlayX:"end",overlayY:"center"}:("after"==Te||"right"==Te&&Gt||"left"==Te&&!Gt)&&(ne={overlayX:"start",overlayY:"center"});const{x:jt,y:re}=this._invertPosition(ne.overlayX,ne.overlayY);return{main:ne,fallback:{overlayX:jt,overlayY:re}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,tt.q)(1),(0,W.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(Gt){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=Gt,this._tooltipInstance._markForCheck())}_invertPosition(Gt,Te){return"above"===this.position||"below"===this.position?"top"===Te?Te="bottom":"bottom"===Te&&(Te="top"):"end"===Gt?Gt="start":"start"===Gt&&(Gt="end"),{x:Gt,y:Te}}_updateCurrentPositionClass(Gt){const{overlayY:Te,originX:ne,originY:jt}=Gt;let re;if(re="center"===Te?this._dir&&"rtl"===this._dir.value?"end"===ne?"left":"right":"start"===ne?"left":"right":"bottom"===Te&&"top"===jt?"above":"below",re!==this._currentPosition){const Xt=this._overlayRef;if(Xt){const oe=`${this._cssClassPrefix}-${wt}-`;Xt.removePanelClass(oe+this._currentPosition),Xt.addPanelClass(oe+re)}this._currentPosition=re}}_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 Gt=[];if(this._platformSupportsMouseEvents())Gt.push(["mouseleave",Te=>{const ne=Te.relatedTarget;(!ne||!this._overlayRef?.overlayElement.contains(ne))&&this.hide()}],["wheel",Te=>this._wheelListener(Te)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const Te=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};Gt.push(["touchend",Te],["touchcancel",Te])}this._addListeners(Gt),this._passiveListeners.push(...Gt)}_addListeners(Gt){Gt.forEach(([Te,ne])=>{this._elementRef.nativeElement.addEventListener(Te,ne,qt)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(Gt){if(this._isTooltipVisible()){const Te=this._document.elementFromPoint(Gt.clientX,Gt.clientY),ne=this._elementRef.nativeElement;Te!==ne&&!ne.contains(Te)&&this.hide()}}_disableNativeGesturesIfNecessary(){const Gt=this.touchGestures;if("off"!==Gt){const Te=this._elementRef.nativeElement,ne=Te.style;("on"===Gt||"INPUT"!==Te.nodeName&&"TEXTAREA"!==Te.nodeName)&&(ne.userSelect=ne.msUserSelect=ne.webkitUserSelect=ne.MozUserSelect="none"),("on"===Gt||!Te.draggable)&&(ne.webkitUserDrag="none"),ne.touchAction="none",ne.webkitTapHighlightColor="transparent"}}}return Fe.\u0275fac=function(Gt){v.$Z()},Fe.\u0275dir=v.lG2({type:Fe,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),Fe})(),ce=(()=>{class Fe extends St{constructor(Gt,Te,ne,jt,re,Xt,oe,Me,en,_n,xe,vn){super(Gt,Te,ne,jt,re,Xt,oe,Me,en,_n,xe,vn),this._tooltipComponent=ve}}return Fe.\u0275fac=function(Gt){return new(Gt||Fe)(v.Y36(u.aV),v.Y36(v.SBq),v.Y36(T.mF),v.Y36(v.s_b),v.Y36(v.R0b),v.Y36(L.t4),v.Y36(p.$s),v.Y36(p.tE),v.Y36(At),v.Y36(U.Is,8),v.Y36(Ot,8),v.Y36(x.K0))},Fe.\u0275dir=v.lG2({type:Fe,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[v.qOj]}),Fe})(),Vt=(()=>{class Fe{constructor(Gt,Te){this._changeDetectorRef=Gt,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new V.xQ,this._animationsDisabled="NoopAnimations"===Te}show(Gt){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},Gt)}hide(Gt){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},Gt)}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:Gt}){(!Gt||!this._triggerElement.contains(Gt))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:Gt}){(Gt===this._showAnimation||Gt===this._hideAnimation)&&this._finalizeAnimation(Gt===this._showAnimation)}_cancelPendingAnimations(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(Gt){Gt?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(Gt){const Te=this._tooltip.nativeElement,ne=this._showAnimation,jt=this._hideAnimation;if(Te.classList.remove(Gt?jt:ne),Te.classList.add(Gt?ne:jt),this._isVisible=Gt,Gt&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const re=getComputedStyle(Te);("0s"===re.getPropertyValue("animation-duration")||"none"===re.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}Gt&&this._onShow(),this._animationsDisabled&&(Te.classList.add("_mat-animation-noopable"),this._finalizeAnimation(Gt))}}return Fe.\u0275fac=function(Gt){return new(Gt||Fe)(v.Y36(v.sBO),v.Y36(v.QbO,8))},Fe.\u0275dir=v.lG2({type:Fe}),Fe})(),ve=(()=>{class Fe extends Vt{constructor(Gt,Te,ne){super(Gt,ne),this._breakpointObserver=Te,this._isHandset=this._breakpointObserver.observe(O.u3.Handset),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return Fe.\u0275fac=function(Gt){return new(Gt||Fe)(v.Y36(v.sBO),v.Y36(O.Yg),v.Y36(v.QbO,8))},Fe.\u0275cmp=v.Xpm({type:Fe,selectors:[["mat-tooltip-component"]],viewQuery:function(Gt,Te){if(1&Gt&&v.Gf(ct,7),2&Gt){let ne;v.iGM(ne=v.CRH())&&(Te._tooltip=ne.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(Gt,Te){1&Gt&&v.NdJ("mouseleave",function(jt){return Te._handleMouseLeave(jt)}),2&Gt&&v.Udp("zoom",Te.isVisible()?1:null)},features:[v.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(Gt,Te){if(1&Gt&&(v.TgZ(0,"div",0,1),v.NdJ("animationend",function(jt){return Te._handleAnimationEnd(jt)}),v.ALo(2,"async"),v._uU(3),v.qZA()),2&Gt){let ne;v.ekj("mat-tooltip-handset",null==(ne=v.lcZ(2,4,Te._isHandset))?null:ne.matches),v.Q6J("ngClass",Te.tooltipClass),v.xp6(3),v.Oqu(Te.message)}},dependencies:[x.mk,x.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}),Fe})(),fe=(()=>{class Fe{}return Fe.\u0275fac=function(Gt){return new(Gt||Fe)},Fe.\u0275mod=v.oAB({type:Fe}),Fe.\u0275inj=v.cJS({providers:[pt],imports:[p.rt,x.ez,u.U8,t.BQ,t.BQ,T.ZD]}),Fe})()},35423:(X,j,h)=>{"use strict";h.d(j,{Ar:()=>tt,GZ:()=>V,JZ:()=>wt,WX:()=>Jt,ah:()=>W,dp:()=>Dt,eu:()=>ct,fQ:()=>N,gi:()=>st,kc:()=>qt,uo:()=>L});var u=h(57851),p=h(94650),x=h(3238),v=h(21281),t=h(95017),T=h(591),U=h(36787),w=h(72986),P=h(24850);const O=(0,x.sb)((0,x.Id)(u.Hs));let L=(()=>{class yt extends O{constructor(xt,pt,Ot){super(xt,pt),this.tabIndex=Number(Ot)||0}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}}return yt.\u0275fac=function(xt){return new(xt||yt)(p.Y36(p.SBq),p.Y36(u._0),p.$8M("tabindex"))},yt.\u0275dir=p.lG2({type:yt,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[p._Bn([{provide:u.Hs,useExisting:yt}]),p.qOj]}),yt})(),N=(()=>{class yt extends u.rO{}return yt.\u0275fac=function(){let At;return function(pt){return(At||(At=p.n5z(yt)))(pt||yt)}}(),yt.\u0275dir=p.lG2({type:yt,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[p._Bn([{provide:u.rO,useExisting:yt}]),p.qOj]}),yt})(),V=(()=>{class yt extends u.Xx{constructor(xt,pt,Ot,Bt){super(xt,pt,Ot),this._disabled=!1,this.tabIndex=Number(Bt)||0}get disabled(){return this._disabled}set disabled(xt){this._disabled=(0,v.Ig)(xt)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(xt){this._tabIndex=xt??0}ngOnInit(){super.ngOnInit()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}return yt.\u0275fac=function(xt){return new(xt||yt)(p.Y36(p.SBq),p.Y36(u._0),p.Y36(p.ZZ4),p.$8M("tabindex"))},yt.\u0275dir=p.lG2({type:yt,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[p._Bn([{provide:u.Xx,useExisting:yt},{provide:u.Hs,useExisting:yt},{provide:u.HI,useExisting:yt}]),p.qOj]}),yt})(),W=(()=>{class yt extends u.XJ{get level(){return this._level}set level(xt){this._setLevelInput(xt)}get indent(){return this._indent}set indent(xt){this._setIndentInput(xt)}}return yt.\u0275fac=function(){let At;return function(pt){return(At||(At=p.n5z(yt)))(pt||yt)}}(),yt.\u0275dir=p.lG2({type:yt,selectors:[["","matTreeNodePadding",""]],inputs:{level:["matTreeNodePadding","level"],indent:["matTreeNodePaddingIndent","indent"]},features:[p._Bn([{provide:u.XJ,useExisting:yt}]),p.qOj]}),yt})(),tt=(()=>{class yt{constructor(xt,pt){this.viewContainer=xt,this._node=pt}}return yt.\u0275fac=function(xt){return new(xt||yt)(p.Y36(p.s_b),p.Y36(u.HI,8))},yt.\u0275dir=p.lG2({type:yt,selectors:[["","matTreeNodeOutlet",""]],features:[p._Bn([{provide:u.cu,useExisting:yt}])]}),yt})(),st=(()=>{class yt extends u._0{}return yt.\u0275fac=function(){let At;return function(pt){return(At||(At=p.n5z(yt)))(pt||yt)}}(),yt.\u0275cmp=p.Xpm({type:yt,selectors:[["mat-tree"]],viewQuery:function(xt,pt){if(1&xt&&p.Gf(tt,7),2&xt){let Ot;p.iGM(Ot=p.CRH())&&(pt._nodeOutlet=Ot.first)}},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[p._Bn([{provide:u._0,useExisting:yt}]),p.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(xt,pt){1&xt&&p.GkF(0,0)},dependencies:[tt],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}),yt})(),ct=(()=>{class yt extends u.Ud{}return yt.\u0275fac=function(){let At;return function(pt){return(At||(At=p.n5z(yt)))(pt||yt)}}(),yt.\u0275dir=p.lG2({type:yt,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[p._Bn([{provide:u.Ud,useExisting:yt}]),p.qOj]}),yt})(),Dt=(()=>{class yt{}return yt.\u0275fac=function(xt){return new(xt||yt)},yt.\u0275mod=p.oAB({type:yt}),yt.\u0275inj=p.cJS({imports:[u.nZ,x.BQ,x.BQ]}),yt})();class wt{constructor(At,xt,pt,Ot){this.transformFunction=At,this.getLevel=xt,this.isExpandable=pt,this.getChildren=Ot}_flattenNode(At,xt,pt,Ot){const Bt=this.transformFunction(At,xt);if(pt.push(Bt),this.isExpandable(Bt)){const St=this.getChildren(At);St&&(Array.isArray(St)?this._flattenChildren(St,xt,pt,Ot):St.pipe((0,w.q)(1)).subscribe(ce=>{this._flattenChildren(ce,xt,pt,Ot)}))}return pt}_flattenChildren(At,xt,pt,Ot){At.forEach((Bt,St)=>{let ce=Ot.slice();ce.push(St!=At.length-1),this._flattenNode(Bt,xt+1,pt,ce)})}flattenNodes(At){let xt=[];return At.forEach(pt=>this._flattenNode(pt,0,xt,[])),xt}expandFlattenedNodes(At,xt){let pt=[],Ot=[];return Ot[0]=!0,At.forEach(Bt=>{let St=!0;for(let ce=0;ce<=this.getLevel(Bt);ce++)St=St&&Ot[ce];St&&pt.push(Bt),this.isExpandable(Bt)&&(Ot[this.getLevel(Bt)+1]=xt.isExpanded(Bt))}),pt}}class qt extends t.o2{constructor(At,xt,pt){super(),this._treeControl=At,this._treeFlattener=xt,this._flattenedData=new T.X([]),this._expandedData=new T.X([]),this._data=new T.X([]),pt&&(this.data=pt)}get data(){return this._data.value}set data(At){this._data.next(At),this._flattenedData.next(this._treeFlattener.flattenNodes(this.data)),this._treeControl.dataNodes=this._flattenedData.value}connect(At){return(0,U.T)(At.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 Jt extends t.o2{constructor(){super(...arguments),this._data=new T.X([])}get data(){return this._data.value}set data(At){this._data.next(At)}connect(At){return(0,U.T)(At.viewChange,this._data).pipe((0,P.U)(()=>this.data))}disconnect(){}}},11481:(X,j,h)=>{"use strict";h.d(j,{Dx:()=>le,H7:()=>Ie,b2:()=>te,q6:()=>ii,se:()=>Vt});var u=h(36895),p=h(94650);class x extends u.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class v extends x{static makeCurrent(){(0,u.HT)(new v)}onAndCancel(pn,We,ai){return pn.addEventListener(We,ai,!1),()=>{pn.removeEventListener(We,ai,!1)}}dispatchEvent(pn,We){pn.dispatchEvent(We)}remove(pn){pn.parentNode&&pn.parentNode.removeChild(pn)}createElement(pn,We){return(We=We||this.getDefaultDocument()).createElement(pn)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(pn){return pn.nodeType===Node.ELEMENT_NODE}isShadowRoot(pn){return pn instanceof DocumentFragment}getGlobalEventTarget(pn,We){return"window"===We?window:"document"===We?pn:"body"===We?pn.body:null}getBaseHref(pn){const We=function T(){return t=t||document.querySelector("base"),t?t.getAttribute("href"):null}();return null==We?null:function w(cn){U=U||document.createElement("a"),U.setAttribute("href",cn);const pn=U.pathname;return"/"===pn.charAt(0)?pn:`/${pn}`}(We)}resetBaseElement(){t=null}getUserAgent(){return window.navigator.userAgent}getCookie(pn){return(0,u.Mx)(document.cookie,pn)}}let U,t=null;const P=new p.OlP("TRANSITION_ID"),L=[{provide:p.ip1,useFactory:function O(cn,pn,We){return()=>{We.get(p.CZH).donePromise.then(()=>{const ai=(0,u.q)(),bi=pn.querySelectorAll(`style[ng-transition="${cn}"]`);for(let so=0;so{class cn{build(){return new XMLHttpRequest}}return cn.\u0275fac=function(We){return new(We||cn)},cn.\u0275prov=p.Yz7({token:cn,factory:cn.\u0275fac}),cn})();const W=new p.OlP("EventManagerPlugins");let tt=(()=>{class cn{constructor(We,ai){this._zone=ai,this._eventNameToPlugin=new Map,We.forEach(bi=>bi.manager=this),this._plugins=We.slice().reverse()}addEventListener(We,ai,bi){return this._findPluginFor(ai).addEventListener(We,ai,bi)}addGlobalEventListener(We,ai,bi){return this._findPluginFor(ai).addGlobalEventListener(We,ai,bi)}getZone(){return this._zone}_findPluginFor(We){const ai=this._eventNameToPlugin.get(We);if(ai)return ai;const bi=this._plugins;for(let so=0;so{class cn{constructor(){this._stylesSet=new Set}addStyles(We){const ai=new Set;We.forEach(bi=>{this._stylesSet.has(bi)||(this._stylesSet.add(bi),ai.add(bi))}),this.onStylesAdded(ai)}onStylesAdded(We){}getAllStyles(){return Array.from(this._stylesSet)}}return cn.\u0275fac=function(We){return new(We||cn)},cn.\u0275prov=p.Yz7({token:cn,factory:cn.\u0275fac}),cn})(),bt=(()=>{class cn extends ct{constructor(We){super(),this._doc=We,this._hostNodes=new Map,this._hostNodes.set(We.head,[])}_addStylesToHost(We,ai,bi){We.forEach(so=>{const To=this._doc.createElement("style");To.textContent=so,bi.push(ai.appendChild(To))})}addHost(We){const ai=[];this._addStylesToHost(this._stylesSet,We,ai),this._hostNodes.set(We,ai)}removeHost(We){const ai=this._hostNodes.get(We);ai&&ai.forEach(Dt),this._hostNodes.delete(We)}onStylesAdded(We){this._hostNodes.forEach((ai,bi)=>{this._addStylesToHost(We,bi,ai)})}ngOnDestroy(){this._hostNodes.forEach(We=>We.forEach(Dt))}}return cn.\u0275fac=function(We){return new(We||cn)(p.LFG(u.K0))},cn.\u0275prov=p.Yz7({token:cn,factory:cn.\u0275fac}),cn})();function Dt(cn){(0,u.q)().remove(cn)}const wt={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/"},qt=/%COMP%/g;function Bt(cn,pn,We){for(let ai=0;ai{if("__ngUnwrap__"===pn)return cn;!1===cn(pn)&&(pn.preventDefault(),pn.returnValue=!1)}}let Vt=(()=>{class cn{constructor(We,ai,bi){this.eventManager=We,this.sharedStylesHost=ai,this.appId=bi,this.rendererByCompId=new Map,this.defaultRenderer=new ve(We)}createRenderer(We,ai){if(!We||!ai)return this.defaultRenderer;switch(ai.encapsulation){case p.ifc.Emulated:{let bi=this.rendererByCompId.get(ai.id);return bi||(bi=new Ge(this.eventManager,this.sharedStylesHost,ai,this.appId),this.rendererByCompId.set(ai.id,bi)),bi.applyToHost(We),bi}case 1:case p.ifc.ShadowDom:return new Gt(this.eventManager,this.sharedStylesHost,We,ai);default:if(!this.rendererByCompId.has(ai.id)){const bi=Bt(ai.id,ai.styles,[]);this.sharedStylesHost.addStyles(bi),this.rendererByCompId.set(ai.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return cn.\u0275fac=function(We){return new(We||cn)(p.LFG(tt),p.LFG(bt),p.LFG(p.AFp))},cn.\u0275prov=p.Yz7({token:cn,factory:cn.\u0275fac}),cn})();class ve{constructor(pn){this.eventManager=pn,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(pn,We){return We?document.createElementNS(wt[We]||We,pn):document.createElement(pn)}createComment(pn){return document.createComment(pn)}createText(pn){return document.createTextNode(pn)}appendChild(pn,We){(Fe(pn)?pn.content:pn).appendChild(We)}insertBefore(pn,We,ai){pn&&(Fe(pn)?pn.content:pn).insertBefore(We,ai)}removeChild(pn,We){pn&&pn.removeChild(We)}selectRootElement(pn,We){let ai="string"==typeof pn?document.querySelector(pn):pn;if(!ai)throw new Error(`The selector "${pn}" did not match any elements`);return We||(ai.textContent=""),ai}parentNode(pn){return pn.parentNode}nextSibling(pn){return pn.nextSibling}setAttribute(pn,We,ai,bi){if(bi){We=bi+":"+We;const so=wt[bi];so?pn.setAttributeNS(so,We,ai):pn.setAttribute(We,ai)}else pn.setAttribute(We,ai)}removeAttribute(pn,We,ai){if(ai){const bi=wt[ai];bi?pn.removeAttributeNS(bi,We):pn.removeAttribute(`${ai}:${We}`)}else pn.removeAttribute(We)}addClass(pn,We){pn.classList.add(We)}removeClass(pn,We){pn.classList.remove(We)}setStyle(pn,We,ai,bi){bi&(p.JOm.DashCase|p.JOm.Important)?pn.style.setProperty(We,ai,bi&p.JOm.Important?"important":""):pn.style[We]=ai}removeStyle(pn,We,ai){ai&p.JOm.DashCase?pn.style.removeProperty(We):pn.style[We]=""}setProperty(pn,We,ai){pn[We]=ai}setValue(pn,We){pn.nodeValue=We}listen(pn,We,ai){return"string"==typeof pn?this.eventManager.addGlobalEventListener(pn,We,St(ai)):this.eventManager.addEventListener(pn,We,St(ai))}}function Fe(cn){return"TEMPLATE"===cn.tagName&&void 0!==cn.content}class Ge extends ve{constructor(pn,We,ai,bi){super(pn),this.component=ai;const so=Bt(bi+"-"+ai.id,ai.styles,[]);We.addStyles(so),this.contentAttr=function pt(cn){return"_ngcontent-%COMP%".replace(qt,cn)}(bi+"-"+ai.id),this.hostAttr=function Ot(cn){return"_nghost-%COMP%".replace(qt,cn)}(bi+"-"+ai.id)}applyToHost(pn){super.setAttribute(pn,this.hostAttr,"")}createElement(pn,We){const ai=super.createElement(pn,We);return super.setAttribute(ai,this.contentAttr,""),ai}}class Gt extends ve{constructor(pn,We,ai,bi){super(pn),this.sharedStylesHost=We,this.hostEl=ai,this.shadowRoot=ai.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const so=Bt(bi.id,bi.styles,[]);for(let To=0;To{class cn extends st{constructor(We){super(We)}supports(We){return!0}addEventListener(We,ai,bi){return We.addEventListener(ai,bi,!1),()=>this.removeEventListener(We,ai,bi)}removeEventListener(We,ai,bi){return We.removeEventListener(ai,bi)}}return cn.\u0275fac=function(We){return new(We||cn)(p.LFG(u.K0))},cn.\u0275prov=p.Yz7({token:cn,factory:cn.\u0275fac}),cn})();const ne=["alt","control","meta","shift"],jt={"\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"},re={alt:cn=>cn.altKey,control:cn=>cn.ctrlKey,meta:cn=>cn.metaKey,shift:cn=>cn.shiftKey};let Xt=(()=>{class cn extends st{constructor(We){super(We)}supports(We){return null!=cn.parseEventName(We)}addEventListener(We,ai,bi){const so=cn.parseEventName(ai),To=cn.eventCallback(so.fullKey,bi,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,u.q)().onAndCancel(We,so.domEventName,To))}static parseEventName(We){const ai=We.toLowerCase().split("."),bi=ai.shift();if(0===ai.length||"keydown"!==bi&&"keyup"!==bi)return null;const so=cn._normalizeKey(ai.pop());let To="",Lo=ai.indexOf("code");if(Lo>-1&&(ai.splice(Lo,1),To="code."),ne.forEach(Aa=>{const Ne=ai.indexOf(Aa);Ne>-1&&(ai.splice(Ne,1),To+=Aa+".")}),To+=so,0!=ai.length||0===so.length)return null;const ha={};return ha.domEventName=bi,ha.fullKey=To,ha}static matchEventFullKeyCode(We,ai){let bi=jt[We.key]||We.key,so="";return ai.indexOf("code.")>-1&&(bi=We.code,so="code."),!(null==bi||!bi)&&(bi=bi.toLowerCase()," "===bi?bi="space":"."===bi&&(bi="dot"),ne.forEach(To=>{To!==bi&&(0,re[To])(We)&&(so+=To+".")}),so+=bi,so===ai)}static eventCallback(We,ai,bi){return so=>{cn.matchEventFullKeyCode(so,We)&&bi.runGuarded(()=>ai(so))}}static _normalizeKey(We){return"esc"===We?"escape":We}}return cn.\u0275fac=function(We){return new(We||cn)(p.LFG(u.K0))},cn.\u0275prov=p.Yz7({token:cn,factory:cn.\u0275fac}),cn})();const ii=(0,p.eFA)(p._c5,"browser",[{provide:p.Lbi,useValue:u.bD},{provide:p.g9A,useValue:function vn(){v.makeCurrent()},multi:!0},{provide:u.K0,useFactory:function un(){return(0,p.RDi)(document),document},deps:[]}]),_i=new p.OlP(""),oi=[{provide:p.rWj,useClass:class N{addToWindow(pn){p.dqk.getAngularTestability=(ai,bi=!0)=>{const so=pn.findTestabilityInTree(ai,bi);if(null==so)throw new Error("Could not find testability for element.");return so},p.dqk.getAllAngularTestabilities=()=>pn.getAllTestabilities(),p.dqk.getAllAngularRootElements=()=>pn.getAllRootElements(),p.dqk.frameworkStabilizers||(p.dqk.frameworkStabilizers=[]),p.dqk.frameworkStabilizers.push(ai=>{const bi=p.dqk.getAllAngularTestabilities();let so=bi.length,To=!1;const Lo=function(ha){To=To||ha,so--,0==so&&ai(To)};bi.forEach(function(ha){ha.whenStable(Lo)})})}findTestabilityInTree(pn,We,ai){return null==We?null:pn.getTestability(We)??(ai?(0,u.q)().isShadowRoot(We)?this.findTestabilityInTree(pn,We.host,!0):this.findTestabilityInTree(pn,We.parentElement,!0):null)}},deps:[]},{provide:p.lri,useClass:p.dDg,deps:[p.R0b,p.eoX,p.rWj]},{provide:p.dDg,useClass:p.dDg,deps:[p.R0b,p.eoX,p.rWj]}],Qe=[{provide:p.zSh,useValue:"root"},{provide:p.qLn,useFactory:function ke(){return new p.qLn},deps:[]},{provide:W,useClass:Te,multi:!0,deps:[u.K0,p.R0b,p.Lbi]},{provide:W,useClass:Xt,multi:!0,deps:[u.K0]},{provide:Vt,useClass:Vt,deps:[tt,bt,p.AFp]},{provide:p.FYo,useExisting:Vt},{provide:ct,useExisting:bt},{provide:bt,useClass:bt,deps:[u.K0]},{provide:tt,useClass:tt,deps:[W,p.R0b]},{provide:u.JF,useClass:V,deps:[]},[]];let te=(()=>{class cn{constructor(We){}static withServerTransition(We){return{ngModule:cn,providers:[{provide:p.AFp,useValue:We.appId},{provide:P,useExisting:p.AFp},L]}}}return cn.\u0275fac=function(We){return new(We||cn)(p.LFG(_i,12))},cn.\u0275mod=p.oAB({type:cn}),cn.\u0275inj=p.cJS({providers:[...Qe,...oi],imports:[u.ez,p.hGG]}),cn})(),le=(()=>{class cn{constructor(We){this._doc=We}getTitle(){return this._doc.title}setTitle(We){this._doc.title=We||""}}return cn.\u0275fac=function(We){return new(We||cn)(p.LFG(u.K0))},cn.\u0275prov=p.Yz7({token:cn,factory:function(We){let ai=null;return ai=We?new We:function Rt(){return new le((0,p.LFG)(u.K0))}(),ai},providedIn:"root"}),cn})();typeof window<"u"&&window;let Ie=(()=>{class cn{}return cn.\u0275fac=function(We){return new(We||cn)},cn.\u0275prov=p.Yz7({token:cn,factory:function(We){let ai=null;return ai=We?new(We||cn):p.LFG(Ei),ai},providedIn:"root"}),cn})(),Ei=(()=>{class cn extends Ie{constructor(We){super(),this._doc=We}sanitize(We,ai){if(null==ai)return null;switch(We){case p.q3G.NONE:return ai;case p.q3G.HTML:return(0,p.qzn)(ai,"HTML")?(0,p.z3N)(ai):(0,p.EiD)(this._doc,String(ai)).toString();case p.q3G.STYLE:return(0,p.qzn)(ai,"Style")?(0,p.z3N)(ai):ai;case p.q3G.SCRIPT:if((0,p.qzn)(ai,"Script"))return(0,p.z3N)(ai);throw new Error("unsafe value used in a script context");case p.q3G.URL:return(0,p.qzn)(ai,"URL")?(0,p.z3N)(ai):(0,p.mCW)(String(ai));case p.q3G.RESOURCE_URL:if((0,p.qzn)(ai,"ResourceURL"))return(0,p.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 ${We} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(We){return(0,p.JVY)(We)}bypassSecurityTrustStyle(We){return(0,p.L6k)(We)}bypassSecurityTrustScript(We){return(0,p.eBb)(We)}bypassSecurityTrustUrl(We){return(0,p.LAX)(We)}bypassSecurityTrustResourceUrl(We){return(0,p.pB0)(We)}}return cn.\u0275fac=function(We){return new(We||cn)(p.LFG(u.K0))},cn.\u0275prov=p.Yz7({token:cn,factory:function(We){let ai=null;return ai=We?new We:function Sn(cn){return new Ei(cn.get(u.K0))}(p.LFG(p.zs3)),ai},providedIn:"root"}),cn})()},83689:(X,j,h)=>{"use strict";h.d(j,{gz:()=>Es,m2:()=>Ar,wN:()=>xi,F0:()=>hr,rH:()=>Mu,Od:()=>Zd,yS:()=>_l,Bz:()=>n_,lC:()=>Va});var u=h(94650),p=h(5254),x=h(21086),v=h(591),t=h(84450),T=h(23426),U=h(61221),w=h(88514),P=h(4843),O=h(61737),L=h(56498),N=h(68896),V=h(71762),W=h(8929),tt=h(36895),st=h(24850),ct=h(87545),bt=h(72986),Dt=h(1059),wt=h(92198),qt=h(61709),Jt=h(87224),yt=h(21406),At=h(22868),xt=h(27221),pt=h(43489);function Ot(ft,gt){let rt=!1;return arguments.length>=2&&(rt=!0),function(ee){return ee.lift(new Bt(ft,gt,rt))}}class Bt{constructor(gt,rt,Ht=!1){this.accumulator=gt,this.seed=rt,this.hasSeed=Ht}call(gt,rt){return rt.subscribe(new St(gt,this.accumulator,this.seed,this.hasSeed))}}class St extends pt.L{constructor(gt,rt,Ht,ee){super(gt),this.accumulator=rt,this._seed=Ht,this.hasSeed=ee,this.index=0}get seed(){return this._seed}set seed(gt){this.hasSeed=!0,this._seed=gt}_next(gt){if(this.hasSeed)return this._tryNext(gt);this.seed=gt,this.destination.next(gt)}_tryNext(gt){const rt=this.index++;let Ht;try{Ht=this.accumulator(this.seed,gt,rt)}catch(ee){this.destination.error(ee)}this.seed=Ht,this.destination.next(Ht)}}var ce=h(94231);function Vt(ft){return function(rt){return 0===ft?(0,N.c)():rt.lift(new ve(ft))}}class ve{constructor(gt){if(this.total=gt,this.total<0)throw new ce.W}call(gt,rt){return rt.subscribe(new fe(gt,this.total))}}class fe extends pt.L{constructor(gt,rt){super(gt),this.total=rt,this.ring=new Array,this.count=0}_next(gt){const rt=this.ring,Ht=this.total,ee=this.count++;rt.length0){const Ht=this.count>=this.total?this.total:this.count,ee=this.ring;for(let me=0;me=2;return Ht=>Ht.pipe(ft?(0,wt.h)((ee,me)=>ft(ee,me,Ht)):Ge.y,Vt(1),rt?(0,Fe.d)(gt):(0,Le.T)(()=>new t.K))}var Te=h(44290),ne=h(77604),jt=h(40537),re=h(74327),Xt=h(89146),oe=h(11481);const Me="primary",en=Symbol("RouteTitle");class _n{constructor(gt){this.params=gt||{}}has(gt){return Object.prototype.hasOwnProperty.call(this.params,gt)}get(gt){if(this.has(gt)){const rt=this.params[gt];return Array.isArray(rt)?rt[0]:rt}return null}getAll(gt){if(this.has(gt)){const rt=this.params[gt];return Array.isArray(rt)?rt:[rt]}return[]}get keys(){return Object.keys(this.params)}}function xe(ft){return new _n(ft)}function vn(ft,gt,rt){const Ht=rt.path.split("/");if(Ht.length>ft.length||"full"===rt.pathMatch&&(gt.hasChildren()||Ht.lengthHt[me]===ee)}return ft===gt}function ii(ft){return Array.prototype.concat.apply([],ft)}function _i(ft){return ft.length>0?ft[ft.length-1]:null}function Qe(ft,gt){for(const rt in ft)ft.hasOwnProperty(rt)&>(ft[rt],rt)}function te(ft){return(0,u.CqO)(ft)?ft:(0,u.QGY)(ft)?(0,p.D)(Promise.resolve(ft)):(0,x.of)(ft)}const Tt={exact:function De(ft,gt,rt){if(!Je(ft.segments,gt.segments)||!Di(ft.segments,gt.segments,rt)||ft.numberOfChildren!==gt.numberOfChildren)return!1;for(const Ht in gt.children)if(!ft.children[Ht]||!De(ft.children[Ht],gt.children[Ht],rt))return!1;return!0},subset:qn},Rt={exact:function be(ft,gt){return un(ft,gt)},subset:function hn(ft,gt){return Object.keys(gt).length<=Object.keys(ft).length&&Object.keys(gt).every(rt=>Dn(ft[rt],gt[rt]))},ignored:()=>!0};function le(ft,gt,rt){return Tt[rt.paths](ft.root,gt.root,rt.matrixParams)&&Rt[rt.queryParams](ft.queryParams,gt.queryParams)&&!("exact"===rt.fragment&&ft.fragment!==gt.fragment)}function qn(ft,gt,rt){return mi(ft,gt,gt.segments,rt)}function mi(ft,gt,rt,Ht){if(ft.segments.length>rt.length){const ee=ft.segments.slice(0,rt.length);return!(!Je(ee,rt)||gt.hasChildren()||!Di(ee,rt,Ht))}if(ft.segments.length===rt.length){if(!Je(ft.segments,rt)||!Di(ft.segments,rt,Ht))return!1;for(const ee in gt.children)if(!ft.children[ee]||!qn(ft.children[ee],gt.children[ee],Ht))return!1;return!0}{const ee=rt.slice(0,ft.segments.length),me=rt.slice(ft.segments.length);return!!(Je(ft.segments,ee)&&Di(ft.segments,ee,Ht)&&ft.children[Me])&&mi(ft.children[Me],gt,me,Ht)}}function Di(ft,gt,rt){return gt.every((Ht,ee)=>Rt[rt](ft[ee].parameters,Ht.parameters))}class bo{constructor(gt,rt,Ht){this.root=gt,this.queryParams=rt,this.fragment=Ht}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=xe(this.queryParams)),this._queryParamMap}toString(){return Xe.serialize(this)}}class hi{constructor(gt,rt){this.segments=gt,this.children=rt,this.parent=null,Qe(rt,(Ht,ee)=>Ht.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return se(this)}}class Yn{constructor(gt,rt){this.path=gt,this.parameters=rt}get parameterMap(){return this._parameterMap||(this._parameterMap=xe(this.parameters)),this._parameterMap}toString(){return Se(this)}}function Je(ft,gt){return ft.length===gt.length&&ft.every((rt,Ht)=>rt.path===gt[Ht].path)}let Ye=(()=>{class ft{}return ft.\u0275fac=function(rt){return new(rt||ft)},ft.\u0275prov=u.Yz7({token:ft,factory:function(){return new Ee},providedIn:"root"}),ft})();class Ee{parse(gt){const rt=new We(gt);return new bo(rt.parseRootSegment(),rt.parseQueryParams(),rt.parseFragment())}serialize(gt){const rt=`/${ze(gt.root,!0)}`,Ht=function Ae(ft){const gt=Object.keys(ft).map(rt=>{const Ht=ft[rt];return Array.isArray(Ht)?Ht.map(ee=>`${rn(rt)}=${rn(ee)}`).join("&"):`${rn(rt)}=${rn(Ht)}`}).filter(rt=>!!rt);return gt.length?`?${gt.join("&")}`:""}(gt.queryParams);return`${rt}${Ht}${"string"==typeof gt.fragment?`#${function fn(ft){return encodeURI(ft)}(gt.fragment)}`:""}`}}const Xe=new Ee;function se(ft){return ft.segments.map(gt=>Se(gt)).join("/")}function ze(ft,gt){if(!ft.hasChildren())return se(ft);if(gt){const rt=ft.children[Me]?ze(ft.children[Me],!1):"",Ht=[];return Qe(ft.children,(ee,me)=>{me!==Me&&Ht.push(`${me}:${ze(ee,!1)}`)}),Ht.length>0?`${rt}(${Ht.join("//")})`:rt}{const rt=function gn(ft,gt){let rt=[];return Qe(ft.children,(Ht,ee)=>{ee===Me&&(rt=rt.concat(gt(Ht,ee)))}),Qe(ft.children,(Ht,ee)=>{ee!==Me&&(rt=rt.concat(gt(Ht,ee)))}),rt}(ft,(Ht,ee)=>ee===Me?[ze(ft.children[Me],!1)]:[`${ee}:${ze(Ht,!1)}`]);return 1===Object.keys(ft.children).length&&null!=ft.children[Me]?`${se(ft)}/${rt[0]}`:`${se(ft)}/(${rt.join("//")})`}}function ie(ft){return encodeURIComponent(ft).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function rn(ft){return ie(ft).replace(/%3B/gi,";")}function sn(ft){return ie(ft).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ge(ft){return decodeURIComponent(ft)}function Nt(ft){return ge(ft.replace(/\+/g,"%20"))}function Se(ft){return`${sn(ft.path)}${function zt(ft){return Object.keys(ft).map(gt=>`;${sn(gt)}=${sn(ft[gt])}`).join("")}(ft.parameters)}`}const Ie=/^[^\/()?;=#]+/;function Sn(ft){const gt=ft.match(Ie);return gt?gt[0]:""}const Ei=/^[^=?&#]+/,cn=/^[^&#]+/;class We{constructor(gt){this.url=gt,this.remaining=gt}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new hi([],{}):new hi([],this.parseChildren())}parseQueryParams(){const gt={};if(this.consumeOptional("?"))do{this.parseQueryParam(gt)}while(this.consumeOptional("&"));return gt}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const gt=[];for(this.peekStartsWith("(")||gt.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),gt.push(this.parseSegment());let rt={};this.peekStartsWith("/(")&&(this.capture("/"),rt=this.parseParens(!0));let Ht={};return this.peekStartsWith("(")&&(Ht=this.parseParens(!1)),(gt.length>0||Object.keys(rt).length>0)&&(Ht[Me]=new hi(gt,rt)),Ht}parseSegment(){const gt=Sn(this.remaining);if(""===gt&&this.peekStartsWith(";"))throw new u.vHH(4009,!1);return this.capture(gt),new Yn(ge(gt),this.parseMatrixParams())}parseMatrixParams(){const gt={};for(;this.consumeOptional(";");)this.parseParam(gt);return gt}parseParam(gt){const rt=Sn(this.remaining);if(!rt)return;this.capture(rt);let Ht="";if(this.consumeOptional("=")){const ee=Sn(this.remaining);ee&&(Ht=ee,this.capture(Ht))}gt[ge(rt)]=ge(Ht)}parseQueryParam(gt){const rt=function Vi(ft){const gt=ft.match(Ei);return gt?gt[0]:""}(this.remaining);if(!rt)return;this.capture(rt);let Ht="";if(this.consumeOptional("=")){const Pn=function pn(ft){const gt=ft.match(cn);return gt?gt[0]:""}(this.remaining);Pn&&(Ht=Pn,this.capture(Ht))}const ee=Nt(rt),me=Nt(Ht);if(gt.hasOwnProperty(ee)){let Pn=gt[ee];Array.isArray(Pn)||(Pn=[Pn],gt[ee]=Pn),Pn.push(me)}else gt[ee]=me}parseParens(gt){const rt={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const Ht=Sn(this.remaining),ee=this.remaining[Ht.length];if("/"!==ee&&")"!==ee&&";"!==ee)throw new u.vHH(4010,!1);let me;Ht.indexOf(":")>-1?(me=Ht.slice(0,Ht.indexOf(":")),this.capture(me),this.capture(":")):gt&&(me=Me);const Pn=this.parseChildren();rt[me]=1===Object.keys(Pn).length?Pn[Me]:new hi([],Pn),this.consumeOptional("//")}return rt}peekStartsWith(gt){return this.remaining.startsWith(gt)}consumeOptional(gt){return!!this.peekStartsWith(gt)&&(this.remaining=this.remaining.substring(gt.length),!0)}capture(gt){if(!this.consumeOptional(gt))throw new u.vHH(4011,!1)}}function ai(ft){return ft.segments.length>0?new hi([],{[Me]:ft}):ft}function bi(ft){const gt={};for(const Ht of Object.keys(ft.children)){const me=bi(ft.children[Ht]);(me.segments.length>0||me.hasChildren())&&(gt[Ht]=me)}return function so(ft){if(1===ft.numberOfChildren&&ft.children[Me]){const gt=ft.children[Me];return new hi(ft.segments.concat(gt.segments),gt.children)}return ft}(new hi(ft.segments,gt))}function To(ft){return ft instanceof bo}function Rn(ft,gt,rt,Ht,ee){if(0===rt.length)return on(gt.root,gt.root,gt.root,Ht,ee);const me=function J(ft){if("string"==typeof ft[0]&&1===ft.length&&"/"===ft[0])return new Et(!0,0,ft);let gt=0,rt=!1;const Ht=ft.reduce((ee,me,Pn)=>{if("object"==typeof me&&null!=me){if(me.outlets){const yn={};return Qe(me.outlets,(qe,Ue)=>{yn[Ue]="string"==typeof qe?qe.split("/"):qe}),[...ee,{outlets:yn}]}if(me.segmentPath)return[...ee,me.segmentPath]}return"string"!=typeof me?[...ee,me]:0===Pn?(me.split("/").forEach((yn,qe)=>{0==qe&&"."===yn||(0==qe&&""===yn?rt=!0:".."===yn?gt++:""!=yn&&ee.push(yn))}),ee):[...ee,me]},[]);return new Et(rt,gt,Ht)}(rt);return me.toRoot()?on(gt.root,gt.root,new hi([],{}),Ht,ee):function Pn(qe){const Ue=function zn(ft,gt,rt,Ht){if(ft.isAbsolute)return new Lt(gt.root,!0,0);if(-1===Ht)return new Lt(rt,rt===gt.root,0);return function Ki(ft,gt,rt){let Ht=ft,ee=gt,me=rt;for(;me>ee;){if(me-=ee,Ht=Ht.parent,!Ht)throw new u.vHH(4005,!1);ee=Ht.segments.length}return new Lt(Ht,!1,ee-me)}(rt,Ht+(Re(ft.commands[0])?0:1),ft.numberOfDoubleDots)}(me,gt,ft.snapshot?._urlSegment,qe),li=Ue.processChildren?pr(Ue.segmentGroup,Ue.index,me.commands):dr(Ue.segmentGroup,Ue.index,me.commands);return on(gt.root,Ue.segmentGroup,li,Ht,ee)}(ft.snapshot?._lastPathIndex)}function Re(ft){return"object"==typeof ft&&null!=ft&&!ft.outlets&&!ft.segmentPath}function we(ft){return"object"==typeof ft&&null!=ft&&ft.outlets}function on(ft,gt,rt,Ht,ee){let Pn,me={};Ht&&Qe(Ht,(qe,Ue)=>{me[Ue]=Array.isArray(qe)?qe.map(li=>`${li}`):`${qe}`}),Pn=ft===gt?rt:Q(ft,gt,rt);const yn=ai(bi(Pn));return new bo(yn,me,ee)}function Q(ft,gt,rt){const Ht={};return Qe(ft.children,(ee,me)=>{Ht[me]=ee===gt?rt:Q(ee,gt,rt)}),new hi(ft.segments,Ht)}class Et{constructor(gt,rt,Ht){if(this.isAbsolute=gt,this.numberOfDoubleDots=rt,this.commands=Ht,gt&&Ht.length>0&&Re(Ht[0]))throw new u.vHH(4003,!1);const ee=Ht.find(we);if(ee&&ee!==_i(Ht))throw new u.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Lt{constructor(gt,rt,Ht){this.segmentGroup=gt,this.processChildren=rt,this.index=Ht}}function dr(ft,gt,rt){if(ft||(ft=new hi([],{})),0===ft.segments.length&&ft.hasChildren())return pr(ft,gt,rt);const Ht=function $r(ft,gt,rt){let Ht=0,ee=gt;const me={match:!1,pathIndex:0,commandIndex:0};for(;ee=rt.length)return me;const Pn=ft.segments[ee],yn=rt[Ht];if(we(yn))break;const qe=`${yn}`,Ue=Ht0&&void 0===qe)break;if(qe&&Ue&&"object"==typeof Ue&&void 0===Ue.outlets){if(!nr(qe,Ue,Pn))return me;Ht+=2}else{if(!nr(qe,{},Pn))return me;Ht++}ee++}return{match:!0,pathIndex:ee,commandIndex:Ht}}(ft,gt,rt),ee=rt.slice(Ht.commandIndex);if(Ht.match&&Ht.pathIndex{"string"==typeof me&&(me=[me]),null!==me&&(ee[Pn]=dr(ft.children[Pn],gt,me))}),Qe(ft.children,(me,Pn)=>{void 0===Ht[Pn]&&(ee[Pn]=me)}),new hi(ft.segments,ee)}}function ja(ft,gt,rt){const Ht=ft.segments.slice(0,gt);let ee=0;for(;ee{"string"==typeof rt&&(rt=[rt]),null!==rt&&(gt[Ht]=ja(new hi([],{}),0,rt))}),gt}function cc(ft){const gt={};return Qe(ft,(rt,Ht)=>gt[Ht]=`${rt}`),gt}function nr(ft,gt,rt){return ft==rt.path&&un(gt,rt.parameters)}class ds{constructor(gt,rt){this.id=gt,this.url=rt}}class Tr extends ds{constructor(gt,rt,Ht="imperative",ee=null){super(gt,rt),this.type=0,this.navigationTrigger=Ht,this.restoredState=ee}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Ar extends ds{constructor(gt,rt,Ht){super(gt,rt),this.urlAfterRedirects=Ht,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Sc extends ds{constructor(gt,rt,Ht,ee){super(gt,rt),this.reason=Ht,this.code=ee,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Ml extends ds{constructor(gt,rt,Ht,ee){super(gt,rt),this.error=Ht,this.target=ee,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class js extends ds{constructor(gt,rt,Ht,ee){super(gt,rt),this.urlAfterRedirects=Ht,this.state=ee,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ls extends ds{constructor(gt,rt,Ht,ee){super(gt,rt),this.urlAfterRedirects=Ht,this.state=ee,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ws extends ds{constructor(gt,rt,Ht,ee,me){super(gt,rt),this.urlAfterRedirects=Ht,this.state=ee,this.shouldActivate=me,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Oc extends ds{constructor(gt,rt,Ht,ee){super(gt,rt),this.urlAfterRedirects=Ht,this.state=ee,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ps extends ds{constructor(gt,rt,Ht,ee){super(gt,rt),this.urlAfterRedirects=Ht,this.state=ee,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Hs{constructor(gt){this.route=gt,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Qd{constructor(gt){this.route=gt,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Fr{constructor(gt){this.snapshot=gt,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ud{constructor(gt){this.snapshot=gt,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class jd{constructor(gt){this.snapshot=gt,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Gc{constructor(gt){this.snapshot=gt,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class lc{constructor(gt,rt,Ht){this.routerEvent=gt,this.position=rt,this.anchor=Ht,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Qc{constructor(gt){this._root=gt}get root(){return this._root.value}parent(gt){const rt=this.pathFromRoot(gt);return rt.length>1?rt[rt.length-2]:null}children(gt){const rt=jc(gt,this._root);return rt?rt.children.map(Ht=>Ht.value):[]}firstChild(gt){const rt=jc(gt,this._root);return rt&&rt.children.length>0?rt.children[0].value:null}siblings(gt){const rt=$s(gt,this._root);return rt.length<2?[]:rt[rt.length-2].children.map(ee=>ee.value).filter(ee=>ee!==gt)}pathFromRoot(gt){return $s(gt,this._root).map(rt=>rt.value)}}function jc(ft,gt){if(ft===gt.value)return gt;for(const rt of gt.children){const Ht=jc(ft,rt);if(Ht)return Ht}return null}function $s(ft,gt){if(ft===gt.value)return[gt];for(const rt of gt.children){const Ht=$s(ft,rt);if(Ht.length)return Ht.unshift(gt),Ht}return[]}class xc{constructor(gt,rt){this.value=gt,this.children=rt}toString(){return`TreeNode(${this.value})`}}function Ks(ft){const gt={};return ft&&ft.children.forEach(rt=>gt[rt.value.outlet]=rt),gt}class ll extends Qc{constructor(gt,rt){super(gt),this.snapshot=rt,Dl(this,gt)}toString(){return this.snapshot.toString()}}function td(ft,gt){const rt=function jl(ft,gt){const Pn=new Wc([],{},{},"",{},Me,gt,null,ft.root,-1,{});return new Xs("",new xc(Pn,[]))}(ft,gt),Ht=new v.X([new Yn("",{})]),ee=new v.X({}),me=new v.X({}),Pn=new v.X({}),yn=new v.X(""),qe=new Es(Ht,ee,Pn,yn,me,Me,gt,rt.root);return qe.snapshot=rt.root,new ll(new xc(qe,[]),rt)}class Es{constructor(gt,rt,Ht,ee,me,Pn,yn,qe){this.url=gt,this.params=rt,this.queryParams=Ht,this.fragment=ee,this.data=me,this.outlet=Pn,this.component=yn,this.title=this.data?.pipe((0,st.U)(Ue=>Ue[en]))??(0,x.of)(void 0),this._futureSnapshot=qe}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,st.U)(gt=>xe(gt)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,st.U)(gt=>xe(gt)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Zl(ft,gt="emptyOnly"){const rt=ft.pathFromRoot;let Ht=0;if("always"!==gt)for(Ht=rt.length-1;Ht>=1;){const ee=rt[Ht],me=rt[Ht-1];if(ee.routeConfig&&""===ee.routeConfig.path)Ht--;else{if(me.component)break;Ht--}}return function Ys(ft){return ft.reduce((gt,rt)=>({params:{...gt.params,...rt.params},data:{...gt.data,...rt.data},resolve:{...rt.data,...gt.resolve,...rt.routeConfig?.data,...rt._resolvedData}}),{params:{},data:{},resolve:{}})}(rt.slice(Ht))}class Wc{constructor(gt,rt,Ht,ee,me,Pn,yn,qe,Ue,li,Ao,Co){this.url=gt,this.params=rt,this.queryParams=Ht,this.fragment=ee,this.data=me,this.outlet=Pn,this.component=yn,this.title=this.data?.[en],this.routeConfig=qe,this._urlSegment=Ue,this._lastPathIndex=li,this._correctedLastPathIndex=Co??li,this._resolve=Ao}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=xe(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=xe(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(Ht=>Ht.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Xs extends Qc{constructor(gt,rt){super(rt),this.url=gt,Dl(this,rt)}toString(){return lu(this._root)}}function Dl(ft,gt){gt.value._routerState=ft,gt.children.forEach(rt=>Dl(ft,rt))}function lu(ft){const gt=ft.children.length>0?` { ${ft.children.map(lu).join(", ")} } `:"";return`${ft.value}${gt}`}function Wl(ft){if(ft.snapshot){const gt=ft.snapshot,rt=ft._futureSnapshot;ft.snapshot=rt,un(gt.queryParams,rt.queryParams)||ft.queryParams.next(rt.queryParams),gt.fragment!==rt.fragment&&ft.fragment.next(rt.fragment),un(gt.params,rt.params)||ft.params.next(rt.params),function ke(ft,gt){if(ft.length!==gt.length)return!1;for(let rt=0;rtun(rt.parameters,gt[Ht].parameters))}(ft.url,gt.url);return rt&&!(!ft.parent!=!gt.parent)&&(!ft.parent||Ca(ft.parent,gt.parent))}function bc(ft,gt,rt){if(rt&&ft.shouldReuseRoute(gt.value,rt.value.snapshot)){const Ht=rt.value;Ht._futureSnapshot=gt.value;const ee=function Tu(ft,gt,rt){return gt.children.map(Ht=>{for(const ee of rt.children)if(ft.shouldReuseRoute(Ht.value,ee.value.snapshot))return bc(ft,Ht,ee);return bc(ft,Ht)})}(ft,gt,rt);return new xc(Ht,ee)}{if(ft.shouldAttach(gt.value)){const me=ft.retrieve(gt.value);if(null!==me){const Pn=me.route;return Pn.value._futureSnapshot=gt.value,Pn.children=gt.children.map(yn=>bc(ft,yn)),Pn}}const Ht=function ed(ft){return new Es(new v.X(ft.url),new v.X(ft.params),new v.X(ft.queryParams),new v.X(ft.fragment),new v.X(ft.data),ft.outlet,ft.component,ft)}(gt.value),ee=gt.children.map(me=>bc(ft,me));return new xc(Ht,ee)}}const qa="ngNavigationCancelingError";function uu(ft,gt){const{redirectTo:rt,navigationBehaviorOptions:Ht}=To(gt)?{redirectTo:gt,navigationBehaviorOptions:void 0}:gt,ee=Ts(!1,0,gt);return ee.url=rt,ee.navigationBehaviorOptions=Ht,ee}function Ts(ft,gt,rt){const Ht=new Error("NavigationCancelingError: "+(ft||""));return Ht[qa]=!0,Ht.cancellationCode=gt,rt&&(Ht.url=rt),Ht}function As(ft){return $l(ft)&&To(ft.url)}function $l(ft){return ft&&ft[qa]}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 ft{constructor(){this.contexts=new Map}onChildOutletCreated(rt,Ht){const ee=this.getOrCreateContext(rt);ee.outlet=Ht,this.contexts.set(rt,ee)}onChildOutletDestroyed(rt){const Ht=this.getContext(rt);Ht&&(Ht.outlet=null,Ht.attachRef=null)}onOutletDeactivated(){const rt=this.contexts;return this.contexts=new Map,rt}onOutletReAttached(rt){this.contexts=rt}getOrCreateContext(rt){let Ht=this.getContext(rt);return Ht||(Ht=new Pr,this.contexts.set(rt,Ht)),Ht}getContext(rt){return this.contexts.get(rt)||null}}return ft.\u0275fac=function(rt){return new(rt||ft)},ft.\u0275prov=u.Yz7({token:ft,factory:ft.\u0275fac,providedIn:"root"}),ft})();const za=!1;let Va=(()=>{class ft{constructor(rt,Ht,ee,me,Pn){this.parentContexts=rt,this.location=Ht,this.changeDetector=me,this.environmentInjector=Pn,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=ee||Me,rt.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const rt=this.parentContexts.getContext(this.name);rt&&rt.route&&(rt.attachRef?this.attach(rt.attachRef,rt.route):this.activateWith(rt.route,rt.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new u.vHH(4012,za);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new u.vHH(4012,za);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new u.vHH(4012,za);this.location.detach();const rt=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(rt.instance),rt}attach(rt,Ht){this.activated=rt,this._activatedRoute=Ht,this.location.insert(rt.hostView),this.attachEvents.emit(rt.instance)}deactivate(){if(this.activated){const rt=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(rt)}}activateWith(rt,Ht){if(this.isActivated)throw new u.vHH(4013,za);this._activatedRoute=rt;const ee=this.location,Pn=rt._futureSnapshot.component,yn=this.parentContexts.getOrCreateContext(this.name).children,qe=new Ur(rt,yn,ee.injector);if(Ht&&function vr(ft){return!!ft.resolveComponentFactory}(Ht)){const Ue=Ht.resolveComponentFactory(Pn);this.activated=ee.createComponent(Ue,ee.length,qe)}else this.activated=ee.createComponent(Pn,{index:ee.length,injector:qe,environmentInjector:Ht??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return ft.\u0275fac=function(rt){return new(rt||ft)(u.Y36(dc),u.Y36(u.s_b),u.$8M("name"),u.Y36(u.sBO),u.Y36(u.lqb))},ft.\u0275dir=u.lG2({type:ft,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0}),ft})();class Ur{constructor(gt,rt,Ht){this.route=gt,this.childContexts=rt,this.parent=Ht}get(gt,rt){return gt===Es?this.route:gt===dc?this.childContexts:this.parent.get(gt,rt)}}let as=(()=>{class ft{}return ft.\u0275fac=function(rt){return new(rt||ft)},ft.\u0275cmp=u.Xpm({type:ft,selectors:[["ng-component"]],standalone:!0,features:[u.jDz],decls:1,vars:0,template:function(rt,Ht){1&rt&&u._UZ(0,"router-outlet")},dependencies:[Va],encapsulation:2}),ft})();function Qn(ft,gt){return ft.providers&&!ft._injector&&(ft._injector=(0,u.MMx)(ft.providers,gt,`Route: ${ft.path}`)),ft._injector??gt}function Ns(ft){const gt=ft.children&&ft.children.map(Ns),rt=gt?{...ft,children:gt}:{...ft};return!rt.component&&!rt.loadComponent&&(gt||rt.loadChildren)&&rt.outlet&&rt.outlet!==Me&&(rt.component=as),rt}function Ba(ft){return ft.outlet||Me}function io(ft,gt){const rt=ft.filter(Ht=>Ba(Ht)===gt);return rt.push(...ft.filter(Ht=>Ba(Ht)!==gt)),rt}function Nr(ft){if(!ft)return null;if(ft.routeConfig?._injector)return ft.routeConfig._injector;for(let gt=ft.parent;gt;gt=gt.parent){const rt=gt.routeConfig;if(rt?._loadedInjector)return rt._loadedInjector;if(rt?._injector)return rt._injector}return null}class Br{constructor(gt,rt,Ht,ee){this.routeReuseStrategy=gt,this.futureState=rt,this.currState=Ht,this.forwardEvent=ee}activate(gt){const rt=this.futureState._root,Ht=this.currState?this.currState._root:null;this.deactivateChildRoutes(rt,Ht,gt),Wl(this.futureState.root),this.activateChildRoutes(rt,Ht,gt)}deactivateChildRoutes(gt,rt,Ht){const ee=Ks(rt);gt.children.forEach(me=>{const Pn=me.value.outlet;this.deactivateRoutes(me,ee[Pn],Ht),delete ee[Pn]}),Qe(ee,(me,Pn)=>{this.deactivateRouteAndItsChildren(me,Ht)})}deactivateRoutes(gt,rt,Ht){const ee=gt.value,me=rt?rt.value:null;if(ee===me)if(ee.component){const Pn=Ht.getContext(ee.outlet);Pn&&this.deactivateChildRoutes(gt,rt,Pn.children)}else this.deactivateChildRoutes(gt,rt,Ht);else me&&this.deactivateRouteAndItsChildren(rt,Ht)}deactivateRouteAndItsChildren(gt,rt){gt.value.component&&this.routeReuseStrategy.shouldDetach(gt.value.snapshot)?this.detachAndStoreRouteSubtree(gt,rt):this.deactivateRouteAndOutlet(gt,rt)}detachAndStoreRouteSubtree(gt,rt){const Ht=rt.getContext(gt.value.outlet),ee=Ht&>.value.component?Ht.children:rt,me=Ks(gt);for(const Pn of Object.keys(me))this.deactivateRouteAndItsChildren(me[Pn],ee);if(Ht&&Ht.outlet){const Pn=Ht.outlet.detach(),yn=Ht.children.onOutletDeactivated();this.routeReuseStrategy.store(gt.value.snapshot,{componentRef:Pn,route:gt,contexts:yn})}}deactivateRouteAndOutlet(gt,rt){const Ht=rt.getContext(gt.value.outlet),ee=Ht&>.value.component?Ht.children:rt,me=Ks(gt);for(const Pn of Object.keys(me))this.deactivateRouteAndItsChildren(me[Pn],ee);Ht&&Ht.outlet&&(Ht.outlet.deactivate(),Ht.children.onOutletDeactivated(),Ht.attachRef=null,Ht.resolver=null,Ht.route=null)}activateChildRoutes(gt,rt,Ht){const ee=Ks(rt);gt.children.forEach(me=>{this.activateRoutes(me,ee[me.value.outlet],Ht),this.forwardEvent(new Gc(me.value.snapshot))}),gt.children.length&&this.forwardEvent(new Ud(gt.value.snapshot))}activateRoutes(gt,rt,Ht){const ee=gt.value,me=rt?rt.value:null;if(Wl(ee),ee===me)if(ee.component){const Pn=Ht.getOrCreateContext(ee.outlet);this.activateChildRoutes(gt,rt,Pn.children)}else this.activateChildRoutes(gt,rt,Ht);else if(ee.component){const Pn=Ht.getOrCreateContext(ee.outlet);if(this.routeReuseStrategy.shouldAttach(ee.snapshot)){const yn=this.routeReuseStrategy.retrieve(ee.snapshot);this.routeReuseStrategy.store(ee.snapshot,null),Pn.children.onOutletReAttached(yn.contexts),Pn.attachRef=yn.componentRef,Pn.route=yn.route.value,Pn.outlet&&Pn.outlet.attach(yn.componentRef,yn.route.value),Wl(yn.route.value),this.activateChildRoutes(gt,null,Pn.children)}else{const yn=Nr(ee.snapshot),qe=yn?.get(u._Vd)??null;Pn.attachRef=null,Pn.route=ee,Pn.resolver=qe,Pn.injector=yn,Pn.outlet&&Pn.outlet.activateWith(ee,Pn.injector),this.activateChildRoutes(gt,null,Pn.children)}}else this.activateChildRoutes(gt,null,Ht)}}class Lc{constructor(gt){this.path=gt,this.route=this.path[this.path.length-1]}}class ul{constructor(gt,rt){this.component=gt,this.route=rt}}function Cc(ft,gt,rt){const Ht=ft._root;return Gi(Ht,gt?gt._root:null,rt,[Ht.value])}function _s(ft,gt){const rt=Symbol(),Ht=gt.get(ft,rt);return Ht===rt?"function"!=typeof ft||(0,u.Z0I)(ft)?gt.get(ft):ft:Ht}function Gi(ft,gt,rt,Ht,ee={canDeactivateChecks:[],canActivateChecks:[]}){const me=Ks(gt);return ft.children.forEach(Pn=>{(function da(ft,gt,rt,Ht,ee={canDeactivateChecks:[],canActivateChecks:[]}){const me=ft.value,Pn=gt?gt.value:null,yn=rt?rt.getContext(ft.value.outlet):null;if(Pn&&me.routeConfig===Pn.routeConfig){const qe=function or(ft,gt,rt){if("function"==typeof rt)return rt(ft,gt);switch(rt){case"pathParamsChange":return!Je(ft.url,gt.url);case"pathParamsOrQueryParamsChange":return!Je(ft.url,gt.url)||!un(ft.queryParams,gt.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ca(ft,gt)||!un(ft.queryParams,gt.queryParams);default:return!Ca(ft,gt)}}(Pn,me,me.routeConfig.runGuardsAndResolvers);qe?ee.canActivateChecks.push(new Lc(Ht)):(me.data=Pn.data,me._resolvedData=Pn._resolvedData),Gi(ft,gt,me.component?yn?yn.children:null:rt,Ht,ee),qe&&yn&&yn.outlet&&yn.outlet.isActivated&&ee.canDeactivateChecks.push(new ul(yn.outlet.component,Pn))}else Pn&&Kr(gt,yn,ee),ee.canActivateChecks.push(new Lc(Ht)),Gi(ft,null,me.component?yn?yn.children:null:rt,Ht,ee)})(Pn,me[Pn.value.outlet],rt,Ht.concat([Pn.value]),ee),delete me[Pn.value.outlet]}),Qe(me,(Pn,yn)=>Kr(Pn,rt.getContext(yn),ee)),ee}function Kr(ft,gt,rt){const Ht=Ks(ft),ee=ft.value;Qe(Ht,(me,Pn)=>{Kr(me,ee.component?gt?gt.children.getContext(Pn):null:gt,rt)}),rt.canDeactivateChecks.push(new ul(ee.component&>&>.outlet&>.outlet.isActivated?gt.outlet.component:null,ee))}function Wa(ft){return"function"==typeof ft}function Ec(ft){return ft instanceof t.K||"EmptyError"===ft?.name}const Ir=Symbol("INITIAL_VALUE");function qr(){return(0,ct.w)(ft=>(0,T.aj)(ft.map(gt=>gt.pipe((0,bt.q)(1),(0,Dt.O)(Ir)))).pipe((0,st.U)(gt=>{for(const rt of gt)if(!0!==rt){if(rt===Ir)return Ir;if(!1===rt||rt instanceof bo)return rt}return!0}),(0,wt.h)(gt=>gt!==Ir),(0,bt.q)(1)))}function Nc(ft){return(0,P.z)((0,At.b)(gt=>{if(To(gt))throw uu(0,gt)}),(0,st.U)(gt=>!0===gt))}const tp={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Pl(ft,gt,rt,Ht,ee){const me=yc(ft,gt,rt);return me.matched?function dl(ft,gt,rt,Ht){const ee=gt.canMatch;if(!ee||0===ee.length)return(0,x.of)(!0);const me=ee.map(Pn=>{const yn=_s(Pn,ft);return te(function Qo(ft){return ft&&Wa(ft.canMatch)}(yn)?yn.canMatch(gt,rt):ft.runInContext(()=>yn(gt,rt)))});return(0,x.of)(me).pipe(qr(),Nc())}(Ht=Qn(gt,Ht),gt,rt).pipe((0,st.U)(Pn=>!0===Pn?me:{...tp})):(0,x.of)(me)}function yc(ft,gt,rt){if(""===gt.path)return"full"===gt.pathMatch&&(ft.hasChildren()||rt.length>0)?{...tp}:{matched:!0,consumedSegments:[],remainingSegments:rt,parameters:{},positionalParamSegments:{}};const ee=(gt.matcher||vn)(rt,ft,gt);if(!ee)return{...tp};const me={};Qe(ee.posParams,(yn,qe)=>{me[qe]=yn.path});const Pn=ee.consumed.length>0?{...me,...ee.consumed[ee.consumed.length-1].parameters}:me;return{matched:!0,consumedSegments:ee.consumed,remainingSegments:rt.slice(ee.consumed.length),parameters:Pn,positionalParamSegments:ee.posParams??{}}}function Bi(ft,gt,rt,Ht,ee="corrected"){if(rt.length>0&&function Kl(ft,gt,rt){return rt.some(Ht=>pl(ft,gt,Ht)&&Ba(Ht)!==Me)}(ft,rt,Ht)){const Pn=new hi(gt,function pu(ft,gt,rt,Ht){const ee={};ee[Me]=Ht,Ht._sourceSegment=ft,Ht._segmentIndexShift=gt.length;for(const me of rt)if(""===me.path&&Ba(me)!==Me){const Pn=new hi([],{});Pn._sourceSegment=ft,Pn._segmentIndexShift=gt.length,ee[Ba(me)]=Pn}return ee}(ft,gt,Ht,new hi(rt,ft.children)));return Pn._sourceSegment=ft,Pn._segmentIndexShift=gt.length,{segmentGroup:Pn,slicedSegments:[]}}if(0===rt.length&&function wa(ft,gt,rt){return rt.some(Ht=>pl(ft,gt,Ht))}(ft,rt,Ht)){const Pn=new hi(ft.segments,function ut(ft,gt,rt,Ht,ee,me){const Pn={};for(const yn of Ht)if(pl(ft,rt,yn)&&!ee[Ba(yn)]){const qe=new hi([],{});qe._sourceSegment=ft,qe._segmentIndexShift="legacy"===me?ft.segments.length:gt.length,Pn[Ba(yn)]=qe}return{...ee,...Pn}}(ft,gt,rt,Ht,ft.children,ee));return Pn._sourceSegment=ft,Pn._segmentIndexShift=gt.length,{segmentGroup:Pn,slicedSegments:rt}}const me=new hi(ft.segments,ft.children);return me._sourceSegment=ft,me._segmentIndexShift=gt.length,{segmentGroup:me,slicedSegments:rt}}function pl(ft,gt,rt){return(!(ft.hasChildren()||gt.length>0)||"full"!==rt.pathMatch)&&""===rt.path}function Ga(ft,gt,rt,Ht){return!!(Ba(ft)===Ht||Ht!==Me&&pl(gt,rt,ft))&&("**"===ft.path||yc(gt,ft,rt).matched)}function Rr(ft,gt,rt){return 0===gt.length&&!ft.children[rt]}const gs=!1;class Pa{constructor(gt){this.segmentGroup=gt||null}}class Si{constructor(gt){this.urlTree=gt}}function nd(ft){return(0,O._)(new Pa(ft))}function vo(ft){return(0,O._)(new Si(ft))}class Zi{constructor(gt,rt,Ht,ee,me){this.injector=gt,this.configLoader=rt,this.urlSerializer=Ht,this.urlTree=ee,this.config=me,this.allowRedirects=!0}apply(){const gt=Bi(this.urlTree.root,[],[],this.config).segmentGroup,rt=new hi(gt.segments,gt.children);return this.expandSegmentGroup(this.injector,this.config,rt,Me).pipe((0,st.U)(me=>this.createUrlTree(bi(me),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,xt.K)(me=>{if(me instanceof Si)return this.allowRedirects=!1,this.match(me.urlTree);throw me instanceof Pa?this.noMatchError(me):me}))}match(gt){return this.expandSegmentGroup(this.injector,this.config,gt.root,Me).pipe((0,st.U)(ee=>this.createUrlTree(bi(ee),gt.queryParams,gt.fragment))).pipe((0,xt.K)(ee=>{throw ee instanceof Pa?this.noMatchError(ee):ee}))}noMatchError(gt){return new u.vHH(4002,gs)}createUrlTree(gt,rt,Ht){const ee=ai(gt);return new bo(ee,rt,Ht)}expandSegmentGroup(gt,rt,Ht,ee){return 0===Ht.segments.length&&Ht.hasChildren()?this.expandChildren(gt,rt,Ht).pipe((0,st.U)(me=>new hi([],me))):this.expandSegment(gt,Ht,rt,Ht.segments,ee,!0)}expandChildren(gt,rt,Ht){const ee=[];for(const me of Object.keys(Ht.children))"primary"===me?ee.unshift(me):ee.push(me);return(0,p.D)(ee).pipe((0,yt.b)(me=>{const Pn=Ht.children[me],yn=io(rt,me);return this.expandSegmentGroup(gt,yn,Pn,me).pipe((0,st.U)(qe=>({segment:qe,outlet:me})))}),Ot((me,Pn)=>(me[Pn.outlet]=Pn.segment,me),{}),Gt())}expandSegment(gt,rt,Ht,ee,me,Pn){return(0,p.D)(Ht).pipe((0,yt.b)(yn=>this.expandSegmentAgainstRoute(gt,rt,Ht,yn,ee,me,Pn).pipe((0,xt.K)(Ue=>{if(Ue instanceof Pa)return(0,x.of)(null);throw Ue}))),(0,Jt.P)(yn=>!!yn),(0,xt.K)((yn,qe)=>{if(Ec(yn))return Rr(rt,ee,me)?(0,x.of)(new hi([],{})):nd(rt);throw yn}))}expandSegmentAgainstRoute(gt,rt,Ht,ee,me,Pn,yn){return Ga(ee,rt,me,Pn)?void 0===ee.redirectTo?this.matchSegmentAgainstRoute(gt,rt,ee,me,Pn):yn&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(gt,rt,Ht,ee,me,Pn):nd(rt):nd(rt)}expandSegmentAgainstRouteUsingRedirect(gt,rt,Ht,ee,me,Pn){return"**"===ee.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(gt,Ht,ee,Pn):this.expandRegularSegmentAgainstRouteUsingRedirect(gt,rt,Ht,ee,me,Pn)}expandWildCardWithParamsAgainstRouteUsingRedirect(gt,rt,Ht,ee){const me=this.applyRedirectCommands([],Ht.redirectTo,{});return Ht.redirectTo.startsWith("/")?vo(me):this.lineralizeSegments(Ht,me).pipe((0,qt.zg)(Pn=>{const yn=new hi(Pn,{});return this.expandSegment(gt,yn,rt,Pn,ee,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(gt,rt,Ht,ee,me,Pn){const{matched:yn,consumedSegments:qe,remainingSegments:Ue,positionalParamSegments:li}=yc(rt,ee,me);if(!yn)return nd(rt);const Ao=this.applyRedirectCommands(qe,ee.redirectTo,li);return ee.redirectTo.startsWith("/")?vo(Ao):this.lineralizeSegments(ee,Ao).pipe((0,qt.zg)(Co=>this.expandSegment(gt,rt,Ht,Co.concat(Ue),Pn,!1)))}matchSegmentAgainstRoute(gt,rt,Ht,ee,me){return"**"===Ht.path?(gt=Qn(Ht,gt),Ht.loadChildren?(Ht._loadedRoutes?(0,x.of)({routes:Ht._loadedRoutes,injector:Ht._loadedInjector}):this.configLoader.loadChildren(gt,Ht)).pipe((0,st.U)(yn=>(Ht._loadedRoutes=yn.routes,Ht._loadedInjector=yn.injector,new hi(ee,{})))):(0,x.of)(new hi(ee,{}))):Pl(rt,Ht,ee,gt).pipe((0,ct.w)(({matched:Pn,consumedSegments:yn,remainingSegments:qe})=>Pn?this.getChildConfig(gt=Ht._injector??gt,Ht,ee).pipe((0,qt.zg)(li=>{const Ao=li.injector??gt,Co=li.routes,{segmentGroup:fo,slicedSegments:Pu}=Bi(rt,yn,qe,Co),tl=new hi(fo.segments,fo.children);if(0===Pu.length&&tl.hasChildren())return this.expandChildren(Ao,Co,tl).pipe((0,st.U)(t1=>new hi(yn,t1)));if(0===Co.length&&0===Pu.length)return(0,x.of)(new hi(yn,{}));const hl=Ba(Ht)===me;return this.expandSegment(Ao,tl,Co,Pu,hl?Me:me,!0).pipe((0,st.U)(Is=>new hi(yn.concat(Is.segments),Is.children)))})):nd(rt)))}getChildConfig(gt,rt,Ht){return rt.children?(0,x.of)({routes:rt.children,injector:gt}):rt.loadChildren?void 0!==rt._loadedRoutes?(0,x.of)({routes:rt._loadedRoutes,injector:rt._loadedInjector}):function Fc(ft,gt,rt,Ht){const ee=gt.canLoad;if(void 0===ee||0===ee.length)return(0,x.of)(!0);const me=ee.map(Pn=>{const yn=_s(Pn,ft);return te(function $t(ft){return ft&&Wa(ft.canLoad)}(yn)?yn.canLoad(gt,rt):ft.runInContext(()=>yn(gt,rt)))});return(0,x.of)(me).pipe(qr(),Nc())}(gt,rt,Ht).pipe((0,qt.zg)(ee=>ee?this.configLoader.loadChildren(gt,rt).pipe((0,At.b)(me=>{rt._loadedRoutes=me.routes,rt._loadedInjector=me.injector})):function pi(ft){return(0,O._)(Ts(gs,3))}())):(0,x.of)({routes:[],injector:gt})}lineralizeSegments(gt,rt){let Ht=[],ee=rt.root;for(;;){if(Ht=Ht.concat(ee.segments),0===ee.numberOfChildren)return(0,x.of)(Ht);if(ee.numberOfChildren>1||!ee.children[Me])return(0,O._)(new u.vHH(4e3,gs));ee=ee.children[Me]}}applyRedirectCommands(gt,rt,Ht){return this.applyRedirectCreateUrlTree(rt,this.urlSerializer.parse(rt),gt,Ht)}applyRedirectCreateUrlTree(gt,rt,Ht,ee){const me=this.createSegmentGroup(gt,rt.root,Ht,ee);return new bo(me,this.createQueryParams(rt.queryParams,this.urlTree.queryParams),rt.fragment)}createQueryParams(gt,rt){const Ht={};return Qe(gt,(ee,me)=>{if("string"==typeof ee&&ee.startsWith(":")){const yn=ee.substring(1);Ht[me]=rt[yn]}else Ht[me]=ee}),Ht}createSegmentGroup(gt,rt,Ht,ee){const me=this.createSegments(gt,rt.segments,Ht,ee);let Pn={};return Qe(rt.children,(yn,qe)=>{Pn[qe]=this.createSegmentGroup(gt,yn,Ht,ee)}),new hi(me,Pn)}createSegments(gt,rt,Ht,ee){return rt.map(me=>me.path.startsWith(":")?this.findPosParam(gt,me,ee):this.findOrReturn(me,Ht))}findPosParam(gt,rt,Ht){const ee=Ht[rt.path.substring(1)];if(!ee)throw new u.vHH(4001,gs);return ee}findOrReturn(gt,rt){let Ht=0;for(const ee of rt){if(ee.path===gt.path)return rt.splice(Ht),ee;Ht++}return gt}}class Xa{}class ml{constructor(gt,rt,Ht,ee,me,Pn,yn,qe){this.injector=gt,this.rootComponentType=rt,this.config=Ht,this.urlTree=ee,this.url=me,this.paramsInheritanceStrategy=Pn,this.relativeLinkResolution=yn,this.urlSerializer=qe}recognize(){const gt=Bi(this.urlTree.root,[],[],this.config.filter(rt=>void 0===rt.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,gt,Me).pipe((0,st.U)(rt=>{if(null===rt)return null;const Ht=new Wc([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Me,this.rootComponentType,null,this.urlTree.root,-1,{}),ee=new xc(Ht,rt),me=new Xs(this.url,ee);return this.inheritParamsAndData(me._root),me}))}inheritParamsAndData(gt){const rt=gt.value,Ht=Zl(rt,this.paramsInheritanceStrategy);rt.params=Object.freeze(Ht.params),rt.data=Object.freeze(Ht.data),gt.children.forEach(ee=>this.inheritParamsAndData(ee))}processSegmentGroup(gt,rt,Ht,ee){return 0===Ht.segments.length&&Ht.hasChildren()?this.processChildren(gt,rt,Ht):this.processSegment(gt,rt,Ht,Ht.segments,ee)}processChildren(gt,rt,Ht){return(0,p.D)(Object.keys(Ht.children)).pipe((0,yt.b)(ee=>{const me=Ht.children[ee],Pn=io(rt,ee);return this.processSegmentGroup(gt,Pn,me,ee)}),Ot((ee,me)=>ee&&me?(ee.push(...me),ee):null),(0,Te.o)(ee=>null!==ee),(0,Fe.d)(null),Gt(),(0,st.U)(ee=>{if(null===ee)return null;const me=wu(ee);return function Uu(ft){ft.sort((gt,rt)=>gt.value.outlet===Me?-1:rt.value.outlet===Me?1:gt.value.outlet.localeCompare(rt.value.outlet))}(me),me}))}processSegment(gt,rt,Ht,ee,me){return(0,p.D)(rt).pipe((0,yt.b)(Pn=>this.processSegmentAgainstRoute(Pn._injector??gt,Pn,Ht,ee,me)),(0,Jt.P)(Pn=>!!Pn),(0,xt.K)(Pn=>{if(Ec(Pn))return Rr(Ht,ee,me)?(0,x.of)([]):(0,x.of)(null);throw Pn}))}processSegmentAgainstRoute(gt,rt,Ht,ee,me){if(rt.redirectTo||!Ga(rt,Ht,ee,me))return(0,x.of)(null);let Pn;if("**"===rt.path){const yn=ee.length>0?_i(ee).parameters:{},qe=Pt(Ht)+ee.length,Ue=new Wc(ee,yn,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Yt(rt),Ba(rt),rt.component??rt._loadedComponent??null,rt,id(Ht),qe,Ve(rt),qe);Pn=(0,x.of)({snapshot:Ue,consumedSegments:[],remainingSegments:[]})}else Pn=Pl(Ht,rt,ee,gt).pipe((0,st.U)(({matched:yn,consumedSegments:qe,remainingSegments:Ue,parameters:li})=>{if(!yn)return null;const Ao=Pt(Ht)+qe.length;return{snapshot:new Wc(qe,li,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Yt(rt),Ba(rt),rt.component??rt._loadedComponent??null,rt,id(Ht),Ao,Ve(rt),Ao),consumedSegments:qe,remainingSegments:Ue}}));return Pn.pipe((0,ct.w)(yn=>{if(null===yn)return(0,x.of)(null);const{snapshot:qe,consumedSegments:Ue,remainingSegments:li}=yn;gt=rt._injector??gt;const Ao=rt._loadedInjector??gt,Co=function tr(ft){return ft.children?ft.children:ft.loadChildren?ft._loadedRoutes:[]}(rt),{segmentGroup:fo,slicedSegments:Pu}=Bi(Ht,Ue,li,Co.filter(hl=>void 0===hl.redirectTo),this.relativeLinkResolution);if(0===Pu.length&&fo.hasChildren())return this.processChildren(Ao,Co,fo).pipe((0,st.U)(hl=>null===hl?null:[new xc(qe,hl)]));if(0===Co.length&&0===Pu.length)return(0,x.of)([new xc(qe,[])]);const tl=Ba(rt)===me;return this.processSegment(Ao,Co,fo,Pu,tl?Me:me).pipe((0,st.U)(hl=>null===hl?null:[new xc(qe,hl)]))}))}}function ec(ft){const gt=ft.value.routeConfig;return gt&&""===gt.path&&void 0===gt.redirectTo}function wu(ft){const gt=[],rt=new Set;for(const Ht of ft){if(!ec(Ht)){gt.push(Ht);continue}const ee=gt.find(me=>Ht.value.routeConfig===me.value.routeConfig);void 0!==ee?(ee.children.push(...Ht.children),rt.add(ee)):gt.push(Ht)}for(const Ht of rt){const ee=wu(Ht.children);gt.push(new xc(Ht.value,ee))}return gt.filter(Ht=>!rt.has(Ht))}function id(ft){let gt=ft;for(;gt._sourceSegment;)gt=gt._sourceSegment;return gt}function Pt(ft){let gt=ft,rt=gt._segmentIndexShift??0;for(;gt._sourceSegment;)gt=gt._sourceSegment,rt+=gt._segmentIndexShift??0;return rt-1}function Yt(ft){return ft.data||{}}function Ve(ft){return ft.resolve||{}}function Xn(ft){return"string"==typeof ft.title||null===ft.title}function ei(ft){return(0,ct.w)(gt=>{const rt=ft(gt);return rt?(0,p.D)(rt).pipe((0,st.U)(()=>gt)):(0,x.of)(gt)})}let Ai=(()=>{class ft{buildTitle(rt){let Ht,ee=rt.root;for(;void 0!==ee;)Ht=this.getResolvedTitleForRoute(ee)??Ht,ee=ee.children.find(me=>me.outlet===Me);return Ht}getResolvedTitleForRoute(rt){return rt.data[en]}}return ft.\u0275fac=function(rt){return new(rt||ft)},ft.\u0275prov=u.Yz7({token:ft,factory:function(){return(0,u.f3M)(wi)},providedIn:"root"}),ft})(),wi=(()=>{class ft extends Ai{constructor(rt){super(),this.title=rt}updateTitle(rt){const Ht=this.buildTitle(rt);void 0!==Ht&&this.title.setTitle(Ht)}}return ft.\u0275fac=function(rt){return new(rt||ft)(u.LFG(oe.Dx))},ft.\u0275prov=u.Yz7({token:ft,factory:ft.\u0275fac,providedIn:"root"}),ft})();class xi{}class pa extends class Yi{shouldDetach(gt){return!1}store(gt,rt){}shouldAttach(gt){return!1}retrieve(gt){return null}shouldReuseRoute(gt,rt){return gt.routeConfig===rt.routeConfig}}{}const xa=new u.OlP("",{providedIn:"root",factory:()=>({})}),vs=new u.OlP("ROUTES");let Ms=(()=>{class ft{constructor(rt,Ht){this.injector=rt,this.compiler=Ht,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(rt){if(this.componentLoaders.get(rt))return this.componentLoaders.get(rt);if(rt._loadedComponent)return(0,x.of)(rt._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(rt);const Ht=te(rt.loadComponent()).pipe((0,At.b)(me=>{this.onLoadEndListener&&this.onLoadEndListener(rt),rt._loadedComponent=me}),(0,jt.x)(()=>{this.componentLoaders.delete(rt)})),ee=new V.c(Ht,()=>new W.xQ).pipe((0,re.x)());return this.componentLoaders.set(rt,ee),ee}loadChildren(rt,Ht){if(this.childrenLoaders.get(Ht))return this.childrenLoaders.get(Ht);if(Ht._loadedRoutes)return(0,x.of)({routes:Ht._loadedRoutes,injector:Ht._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(Ht);const me=this.loadModuleFactoryOrRoutes(Ht.loadChildren).pipe((0,st.U)(yn=>{this.onLoadEndListener&&this.onLoadEndListener(Ht);let qe,Ue,li=!1;Array.isArray(yn)?Ue=yn:(qe=yn.create(rt).injector,Ue=ii(qe.get(vs,[],u.XFs.Self|u.XFs.Optional)));return{routes:Ue.map(Ns),injector:qe}}),(0,jt.x)(()=>{this.childrenLoaders.delete(Ht)})),Pn=new V.c(me,()=>new W.xQ).pipe((0,re.x)());return this.childrenLoaders.set(Ht,Pn),Pn}loadModuleFactoryOrRoutes(rt){return te(rt()).pipe((0,qt.zg)(Ht=>Ht instanceof u.YKP||Array.isArray(Ht)?(0,x.of)(Ht):(0,p.D)(this.compiler.compileModuleAsync(Ht))))}}return ft.\u0275fac=function(rt){return new(rt||ft)(u.LFG(u.zs3),u.LFG(u.Sil))},ft.\u0275prov=u.Yz7({token:ft,factory:ft.\u0275fac,providedIn:"root"}),ft})();class ts{}class Jr{shouldProcessUrl(gt){return!0}extract(gt){return gt}merge(gt,rt){return gt}}function wr(ft){throw ft}function Vs(ft,gt,rt){return gt.parse("/")}const Zs={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},$d={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function sa(){const ft=(0,u.f3M)(Ye),gt=(0,u.f3M)(dc),rt=(0,u.f3M)(tt.Ye),Ht=(0,u.f3M)(u.zs3),ee=(0,u.f3M)(u.Sil),me=(0,u.f3M)(vs,{optional:!0})??[],Pn=(0,u.f3M)(xa,{optional:!0})??{},yn=(0,u.f3M)(wi),qe=(0,u.f3M)(Ai,{optional:!0}),Ue=(0,u.f3M)(ts,{optional:!0}),li=(0,u.f3M)(xi,{optional:!0}),Ao=new hr(null,ft,gt,rt,Ht,ee,ii(me));return Ue&&(Ao.urlHandlingStrategy=Ue),li&&(Ao.routeReuseStrategy=li),Ao.titleStrategy=qe??yn,function mr(ft,gt){ft.errorHandler&&(gt.errorHandler=ft.errorHandler),ft.malformedUriErrorHandler&&(gt.malformedUriErrorHandler=ft.malformedUriErrorHandler),ft.onSameUrlNavigation&&(gt.onSameUrlNavigation=ft.onSameUrlNavigation),ft.paramsInheritanceStrategy&&(gt.paramsInheritanceStrategy=ft.paramsInheritanceStrategy),ft.relativeLinkResolution&&(gt.relativeLinkResolution=ft.relativeLinkResolution),ft.urlUpdateStrategy&&(gt.urlUpdateStrategy=ft.urlUpdateStrategy),ft.canceledNavigationResolution&&(gt.canceledNavigationResolution=ft.canceledNavigationResolution)}(Pn,Ao),Ao}let hr=(()=>{class ft{constructor(rt,Ht,ee,me,Pn,yn,qe){this.rootComponentType=rt,this.urlSerializer=Ht,this.rootContexts=ee,this.location=me,this.config=qe,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new W.xQ,this.errorHandler=wr,this.malformedUriErrorHandler=Vs,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,x.of)(void 0),this.urlHandlingStrategy=new Jr,this.routeReuseStrategy=new pa,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=Pn.get(Ms),this.configLoader.onLoadEndListener=Co=>this.triggerEvent(new Qd(Co)),this.configLoader.onLoadStartListener=Co=>this.triggerEvent(new Hs(Co)),this.ngModule=Pn.get(u.h0i),this.console=Pn.get(u.c2e);const Ao=Pn.get(u.R0b);this.isNgZoneEnabled=Ao instanceof u.R0b&&u.R0b.isInAngularZone(),this.resetConfig(qe),this.currentUrlTree=function K(){return new bo(new hi([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=td(this.currentUrlTree,this.rootComponentType),this.transitions=new v.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(rt){const Ht=this.events;return rt.pipe((0,wt.h)(ee=>0!==ee.id),(0,st.U)(ee=>({...ee,extractedUrl:this.urlHandlingStrategy.extract(ee.rawUrl)})),(0,ct.w)(ee=>{let me=!1,Pn=!1;return(0,x.of)(ee).pipe((0,At.b)(yn=>{this.currentNavigation={id:yn.id,initialUrl:yn.rawUrl,extractedUrl:yn.extractedUrl,trigger:yn.source,extras:yn.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,ct.w)(yn=>{const qe=this.browserUrlTree.toString(),Ue=!this.navigated||yn.extractedUrl.toString()!==qe||qe!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||Ue)&&this.urlHandlingStrategy.shouldProcessUrl(yn.rawUrl))return kl(yn.source)&&(this.browserUrlTree=yn.extractedUrl),(0,x.of)(yn).pipe((0,ct.w)(Ao=>{const Co=this.transitions.getValue();return Ht.next(new Tr(Ao.id,this.serializeUrl(Ao.extractedUrl),Ao.source,Ao.restoredState)),Co!==this.transitions.getValue()?N.E:Promise.resolve(Ao)}),function No(ft,gt,rt,Ht){return(0,ct.w)(ee=>function Oi(ft,gt,rt,Ht,ee){return new Zi(ft,gt,rt,Ht,ee).apply()}(ft,gt,rt,ee.extractedUrl,Ht).pipe((0,st.U)(me=>({...ee,urlAfterRedirects:me}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,At.b)(Ao=>{this.currentNavigation={...this.currentNavigation,finalUrl:Ao.urlAfterRedirects},ee.urlAfterRedirects=Ao.urlAfterRedirects}),function Ln(ft,gt,rt,Ht,ee,me){return(0,qt.zg)(Pn=>function na(ft,gt,rt,Ht,ee,me,Pn="emptyOnly",yn="legacy"){return new ml(ft,gt,rt,Ht,ee,Pn,yn,me).recognize().pipe((0,ct.w)(qe=>null===qe?function fr(ft){return new L.y(gt=>gt.error(ft))}(new Xa):(0,x.of)(qe)))}(ft,gt,rt,Pn.urlAfterRedirects,Ht.serialize(Pn.urlAfterRedirects),Ht,ee,me).pipe((0,st.U)(yn=>({...Pn,targetSnapshot:yn}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,At.b)(Ao=>{if(ee.targetSnapshot=Ao.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!Ao.extras.skipLocationChange){const fo=this.urlHandlingStrategy.merge(Ao.urlAfterRedirects,Ao.rawUrl);this.setBrowserUrl(fo,Ao)}this.browserUrlTree=Ao.urlAfterRedirects}const Co=new js(Ao.id,this.serializeUrl(Ao.extractedUrl),this.serializeUrl(Ao.urlAfterRedirects),Ao.targetSnapshot);Ht.next(Co)}));if(Ue&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:Co,extractedUrl:fo,source:Pu,restoredState:tl,extras:hl}=yn,dm=new Tr(Co,this.serializeUrl(fo),Pu,tl);Ht.next(dm);const Is=td(fo,this.rootComponentType).snapshot;return ee={...yn,targetSnapshot:Is,urlAfterRedirects:fo,extras:{...hl,skipLocationChange:!1,replaceUrl:!1}},(0,x.of)(ee)}return this.rawUrlTree=yn.rawUrl,yn.resolve(null),N.E}),(0,At.b)(yn=>{const qe=new Ls(yn.id,this.serializeUrl(yn.extractedUrl),this.serializeUrl(yn.urlAfterRedirects),yn.targetSnapshot);this.triggerEvent(qe)}),(0,st.U)(yn=>ee={...yn,guards:Cc(yn.targetSnapshot,yn.currentSnapshot,this.rootContexts)}),function Au(ft,gt){return(0,qt.zg)(rt=>{const{targetSnapshot:Ht,currentSnapshot:ee,guards:{canActivateChecks:me,canDeactivateChecks:Pn}}=rt;return 0===Pn.length&&0===me.length?(0,x.of)({...rt,guardsResult:!0}):function Ja(ft,gt,rt,Ht){return(0,p.D)(ft).pipe((0,qt.zg)(ee=>function du(ft,gt,rt,Ht,ee){const me=gt&>.routeConfig?gt.routeConfig.canDeactivate:null;if(!me||0===me.length)return(0,x.of)(!0);const Pn=me.map(yn=>{const qe=Nr(gt)??ee,Ue=_s(yn,qe);return te(function Mi(ft){return ft&&Wa(ft.canDeactivate)}(Ue)?Ue.canDeactivate(ft,gt,rt,Ht):qe.runInContext(()=>Ue(ft,gt,rt,Ht))).pipe((0,Jt.P)())});return(0,x.of)(Pn).pipe(qr())}(ee.component,ee.route,rt,gt,Ht)),(0,Jt.P)(ee=>!0!==ee,!0))}(Pn,Ht,ee,ft).pipe((0,qt.zg)(yn=>yn&&function ae(ft){return"boolean"==typeof ft}(yn)?function Kc(ft,gt,rt,Ht){return(0,p.D)(gt).pipe((0,yt.b)(ee=>(0,U.z)(function Md(ft,gt){return null!==ft&>&>(new Fr(ft)),(0,x.of)(!0)}(ee.route.parent,Ht),function v1(ft,gt){return null!==ft&>&>(new jd(ft)),(0,x.of)(!0)}(ee.route,Ht),function Wd(ft,gt,rt){const Ht=gt[gt.length-1],me=gt.slice(0,gt.length-1).reverse().map(Pn=>function wd(ft){const gt=ft.routeConfig?ft.routeConfig.canActivateChild:null;return gt&&0!==gt.length?{node:ft,guards:gt}:null}(Pn)).filter(Pn=>null!==Pn).map(Pn=>(0,w.P)(()=>{const yn=Pn.guards.map(qe=>{const Ue=Nr(Pn.node)??rt,li=_s(qe,Ue);return te(function et(ft){return ft&&Wa(ft.canActivateChild)}(li)?li.canActivateChild(Ht,ft):Ue.runInContext(()=>li(Ht,ft))).pipe((0,Jt.P)())});return(0,x.of)(yn).pipe(qr())}));return(0,x.of)(me).pipe(qr())}(ft,ee.path,rt),function x1(ft,gt,rt){const Ht=gt.routeConfig?gt.routeConfig.canActivate:null;if(!Ht||0===Ht.length)return(0,x.of)(!0);const ee=Ht.map(me=>(0,w.P)(()=>{const Pn=Nr(gt)??rt,yn=_s(me,Pn);return te(function Ft(ft){return ft&&Wa(ft.canActivate)}(yn)?yn.canActivate(gt,ft):Pn.runInContext(()=>yn(gt,ft))).pipe((0,Jt.P)())}));return(0,x.of)(ee).pipe(qr())}(ft,ee.route,rt))),(0,Jt.P)(ee=>!0!==ee,!0))}(Ht,me,ft,gt):(0,x.of)(yn)),(0,st.U)(yn=>({...rt,guardsResult:yn})))})}(this.ngModule.injector,yn=>this.triggerEvent(yn)),(0,At.b)(yn=>{if(ee.guardsResult=yn.guardsResult,To(yn.guardsResult))throw uu(0,yn.guardsResult);const qe=new Ws(yn.id,this.serializeUrl(yn.extractedUrl),this.serializeUrl(yn.urlAfterRedirects),yn.targetSnapshot,!!yn.guardsResult);this.triggerEvent(qe)}),(0,wt.h)(yn=>!!yn.guardsResult||(this.restoreHistory(yn),this.cancelNavigationTransition(yn,"",3),!1)),ei(yn=>{if(yn.guards.canActivateChecks.length)return(0,x.of)(yn).pipe((0,At.b)(qe=>{const Ue=new Oc(qe.id,this.serializeUrl(qe.extractedUrl),this.serializeUrl(qe.urlAfterRedirects),qe.targetSnapshot);this.triggerEvent(Ue)}),(0,ct.w)(qe=>{let Ue=!1;return(0,x.of)(qe).pipe(function kt(ft,gt){return(0,qt.zg)(rt=>{const{targetSnapshot:Ht,guards:{canActivateChecks:ee}}=rt;if(!ee.length)return(0,x.of)(rt);let me=0;return(0,p.D)(ee).pipe((0,yt.b)(Pn=>function ue(ft,gt,rt,Ht){const ee=ft.routeConfig,me=ft._resolve;return void 0!==ee?.title&&!Xn(ee)&&(me[en]=ee.title),function Ce(ft,gt,rt,Ht){const ee=function Ke(ft){return[...Object.keys(ft),...Object.getOwnPropertySymbols(ft)]}(ft);if(0===ee.length)return(0,x.of)({});const me={};return(0,p.D)(ee).pipe((0,qt.zg)(Pn=>function bn(ft,gt,rt,Ht){const ee=Nr(gt)??Ht,me=_s(ft,ee);return te(me.resolve?me.resolve(gt,rt):ee.runInContext(()=>me(gt,rt)))}(ft[Pn],gt,rt,Ht).pipe((0,Jt.P)(),(0,At.b)(yn=>{me[Pn]=yn}))),Vt(1),(0,ne.h)(me),(0,xt.K)(Pn=>Ec(Pn)?N.E:(0,O._)(Pn)))}(me,ft,gt,Ht).pipe((0,st.U)(Pn=>(ft._resolvedData=Pn,ft.data=Zl(ft,rt).resolve,ee&&Xn(ee)&&(ft.data[en]=ee.title),null)))}(Pn.route,Ht,ft,gt)),(0,At.b)(()=>me++),Vt(1),(0,qt.zg)(Pn=>me===ee.length?(0,x.of)(rt):N.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,At.b)({next:()=>Ue=!0,complete:()=>{Ue||(this.restoreHistory(qe),this.cancelNavigationTransition(qe,"",2))}}))}),(0,At.b)(qe=>{const Ue=new ps(qe.id,this.serializeUrl(qe.extractedUrl),this.serializeUrl(qe.urlAfterRedirects),qe.targetSnapshot);this.triggerEvent(Ue)}))}),ei(yn=>{const qe=Ue=>{const li=[];Ue.routeConfig?.loadComponent&&!Ue.routeConfig._loadedComponent&&li.push(this.configLoader.loadComponent(Ue.routeConfig).pipe((0,At.b)(Ao=>{Ue.component=Ao}),(0,st.U)(()=>{})));for(const Ao of Ue.children)li.push(...qe(Ao));return li};return(0,T.aj)(qe(yn.targetSnapshot.root)).pipe((0,Fe.d)(),(0,bt.q)(1))}),ei(()=>this.afterPreactivation()),(0,st.U)(yn=>{const qe=function ir(ft,gt,rt){const Ht=bc(ft,gt._root,rt?rt._root:void 0);return new ll(Ht,gt)}(this.routeReuseStrategy,yn.targetSnapshot,yn.currentRouterState);return ee={...yn,targetRouterState:qe}}),(0,At.b)(yn=>{this.currentUrlTree=yn.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(yn.urlAfterRedirects,yn.rawUrl),this.routerState=yn.targetRouterState,"deferred"===this.urlUpdateStrategy&&(yn.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,yn),this.browserUrlTree=yn.urlAfterRedirects)}),((ft,gt,rt)=>(0,st.U)(Ht=>(new Br(gt,Ht.targetRouterState,Ht.currentRouterState,rt).activate(ft),Ht)))(this.rootContexts,this.routeReuseStrategy,yn=>this.triggerEvent(yn)),(0,At.b)({next(){me=!0},complete(){me=!0}}),(0,jt.x)(()=>{me||Pn||this.cancelNavigationTransition(ee,"",1),this.currentNavigation?.id===ee.id&&(this.currentNavigation=null)}),(0,xt.K)(yn=>{if(Pn=!0,$l(yn)){As(yn)||(this.navigated=!0,this.restoreHistory(ee,!0));const qe=new Sc(ee.id,this.serializeUrl(ee.extractedUrl),yn.message,yn.cancellationCode);if(Ht.next(qe),As(yn)){const Ue=this.urlHandlingStrategy.merge(yn.url,this.rawUrlTree),li={skipLocationChange:ee.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||kl(ee.source)};this.scheduleNavigation(Ue,"imperative",null,li,{resolve:ee.resolve,reject:ee.reject,promise:ee.promise})}else ee.resolve(!1)}else{this.restoreHistory(ee,!0);const qe=new Ml(ee.id,this.serializeUrl(ee.extractedUrl),yn,ee.targetSnapshot??void 0);Ht.next(qe);try{ee.resolve(this.errorHandler(yn))}catch(Ue){ee.reject(Ue)}}return N.E}))}))}resetRootComponentType(rt){this.rootComponentType=rt,this.routerState.root.component=this.rootComponentType}setTransition(rt){this.transitions.next({...this.transitions.value,...rt})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(rt=>{const Ht="popstate"===rt.type?"popstate":"hashchange";"popstate"===Ht&&setTimeout(()=>{const ee={replaceUrl:!0},me=rt.state?.navigationId?rt.state:null;if(me){const yn={...me};delete yn.navigationId,delete yn.\u0275routerPageId,0!==Object.keys(yn).length&&(ee.state=yn)}const Pn=this.parseUrl(rt.url);this.scheduleNavigation(Pn,Ht,me,ee)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(rt){this.events.next(rt)}resetConfig(rt){this.config=rt.map(Ns),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(rt,Ht={}){const{relativeTo:ee,queryParams:me,fragment:Pn,queryParamsHandling:yn,preserveFragment:qe}=Ht,Ue=ee||this.routerState.root,li=qe?this.currentUrlTree.fragment:Pn;let Ao=null;switch(yn){case"merge":Ao={...this.currentUrlTree.queryParams,...me};break;case"preserve":Ao=this.currentUrlTree.queryParams;break;default:Ao=me||null}return null!==Ao&&(Ao=this.removeEmptyProps(Ao)),Rn(Ue,this.currentUrlTree,rt,Ao,li??null)}navigateByUrl(rt,Ht={skipLocationChange:!1}){const ee=To(rt)?rt:this.parseUrl(rt),me=this.urlHandlingStrategy.merge(ee,this.rawUrlTree);return this.scheduleNavigation(me,"imperative",null,Ht)}navigate(rt,Ht={skipLocationChange:!1}){return function ep(ft){for(let gt=0;gt{const me=rt[ee];return null!=me&&(Ht[ee]=me),Ht},{})}processNavigations(){this.navigations.subscribe(rt=>{this.navigated=!0,this.lastSuccessfulId=rt.id,this.currentPageId=rt.targetPageId,this.events.next(new Ar(rt.id,this.serializeUrl(rt.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),rt.resolve(!0)},rt=>{this.console.warn(`Unhandled Navigation Error: ${rt}`)})}scheduleNavigation(rt,Ht,ee,me,Pn){if(this.disposed)return Promise.resolve(!1);let yn,qe,Ue;Pn?(yn=Pn.resolve,qe=Pn.reject,Ue=Pn.promise):Ue=new Promise((Co,fo)=>{yn=Co,qe=fo});const li=++this.navigationId;let Ao;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(ee=this.location.getState()),Ao=ee&&ee.\u0275routerPageId?ee.\u0275routerPageId:me.replaceUrl||me.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):Ao=0,this.setTransition({id:li,targetPageId:Ao,source:Ht,restoredState:ee,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:rt,extras:me,resolve:yn,reject:qe,promise:Ue,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Ue.catch(Co=>Promise.reject(Co))}setBrowserUrl(rt,Ht){const ee=this.urlSerializer.serialize(rt),me={...Ht.extras.state,...this.generateNgRouterState(Ht.id,Ht.targetPageId)};this.location.isCurrentPathEqualTo(ee)||Ht.extras.replaceUrl?this.location.replaceState(ee,"",me):this.location.go(ee,"",me)}restoreHistory(rt,Ht=!1){if("computed"===this.canceledNavigationResolution){const ee=this.currentPageId-rt.targetPageId;"popstate"!==rt.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===ee?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===ee&&(this.resetState(rt),this.browserUrlTree=rt.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(ee)}else"replace"===this.canceledNavigationResolution&&(Ht&&this.resetState(rt),this.resetUrlToCurrentUrlTree())}resetState(rt){this.routerState=rt.currentRouterState,this.currentUrlTree=rt.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,rt.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(rt,Ht,ee){const me=new Sc(rt.id,this.serializeUrl(rt.extractedUrl),Ht,ee);this.triggerEvent(me),rt.resolve(!1)}generateNgRouterState(rt,Ht){return"computed"===this.canceledNavigationResolution?{navigationId:rt,\u0275routerPageId:Ht}:{navigationId:rt}}}return ft.\u0275fac=function(rt){u.$Z()},ft.\u0275prov=u.Yz7({token:ft,factory:function(){return sa()},providedIn:"root"}),ft})();function kl(ft){return"imperative"!==ft}let Mu=(()=>{class ft{constructor(rt,Ht,ee,me,Pn){this.router=rt,this.route=Ht,this.tabIndexAttribute=ee,this.renderer=me,this.el=Pn,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.commands=null,this.onChanges=new W.xQ,this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(rt){this._preserveFragment=(0,u.D6c)(rt)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(rt){this._skipLocationChange=(0,u.D6c)(rt)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(rt){this._replaceUrl=(0,u.D6c)(rt)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(rt){if(null!=this.tabIndexAttribute)return;const Ht=this.renderer,ee=this.el.nativeElement;null!==rt?Ht.setAttribute(ee,"tabindex",rt):Ht.removeAttribute(ee,"tabindex")}ngOnChanges(rt){this.onChanges.next(this)}set routerLink(rt){null!=rt?(this.commands=Array.isArray(rt)?rt:[rt],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 ft.\u0275fac=function(rt){return new(rt||ft)(u.Y36(hr),u.Y36(Es),u.$8M("tabindex"),u.Y36(u.Qsj),u.Y36(u.SBq))},ft.\u0275dir=u.lG2({type:ft,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(rt,Ht){1&rt&&u.NdJ("click",function(){return Ht.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]}),ft})(),_l=(()=>{class ft{constructor(rt,Ht,ee){this.router=rt,this.route=Ht,this.locationStrategy=ee,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.commands=null,this.href=null,this.onChanges=new W.xQ,this.subscription=rt.events.subscribe(me=>{me instanceof Ar&&this.updateTargetUrlAndHref()})}set preserveFragment(rt){this._preserveFragment=(0,u.D6c)(rt)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(rt){this._skipLocationChange=(0,u.D6c)(rt)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(rt){this._replaceUrl=(0,u.D6c)(rt)}get replaceUrl(){return this._replaceUrl}set routerLink(rt){this.commands=null!=rt?Array.isArray(rt)?rt:[rt]:null}ngOnChanges(rt){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(rt,Ht,ee,me,Pn){return!!(0!==rt||Ht||ee||me||Pn||"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 ft.\u0275fac=function(rt){return new(rt||ft)(u.Y36(hr),u.Y36(Es),u.Y36(tt.S$))},ft.\u0275dir=u.lG2({type:ft,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(rt,Ht){1&rt&&u.NdJ("click",function(me){return Ht.onClick(me.button,me.ctrlKey,me.shiftKey,me.altKey,me.metaKey)}),2&rt&&u.uIk("target",Ht.target)("href",Ht.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]}),ft})(),Zd=(()=>{class ft{constructor(rt,Ht,ee,me,Pn,yn){this.router=rt,this.element=Ht,this.renderer=ee,this.cdr=me,this.link=Pn,this.linkWithHref=yn,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new u.vpe,this.routerEventsSubscription=rt.events.subscribe(qe=>{qe instanceof Ar&&this.update()})}ngAfterContentInit(){(0,x.of)(this.links.changes,this.linksWithHrefs.changes,(0,x.of)(null)).pipe((0,Xt.J)()).subscribe(rt=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const rt=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(Ht=>!!Ht).map(Ht=>Ht.onChanges);this.linkInputChangesSubscription=(0,p.D)(rt).pipe((0,Xt.J)()).subscribe(Ht=>{this.isActive!==this.isLinkActive(this.router)(Ht)&&this.update()})}set routerLinkActive(rt){const Ht=Array.isArray(rt)?rt:rt.split(" ");this.classes=Ht.filter(ee=>!!ee)}ngOnChanges(rt){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const rt=this.hasActiveLinks();this.isActive!==rt&&(this.isActive=rt,this.cdr.markForCheck(),this.classes.forEach(Ht=>{rt?this.renderer.addClass(this.element.nativeElement,Ht):this.renderer.removeClass(this.element.nativeElement,Ht)}),rt&&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(rt))})}isLinkActive(rt){const Ht=function Kd(ft){return!!ft.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return ee=>!!ee.urlTree&&rt.isActive(ee.urlTree,Ht)}hasActiveLinks(){const rt=this.isLinkActive(this.router);return this.link&&rt(this.link)||this.linkWithHref&&rt(this.linkWithHref)||this.links.some(rt)||this.linksWithHrefs.some(rt)}}return ft.\u0275fac=function(rt){return new(rt||ft)(u.Y36(hr),u.Y36(u.SBq),u.Y36(u.Qsj),u.Y36(u.sBO),u.Y36(Mu,8),u.Y36(_l,8))},ft.\u0275dir=u.lG2({type:ft,selectors:[["","routerLinkActive",""]],contentQueries:function(rt,Ht,ee){if(1&rt&&(u.Suo(ee,Mu,5),u.Suo(ee,_l,5)),2&rt){let me;u.iGM(me=u.CRH())&&(Ht.links=me),u.iGM(me=u.CRH())&&(Ht.linksWithHrefs=me)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[u.TTD]}),ft})();class Zu{}let Sl=(()=>{class ft{constructor(rt,Ht,ee,me,Pn){this.router=rt,this.injector=ee,this.preloadingStrategy=me,this.loader=Pn}setUpPreloading(){this.subscription=this.router.events.pipe((0,wt.h)(rt=>rt instanceof Ar),(0,yt.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(rt,Ht){const ee=[];for(const me of Ht){me.providers&&!me._injector&&(me._injector=(0,u.MMx)(me.providers,rt,`Route: ${me.path}`));const Pn=me._injector??rt,yn=me._loadedInjector??Pn;me.loadChildren&&!me._loadedRoutes&&void 0===me.canLoad||me.loadComponent&&!me._loadedComponent?ee.push(this.preloadConfig(Pn,me)):(me.children||me._loadedRoutes)&&ee.push(this.processRoutes(yn,me.children??me._loadedRoutes))}return(0,p.D)(ee).pipe((0,Xt.J)())}preloadConfig(rt,Ht){return this.preloadingStrategy.preload(Ht,()=>{let ee;ee=Ht.loadChildren&&void 0===Ht.canLoad?this.loader.loadChildren(rt,Ht):(0,x.of)(null);const me=ee.pipe((0,qt.zg)(Pn=>null===Pn?(0,x.of)(void 0):(Ht._loadedRoutes=Pn.routes,Ht._loadedInjector=Pn.injector,this.processRoutes(Pn.injector??rt,Pn.routes))));if(Ht.loadComponent&&!Ht._loadedComponent){const Pn=this.loader.loadComponent(Ht);return(0,p.D)([me,Pn]).pipe((0,Xt.J)())}return me})}}return ft.\u0275fac=function(rt){return new(rt||ft)(u.LFG(hr),u.LFG(u.Sil),u.LFG(u.lqb),u.LFG(Zu),u.LFG(Ms))},ft.\u0275prov=u.Yz7({token:ft,factory:ft.\u0275fac,providedIn:"root"}),ft})();const Ol=new u.OlP("");let Ll=(()=>{class ft{constructor(rt,Ht,ee={}){this.router=rt,this.viewportScroller=Ht,this.options=ee,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},ee.scrollPositionRestoration=ee.scrollPositionRestoration||"disabled",ee.anchorScrolling=ee.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(rt=>{rt instanceof Tr?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=rt.navigationTrigger,this.restoredId=rt.restoredState?rt.restoredState.navigationId:0):rt instanceof Ar&&(this.lastId=rt.id,this.scheduleScrollEvent(rt,this.router.parseUrl(rt.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(rt=>{rt instanceof lc&&(rt.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(rt.position):rt.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(rt.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(rt,Ht){this.router.triggerEvent(new lc(rt,"popstate"===this.lastSource?this.store[this.restoredId]:null,Ht))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return ft.\u0275fac=function(rt){u.$Z()},ft.\u0275prov=u.Yz7({token:ft,factory:ft.\u0275fac}),ft})();function El(ft,gt){return{\u0275kind:ft,\u0275providers:gt}}function Vr(ft){return[{provide:vs,multi:!0,useValue:ft}]}function Un(){const ft=(0,u.f3M)(u.zs3);return gt=>{const rt=ft.get(u.z2F);if(gt!==rt.components[0])return;const Ht=ft.get(hr),ee=ft.get(an);1===ft.get(yo)&&Ht.initialNavigation(),ft.get(e_,null,u.XFs.Optional)?.setUpPreloading(),ft.get(Ol,null,u.XFs.Optional)?.init(),Ht.resetRootComponentType(rt.componentTypes[0]),ee.closed||(ee.next(),ee.unsubscribe())}}const an=new u.OlP("",{factory:()=>new W.xQ}),yo=new u.OlP("",{providedIn:"root",factory:()=>1});const e_=new u.OlP("");function lm(ft){return El(0,[{provide:e_,useExisting:Sl},{provide:Zu,useExisting:ft}])}const Gr=new u.OlP("ROUTER_FORROOT_GUARD"),y1=[tt.Ye,{provide:Ye,useClass:Ee},{provide:hr,useFactory:sa},dc,{provide:Es,useFactory:function b1(ft){return ft.routerState.root},deps:[hr]},Ms];function T1(){return new u.PXZ("Router",hr)}let n_=(()=>{class ft{constructor(rt){}static forRoot(rt,Ht){return{ngModule:ft,providers:[y1,[],Vr(rt),{provide:Gr,useFactory:Xd,deps:[[hr,new u.FiY,new u.tp0]]},{provide:xa,useValue:Ht||{}},Ht?.useHash?{provide:tt.S$,useClass:tt.Do}:{provide:tt.S$,useClass:tt.b0},{provide:Ol,useFactory:()=>{const ft=(0,u.f3M)(hr),gt=(0,u.f3M)(tt.EM),rt=(0,u.f3M)(xa);return rt.scrollOffset&>.setOffset(rt.scrollOffset),new Ll(ft,gt,rt)}},Ht?.preloadingStrategy?lm(Ht.preloadingStrategy).\u0275providers:[],{provide:u.PXZ,multi:!0,useFactory:T1},Ht?.initialNavigation?Fl(Ht):[],[{provide:mu,useFactory:Un},{provide:u.tb,multi:!0,useExisting:mu}]]}}static forChild(rt){return{ngModule:ft,providers:[Vr(rt)]}}}return ft.\u0275fac=function(rt){return new(rt||ft)(u.LFG(Gr,8))},ft.\u0275mod=u.oAB({type:ft}),ft.\u0275inj=u.cJS({imports:[as]}),ft})();function Xd(ft){return"guarded"}function Fl(ft){return["disabled"===ft.initialNavigation?El(3,[{provide:u.ip1,multi:!0,useFactory:()=>{const gt=(0,u.f3M)(hr);return()=>{gt.setUpLocationChangeListener()}}},{provide:yo,useValue:2}]).\u0275providers:[],"enabledBlocking"===ft.initialNavigation?El(2,[{provide:yo,useValue:0},{provide:u.ip1,multi:!0,deps:[u.zs3],useFactory:gt=>{const rt=gt.get(tt.V_,Promise.resolve());let Ht=!1;return()=>rt.then(()=>new Promise(me=>{const Pn=gt.get(hr),yn=gt.get(an);(function ee(me){gt.get(hr).events.pipe((0,wt.h)(yn=>yn instanceof Ar||yn instanceof Sc||yn instanceof Ml),(0,st.U)(yn=>yn instanceof Ar||yn instanceof Sc&&(0===yn.code||1===yn.code)&&null),(0,wt.h)(yn=>null!==yn),(0,bt.q)(1)).subscribe(()=>{me()})})(()=>{me(!0),Ht=!0}),Pn.afterPreactivation=()=>(me(!0),Ht||yn.closed?(0,x.of)(void 0):yn),Pn.initialNavigation()}))}}]).\u0275providers:[]]}const mu=new u.OlP("")},92216:(X,j,h)=>{"use strict";h.d(j,{BN:()=>cr,by:()=>tr,uH:()=>Ln});var u=h(94650);function p(kt,ue){var Ce=Object.keys(kt);if(Object.getOwnPropertySymbols){var Ke=Object.getOwnPropertySymbols(kt);ue&&(Ke=Ke.filter(function(bn){return Object.getOwnPropertyDescriptor(kt,bn).enumerable})),Ce.push.apply(Ce,Ke)}return Ce}function x(kt){for(var ue=1;uekt.length)&&(ue=kt.length);for(var Ce=0,Ke=new Array(ue);Ce0;)ue+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return ue}function Ae(kt){for(var ue=[],Ce=(kt||[]).length>>>0;Ce--;)ue[Ce]=kt[Ce];return ue}function Ie(kt){return kt.classList?Ae(kt.classList):(kt.getAttribute("class")||"").split(" ").filter(function(ue){return ue})}function Sn(kt){return"".concat(kt).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function Vi(kt){return Object.keys(kt||{}).reduce(function(ue,Ce){return ue+"".concat(Ce,": ").concat(kt[Ce].trim(),";")},"")}function cn(kt){return kt.size!==ge.size||kt.x!==ge.x||kt.y!==ge.y||kt.rotate!==ge.rotate||kt.flipX||kt.flipY}function bi(){var ue=en,Ce=ie.cssPrefix,Ke=ie.replacementClass,bn=':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"!==Ce||Ke!==ue){var Xn=new RegExp("\\.".concat("fa","\\-"),"g"),ei=new RegExp("\\--".concat("fa","\\-"),"g"),Ai=new RegExp("\\.".concat(ue),"g");bn=bn.replace(Xn,".".concat(Ce,"-")).replace(ei,"--".concat(Ce,"-")).replace(Ai,".".concat(Ke))}return bn}var so=!1;function To(){ie.autoAddCss&&!so&&(function Nt(kt){if(kt&&Fe){var ue=Vt.createElement("style");ue.setAttribute("type","text/css"),ue.innerHTML=kt;for(var Ce=Vt.head.childNodes,Ke=null,bn=Ce.length-1;bn>-1;bn--){var Xn=Ce[bn],ei=(Xn.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(ei)>-1&&(Ke=Xn)}Vt.head.insertBefore(ue,Ke)}}(bi()),so=!0)}var Lo={mixout:function(){return{dom:{css:bi,insertCss:To}}},hooks:function(){return{beforeDOMElementCreation:function(){To()},beforeI2svg:function(){To()}}}},ha=ce||{};ha[Xt]||(ha[Xt]={}),ha[Xt].styles||(ha[Xt].styles={}),ha[Xt].hooks||(ha[Xt].hooks={}),ha[Xt].shims||(ha[Xt].shims=[]);var Aa=ha[Xt],Ne=[],Re=!1;function we(kt){!Fe||(Re?setTimeout(kt,0):Ne.push(kt))}function on(kt){var ue=kt.tag,Ce=kt.attributes,Ke=void 0===Ce?{}:Ce,bn=kt.children,Xn=void 0===bn?[]:bn;return"string"==typeof kt?Sn(kt):"<".concat(ue," ").concat(function Ei(kt){return Object.keys(kt||{}).reduce(function(ue,Ce){return ue+"".concat(Ce,'="').concat(Sn(kt[Ce]),'" ')},"").trim()}(Ke),">").concat(Xn.map(on).join(""),"")}function Q(kt,ue,Ce){if(kt&&kt[ue]&&kt[ue][Ce])return{prefix:ue,iconName:Ce,icon:kt[ue][Ce]}}Fe&&((Re=(Vt.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Vt.readyState))||Vt.addEventListener("DOMContentLoaded",function kt(){Vt.removeEventListener("DOMContentLoaded",kt),Re=1,Ne.map(function(ue){return ue()})}));var J=function(ue,Ce,Ke,bn){var wi,xo,xi,Xn=Object.keys(ue),ei=Xn.length,Ai=void 0!==bn?function(ue,Ce){return function(Ke,bn,Xn,ei){return ue.call(Ce,Ke,bn,Xn,ei)}}(Ce,bn):Ce;for(void 0===Ke?(wi=1,xi=ue[Xn[0]]):(wi=0,xi=Ke);wi=55296&&bn<=56319&&Ce2&&void 0!==arguments[2]?arguments[2]:{},Ke=Ce.skipHooks,bn=void 0!==Ke&&Ke,Xn=Ki(ue);"function"!=typeof Aa.hooks.addPack||bn?Aa.styles[kt]=x(x({},Aa.styles[kt]||{}),Xn):Aa.hooks.addPack(kt,Ki(ue)),"fas"===kt&&wo("fa",ue)}var pr,$r,ja,Er=Aa.styles,cc=Aa.shims,nr=(P(pr={},Qe,Object.values(le[Qe])),P(pr,te,Object.values(le[te])),pr),ds=null,Tr={},Ar={},Sc={},Ml={},js={},Ls=(P($r={},Qe,Object.keys(Tt[Qe])),P($r,te,Object.keys(Tt[te])),$r);function Oc(kt,ue){var Ce=ue.split("-"),Ke=Ce[0],bn=Ce.slice(1).join("-");return Ke!==kt||""===bn||function Ws(kt){return~Je.indexOf(kt)}(bn)?null:bn}var ps=function(){var ue=function(Xn){return J(Er,function(ei,Ai,wi){return ei[wi]=J(Ai,Xn,{}),ei},{})};Tr=ue(function(bn,Xn,ei){return Xn[3]&&(bn[Xn[3]]=ei),Xn[2]&&Xn[2].filter(function(wi){return"number"==typeof wi}).forEach(function(wi){bn[wi.toString(16)]=ei}),bn}),Ar=ue(function(bn,Xn,ei){return bn[ei]=ei,Xn[2]&&Xn[2].filter(function(wi){return"string"==typeof wi}).forEach(function(wi){bn[wi]=ei}),bn}),js=ue(function(bn,Xn,ei){var Ai=Xn[2];return bn[ei]=ei,Ai.forEach(function(wi){bn[wi]=ei}),bn});var Ce="far"in Er||ie.autoFetchSvg,Ke=J(cc,function(bn,Xn){var ei=Xn[0],Ai=Xn[1],wi=Xn[2];return"far"===Ai&&!Ce&&(Ai="fas"),"string"==typeof ei&&(bn.names[ei]={prefix:Ai,iconName:wi}),"number"==typeof ei&&(bn.unicodes[ei.toString(16)]={prefix:Ai,iconName:wi}),bn},{names:{},unicodes:{}});Sc=Ke.names,Ml=Ke.unicodes,ds=uc(ie.styleDefault,{family:ie.familyDefault})};function Hs(kt,ue){return(Tr[kt]||{})[ue]}function Fr(kt,ue){return(js[kt]||{})[ue]}function Ud(kt){return Sc[kt]||{prefix:null,iconName:null}}function Gc(){return ds}function uc(kt){var ue=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ce=ue.family,Ke=void 0===Ce?Qe:Ce,bn=Tt[Ke][kt],Xn=Rt[Ke][kt]||Rt[Ke][bn],ei=kt in Aa.styles?kt:null;return Xn||ei||null}(function fn(kt){rn.push(kt)})(function(kt){ds=uc(kt.styleDefault,{family:ie.familyDefault})}),ps();var Qc=(P(ja={},Qe,Object.keys(le[Qe])),P(ja,te,Object.keys(le[te])),ja);function jc(kt){var ue,Ce=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ke=Ce.skipLookups,bn=void 0!==Ke&&Ke,Xn=(P(ue={},Qe,"".concat(ie.cssPrefix,"-").concat(Qe)),P(ue,te,"".concat(ie.cssPrefix,"-").concat(te)),ue),ei=null,Ai=Qe;(kt.includes(Xn[Qe])||kt.some(function(xo){return Qc[Qe].includes(xo)}))&&(Ai=Qe),(kt.includes(Xn[te])||kt.some(function(xo){return Qc[te].includes(xo)}))&&(Ai=te);var wi=kt.reduce(function(xo,xi){var Yi=Oc(ie.cssPrefix,xi);if(Er[xi]?(xi=nr[Ai].includes(xi)?be[Ai][xi]:xi,ei=xi,xo.prefix=xi):Ls[Ai].indexOf(xi)>-1?(ei=xi,xo.prefix=uc(xi,{family:Ai})):Yi?xo.iconName=Yi:xi!==ie.replacementClass&&xi!==Xn[Qe]&&xi!==Xn[te]&&xo.rest.push(xi),!bn&&xo.prefix&&xo.iconName){var pa="fa"===ei?Ud(xo.iconName):{},oa=Fr(xo.prefix,xo.iconName);pa.prefix&&(ei=null),xo.iconName=pa.iconName||oa||xo.iconName,xo.prefix=pa.prefix||xo.prefix,"far"===xo.prefix&&!Er.far&&Er.fas&&!ie.autoFetchSvg&&(xo.prefix="fas")}return xo},{prefix:null,iconName:null,rest:[]});return(kt.includes("fa-brands")||kt.includes("fab"))&&(wi.prefix="fab"),(kt.includes("fa-duotone")||kt.includes("fad"))&&(wi.prefix="fad"),!wi.prefix&&Ai===te&&(Er.fass||ie.autoFetchSvg)&&(wi.prefix="fass",wi.iconName=Fr(wi.prefix,wi.iconName)||wi.iconName),("fa"===wi.prefix||"fa"===ei)&&(wi.prefix=Gc()||"fas"),wi}var $s=function(){function kt(){(function T(kt,ue){if(!(kt instanceof ue))throw new TypeError("Cannot call a class as a function")})(this,kt),this.definitions={}}return function w(kt,ue,Ce){ue&&U(kt.prototype,ue),Ce&&U(kt,Ce),Object.defineProperty(kt,"prototype",{writable:!1})}(kt,[{key:"add",value:function(){for(var Ce=this,Ke=arguments.length,bn=new Array(Ke),Xn=0;Xn0&&xi.forEach(function(Yi){"string"==typeof Yi&&(Ce[Ai][Yi]=xo)}),Ce[Ai][wi]=xo}),Ce}}]),kt}(),xc=[],Ks={},ll={},td=Object.keys(ll);function Es(kt,ue){for(var Ce=arguments.length,Ke=new Array(Ce>2?Ce-2:0),bn=2;bn1?ue-1:0),Ke=1;Ke0&&void 0!==arguments[0]?arguments[0]:{};return Fe?(Zl("beforeI2svg",ue),Ys("pseudoElements2svg",ue),Ys("i2svg",ue)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var ue=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Ce=ue.autoReplaceSvgRoot;!1===ie.autoReplaceSvg&&(ie.autoReplaceSvg=!0),ie.observeMutations=!0,we(function(){ir({autoReplaceSvgRoot:Ce}),Zl("watch",ue)})}},Ca={noAuto:function(){ie.autoReplaceSvg=!1,ie.observeMutations=!1,Zl("noAuto")},config:ie,dom:lu,parse:{icon:function(ue){if(null===ue)return null;if("object"===v(ue)&&ue.prefix&&ue.iconName)return{prefix:ue.prefix,iconName:Fr(ue.prefix,ue.iconName)||ue.iconName};if(Array.isArray(ue)&&2===ue.length){var Ce=0===ue[1].indexOf("fa-")?ue[1].slice(3):ue[1],Ke=uc(ue[0]);return{prefix:Ke,iconName:Fr(Ke,Ce)||Ce}}if("string"==typeof ue&&(ue.indexOf("".concat(ie.cssPrefix,"-"))>-1||ue.match(De))){var bn=jc(ue.split(" "),{skipLookups:!0});return{prefix:bn.prefix||Gc(),iconName:Fr(bn.prefix,bn.iconName)||bn.iconName}}if("string"==typeof ue){var Xn=Gc();return{prefix:Xn,iconName:Fr(Xn,ue)||ue}}}},library:Xs,findIconDefinition:Wc,toHtml:on},ir=function(){var ue=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Ce=ue.autoReplaceSvgRoot,Ke=void 0===Ce?Vt:Ce;(Object.keys(Aa.styles).length>0||ie.autoFetchSvg)&&Fe&&ie.autoReplaceSvg&&Ca.dom.i2svg({node:Ke})};function bc(kt,ue){return Object.defineProperty(kt,"abstract",{get:ue}),Object.defineProperty(kt,"html",{get:function(){return kt.abstract.map(function(Ke){return on(Ke)})}}),Object.defineProperty(kt,"node",{get:function(){if(Fe){var Ke=Vt.createElement("div");return Ke.innerHTML=kt.html,Ke.children}}}),kt}function qa(kt){var ue=kt.icons,Ce=ue.main,Ke=ue.mask,bn=kt.prefix,Xn=kt.iconName,ei=kt.transform,Ai=kt.symbol,wi=kt.title,xo=kt.maskId,xi=kt.titleId,Yi=kt.extra,pa=kt.watchable,oa=void 0!==pa&&pa,xa=Ke.found?Ke:Ce,Xr=xa.width,vs=xa.height,Ms="fak"===bn,ts=[ie.replacementClass,Xn?"".concat(ie.cssPrefix,"-").concat(Xn):""].filter(function(mr){return-1===Yi.classes.indexOf(mr)}).filter(function(mr){return""!==mr||!!mr}).concat(Yi.classes).join(" "),Jr={children:[],attributes:x(x({},Yi.attributes),{},{"data-prefix":bn,"data-icon":Xn,class:ts,role:Yi.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(Xr," ").concat(vs)})},es=Ms&&!~Yi.classes.indexOf("fa-fw")?{width:"".concat(Xr/vs*16*.0625,"em")}:{};oa&&(Jr.attributes[_n]=""),wi&&(Jr.children.push({tag:"title",attributes:{id:Jr.attributes["aria-labelledby"]||"title-".concat(xi||zt())},children:[wi]}),delete Jr.attributes.title);var wr=x(x({},Jr),{},{prefix:bn,iconName:Xn,main:Ce,mask:Ke,maskId:xo,transform:ei,symbol:Ai,styles:x(x({},es),Yi.styles)}),Vs=Ke.found&&Ce.found?Ys("generateAbstractMask",wr)||{children:[],attributes:{}}:Ys("generateAbstractIcon",wr)||{children:[],attributes:{}},$d=Vs.attributes;return wr.children=Vs.children,wr.attributes=$d,Ai?function ed(kt){var Ce=kt.iconName,Ke=kt.children,bn=kt.attributes,Xn=kt.symbol,ei=!0===Xn?"".concat(kt.prefix,"-").concat(ie.cssPrefix,"-").concat(Ce):Xn;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:x(x({},bn),{},{id:ei}),children:Ke}]}]}(wr):function Tu(kt){var ue=kt.children,Ce=kt.main,Ke=kt.mask,bn=kt.attributes,Xn=kt.styles,ei=kt.transform;if(cn(ei)&&Ce.found&&!Ke.found){var xo={x:Ce.width/Ce.height/2,y:.5};bn.style=Vi(x(x({},Xn),{},{"transform-origin":"".concat(xo.x+ei.x/16,"em ").concat(xo.y+ei.y/16,"em")}))}return[{tag:"svg",attributes:bn,children:ue}]}(wr)}function uu(kt){var ue=kt.content,Ce=kt.width,Ke=kt.height,bn=kt.transform,Xn=kt.title,ei=kt.extra,Ai=kt.watchable,wi=void 0!==Ai&&Ai,xo=x(x(x({},ei.attributes),Xn?{title:Xn}:{}),{},{class:ei.classes.join(" ")});wi&&(xo[_n]="");var xi=x({},ei.styles);cn(bn)&&(xi.transform=function We(kt){var ue=kt.transform,Ce=kt.width,bn=kt.height,Xn=void 0===bn?16:bn,ei=kt.startCentered,Ai=void 0!==ei&&ei,wi="";return wi+=Ai&&Ge?"translate(".concat(ue.x/16-(void 0===Ce?16:Ce)/2,"em, ").concat(ue.y/16-Xn/2,"em) "):Ai?"translate(calc(-50% + ".concat(ue.x/16,"em), calc(-50% + ").concat(ue.y/16,"em)) "):"translate(".concat(ue.x/16,"em, ").concat(ue.y/16,"em) "),(wi+="scale(".concat(ue.size/16*(ue.flipX?-1:1),", ").concat(ue.size/16*(ue.flipY?-1:1),") "))+"rotate(".concat(ue.rotate,"deg) ")}({transform:bn,startCentered:!0,width:Ce,height:Ke}),xi["-webkit-transform"]=xi.transform);var Yi=Vi(xi);Yi.length>0&&(xo.style=Yi);var pa=[];return pa.push({tag:"span",attributes:xo,children:[ue]}),Xn&&pa.push({tag:"span",attributes:{class:"sr-only"},children:[Xn]}),pa}function Ts(kt){var ue=kt.content,Ce=kt.title,Ke=kt.extra,bn=x(x(x({},Ke.attributes),Ce?{title:Ce}:{}),{},{class:Ke.classes.join(" ")}),Xn=Vi(Ke.styles);Xn.length>0&&(bn.style=Xn);var ei=[];return ei.push({tag:"span",attributes:bn,children:[ue]}),Ce&&ei.push({tag:"span",attributes:{class:"sr-only"},children:[Ce]}),ei}var As=Aa.styles;function $l(kt){var ue=kt[0],Ce=kt[1],Xn=N(kt.slice(4),1)[0];return{found:!0,width:ue,height:Ce,icon:Array.isArray(Xn)?{tag:"g",attributes:{class:"".concat(ie.cssPrefix,"-").concat("duotone-group")},children:[{tag:"path",attributes:{class:"".concat(ie.cssPrefix,"-").concat("secondary"),fill:"currentColor",d:Xn[0]}},{tag:"path",attributes:{class:"".concat(ie.cssPrefix,"-").concat("primary"),fill:"currentColor",d:Xn[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:Xn}}}}var Pr={found:!1,width:512,height:512};function za(kt,ue){var Ce=ue;return"fa"===ue&&null!==ie.styleDefault&&(ue=Gc()),new Promise(function(Ke,bn){if(Ys("missingIconAbstract"),"fa"===Ce){var ei=Ud(kt)||{};kt=ei.iconName||kt,ue=ei.prefix||ue}if(kt&&ue&&As[ue]&&As[ue][kt])return Ke($l(As[ue][kt]));(function dc(kt,ue){!oi&&!ie.showMissingIcons&&kt&&console.error('Icon with name "'.concat(kt,'" and prefix "').concat(ue,'" is missing.'))})(kt,ue),Ke(x(x({},Pr),{},{icon:ie.showMissingIcons&&kt&&Ys("missingIconAbstract")||{}}))})}var Va=function(){},Ur=ie.measurePerformance&&fe&&fe.mark&&fe.measure?fe:{mark:Va,measure:Va},vr='FA "6.2.1"',zs_begin=function(ue){return Ur.mark("".concat(vr," ").concat(ue," begins")),function(){return function(ue){Ur.mark("".concat(vr," ").concat(ue," ends")),Ur.measure("".concat(vr," ").concat(ue),"".concat(vr," ").concat(ue," begins"),"".concat(vr," ").concat(ue," ends"))}(ue)}},ms=function(){};function Za(kt){return"string"==typeof(kt.getAttribute?kt.getAttribute(_n):null)}function Fs(kt){return Vt.createElementNS("http://www.w3.org/2000/svg",kt)}function tc(kt){return Vt.createElement(kt)}function Ns(kt){var ue=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ce=ue.ceFn,Ke=void 0===Ce?"svg"===kt.tag?Fs:tc:Ce;if("string"==typeof kt)return Vt.createTextNode(kt);var bn=Ke(kt.tag);Object.keys(kt.attributes||[]).forEach(function(ei){bn.setAttribute(ei,kt.attributes[ei])});var Xn=kt.children||[];return Xn.forEach(function(ei){bn.appendChild(Ns(ei,{ceFn:Ke}))}),bn}var io={replace:function(ue){var Ce=ue[0];if(Ce.parentNode)if(ue[1].forEach(function(bn){Ce.parentNode.insertBefore(Ns(bn),Ce)}),null===Ce.getAttribute(_n)&&ie.keepOriginalSource){var Ke=Vt.createComment(function Ba(kt){var ue=" ".concat(kt.outerHTML," ");return"".concat(ue,"Font Awesome fontawesome.com ")}(Ce));Ce.parentNode.replaceChild(Ke,Ce)}else Ce.remove()},nest:function(ue){var Ce=ue[0],Ke=ue[1];if(~Ie(Ce).indexOf(ie.replacementClass))return io.replace(ue);var bn=new RegExp("".concat(ie.cssPrefix,"-.*"));if(delete Ke[0].attributes.id,Ke[0].attributes.class){var Xn=Ke[0].attributes.class.split(" ").reduce(function(Ai,wi){return wi===ie.replacementClass||wi.match(bn)?Ai.toSvg.push(wi):Ai.toNode.push(wi),Ai},{toNode:[],toSvg:[]});Ke[0].attributes.class=Xn.toSvg.join(" "),0===Xn.toNode.length?Ce.removeAttribute("class"):Ce.setAttribute("class",Xn.toNode.join(" "))}var ei=Ke.map(function(Ai){return on(Ai)}).join("\n");Ce.setAttribute(_n,""),Ce.innerHTML=ei}};function Nr(kt){kt()}function sr(kt,ue){var Ce="function"==typeof ue?ue:ms;if(0===kt.length)Ce();else{var Ke=Nr;"async"===ie.mutateApproach&&(Ke=ce.requestAnimationFrame||Nr),Ke(function(){var bn=function ws(){return!0===ie.autoReplaceSvg?io.replace:io[ie.autoReplaceSvg]||io.replace}(),Xn=zs_begin("mutate");kt.map(bn),Xn(),Ce()})}}var Br=!1;function Lc(){Br=!0}function ul(){Br=!1}var Cc=null;function wd(kt){if(ve&&ie.observeMutations){var ue=kt.treeCallback,Ce=void 0===ue?ms:ue,Ke=kt.nodeCallback,bn=void 0===Ke?ms:Ke,Xn=kt.pseudoElementsCallback,ei=void 0===Xn?ms:Xn,Ai=kt.observeMutationsRoot,wi=void 0===Ai?Vt:Ai;Cc=new ve(function(xo){if(!Br){var xi=Gc();Ae(xo).forEach(function(Yi){if("childList"===Yi.type&&Yi.addedNodes.length>0&&!Za(Yi.addedNodes[0])&&(ie.searchPseudoElements&&ei(Yi.target),Ce(Yi.target)),"attributes"===Yi.type&&Yi.target.parentNode&&ie.searchPseudoElements&&ei(Yi.target.parentNode),"attributes"===Yi.type&&Za(Yi.target)&&~hi.indexOf(Yi.attributeName))if("class"===Yi.attributeName&&function rs(kt){var ue=kt.getAttribute?kt.getAttribute(ke):null,Ce=kt.getAttribute?kt.getAttribute(un):null;return ue&&Ce}(Yi.target)){var pa=jc(Ie(Yi.target)),xa=pa.iconName;Yi.target.setAttribute(ke,pa.prefix||xi),xa&&Yi.target.setAttribute(un,xa)}else(function Us(kt){return kt&&kt.classList&&kt.classList.contains&&kt.classList.contains(ie.replacementClass)})(Yi.target)&&bn(Yi.target)})}}),Fe&&Cc.observe(wi,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Gi(kt){var ue=kt.getAttribute("style"),Ce=[];return ue&&(Ce=ue.split(";").reduce(function(Ke,bn){var Xn=bn.split(":"),ei=Xn[0],Ai=Xn.slice(1);return ei&&Ai.length>0&&(Ke[ei]=Ai.join(":").trim()),Ke},{})),Ce}function da(kt){var ue=kt.getAttribute("data-prefix"),Ce=kt.getAttribute("data-icon"),Ke=void 0!==kt.innerText?kt.innerText.trim():"",bn=jc(Ie(kt));return bn.prefix||(bn.prefix=Gc()),ue&&Ce&&(bn.prefix=ue,bn.iconName=Ce),bn.iconName&&bn.prefix||(bn.prefix&&Ke.length>0&&(bn.iconName=function Qd(kt,ue){return(Ar[kt]||{})[ue]}(bn.prefix,kt.innerText)||Hs(bn.prefix,He(kt.innerText))),!bn.iconName&&ie.autoFetchSvg&&kt.firstChild&&kt.firstChild.nodeType===Node.TEXT_NODE&&(bn.iconName=kt.firstChild.data)),bn}function or(kt){var ue=Ae(kt.attributes).reduce(function(bn,Xn){return"class"!==bn.name&&"style"!==bn.name&&(bn[Xn.name]=Xn.value),bn},{}),Ce=kt.getAttribute("title"),Ke=kt.getAttribute("data-fa-title-id");return ie.autoA11y&&(Ce?ue["aria-labelledby"]="".concat(ie.replacementClass,"-title-").concat(Ke||zt()):(ue["aria-hidden"]="true",ue.focusable="false")),ue}function Wa(kt){var ue=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},Ce=da(kt),Ke=Ce.iconName,bn=Ce.prefix,Xn=Ce.rest,ei=or(kt),Ai=Es("parseNodeAttributes",{},kt),wi=ue.styleParser?Gi(kt):[];return x({iconName:Ke,title:kt.getAttribute("title"),titleId:kt.getAttribute("data-fa-title-id"),prefix:bn,transform:ge,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:Xn,styles:wi,attributes:ei}},Ai)}var ae=Aa.styles;function $t(kt){var ue="nest"===ie.autoReplaceSvg?Wa(kt,{styleParser:!1}):Wa(kt);return~ue.extra.classes.indexOf(hn)?Ys("generateLayersText",kt,ue):Ys("generateSvgReplacementMutation",kt,ue)}var Ft=new Set;function et(kt){var ue=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!Fe)return Promise.resolve();var Ce=Vt.documentElement.classList,Ke=function(Yi){return Ce.add("".concat(Dn,"-").concat(Yi))},bn=function(Yi){return Ce.remove("".concat(Dn,"-").concat(Yi))},Xn=ie.autoFetchSvg?Ft:it.map(function(xi){return"fa-".concat(xi)}).concat(Object.keys(ae));Xn.includes("fa")||Xn.push("fa");var ei=[".".concat(hn,":not([").concat(_n,"])")].concat(Xn.map(function(xi){return".".concat(xi,":not([").concat(_n,"])")})).join(", ");if(0===ei.length)return Promise.resolve();var Ai=[];try{Ai=Ae(kt.querySelectorAll(ei))}catch{}if(!(Ai.length>0))return Promise.resolve();Ke("pending"),bn("complete");var wi=zs_begin("onTree"),xo=Ai.reduce(function(xi,Yi){try{var pa=$t(Yi);pa&&xi.push(pa)}catch(oa){oi||"MissingIcon"===oa.name&&console.error(oa)}return xi},[]);return new Promise(function(xi,Yi){Promise.all(xo).then(function(pa){sr(pa,function(){Ke("active"),Ke("complete"),bn("pending"),"function"==typeof ue&&ue(),wi(),xi()})}).catch(function(pa){wi(),Yi(pa)})})}function Mi(kt){var ue=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;$t(kt).then(function(Ce){Ce&&sr([Ce],ue)})}it.map(function(kt){Ft.add("fa-".concat(kt))}),Object.keys(Tt[Qe]).map(Ft.add.bind(Ft)),Object.keys(Tt[te]).map(Ft.add.bind(Ft)),Ft=V(Ft);var Ua=function(ue){var Ce=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ke=Ce.transform,bn=void 0===Ke?ge:Ke,Xn=Ce.symbol,ei=void 0!==Xn&&Xn,Ai=Ce.mask,wi=void 0===Ai?null:Ai,xo=Ce.maskId,xi=void 0===xo?null:xo,Yi=Ce.title,pa=void 0===Yi?null:Yi,oa=Ce.titleId,xa=void 0===oa?null:oa,Xr=Ce.classes,vs=void 0===Xr?[]:Xr,Ms=Ce.attributes,ts=void 0===Ms?{}:Ms,Jr=Ce.styles,es=void 0===Jr?{}:Jr;if(ue){var wr=ue.prefix,Vs=ue.iconName,Zs=ue.icon;return bc(x({type:"icon"},ue),function(){return Zl("beforeDOMElementCreation",{iconDefinition:ue,params:Ce}),ie.autoA11y&&(pa?ts["aria-labelledby"]="".concat(ie.replacementClass,"-title-").concat(xa||zt()):(ts["aria-hidden"]="true",ts.focusable="false")),qa({icons:{main:$l(Zs),mask:wi?$l(wi.icon):{found:!1,width:null,height:null,icon:{}}},prefix:wr,iconName:Vs,transform:x(x({},ge),bn),symbol:ei,title:pa,maskId:xi,titleId:xa,extra:{attributes:ts,styles:es,classes:vs}})})}},$c={mixout:function(){return{icon:(kt=Ua,function(ue){var Ce=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ke=(ue||{}).icon?ue:Wc(ue||{}),bn=Ce.mask;return bn&&(bn=(bn||{}).icon?bn:Wc(bn||{})),kt(Ke,x(x({},Ce),{},{mask:bn}))})};var kt},hooks:function(){return{mutationObserverCallbacks:function(Ce){return Ce.treeCallback=et,Ce.nodeCallback=Mi,Ce}}},provides:function(ue){ue.i2svg=function(Ce){var Ke=Ce.node,Xn=Ce.callback;return et(void 0===Ke?Vt:Ke,void 0===Xn?function(){}:Xn)},ue.generateSvgReplacementMutation=function(Ce,Ke){var bn=Ke.iconName,Xn=Ke.title,ei=Ke.titleId,Ai=Ke.prefix,wi=Ke.transform,xo=Ke.symbol,xi=Ke.mask,Yi=Ke.maskId,pa=Ke.extra;return new Promise(function(oa,xa){Promise.all([za(bn,Ai),xi.iconName?za(xi.iconName,xi.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(Xr){var vs=N(Xr,2);oa([Ce,qa({icons:{main:vs[0],mask:vs[1]},prefix:Ai,iconName:bn,transform:wi,symbol:xo,maskId:Yi,title:Xn,titleId:ei,extra:pa,watchable:!0})])}).catch(xa)})},ue.generateAbstractIcon=function(Ce){var xo,Ke=Ce.children,bn=Ce.attributes,Xn=Ce.main,ei=Ce.transform,wi=Vi(Ce.styles);return wi.length>0&&(bn.style=wi),cn(ei)&&(xo=Ys("generateAbstractTransformGrouping",{main:Xn,transform:ei,containerWidth:Xn.width,iconWidth:Xn.width})),Ke.push(xo||Xn.icon),{children:Ke,attributes:bn}}}},Ec={mixout:function(){return{layer:function(Ce){var Ke=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},bn=Ke.classes,Xn=void 0===bn?[]:bn;return bc({type:"layer"},function(){Zl("beforeDOMElementCreation",{assembler:Ce,params:Ke});var ei=[];return Ce(function(Ai){Array.isArray(Ai)?Ai.map(function(wi){ei=ei.concat(wi.abstract)}):ei=ei.concat(Ai.abstract)}),[{tag:"span",attributes:{class:["".concat(ie.cssPrefix,"-layers")].concat(V(Xn)).join(" ")},children:ei}]})}}}},Ir={mixout:function(){return{counter:function(Ce){var Ke=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},bn=Ke.title,Xn=void 0===bn?null:bn,ei=Ke.classes,Ai=void 0===ei?[]:ei,wi=Ke.attributes,xo=void 0===wi?{}:wi,xi=Ke.styles,Yi=void 0===xi?{}:xi;return bc({type:"counter",content:Ce},function(){return Zl("beforeDOMElementCreation",{content:Ce,params:Ke}),Ts({content:Ce.toString(),title:Xn,extra:{attributes:xo,styles:Yi,classes:["".concat(ie.cssPrefix,"-layers-counter")].concat(V(Ai))}})})}}}},qr={mixout:function(){return{text:function(Ce){var Ke=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},bn=Ke.transform,Xn=void 0===bn?ge:bn,ei=Ke.title,Ai=void 0===ei?null:ei,wi=Ke.classes,xo=void 0===wi?[]:wi,xi=Ke.attributes,Yi=void 0===xi?{}:xi,pa=Ke.styles,oa=void 0===pa?{}:pa;return bc({type:"text",content:Ce},function(){return Zl("beforeDOMElementCreation",{content:Ce,params:Ke}),uu({content:Ce,transform:x(x({},ge),Xn),title:Ai,extra:{attributes:Yi,styles:oa,classes:["".concat(ie.cssPrefix,"-layers-text")].concat(V(xo))}})})}}},provides:function(ue){ue.generateLayersText=function(Ce,Ke){var bn=Ke.title,Xn=Ke.transform,ei=Ke.extra,Ai=null,wi=null;if(Ge){var xo=parseInt(getComputedStyle(Ce).fontSize,10),xi=Ce.getBoundingClientRect();Ai=xi.width/xo,wi=xi.height/xo}return ie.autoA11y&&!bn&&(ei.attributes["aria-hidden"]="true"),Promise.resolve([Ce,uu({content:Ce.innerHTML,width:Ai,height:wi,transform:Xn,title:bn,extra:ei,watchable:!0})])}}},Au=new RegExp('"',"ug"),Ja=[1105920,1112319];function v1(kt,ue){var Ce="".concat("data-fa-pseudo-element-pending").concat(ue.replace(":","-"));return new Promise(function(Ke,bn){if(null!==kt.getAttribute(Ce))return Ke();var ei=Ae(kt.children).filter(function(Zs){return Zs.getAttribute(xe)===ue})[0],Ai=ce.getComputedStyle(kt,ue),wi=Ai.getPropertyValue("font-family").match(qn),xo=Ai.getPropertyValue("font-weight"),xi=Ai.getPropertyValue("content");if(ei&&!wi)return kt.removeChild(ei),Ke();if(wi&&"none"!==xi&&""!==xi){var Yi=Ai.getPropertyValue("content"),pa=~["Sharp"].indexOf(wi[2])?te:Qe,oa=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(wi[2])?Rt[pa][wi[2].toLowerCase()]:mi[pa][xo],xa=function Kc(kt){var ue=kt.replace(Au,""),Ce=function zn(kt,ue){var bn,Ce=kt.length,Ke=kt.charCodeAt(ue);return Ke>=55296&&Ke<=56319&&Ce>ue+1&&(bn=kt.charCodeAt(ue+1))>=56320&&bn<=57343?1024*(Ke-55296)+bn-56320+65536:Ke}(ue,0),Ke=Ce>=Ja[0]&&Ce<=Ja[1],bn=2===ue.length&&ue[0]===ue[1];return{value:He(bn?ue[0]:ue),isSecondary:Ke||bn}}(Yi),Xr=xa.value,vs=xa.isSecondary,Ms=wi[0].startsWith("FontAwesome"),ts=Hs(oa,Xr),Jr=ts;if(Ms){var es=function jd(kt){var ue=Ml[kt],Ce=Hs("fas",kt);return ue||(Ce?{prefix:"fas",iconName:Ce}:null)||{prefix:null,iconName:null}}(Xr);es.iconName&&es.prefix&&(ts=es.iconName,oa=es.prefix)}if(!ts||vs||ei&&ei.getAttribute(ke)===oa&&ei.getAttribute(un)===Jr)Ke();else{kt.setAttribute(Ce,Jr),ei&&kt.removeChild(ei);var wr=function Kr(){return{iconName:null,title:null,titleId:null,prefix:null,transform:ge,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}(),Vs=wr.extra;Vs.attributes[xe]=ue,za(ts,oa).then(function(Zs){var $d=qa(x(x({},wr),{},{icons:{main:Zs,mask:{prefix:null,iconName:null,rest:[]}},prefix:oa,iconName:Jr,extra:Vs,watchable:!0})),mr=Vt.createElement("svg");"::before"===ue?kt.insertBefore(mr,kt.firstChild):kt.appendChild(mr),mr.outerHTML=$d.map(function(sa){return on(sa)}).join("\n"),kt.removeAttribute(Ce),Ke()}).catch(bn)}}else Ke()})}function Md(kt){return Promise.all([v1(kt,"::before"),v1(kt,"::after")])}function x1(kt){return!(kt.parentNode===document.head||~_i.indexOf(kt.tagName.toUpperCase())||kt.getAttribute(xe)||kt.parentNode&&"svg"===kt.parentNode.tagName)}function Wd(kt){if(Fe)return new Promise(function(ue,Ce){var Ke=Ae(kt.querySelectorAll("*")).filter(x1).map(Md),bn=zs_begin("searchPseudoElements");Lc(),Promise.all(Ke).then(function(){bn(),ul(),ue()}).catch(function(){bn(),ul(),Ce()})})}var Fc=!1,dl=function(ue){return ue.toLowerCase().split(" ").reduce(function(Ke,bn){var Xn=bn.toLowerCase().split("-"),ei=Xn[0],Ai=Xn.slice(1).join("-");if(ei&&"h"===Ai)return Ke.flipX=!0,Ke;if(ei&&"v"===Ai)return Ke.flipY=!0,Ke;if(Ai=parseFloat(Ai),isNaN(Ai))return Ke;switch(ei){case"grow":Ke.size=Ke.size+Ai;break;case"shrink":Ke.size=Ke.size-Ai;break;case"left":Ke.x=Ke.x-Ai;break;case"right":Ke.x=Ke.x+Ai;break;case"up":Ke.y=Ke.y-Ai;break;case"down":Ke.y=Ke.y+Ai;break;case"rotate":Ke.rotate=Ke.rotate+Ai}return Ke},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},Pl={x:0,y:0,width:"100%",height:"100%"};function yc(kt){var ue=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return kt.attributes&&(kt.attributes.fill||ue)&&(kt.attributes.fill="black"),kt}!function jl(kt,ue){var Ce=ue.mixoutsTo;xc=kt,Ks={},Object.keys(ll).forEach(function(Ke){-1===td.indexOf(Ke)&&delete ll[Ke]}),xc.forEach(function(Ke){var bn=Ke.mixout?Ke.mixout():{};if(Object.keys(bn).forEach(function(ei){"function"==typeof bn[ei]&&(Ce[ei]=bn[ei]),"object"===v(bn[ei])&&Object.keys(bn[ei]).forEach(function(Ai){Ce[ei]||(Ce[ei]={}),Ce[ei][Ai]=bn[ei][Ai]})}),Ke.hooks){var Xn=Ke.hooks();Object.keys(Xn).forEach(function(ei){Ks[ei]||(Ks[ei]=[]),Ks[ei].push(Xn[ei])})}Ke.provides&&Ke.provides(ll)})}([Lo,$c,Ec,Ir,qr,{hooks:function(){return{mutationObserverCallbacks:function(Ce){return Ce.pseudoElementsCallback=Wd,Ce}}},provides:function(ue){ue.pseudoElements2svg=function(Ce){var Ke=Ce.node;ie.searchPseudoElements&&Wd(void 0===Ke?Vt:Ke)}}},{mixout:function(){return{dom:{unwatch:function(){Lc(),Fc=!0}}}},hooks:function(){return{bootstrap:function(){wd(Es("mutationObserverCallbacks",{}))},noAuto:function(){!function _s(){!Cc||Cc.disconnect()}()},watch:function(Ce){var Ke=Ce.observeMutationsRoot;Fc?ul():wd(Es("mutationObserverCallbacks",{observeMutationsRoot:Ke}))}}}},{mixout:function(){return{parse:{transform:function(Ce){return dl(Ce)}}}},hooks:function(){return{parseNodeAttributes:function(Ce,Ke){var bn=Ke.getAttribute("data-fa-transform");return bn&&(Ce.transform=dl(bn)),Ce}}},provides:function(ue){ue.generateAbstractTransformGrouping=function(Ce){var Ke=Ce.main,bn=Ce.transform,ei=Ce.iconWidth,Ai={transform:"translate(".concat(Ce.containerWidth/2," 256)")},wi="translate(".concat(32*bn.x,", ").concat(32*bn.y,") "),xo="scale(".concat(bn.size/16*(bn.flipX?-1:1),", ").concat(bn.size/16*(bn.flipY?-1:1),") "),xi="rotate(".concat(bn.rotate," 0 0)"),oa={outer:Ai,inner:{transform:"".concat(wi," ").concat(xo," ").concat(xi)},path:{transform:"translate(".concat(ei/2*-1," -256)")}};return{tag:"g",attributes:x({},oa.outer),children:[{tag:"g",attributes:x({},oa.inner),children:[{tag:Ke.icon.tag,children:Ke.icon.children,attributes:x(x({},Ke.icon.attributes),oa.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(Ce,Ke){var bn=Ke.getAttribute("data-fa-mask"),Xn=bn?jc(bn.split(" ").map(function(ei){return ei.trim()})):{prefix:null,iconName:null,rest:[]};return Xn.prefix||(Xn.prefix=Gc()),Ce.mask=Xn,Ce.maskId=Ke.getAttribute("data-fa-mask-id"),Ce}}},provides:function(ue){ue.generateAbstractMask=function(Ce){var kt,Ke=Ce.children,bn=Ce.attributes,Xn=Ce.main,ei=Ce.mask,Ai=Ce.maskId,xi=Xn.icon,pa=ei.icon,oa=function pn(kt){var ue=kt.transform,Ke=kt.iconWidth,bn={transform:"translate(".concat(kt.containerWidth/2," 256)")},Xn="translate(".concat(32*ue.x,", ").concat(32*ue.y,") "),ei="scale(".concat(ue.size/16*(ue.flipX?-1:1),", ").concat(ue.size/16*(ue.flipY?-1:1),") "),Ai="rotate(".concat(ue.rotate," 0 0)");return{outer:bn,inner:{transform:"".concat(Xn," ").concat(ei," ").concat(Ai)},path:{transform:"translate(".concat(Ke/2*-1," -256)")}}}({transform:Ce.transform,containerWidth:ei.width,iconWidth:Xn.width}),xa={tag:"rect",attributes:x(x({},Pl),{},{fill:"white"})},Xr=xi.children?{children:xi.children.map(yc)}:{},vs={tag:"g",attributes:x({},oa.inner),children:[yc(x({tag:xi.tag,attributes:x(x({},xi.attributes),oa.path)},Xr))]},Ms={tag:"g",attributes:x({},oa.outer),children:[vs]},ts="mask-".concat(Ai||zt()),Jr="clip-".concat(Ai||zt()),es={tag:"mask",attributes:x(x({},Pl),{},{id:ts,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[xa,Ms]},wr={tag:"defs",children:[{tag:"clipPath",attributes:{id:Jr},children:(kt=pa,"g"===kt.tag?kt.children:[kt])},es]};return Ke.push(wr,{tag:"rect",attributes:x({fill:"currentColor","clip-path":"url(#".concat(Jr,")"),mask:"url(#".concat(ts,")")},Pl)}),{children:Ke,attributes:bn}}}},{provides:function(ue){var Ce=!1;ce.matchMedia&&(Ce=ce.matchMedia("(prefers-reduced-motion: reduce)").matches),ue.missingIconAbstract=function(){var Ke=[],bn={fill:"currentColor"},Xn={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};Ke.push({tag:"path",attributes:x(x({},bn),{},{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=x(x({},Xn),{},{attributeName:"opacity"}),Ai={tag:"circle",attributes:x(x({},bn),{},{cx:"256",cy:"364",r:"28"}),children:[]};return Ce||Ai.children.push({tag:"animate",attributes:x(x({},Xn),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:x(x({},ei),{},{values:"1;0;1;1;0;1;"})}),Ke.push(Ai),Ke.push({tag:"path",attributes:x(x({},bn),{},{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:Ce?[]:[{tag:"animate",attributes:x(x({},ei),{},{values:"1;0;0;0;0;1;"})}]}),Ce||Ke.push({tag:"path",attributes:x(x({},bn),{},{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:x(x({},ei),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:Ke}}}},{hooks:function(){return{parseNodeAttributes:function(Ce,Ke){var bn=Ke.getAttribute("data-fa-symbol");return Ce.symbol=null!==bn&&(""===bn||bn),Ce}}}}],{mixoutsTo:Ca});var Pa=Ca.parse,vo=Ca.icon,Zi=h(11481);const No=["*"],fr=kt=>{const ue={"fa-spin":kt.spin,"fa-pulse":kt.pulse,"fa-fw":kt.fixedWidth,"fa-border":kt.border,"fa-inverse":kt.inverse,"fa-layers-counter":kt.counter,"fa-flip-horizontal":"horizontal"===kt.flip||"both"===kt.flip,"fa-flip-vertical":"vertical"===kt.flip||"both"===kt.flip,[`fa-${kt.size}`]:null!==kt.size,[`fa-rotate-${kt.rotate}`]:null!==kt.rotate,[`fa-pull-${kt.pull}`]:null!==kt.pull,[`fa-stack-${kt.stackItemSize}`]:null!=kt.stackItemSize};return Object.keys(ue).map(Ce=>ue[Ce]?Ce:null).filter(Ce=>Ce)};let Uu=(()=>{class kt{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null}}return kt.\u0275fac=function(Ce){return new(Ce||kt)},kt.\u0275prov=u.Yz7({token:kt,factory:kt.\u0275fac,providedIn:"root"}),kt})(),tr=(()=>{class kt{constructor(){this.definitions={}}addIcons(...Ce){for(const Ke of Ce){Ke.prefix in this.definitions||(this.definitions[Ke.prefix]={}),this.definitions[Ke.prefix][Ke.iconName]=Ke;for(const bn of Ke.icon[2])"string"==typeof bn&&(this.definitions[Ke.prefix][bn]=Ke)}}addIconPacks(...Ce){for(const Ke of Ce){const bn=Object.keys(Ke).map(Xn=>Ke[Xn]);this.addIcons(...bn)}}getIconDefinition(Ce,Ke){return Ce in this.definitions&&Ke in this.definitions[Ce]?this.definitions[Ce][Ke]:null}}return kt.\u0275fac=function(Ce){return new(Ce||kt)},kt.\u0275prov=u.Yz7({token:kt,factory:kt.\u0275fac,providedIn:"root"}),kt})(),ec=(()=>{class kt{constructor(){this.stackItemSize="1x"}ngOnChanges(Ce){if("size"in Ce)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 kt.\u0275fac=function(Ce){return new(Ce||kt)},kt.\u0275dir=u.lG2({type:kt,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[u.TTD]}),kt})(),wu=(()=>{class kt{constructor(Ce,Ke){this.renderer=Ce,this.elementRef=Ke}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(Ce){"size"in Ce&&(null!=Ce.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${Ce.size.currentValue}`),null!=Ce.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${Ce.size.previousValue}`))}}return kt.\u0275fac=function(Ce){return new(Ce||kt)(u.Y36(u.Qsj),u.Y36(u.SBq))},kt.\u0275cmp=u.Xpm({type:kt,selectors:[["fa-stack"]],inputs:{size:"size"},features:[u.TTD],ngContentSelectors:No,decls:1,vars:0,template:function(Ce,Ke){1&Ce&&(u.F$t(),u.Hsn(0))},encapsulation:2}),kt})(),cr=(()=>{class kt{constructor(Ce,Ke,bn,Xn,ei){this.sanitizer=Ce,this.config=Ke,this.iconLibrary=bn,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(Ce){if(null==this.icon&&null==this.config.fallbackIcon)return(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})();let Ke=null;if(Ke=this.icon??this.config.fallbackIcon,Ce){const bn=this.findIconDefinition(Ke);if(null!=bn){const Xn=this.buildParams();this.renderIcon(bn,Xn)}}}render(){this.ngOnChanges({})}findIconDefinition(Ce){const Ke=((kt,ue)=>(kt=>void 0!==kt.prefix&&void 0!==kt.iconName)(kt)?kt:Array.isArray(kt)&&2===kt.length?{prefix:kt[0],iconName:kt[1]}:"string"==typeof kt?{prefix:ue,iconName:kt}:void 0)(Ce,this.config.defaultPrefix);return"icon"in Ke?Ke:this.iconLibrary.getIconDefinition(Ke.prefix,Ke.iconName)??((kt=>{throw new Error(`Could not find icon with iconName=${kt.iconName} and prefix=${kt.prefix} in the icon library.`)})(Ke),null)}buildParams(){const Ce={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},Ke="string"==typeof this.transform?Pa.transform(this.transform):this.transform;return{title:this.title,transform:Ke,classes:[...fr(Ce),...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(Ce,Ke){const bn=vo(Ce,Ke);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(bn.html.join("\n"))}}return kt.\u0275fac=function(Ce){return new(Ce||kt)(u.Y36(Zi.H7),u.Y36(Uu),u.Y36(tr),u.Y36(ec,8),u.Y36(wu,8))},kt.\u0275cmp=u.Xpm({type:kt,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(Ce,Ke){2&Ce&&(u.Ikx("innerHTML",Ke.renderedIconHTML,u.oJD),u.uIk("title",Ke.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(Ce,Ke){},encapsulation:2}),kt})(),Ln=(()=>{class kt{}return kt.\u0275fac=function(Ce){return new(Ce||kt)},kt.\u0275mod=u.oAB({type:kt}),kt.\u0275inj=u.cJS({}),kt})()},33231:(X,j,h)=>{"use strict";h.d(j,{Co:()=>vn,nu:()=>_n});var u=h(29521),p=h(94650),x=h(24006),v=h(3238),t=h(59549),T=h(84385),U=h(591),w=h(21086),P=h(23426),O=h(8929),L=h(87545),N=h(24850),V=h(1059),W=h(18583),tt=h(7625),st=h(72986),ct=h(92198),bt=h(22868),Dt=h(67376),wt=h(56709),qt=h(51572),Jt=h(4859),yt=h(97392),At=h(36895),xt=h(10266);const pt=["searchSelectInput"],Ot=["innerSelectSearch"];function Bt(ke,un){if(1&ke){const Dn=p.EpF();p.TgZ(0,"mat-checkbox",9),p.NdJ("change",function(_i){p.CHM(Dn);const oi=p.oxw();return p.KtG(oi._emitSelectAllBooleanToParent(_i.checked))}),p.qZA()}if(2&ke){const Dn=p.oxw();p.Q6J("color",null==Dn.matFormField?null:Dn.matFormField.color)("checked",Dn.toggleAllCheckboxChecked)("indeterminate",Dn.toggleAllCheckboxIndeterminate)("matTooltip",Dn.toggleAllCheckboxTooltipMessage)("matTooltipPosition",Dn.toggleAllCheckboxTooltipPosition)}}function St(ke,un){1&ke&&p._UZ(0,"mat-spinner",10)}function ce(ke,un){1&ke&&p.Hsn(0,1,["*ngIf","clearIcon; else defaultIcon"])}function Vt(ke,un){if(1&ke&&(p.TgZ(0,"mat-icon",14),p._uU(1),p.qZA()),2&ke){const Dn=p.oxw(2);p.Q6J("svgIcon",Dn.closeSvgIcon),p.xp6(1),p.hij(" ",Dn.closeSvgIcon?null:Dn.closeIcon," ")}}function ve(ke,un){if(1&ke){const Dn=p.EpF();p.TgZ(0,"button",11),p.NdJ("click",function(){p.CHM(Dn);const _i=p.oxw();return p.KtG(_i._reset(!0))}),p.YNc(1,ce,1,0,"ng-content",12),p.YNc(2,Vt,2,2,"ng-template",null,13,p.W1O),p.qZA()}if(2&ke){const Dn=p.MAs(3),ii=p.oxw();p.xp6(1),p.Q6J("ngIf",ii.clearIcon)("ngIfElse",Dn)}}function fe(ke,un){1&ke&&p.Hsn(0,2,["*ngIf","noEntriesFound; else defaultNoEntriesFound"])}function Le(ke,un){if(1&ke&&p._uU(0),2&ke){const Dn=p.oxw(2);p.Oqu(Dn.noEntriesFoundLabel)}}function Fe(ke,un){if(1&ke&&(p.TgZ(0,"div",15),p.YNc(1,fe,1,0,"ng-content",12),p.YNc(2,Le,1,1,"ng-template",null,16,p.W1O),p.qZA()),2&ke){const Dn=p.MAs(3),ii=p.oxw();p.xp6(1),p.Q6J("ngIf",ii.noEntriesFound)("ngIfElse",Dn)}}const Ge=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],Gt=function(ke,un){return{"mat-select-search-inner-multiple":ke,"mat-select-search-inner-toggle-all":un}},Te=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"];let ne=(()=>{class ke{}return ke.\u0275fac=function(Dn){return new(Dn||ke)},ke.\u0275dir=p.lG2({type:ke,selectors:[["","ngxMatSelectSearchClear",""]]}),ke})();const jt=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],re=new p.OlP("mat-selectsearch-default-options");let Me=(()=>{class ke{}return ke.\u0275fac=function(Dn){return new(Dn||ke)},ke.\u0275dir=p.lG2({type:ke,selectors:[["","ngxMatSelectNoEntriesFound",""]]}),ke})(),_n=(()=>{class ke{constructor(Dn,ii,_i,oi=null,Qe=null,te){this.matSelect=Dn,this.changeDetectorRef=ii,this._viewportRuler=_i,this.matOption=oi,this.matFormField=Qe,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 p.vpe,this.onTouched=it=>{},this._options$=new U.X(null),this.optionsList$=this._options$.pipe((0,L.w)(it=>it?it.changes.pipe((0,N.U)(K=>K.toArray()),(0,V.O)(it.toArray())):(0,w.of)(null))),this.optionsLength$=this.optionsList$.pipe((0,N.U)(it=>it?it.length:0)),this._formControl=new x.NI(""),this._showNoEntriesFound$=(0,P.aj)([this._formControl.valueChanges,this.optionsLength$]).pipe((0,N.U)(([it,K])=>this.noEntriesFoundLabel&&it&&K===this.getOptionsLengthOffset())),this._onDestroy=new O.xQ,this.applyDefaultOptions(te)}get isInsideMatOption(){return!!this.matOption}get value(){return this._formControl.value}set _options(Dn){this._options$.next(Dn)}get _options(){return this._options$.getValue()}applyDefaultOptions(Dn){if(Dn)for(const ii of jt)Dn.hasOwnProperty(ii)&&(this[ii]=Dn[ii])}ngOnInit(){const Dn="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(Dn):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,Dn]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[Dn]=!0):this.matSelect.panelClass=Dn,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,W.g)(1),(0,tt.R)(this._onDestroy)).subscribe(ii=>{ii?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe((0,st.q)(1)).pipe((0,tt.R)(this._onDestroy)).subscribe(()=>{this.matSelect._keyManager?this.matSelect._keyManager.change.pipe((0,tt.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,tt.R)(this._onDestroy)).subscribe(()=>{setTimeout(()=>{const _i=this._options.toArray(),oi=_i[this.getOptionsLengthOffset()],Qe=this.matSelect._keyManager;Qe&&this.matSelect.panelOpen&&((!this.matSelect.compareWith(ii,oi)||!Qe.activeItem||!_i.find(it=>this.matSelect.compareWith(it,Qe.activeItem)))&&Qe.setFirstItemActive(),setTimeout(()=>{this.updateInputWidth()}),this.disableScrollToActiveOnOptionsChanged||this.adjustScrollTopToFitActiveOptionIntoView()),ii=oi})})}),this._showNoEntriesFound$.pipe((0,tt.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,tt.R)(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe((0,tt.R)(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(Dn){this.toggleAll.emit(Dn)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(Dn){(Dn.key&&1===Dn.key.length||Dn.keyCode>=u.A&&Dn.keyCode<=u.Z||Dn.keyCode>=u.xE&&Dn.keyCode<=u.aO||Dn.keyCode===u.L_||this.preventHomeEndKeyPropagation&&(Dn.keyCode===u.Sd||Dn.keyCode===u.uR))&&Dn.stopPropagation(),this.matSelect.multiple&&Dn.key&&Dn.keyCode===u.K5&&setTimeout(()=>this._focus()),!0===this.enableClearOnEscapePressed&&Dn.keyCode===u.hY&&this.value&&(this._reset(!0),Dn.stopPropagation())}_handleKeyup(Dn){if(Dn.keyCode===u.LH||Dn.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(Dn){this._lastExternalInputValue=Dn,this._formControl.setValue(Dn),this.changeDetectorRef.markForCheck()}onBlur(){this.unselectActiveDescendant(),this.onTouched()}registerOnChange(Dn){this._formControl.valueChanges.pipe((0,ct.h)(ii=>ii!==this._lastExternalInputValue),(0,bt.b)(()=>this._lastExternalInputValue=void 0),(0,tt.R)(this._onDestroy)).subscribe(Dn)}registerOnTouched(Dn){this.onTouched=Dn}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;const Dn=this.matSelect.panel.nativeElement,ii=Dn.scrollTop;this.searchSelectInput.nativeElement.focus(),Dn.scrollTop=ii}_reset(Dn){this._formControl.setValue(""),Dn&&this._focus()}initMultipleHandling(){this.matSelect.ngControl?(this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges.pipe((0,tt.R)(this._onDestroy)).subscribe(Dn=>{let ii=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!Dn||!Array.isArray(Dn))&&(Dn=[]);const _i=this.matSelect.options.map(oi=>oi.value);this.previousSelectedValues.forEach(oi=>{!Dn.some(Qe=>this.matSelect.compareWith(Qe,oi))&&!_i.some(Qe=>this.matSelect.compareWith(Qe,oi))&&(Dn.push(oi),ii=!0)})}this.previousSelectedValues=Dn,ii&&this.matSelect._onChange(Dn)})):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 Dn=this.getMatOptionHeight(),ii=this.matSelect._keyManager.activeItemIndex||0,_i=(0,v.CB)(ii,this.matSelect.options,this.matSelect.optionGroups),oi=(this.matOption?-1:0)+_i+ii,Qe=this.matSelect.panel.nativeElement.scrollTop,te=this.innerSelectSearch.nativeElement.offsetHeight,it=Math.floor((256-te)/Dn),K=Math.round((Qe+te)/Dn)-1;K>=oi?this.matSelect.panel.nativeElement.scrollTop=oi*Dn:K+it<=oi&&(this.matSelect.panel.nativeElement.scrollTop=(oi+1)*Dn-(256-te))}}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let ii,Dn=this.innerSelectSearch.nativeElement;for(;Dn=Dn.parentElement;)if(Dn.classList.contains("mat-select-panel")){ii=Dn;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 ke.\u0275fac=function(Dn){return new(Dn||ke)(p.Y36(T.gD),p.Y36(p.sBO),p.Y36(Dt.rL),p.Y36(v.ey,8),p.Y36(t.KE,8),p.Y36(re,8))},ke.\u0275cmp=p.Xpm({type:ke,selectors:[["ngx-mat-select-search"]],contentQueries:function(Dn,ii,_i){if(1&Dn&&(p.Suo(_i,ne,5),p.Suo(_i,Me,5)),2&Dn){let oi;p.iGM(oi=p.CRH())&&(ii.clearIcon=oi.first),p.iGM(oi=p.CRH())&&(ii.noEntriesFound=oi.first)}},viewQuery:function(Dn,ii){if(1&Dn&&(p.Gf(pt,7,p.SBq),p.Gf(Ot,7,p.SBq)),2&Dn){let _i;p.iGM(_i=p.CRH())&&(ii.searchSelectInput=_i.first),p.iGM(_i=p.CRH())&&(ii.innerSelectSearch=_i.first)}},hostVars:2,hostBindings:function(Dn,ii){2&Dn&&p.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:[p._Bn([{provide:x.JU,useExisting:(0,p.Gpc)(()=>ke),multi:!0}])],ngContentSelectors:Te,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(Dn,ii){1&Dn&&(p.F$t(Ge),p._UZ(0,"input",0),p.TgZ(1,"div",1,2),p.YNc(3,Bt,1,5,"mat-checkbox",3),p.TgZ(4,"input",4,5),p.NdJ("keydown",function(oi){return ii._handleKeydown(oi)})("keyup",function(oi){return ii._handleKeyup(oi)})("blur",function(){return ii.onBlur()}),p.qZA(),p.YNc(6,St,1,0,"mat-spinner",6),p.YNc(7,ve,4,2,"button",7),p.Hsn(8),p.qZA(),p.YNc(9,Fe,4,2,"div",8),p.ALo(10,"async")),2&Dn&&(p.xp6(1),p.Q6J("ngClass",p.WLB(11,Gt,ii.matSelect.multiple,ii._isToggleAllCheckboxVisible())),p.xp6(2),p.Q6J("ngIf",ii._isToggleAllCheckboxVisible()),p.xp6(1),p.Q6J("type",ii.type)("formControl",ii._formControl)("placeholder",ii.placeholderLabel),p.uIk("aria-label",ii.ariaLabel),p.xp6(2),p.Q6J("ngIf",ii.searching),p.xp6(1),p.Q6J("ngIf",!ii.hideClearSearchButton&&ii.value&&!ii.searching),p.xp6(2),p.Q6J("ngIf",p.lcZ(10,9,ii._showNoEntriesFound$)))},dependencies:[wt.oG,qt.Ou,Jt.lW,yt.Hw,At.mk,At.O5,xt.gM,x.Fj,x.JJ,x.oH,At.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}),ke})(),vn=(()=>{class ke{}return ke.\u0275fac=function(Dn){return new(Dn||ke)},ke.\u0275mod=p.oAB({type:ke}),ke.\u0275inj=p.cJS({imports:[[At.ez,x.UX,Jt.ot,wt.p9,yt.Ps,qt.Cq,xt.AV]]}),ke})()}},X=>{X(X.s=367)}]); \ No newline at end of file