(self.webpackChunklms_client=self.webpackChunklms_client||[]).push([[179],{50929:(ut,fe,d)=>{"use strict";d.d(fe,{H6J:()=>Xe,I_K:()=>Xs,zeW:()=>bs,BdM:()=>si,FEm:()=>uu,Tdg:()=>Il,hiv:()=>pl,IdW:()=>vn,VPe:()=>qr,R_3:()=>Vn,hJ8:()=>Vr,lR3:()=>aa,xB8:()=>Rl,xVj:()=>bc,snJ:()=>Za,KDF:()=>_c,A9I:()=>M,Q5$:()=>Ea,voO:()=>Qr,Vsx:()=>rn,HYg:()=>Se,U4m:()=>Pa,ygx:()=>La,AOy:()=>wn,wh8:()=>Au,zIV:()=>lo,lAU:()=>xl,QJ3:()=>js,Qgo:()=>ji,Ttm:()=>wa,KxW:()=>_u,Oh2:()=>lt,RVT:()=>Mc,qX1:()=>dl,h2k:()=>Zt,Yh$:()=>re,xS$:()=>wr,QOi:()=>oi,Obu:()=>O,E4D:()=>be,nlJ:()=>ni,jh6:()=>Ue,N0T:()=>qe,sGN:()=>Ct,rfG:()=>Hi,bg6:()=>Ft,oWe:()=>Vt,TTZ:()=>ve,ry4:()=>Oa,oBR:()=>qa,vuT:()=>Ms,rRV:()=>ge,dS:()=>Ot,rcD:()=>rs,r39:()=>V,z6t:()=>dt,VV4:()=>Ul,skW:()=>Sn,AYo:()=>ja,vc:()=>vu,Jq9:()=>so,YD1:()=>Pe,Pvs:()=>bn,azq:()=>L,ifx:()=>gr,SPZ:()=>Mr,rxu:()=>kn,VfA:()=>ce,Pe9:()=>Ii,MUz:()=>Yt,vrY:()=>Yl,bXg:()=>At,deF:()=>Ie,x_n:()=>me,_OJ:()=>Le,iWm:()=>$t,SVl:()=>Qt,Zjx:()=>hn,U4g:()=>Hs,iCZ:()=>Is,yLW:()=>Gs,xSu:()=>nn,BJe:()=>Fs,VTw:()=>Ia,_zt:()=>sn,iFU:()=>ea,SOE:()=>Kn,PsW:()=>nt,jHR:()=>he,PZw:()=>Rt,Q8U:()=>pt,osf:()=>wt,AVF:()=>zu,gRm:()=>Ho,yRu:()=>ht,T6u:()=>wo,Rac:()=>Qu,cMs:()=>os,VEA:()=>qo,GT4:()=>mc,CnA:()=>sr,g4F:()=>Oc,omy:()=>vr,WoG:()=>Ic,p7j:()=>Yr,S6v:()=>rr,_aR:()=>tr,HPs:()=>Mn,uVS:()=>bi,BKI:()=>Jo,ipI:()=>Me,ZSf:()=>mt,mCA:()=>ts,urV:()=>xs,bXf:()=>de,sYA:()=>le,MA3:()=>kr,Hbc:()=>Fe,k$v:()=>Pn,y$4:()=>Cs,hak:()=>$o,b7Q:()=>Tn,HpC:()=>Gr,uyT:()=>$e,ONu:()=>pe,ltK:()=>Te});var A=function(){return A=Object.assign||function(r){for(var l,g=1,C=arguments.length;g<C;g++)for(var x in l=arguments[g])Object.prototype.hasOwnProperty.call(l,x)&&(r[x]=l[x]);return r},A.apply(this,arguments)};if(typeof FullCalendarVDom>"u")throw new Error("Please import the top-level fullcalendar lib before attempting to import a plugin.");var J=FullCalendarVDom.Component,L=FullCalendarVDom.createElement,le=FullCalendarVDom.render,ce=FullCalendarVDom.createRef,Se=FullCalendarVDom.Fragment,Qe=FullCalendarVDom.createContext,ct=FullCalendarVDom.createPortal,$t=FullCalendarVDom.flushSync,$e=FullCalendarVDom.unmountComponentAtNode;!function Et(o,r){void 0===r&&(r={});var l=r.insertAt;if(o&&!(typeof document>"u")){var g=document.head||document.getElementsByTagName("head")[0],C=document.createElement("style");C.type="text/css","top"===l&&g.firstChild?g.insertBefore(C,g.firstChild):g.appendChild(C),C.styleSheet?C.styleSheet.cssText=o:C.appendChild(document.createTextNode(o))}}('\n/* classes attached to <body> */\n/* TODO: make fc-event selector work when calender in shadow DOM */\n.fc-not-allowed,\n.fc-not-allowed .fc-event { /* override events\' custom cursors */\n  cursor: not-allowed;\n}\n\n/* TODO: not attached to body. attached to specific els. move */\n.fc-unselectable {\n  -webkit-user-select: none;\n     -moz-user-select: none;\n      -ms-user-select: none;\n          user-select: none;\n  -webkit-touch-callout: none;\n  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\n.fc {\n  /* layout of immediate children */\n  display: flex;\n  flex-direction: column;\n\n  font-size: 1em\n}\n.fc,\n  .fc *,\n  .fc *:before,\n  .fc *:after {\n    box-sizing: border-box;\n  }\n.fc table {\n    border-collapse: collapse;\n    border-spacing: 0;\n    font-size: 1em; /* normalize cross-browser */\n  }\n.fc th {\n    text-align: center;\n  }\n.fc th,\n  .fc td {\n    vertical-align: top;\n    padding: 0;\n  }\n.fc a[data-navlink] {\n    cursor: pointer;\n  }\n.fc a[data-navlink]:hover {\n    text-decoration: underline;\n  }\n.fc-direction-ltr {\n  direction: ltr;\n  text-align: left;\n}\n.fc-direction-rtl {\n  direction: rtl;\n  text-align: right;\n}\n.fc-theme-standard td,\n  .fc-theme-standard th {\n    border: 1px solid #ddd;\n    border: 1px solid var(--fc-border-color, #ddd);\n  }\n/* for FF, which doesn\'t expand a 100% div within a table cell. use absolute positioning */\n/* inner-wrappers are responsible for being absolute */\n/* TODO: best place for this? */\n.fc-liquid-hack td,\n  .fc-liquid-hack th {\n    position: relative;\n  }\n\n@font-face {\n  font-family: \'fcicons\';\n  src: url("data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBfAAAAC8AAAAYGNtYXAXVtKNAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZgYydxIAAAF4AAAFNGhlYWQUJ7cIAAAGrAAAADZoaGVhB20DzAAABuQAAAAkaG10eCIABhQAAAcIAAAALGxvY2ED4AU6AAAHNAAAABhtYXhwAA8AjAAAB0wAAAAgbmFtZXsr690AAAdsAAABhnBvc3QAAwAAAAAI9AAAACAAAwPAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpBgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6Qb//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAWIAjQKeAskAEwAAJSc3NjQnJiIHAQYUFwEWMjc2NCcCnuLiDQ0MJAz/AA0NAQAMJAwNDcni4gwjDQwM/wANIwz/AA0NDCMNAAAAAQFiAI0CngLJABMAACUBNjQnASYiBwYUHwEHBhQXFjI3AZ4BAA0N/wAMJAwNDeLiDQ0MJAyNAQAMIw0BAAwMDSMM4uINIwwNDQAAAAIA4gC3Ax4CngATACcAACUnNzY0JyYiDwEGFB8BFjI3NjQnISc3NjQnJiIPAQYUHwEWMjc2NCcB87e3DQ0MIw3VDQ3VDSMMDQ0BK7e3DQ0MJAzVDQ3VDCQMDQ3zuLcMJAwNDdUNIwzWDAwNIwy4twwkDA0N1Q0jDNYMDA0jDAAAAgDiALcDHgKeABMAJwAAJTc2NC8BJiIHBhQfAQcGFBcWMjchNzY0LwEmIgcGFB8BBwYUFxYyNwJJ1Q0N1Q0jDA0Nt7cNDQwjDf7V1Q0N1QwkDA0Nt7cNDQwkDLfWDCMN1Q0NDCQMt7gMIw0MDNYMIw3VDQ0MJAy3uAwjDQwMAAADAFUAAAOrA1UAMwBoAHcAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMhMjY1NCYjISIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAAVYRGRkR/qoRGRkRA1UFBAUOCQkVDAsZDf2rDRkLDBUJCA4FBQUFBQUOCQgVDAsZDQJVDRkLDBUJCQ4FBAVVAgECBQMCBwQECAX9qwQJAwQHAwMFAQICAgIBBQMDBwQDCQQCVQUIBAQHAgMFAgEC/oAZEhEZGRESGQAAAAADAFUAAAOrA1UAMwBoAIkAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMzFRQWMzI2PQEzMjY1NCYrATU0JiMiBh0BIyIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAgBkSEhmAERkZEYAZEhIZgBEZGREDVQUEBQ4JCRUMCxkN/asNGQsMFQkIDgUFBQUFBQ4JCBUMCxkNAlUNGQsMFQkJDgUEBVUCAQIFAwIHBAQIBf2rBAkDBAcDAwUBAgICAgEFAwMHBAMJBAJVBQgEBAcCAwUCAQL+gIASGRkSgBkSERmAEhkZEoAZERIZAAABAOIAjQMeAskAIAAAExcHBhQXFjI/ARcWMjc2NC8BNzY0JyYiDwEnJiIHBhQX4uLiDQ0MJAzi4gwkDA0N4uINDQwkDOLiDCQMDQ0CjeLiDSMMDQ3h4Q0NDCMN4uIMIw0MDOLiDAwNIwwAAAABAAAAAQAAa5n0y18PPPUACwQAAAAAANivOVsAAAAA2K85WwAAAAADqwNVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAOrAAEAAAAAAAAAAAAAAAAAAAALBAAAAAAAAAAAAAAAAgAAAAQAAWIEAAFiBAAA4gQAAOIEAABVBAAAVQQAAOIAAAAAAAoAFAAeAEQAagCqAOoBngJkApoAAQAAAAsAigADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGZjaWNvbnMAZgBjAGkAYwBvAG4Ac1ZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGZjaWNvbnMAZgBjAGkAYwBvAG4Ac2ZjaWNvbnMAZgBjAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcmZjaWNvbnMAZgBjAGkAYwBvAG4Ac0ZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=") format(\'truetype\');\n  font-weight: normal;\n  font-style: normal;\n}\n\n.fc-icon {\n  /* added for fc */\n  display: inline-block;\n  width: 1em;\n  height: 1em;\n  text-align: center;\n  -webkit-user-select: none;\n     -moz-user-select: none;\n      -ms-user-select: none;\n          user-select: none;\n\n  /* use !important to prevent issues with browser extensions that change fonts */\n  font-family: \'fcicons\' !important;\n  speak: none;\n  font-style: normal;\n  font-weight: normal;\n  font-variant: normal;\n  text-transform: none;\n  line-height: 1;\n\n  /* Better Font Rendering =========== */\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n}\n\n.fc-icon-chevron-left:before {\n  content: "\\e900";\n}\n\n.fc-icon-chevron-right:before {\n  content: "\\e901";\n}\n\n.fc-icon-chevrons-left:before {\n  content: "\\e902";\n}\n\n.fc-icon-chevrons-right:before {\n  content: "\\e903";\n}\n\n.fc-icon-minus-square:before {\n  content: "\\e904";\n}\n\n.fc-icon-plus-square:before {\n  content: "\\e905";\n}\n\n.fc-icon-x:before {\n  content: "\\e906";\n}\n/*\nLots taken from Flatly (MIT): https://bootswatch.com/4/flatly/bootstrap.css\n\nThese styles only apply when the standard-theme is activated.\nWhen it\'s NOT activated, the fc-button classes won\'t even be in the DOM.\n*/\n.fc {\n\n  /* reset */\n\n}\n.fc .fc-button {\n    border-radius: 0;\n    overflow: visible;\n    text-transform: none;\n    margin: 0;\n    font-family: inherit;\n    font-size: inherit;\n    line-height: inherit;\n  }\n.fc .fc-button:focus {\n    outline: 1px dotted;\n    outline: 5px auto -webkit-focus-ring-color;\n  }\n.fc .fc-button {\n    -webkit-appearance: button;\n  }\n.fc .fc-button:not(:disabled) {\n    cursor: pointer;\n  }\n.fc .fc-button::-moz-focus-inner {\n    padding: 0;\n    border-style: none;\n  }\n.fc {\n\n  /* theme */\n\n}\n.fc .fc-button {\n    display: inline-block;\n    font-weight: 400;\n    text-align: center;\n    vertical-align: middle;\n    -webkit-user-select: none;\n       -moz-user-select: none;\n        -ms-user-select: none;\n            user-select: none;\n    background-color: transparent;\n    border: 1px solid transparent;\n    padding: 0.4em 0.65em;\n    font-size: 1em;\n    line-height: 1.5;\n    border-radius: 0.25em;\n  }\n.fc .fc-button:hover {\n    text-decoration: none;\n  }\n.fc .fc-button:focus {\n    outline: 0;\n    box-shadow: 0 0 0 0.2rem rgba(44, 62, 80, 0.25);\n  }\n.fc .fc-button:disabled {\n    opacity: 0.65;\n  }\n.fc {\n\n  /* "primary" coloring */\n\n}\n.fc .fc-button-primary {\n    color: #fff;\n    color: var(--fc-button-text-color, #fff);\n    background-color: #2C3E50;\n    background-color: var(--fc-button-bg-color, #2C3E50);\n    border-color: #2C3E50;\n    border-color: var(--fc-button-border-color, #2C3E50);\n  }\n.fc .fc-button-primary:hover {\n    color: #fff;\n    color: var(--fc-button-text-color, #fff);\n    background-color: #1e2b37;\n    background-color: var(--fc-button-hover-bg-color, #1e2b37);\n    border-color: #1a252f;\n    border-color: var(--fc-button-hover-border-color, #1a252f);\n  }\n.fc .fc-button-primary:disabled { /* not DRY */\n    color: #fff;\n    color: var(--fc-button-text-color, #fff);\n    background-color: #2C3E50;\n    background-color: var(--fc-button-bg-color, #2C3E50);\n    border-color: #2C3E50;\n    border-color: var(--fc-button-border-color, #2C3E50); /* overrides :hover */\n  }\n.fc .fc-button-primary:focus {\n    box-shadow: 0 0 0 0.2rem rgba(76, 91, 106, 0.5);\n  }\n.fc .fc-button-primary:not(:disabled):active,\n  .fc .fc-button-primary:not(:disabled).fc-button-active {\n    color: #fff;\n    color: var(--fc-button-text-color, #fff);\n    background-color: #1a252f;\n    background-color: var(--fc-button-active-bg-color, #1a252f);\n    border-color: #151e27;\n    border-color: var(--fc-button-active-border-color, #151e27);\n  }\n.fc .fc-button-primary:not(:disabled):active:focus,\n  .fc .fc-button-primary:not(:disabled).fc-button-active:focus {\n    box-shadow: 0 0 0 0.2rem rgba(76, 91, 106, 0.5);\n  }\n.fc {\n\n  /* icons within buttons */\n\n}\n.fc .fc-button .fc-icon {\n    vertical-align: middle;\n    font-size: 1.5em; /* bump up the size (but don\'t make it bigger than line-height of button, which is 1.5em also) */\n  }\n.fc .fc-button-group {\n    position: relative;\n    display: inline-flex;\n    vertical-align: middle;\n  }\n.fc .fc-button-group > .fc-button {\n    position: relative;\n    flex: 1 1 auto;\n  }\n.fc .fc-button-group > .fc-button:hover {\n    z-index: 1;\n  }\n.fc .fc-button-group > .fc-button:focus,\n  .fc .fc-button-group > .fc-button:active,\n  .fc .fc-button-group > .fc-button.fc-button-active {\n    z-index: 1;\n  }\n.fc-direction-ltr .fc-button-group > .fc-button:not(:first-child) {\n    margin-left: -1px;\n    border-top-left-radius: 0;\n    border-bottom-left-radius: 0;\n  }\n.fc-direction-ltr .fc-button-group > .fc-button:not(:last-child) {\n    border-top-right-radius: 0;\n    border-bottom-right-radius: 0;\n  }\n.fc-direction-rtl .fc-button-group > .fc-button:not(:first-child) {\n    margin-right: -1px;\n    border-top-right-radius: 0;\n    border-bottom-right-radius: 0;\n  }\n.fc-direction-rtl .fc-button-group > .fc-button:not(:last-child) {\n    border-top-left-radius: 0;\n    border-bottom-left-radius: 0;\n  }\n.fc .fc-toolbar {\n    display: flex;\n    justify-content: space-between;\n    align-items: center;\n  }\n.fc .fc-toolbar.fc-header-toolbar {\n    margin-bottom: 1.5em;\n  }\n.fc .fc-toolbar.fc-footer-toolbar {\n    margin-top: 1.5em;\n  }\n.fc .fc-toolbar-title {\n    font-size: 1.75em;\n    margin: 0;\n  }\n.fc-direction-ltr .fc-toolbar > * > :not(:first-child) {\n    margin-left: .75em; /* space between */\n  }\n.fc-direction-rtl .fc-toolbar > * > :not(:first-child) {\n    margin-right: .75em; /* space between */\n  }\n.fc-direction-rtl .fc-toolbar-ltr { /* when the toolbar-chunk positioning system is explicitly left-to-right */\n    flex-direction: row-reverse;\n  }\n.fc .fc-scroller {\n    -webkit-overflow-scrolling: touch;\n    position: relative; /* for abs-positioned elements within */\n  }\n.fc .fc-scroller-liquid {\n    height: 100%;\n  }\n.fc .fc-scroller-liquid-absolute {\n    position: absolute;\n    top: 0;\n    right: 0;\n    left: 0;\n    bottom: 0;\n  }\n.fc .fc-scroller-harness {\n    position: relative;\n    overflow: hidden;\n    direction: ltr;\n      /* hack for chrome computing the scroller\'s right/left wrong for rtl. undone below... */\n      /* TODO: demonstrate in codepen */\n  }\n.fc .fc-scroller-harness-liquid {\n    height: 100%;\n  }\n.fc-direction-rtl .fc-scroller-harness > .fc-scroller { /* undo above hack */\n    direction: rtl;\n  }\n.fc-theme-standard .fc-scrollgrid {\n    border: 1px solid #ddd;\n    border: 1px solid var(--fc-border-color, #ddd); /* bootstrap does this. match */\n  }\n.fc .fc-scrollgrid,\n    .fc .fc-scrollgrid table { /* all tables (self included) */\n      width: 100%; /* because tables don\'t normally do this */\n      table-layout: fixed;\n    }\n.fc .fc-scrollgrid table { /* inner tables */\n      border-top-style: hidden;\n      border-left-style: hidden;\n      border-right-style: hidden;\n    }\n.fc .fc-scrollgrid {\n\n    border-collapse: separate;\n    border-right-width: 0;\n    border-bottom-width: 0;\n\n  }\n.fc .fc-scrollgrid-liquid {\n    height: 100%;\n  }\n.fc .fc-scrollgrid-section { /* a <tr> */\n    height: 1px /* better than 0, for firefox */\n\n  }\n.fc .fc-scrollgrid-section > td {\n      height: 1px; /* needs a height so inner div within grow. better than 0, for firefox */\n    }\n.fc .fc-scrollgrid-section table {\n      height: 1px;\n        /* for most browsers, if a height isn\'t set on the table, can\'t do liquid-height within cells */\n        /* serves as a min-height. harmless */\n    }\n.fc .fc-scrollgrid-section-liquid > td {\n      height: 100%; /* better than `auto`, for firefox */\n    }\n.fc .fc-scrollgrid-section > * {\n    border-top-width: 0;\n    border-left-width: 0;\n  }\n.fc .fc-scrollgrid-section-header > *,\n  .fc .fc-scrollgrid-section-footer > * {\n    border-bottom-width: 0;\n  }\n.fc .fc-scrollgrid-section-body table,\n  .fc .fc-scrollgrid-section-footer table {\n    border-bottom-style: hidden; /* head keeps its bottom border tho */\n  }\n.fc {\n\n  /* stickiness */\n\n}\n.fc .fc-scrollgrid-section-sticky > * {\n    background: #fff;\n    background: var(--fc-page-bg-color, #fff);\n    position: sticky;\n    z-index: 3; /* TODO: var */\n    /* TODO: box-shadow when sticking */\n  }\n.fc .fc-scrollgrid-section-header.fc-scrollgrid-section-sticky > * {\n    top: 0; /* because border-sharing causes a gap at the top */\n      /* TODO: give safari -1. has bug */\n  }\n.fc .fc-scrollgrid-section-footer.fc-scrollgrid-section-sticky > * {\n    bottom: 0; /* known bug: bottom-stickiness doesn\'t work in safari */\n  }\n.fc .fc-scrollgrid-sticky-shim { /* for horizontal scrollbar */\n    height: 1px; /* needs height to create scrollbars */\n    margin-bottom: -1px;\n  }\n.fc-sticky { /* no .fc wrap because used as child of body */\n  position: sticky;\n}\n.fc .fc-view-harness {\n    flex-grow: 1; /* because this harness is WITHIN the .fc\'s flexbox */\n    position: relative;\n  }\n.fc {\n\n  /* when the harness controls the height, make the view liquid */\n\n}\n.fc .fc-view-harness-active > .fc-view {\n    position: absolute;\n    top: 0;\n    right: 0;\n    bottom: 0;\n    left: 0;\n  }\n.fc .fc-col-header-cell-cushion {\n    display: inline-block; /* x-browser for when sticky (when multi-tier header) */\n    padding: 2px 4px;\n  }\n.fc .fc-bg-event,\n  .fc .fc-non-business,\n  .fc .fc-highlight {\n    /* will always have a harness with position:relative/absolute, so absolutely expand */\n    position: absolute;\n    top: 0;\n    left: 0;\n    right: 0;\n    bottom: 0;\n  }\n.fc .fc-non-business {\n    background: rgba(215, 215, 215, 0.3);\n    background: var(--fc-non-business-color, rgba(215, 215, 215, 0.3));\n  }\n.fc .fc-bg-event {\n    background: rgb(143, 223, 130);\n    background: var(--fc-bg-event-color, rgb(143, 223, 130));\n    opacity: 0.3;\n    opacity: var(--fc-bg-event-opacity, 0.3)\n  }\n.fc .fc-bg-event .fc-event-title {\n      margin: .5em;\n      font-size: .85em;\n      font-size: var(--fc-small-font-size, .85em);\n      font-style: italic;\n    }\n.fc .fc-highlight {\n    background: rgba(188, 232, 241, 0.3);\n    background: var(--fc-highlight-color, rgba(188, 232, 241, 0.3));\n  }\n.fc .fc-cell-shaded,\n  .fc .fc-day-disabled {\n    background: rgba(208, 208, 208, 0.3);\n    background: var(--fc-neutral-bg-color, rgba(208, 208, 208, 0.3));\n  }\n/* link resets */\n/* ---------------------------------------------------------------------------------------------------- */\na.fc-event,\na.fc-event:hover {\n  text-decoration: none;\n}\n/* cursor */\n.fc-event[href],\n.fc-event.fc-event-draggable {\n  cursor: pointer;\n}\n/* event text content */\n/* ---------------------------------------------------------------------------------------------------- */\n.fc-event .fc-event-main {\n    position: relative;\n    z-index: 2;\n  }\n/* dragging */\n/* ---------------------------------------------------------------------------------------------------- */\n.fc-event-dragging:not(.fc-event-selected) { /* MOUSE */\n    opacity: 0.75;\n  }\n.fc-event-dragging.fc-event-selected { /* TOUCH */\n    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.3);\n  }\n/* resizing */\n/* ---------------------------------------------------------------------------------------------------- */\n/* (subclasses should hone positioning for touch and non-touch) */\n.fc-event .fc-event-resizer {\n    display: none;\n    position: absolute;\n    z-index: 4;\n  }\n.fc-event:hover, /* MOUSE */\n.fc-event-selected { /* TOUCH */\n\n}\n.fc-event:hover .fc-event-resizer, .fc-event-selected .fc-event-resizer {\n    display: block;\n  }\n.fc-event-selected .fc-event-resizer {\n    border-radius: 4px;\n    border-radius: calc(var(--fc-event-resizer-dot-total-width, 8px) / 2);\n    border-width: 1px;\n    border-width: var(--fc-event-resizer-dot-border-width, 1px);\n    width: 8px;\n    width: var(--fc-event-resizer-dot-total-width, 8px);\n    height: 8px;\n    height: var(--fc-event-resizer-dot-total-width, 8px);\n    border-style: solid;\n    border-color: inherit;\n    background: #fff;\n    background: var(--fc-page-bg-color, #fff)\n\n    /* expand hit area */\n\n  }\n.fc-event-selected .fc-event-resizer:before {\n      content: \'\';\n      position: absolute;\n      top: -20px;\n      left: -20px;\n      right: -20px;\n      bottom: -20px;\n    }\n/* selecting (always TOUCH) */\n/* OR, focused by tab-index */\n/* (TODO: maybe not the best focus-styling for .fc-daygrid-dot-event) */\n/* ---------------------------------------------------------------------------------------------------- */\n.fc-event-selected,\n.fc-event:focus {\n  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2)\n\n  /* expand hit area (subclasses should expand) */\n\n}\n.fc-event-selected:before, .fc-event:focus:before {\n    content: "";\n    position: absolute;\n    z-index: 3;\n    top: 0;\n    left: 0;\n    right: 0;\n    bottom: 0;\n  }\n.fc-event-selected,\n.fc-event:focus {\n\n  /* dimmer effect */\n\n}\n.fc-event-selected:after, .fc-event:focus:after {\n    content: "";\n    background: rgba(0, 0, 0, 0.25);\n    background: var(--fc-event-selected-overlay-color, rgba(0, 0, 0, 0.25));\n    position: absolute;\n    z-index: 1;\n\n    /* assume there\'s a border on all sides. overcome it. */\n    /* sometimes there\'s NOT a border, in which case the dimmer will go over */\n    /* an adjacent border, which looks fine. */\n    top: -1px;\n    left: -1px;\n    right: -1px;\n    bottom: -1px;\n  }\n/*\nA HORIZONTAL event\n*/\n.fc-h-event { /* allowed to be top-level */\n  display: block;\n  border: 1px solid #3788d8;\n  border: 1px solid var(--fc-event-border-color, #3788d8);\n  background-color: #3788d8;\n  background-color: var(--fc-event-bg-color, #3788d8)\n\n}\n.fc-h-event .fc-event-main {\n    color: #fff;\n    color: var(--fc-event-text-color, #fff);\n  }\n.fc-h-event .fc-event-main-frame {\n    display: flex; /* for make fc-event-title-container expand */\n  }\n.fc-h-event .fc-event-time {\n    max-width: 100%; /* clip overflow on this element */\n    overflow: hidden;\n  }\n.fc-h-event .fc-event-title-container { /* serves as a container for the sticky cushion */\n    flex-grow: 1;\n    flex-shrink: 1;\n    min-width: 0; /* important for allowing to shrink all the way */\n  }\n.fc-h-event .fc-event-title {\n    display: inline-block; /* need this to be sticky cross-browser */\n    vertical-align: top; /* for not messing up line-height */\n    left: 0;  /* for sticky */\n    right: 0; /* for sticky */\n    max-width: 100%; /* clip overflow on this element */\n    overflow: hidden;\n  }\n.fc-h-event.fc-event-selected:before {\n    /* expand hit area */\n    top: -10px;\n    bottom: -10px;\n  }\n/* adjust border and border-radius (if there is any) for non-start/end */\n.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start),\n.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-end) {\n  border-top-left-radius: 0;\n  border-bottom-left-radius: 0;\n  border-left-width: 0;\n}\n.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end),\n.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-start) {\n  border-top-right-radius: 0;\n  border-bottom-right-radius: 0;\n  border-right-width: 0;\n}\n/* resizers */\n.fc-h-event:not(.fc-event-selected) .fc-event-resizer {\n  top: 0;\n  bottom: 0;\n  width: 8px;\n  width: var(--fc-event-resizer-thickness, 8px);\n}\n.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start,\n.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end {\n  cursor: w-resize;\n  left: -4px;\n  left: calc(-0.5 * var(--fc-event-resizer-thickness, 8px));\n}\n.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end,\n.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start {\n  cursor: e-resize;\n  right: -4px;\n  right: calc(-0.5 * var(--fc-event-resizer-thickness, 8px));\n}\n/* resizers for TOUCH */\n.fc-h-event.fc-event-selected .fc-event-resizer {\n  top: 50%;\n  margin-top: -4px;\n  margin-top: calc(-0.5 * var(--fc-event-resizer-dot-total-width, 8px));\n}\n.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-start,\n.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-end {\n  left: -4px;\n  left: calc(-0.5 * var(--fc-event-resizer-dot-total-width, 8px));\n}\n.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-end,\n.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-start {\n  right: -4px;\n  right: calc(-0.5 * var(--fc-event-resizer-dot-total-width, 8px));\n}\n.fc .fc-popover {\n    position: absolute;\n    z-index: 9999;\n    box-shadow: 0 2px 6px rgba(0,0,0,.15);\n  }\n.fc .fc-popover-header {\n    display: flex;\n    flex-direction: row;\n    justify-content: space-between;\n    align-items: center;\n    padding: 3px 4px;\n  }\n.fc .fc-popover-title {\n    margin: 0 2px;\n  }\n.fc .fc-popover-close {\n    cursor: pointer;\n    opacity: 0.65;\n    font-size: 1.1em;\n  }\n.fc-theme-standard .fc-popover {\n    border: 1px solid #ddd;\n    border: 1px solid var(--fc-border-color, #ddd);\n    background: #fff;\n    background: var(--fc-page-bg-color, #fff);\n  }\n.fc-theme-standard .fc-popover-header {\n    background: rgba(208, 208, 208, 0.3);\n    background: var(--fc-neutral-bg-color, rgba(208, 208, 208, 0.3));\n  }\n');class je{constructor(r,l){this.context=r,this.internalEventSource=l}remove(){this.context.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})}refetch(){this.context.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})}get id(){return this.internalEventSource.publicId}get url(){return this.internalEventSource.meta.url}get format(){return this.internalEventSource.meta.format}}function de(o){o.parentNode&&o.parentNode.removeChild(o)}function me(o,r){if(o.closest)return o.closest(r);if(!document.documentElement.contains(o))return null;do{if(Ne(o,r))return o;o=o.parentElement||o.parentNode}while(null!==o&&1===o.nodeType);return null}function Ne(o,r){return(o.matches||o.matchesSelector||o.msMatchesSelector).call(o,r)}const Gt=/(top|left|right|bottom|width|height)$/i;function Ft(o,r){for(let l in r)Vt(o,l,r[l])}function Vt(o,r,l){o.style[r]=null==l?"":"number"==typeof l&&Gt.test(r)?`${l}px`:l}function sn(o){var r,l;return null!==(l=null===(r=o.composedPath)||void 0===r?void 0:r.call(o)[0])&&void 0!==l?l:o.target}function nn(o){return o.getRootNode?o.getRootNode():document}let Pt=0;function wt(){return Pt+=1,"fc-dom-"+Pt}function Je(o){o.preventDefault()}function Tt(o,r,l,g){let C=function _t(o,r){return l=>{let g=me(l.target,o);g&&r.call(g,l,g)}}(l,g);return o.addEventListener(r,C),()=>{o.removeEventListener(r,C)}}const Dt=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function pe(o,r){let l=g=>{r(g),Dt.forEach(C=>{o.removeEventListener(C,l)})};Dt.forEach(g=>{o.addEventListener(g,l)})}function Pe(o){return Object.assign({onClick:o},ot(o))}function ot(o){return{tabIndex:0,onKeyDown(r){("Enter"===r.key||" "===r.key)&&(o(r),r.preventDefault())}}}let vt=0;function Be(){return vt+=1,String(vt)}function Ie(){document.body.classList.add("fc-not-allowed")}function Le(){document.body.classList.remove("fc-not-allowed")}function mt(o){o.classList.add("fc-unselectable"),o.addEventListener("selectstart",Je)}function Ct(o){o.classList.remove("fc-unselectable"),o.removeEventListener("selectstart",Je)}function Me(o){o.addEventListener("contextmenu",Je)}function qe(o){o.removeEventListener("contextmenu",Je)}function bt(o,r,l){return l.func?l.func(o,r):function Mt(o,r){return o||r?null==r?-1:null==o?1:"string"==typeof o||"string"==typeof r?String(o).localeCompare(String(r)):o-r:0}(o[l.field],r[l.field])*(l.order||1)}function un(o,r){let l=String(o);return"000".substr(0,r-l.length)+l}function an(o,r,l){return"function"==typeof o?o(...r):"string"==typeof o?r.reduce((g,C,x)=>g.replace("$"+x,C||""),o):l}function dt(o,r){return o-r}function ze(o){return o%1==0}function Ge(o){let r=o.querySelector(".fc-scrollgrid-shrink-frame"),l=o.querySelector(".fc-scrollgrid-shrink-cushion");if(!r)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!l)throw new Error("needs fc-scrollgrid-shrink-cushion className");return o.getBoundingClientRect().width-r.getBoundingClientRect().width+l.getBoundingClientRect().width}const Oe=["sun","mon","tue","wed","thu","fri","sat"];function Ue(o,r){let l=pn(o);return l[2]+=7*r,gn(l)}function be(o,r){let l=pn(o);return l[2]+=r,gn(l)}function at(o,r){let l=pn(o);return l[6]+=r,gn(l)}function At(o,r){return Yt(o,r)/7}function Yt(o,r){return(r.valueOf()-o.valueOf())/864e5}function zn(o,r){return _r(o)===_r(r)?Math.round(Yt(o,r)):null}function Tn(o){return gn([o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()])}function we(o,r,l,g){let C=gn([r,0,1+gt(r,l,g)]),x=Tn(o),ne=Math.round(Yt(C,x));return Math.floor(ne/7)+1}function gt(o,r,l){let g=7+r-l;return-(7+gn([o,0,g]).getUTCDay()-r)%7+g-1}function Bt(o){return[o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),o.getMinutes(),o.getSeconds(),o.getMilliseconds()]}function ln(o){return new Date(o[0],o[1]||0,o[2]??1,o[3]||0,o[4]||0,o[5]||0)}function pn(o){return[o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate(),o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds()]}function gn(o){return 1===o.length&&(o=o.concat([0])),new Date(Date.UTC(...o))}function Jn(o){return!isNaN(o.valueOf())}function _r(o){return 1e3*o.getUTCHours()*60*60+1e3*o.getUTCMinutes()*60+1e3*o.getUTCSeconds()+o.getUTCMilliseconds()}function yn(o,r,l,g){return{instanceId:Be(),defId:o,range:r,forcedStartTzo:l??null,forcedEndTzo:g??null}}const{hasOwnProperty:$r}=Object.prototype;function ti(o,r){let l={};if(r)for(let g in r){let C=[];for(let x=o.length-1;x>=0;x-=1){let ne=o[x][g];if("object"==typeof ne&&ne)C.unshift(ne);else if(void 0!==ne){l[g]=ne;break}}C.length&&(l[g]=ti(C))}for(let g=o.length-1;g>=0;g-=1){let C=o[g];for(let x in C)x in l||(l[x]=C[x])}return l}function Xr(o,r){let l={};for(let g in o)r(o[g],g)&&(l[g]=o[g]);return l}function tr(o,r){let l={};for(let g in o)l[g]=r(o[g],g);return l}function Cr(o){let r={};for(let l of o)r[l]=!0;return r}function pr(o){let r=[];for(let l in o)r.push(o[l]);return r}function rr(o,r){if(o===r)return!0;for(let l in o)if($r.call(o,l)&&!(l in r))return!1;for(let l in r)if($r.call(r,l)&&o[l]!==r[l])return!1;return!0}function Nr(o,r){let l=[];for(let g in o)$r.call(o,g)&&(g in r||l.push(g));for(let g in r)$r.call(r,g)&&o[g]!==r[g]&&l.push(g);return l}function zr(o,r,l={}){if(o===r)return!0;for(let g in r)if(!(g in o)||!Xn(o[g],r[g],l[g]))return!1;for(let g in o)if(!(g in r))return!1;return!0}function Xn(o,r,l){return o===r||!0===l||!!l&&l(o,r)}function cr(o,r,l){let{dateEnv:g,pluginHooks:C,options:x}=l,{defs:ne,instances:Ae}=o;Ae=Xr(Ae,We=>!ne[We.defId].recurringDef);for(let We in ne){let rt=ne[We];if(rt.recurringDef){let{duration:St}=rt.recurringDef;St||(St=rt.allDay?x.defaultAllDayEventDuration:x.defaultTimedEventDuration);let jt=di(rt,St,r,g,C.recurringTypes);for(let Xt of jt){let Jt=yn(We,{start:Xt,end:g.add(Xt,St)});Ae[Jt.instanceId]=Jt}}}return{defs:ne,instances:Ae}}function di(o,r,l,g,C){let ne=C[o.recurringDef.typeId].expand(o.recurringDef.typeData,{start:g.subtract(l.start,r),end:l.end},g);return o.allDay&&(ne=ne.map(Tn)),ne}const Kr=["years","months","days","milliseconds"],ur=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function bn(o,r){return"string"==typeof o?function ir(o){let r=ur.exec(o);if(r){let l=r[1]?-1:1;return{years:0,months:0,days:l*(r[2]?parseInt(r[2],10):0),milliseconds:l*(60*(r[3]?parseInt(r[3],10):0)*60*1e3+60*(r[4]?parseInt(r[4],10):0)*1e3+1e3*(r[5]?parseInt(r[5],10):0)+(r[6]?parseInt(r[6],10):0))}}return null}(o):"object"==typeof o&&o?li(o):"number"==typeof o?li({[r||"milliseconds"]:o}):null}function li(o){let r={years:o.years||o.year||0,months:o.months||o.month||0,days:o.days||o.day||0,milliseconds:60*(o.hours||o.hour||0)*60*1e3+60*(o.minutes||o.minute||0)*1e3+1e3*(o.seconds||o.second||0)+(o.milliseconds||o.millisecond||o.ms||0)},l=o.weeks||o.week;return l&&(r.days+=7*l,r.specifiedWeeks=!0),r}function ni(o,r){return{years:o.years+r.years,months:o.months+r.months,days:o.days+r.days,milliseconds:o.milliseconds+r.milliseconds}}function bi(o,r){return{years:o.years*r,months:o.months*r,days:o.days*r,milliseconds:o.milliseconds*r}}function _i(o){return ve(o)/864e5}function ve(o){return 31536e6*o.years+2592e6*o.months+864e5*o.days+o.milliseconds}function Te(o,r){let l=null;for(let g=0;g<Kr.length;g+=1){let C=Kr[g];if(r[C]){let x=o[C]/r[C];if(!ze(x)||null!==l&&l!==x)return null;l=x}else if(o[C])return null}return l}function tt(o){let r=o.milliseconds;if(r){if(r%1e3!=0)return{unit:"millisecond",value:r};if(r%6e4!=0)return{unit:"second",value:r/1e3};if(r%36e5!=0)return{unit:"minute",value:r/6e4};if(r)return{unit:"hour",value:r/36e5}}return o.days?o.specifiedWeeks&&o.days%7==0?{unit:"week",value:o.days/7}:{unit:"day",value:o.days}:o.months?{unit:"month",value:o.months}:o.years?{unit:"year",value:o.years}:{unit:"millisecond",value:0}}function Ot(o,r,l=!1){let g=o.toISOString();return g=g.replace(".000",""),l&&(g=g.replace("T00:00:00Z","")),g.length>10&&(null==r?g=g.replace("Z",""):0!==r&&(g=g.replace("Z",Bn(r,!0)))),g}function Qt(o){return o.toISOString().replace(/T.*$/,"")}function hn(o){return un(o.getUTCHours(),2)+":"+un(o.getUTCMinutes(),2)+":"+un(o.getUTCSeconds(),2)}function Bn(o,r=!1){let l=o<0?"-":"+",g=Math.abs(o),C=Math.floor(g/60),x=Math.round(g%60);return r?`${l+un(C,2)}:${un(x,2)}`:`GMT${l}${C}${x?`:${un(x,2)}`:""}`}function sr(o,r,l){if(o===r)return!0;let C,g=o.length;if(g!==r.length)return!1;for(C=0;C<g;C+=1)if(!(l?l(o[C],r[C]):o[C]===r[C]))return!1;return!0}function Mn(o,r,l){let g,C;return function(...x){if(g){if(!sr(g,x)){l&&l(C);let ne=o.apply(this,x);(!r||!r(ne,C))&&(C=ne)}}else C=o.apply(this,x);return g=x,C}}function Ir(o,r,l){let g,C;return x=>{if(g){if(!rr(g,x)){l&&l(C);let ne=o.call(this,x);(!r||!r(ne,C))&&(C=ne)}}else C=o.call(this,x);return g=x,C}}const Ei={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},ci={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},ui=/\s*([ap])\.?m\.?/i,eo=/,/g,Di=/\s+/g,Ls=/\u200e/g,Or=/UTC|GMT/;class Gi{constructor(r){let l={},g={},C=0;for(let x in r)x in Ei?(g[x]=r[x],C=Math.max(Ei[x],C)):(l[x]=r[x],x in ci&&(C=Math.max(ci[x],C)));this.standardDateProps=l,this.extendedSettings=g,this.severity=C,this.buildFormattingFunc=Mn(Vi)}format(r,l){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,l)(r)}formatRange(r,l,g,C){let{standardDateProps:x,extendedSettings:ne}=this,Ae=function Ji(o,r,l){return l.getMarkerYear(o)!==l.getMarkerYear(r)?5:l.getMarkerMonth(o)!==l.getMarkerMonth(r)?4:l.getMarkerDay(o)!==l.getMarkerDay(r)?2:_r(o)!==_r(r)?1:0}(r.marker,l.marker,g.calendarSystem);if(!Ae)return this.format(r,g);let We=Ae;We>1&&("numeric"===x.year||"2-digit"===x.year)&&("numeric"===x.month||"2-digit"===x.month)&&("numeric"===x.day||"2-digit"===x.day)&&(We=1);let rt=this.format(r,g),St=this.format(l,g);if(rt===St)return rt;let jt=function qi(o,r){let l={};for(let g in o)(!(g in ci)||ci[g]<=r)&&(l[g]=o[g]);return l}(x,We),Xt=Vi(jt,ne,g),Jt=Xt(r),Rn=Xt(l),Qn=function mo(o,r,l,g){let C=0;for(;C<o.length;){let x=o.indexOf(r,C);if(-1===x)break;let ne=o.substr(0,x);C=x+r.length;let Ae=o.substr(C),We=0;for(;We<l.length;){let rt=l.indexOf(g,We);if(-1===rt)break;let St=l.substr(0,rt);We=rt+g.length;let jt=l.substr(We);if(ne===St&&Ae===jt)return{before:ne,after:Ae}}}return null}(rt,Jt,St,Rn),Yn=ne.separator||C||g.defaultSeparator||"";return Qn?Qn.before+Jt+Yn+Rn+Qn.after:rt+Yn+St}getLargestUnit(){switch(this.severity){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}}}function Vi(o,r,l){let g=Object.keys(o).length;return 1===g&&"short"===o.timeZoneName?C=>Bn(C.timeZoneOffset):0===g&&r.week?C=>function Zi(o,r,l,g,C){let x=[];return"long"===C?x.push(l):("short"===C||"narrow"===C)&&x.push(r),("long"===C||"short"===C)&&x.push(" "),x.push(g.simpleNumberFormat.format(o)),"rtl"===g.options.direction&&x.reverse(),x.join("")}(l.computeWeekNumber(C.marker),l.weekText,l.weekTextLong,l.locale,r.week):function Ri(o,r,l){o=Object.assign({},o),r=Object.assign({},r),function Qi(o,r){o.timeZoneName&&(o.hour||(o.hour="2-digit"),o.minute||(o.minute="2-digit")),"long"===o.timeZoneName&&(o.timeZoneName="short"),r.omitZeroMinute&&(o.second||o.millisecond)&&delete r.omitZeroMinute}(o,r),o.timeZone="UTC";let C,g=new Intl.DateTimeFormat(l.locale.codes,o);if(r.omitZeroMinute){let x=Object.assign({},o);delete x.minute,C=new Intl.DateTimeFormat(l.locale.codes,x)}return x=>{let Ae,{marker:ne}=x;return Ae=C&&!ne.getUTCMinutes()?C:g,function Xi(o,r,l,g,C){return o=o.replace(Ls,""),"short"===l.timeZoneName&&(o=function fs(o,r){let l=!1;return o=o.replace(Or,()=>(l=!0,r)),l||(o+=` ${r}`),o}(o,"UTC"===C.timeZone||null==r.timeZoneOffset?"UTC":Bn(r.timeZoneOffset))),g.omitCommas&&(o=o.replace(eo,"").trim()),g.omitZeroMinute&&(o=o.replace(":00","")),!1===g.meridiem?o=o.replace(ui,"").trim():"narrow"===g.meridiem?o=o.replace(ui,(x,ne)=>ne.toLocaleLowerCase()):"short"===g.meridiem?o=o.replace(ui,(x,ne)=>`${ne.toLocaleLowerCase()}m`):"lowercase"===g.meridiem&&(o=o.replace(ui,x=>x.toLocaleLowerCase())),(o=o.replace(Di," ")).trim()}(Ae.format(ne),x,o,r,l)}}(o,r,l)}function Zr(o,r){let l=r.markerToArray(o.marker);return{marker:o.marker,timeZoneOffset:o.timeZoneOffset,array:l,year:l[0],month:l[1],day:l[2],hour:l[3],minute:l[4],second:l[5],millisecond:l[6]}}function Ai(o,r,l,g){let C=Zr(o,l.calendarSystem);return{date:C,start:C,end:r?Zr(r,l.calendarSystem):null,timeZone:l.timeZone,localeCodes:l.locale.codes,defaultSeparator:g||l.defaultSeparator}}class ps{constructor(r){this.cmdStr=r}format(r,l,g){return l.cmdFormatter(this.cmdStr,Ai(r,null,l,g))}formatRange(r,l,g,C){return g.cmdFormatter(this.cmdStr,Ai(r,l,g,C))}}class Ds{constructor(r){this.func=r}format(r,l,g){return this.func(Ai(r,null,l,g))}formatRange(r,l,g,C){return this.func(Ai(r,l,g,C))}}function Mr(o){return"object"==typeof o&&o?new Gi(o):"string"==typeof o?new ps(o):"function"==typeof o?new Ds(o):null}const _o={navLinkDayClick:ht,navLinkWeekClick:ht,duration:bn,bootstrapFontAwesome:ht,buttonIcons:ht,customButtons:ht,defaultAllDayEventDuration:bn,defaultTimedEventDuration:bn,nextDayThreshold:bn,scrollTime:bn,scrollTimeReset:Boolean,slotMinTime:bn,slotMaxTime:bn,dayPopoverFormat:Mr,slotDuration:bn,snapDuration:bn,headerToolbar:ht,footerToolbar:ht,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:Mr,dayHeaderClassNames:ht,dayHeaderContent:ht,dayHeaderDidMount:ht,dayHeaderWillUnmount:ht,dayCellClassNames:ht,dayCellContent:ht,dayCellDidMount:ht,dayCellWillUnmount:ht,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:ht,weekNumbers:Boolean,weekNumberClassNames:ht,weekNumberContent:ht,weekNumberDidMount:ht,weekNumberWillUnmount:ht,editable:Boolean,viewClassNames:ht,viewDidMount:ht,viewWillUnmount:ht,nowIndicator:Boolean,nowIndicatorClassNames:ht,nowIndicatorContent:ht,nowIndicatorDidMount:ht,nowIndicatorWillUnmount:ht,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:ht,locale:ht,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:ht,eventOrder:function xe(o){let g,C,r=[],l=[];for("string"==typeof o?l=o.split(/\s*,\s*/):"function"==typeof o?l=[o]:Array.isArray(o)&&(l=o),g=0;g<l.length;g+=1)C=l[g],"string"==typeof C?r.push("-"===C.charAt(0)?{field:C.substring(1),order:-1}:{field:C,order:1}):"function"==typeof C&&r.push({func:C});return r},eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:ht,contentHeight:ht,direction:String,weekNumberFormat:Mr,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:ht,initialDate:ht,now:ht,eventDataTransform:ht,stickyHeaderDates:ht,stickyFooterScrollbar:ht,viewHeight:ht,defaultAllDay:Boolean,eventSourceFailure:ht,eventSourceSuccess:ht,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:ht,eventConstraint:ht,eventAllow:ht,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:ht,eventContent:ht,eventDidMount:ht,eventWillUnmount:ht,selectConstraint:ht,selectOverlap:ht,selectAllow:ht,droppable:Boolean,unselectCancel:String,slotLabelFormat:ht,slotLaneClassNames:ht,slotLaneContent:ht,slotLaneDidMount:ht,slotLaneWillUnmount:ht,slotLabelClassNames:ht,slotLabelContent:ht,slotLabelDidMount:ht,slotLabelWillUnmount:ht,dayMaxEvents:ht,dayMaxEventRows:ht,dayMinWidth:Number,slotLabelInterval:bn,allDayText:String,allDayClassNames:ht,allDayContent:ht,allDayDidMount:ht,allDayWillUnmount:ht,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:Mr,rerenderDelay:Number,moreLinkText:ht,moreLinkHint:ht,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:ht,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:bn,hiddenDays:ht,monthMode:Boolean,fixedWeekCount:Boolean,validRange:ht,visibleRange:ht,titleFormat:ht,eventInteractive:Boolean,noEventsText:String,viewHint:ht,navLinkHint:ht,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:ht,moreLinkClassNames:ht,moreLinkContent:ht,moreLinkDidMount:ht,moreLinkWillUnmount:ht},or={eventDisplay:"auto",defaultRangeSeparator:" - ",titleRangeSeparator:" \u2013 ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",dayHeaders:!0,initialView:"",aspectRatio:1.35,headerToolbar:{start:"title",center:"",end:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"local",editable:!1,nowIndicator:!1,scrollTime:"06:00:00",scrollTimeReset:!0,slotMinTime:"00:00:00",slotMaxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",locales:[],locale:"",themeSystem:"standard",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5,expandRows:!1,navLinks:!1,selectable:!1,eventMinHeight:15,eventMinWidth:30,eventShortHeight:30},De={datesSet:ht,eventsSet:ht,eventAdd:ht,eventChange:ht,eventRemove:ht,windowResize:ht,eventClick:ht,eventMouseEnter:ht,eventMouseLeave:ht,select:ht,unselect:ht,loading:ht,_unmount:ht,_beforeprint:ht,_afterprint:ht,_noEventDrop:ht,_noEventResize:ht,_resize:ht,_scrollRequest:ht},st={buttonText:ht,buttonHints:ht,views:ht,plugins:ht,initialEvents:ht,events:ht,eventSources:ht},Ve={headerToolbar:et,footerToolbar:et,buttonText:et,buttonHints:et,buttonIcons:et,dateIncrement:et};function et(o,r){return"object"==typeof o&&"object"==typeof r&&o&&r?rr(o,r):o===r}const Lt={type:String,component:ht,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:ht,usesMinMaxTime:Boolean,classNames:ht,content:ht,didMount:ht,willUnmount:ht};function Ht(o){return ti(o,Ve)}function tn(o,r){let l={},g={};for(let C in r)C in o&&(l[C]=r[C](o[C]));for(let C in o)C in r||(g[C]=o[C]);return{refined:l,extra:g}}function ht(o){return o}function In(o,r,l,g){let C={defs:{},instances:{}},x=se(l);for(let ne of o){let Ae=Ns(ne,r,l,g,x);Ae&&$n(Ae,C)}return C}function $n(o,r={defs:{},instances:{}}){return r.defs[o.def.defId]=o.def,o.instance&&(r.instances[o.instance.instanceId]=o.instance),r}function Kn(o,r){let l=o.instances[r];if(l){let g=o.defs[l.defId],C=Dn(o,x=>function qn(o,r){return Boolean(o.groupId&&o.groupId===r.groupId)}(g,x));return C.defs[g.defId]=g,C.instances[l.instanceId]=l,C}return{defs:{},instances:{}}}function gr(){return{defs:{},instances:{}}}function Pr(o,r){return{defs:Object.assign(Object.assign({},o.defs),r.defs),instances:Object.assign(Object.assign({},o.instances),r.instances)}}function Dn(o,r){let l=Xr(o.defs,r),g=Xr(o.instances,C=>l[C.defId]);return{defs:l,instances:g}}function gs(o){return Array.isArray(o)?o:"string"==typeof o?o.split(/\s+/):[]}const wi={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:ht,overlap:ht,allow:ht,className:gs,classNames:gs,color:String,backgroundColor:String,borderColor:String,textColor:String},Li={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function Ur(o,r){let l=function ka(o,r){return Array.isArray(o)?In(o,null,r,!0):"object"==typeof o&&o?In([o],null,r,!0):null!=o?String(o):null}(o.constraint,r);return{display:o.display||null,startEditable:null!=o.startEditable?o.startEditable:o.editable,durationEditable:null!=o.durationEditable?o.durationEditable:o.editable,constraints:null!=l?[l]:[],overlap:null!=o.overlap?o.overlap:null,allows:null!=o.allow?[o.allow]:[],backgroundColor:o.backgroundColor||o.color||"",borderColor:o.borderColor||o.color||"",textColor:o.textColor||"",classNames:(o.className||[]).concat(o.classNames||[])}}function ss(o){return o.reduce(Go,Li)}function Go(o,r){return{display:null!=r.display?r.display:o.display,startEditable:null!=r.startEditable?r.startEditable:o.startEditable,durationEditable:null!=r.durationEditable?r.durationEditable:o.durationEditable,constraints:o.constraints.concat(r.constraints),overlap:"boolean"==typeof r.overlap?r.overlap:o.overlap,allows:o.allows.concat(r.allows),backgroundColor:r.backgroundColor||o.backgroundColor,borderColor:r.borderColor||o.borderColor,textColor:r.textColor||o.textColor,classNames:o.classNames.concat(r.classNames)}}const Kt={id:String,groupId:String,title:String,url:String,interactive:Boolean},Wn={start:ht,end:ht,date:ht,allDay:Boolean},vo=Object.assign(Object.assign(Object.assign({},Kt),Wn),{extendedProps:ht});function Ns(o,r,l,g,C=se(l)){let{refined:x,extra:ne}=Br(o,l,C),Ae=function Ee(o,r){let l=null;return o&&(l=o.defaultAllDay),null==l&&(l=r.options.defaultAllDay),l}(r,l),We=function lr(o,r,l,g){for(let C=0;C<g.length;C+=1){let x=g[C].parse(o,l);if(x){let{allDay:ne}=o;return null==ne&&(ne=r,null==ne&&(ne=x.allDayGuess,null==ne&&(ne=!1))),{allDay:ne,duration:x.duration,typeData:x.typeData,typeId:C}}}return null}(x,Ae,l.dateEnv,l.pluginHooks.recurringTypes);if(We){let St=q(x,ne,r?r.sourceId:"",We.allDay,Boolean(We.duration),l);return St.recurringDef={typeId:We.typeId,typeData:We.typeData,duration:We.duration},{def:St,instance:null}}let rt=function j(o,r,l,g){let x,We,{allDay:C}=o,ne=null,Ae=!1,rt=null;if(x=l.dateEnv.createMarkerMeta(null!=o.start?o.start:o.date),x)ne=x.marker;else if(!g)return null;return null!=o.end&&(We=l.dateEnv.createMarkerMeta(o.end)),null==C&&(C=null!=r?r:(!x||x.isTimeUnspecified)&&(!We||We.isTimeUnspecified)),C&&ne&&(ne=Tn(ne)),We&&(rt=We.marker,C&&(rt=Tn(rt)),ne&&rt<=ne&&(rt=null)),rt?Ae=!0:g||(Ae=l.options.forceEventDuration||!1,rt=l.dateEnv.add(ne,C?l.options.defaultAllDayEventDuration:l.options.defaultTimedEventDuration)),{allDay:C,hasEnd:Ae,range:{start:ne,end:rt},forcedStartTzo:x?x.forcedTzo:null,forcedEndTzo:We?We.forcedTzo:null}}(x,Ae,l,g);if(rt){let St=q(x,ne,r?r.sourceId:"",rt.allDay,rt.hasEnd,l);return{def:St,instance:yn(St.defId,rt.range,rt.forcedStartTzo,rt.forcedEndTzo)}}return null}function Br(o,r,l=se(r)){return tn(o,l)}function se(o){return Object.assign(Object.assign(Object.assign({},wi),vo),o.pluginHooks.eventRefiners)}function q(o,r,l,g,C,x){let ne={title:o.title||"",groupId:o.groupId||"",publicId:o.id||"",url:o.url||"",recurringDef:null,defId:Be(),sourceId:l,allDay:g,hasEnd:C,interactive:o.interactive,ui:Ur(o,x),extendedProps:Object.assign(Object.assign({},o.extendedProps||{}),r)};for(let Ae of x.pluginHooks.eventDefMemberAdders)A(ne,Ae(o));return Object.freeze(ne.ui.classNames),Object.freeze(ne.extendedProps),ne}function xt(o){let r=Math.floor(Yt(o.start,o.end))||1,l=Tn(o.start);return{start:l,end:be(l,r)}}function _n(o,r=bn(0)){let l=null,g=null;if(o.end){g=Tn(o.end);let C=o.end.valueOf()-g.valueOf();C&&C>=ve(r)&&(g=be(g,1))}return o.start&&(l=Tn(o.start),g&&g<=l&&(g=be(l,1))),{start:l,end:g}}function Yr(o){let r=_n(o);return Yt(r.start,r.end)>1}function Ii(o,r,l,g){return"year"===g?bn(l.diffWholeYears(o,r),"year"):"month"===g?bn(l.diffWholeMonths(o,r),"month"):function On(o,r){let l=Tn(o),g=Tn(r);return{years:0,months:0,days:Math.round(Yt(l,g)),milliseconds:r.valueOf()-g.valueOf()-(o.valueOf()-l.valueOf())}}(o,r)}function Rr(o,r){let C,x,l=[],{start:g}=r;for(o.sort(Ci),C=0;C<o.length;C+=1)x=o[C],x.start>g&&l.push({start:g,end:x.start}),x.end>g&&(g=x.end);return g<r.end&&l.push({start:g,end:r.end}),l}function Ci(o,r){return o.start.valueOf()-r.start.valueOf()}function os(o,r){let{start:l,end:g}=o,C=null;return null!==r.start&&(l=null===l?r.start:new Date(Math.max(l.valueOf(),r.start.valueOf()))),null!=r.end&&(g=null===g?r.end:new Date(Math.min(g.valueOf(),r.end.valueOf()))),(null===l||null===g||l<g)&&(C={start:l,end:g}),C}function xi(o,r){return(null===o.end||null===r.start||o.end>r.start)&&(null===o.start||null===r.end||o.start<r.end)}function xs(o,r){return(null===o.start||null!==r.start&&r.start>=o.start)&&(null===o.end||null!==r.end&&r.end<=o.end)}function ts(o,r){return(null===o.start||r>=o.start)&&(null===o.end||r<o.end)}function Cs(o,r,l,g){let C={},x={},ne={},Ae=[],We=[],rt=as(o.defs,r);for(let St in o.defs){let jt=o.defs[St];"inverse-background"===rt[jt.defId].display&&(jt.groupId?(C[jt.groupId]=[],ne[jt.groupId]||(ne[jt.groupId]=jt)):x[St]=[])}for(let St in o.instances){let jt=o.instances[St],Xt=o.defs[jt.defId],Jt=rt[Xt.defId],Rn=jt.range,Qn=!Xt.allDay&&g?_n(Rn,g):Rn,Yn=os(Qn,l);Yn&&("inverse-background"===Jt.display?Xt.groupId?C[Xt.groupId].push(Yn):x[jt.defId].push(Yn):"none"!==Jt.display&&("background"===Jt.display?Ae:We).push({def:Xt,ui:Jt,instance:jt,range:Yn,isStart:Qn.start&&Qn.start.valueOf()===Yn.start.valueOf(),isEnd:Qn.end&&Qn.end.valueOf()===Yn.end.valueOf()}))}for(let St in C){let Xt=Rr(C[St],l);for(let Jt of Xt){let Rn=ne[St];Ae.push({def:Rn,ui:rt[Rn.defId],instance:null,range:Jt,isStart:!1,isEnd:!1})}}for(let St in x){let Xt=Rr(x[St],l);for(let Jt of Xt)Ae.push({def:o.defs[St],ui:rt[St],instance:null,range:Jt,isStart:!1,isEnd:!1})}return{bg:Ae,fg:We}}function Ho(o){return"background"===o.ui.display||"inverse-background"===o.ui.display}function to(o,r){o.fcSeg=r}function Fs(o){return o.fcSeg||o.parentNode.fcSeg||null}function as(o,r){return tr(o,l=>Ss(l,r))}function Ss(o,r){let l=[];return r[""]&&l.push(r[""]),r[o.defId]&&l.push(r[o.defId]),l.push(o.ui),ss(l)}function $o(o,r){let l=o.map(jo);return l.sort((g,C)=>function Re(o,r,l){let g,C;for(g=0;g<l.length;g+=1)if(C=bt(o,r,l[g]),C)return C;return 0}(g,C,r)),l.map(g=>g._seg)}function jo(o){let{eventRange:r}=o,l=r.def,g=r.instance?r.instance.range:r.range,C=g.start?g.start.valueOf():0,x=g.end?g.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},l.extendedProps),l),{id:l.publicId,start:C,end:x,duration:x-C,allDay:Number(l.allDay),_seg:o})}function yo(o,r){let{pluginHooks:l}=r,g=l.isDraggableTransformers,{def:C,ui:x}=o.eventRange,ne=x.startEditable;for(let Ae of g)ne=Ae(ne,C,x,r);return ne}function Eo(o,r){return o.isStart&&o.eventRange.ui.durationEditable&&r.options.eventResizableFromStart}function V(o,r,l,g,C,x,ne){let{dateEnv:Ae,options:We}=l,{displayEventTime:rt,displayEventEnd:St}=We,jt=o.eventRange.def,Xt=o.eventRange.instance;null==rt&&(rt=!1!==g),null==St&&(St=!1!==C);let Jt=Xt.range.start,Rn=Xt.range.end,Qn=x||o.start||o.eventRange.range.start,Yn=ne||o.end||o.eventRange.range.end,hr=Tn(Jt).valueOf()===Tn(Qn).valueOf(),mi=Tn(at(Rn,-1)).valueOf()===Tn(at(Yn,-1)).valueOf();return rt&&!jt.allDay&&(hr||mi)?(Qn=hr?Jt:Qn,Yn=mi?Rn:Yn,St&&jt.hasEnd?Ae.formatRange(Qn,Yn,r,{forcedStartTzo:x?null:Xt.forcedStartTzo,forcedEndTzo:ne?null:Xt.forcedEndTzo}):Ae.format(Qn,r,{forcedTzo:x?null:Xt.forcedStartTzo})):""}function he(o,r,l){let g=o.eventRange.range;return{isPast:g.end<(l||r.start),isFuture:g.start>=(l||r.end),isToday:r&&ts(r,g.start)}}function ge(o){return o.instance?o.instance.instanceId:`${o.def.defId}:${o.range.start.toISOString()}`}function nt(o,r){let{def:l,instance:g}=o.eventRange,{url:C}=l;if(C)return{href:C};let{emitter:x,options:ne}=r,{eventInteractive:Ae}=ne;return null==Ae&&(Ae=l.interactive,null==Ae&&(Ae=Boolean(x.hasHandlers("eventClick")))),Ae?ot(We=>{x.trigger("eventClick",{el:We.target,event:new Qr(r,l,g),jsEvent:We,view:r.viewApi})}):{}}const Nt={start:ht,end:ht,allDay:Boolean};function vr(o,r){return function As(o,r){return(null===o.start?null:o.start.valueOf())===(null===r.start?null:r.start.valueOf())&&(null===o.end?null:o.end.valueOf())===(null===r.end?null:r.end.valueOf())}(o.range,r.range)&&o.allDay===r.allDay&&function ar(o,r){for(let l in r)if("range"!==l&&"allDay"!==l&&o[l]!==r[l])return!1;for(let l in o)if(!(l in r))return!1;return!0}(o,r)}function er(o,r,l){return Object.assign(Object.assign({},Wr(o,r,l)),{timeZone:r.timeZone})}function Wr(o,r,l){return{start:r.toDate(o.start),end:r.toDate(o.end),startStr:r.formatIso(o.start,{omitTime:l}),endStr:r.formatIso(o.end,{omitTime:l})}}function Gr(o,r,l){l.emitter.trigger("select",Object.assign(Object.assign({},vi(o,l)),{jsEvent:r?r.origEvent:null,view:l.viewApi||l.calendarApi.view}))}function vi(o,r){let l={};for(let g of r.pluginHooks.dateSpanTransforms)A(l,g(o,r));return A(l,function Dr(o,r){return Object.assign(Object.assign({},Wr(o.range,r,o.allDay)),{allDay:o.allDay})}(o,r.dateEnv)),l}function Si(o,r,l){let{dateEnv:g,options:C}=l,x=r;return o?(x=Tn(x),x=g.add(x,C.defaultAllDayEventDuration)):x=g.add(x,C.defaultTimedEventDuration),x}function Hi(o,r,l,g){let C=as(o.defs,r),x={defs:{},instances:{}};for(let ne in o.defs)x.defs[ne]=Oi(o.defs[ne],C[ne],l,g);for(let ne in o.instances){let Ae=o.instances[ne];x.instances[ne]=ls(Ae,x.defs[Ae.defId],C[Ae.defId],l,g)}return x}function Oi(o,r,l,g){let C=l.standardProps||{};null==C.hasEnd&&r.durationEditable&&(l.startDelta||l.endDelta)&&(C.hasEnd=!0);let x=Object.assign(Object.assign(Object.assign({},o),C),{ui:Object.assign(Object.assign({},o.ui),C.ui)});l.extendedProps&&(x.extendedProps=Object.assign(Object.assign({},x.extendedProps),l.extendedProps));for(let ne of g.pluginHooks.eventDefMutationAppliers)ne(x,l,g);return!x.hasEnd&&g.options.forceEventDuration&&(x.hasEnd=!0),x}function ls(o,r,l,g,C){let{dateEnv:x}=C,ne=g.standardProps&&!0===g.standardProps.allDay,Ae=g.standardProps&&!1===g.standardProps.hasEnd,We=Object.assign({},o);return ne&&(We.range=xt(We.range)),g.datesDelta&&l.startEditable&&(We.range={start:x.add(We.range.start,g.datesDelta),end:x.add(We.range.end,g.datesDelta)}),g.startDelta&&l.durationEditable&&(We.range={start:x.add(We.range.start,g.startDelta),end:We.range.end}),g.endDelta&&l.durationEditable&&(We.range={start:We.range.start,end:x.add(We.range.end,g.endDelta)}),Ae&&(We.range={start:We.range.start,end:Si(r.allDay,We.range.start,C)}),r.allDay&&(We.range={start:Tn(We.range.start),end:Tn(We.range.end)}),We.range.end<We.range.start&&(We.range.end=Si(r.allDay,We.range.start,C)),We}class Wo{constructor(r,l,g){this.type=r,this.getCurrentData=l,this.dateEnv=g}get calendar(){return this.getCurrentData().calendarApi}get title(){return this.getCurrentData().viewTitle}get activeStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)}get activeEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)}get currentStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)}get currentEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)}getOption(r){return this.getCurrentData().options[r]}}const Ua={id:String,defaultAllDay:Boolean,url:String,format:String,events:ht,eventDataTransform:ht,success:ht,failure:ht};function no(o,r,l=Do(r)){let g;if("string"==typeof o?g={url:o}:"function"==typeof o||Array.isArray(o)?g={events:o}:"object"==typeof o&&o&&(g=o),g){let{refined:C,extra:x}=tn(g,l),ne=function al(o,r){let l=r.pluginHooks.eventSourceDefs;for(let g=l.length-1;g>=0;g-=1){let x=l[g].parseMeta(o);if(x)return{sourceDefId:g,meta:x}}return null}(C,r);if(ne)return{_raw:o,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:C.defaultAllDay,eventDataTransform:C.eventDataTransform,success:C.success,failure:C.failure,publicId:C.id||"",sourceId:Be(),sourceDefId:ne.sourceDefId,meta:ne.meta,ui:Ur(C,r),extendedProps:x}}return null}function Do(o){return Object.assign(Object.assign(Object.assign({},wi),Ua),o.pluginHooks.eventSourceRefiners)}function zo(o,r){return"function"==typeof o&&(o=o()),null==o?r.createNowMarker():r.createMarker(o)}class bs{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(r){return this.currentDataManager.dispatch(r)}get view(){return this.getCurrentData().viewApi}batchRendering(r){r()}updateSize(){this.trigger("_resize",!0)}setOption(r,l){this.dispatch({type:"SET_OPTION",optionName:r,rawOptionValue:l})}getOption(r){return this.currentDataManager.currentCalendarOptionsInput[r]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(r,l){let{currentDataManager:g}=this;g.currentCalendarOptionsRefiners[r]?g.emitter.on(r,l):console.warn(`Unknown listener name '${r}'`)}off(r,l){this.currentDataManager.emitter.off(r,l)}trigger(r,...l){this.currentDataManager.emitter.trigger(r,...l)}changeView(r,l){this.batchRendering(()=>{if(this.unselect(),l)if(l.start&&l.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:r}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:l});else{let{dateEnv:g}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:r,dateMarker:g.createMarker(l)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:r})})}zoomTo(r,l){let C;C=this.getCurrentData().viewSpecs[l=l||"day"]||this.getUnitViewSpec(l),this.unselect(),this.dispatch(C?{type:"CHANGE_VIEW_TYPE",viewType:C.type,dateMarker:r}:{type:"CHANGE_DATE",dateMarker:r})}getUnitViewSpec(r){let x,ne,{viewSpecs:l,toolbarConfig:g}=this.getCurrentData(),C=[].concat(g.header?g.header.viewsWithButtons:[],g.footer?g.footer.viewsWithButtons:[]);for(let Ae in l)C.push(Ae);for(x=0;x<C.length;x+=1)if(ne=l[C[x]],ne&&ne.singleUnit===r)return ne;return null}prev(){this.unselect(),this.dispatch({type:"PREV"})}next(){this.unselect(),this.dispatch({type:"NEXT"})}prevYear(){let r=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:r.dateEnv.addYears(r.currentDate,-1)})}nextYear(){let r=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:r.dateEnv.addYears(r.currentDate,1)})}today(){let r=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:zo(r.calendarOptions.now,r.dateEnv)})}gotoDate(r){let l=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:l.dateEnv.createMarker(r)})}incrementDate(r){let l=this.getCurrentData(),g=bn(r);g&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:l.dateEnv.add(l.currentDate,g)}))}getDate(){let r=this.getCurrentData();return r.dateEnv.toDate(r.currentDate)}formatDate(r,l){let{dateEnv:g}=this.getCurrentData();return g.format(g.createMarker(r),Mr(l))}formatRange(r,l,g){let{dateEnv:C}=this.getCurrentData();return C.formatRange(C.createMarker(r),C.createMarker(l),Mr(g),g)}formatIso(r,l){let{dateEnv:g}=this.getCurrentData();return g.formatIso(g.createMarker(r),{omitTime:l})}select(r,l){let g;g=null==l?null!=r.start?r:{start:r,end:null}:{start:r,end:l};let C=this.getCurrentData(),x=function Ut(o,r,l){let g=function mn(o,r){let{refined:l,extra:g}=tn(o,Nt),C=l.start?r.createMarkerMeta(l.start):null,x=l.end?r.createMarkerMeta(l.end):null,{allDay:ne}=l;return null==ne&&(ne=C&&C.isTimeUnspecified&&(!x||x.isTimeUnspecified)),Object.assign({range:{start:C?C.marker:null,end:x?x.marker:null},allDay:ne},g)}(o,r),{range:C}=g;if(!C.start)return null;if(!C.end){if(null==l)return null;C.end=r.add(C.start,l)}return g}(g,C.dateEnv,bn({days:1}));x&&(this.dispatch({type:"SELECT_DATES",selection:x}),Gr(x,null,C))}unselect(r){let l=this.getCurrentData();l.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),function Fi(o,r){r.emitter.trigger("unselect",{jsEvent:o?o.origEvent:null,view:r.viewApi||r.calendarApi.view})}(r,l))}addEvent(r,l){if(r instanceof Qr){let ne=r._def,Ae=r._instance;return this.getCurrentData().eventStore.defs[ne.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:$n({def:ne,instance:Ae})}),this.triggerEventAdd(r)),r}let C,g=this.getCurrentData();if(l instanceof je)C=l.internalEventSource;else if("boolean"==typeof l)l&&([C]=pr(g.eventSources));else if(null!=l){let ne=this.getEventSourceById(l);if(!ne)return console.warn(`Could not find an event source with ID "${l}"`),null;C=ne.internalEventSource}let x=Ns(r,C,g,!1);if(x){let ne=new Qr(g,x.def,x.def.recurringDef?null:x.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:$n(x)}),this.triggerEventAdd(ne),ne}return null}triggerEventAdd(r){let{emitter:l}=this.getCurrentData();l.trigger("eventAdd",{event:r,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:pa(r)})}})}getEventById(r){let l=this.getCurrentData(),{defs:g,instances:C}=l.eventStore;r=String(r);for(let x in g){let ne=g[x];if(ne.publicId===r){if(ne.recurringDef)return new Qr(l,ne,null);for(let Ae in C){let We=C[Ae];if(We.defId===ne.defId)return new Qr(l,ne,We)}}}return null}getEvents(){let r=this.getCurrentData();return Ms(r.eventStore,r)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let r=this.getCurrentData(),l=r.eventSources,g=[];for(let C in l)g.push(new je(r,l[C]));return g}getEventSourceById(r){let l=this.getCurrentData(),g=l.eventSources;r=String(r);for(let C in g)if(g[C].publicId===r)return new je(l,g[C]);return null}addEventSource(r){let l=this.getCurrentData();if(r instanceof je)return l.eventSources[r.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[r.internalEventSource]}),r;let g=no(r,l);return g?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[g]}),new je(l,g)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(r){let l=bn(r);l&&this.trigger("_scrollRequest",{time:l})}}class Qr{constructor(r,l,g){this._context=r,this._def=l,this._instance=g||null}setProp(r,l){if(r in Wn)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if("id"===r)l=Kt[r](l),this.mutate({standardProps:{publicId:l}});else if(r in Kt)l=Kt[r](l),this.mutate({standardProps:{[r]:l}});else if(r in wi){let g=wi[r](l);g="color"===r?{backgroundColor:l,borderColor:l}:"editable"===r?{startEditable:l,durationEditable:l}:{[r]:l},this.mutate({standardProps:{ui:g}})}else console.warn(`Could not set prop '${r}'. Use setExtendedProp instead.`)}setExtendedProp(r,l){this.mutate({extendedProps:{[r]:l}})}setStart(r,l={}){let{dateEnv:g}=this._context,C=g.createMarker(r);if(C&&this._instance){let ne=Ii(this._instance.range.start,C,g,l.granularity);this.mutate(l.maintainDuration?{datesDelta:ne}:{startDelta:ne})}}setEnd(r,l={}){let C,{dateEnv:g}=this._context;if((null==r||(C=g.createMarker(r),C))&&this._instance)if(C){let x=Ii(this._instance.range.end,C,g,l.granularity);this.mutate({endDelta:x})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(r,l,g={}){let Ae,{dateEnv:C}=this._context,x={allDay:g.allDay},ne=C.createMarker(r);if(ne&&(null==l||(Ae=C.createMarker(l),Ae))&&this._instance){let We=this._instance.range;!0===g.allDay&&(We=xt(We));let rt=Ii(We.start,ne,C,g.granularity);if(Ae){let St=Ii(We.end,Ae,C,g.granularity);!function Sr(o,r){return o.years===r.years&&o.months===r.months&&o.days===r.days&&o.milliseconds===r.milliseconds}(rt,St)?this.mutate({startDelta:rt,endDelta:St,standardProps:x}):this.mutate({datesDelta:rt,standardProps:x})}else x.hasEnd=!1,this.mutate({datesDelta:rt,standardProps:x})}}moveStart(r){let l=bn(r);l&&this.mutate({startDelta:l})}moveEnd(r){let l=bn(r);l&&this.mutate({endDelta:l})}moveDates(r){let l=bn(r);l&&this.mutate({datesDelta:l})}setAllDay(r,l={}){let g={allDay:r},{maintainDuration:C}=l;null==C&&(C=this._context.options.allDayMaintainDuration),this._def.allDay!==r&&(g.hasEnd=C),this.mutate({standardProps:g})}formatRange(r){let{dateEnv:l}=this._context,g=this._instance,C=Mr(r);return this._def.hasEnd?l.formatRange(g.range.start,g.range.end,C,{forcedStartTzo:g.forcedStartTzo,forcedEndTzo:g.forcedEndTzo}):l.format(g.range.start,C,{forcedTzo:g.forcedStartTzo})}mutate(r){let l=this._instance;if(l){let g=this._def,C=this._context,{eventStore:x}=C.getCurrentData(),ne=Kn(x,l.instanceId);ne=Hi(ne,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},r,C);let We=new Qr(C,g,l);this._def=ne.defs[g.defId],this._instance=ne.instances[l.instanceId],C.dispatch({type:"MERGE_EVENTS",eventStore:ne}),C.emitter.trigger("eventChange",{oldEvent:We,event:this,relatedEvents:Ms(ne,C,l),revert(){C.dispatch({type:"RESET_EVENTS",eventStore:x})}})}}remove(){let r=this._context,l=pa(this);r.dispatch({type:"REMOVE_EVENTS",eventStore:l}),r.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert(){r.dispatch({type:"MERGE_EVENTS",eventStore:l})}})}get source(){let{sourceId:r}=this._def;return r?new je(this._context,this._context.getCurrentData().eventSources[r]):null}get start(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null}get end(){return this._instance&&this._def.hasEnd?this._context.dateEnv.toDate(this._instance.range.end):null}get startStr(){let r=this._instance;return r?this._context.dateEnv.formatIso(r.range.start,{omitTime:this._def.allDay,forcedTzo:r.forcedStartTzo}):""}get endStr(){let r=this._instance;return r&&this._def.hasEnd?this._context.dateEnv.formatIso(r.range.end,{omitTime:this._def.allDay,forcedTzo:r.forcedEndTzo}):""}get id(){return this._def.publicId}get groupId(){return this._def.groupId}get allDay(){return this._def.allDay}get title(){return this._def.title}get url(){return this._def.url}get display(){return this._def.ui.display||"auto"}get startEditable(){return this._def.ui.startEditable}get durationEditable(){return this._def.ui.durationEditable}get constraint(){return this._def.ui.constraints[0]||null}get overlap(){return this._def.ui.overlap}get allow(){return this._def.ui.allows[0]||null}get backgroundColor(){return this._def.ui.backgroundColor}get borderColor(){return this._def.ui.borderColor}get textColor(){return this._def.ui.textColor}get classNames(){return this._def.ui.classNames}get extendedProps(){return this._def.extendedProps}toPlainObject(r={}){let l=this._def,{ui:g}=l,{startStr:C,endStr:x}=this,ne={};return l.title&&(ne.title=l.title),C&&(ne.start=C),x&&(ne.end=x),l.publicId&&(ne.id=l.publicId),l.groupId&&(ne.groupId=l.groupId),l.url&&(ne.url=l.url),g.display&&"auto"!==g.display&&(ne.display=g.display),r.collapseColor&&g.backgroundColor&&g.backgroundColor===g.borderColor?ne.color=g.backgroundColor:(g.backgroundColor&&(ne.backgroundColor=g.backgroundColor),g.borderColor&&(ne.borderColor=g.borderColor)),g.textColor&&(ne.textColor=g.textColor),g.classNames.length&&(ne.classNames=g.classNames),Object.keys(l.extendedProps).length&&(r.collapseExtendedProps?A(ne,l.extendedProps):ne.extendedProps=l.extendedProps),ne}toJSON(){return this.toPlainObject()}}function pa(o){let r=o._def,l=o._instance;return{defs:{[r.defId]:r},instances:l?{[l.instanceId]:l}:{}}}function Ms(o,r,l){let{defs:g,instances:C}=o,x=[],ne=l?l.instanceId:"";for(let Ae in C){let We=C[Ae],rt=g[We.defId];We.instanceId!==ne&&x.push(new Qr(r,rt,We))}return x}let Ko={};!function Ga(o,r){Ko[o]=r}("gregory",class cl{getMarkerYear(r){return r.getUTCFullYear()}getMarkerMonth(r){return r.getUTCMonth()}getMarkerDay(r){return r.getUTCDate()}arrayToMarker(r){return gn(r)}markerToArray(r){return pn(r)}});const ms=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;class Bs{constructor(r){let l=this.timeZone=r.timeZone,g="local"!==l&&"UTC"!==l;r.namedTimeZoneImpl&&g&&(this.namedTimeZoneImpl=new r.namedTimeZoneImpl(l)),this.canComputeOffset=Boolean(!g||this.namedTimeZoneImpl),this.calendarSystem=function ro(o){return new Ko[o]}(r.calendarSystem),this.locale=r.locale,this.weekDow=r.locale.week.dow,this.weekDoy=r.locale.week.doy,"ISO"===r.weekNumberCalculation&&(this.weekDow=1,this.weekDoy=4),"number"==typeof r.firstDay&&(this.weekDow=r.firstDay),"function"==typeof r.weekNumberCalculation&&(this.weekNumberFunc=r.weekNumberCalculation),this.weekText=null!=r.weekText?r.weekText:r.locale.options.weekText,this.weekTextLong=(null!=r.weekTextLong?r.weekTextLong:r.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=r.cmdFormatter,this.defaultSeparator=r.defaultSeparator}createMarker(r){let l=this.createMarkerMeta(r);return null===l?null:l.marker}createNowMarker(){return this.canComputeOffset?this.timestampToMarker((new Date).valueOf()):gn(Bt(new Date))}createMarkerMeta(r){if("string"==typeof r)return this.parse(r);let l=null;return"number"==typeof r?l=this.timestampToMarker(r):r instanceof Date?(r=r.valueOf(),isNaN(r)||(l=this.timestampToMarker(r))):Array.isArray(r)&&(l=gn(r)),null!==l&&Jn(l)?{marker:l,isTimeUnspecified:!1,forcedTzo:null}:null}parse(r){let l=function Ao(o){let r=ms.exec(o);if(r){let l=new Date(Date.UTC(Number(r[1]),r[3]?Number(r[3])-1:0,Number(r[5]||1),Number(r[7]||0),Number(r[8]||0),Number(r[10]||0),r[12]?1e3*Number(`0.${r[12]}`):0));if(Jn(l)){let g=null;return r[13]&&(g=("-"===r[15]?-1:1)*(60*Number(r[16]||0)+Number(r[18]||0))),{marker:l,isTimeUnspecified:!r[6],timeZoneOffset:g}}}return null}(r);if(null===l)return null;let{marker:g}=l,C=null;return null!==l.timeZoneOffset&&(this.canComputeOffset?g=this.timestampToMarker(g.valueOf()-60*l.timeZoneOffset*1e3):C=l.timeZoneOffset),{marker:g,isTimeUnspecified:l.isTimeUnspecified,forcedTzo:C}}getYear(r){return this.calendarSystem.getMarkerYear(r)}getMonth(r){return this.calendarSystem.getMarkerMonth(r)}add(r,l){let g=this.calendarSystem.markerToArray(r);return g[0]+=l.years,g[1]+=l.months,g[2]+=l.days,g[6]+=l.milliseconds,this.calendarSystem.arrayToMarker(g)}subtract(r,l){let g=this.calendarSystem.markerToArray(r);return g[0]-=l.years,g[1]-=l.months,g[2]-=l.days,g[6]-=l.milliseconds,this.calendarSystem.arrayToMarker(g)}addYears(r,l){let g=this.calendarSystem.markerToArray(r);return g[0]+=l,this.calendarSystem.arrayToMarker(g)}addMonths(r,l){let g=this.calendarSystem.markerToArray(r);return g[1]+=l,this.calendarSystem.arrayToMarker(g)}diffWholeYears(r,l){let{calendarSystem:g}=this;return _r(r)===_r(l)&&g.getMarkerDay(r)===g.getMarkerDay(l)&&g.getMarkerMonth(r)===g.getMarkerMonth(l)?g.getMarkerYear(l)-g.getMarkerYear(r):null}diffWholeMonths(r,l){let{calendarSystem:g}=this;return _r(r)===_r(l)&&g.getMarkerDay(r)===g.getMarkerDay(l)?g.getMarkerMonth(l)-g.getMarkerMonth(r)+12*(g.getMarkerYear(l)-g.getMarkerYear(r)):null}greatestWholeUnit(r,l){let g=this.diffWholeYears(r,l);return null!==g?{unit:"year",value:g}:(g=this.diffWholeMonths(r,l),null!==g?{unit:"month",value:g}:(g=function Er(o,r){let l=zn(o,r);return null!==l&&l%7==0?l/7:null}(r,l),null!==g?{unit:"week",value:g}:(g=zn(r,l),null!==g?{unit:"day",value:g}:(g=function En(o,r){return(r.valueOf()-o.valueOf())/36e5}(r,l),ze(g)?{unit:"hour",value:g}:(g=function Ln(o,r){return(r.valueOf()-o.valueOf())/6e4}(r,l),ze(g)?{unit:"minute",value:g}:(g=function Hr(o,r){return(r.valueOf()-o.valueOf())/1e3}(r,l),ze(g)?{unit:"second",value:g}:{unit:"millisecond",value:l.valueOf()-r.valueOf()}))))))}countDurationsBetween(r,l,g){let C;return g.years&&(C=this.diffWholeYears(r,l),null!==C)?C/function Fr(o){return _i(o)/365}(g):g.months&&(C=this.diffWholeMonths(r,l),null!==C)?C/function Yi(o){return _i(o)/30}(g):g.days&&(C=zn(r,l),null!==C)?C/_i(g):(l.valueOf()-r.valueOf())/ve(g)}startOf(r,l){return"year"===l?this.startOfYear(r):"month"===l?this.startOfMonth(r):"week"===l?this.startOfWeek(r):"day"===l?Tn(r):"hour"===l?function jn(o){return gn([o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate(),o.getUTCHours()])}(r):"minute"===l?function nr(o){return gn([o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate(),o.getUTCHours(),o.getUTCMinutes()])}(r):"second"===l?function Ke(o){return gn([o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate(),o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds()])}(r):null}startOfYear(r){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(r)])}startOfMonth(r){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(r),this.calendarSystem.getMarkerMonth(r)])}startOfWeek(r){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(r),this.calendarSystem.getMarkerMonth(r),r.getUTCDate()-(r.getUTCDay()-this.weekDow+7)%7])}computeWeekNumber(r){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(r)):function Ze(o,r,l){let g=o.getUTCFullYear(),C=we(o,g,r,l);if(C<1)return we(o,g-1,r,l);let x=we(o,g+1,r,l);return x>=1?Math.min(C,x):C}(r,this.weekDow,this.weekDoy)}format(r,l,g={}){return l.format({marker:r,timeZoneOffset:null!=g.forcedTzo?g.forcedTzo:this.offsetForMarker(r)},this)}formatRange(r,l,g,C={}){return C.isEndExclusive&&(l=at(l,-1)),g.formatRange({marker:r,timeZoneOffset:null!=C.forcedStartTzo?C.forcedStartTzo:this.offsetForMarker(r)},{marker:l,timeZoneOffset:null!=C.forcedEndTzo?C.forcedEndTzo:this.offsetForMarker(l)},this,C.defaultSeparator)}formatIso(r,l={}){let g=null;return l.omitTimeZoneOffset||(g=null!=l.forcedTzo?l.forcedTzo:this.offsetForMarker(r)),Ot(r,g,l.omitTime)}timestampToMarker(r){return"local"===this.timeZone?gn(Bt(new Date(r))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?gn(this.namedTimeZoneImpl.timestampToArray(r)):new Date(r)}offsetForMarker(r){return"local"===this.timeZone?-ln(pn(r)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(pn(r)):null}toDate(r,l){return"local"===this.timeZone?ln(pn(r)):"UTC"===this.timeZone?new Date(r.valueOf()):this.namedTimeZoneImpl?new Date(r.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(pn(r))*60):new Date(r.valueOf()-(l||0))}}const Va=[],Yo={code:"en",week:{dow:0,doy:4},direction:"ltr",buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day",list:"list"},weekText:"W",weekTextLong:"Week",closeHint:"Close",timeHint:"Time",eventHint:"Event",allDayText:"all-day",moreLinkText:"more",noEventsText:"No events to display"},ks=Object.assign(Object.assign({},Yo),{buttonHints:{prev:"Previous $0",next:"Next $0",today:(o,r)=>"day"===r?"Today":`This ${o}`},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:o=>`Show ${o} more event${1===o?"":"s"}`});function Co(o){let r=o.length>0?o[0].code:"en",l=Va.concat(o),g={en:ks};for(let C of l)g[C.code]=C;return{map:g,defaultCode:r}}function ns(o,r){return"object"!=typeof o||Array.isArray(o)?function ga(o,r){let l=[].concat(o||[]),g=function io(o,r){for(let l=0;l<o.length;l+=1){let g=o[l].toLocaleLowerCase().split("-");for(let C=g.length;C>0;C-=1){let x=g.slice(0,C).join("-");if(r[x])return r[x]}}return null}(l,r)||ks;return Qo(o,l,g)}(o,r):Qo(o.code,[o.code],o)}function Qo(o,r,l){let g=ti([Yo,l],["buttonText"]);delete g.code;let{week:C}=g;return delete g.week,{codeArg:o,codes:r,week:C,simpleNumberFormat:new Intl.NumberFormat(o),options:g}}const ul={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function Jo(o,r){return o.left>=r.left&&o.left<r.right&&o.top>=r.top&&o.top<r.bottom}function qo(o,r){let l={left:Math.max(o.left,r.left),right:Math.min(o.right,r.right),top:Math.max(o.top,r.top),bottom:Math.min(o.bottom,r.bottom)};return l.left<l.right&&l.top<l.bottom&&l}function so(o,r){return{left:Math.min(Math.max(o.left,r.left),r.right),top:Math.min(Math.max(o.top,r.top),r.bottom)}}function ea(o){return{left:(o.left+o.right)/2,top:(o.top+o.bottom)/2}}function Yl(o,r){return{left:o.left-r.left,top:o.top-r.top}}let So;function oo(){return null==So&&(So=function Us(){if(typeof document>"u")return!0;let o=document.createElement("div");o.style.position="absolute",o.style.top="0px",o.style.left="0px",o.innerHTML="<table><tr><td><div></div></td></tr></table>",o.querySelector("table").style.height="100px",o.querySelector("div").style.height="100%",document.body.appendChild(o);let l=o.querySelector("div").offsetHeight>0;return document.body.removeChild(o),l}()),So}const ao={defs:{},instances:{}};class dl{constructor(){this.getKeysForEventDefs=Mn(this._getKeysForEventDefs),this.splitDateSelection=Mn(this._splitDateSpan),this.splitEventStore=Mn(this._splitEventStore),this.splitIndividualUi=Mn(this._splitIndividualUi),this.splitEventDrag=Mn(this._splitInteraction),this.splitEventResize=Mn(this._splitInteraction),this.eventUiBuilders={}}splitProps(r){let l=this.getKeyInfo(r),g=this.getKeysForEventDefs(r.eventStore),C=this.splitDateSelection(r.dateSelection),x=this.splitIndividualUi(r.eventUiBases,g),ne=this.splitEventStore(r.eventStore,g),Ae=this.splitEventDrag(r.eventDrag),We=this.splitEventResize(r.eventResize),rt={};this.eventUiBuilders=tr(l,(St,jt)=>this.eventUiBuilders[jt]||Mn(ta));for(let St in l){let jt=l[St],Xt=ne[St]||ao;rt[St]={businessHours:jt.businessHours||r.businessHours,dateSelection:C[St]||null,eventStore:Xt,eventUiBases:(0,this.eventUiBuilders[St])(r.eventUiBases[""],jt.ui,x[St]),eventSelection:Xt.instances[r.eventSelection]?r.eventSelection:"",eventDrag:Ae[St]||null,eventResize:We[St]||null}}return rt}_splitDateSpan(r){let l={};if(r){let g=this.getKeysForDateSpan(r);for(let C of g)l[C]=r}return l}_getKeysForEventDefs(r){return tr(r.defs,l=>this.getKeysForEventDef(l))}_splitEventStore(r,l){let{defs:g,instances:C}=r,x={};for(let ne in g)for(let Ae of l[ne])x[Ae]||(x[Ae]={defs:{},instances:{}}),x[Ae].defs[ne]=g[ne];for(let ne in C){let Ae=C[ne];for(let We of l[Ae.defId])x[We]&&(x[We].instances[ne]=Ae)}return x}_splitIndividualUi(r,l){let g={};for(let C in r)if(C)for(let x of l[C])g[x]||(g[x]={}),g[x][C]=r[C];return g}_splitInteraction(r){let l={};if(r){let g=this._splitEventStore(r.affectedEvents,this._getKeysForEventDefs(r.affectedEvents)),C=this._getKeysForEventDefs(r.mutatedEvents),x=this._splitEventStore(r.mutatedEvents,C),ne=Ae=>{l[Ae]||(l[Ae]={affectedEvents:g[Ae]||ao,mutatedEvents:x[Ae]||ao,isEvent:r.isEvent})};for(let Ae in g)ne(Ae);for(let Ae in x)ne(Ae)}return l}}function ta(o,r,l){let g=[];o&&g.push(o),r&&g.push(r);let C={"":ss(g)};return l&&A(C,l),C}function Is(o,r,l,g){return{dow:o.getUTCDay(),isDisabled:Boolean(g&&!ts(g.activeRange,o)),isOther:Boolean(g&&!ts(g.currentRange,o)),isToday:Boolean(r&&ts(r,o)),isPast:Boolean(l?o<l:!!r&&o<r.start),isFuture:Boolean(l?o>l:!!r&&o>=r.end)}}function Gs(o,r){let l=["fc-day",`fc-day-${Oe[o.dow]}`];return o.isDisabled?l.push("fc-day-disabled"):(o.isToday&&(l.push("fc-day-today"),l.push(r.getClass("today"))),o.isPast&&l.push("fc-day-past"),o.isFuture&&l.push("fc-day-future"),o.isOther&&l.push("fc-day-other")),l}const Vs=Mr({year:"numeric",month:"long",day:"numeric"}),_s=Mr({week:"long"});function rs(o,r,l="day",g=!0){const{dateEnv:C,options:x,calendarApi:ne}=o;let Ae=C.format(r,"week"===l?_s:Vs);if(x.navLinks){let We=C.toDate(r);const rt=St=>{let jt="day"===l?x.navLinkDayClick:"week"===l?x.navLinkWeekClick:null;"function"==typeof jt?jt.call(ne,C.toDate(r),St):("string"==typeof jt&&(l=jt),ne.zoomTo(r,l))};return Object.assign({title:an(x.navLinkHint,[Ae,We],Ae),"data-navlink":""},g?Pe(rt):{onClick:rt})}return{"aria-label":Ae}}let Os,na=null;function bo(o){return{x:o.offsetHeight-o.clientHeight,y:o.offsetWidth-o.clientWidth}}function Sn(o,r=!1,l){let g=l?o.getBoundingClientRect():ja(o),C=function _a(o,r=!1){let l=window.getComputedStyle(o),g=parseInt(l.borderLeftWidth,10)||0,C=parseInt(l.borderRightWidth,10)||0,x=parseInt(l.borderTopWidth,10)||0,ne=parseInt(l.borderBottomWidth,10)||0,Ae=bo(o),We=Ae.y-g-C,St={borderLeft:g,borderRight:C,borderTop:x,borderBottom:ne,scrollbarBottom:Ae.x-x-ne,scrollbarLeft:0,scrollbarRight:0};return function ma(){return null===na&&(na=function cs(){let o=document.createElement("div");Ft(o,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),o.innerHTML="<div></div>",document.body.appendChild(o);let l=o.firstChild.getBoundingClientRect().left>o.getBoundingClientRect().left;return de(o),l}()),na}()&&"rtl"===l.direction?St.scrollbarLeft=We:St.scrollbarRight=We,r&&(St.paddingLeft=parseInt(l.paddingLeft,10)||0,St.paddingRight=parseInt(l.paddingRight,10)||0,St.paddingTop=parseInt(l.paddingTop,10)||0,St.paddingBottom=parseInt(l.paddingBottom,10)||0),St}(o,r),x={left:g.left+C.borderLeft+C.scrollbarLeft,right:g.right-C.borderRight-C.scrollbarRight,top:g.top+C.borderTop,bottom:g.bottom-C.borderBottom-C.scrollbarBottom};return r&&(x.left+=C.paddingLeft,x.right-=C.paddingRight,x.top+=C.paddingTop,x.bottom-=C.paddingBottom),x}function ja(o){let r=o.getBoundingClientRect();return{left:r.left+window.pageXOffset,top:r.top+window.pageYOffset,right:r.right+window.pageXOffset,bottom:r.bottom+window.pageYOffset}}function Hs(o){let r=[];for(;o instanceof HTMLElement;){let l=window.getComputedStyle(o);if("fixed"===l.position)break;/(auto|scroll)/.test(l.overflow+l.overflowY+l.overflowX)&&r.push(o),o=o.parentNode}return r}class Ea{constructor(){this.handlers={},this.thisContext=null}setThisContext(r){this.thisContext=r}setOptions(r){this.options=r}on(r,l){!function ii(o,r,l){(o[r]||(o[r]=[])).push(l)}(this.handlers,r,l)}off(r,l){!function $i(o,r,l){l?o[r]&&(o[r]=o[r].filter(g=>g!==l)):delete o[r]}(this.handlers,r,l)}trigger(r,...l){let x=[].concat(this.options&&this.options[r]||[],this.handlers[r]||[]);for(let ne of x)ne.apply(this.thisContext,l)}hasHandlers(r){return Boolean(this.handlers[r]&&this.handlers[r].length||this.options&&this.options[r])}}class lo{constructor(r,l,g,C){this.els=l;let x=this.originClientRect=r.getBoundingClientRect();g&&this.buildElHorizontals(x.left),C&&this.buildElVerticals(x.top)}buildElHorizontals(r){let l=[],g=[];for(let C of this.els){let x=C.getBoundingClientRect();l.push(x.left-r),g.push(x.right-r)}this.lefts=l,this.rights=g}buildElVerticals(r){let l=[],g=[];for(let C of this.els){let x=C.getBoundingClientRect();l.push(x.top-r),g.push(x.bottom-r)}this.tops=l,this.bottoms=g}leftToIndex(r){let x,{lefts:l,rights:g}=this,C=l.length;for(x=0;x<C;x+=1)if(r>=l[x]&&r<g[x])return x}topToIndex(r){let x,{tops:l,bottoms:g}=this,C=l.length;for(x=0;x<C;x+=1)if(r>=l[x]&&r<g[x])return x}getWidth(r){return this.rights[r]-this.lefts[r]}getHeight(r){return this.bottoms[r]-this.tops[r]}}class ji{getMaxScrollTop(){return this.getScrollHeight()-this.getClientHeight()}getMaxScrollLeft(){return this.getScrollWidth()-this.getClientWidth()}canScrollVertically(){return this.getMaxScrollTop()>0}canScrollHorizontally(){return this.getMaxScrollLeft()>0}canScrollUp(){return this.getScrollTop()>0}canScrollDown(){return this.getScrollTop()<this.getMaxScrollTop()}canScrollLeft(){return this.getScrollLeft()>0}canScrollRight(){return this.getScrollLeft()<this.getMaxScrollLeft()}}class M extends ji{constructor(r){super(),this.el=r}getScrollTop(){return this.el.scrollTop}getScrollLeft(){return this.el.scrollLeft}setScrollTop(r){this.el.scrollTop=r}setScrollLeft(r){this.el.scrollLeft=r}getScrollWidth(){return this.el.scrollWidth}getScrollHeight(){return this.el.scrollHeight}getClientHeight(){return this.el.clientHeight}getClientWidth(){return this.el.clientWidth}}class O extends ji{getScrollTop(){return window.pageYOffset}getScrollLeft(){return window.pageXOffset}setScrollTop(r){window.scroll(window.pageXOffset,r)}setScrollLeft(r){window.scroll(r,window.pageYOffset)}getScrollWidth(){return document.documentElement.scrollWidth}getScrollHeight(){return document.documentElement.scrollHeight}getClientHeight(){return document.documentElement.clientHeight}getClientWidth(){return document.documentElement.clientWidth}}class S{constructor(r){this.iconOverrideOption&&this.setIconOverride(r[this.iconOverrideOption])}setIconOverride(r){let l,g;if("object"==typeof r&&r){for(g in l=Object.assign({},this.iconClasses),r)l[g]=this.applyIconOverridePrefix(r[g]);this.iconClasses=l}else!1===r&&(this.iconClasses={})}applyIconOverridePrefix(r){let l=this.iconOverridePrefix;return l&&0!==r.indexOf(l)&&(r=l+r),r}getClass(r){return this.classes[r]||""}getIconClass(r,l){let g;return g=l&&this.rtlIconClasses&&this.rtlIconClasses[r]||this.iconClasses[r],g?`${this.baseIconClass} ${g}`:""}getCustomButtonIconClass(r){let l;return this.iconOverrideCustomButtonOption&&(l=r[this.iconOverrideCustomButtonOption],l)?`${this.baseIconClass} ${this.applyIconOverridePrefix(l)}`:""}}S.prototype.classes={},S.prototype.iconClasses={},S.prototype.baseIconClass="",S.prototype.iconOverridePrefix="";class z{constructor(r,l,g,C){this.execFunc=r,this.emitter=l,this.scrollTime=g,this.scrollTimeReset=C,this.handleScrollRequest=x=>{this.queuedRequest=A({},this.queuedRequest||{},x),this.drain()},l.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}detach(){this.emitter.off("_scrollRequest",this.handleScrollRequest)}update(r){r&&this.scrollTimeReset?this.fireInitialScroll():this.drain()}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)}}const re=Qe({});function _e(o,r,l,g,C,x,ne,Ae,We,rt,St,jt,Xt){return{dateEnv:C,options:l,pluginHooks:ne,emitter:rt,dispatch:Ae,getCurrentData:We,calendarApi:St,viewSpec:o,viewApi:r,dateProfileGenerator:g,theme:x,isRtl:"rtl"===l.direction,addResizeHandler(Jt){rt.on("_resize",Jt)},removeResizeHandler(Jt){rt.off("_resize",Jt)},createScrollResponder:Jt=>new z(Jt,rt,bn(l.scrollTime),l.scrollTimeReset),registerInteractiveComponent:jt,unregisterInteractiveComponent:Xt}}let Ye=(()=>{class o extends J{shouldComponentUpdate(l,g){return this.debug&&console.log(Nr(l,this.props),Nr(g,this.state)),!zr(this.props,l,this.propEquality)||!zr(this.state,g,this.stateEquality)}safeSetState(l){zr(this.state,Object.assign(Object.assign({},this.state),l),this.stateEquality)||this.setState(l)}}return o.addPropsEquality=kt,o.addStateEquality=dn,o.contextType=re,o})();Ye.prototype.propEquality={},Ye.prototype.stateEquality={};let Xe=(()=>{class o extends Ye{}return o.contextType=re,o})();function kt(o){let r=Object.create(this.prototype.propEquality);A(r,o),this.prototype.propEquality=r}function dn(o){let r=Object.create(this.prototype.stateEquality);A(r,o),this.prototype.stateEquality=r}function Pn(o,r){"function"==typeof o?o(r):o&&(o.current=r)}class vn extends Xe{constructor(){super(...arguments),this.uid=Be()}prepareHits(){}queryHit(r,l,g,C){return null}isValidSegDownEl(r){return!this.props.eventDrag&&!this.props.eventResize&&!me(r,".fc-event-mirror")}isValidDateDownEl(r){return!(me(r,".fc-event:not(.fc-bg-event)")||me(r,".fc-more-link")||me(r,"a[data-navlink]")||me(r,".fc-popover"))}}function kn(o){return{id:Be(),deps:o.deps||[],reducers:o.reducers||[],isLoadingFuncs:o.isLoadingFuncs||[],contextInit:[].concat(o.contextInit||[]),eventRefiners:o.eventRefiners||{},eventDefMemberAdders:o.eventDefMemberAdders||[],eventSourceRefiners:o.eventSourceRefiners||{},isDraggableTransformers:o.isDraggableTransformers||[],eventDragMutationMassagers:o.eventDragMutationMassagers||[],eventDefMutationAppliers:o.eventDefMutationAppliers||[],dateSelectionTransformers:o.dateSelectionTransformers||[],datePointTransforms:o.datePointTransforms||[],dateSpanTransforms:o.dateSpanTransforms||[],views:o.views||{},viewPropsTransformers:o.viewPropsTransformers||[],isPropsValid:o.isPropsValid||null,externalDefTransforms:o.externalDefTransforms||[],viewContainerAppends:o.viewContainerAppends||[],eventDropTransformers:o.eventDropTransformers||[],componentInteractions:o.componentInteractions||[],calendarInteractions:o.calendarInteractions||[],themeClasses:o.themeClasses||{},eventSourceDefs:o.eventSourceDefs||[],cmdFormatter:o.cmdFormatter,recurringTypes:o.recurringTypes||[],namedTimeZonedImpl:o.namedTimeZonedImpl,initialView:o.initialView||"",elementDraggingImpl:o.elementDraggingImpl,optionChangeHandlers:o.optionChangeHandlers||{},scrollGridImpl:o.scrollGridImpl||null,contentTypeHandlers:o.contentTypeHandlers||{},listenerRefiners:o.listenerRefiners||{},optionRefiners:o.optionRefiners||{},propSetHandlers:o.propSetHandlers||{}}}function $s(o,r){return{reducers:o.reducers.concat(r.reducers),isLoadingFuncs:o.isLoadingFuncs.concat(r.isLoadingFuncs),contextInit:o.contextInit.concat(r.contextInit),eventRefiners:Object.assign(Object.assign({},o.eventRefiners),r.eventRefiners),eventDefMemberAdders:o.eventDefMemberAdders.concat(r.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},o.eventSourceRefiners),r.eventSourceRefiners),isDraggableTransformers:o.isDraggableTransformers.concat(r.isDraggableTransformers),eventDragMutationMassagers:o.eventDragMutationMassagers.concat(r.eventDragMutationMassagers),eventDefMutationAppliers:o.eventDefMutationAppliers.concat(r.eventDefMutationAppliers),dateSelectionTransformers:o.dateSelectionTransformers.concat(r.dateSelectionTransformers),datePointTransforms:o.datePointTransforms.concat(r.datePointTransforms),dateSpanTransforms:o.dateSpanTransforms.concat(r.dateSpanTransforms),views:Object.assign(Object.assign({},o.views),r.views),viewPropsTransformers:o.viewPropsTransformers.concat(r.viewPropsTransformers),isPropsValid:r.isPropsValid||o.isPropsValid,externalDefTransforms:o.externalDefTransforms.concat(r.externalDefTransforms),viewContainerAppends:o.viewContainerAppends.concat(r.viewContainerAppends),eventDropTransformers:o.eventDropTransformers.concat(r.eventDropTransformers),calendarInteractions:o.calendarInteractions.concat(r.calendarInteractions),componentInteractions:o.componentInteractions.concat(r.componentInteractions),themeClasses:Object.assign(Object.assign({},o.themeClasses),r.themeClasses),eventSourceDefs:o.eventSourceDefs.concat(r.eventSourceDefs),cmdFormatter:r.cmdFormatter||o.cmdFormatter,recurringTypes:o.recurringTypes.concat(r.recurringTypes),namedTimeZonedImpl:r.namedTimeZonedImpl||o.namedTimeZonedImpl,initialView:o.initialView||r.initialView,elementDraggingImpl:o.elementDraggingImpl||r.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},o.optionChangeHandlers),r.optionChangeHandlers),scrollGridImpl:r.scrollGridImpl||o.scrollGridImpl,contentTypeHandlers:Object.assign(Object.assign({},o.contentTypeHandlers),r.contentTypeHandlers),listenerRefiners:Object.assign(Object.assign({},o.listenerRefiners),r.listenerRefiners),optionRefiners:Object.assign(Object.assign({},o.optionRefiners),r.optionRefiners),propSetHandlers:Object.assign(Object.assign({},o.propSetHandlers),r.propSetHandlers)}}class Jr extends S{}function Ps(o,r,l,g){if(r[o])return r[o];let C=function fl(o,r,l,g){let C=l[o],x=g[o],ne=St=>C&&null!==C[St]?C[St]:x&&null!==x[St]?x[St]:null,Ae=ne("component"),We=ne("superType"),rt=null;if(We){if(We===o)throw new Error("Can't have a custom view type that references itself");rt=Ps(We,r,l,g)}return!Ae&&rt&&(Ae=rt.component),Ae?{type:o,component:Ae,defaults:Object.assign(Object.assign({},rt?rt.defaults:{}),C?C.rawOptions:{}),overrides:Object.assign(Object.assign({},rt?rt.overrides:{}),x?x.rawOptions:{})}:null}(o,r,l,g);return C&&(r[o]=C),C}Jr.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},Jr.prototype.baseIconClass="fc-icon",Jr.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-chevron-left",next:"fc-icon-chevron-right",prevYear:"fc-icon-chevrons-left",nextYear:"fc-icon-chevrons-right"},Jr.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},Jr.prototype.iconOverrideOption="buttonIcons",Jr.prototype.iconOverrideCustomButtonOption="icon",Jr.prototype.iconOverridePrefix="fc-icon-";class js extends Xe{constructor(){super(...arguments),this.rootElRef=ce(),this.handleRootEl=r=>{Pn(this.rootElRef,r),this.props.elRef&&Pn(this.props.elRef,r)}}render(){let{props:r}=this,{hookProps:l}=r;return L(Mo,{hookProps:l,didMount:r.didMount,willUnmount:r.willUnmount,elRef:this.handleRootEl},g=>L(Xl,{hookProps:l,content:r.content,defaultContent:r.defaultContent,backupElRef:this.rootElRef},(C,x)=>r.children(g,Io(r.classNames,l),C,x)))}}const pl=Qe(0);function Xl(o){return L(pl.Consumer,null,r=>L(Rs,Object.assign({renderId:r},o)))}class Rs extends Xe{constructor(){super(...arguments),this.innerElRef=ce()}render(){return this.props.children(this.innerElRef,this.renderInnerContent())}componentDidMount(){this.updateCustomContent()}componentDidUpdate(){this.updateCustomContent()}componentWillUnmount(){this.customContentInfo&&this.customContentInfo.destroy&&this.customContentInfo.destroy()}renderInnerContent(){let{customContentInfo:r}=this,l=this.getInnerContent(),g=this.getContentMeta(l);return r&&r.contentKey===g.contentKey?r&&(r.contentVal=l[g.contentKey]):(r&&(r.destroy&&r.destroy(),r=this.customContentInfo=null),g.contentKey&&(r=this.customContentInfo=Object.assign({contentKey:g.contentKey,contentVal:l[g.contentKey]},g.buildLifecycleFuncs()))),r?[]:l}getInnerContent(){let{props:r}=this,l=us(r.content,r.hookProps);return void 0===l&&(l=us(r.defaultContent,r.hookProps)),l??null}getContentMeta(r){let{contentTypeHandlers:l}=this.context.pluginHooks,g="",C=null;if(r)for(let x in l)if(void 0!==r[x]){g=x,C=l[x];break}return{contentKey:g,buildLifecycleFuncs:C}}updateCustomContent(){this.customContentInfo&&this.customContentInfo.render(this.innerElRef.current||this.props.backupElRef.current,this.customContentInfo.contentVal)}}class Mo extends Xe{constructor(){super(...arguments),this.handleRootEl=r=>{this.rootEl=r,this.props.elRef&&Pn(this.props.elRef,r)}}render(){return this.props.children(this.handleRootEl)}componentDidMount(){let r=this.props.didMount;r&&r(Object.assign(Object.assign({},this.props.hookProps),{el:this.rootEl}))}componentWillUnmount(){let r=this.props.willUnmount;r&&r(Object.assign(Object.assign({},this.props.hookProps),{el:this.rootEl}))}}function eu(){let o,r,l=[];return(g,C)=>((!r||!rr(r,C)||g!==o)&&(o=g,r=C,l=Io(g,C)),l)}function Io(o,r){return"function"==typeof o&&(o=o(r)),gs(o)}function us(o,r){return"function"==typeof o?o(r,L):o}class wr extends Xe{constructor(){super(...arguments),this.normalizeClassNames=eu()}render(){let{props:r,context:l}=this,{options:g}=l,C={view:l.viewApi},x=this.normalizeClassNames(g.viewClassNames,C);return L(Mo,{hookProps:C,didMount:g.viewDidMount,willUnmount:g.viewWillUnmount,elRef:r.elRef},ne=>r.children(ne,[`fc-${r.viewSpec.type}-view`,"fc-view"].concat(x)))}}function za(o){return tr(o,Zl)}function Zl(o){let r="function"==typeof o?{component:o}:o,{component:l}=r;return r.content&&(l=function ia(o){return r=>L(re.Consumer,null,l=>L(wr,{viewSpec:l.viewSpec},(g,C)=>{let x=Object.assign(Object.assign({},r),{nextDayThreshold:l.options.nextDayThreshold});return L(js,{hookProps:x,classNames:o.classNames,content:o.content,didMount:o.didMount,willUnmount:o.willUnmount,elRef:g},(ne,Ae,We,rt)=>L("div",{className:C.concat(Ae).join(" "),ref:ne},rt))}))}(r)),{superType:r.type,component:l,rawOptions:r}}function gl(o,r,l,g){let C=za(o),x=za(r.views),ne=function ra(o,r){let g,l={};for(g in o)Ps(g,l,o,r);for(g in r)Ps(g,l,o,r);return l}(C,x);return tr(ne,Ae=>function co(o,r,l,g,C){let x=o.overrides.duration||o.defaults.duration||g.duration||l.duration,ne=null,Ae="",We="",rt={};if(x&&(ne=function Jl(o){let r=JSON.stringify(o),l=uo[r];return void 0===l&&(l=bn(o),uo[r]=l),l}(x),ne)){let Xt=tt(ne);Ae=Xt.unit,1===Xt.value&&(We=Ae,rt=r[Ae]?r[Ae].rawOptions:{})}let St=Xt=>{let Jt=Xt.buttonText||{},Rn=o.defaults.buttonTextKey;return null!=Rn&&null!=Jt[Rn]?Jt[Rn]:null!=Jt[o.type]?Jt[o.type]:null!=Jt[We]?Jt[We]:null},jt=Xt=>{let Jt=Xt.buttonHints||{},Rn=o.defaults.buttonTextKey;return null!=Rn&&null!=Jt[Rn]?Jt[Rn]:null!=Jt[o.type]?Jt[o.type]:null!=Jt[We]?Jt[We]:null};return{type:o.type,component:o.component,duration:ne,durationUnit:Ae,singleUnit:We,optionDefaults:o.defaults,optionOverrides:Object.assign(Object.assign({},rt),o.overrides),buttonTextOverride:St(g)||St(l)||o.overrides.buttonText,buttonTextDefault:St(C)||o.defaults.buttonText||St(or)||o.type,buttonTitleOverride:jt(g)||jt(l)||o.overrides.buttonHint,buttonTitleDefault:jt(C)||o.defaults.buttonHint||jt(or)}}(Ae,x,r,l,g))}let uo={};class qr{constructor(r){this.props=r,this.nowDate=zo(r.nowInput,r.dateEnv),this.initHiddenDays()}buildPrev(r,l,g){let{dateEnv:C}=this.props,x=C.subtract(C.startOf(l,r.currentRangeUnit),r.dateIncrement);return this.build(x,-1,g)}buildNext(r,l,g){let{dateEnv:C}=this.props,x=C.add(C.startOf(l,r.currentRangeUnit),r.dateIncrement);return this.build(x,1,g)}build(r,l,g=!0){let x,ne,Ae,We,rt,St,{props:C}=this;return x=this.buildValidRange(),x=this.trimHiddenDays(x),g&&(r=function Vo(o,r){return null!=r.start&&o<r.start?r.start:null!=r.end&&o>=r.end?new Date(r.end.valueOf()-1):o}(r,x)),ne=this.buildCurrentRangeInfo(r,l),Ae=/^(year|month|week|day)$/.test(ne.unit),We=this.buildRenderRange(this.trimHiddenDays(ne.range),ne.unit,Ae),We=this.trimHiddenDays(We),rt=We,C.showNonCurrentDates||(rt=os(rt,ne.range)),rt=this.adjustActiveRange(rt),rt=os(rt,x),St=xi(ne.range,x),{validRange:x,currentRange:ne.range,currentRangeUnit:ne.unit,isRangeAllDay:Ae,activeRange:rt,renderRange:We,slotMinTime:C.slotMinTime,slotMaxTime:C.slotMaxTime,isValid:St,dateIncrement:this.buildDateIncrement(ne.duration)}}buildValidRange(){let r=this.props.validRangeInput,l="function"==typeof r?r.call(this.props.calendarApi,this.nowDate):r;return this.refineRange(l)||{start:null,end:null}}buildCurrentRangeInfo(r,l){let Ae,{props:g}=this,C=null,x=null,ne=null;return g.duration?(C=g.duration,x=g.durationUnit,ne=this.buildRangeFromDuration(r,l,C,x)):(Ae=this.props.dayCount)?(x="day",ne=this.buildRangeFromDayCount(r,l,Ae)):(ne=this.buildCustomVisibleRange(r))?x=g.dateEnv.greatestWholeUnit(ne.start,ne.end).unit:(C=this.getFallbackDuration(),x=tt(C).unit,ne=this.buildRangeFromDuration(r,l,C,x)),{duration:C,unit:x,range:ne}}getFallbackDuration(){return bn({day:1})}adjustActiveRange(r){let{dateEnv:l,usesMinMaxTime:g,slotMinTime:C,slotMaxTime:x}=this.props,{start:ne,end:Ae}=r;return g&&(_i(C)<0&&(ne=Tn(ne),ne=l.add(ne,C)),_i(x)>1&&(Ae=Tn(Ae),Ae=be(Ae,-1),Ae=l.add(Ae,x))),{start:ne,end:Ae}}buildRangeFromDuration(r,l,g,C){let Ae,We,rt,{dateEnv:x,dateAlignment:ne}=this.props;if(!ne){let{dateIncrement:jt}=this.props;ne=jt&&ve(jt)<ve(g)?tt(jt).unit:C}function St(){Ae=x.startOf(r,ne),We=x.add(Ae,g),rt={start:Ae,end:We}}return _i(g)<=1&&this.isHiddenDay(Ae)&&(Ae=this.skipHiddenDays(Ae,l),Ae=Tn(Ae)),St(),this.trimHiddenDays(rt)||(r=this.skipHiddenDays(r,l),St()),rt}buildRangeFromDayCount(r,l,g){let We,{dateEnv:C,dateAlignment:x}=this.props,ne=0,Ae=r;x&&(Ae=C.startOf(Ae,x)),Ae=Tn(Ae),Ae=this.skipHiddenDays(Ae,l),We=Ae;do{We=be(We,1),this.isHiddenDay(We)||(ne+=1)}while(ne<g);return{start:Ae,end:We}}buildCustomVisibleRange(r){let{props:l}=this,g=l.visibleRangeInput,C="function"==typeof g?g.call(l.calendarApi,l.dateEnv.toDate(r)):g,x=this.refineRange(C);return!x||null!=x.start&&null!=x.end?x:null}buildRenderRange(r,l,g){return r}buildDateIncrement(r){let g,{dateIncrement:l}=this.props;return l||((g=this.props.dateAlignment)?bn(1,g):r||bn({days:1}))}refineRange(r){if(r){let l=function Ni(o,r){let l=null,g=null;return o.start&&(l=r.createMarker(o.start)),o.end&&(g=r.createMarker(o.end)),!l&&!g||l&&g&&g<l?null:{start:l,end:g}}(r,this.props.dateEnv);return l&&(l=_n(l)),l}return null}initHiddenDays(){let C,r=this.props.hiddenDays||[],l=[],g=0;for(!1===this.props.weekends&&r.push(0,6),C=0;C<7;C+=1)(l[C]=-1!==r.indexOf(C))||(g+=1);if(!g)throw new Error("invalid hiddenDays");this.isHiddenDayHash=l}trimHiddenDays(r){let{start:l,end:g}=r;return l&&(l=this.skipHiddenDays(l)),g&&(g=this.skipHiddenDays(g,-1,!0)),null==l||null==g||l<g?{start:l,end:g}:null}isHiddenDay(r){return r instanceof Date&&(r=r.getUTCDay()),this.isHiddenDayHash[r]}skipHiddenDays(r,l=1,g=!1){for(;this.isHiddenDayHash[(r.getUTCDay()+(g?l:0)+7)%7];)r=be(r,l);return r}}function Da(o){for(let r in o)if(o[r].isFetching)return!0;return!1}function Aa(o,r,l,g){let C={};for(let x of r)C[x.sourceId]=x;return l&&(C=Sa(C,l,g)),Object.assign(Object.assign({},o),C)}function Sa(o,r,l){return vl(o,Xr(o,g=>function Ta(o,r,l){return yl(o,l)?!l.options.lazyFetching||!o.fetchRange||o.isFetching||r.start<o.fetchRange.start||r.end>o.fetchRange.end:!o.latestFetchId}(g,r,l)),r,!1,l)}function vl(o,r,l,g,C){let x={};for(let ne in o){let Ae=o[ne];x[ne]=r[ne]?tc(Ae,l,g,C):Ae}return x}function tc(o,r,l,g){let{options:C,calendarApi:x}=g,ne=g.pluginHooks.eventSourceDefs[o.sourceDefId],Ae=Be();return ne.fetch({eventSource:o,range:r,isRefetch:l,context:g},We=>{let{rawEvents:rt}=We;C.eventSourceSuccess&&(rt=C.eventSourceSuccess.call(x,rt,We.xhr)||rt),o.success&&(rt=o.success.call(x,rt,We.xhr)||rt),g.dispatch({type:"RECEIVE_EVENTS",sourceId:o.sourceId,fetchId:Ae,fetchRange:r,rawEvents:rt})},We=>{console.warn(We.message,We),C.eventSourceFailure&&C.eventSourceFailure.call(x,We),o.failure&&o.failure(We),g.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:o.sourceId,fetchId:Ae,fetchRange:r,error:We})}),Object.assign(Object.assign({},o),{isFetching:!0,latestFetchId:Ae})}function ba(o,r){return Xr(o,l=>yl(l,r))}function yl(o,r){return!r.pluginHooks.eventSourceDefs[o.sourceDefId].ignoreRange}function Ya(o,r){let l;if(r){l=[];for(let g of o){let C=r(g);C?l.push(C):null==C&&l.push(g)}}else l=o;return l}function Qa(o,r){return Dn(o,l=>l.sourceId!==r)}function ru(o,r){switch(r.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return r.selection;default:return o}}function ic(o,r){switch(r.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return r.eventInstanceId;default:return o}}function iu(o,r){let l;switch(r.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return l=r.state,{affectedEvents:l.affectedEvents,mutatedEvents:l.mutatedEvents,isEvent:l.isEvent};default:return o}}function Xa(o,r){let l;switch(r.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return l=r.state,{affectedEvents:l.affectedEvents,mutatedEvents:l.mutatedEvents,isEvent:l.isEvent};default:return o}}function Dl(o,r,l,g,C){return{header:o.headerToolbar?sc(o.headerToolbar,o,r,l,g,C):null,footer:o.footerToolbar?sc(o.footerToolbar,o,r,l,g,C):null}}function sc(o,r,l,g,C,x){let ne={},Ae=[],We=!1;for(let rt in o){let jt=oc(o[rt],r,l,g,C,x);ne[rt]=jt.widgets,Ae.push(...jt.viewsWithButtons),We=We||jt.hasTitle}return{sectionWidgets:ne,viewsWithButtons:Ae,hasTitle:We}}function oc(o,r,l,g,C,x){let ne="rtl"===r.direction,Ae=r.customButtons||{},We=l.buttonText||{},rt=r.buttonText||{},St=l.buttonHints||{},jt=r.buttonHints||{},Xt=o?o.split(" "):[],Jt=[],Rn=!1;return{widgets:Xt.map(Yn=>Yn.split(",").map(hr=>{if("title"===hr)return Rn=!0,{buttonName:hr};let mi,zi,Ki,fo,vs,Bi;if(mi=Ae[hr])Ki=Ti=>{mi.click&&mi.click.call(Ti.target,Ti,Ti.target)},(fo=g.getCustomButtonIconClass(mi))||(fo=g.getIconClass(hr,ne))||(vs=mi.text),Bi=mi.hint||mi.text;else if(zi=C[hr]){Jt.push(hr),Ki=()=>{x.changeView(hr)},(vs=zi.buttonTextOverride)||(fo=g.getIconClass(hr,ne))||(vs=zi.buttonTextDefault);let Ti=zi.buttonTextOverride||zi.buttonTextDefault;Bi=an(zi.buttonTitleOverride||zi.buttonTitleDefault||r.viewHint,[Ti,hr],Ti)}else if(x[hr])if(Ki=()=>{x[hr]()},(vs=We[hr])||(fo=g.getIconClass(hr,ne))||(vs=rt[hr]),"prevYear"===hr||"nextYear"===hr){let Ti="prevYear"===hr?"prev":"next";Bi=an(St[Ti]||jt[Ti],[rt.year||"year","year"],rt[hr])}else Bi=Ti=>an(St[hr]||jt[hr],[rt[Ti]||Ti,Ti],rt[hr]);return{buttonName:hr,buttonClick:Ki,buttonIcon:fo,buttonText:vs,buttonHint:Bi}})),viewsWithButtons:Jt,hasTitle:Rn}}function Ks(o){let r=[];for(let l in o)r.push(`${encodeURIComponent(l)}=${encodeURIComponent(o[l])}`);return r.join("&")}function bl(o,r){let l=pr(r.getCurrentData().eventSources),g=[];for(let C of o){let x=!1;for(let ne=0;ne<l.length;ne+=1)if(l[ne]._raw===C){l.splice(ne,1),x=!0;break}x||g.push(C)}for(let C of l)r.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:C.sourceId});for(let C of g)r.calendarApi.addEventSource(C)}const au=[kn({eventSourceDefs:[{ignoreRange:!0,parseMeta:o=>Array.isArray(o.events)?o.events:null,fetch(o,r){r({rawEvents:o.eventSource.meta})}}]}),kn({eventSourceDefs:[{parseMeta:o=>"function"==typeof o.events?o.events:null,fetch(o,r,l){let{dateEnv:g}=o.context;!function ya(o,r,l){let g=!1,C=function(){g||(g=!0,r.apply(this,arguments))},x=function(){g||(g=!0,l&&l.apply(this,arguments))},ne=o(C,x);ne&&"function"==typeof ne.then&&ne.then(C,x)}(o.eventSource.meta.bind(null,er(o.range,g)),x=>{r({rawEvents:x})},l)}}]}),kn({eventSourceRefiners:{method:String,extraParams:ht,startParam:String,endParam:String,timeZoneParam:String},eventSourceDefs:[{parseMeta:o=>!o.url||"json"!==o.format&&o.format?null:{url:o.url,format:"json",method:(o.method||"GET").toUpperCase(),extraParams:o.extraParams,startParam:o.startParam,endParam:o.endParam,timeZoneParam:o.timeZoneParam},fetch(o,r,l){let{meta:g}=o.eventSource,C=function cc(o,r,l){let x,ne,Ae,We,{dateEnv:g,options:C}=l,rt={};return x=o.startParam,null==x&&(x=C.startParam),ne=o.endParam,null==ne&&(ne=C.endParam),Ae=o.timeZoneParam,null==Ae&&(Ae=C.timeZoneParam),We="function"==typeof o.extraParams?o.extraParams():o.extraParams||{},A(rt,We),rt[x]=g.formatIso(r.start),rt[ne]=g.formatIso(r.end),"local"!==g.timeZone&&(rt[Ae]=g.timeZone),rt}(g,o.range,o.context);!function ac(o,r,l,g,C){let x=null;"GET"===(o=o.toUpperCase())?r=function lc(o,r){return o+(-1===o.indexOf("?")?"?":"&")+Ks(r)}(r,l):x=Ks(l);let ne=new XMLHttpRequest;ne.open(o,r,!0),"GET"!==o&&ne.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),ne.onload=()=>{if(ne.status>=200&&ne.status<400){let We,Ae=!1;try{We=JSON.parse(ne.responseText),Ae=!0}catch{}Ae?g(We,ne):C("Failure parsing JSON",ne)}else C("Request failed",ne)},ne.onerror=()=>{C("Request failed",ne)},ne.send(x)}(g.method,g.url,C,(x,ne)=>{r({rawEvents:x,xhr:ne})},(x,ne)=>{l({message:x,xhr:ne})})}}]}),kn({recurringTypes:[{parse(o,r){if(o.daysOfWeek||o.startTime||o.endTime||o.startRecur||o.endRecur){let g,l={daysOfWeek:o.daysOfWeek||null,startTime:o.startTime||null,endTime:o.endTime||null,startRecur:o.startRecur?r.createMarker(o.startRecur):null,endRecur:o.endRecur?r.createMarker(o.endRecur):null};return o.duration&&(g=o.duration),!g&&o.startTime&&o.endTime&&(g=function ri(o,r){return{years:o.years-r.years,months:o.months-r.months,days:o.days-r.days,milliseconds:o.milliseconds-r.milliseconds}}(o.endTime,o.startTime)),{allDayGuess:Boolean(!o.startTime&&!o.endTime),duration:g,typeData:l}}return null},expand(o,r,l){let g=os(r,{start:o.startRecur,end:o.endRecur});return g?function uc(o,r,l,g){let C=o?Cr(o):null,x=Tn(l.start),ne=l.end,Ae=[];for(;x<ne;){let We;(!C||C[x.getUTCDay()])&&(We=r?g.add(x,r):x,Ae.push(We)),x=be(x,1)}return Ae}(o.daysOfWeek,o.startTime,g,l):[]}}],eventRefiners:{daysOfWeek:ht,startTime:bn,endTime:bn,duration:bn,startRecur:ht,endRecur:ht}}),kn({optionChangeHandlers:{events(o,r){bl([o],r)},eventSources:bl}}),kn({isLoadingFuncs:[o=>Da(o.eventSources)],contentTypeHandlers:{html:function lu(){let o=null,r="";return{render:function l(C,x){(C!==o||x!==r)&&(C.innerHTML=x),o=C,r=x},destroy:function g(){o.innerHTML="",o=null,r=""}}},domNodes:function hc(){let o=null,r=[];function g(){r.forEach(de),r=[],o=null}return{render:function l(C,x){let ne=Array.prototype.slice.call(x);if(C!==o||!sr(r,ne)){for(let Ae of ne)C.appendChild(Ae);g()}o=C,r=ne},destroy:g}}},propSetHandlers:{dateProfile:function ho(o,r){r.emitter.trigger("datesSet",Object.assign(Object.assign({},er(o.activeRange,r.dateEnv)),{view:r.viewApi}))},eventStore:function ou(o,r){let{emitter:l}=r;l.hasHandlers("eventsSet")&&l.trigger("eventsSet",Ms(o,r))}}})];class Za{constructor(r){this.drainedOption=r,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}request(r){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),null==r?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),r))}pause(r=""){let{pauseDepths:l}=this;l[r]=(l[r]||0)+1,this.clearTimeout()}resume(r="",l){let{pauseDepths:g}=this;r in g&&(l?delete g[r]:(g[r]-=1,g[r]<=0&&delete g[r]),this.tryDrain())}isPaused(){return Object.keys(this.pauseDepths).length}tryDrain(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}}clear(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}}clearTimeout(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)}drained(){this.drainedOption&&this.drainedOption()}}class ws{constructor(r,l){this.runTaskOption=r,this.drainedOption=l,this.queue=[],this.delayedRunner=new Za(this.drain.bind(this))}request(r,l){this.queue.push(r),this.delayedRunner.request(l)}pause(r){this.delayedRunner.pause(r)}resume(r,l){this.delayedRunner.resume(r,l)}drain(){let{queue:r}=this;for(;r.length;){let g,l=[];for(;g=r.shift();)this.runTask(g),l.push(g);this.drained(l)}}runTask(r){this.runTaskOption&&this.runTaskOption(r)}drained(r){this.drainedOption&&this.drainedOption(r)}}function Ro(o,r,l){let g;return g=/^(year|month)$/.test(o.currentRangeUnit)?o.currentRange:o.activeRange,l.formatRange(g.start,g.end,Mr(r.titleFormat||function cu(o){let{currentRangeUnit:r}=o;if("year"===r)return{year:"numeric"};if("month"===r)return{year:"numeric",month:"long"};let l=zn(o.currentRange.start,o.currentRange.end);return null!==l&&l>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}(o)),{isEndExclusive:o.isRangeAllDay,defaultSeparator:r.titleRangeSeparator})}class uu{constructor(r){this.computeOptionsData=Mn(this._computeOptionsData),this.computeCurrentViewData=Mn(this._computeCurrentViewData),this.organizeRawLocales=Mn(Co),this.buildLocale=Mn(ns),this.buildPluginHooks=function pi(){let l,o=[],r=[];return(g,C)=>((!l||!sr(g,o)||!sr(C,r))&&(l=function fi(o,r){let l={},g={reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,contentTypeHandlers:{},listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function C(x){for(let ne of x)l[ne.id]||(l[ne.id]=!0,C(ne.deps),g=$s(g,ne))}return o&&C(o),C(r),g}(g,C)),o=g,r=C,l)}(),this.buildDateEnv=Mn(du),this.buildTheme=Mn(fc),this.parseToolbars=Mn(Dl),this.buildViewSpecs=Mn(gl),this.buildDateProfileGenerator=Ir(hu),this.buildViewApi=Mn(fu),this.buildViewUiProps=Ir(gu),this.buildEventUiBySource=Mn(pc,rr),this.buildEventUiBases=Mn(pu),this.parseContextBusinessHours=Ir(gc),this.buildTitle=Mn(Ro),this.emitter=new Ea,this.actionRunner=new ws(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.getCurrentData=()=>this.data,this.dispatch=Xt=>{this.actionRunner.request(Xt)},this.props=r,this.actionRunner.pause();let l={},g=this.computeOptionsData(r.optionOverrides,l,r.calendarApi),C=g.calendarOptions.initialView||g.pluginHooks.initialView,x=this.computeCurrentViewData(C,g,r.optionOverrides,l);r.calendarApi.currentDataManager=this,this.emitter.setThisContext(r.calendarApi),this.emitter.setOptions(x.options);let ne=function qc(o,r){let l=o.initialDate;return null!=l?r.createMarker(l):zo(o.now,r)}(g.calendarOptions,g.dateEnv),Ae=x.dateProfileGenerator.build(ne);ts(Ae.activeRange,ne)||(ne=Ae.currentRange.start);let We={dateEnv:g.dateEnv,options:g.calendarOptions,pluginHooks:g.pluginHooks,calendarApi:r.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData};for(let Xt of g.pluginHooks.contextInit)Xt(We);let rt=function Oo(o,r,l){let g=r?r.activeRange:null;return Aa({},function nc(o,r){let l=Do(r),g=[].concat(o.eventSources||[]),C=[];o.initialEvents&&g.unshift(o.initialEvents),o.events&&g.unshift(o.events);for(let x of g){let ne=no(x,r,l);ne&&C.push(ne)}return C}(o,l),g,l)}(g.calendarOptions,Ae,We),St={dynamicOptionOverrides:l,currentViewType:C,currentDate:ne,dateProfile:Ae,businessHours:this.parseContextBusinessHours(We),eventSources:rt,eventUiBases:{},eventStore:{defs:{},instances:{}},renderableEventStore:{defs:{},instances:{}},dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(We).selectionConfig},jt=Object.assign(Object.assign({},We),St);for(let Xt of g.pluginHooks.reducers)A(St,Xt(null,null,jt));Ml(St,We)&&this.emitter.trigger("loading",!0),this.state=St,this.updateData(),this.actionRunner.resume()}resetOptions(r,l){let{props:g}=this;g.optionOverrides=l?Object.assign(Object.assign({},g.optionOverrides),r):r,this.actionRunner.request({type:"NOTHING"})}_handleAction(r){let{props:l,state:g,emitter:C}=this,x=function _l(o,r){return"SET_OPTION"===r.type?Object.assign(Object.assign({},o),{[r.optionName]:r.rawOptionValue}):o}(g.dynamicOptionOverrides,r),ne=this.computeOptionsData(l.optionOverrides,x,l.calendarApi),Ae=function ml(o,r){return"CHANGE_VIEW_TYPE"===r.type&&(o=r.viewType),o}(g.currentViewType,r),We=this.computeCurrentViewData(Ae,ne,l.optionOverrides,x);l.calendarApi.currentDataManager=this,C.setThisContext(l.calendarApi),C.setOptions(We.options);let rt={dateEnv:ne.dateEnv,options:ne.calendarOptions,pluginHooks:ne.pluginHooks,calendarApi:l.calendarApi,dispatch:this.dispatch,emitter:C,getCurrentData:this.getCurrentData},{currentDate:St,dateProfile:jt}=g;this.data&&this.data.dateProfileGenerator!==We.dateProfileGenerator&&(jt=We.dateProfileGenerator.build(St)),St=function ll(o,r){return"CHANGE_DATE"===r.type?r.dateMarker:o}(St,r),jt=function Ws(o,r,l,g){let C;switch(r.type){case"CHANGE_VIEW_TYPE":return g.build(r.dateMarker||l);case"CHANGE_DATE":return g.build(r.dateMarker);case"PREV":if(C=g.buildPrev(o,l),C.isValid)return C;break;case"NEXT":if(C=g.buildNext(o,l),C.isValid)return C}return o}(jt,r,St,We.dateProfileGenerator),("PREV"===r.type||"NEXT"===r.type||!ts(jt.currentRange,St))&&(St=jt.currentRange.start);let Xt=function ql(o,r,l,g){let C=l?l.activeRange:null;switch(r.type){case"ADD_EVENT_SOURCES":return Aa(o,r.sources,C,g);case"REMOVE_EVENT_SOURCE":return function Ca(o,r){return Xr(o,l=>l.sourceId!==r)}(o,r.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return l?Sa(o,C,g):o;case"FETCH_EVENT_SOURCES":return vl(o,r.sourceIds?Cr(r.sourceIds):ba(o,g),C,r.isRefetch||!1,g);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return function Ka(o,r,l,g){let C=o[r];return C&&l===C.latestFetchId?Object.assign(Object.assign({},o),{[r]:Object.assign(Object.assign({},C),{isFetching:!1,fetchRange:g})}):o}(o,r.sourceId,r.fetchId,r.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return o}}(g.eventSources,r,jt,rt),Jt=function tu(o,r,l,g,C){switch(r.type){case"RECEIVE_EVENTS":return function zs(o,r,l,g,C,x){if(r&&l===r.latestFetchId){let ne=In(function Po(o,r,l){let g=l.options.eventDataTransform,C=r?r.eventDataTransform:null;return C&&(o=Ya(o,C)),g&&(o=Ya(o,g)),o}(C,r,x),r,x);return g&&(ne=cr(ne,g,x)),Pr(Qa(o,r.sourceId),ne)}return o}(o,l[r.sourceId],r.fetchId,r.fetchRange,r.rawEvents,C);case"ADD_EVENTS":return function nu(o,r,l,g){return l&&(r=cr(r,l,g)),Pr(o,r)}(o,r.eventStore,g?g.activeRange:null,C);case"RESET_EVENTS":return r.eventStore;case"MERGE_EVENTS":return Pr(o,r.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return g?cr(o,g.activeRange,C):o;case"REMOVE_EVENTS":return function es(o,r){let{defs:l,instances:g}=o,C={},x={};for(let ne in l)r.defs[ne]||(C[ne]=l[ne]);for(let ne in g)!r.instances[ne]&&C[g[ne].defId]&&(x[ne]=g[ne]);return{defs:C,instances:x}}(o,r.eventStore);case"REMOVE_EVENT_SOURCE":return Qa(o,r.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return Dn(o,x=>!x.sourceId);case"REMOVE_ALL_EVENTS":return{defs:{},instances:{}};default:return o}}(g.eventStore,r,Xt,jt,rt),Qn=Da(Xt)&&!We.options.progressiveEventRendering&&g.renderableEventStore||Jt,{eventUiSingleBase:Yn,selectionConfig:hr}=this.buildViewUiProps(rt),mi=this.buildEventUiBySource(Xt),Ki={dynamicOptionOverrides:x,currentViewType:Ae,currentDate:St,dateProfile:jt,eventSources:Xt,eventStore:Jt,renderableEventStore:Qn,selectionConfig:hr,eventUiBases:this.buildEventUiBases(Qn.defs,Yn,mi),businessHours:this.parseContextBusinessHours(rt),dateSelection:ru(g.dateSelection,r),eventSelection:ic(g.eventSelection,r),eventDrag:iu(g.eventDrag,r),eventResize:Xa(g.eventResize,r)},fo=Object.assign(Object.assign({},rt),Ki);for(let Ti of ne.pluginHooks.reducers)A(Ki,Ti(g,r,fo));let vs=Ml(g,rt),Bi=Ml(Ki,rt);!vs&&Bi?C.trigger("loading",!0):vs&&!Bi&&C.trigger("loading",!1),this.state=Ki,l.onAction&&l.onAction(r)}updateData(){let{props:r,state:l}=this,g=this.data,C=this.computeOptionsData(r.optionOverrides,l.dynamicOptionOverrides,r.calendarApi),x=this.computeCurrentViewData(l.currentViewType,C,r.optionOverrides,l.dynamicOptionOverrides),ne=this.data=Object.assign(Object.assign(Object.assign({viewTitle:this.buildTitle(l.dateProfile,x.options,C.dateEnv),calendarApi:r.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},C),x),l),Ae=C.pluginHooks.optionChangeHandlers,We=g&&g.calendarOptions,rt=C.calendarOptions;if(We&&We!==rt){We.timeZone!==rt.timeZone&&(l.eventSources=ne.eventSources=function ec(o,r,l){let g=r?r.activeRange:null;return vl(o,ba(o,l),g,!0,l)}(ne.eventSources,l.dateProfile,ne),l.eventStore=ne.eventStore=function El(o,r,l){let{defs:g}=o,C=tr(o.instances,x=>{let ne=g[x.defId];return ne.allDay||ne.recurringDef?x:Object.assign(Object.assign({},x),{range:{start:l.createMarker(r.toDate(x.range.start,x.forcedStartTzo)),end:l.createMarker(r.toDate(x.range.end,x.forcedEndTzo))},forcedStartTzo:l.canComputeOffset?null:x.forcedStartTzo,forcedEndTzo:l.canComputeOffset?null:x.forcedEndTzo})});return{defs:g,instances:C}}(ne.eventStore,g.dateEnv,ne.dateEnv));for(let St in Ae)We[St]!==rt[St]&&Ae[St](rt[St],ne)}r.onData&&r.onData(ne)}_computeOptionsData(r,l,g){let{refinedOptions:C,pluginHooks:x,localeDefaults:ne,availableLocaleData:Ae,extra:We}=this.processRawCalendarOptions(r,l);oa(We);let rt=this.buildDateEnv(C.timeZone,C.locale,C.weekNumberCalculation,C.firstDay,C.weekText,x,Ae,C.defaultRangeSeparator),St=this.buildViewSpecs(x.views,r,l,ne),jt=this.buildTheme(C,x);return{calendarOptions:C,pluginHooks:x,dateEnv:rt,viewSpecs:St,theme:jt,toolbarConfig:this.parseToolbars(C,r,jt,St,g),localeDefaults:ne,availableRawLocales:Ae.map}}processRawCalendarOptions(r,l){let{locales:g,locale:C}=Ht([or,r,l]),x=this.organizeRawLocales(g),Ae=this.buildLocale(C||x.defaultCode,x.map).options,We=this.buildPluginHooks(r.plugins||[],au),rt=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},_o),De),st),We.listenerRefiners),We.optionRefiners),St={},jt=Ht([or,Ae,r,l]),Xt={},Jt=this.currentCalendarOptionsInput,Rn=this.currentCalendarOptionsRefined,Qn=!1;for(let Yn in jt)"plugins"!==Yn&&(jt[Yn]===Jt[Yn]||Ve[Yn]&&Yn in Jt&&Ve[Yn](Jt[Yn],jt[Yn])?Xt[Yn]=Rn[Yn]:rt[Yn]?(Xt[Yn]=rt[Yn](jt[Yn]),Qn=!0):St[Yn]=Jt[Yn]);return Qn&&(this.currentCalendarOptionsInput=jt,this.currentCalendarOptionsRefined=Xt),{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:We,availableLocaleData:x,localeDefaults:Ae,extra:St}}_computeCurrentViewData(r,l,g,C){let x=l.viewSpecs[r];if(!x)throw new Error(`viewType "${r}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:ne,extra:Ae}=this.processRawViewOptions(x,l.pluginHooks,l.localeDefaults,g,C);return oa(Ae),{viewSpec:x,options:ne,dateProfileGenerator:this.buildDateProfileGenerator({dateProfileGeneratorClass:x.optionDefaults.dateProfileGeneratorClass,duration:x.duration,durationUnit:x.durationUnit,usesMinMaxTime:x.optionDefaults.usesMinMaxTime,dateEnv:l.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:ne.slotMinTime,slotMaxTime:ne.slotMaxTime,showNonCurrentDates:ne.showNonCurrentDates,dayCount:ne.dayCount,dateAlignment:ne.dateAlignment,dateIncrement:ne.dateIncrement,hiddenDays:ne.hiddenDays,weekends:ne.weekends,nowInput:ne.now,validRangeInput:ne.validRange,visibleRangeInput:ne.visibleRange,monthMode:ne.monthMode,fixedWeekCount:ne.fixedWeekCount}),viewApi:this.buildViewApi(r,this.getCurrentData,l.dateEnv)}}processRawViewOptions(r,l,g,C,x){let ne=Ht([or,r.optionDefaults,g,C,r.optionOverrides,x]),Ae=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},_o),De),st),Lt),l.listenerRefiners),l.optionRefiners),We={},rt=this.currentViewOptionsInput,St=this.currentViewOptionsRefined,jt=!1,Xt={};for(let Jt in ne)ne[Jt]===rt[Jt]||Ve[Jt]&&Ve[Jt](ne[Jt],rt[Jt])?We[Jt]=St[Jt]:(ne[Jt]===this.currentCalendarOptionsInput[Jt]||Ve[Jt]&&Ve[Jt](ne[Jt],this.currentCalendarOptionsInput[Jt])?Jt in this.currentCalendarOptionsRefined&&(We[Jt]=this.currentCalendarOptionsRefined[Jt]):Ae[Jt]?We[Jt]=Ae[Jt](ne[Jt]):Xt[Jt]=ne[Jt],jt=!0);return jt&&(this.currentViewOptionsInput=ne,this.currentViewOptionsRefined=We),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:Xt}}}function du(o,r,l,g,C,x,ne,Ae){let We=ns(r||ne.defaultCode,ne.map);return new Bs({calendarSystem:"gregory",timeZone:o,namedTimeZoneImpl:x.namedTimeZonedImpl,locale:We,weekNumberCalculation:l,firstDay:g,weekText:C,cmdFormatter:x.cmdFormatter,defaultSeparator:Ae})}function fc(o,r){return new(r.themeClasses[o.themeSystem]||Jr)(o)}function hu(o){return new(o.dateProfileGeneratorClass||qr)(o)}function fu(o,r,l){return new Wo(o,r,l)}function pc(o){return tr(o,r=>r.ui)}function pu(o,r,l){let g={"":r};for(let C in o){let x=o[C];x.sourceId&&l[x.sourceId]&&(g[C]=l[x.sourceId])}return g}function gu(o){let{options:r}=o;return{eventUiSingleBase:Ur({display:r.eventDisplay,editable:r.editable,startEditable:r.eventStartEditable,durationEditable:r.eventDurationEditable,constraint:r.eventConstraint,overlap:"boolean"==typeof r.eventOverlap?r.eventOverlap:void 0,allow:r.eventAllow,backgroundColor:r.eventBackgroundColor,borderColor:r.eventBorderColor,textColor:r.eventTextColor,color:r.eventColor},o),selectionConfig:Ur({constraint:r.selectConstraint,overlap:"boolean"==typeof r.selectOverlap?r.selectOverlap:void 0,allow:r.selectAllow},o)}}function Ml(o,r){for(let l of r.pluginHooks.isLoadingFuncs)if(l(o))return!0;return!1}function gc(o){return function $a(o,r){return In(function Zo(o){let r;return r=!0===o?[{}]:Array.isArray(o)?o.filter(l=>l.daysOfWeek):"object"==typeof o&&o?[o]:[],r=r.map(l=>Object.assign(Object.assign({},ul),l)),r}(o),null,r)}(o.options.businessHours,o)}function oa(o,r){for(let l in o)console.warn(`Unknown option '${l}'`+(r?` for view '${r}'`:""))}class _u{constructor(){this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}addSegs(r){let l=[];for(let g of r)this.insertEntry(g,l);return l}insertEntry(r,l){let g=this.findInsertion(r);return this.isInsertionValid(g,r)?(this.insertEntryAt(r,g),1):this.handleInvalidInsertion(g,r,l)}isInsertionValid(r,l){return(-1===this.maxCoord||r.levelCoord+l.thickness<=this.maxCoord)&&(-1===this.maxStackCnt||r.stackCnt<this.maxStackCnt)}handleInvalidInsertion(r,l,g){return this.allowReslicing&&r.touchingEntry?this.splitEntry(l,r.touchingEntry,g):(g.push(l),0)}splitEntry(r,l,g){let C=0,x=[],ne=r.span,Ae=l.span;return ne.start<Ae.start&&(C+=this.insertEntry({index:r.index,thickness:r.thickness,span:{start:ne.start,end:Ae.start}},x)),ne.end>Ae.end&&(C+=this.insertEntry({index:r.index,thickness:r.thickness,span:{start:Ae.end,end:ne.end}},x)),C?(g.push({index:r.index,thickness:r.thickness,span:mc(Ae,ne)},...x),C):(g.push(r),0)}insertEntryAt(r,l){let{entriesByLevel:g,levelCoords:C}=this;-1===l.lateral?(gi(C,l.level,l.levelCoord),gi(g,l.level,[r])):gi(g[l.level],l.lateral,r),this.stackCnts[qa(r)]=l.stackCnt}findInsertion(r){let{levelCoords:l,entriesByLevel:g,strictOrder:C,stackCnts:x}=this,ne=l.length,Ae=0,We=-1,rt=-1,St=null,jt=0;for(let Rn=0;Rn<ne;Rn+=1){let Qn=l[Rn];if(!C&&Qn>=Ae+r.thickness)break;let hr,Yn=g[Rn],mi=Oa(Yn,r.span.start,Ia),zi=mi[0]+mi[1];for(;(hr=Yn[zi])&&hr.span.start<r.span.end;){let Ki=Qn+hr.thickness;Ki>Ae&&(Ae=Ki,St=hr,We=Rn,rt=zi),Ki===Ae&&(jt=Math.max(jt,x[qa(hr)]+1)),zi+=1}}let Xt=0;if(St)for(Xt=We+1;Xt<ne&&l[Xt]<Ae;)Xt+=1;let Jt=-1;return Xt<ne&&l[Xt]===Ae&&(Jt=Oa(g[Xt],r.span.end,Ia)[0]),{touchingLevel:We,touchingLateral:rt,touchingEntry:St,stackCnt:jt,levelCoord:Ae,level:Xt,lateral:Jt}}toRects(){let{entriesByLevel:r,levelCoords:l}=this,g=r.length,C=[];for(let x=0;x<g;x+=1){let ne=r[x],Ae=l[x];for(let We of ne)C.push(Object.assign(Object.assign({},We),{levelCoord:Ae}))}return C}}function Ia(o){return o.span.end}function qa(o){return o.index+":"+o.span.start}function zu(o){let r=[];for(let l of o){let g=[],C={span:l.span,entries:[l]};for(let x of r)mc(x.span,C.span)?C={entries:x.entries.concat(C.entries),span:Ku(x.span,C.span)}:g.push(x);g.push(C),r=g}return r}function Ku(o,r){return{start:Math.min(o.start,r.start),end:Math.max(o.end,r.end)}}function mc(o,r){let l=Math.max(o.start,r.start),g=Math.min(o.end,r.end);return l<g?{start:l,end:g}:null}function gi(o,r,l){o.splice(r,0,l)}function Oa(o,r,l){let g=0,C=o.length;if(!C||r<l(o[g]))return[0,0];if(r>l(o[C-1]))return[C,0];for(;g<C;){let x=Math.floor(g+(C-g)/2),ne=l(o[x]);if(r<ne)C=x;else{if(!(r>ne))return[x,1];g=x+1}}return[g,0]}class Pa{constructor(r){this.component=r.component,this.isHitComboAllowed=r.isHitComboAllowed||null}destroy(){}}function Qu(o){return{[o.component.uid]:o}}const wo={};class _c{constructor(r,l){this.emitter=new Ea}destroy(){}setMirrorIsVisible(r){}setMirrorNeedsRevert(r){}setAutoScrollEnabled(r){}}const vu={};Boolean;class el extends Xe{render(){let r=this.props.widgetGroups.map(l=>this.renderWidgetGroup(l));return L("div",{className:"fc-toolbar-chunk"},...r)}renderWidgetGroup(r){let{props:l}=this,{theme:g}=this.context,C=[],x=!0;for(let ne of r){let{buttonName:Ae,buttonClick:We,buttonText:rt,buttonIcon:St,buttonHint:jt}=ne;if("title"===Ae)x=!1,C.push(L("h2",{className:"fc-toolbar-title",id:l.titleId},l.title));else{let Xt=Ae===l.activeButton,Jt=!l.isTodayEnabled&&"today"===Ae||!l.isPrevEnabled&&"prev"===Ae||!l.isNextEnabled&&"next"===Ae,Rn=[`fc-${Ae}-button`,g.getClass("button")];Xt&&Rn.push(g.getClass("buttonActive")),C.push(L("button",{type:"button",title:"function"==typeof jt?jt(l.navUnit):jt,disabled:Jt,"aria-pressed":Xt,className:Rn.join(" "),onClick:We},rt||(St?L("span",{className:St}):"")))}}if(C.length>1){let ne=x&&g.getClass("buttonGroup")||"";return L("div",{className:ne},...C)}return C[0]}}class Ra extends Xe{render(){let C,x,{model:r,extraClassName:l}=this.props,g=!1,ne=r.sectionWidgets,Ae=ne.center;return ne.left?(g=!0,C=ne.left):C=ne.start,ne.right?(g=!0,x=ne.right):x=ne.end,L("div",{className:[l||"","fc-toolbar",g?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",C||[]),this.renderSection("center",Ae||[]),this.renderSection("end",x||[]))}renderSection(r,l){let{props:g}=this;return L(el,{key:r,widgetGroups:l,title:g.title,navUnit:g.navUnit,activeButton:g.activeButton,isTodayEnabled:g.isTodayEnabled,isPrevEnabled:g.isPrevEnabled,isNextEnabled:g.isNextEnabled,titleId:g.titleId})}}class yc extends Xe{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=r=>{this.el=r,Pn(this.props.elRef,r),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:r,state:l}=this,{aspectRatio:g}=r,x="",ne="";return g?null!==l.availableWidth?x=l.availableWidth/g:ne=1/g*100+"%":x=r.height||"",L("div",{"aria-labelledby":r.labeledById,ref:this.handleEl,className:["fc-view-harness",g||r.liquid||r.height?"fc-view-harness-active":"fc-view-harness-passive"].join(" "),style:{height:x,paddingBottom:ne}},r.children)}componentDidMount(){this.context.addResizeHandler(this.handleResize)}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}updateAvailableWidth(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})}}class tl extends Pa{constructor(r){super(r),this.handleSegClick=(l,g)=>{let{component:C}=this,{context:x}=C,ne=Fs(g);if(ne&&C.isValidSegDownEl(l.target)){let Ae=me(l.target,".fc-event-forced-url"),We=Ae?Ae.querySelector("a[href]").href:"";x.emitter.trigger("eventClick",{el:g,event:new Qr(C.context,ne.eventRange.def,ne.eventRange.instance),jsEvent:l,view:x.viewApi}),We&&!l.defaultPrevented&&(window.location.href=We)}},this.destroy=Tt(r.el,"click",".fc-event",this.handleSegClick)}}class Ec extends Pa{constructor(r){super(r),this.handleEventElRemove=l=>{l===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(l,g)=>{Fs(g)&&(this.currentSegEl=g,this.triggerEvent("eventMouseEnter",l,g))},this.handleSegLeave=(l,g)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",l,g))},this.removeHoverListeners=function Wt(o,r,l,g){let C;return Tt(o,"mouseover",r,(x,ne)=>{if(ne!==C){C=ne,l(x,ne);let Ae=We=>{C=null,g(We,ne),ne.removeEventListener("mouseleave",Ae)};ne.addEventListener("mouseleave",Ae)}})}(r.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(r,l,g){let{component:C}=this,{context:x}=C,ne=Fs(g);(!l||C.isValidSegDownEl(l.target))&&x.emitter.trigger(r,{el:g,event:new Qr(x,ne.eventRange.def,ne.eventRange.instance),jsEvent:l,view:x.viewApi})}}class si extends Ye{constructor(){super(...arguments),this.buildViewContext=Mn(_e),this.buildViewPropTransformers=Mn(Ac),this.buildToolbarProps=Mn(Dc),this.headerRef=ce(),this.footerRef=ce(),this.interactionsStore={},this.state={viewLabelId:wt()},this.registerInteractiveComponent=(r,l)=>{let g=function Yu(o,r){return{component:o,el:r.el,useEventCenter:null==r.useEventCenter||r.useEventCenter,isHitComboAllowed:r.isHitComboAllowed||null}}(r,l),ne=[tl,Ec].concat(this.props.pluginHooks.componentInteractions).map(Ae=>new Ae(g));this.interactionsStore[r.uid]=ne,wo[r.uid]=g},this.unregisterInteractiveComponent=r=>{let l=this.interactionsStore[r.uid];if(l){for(let g of l)g.destroy();delete this.interactionsStore[r.uid]}delete wo[r.uid]},this.resizeRunner=new Za(()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})}),this.handleWindowResize=r=>{let{options:l}=this.props;l.handleWindowResize&&r.target===window&&this.resizeRunner.request(l.windowResizeDelay)}}render(){let Ae,{props:r}=this,{toolbarConfig:l,options:g}=r,C=this.buildToolbarProps(r.viewSpec,r.dateProfile,r.dateProfileGenerator,r.currentDate,zo(r.options.now,r.dateEnv),r.viewTitle),x=!1,ne="";r.isHeightAuto||r.forPrint?ne="":null!=g.height?x=!0:null!=g.contentHeight?ne=g.contentHeight:Ae=Math.max(g.aspectRatio,.5);let We=this.buildViewContext(r.viewSpec,r.viewApi,r.options,r.dateProfileGenerator,r.dateEnv,r.theme,r.pluginHooks,r.dispatch,r.getCurrentData,r.emitter,r.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),rt=l.header&&l.header.hasTitle?this.state.viewLabelId:"";return L(re.Provider,{value:We},l.header&&L(Ra,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:l.header,titleId:rt},C)),L(yc,{liquid:x,height:ne,aspectRatio:Ae,labeledById:rt},this.renderView(r),this.buildAppendContent()),l.footer&&L(Ra,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:l.footer,titleId:""},C)))}componentDidMount(){let{props:r}=this;this.calendarInteractions=r.pluginHooks.calendarInteractions.map(g=>new g(r)),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:l}=r.pluginHooks;for(let g in l)l[g](r[g],r)}componentDidUpdate(r){let{props:l}=this,{propSetHandlers:g}=l.pluginHooks;for(let C in g)l[C]!==r[C]&&g[C](l[C],l)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(let r of this.calendarInteractions)r.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:r}=this,l=r.pluginHooks.viewContainerAppends.map(g=>g(r));return L(Se,{},...l)}renderView(r){let{pluginHooks:l}=r,{viewSpec:g}=r,C={dateProfile:r.dateProfile,businessHours:r.businessHours,eventStore:r.renderableEventStore,eventUiBases:r.eventUiBases,dateSelection:r.dateSelection,eventSelection:r.eventSelection,eventDrag:r.eventDrag,eventResize:r.eventResize,isHeightAuto:r.isHeightAuto,forPrint:r.forPrint},x=this.buildViewPropTransformers(l.viewPropsTransformers);for(let Ae of x)A(C,Ae.transform(C,r));return L(g.component,Object.assign({},C))}}function Dc(o,r,l,g,C,x){let ne=l.build(C,void 0,!1),Ae=l.buildPrev(r,g,!1),We=l.buildNext(r,g,!1);return{title:x,activeButton:o.type,navUnit:o.singleUnit,isTodayEnabled:ne.isValid&&!ts(r.currentRange,C),isPrevEnabled:Ae.isValid,isNextEnabled:We.isValid}}function Ac(o){return o.map(r=>new r)}class Il extends Xe{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{this.setState({forPrint:!0})},this.handleAfterPrint=()=>{this.setState({forPrint:!1})}}render(){let{props:r}=this,{options:l}=r,{forPrint:g}=this.state,C=g||"auto"===l.height||"auto"===l.contentHeight,x=C||null==l.height?"":l.height,ne=["fc",g?"fc-media-print":"fc-media-screen",`fc-direction-${l.direction}`,r.theme.getClass("root")];return oo()||ne.push("fc-liquid-hack"),r.children(ne,x,C,g)}componentDidMount(){let{emitter:r}=this.props;r.on("_beforeprint",this.handleBeforePrint),r.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:r}=this.props;r.off("_beforeprint",this.handleBeforePrint),r.off("_afterprint",this.handleAfterPrint)}}const Cc="fc-col-header-cell";function Sc(o){return o.text}class yu extends Xe{render(){let{dateEnv:r,options:l,theme:g,viewApi:C}=this.context,{props:x}=this,{date:ne,dateProfile:Ae}=x,We=Is(ne,x.todayRange,null,Ae),rt=[Cc].concat(Gs(We,g)),St=r.format(ne,x.dayHeaderFormat),jt=!We.isDisabled&&x.colCnt>1?rs(this.context,ne):{},Xt=Object.assign(Object.assign(Object.assign({date:r.toDate(ne),view:C},x.extraHookProps),{text:St}),We);return L(js,{hookProps:Xt,classNames:l.dayHeaderClassNames,content:l.dayHeaderContent,defaultContent:Sc,didMount:l.dayHeaderDidMount,willUnmount:l.dayHeaderWillUnmount},(Jt,Rn,Qn,Yn)=>L("th",Object.assign({ref:Jt,role:"columnheader",className:rt.concat(Rn).join(" "),"data-date":We.isDisabled?void 0:Qt(ne),colSpan:x.colSpan},x.extraDataAttrs),L("div",{className:"fc-scrollgrid-sync-inner"},!We.isDisabled&&L("a",Object.assign({ref:Qn,className:["fc-col-header-cell-cushion",x.isSticky?"fc-sticky":""].join(" ")},jt),Yn))))}}const Eu=Mr({weekday:"long"});class Du extends Xe{render(){let{props:r}=this,{dateEnv:l,theme:g,viewApi:C,options:x}=this.context,ne=be(new Date(2592e5),r.dow),Ae={dow:r.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},We=[Cc].concat(Gs(Ae,g),r.extraClassNames||[]),rt=l.format(ne,r.dayHeaderFormat),St=Object.assign(Object.assign(Object.assign(Object.assign({date:ne},Ae),{view:C}),r.extraHookProps),{text:rt});return L(js,{hookProps:St,classNames:x.dayHeaderClassNames,content:x.dayHeaderContent,defaultContent:Sc,didMount:x.dayHeaderDidMount,willUnmount:x.dayHeaderWillUnmount},(jt,Xt,Jt,Rn)=>L("th",Object.assign({ref:jt,role:"columnheader",className:We.concat(Xt).join(" "),colSpan:r.colSpan},r.extraDataAttrs),L("div",{className:"fc-scrollgrid-sync-inner"},L("a",{"aria-label":l.format(ne,Eu),className:["fc-col-header-cell-cushion",r.isSticky?"fc-sticky":""].join(" "),ref:Jt},Rn))))}}let Au=(()=>{class o extends J{constructor(l,g){super(l,g),this.initialNowDate=zo(g.options.now,g.dateEnv),this.initialNowQueriedMs=(new Date).valueOf(),this.state=this.computeTiming().currentState}render(){let{props:l,state:g}=this;return l.children(g.nowDate,g.todayRange)}componentDidMount(){this.setTimeout()}componentDidUpdate(l){l.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout()}computeTiming(){let{props:l,context:g}=this,C=at(this.initialNowDate,(new Date).valueOf()-this.initialNowQueriedMs),x=g.dateEnv.startOf(C,l.unit),ne=g.dateEnv.add(x,bn(1,l.unit)),Ae=ne.valueOf()-C.valueOf();return Ae=Math.min(864e5,Ae),{currentState:{nowDate:x,todayRange:Tc(x)},nextState:{nowDate:ne,todayRange:Tc(ne)},waitMs:Ae}}setTimeout(){let{nextState:l,waitMs:g}=this.computeTiming();this.timeoutId=setTimeout(()=>{this.setState(l,()=>{this.setTimeout()})},g)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}return o.contextType=re,o})();function Tc(o){let r=Tn(o);return{start:r,end:be(r,1)}}class aa extends Xe{constructor(){super(...arguments),this.createDayHeaderFormatter=Mn(Pl)}render(){let{context:r}=this,{dates:l,dateProfile:g,datesRepDistinctDays:C,renderIntro:x}=this.props,ne=this.createDayHeaderFormatter(r.options.dayHeaderFormat,C,l.length);return L(Au,{unit:"day"},(Ae,We)=>L("tr",{role:"row"},x&&x("day"),l.map(rt=>C?L(yu,{key:rt.toISOString(),date:rt,dateProfile:g,todayRange:We,colCnt:l.length,dayHeaderFormat:ne}):L(Du,{key:rt.getUTCDay(),dow:rt.getUTCDay(),dayHeaderFormat:ne}))))}}function Pl(o,r,l){return o||function Ol(o,r){return Mr(!o||r>10?{weekday:"short"}:r>1?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"})}(r,l)}class Rl{constructor(r,l){let g=r.start,{end:C}=r,x=[],ne=[],Ae=-1;for(;g<C;)l.isHiddenDay(g)?x.push(Ae+.5):(Ae+=1,x.push(Ae),ne.push(g)),g=be(g,1);this.dates=ne,this.indices=x,this.cnt=ne.length}sliceRange(r){let l=this.getDateDayIndex(r.start),g=this.getDateDayIndex(be(r.end,-1)),C=Math.max(0,l),x=Math.min(this.cnt-1,g);return C=Math.ceil(C),x=Math.floor(x),C<=x?{firstIndex:C,lastIndex:x,isStart:l===C,isEnd:g===x}:null}getDateDayIndex(r){let{indices:l}=this,g=Math.floor(Yt(this.dates[0],r));return g<0?l[0]-1:g>=l.length?l[l.length-1]+1:l[g]}}class bc{constructor(r,l){let C,x,ne,{dates:g}=r;if(l){for(x=g[0].getUTCDay(),C=1;C<g.length&&g[C].getUTCDay()!==x;C+=1);ne=Math.ceil(g.length/C)}else ne=1,C=g.length;this.rowCnt=ne,this.colCnt=C,this.daySeries=r,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let r=[];for(let l=0;l<this.rowCnt;l+=1){let g=[];for(let C=0;C<this.colCnt;C+=1)g.push(this.buildCell(l,C));r.push(g)}return r}buildCell(r,l){let g=this.daySeries.dates[r*this.colCnt+l];return{key:g.toISOString(),date:g}}buildHeaderDates(){let r=[];for(let l=0;l<this.colCnt;l+=1)r.push(this.cells[0][l].date);return r}sliceRange(r){let{colCnt:l}=this,g=this.daySeries.sliceRange(r),C=[];if(g){let{firstIndex:x,lastIndex:ne}=g,Ae=x;for(;Ae<=ne;){let We=Math.floor(Ae/l),rt=Math.min((We+1)*l,ne+1);C.push({row:We,firstCol:Ae%l,lastCol:(rt-1)%l,isStart:g.isStart&&Ae===x,isEnd:g.isEnd&&rt-1===ne}),Ae=rt}}return C}}class Mc{constructor(){this.sliceBusinessHours=Mn(this._sliceBusinessHours),this.sliceDateSelection=Mn(this._sliceDateSpan),this.sliceEventStore=Mn(this._sliceEventStore),this.sliceEventDrag=Mn(this._sliceInteraction),this.sliceEventResize=Mn(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(r,l,g,C,...x){let{eventUiBases:ne}=r,Ae=this.sliceEventStore(r.eventStore,ne,l,g,...x);return{dateSelectionSegs:this.sliceDateSelection(r.dateSelection,ne,C,...x),businessHourSegs:this.sliceBusinessHours(r.businessHours,l,g,C,...x),fgEventSegs:Ae.fg,bgEventSegs:Ae.bg,eventDrag:this.sliceEventDrag(r.eventDrag,ne,l,g,...x),eventResize:this.sliceEventResize(r.eventResize,ne,l,g,...x),eventSelection:r.eventSelection}}sliceNowDate(r,l,...g){return this._sliceDateSpan({range:{start:r,end:at(r,1)},allDay:!1},{},l,...g)}_sliceBusinessHours(r,l,g,C,...x){return r?this._sliceEventStore(cr(r,wl(l,Boolean(g)),C),{},l,g,...x).bg:[]}_sliceEventStore(r,l,g,C,...x){if(r){let ne=Cs(r,l,wl(g,Boolean(C)),C);return{bg:this.sliceEventRanges(ne.bg,x),fg:this.sliceEventRanges(ne.fg,x)}}return{bg:[],fg:[]}}_sliceInteraction(r,l,g,C,...x){if(!r)return null;let ne=Cs(r.mutatedEvents,l,wl(g,Boolean(C)),C);return{segs:this.sliceEventRanges(ne.fg,x),affectedInstances:r.affectedEvents.instances,isEvent:r.isEvent}}_sliceDateSpan(r,l,g,...C){if(!r)return[];let x=function yr(o,r,l){let g=Br({editable:!1},l),C=q(g.refined,g.extra,"",o.allDay,!0,l);return{def:C,ui:Ss(C,r),instance:yn(C.defId,o.range),range:o.range,isStart:!0,isEnd:!0}}(r,l,g),ne=this.sliceRange(r.range,...C);for(let Ae of ne)Ae.eventRange=x;return ne}sliceEventRanges(r,l){let g=[];for(let C of r)g.push(...this.sliceEventRange(C,l));return g}sliceEventRange(r,l){let g=r.range;this.forceDayIfListItem&&"list-item"===r.ui.display&&(g={start:g.start,end:be(g.start,1)});let C=this.sliceRange(g,...l);for(let x of C)x.eventRange=r,x.isStart=r.isStart&&x.isStart,x.isEnd=r.isEnd&&x.isEnd;return C}}function wl(o,r){let l=o.activeRange;return r?l:{start:at(l.start,o.slotMinTime.milliseconds),end:at(l.end,o.slotMaxTime.milliseconds-864e5)}}function Ic(o,r,l){let{instances:g}=o.mutatedEvents;for(let C in g)if(!xs(r.validRange,g[C].range))return!1;return nl({eventDrag:o},l)}function Oc(o,r,l){return!!xs(r.validRange,o.range)&&nl({dateSelection:o},l)}function nl(o,r){let l=r.getCurrentData(),g=Object.assign({businessHours:l.businessHours,dateSelection:"",eventStore:l.eventStore,eventUiBases:l.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},o);return(r.pluginHooks.isPropsValid||Zu)(g,r)}function Zu(o,r,l={},g){return!(o.eventDrag&&!function Cu(o,r,l,g){let C=r.getCurrentData(),x=o.eventDrag,ne=x.mutatedEvents,Ae=ne.defs,We=ne.instances,rt=as(Ae,x.isEvent?o.eventUiBases:{"":C.selectionConfig});g&&(rt=tr(rt,g));let St=function rc(o,r){return{defs:o.defs,instances:Xr(o.instances,l=>!r[l.instanceId])}}(o.eventStore,x.affectedEvents.instances),jt=St.defs,Xt=St.instances,Jt=as(jt,o.eventUiBases);for(let Rn in We){let Qn=We[Rn],Yn=Qn.range,hr=rt[Qn.defId],mi=Ae[Qn.defId];if(!Nl(hr.constraints,Yn,St,o.businessHours,r))return!1;let{eventOverlap:zi}=r.options,Ki="function"==typeof zi?zi:null;for(let vs in Xt){let Bi=Xt[vs];if(xi(Yn,Bi.range)&&(!1===Jt[Bi.defId].overlap&&x.isEvent||!1===hr.overlap||Ki&&!Ki(new Qr(r,jt[Bi.defId],Bi),new Qr(r,mi,Qn))))return!1}let fo=C.eventStore;for(let vs of hr.allows){let Tu,Bi=Object.assign(Object.assign({},l),{range:Qn.range,allDay:mi.allDay}),Ti=fo.defs[mi.defId],Ld=fo.instances[Rn];if(Tu=Ti?new Qr(r,Ti,Ld):new Qr(r,mi),!vs(vi(Bi,r),Tu))return!1}}return!0}(o,r,l,g)||o.dateSelection&&!function Ll(o,r,l,g){let C=o.eventStore,x=C.defs,ne=C.instances,Ae=o.dateSelection,We=Ae.range,{selectionConfig:rt}=r.getCurrentData();if(g&&(rt=g(rt)),!Nl(rt.constraints,We,C,o.businessHours,r))return!1;let{selectOverlap:St}=r.options,jt="function"==typeof St?St:null;for(let Xt in ne){let Jt=ne[Xt];if(xi(We,Jt.range)&&(!1===rt.overlap||jt&&!jt(new Qr(r,x[Jt.defId],Jt),null)))return!1}for(let Xt of rt.allows)if(!Xt(vi(Object.assign(Object.assign({},l),Ae),r),null))return!1;return!0}(o,r,l,g))}function Nl(o,r,l,g,C){for(let x of o)if(!Su(Pc(x,r,l,g,C),r))return!1;return!0}function Pc(o,r,l,g,C){return"businessHours"===o?Qs(cr(g,r,C)):"string"==typeof o?Qs(Dn(l,x=>x.groupId===o)):"object"==typeof o&&o?Qs(cr(o,r,C)):[]}function Qs(o){let{instances:r}=o,l=[];for(let g in r)l.push(r[g].range);return l}function Su(o,r){for(let l of o)if(xs(l,r))return!0;return!1}const la=/^(visible|hidden)$/;class wa extends Xe{constructor(){super(...arguments),this.handleEl=r=>{this.el=r,Pn(this.props.elRef,r)}}render(){let{props:r}=this,{liquid:l,liquidIsAbsolute:g}=r,C=l&&g,x=["fc-scroller"];return l&&x.push(g?"fc-scroller-liquid-absolute":"fc-scroller-liquid"),L("div",{ref:this.handleEl,className:x.join(" "),style:{overflowX:r.overflowX,overflowY:r.overflowY,left:C&&-(r.overcomeLeft||0)||"",right:C&&-(r.overcomeRight||0)||"",bottom:C&&-(r.overcomeBottom||0)||"",marginLeft:!C&&-(r.overcomeLeft||0)||"",marginRight:!C&&-(r.overcomeRight||0)||"",marginBottom:!C&&-(r.overcomeBottom||0)||"",maxHeight:r.maxHeight||""}},r.children)}needsXScrolling(){if(la.test(this.props.overflowX))return!1;let{el:r}=this,l=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:g}=r;for(let C=0;C<g.length;C+=1)if(g[C].getBoundingClientRect().width>l)return!0;return!1}needsYScrolling(){if(la.test(this.props.overflowY))return!1;let{el:r}=this,l=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:g}=r;for(let C=0;C<g.length;C+=1)if(g[C].getBoundingClientRect().height>l)return!0;return!1}getXScrollbarWidth(){return la.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return la.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class xl{constructor(r){this.masterCallback=r,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(l,g)=>{let{depths:C,currentMap:x}=this,ne=!1,Ae=!1;null!==l?(ne=g in x,x[g]=l,C[g]=(C[g]||0)+1,Ae=!0):(C[g]-=1,C[g]||(delete x[g],delete this.callbackMap[g],ne=!0)),this.masterCallback&&(ne&&this.masterCallback(null,String(g)),Ae&&this.masterCallback(l,String(g)))}}createRef(r){let l=this.callbackMap[r];return l||(l=this.callbackMap[r]=g=>{this.handleValue(g,String(r))}),l}collect(r,l,g){return function Lr(o,r=0,l,g=1){let C=[];null==l&&(l=Object.keys(o).length);for(let x=r;x<l;x+=g){let ne=o[x];void 0!==ne&&C.push(ne)}return C}(this.currentMap,r,l,g)}getAll(){return pr(this.currentMap)}}function rl(o,r){return o.liquid&&r.liquid}function u(o,r){return sr(o,r,rr)}function h(o,r){let l=[];for(let g of o){let C=g.span||1;for(let x=0;x<C;x+=1)l.push(L("col",{style:{width:"shrink"===g.width?D(r):g.width||"",minWidth:g.minWidth||""}}))}return L("colgroup",{},...l)}function D(o){return o??4}function Ce(o,r){let l=["fc-scrollgrid-section",`fc-scrollgrid-section-${o.type}`,o.className];return r&&o.liquid&&null==o.maxHeight&&l.push("fc-scrollgrid-section-liquid"),o.isSticky&&l.push("fc-scrollgrid-section-sticky"),l}function Fe(o){return L("div",{className:"fc-scrollgrid-sticky-shim",style:{width:o.clientWidth,minWidth:o.tableMinWidth}})}function pt(o){let{stickyHeaderDates:r}=o;return(null==r||"auto"===r)&&(r="auto"===o.height||"auto"===o.viewHeight),r}function Rt(o){let{stickyFooterScrollbar:r}=o;return(null==r||"auto"===r)&&(r="auto"===o.height||"auto"===o.viewHeight),r}class lt extends Xe{constructor(){super(...arguments),this.processCols=Mn(r=>r,u),this.renderMicroColGroup=Mn(h),this.scrollerRefs=new xl,this.scrollerElRefs=new xl(this._handleScrollerEl.bind(this)),this.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},this.handleSizing=()=>{this.safeSetState(Object.assign({shrinkWidth:this.computeShrinkWidth()},this.computeScrollerDims()))}}render(){let{props:r,state:l,context:g}=this,C=r.sections||[],x=this.processCols(r.cols),ne=this.renderMicroColGroup(x,l.shrinkWidth),Ae=function ie(o,r){let l=["fc-scrollgrid",r.theme.getClass("table")];return o&&l.push("fc-scrollgrid-liquid"),l}(r.liquid,g);r.collapsibleWidth&&Ae.push("fc-scrollgrid-collapsible");let St,We=C.length,rt=0,jt=[],Xt=[],Jt=[];for(;rt<We&&"header"===(St=C[rt]).type;)jt.push(this.renderSection(St,ne,!0)),rt+=1;for(;rt<We&&"body"===(St=C[rt]).type;)Xt.push(this.renderSection(St,ne,!1)),rt+=1;for(;rt<We&&"footer"===(St=C[rt]).type;)Jt.push(this.renderSection(St,ne,!0)),rt+=1;let Rn=!oo();const Qn={role:"rowgroup"};return L("table",{role:"grid",className:Ae.join(" "),style:{height:r.height}},Boolean(!Rn&&jt.length)&&L("thead",Qn,...jt),Boolean(!Rn&&Xt.length)&&L("tbody",Qn,...Xt),Boolean(!Rn&&Jt.length)&&L("tfoot",Qn,...Jt),Rn&&L("tbody",Qn,...jt,...Xt,...Jt))}renderSection(r,l,g){return"outerContent"in r?L(Se,{key:r.key},r.outerContent):L("tr",{key:r.key,role:"presentation",className:Ce(r,this.props.liquid).join(" ")},this.renderChunkTd(r,l,r.chunk,g))}renderChunkTd(r,l,g,C){if("outerContent"in g)return g.outerContent;let{props:x}=this,{forceYScrollbars:ne,scrollerClientWidths:Ae,scrollerClientHeights:We}=this.state,rt=function Lo(o,r){return null!=r.maxHeight||rl(o,r)}(x,r),St=rl(x,r),jt=x.liquid?ne?"scroll":rt?"auto":"hidden":"visible",Xt=r.key,Jt=function m(o,r,l,g){let{expandRows:C}=l;return"function"==typeof r.content?r.content(l):L("table",{role:"presentation",className:[r.tableClassName,o.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:l.tableMinWidth,width:l.clientWidth,height:C?l.clientHeight:""}},l.tableColGroupNode,L(g?"thead":"tbody",{role:"presentation"},"function"==typeof r.rowContent?r.rowContent(l):r.rowContent))}(r,g,{tableColGroupNode:l,tableMinWidth:"",clientWidth:x.collapsibleWidth||void 0===Ae[Xt]?null:Ae[Xt],clientHeight:void 0!==We[Xt]?We[Xt]:null,expandRows:r.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},C);return L(C?"th":"td",{ref:g.elRef,role:"presentation"},L("div",{className:"fc-scroller-harness"+(St?" fc-scroller-harness-liquid":"")},L(wa,{ref:this.scrollerRefs.createRef(Xt),elRef:this.scrollerElRefs.createRef(Xt),overflowY:jt,overflowX:x.liquid?"hidden":"visible",maxHeight:r.maxHeight,liquid:St,liquidIsAbsolute:!0},Jt)))}_handleScrollerEl(r,l){let g=function qt(o,r){for(let l of o)if(l.key===r)return l;return null}(this.props.sections,l);g&&Pn(g.chunk.scrollerElRef,r)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return function K(o){for(let r of o)if("shrink"===r.width)return!0;return!1}(this.props.cols)?function Fl(o){let r=function it(o,r){let l=o instanceof HTMLElement?[o]:o,g=[];for(let C=0;C<l.length;C+=1){let x=l[C].querySelectorAll(r);for(let ne=0;ne<x.length;ne+=1)g.push(x[ne])}return g}(o,".fc-scrollgrid-shrink"),l=0;for(let g of r)l=Math.max(l,Ge(g));return Math.ceil(l)}(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let r=function hl(){return Os||(Os=function Tr(){let o=document.createElement("div");o.style.overflow="scroll",o.style.position="absolute",o.style.top="-9999px",o.style.left="-9999px",document.body.appendChild(o);let r=bo(o);return document.body.removeChild(o),r}()),Os}(),{scrollerRefs:l,scrollerElRefs:g}=this,C=!1,x={},ne={};for(let Ae in l.currentMap){let We=l.currentMap[Ae];if(We&&We.needsYScrolling()){C=!0;break}}for(let Ae of this.props.sections){let We=Ae.key,rt=g.currentMap[We];if(rt){let St=rt.parentNode;x[We]=Math.floor(St.getBoundingClientRect().width-(C?r.y:0)),ne[We]=Math.floor(St.getBoundingClientRect().height)}}return{forceYScrollbars:C,scrollerClientWidths:x,scrollerClientHeights:ne}}}lt.addStateEquality({scrollerClientWidths:rr,scrollerClientHeights:rr});class rn extends Xe{constructor(){super(...arguments),this.elRef=ce()}render(){let{props:r,context:l}=this,{options:g}=l,{seg:C}=r,{eventRange:x}=C,{ui:ne}=x,Ae={event:new Qr(l,x.def,x.instance),view:l.viewApi,timeText:r.timeText,textColor:ne.textColor,backgroundColor:ne.backgroundColor,borderColor:ne.borderColor,isDraggable:!r.disableDragging&&yo(C,l),isStartResizable:!r.disableResizing&&Eo(C,l),isEndResizable:!r.disableResizing&&(o=C,o.isEnd&&o.eventRange.ui.durationEditable),isMirror:Boolean(r.isDragging||r.isResizing||r.isDateSelecting),isStart:Boolean(C.isStart),isEnd:Boolean(C.isEnd),isPast:Boolean(r.isPast),isFuture:Boolean(r.isFuture),isToday:Boolean(r.isToday),isSelected:Boolean(r.isSelected),isDragging:Boolean(r.isDragging),isResizing:Boolean(r.isResizing)},We=function Q(o){let r=["fc-event"];return o.isMirror&&r.push("fc-event-mirror"),o.isDraggable&&r.push("fc-event-draggable"),(o.isStartResizable||o.isEndResizable)&&r.push("fc-event-resizable"),o.isDragging&&r.push("fc-event-dragging"),o.isResizing&&r.push("fc-event-resizing"),o.isSelected&&r.push("fc-event-selected"),o.isStart&&r.push("fc-event-start"),o.isEnd&&r.push("fc-event-end"),o.isPast&&r.push("fc-event-past"),o.isToday&&r.push("fc-event-today"),o.isFuture&&r.push("fc-event-future"),r}(Ae).concat(ne.classNames);var o;return L(js,{hookProps:Ae,classNames:g.eventClassNames,content:g.eventContent,defaultContent:r.defaultContent,didMount:g.eventDidMount,willUnmount:g.eventWillUnmount,elRef:this.elRef},(rt,St,jt,Xt)=>r.children(rt,We.concat(St),jt,Xt,Ae))}componentDidMount(){to(this.elRef.current,this.props.seg)}componentDidUpdate(r){let{seg:l}=this.props;l!==r.seg&&to(this.elRef.current,l)}}class Zt extends Xe{render(){let{props:r,context:l}=this,{seg:g}=r,x=V(g,l.options.eventTimeFormat||r.defaultTimeFormat,l,r.defaultDisplayEventTime,r.defaultDisplayEventEnd);return L(rn,{seg:g,timeText:x,disableDragging:r.disableDragging,disableResizing:r.disableResizing,defaultContent:r.defaultContent||on,isDragging:r.isDragging,isResizing:r.isResizing,isDateSelecting:r.isDateSelecting,isSelected:r.isSelected,isPast:r.isPast,isFuture:r.isFuture,isToday:r.isToday},(ne,Ae,We,rt,St)=>L("a",Object.assign({className:r.extraClassNames.concat(Ae).join(" "),style:{borderColor:St.borderColor,backgroundColor:St.backgroundColor},ref:ne},nt(g,l)),L("div",{className:"fc-event-main",ref:We,style:{color:St.textColor}},rt),St.isStartResizable&&L("div",{className:"fc-event-resizer fc-event-resizer-start"}),St.isEndResizable&&L("div",{className:"fc-event-resizer fc-event-resizer-end"})))}}function on(o){return L("div",{className:"fc-event-main-frame"},o.timeText&&L("div",{className:"fc-event-time"},o.timeText),L("div",{className:"fc-event-title-container"},L("div",{className:"fc-event-title fc-sticky"},o.event.title||L(Se,null,"\xa0"))))}const wn=o=>L(re.Consumer,null,r=>{let{options:l}=r,g={isAxis:o.isAxis,date:r.dateEnv.toDate(o.date),view:r.viewApi};return L(js,{hookProps:g,classNames:l.nowIndicatorClassNames,content:l.nowIndicatorContent,didMount:l.nowIndicatorDidMount,willUnmount:l.nowIndicatorWillUnmount},o.children)}),xn=Mr({day:"numeric"});class Vn extends Xe{render(){let{props:r,context:l}=this,{options:g}=l,C=br({date:r.date,dateProfile:r.dateProfile,todayRange:r.todayRange,showDayNumber:r.showDayNumber,extraProps:r.extraHookProps,viewApi:l.viewApi,dateEnv:l.dateEnv});return L(Xl,{hookProps:C,content:g.dayCellContent,defaultContent:r.defaultContent},r.children)}}function br(o){let{date:r,dateEnv:l}=o,g=Is(r,o.todayRange,null,o.dateProfile);return Object.assign(Object.assign(Object.assign({date:l.toDate(r),view:o.viewApi},g),{dayNumberText:o.showDayNumber?l.format(r,xn):""}),o.extraProps)}class Vr extends Xe{constructor(){super(...arguments),this.refineHookProps=Ir(br),this.normalizeClassNames=eu()}render(){let{props:r,context:l}=this,{options:g}=l,C=this.refineHookProps({date:r.date,dateProfile:r.dateProfile,todayRange:r.todayRange,showDayNumber:r.showDayNumber,extraProps:r.extraHookProps,viewApi:l.viewApi,dateEnv:l.dateEnv}),x=Gs(C,l.theme).concat(C.isDisabled?[]:this.normalizeClassNames(g.dayCellClassNames,C)),ne=C.isDisabled?{}:{"data-date":Qt(r.date)};return L(Mo,{hookProps:C,didMount:g.dayCellDidMount,willUnmount:g.dayCellWillUnmount,elRef:r.elRef},Ae=>r.children(Ae,x,ne,C.isDisabled))}}function kr(o){return L("div",{className:`fc-${o}`})}const Xs=o=>L(rn,{defaultContent:Wi,seg:o.seg,timeText:"",disableDragging:!0,disableResizing:!0,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:o.isPast,isFuture:o.isFuture,isToday:o.isToday},(r,l,g,C,x)=>L("div",{ref:r,className:["fc-bg-event"].concat(l).join(" "),style:{backgroundColor:x.backgroundColor}},C));function Wi(o){let{title:r}=o.event;return r&&L("div",{className:"fc-event-title"},o.event.title)}const oi=o=>L(re.Consumer,null,r=>{let{dateEnv:l,options:g}=r,{date:C}=o,x=g.weekNumberFormat||o.defaultFormat,ne=l.computeWeekNumber(C),Ae=l.format(C,x);return L(js,{hookProps:{num:ne,text:Ae,date:C},classNames:g.weekNumberClassNames,content:g.weekNumberContent,defaultContent:ei,didMount:g.weekNumberDidMount,willUnmount:g.weekNumberWillUnmount},o.children)});function ei(o){return o.text}class Zs extends Xe{constructor(){super(...arguments),this.state={titleId:wt()},this.handleRootEl=r=>{this.rootEl=r,this.props.elRef&&Pn(this.props.elRef,r)},this.handleDocumentMouseDown=r=>{const l=sn(r);this.rootEl.contains(l)||this.handleCloseClick()},this.handleDocumentKeyDown=r=>{"Escape"===r.key&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:r}=this.props;r&&r()}}render(){let{theme:r,options:l}=this.context,{props:g,state:C}=this,x=["fc-popover",r.getClass("popover")].concat(g.extraClassNames||[]);return ct(L("div",Object.assign({id:g.id,className:x.join(" "),"aria-labelledby":C.titleId},g.extraAttrs,{ref:this.handleRootEl}),L("div",{className:"fc-popover-header "+r.getClass("popoverHeader")},L("span",{className:"fc-popover-title",id:C.titleId},g.title),L("span",{className:"fc-popover-close "+r.getIconClass("close"),title:l.closeHint,onClick:this.handleCloseClick})),L("div",{className:"fc-popover-body "+r.getClass("popoverContent")},g.children)),g.parentEl)}componentDidMount(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()}componentWillUnmount(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)}updateSize(){let{isRtl:r}=this.context,{alignmentEl:l,alignGridTop:g}=this.props,{rootEl:C}=this,x=function Ql(o){let r=Hs(o),l=o.getBoundingClientRect();for(let g of r){let C=qo(l,g.getBoundingClientRect());if(!C)return null;l=C}return l}(l);if(x){let ne=C.getBoundingClientRect(),Ae=g?me(l,".fc-scrollgrid").getBoundingClientRect().top:x.top,We=r?x.right-ne.width:x.left;Ae=Math.max(Ae,10),We=Math.min(We,document.documentElement.clientWidth-10-ne.width),We=Math.max(We,10);let rt=C.offsetParent.getBoundingClientRect();Ft(C,{top:Ae-rt.top,left:We-rt.left})}}}class Bl extends vn{constructor(){super(...arguments),this.handleRootEl=r=>{this.rootEl=r,r?this.context.registerInteractiveComponent(this,{el:r,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)}}render(){let{options:r,dateEnv:l}=this.context,{props:g}=this,{startDate:C,todayRange:x,dateProfile:ne}=g,Ae=l.format(C,r.dayPopoverFormat);return L(Vr,{date:C,dateProfile:ne,todayRange:x,elRef:this.handleRootEl},(We,rt,St)=>L(Zs,{elRef:We,id:g.id,title:Ae,extraClassNames:["fc-more-popover"].concat(rt),extraAttrs:St,parentEl:g.parentEl,alignmentEl:g.alignmentEl,alignGridTop:g.alignGridTop,onClose:g.onClose},L(Vn,{date:C,dateProfile:ne,todayRange:x},(jt,Xt)=>Xt&&L("div",{className:"fc-more-popover-misc",ref:jt},Xt)),g.children))}queryHit(r,l,g,C){let{rootEl:x,props:ne}=this;return r>=0&&r<g&&l>=0&&l<C?{dateProfile:ne.dateProfile,dateSpan:Object.assign({allDay:!0,range:{start:ne.startDate,end:ne.endDate}},ne.extraDateSpan),dayEl:x,rect:{left:0,top:0,right:g,bottom:C},layer:1}:null}}class La extends Xe{constructor(){super(...arguments),this.linkElRef=ce(),this.state={isPopoverOpen:!1,popoverId:wt()},this.handleClick=r=>{let{props:l,context:g}=this,{moreLinkClick:C}=g.options,x=kl(l).start;function ne(Ae){let{def:We,instance:rt,range:St}=Ae.eventRange;return{event:new Qr(g,We,rt),start:g.dateEnv.toDate(St.start),end:g.dateEnv.toDate(St.end),isStart:Ae.isStart,isEnd:Ae.isEnd}}"function"==typeof C&&(C=C({date:x,allDay:Boolean(l.allDayDate),allSegs:l.allSegs.map(ne),hiddenSegs:l.hiddenSegs.map(ne),jsEvent:r,view:g.viewApi})),C&&"popover"!==C?"string"==typeof C&&g.calendarApi.zoomTo(x,C):this.setState({isPopoverOpen:!0})},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:r,state:l}=this;return L(re.Consumer,null,g=>{let{viewApi:C,options:x,calendarApi:ne}=g,{moreLinkText:Ae}=x,{moreCnt:We}=r,rt=kl(r),St="function"==typeof Ae?Ae.call(ne,We):`+${We} ${Ae}`,jt=an(x.moreLinkHint,[We],St),Xt={num:We,shortText:`+${We}`,text:St,view:C};return L(Se,null,Boolean(r.moreCnt)&&L(js,{elRef:this.linkElRef,hookProps:Xt,classNames:x.moreLinkClassNames,content:x.moreLinkContent,defaultContent:r.defaultContent||Js,didMount:x.moreLinkDidMount,willUnmount:x.moreLinkWillUnmount},(Jt,Rn,Qn,Yn)=>r.children(Jt,["fc-more-link"].concat(Rn),Qn,Yn,this.handleClick,jt,l.isPopoverOpen,l.isPopoverOpen?l.popoverId:"")),l.isPopoverOpen&&L(Bl,{id:l.popoverId,startDate:rt.start,endDate:rt.end,dateProfile:r.dateProfile,todayRange:r.todayRange,extraDateSpan:r.extraDateSpan,parentEl:this.parentEl,alignmentEl:r.alignmentElRef.current,alignGridTop:r.alignGridTop,onClose:this.handlePopoverClose},r.popoverContent()))})}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkElRef.current&&(this.parentEl=me(this.linkElRef.current,".fc-view-harness"))}}function Js(o){return o.text}function kl(o){if(o.allDayDate)return{start:o.allDayDate,end:be(o.allDayDate,1)};let{hiddenSegs:r}=o;return{start:Ul(r),end:Nn(r)}}function Ul(o){return o.reduce(An).eventRange.range.start}function An(o,r){return o.eventRange.range.start<r.eventRange.range.start?o:r}function Nn(o){return o.reduce(Un).eventRange.range.end}function Un(o,r){return o.eventRange.range.end>r.eventRange.range.end?o:r}},40199:(ut,fe,d)=>{"use strict";d.d(fe,{j:()=>je});var s=d(70655),c=d(89867);function A(de){this.message=de}(A.prototype=new Error).name="InvalidCharacterError";var w=typeof window<"u"&&window.atob&&window.atob.bind(window)||function(de){var me=String(de).replace(/=+$/,"");if(me.length%4==1)throw new A("'atob' failed: The string to be decoded is not correctly encoded.");for(var Ne,it,yt=0,Gt=0,Ft="";it=me.charAt(Gt++);~it&&(Ne=yt%4?64*Ne+it:it,yt++%4)?Ft+=String.fromCharCode(255&Ne>>(-2*yt&6)):0)it="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(it);return Ft};function te(de){this.message=de}(te.prototype=new Error).name="InvalidTokenError";var p=d(71661),_=d(50457),v=d(18505),T=d(54004),W=d(35300),P=d(31288),B=d(343),G=d(52925),U=d(82978),Z=d(30804);const ue=G.b,F=U.v,Y=[{id:1,icon:Z.C.PAINEL_PRINCIPAL,link:`${ue.CURSO}`,badge:"openedDisciplines",type:"student",text:"Curso"},{id:2,icon:Z.C.PAINEL_CALENDARIO,link:`${ue.CALENDARIO_ESTUDANTE}`,badge:"calendar",type:"student",text:"Calend\xe1rio"},{id:3,icon:Z.C.PAINEL_CHAT,link:`${ue.COMUNICACAO}`,badge:"unreadChatMessages",type:"student",text:"Comunica\xe7\xe3o"}],ee=[{id:1,icon:Z.D.MENSAGENS,link:`${ue.TUTOR}/${ue.COMUNICACAO}`,badge:"allTutorMessages",type:"tutor",text:"Comunica\xe7\xe3o",permissions:[F.RESPONDER_CHAT_COORDENADOR,F.RESPONDER_CHAT_FINANCEIRO,F.RESPONDER_CHAT_SECRETARIA]},{id:2,icon:Z.D.ATIVIDADES_PRATICAS,link:`${ue.TUTOR}/${ue.ATIVIDADES_TUTOR}`,badge:"practicalActivities",type:"tutor",text:"Atividades pr\xe1ticas"},{id:3,icon:Z.D.PROVA,link:`${ue.TUTOR}/${ue.PROVA}`,badge:"questions",type:"tutor",text:"Provas para corrigir"},{id:5,icon:Z.D.AVISOS,link:`${ue.TUTOR}/${ue.ALERTAS}`,badge:"alerts",type:"tutor",text:"Alertas"},{id:6,icon:Z.D.DISCIPLINA,link:`${ue.TUTOR}/${ue.DISCIPLINA}`,badge:"",type:"tutor",text:"Minhas disciplinas"},{id:7,icon:Z.D.MEUS_ALUNOS,link:`${ue.TUTOR}/${ue.ALUNOS}`,badge:"",type:"tutor",text:"Meus alunos"},{id:9,icon:Z.C.LIVRO_DIDATICO,link:`${ue.ACESSO_LIVROS}`,badge:"",type:"permisioned",permissions:[F.ACESSO_AOS_LIVROS],text:"Acesso aos livros"},{id:10,icon:Z.D.GERIR_MATRICULA,link:`${ue.GERIR_MATRICULA}`,badge:"",type:"permisioned",permissions:[F.PRORROGACAO_DE_MATRICULA,F.CANCELAR_MATRICULA,F.TRANCAR_MATRICULA],text:"Gerir matr\xedcula"},{id:11,icon:Z.D.GERIR_FINANCEIRO,link:`${ue.GERIR_FINANCEIRO}`,badge:"",permissions:[F.RENEGOCIAR_PAGAMENTO],type:"permisioned",text:"Gerir financeiro"},{id:12,icon:Z.D.GERIR_PERFIS,link:`${ue.GERIR_PERFIS}`,badge:"",permissions:[F.GERENCIAR_PERFIS],type:"permisioned",text:"Gerir perfis"},{id:13,icon:Z.D.GERIR_AVALIACAO_DE_REACAO,link:`${ue.GERIR_AVALIACAO_DE_REACAO}`,badge:"",permissions:[],type:"permisioned",text:"Gerir avalia\xe7\xe3o de rea\xe7\xe3o"},{id:14,icon:Z.D.GERIR_DISCIPLINAS_TUTOR,link:`${ue.GERIR_DISCIPLINAS_TUTOR}`,badge:"",permissions:[],type:"permisioned",text:"Gerir disciplinas tutor"},{id:15,icon:Z.D.DISCIPLINA,link:`${ue.GERIR_USUARIOS}`,badge:"",permissions:[U.v.CADASTRAR_USUARIO,U.v.LISTAR_USUARIOS],type:"permisioned",text:"Gerir Usu\xe1rios"},{id:16,icon:Z.D.MEUS_ALUNOS,link:`${ue.MATRICULAR_ALUNOS}`,badge:"",permissions:[],type:"permisioned",text:"Matricular em lote"},{id:17,icon:Z.D.GERIR_DISCIPLINAS_TUTOR,link:`${ue.PESQUISAR_MATRICULAS}`,badge:"",permissions:[U.v.CONSULTAR_ALUNOS],type:"permisioned",text:"Consultar alunos"},{id:18,icon:Z.D.MEUS_ALUNOS,link:`${ue.GROUP}`,badge:"",permissions:[U.v.ADICIONAR_PESSOA_AO_GRUPO,U.v.ALTERAR_GRUPO,U.v.CONSULTAR_GRUPO,U.v.CRIAR_GRUPO,U.v.EXCLUIR_GRUPO,U.v.REMOVER_PESSOA_DO_GRUPO],type:"permisioned",text:"Gerir grupos"},{id:19,icon:Z.D.ATIVIDADES_PRATICAS,link:`${ue.RELATORIOS}`,badge:"",permissions:[U.v.GERAR_RELATORIO_DE_CONTEUDO,U.v.GERAR_RELATORIO_ACADEMICO,U.v.GERAR_RELATORIO_FINANCEIRO,U.v.GERAR_RELATORIO_DE_SERVICOS_CONTINUADOS],type:"permisioned",text:"Relat\xf3rios"},{id:20,icon:Z.D.COMPONENTE_CURRICULAR,link:`${ue.GERIR_COMPONENTE_CURRICULAR}`,badge:"",permissions:[],type:"permisioned",text:"Gerir componente curricular"},{id:20,icon:Z.D.CGC,link:`${ue.ATUALIZAR_CGC}`,badge:"",permissions:[],type:"permisioned",text:"Atualizar CGC"},{id:21,icon:Z.D.GERIR_INSTITUICOES,link:`${ue.GERIR_INSTITUICOES}`,badge:"",permissions:[U.v.GERIR_ESCOLA,U.v.GERIR_POLO,U.v.GERIR_REDE],type:"permisioned",text:"Gerir institui\xe7\xf5es"},{id:22,icon:Z.D.GERIR_PROVAS,link:`${ue.AGENDAR_PROVAS}`,badge:"",permissions:[U.v.AGENDAR_PROVAS],type:"permisioned",text:"Gerir Provas"}];class oe{constructor(me){this.permissions=me,this.setIconsToShow(),this.setDefaultUrl()}setIconsToShow(){}setDefaultUrl(){}}class X extends oe{constructor(me){super(me),this.defaultUrl="/tutor/disciplina",this.roleType=P.Z.ADMINISTRADOR}setIconsToShow(){this.iconsToShow=ee}}class y extends oe{constructor(){super(...arguments),this.defaultUrl=`${G.b.CURSO}/${G.b.LISTA}`,this.roleType=P.Z.ALUNO}setIconsToShow(){this.iconsToShow=Y}}var k=d(25379);class $ extends oe{constructor(me){super(me),this.roleType=P.Z.COLABORADOR}setIconsToShow(){this.iconsToShow=ee.reduce((me,Ne)=>(0,k.xC)(Ne.permissions,this.permissions)?[...me,Ne]:me,[])}setDefaultUrl(){this.defaultUrl=this.iconsToShow[0]?.link}}class J extends oe{constructor(me){super(me),this.defaultUrl=`${G.b.TUTOR}/${G.b.DISCIPLINA}`,this.roleType=P.Z.TUTOR}setIconsToShow(){this.iconsToShow=ee.reduce((me,Ne)=>{const it="tutor"===Ne.type;return(0,k.xC)(Ne.permissions,this.permissions)||it?[...me,Ne]:me},[])}}var le=d(94650),ce=d(57990),Se=d(63690),Qe=d(34793);const ct=new Map([["administrador",{display:"Administrador",roleType:P.Z.ADMINISTRADOR}],["aluno",{display:"Aluno",roleType:P.Z.ALUNO}],["tutor",{display:"Tutor",roleType:P.Z.TUTOR}],["funcionario",{display:"Colaborador",roleType:P.Z.COLABORADOR}]]);var $t=d(65938);let $e=(()=>{class de{constructor(Ne,it,yt){this.router=Ne,this.ngZone=it,this.dialog=yt}navigateToDefaultRoleUrl(Ne){return this.ngZone.run(()=>this.router.navigateByUrl(Ne.defaultUrl))}isDoubleRole(Ne){return Ne.aluno&&this.getActivePermissions(Ne).length>1}getRoleType(Ne){return this.getActivePermissions(Ne).map(yt=>ct.get(yt))}getActivePermissions(Ne){return Object.keys(Ne).filter(it=>Ne[it]&&"boolean"==typeof Ne[it])}}return de.\u0275fac=function(Ne){return new(Ne||de)(le.LFG(Qe.F0),le.LFG(le.R0b),le.LFG($t.uw))},de.\u0275prov=le.Yz7({token:de,factory:de.\u0275fac,providedIn:"root"}),de})();var Et=d(82636);const ke=new c.Cp("auth");let je=class{constructor(me,Ne,it,yt,Gt,Ft,Vt){this.store=me,this.auth=Ne,this.bookService=it,this.router=yt,this.roleService=Gt,this.loadingBarService=Ft,this.ngZone=Vt}static isLoggedIn(me){return!!me&&!!me.lmsToken}static getDecodedToken(me){return me.decodedToken}static isAdmin(me){return me.decodedToken.administrador}static isStudent(me){return me.decodedToken.aluno}static isTutor(me){return me.decodedToken.tutor}static isFuncionario(me){return me.decodedToken.funcionario}static selectedRole(me){return me.selectedRole}static activeRoles(me){return me.activeRoles}static isFirstAccess(me){return me.isFirstAccess}static sistemaPagamento(me){return me.sistemaPagamento}authenticate({getState:me,setState:Ne},it){const yt=me();return this.auth.authenticate(it.payload).pipe((0,v.b)(Gt=>{const Ft=Gt.headers.get("LMS-Token"),Vt={user:Gt.headers.get("LMS-PessoaEmpresa")},sn=function I(de,me){if("string"!=typeof de)throw new te("Invalid token specified");var Ne=!0===(me=me||{}).header?0:1;try{return JSON.parse(function N(de){var me=de.replace(/-/g,"+").replace(/_/g,"/");switch(me.length%4){case 0:break;case 2:me+="==";break;case 3:me+="=";break;default:throw"Illegal base64url string!"}try{return decodeURIComponent(w(me).replace(/(.)/g,function(it,yt){var Gt=yt.charCodeAt(0).toString(16).toUpperCase();return Gt.length<2&&(Gt="0"+Gt),"%"+Gt}))}catch{return w(me)}}(de.split(".")[Ne]))}catch(it){throw new te("Invalid token specified: "+it.message)}}(Ft),nn="true"===Gt.headers.get("LMS-authorization-change-password"),Pt=Gt.headers.get("LMS-Token-Expiration-Seconds"),wt=Gt.headers.get("LMS-Entrada"),[Je]=sn.aud.split(":"),{sistemaPagamento:_t}=Gt.body;Ne({...yt,lmsToken:Ft,lmsTokenExpirationSeconds:Pt,lmsEntrada:wt,decodedToken:sn,isFirstAccess:nn,idEscolaLogada:Number(Je),sistemaPagamento:_t}),window.ReactNativeWebView&&window.ReactNativeWebView.postMessage(JSON.stringify(Vt)),sessionStorage.setItem("newComunication","true")}))}authenticateByIntegrationToken({getState:me,setState:Ne},it){return this.bookService.loginByIntegrationToken(it.token).pipe((0,T.U)(yt=>{const Gt=me();Ne({...Gt,lmsToken:yt.token,integrationBookId:yt.livroId,integrationUUID:yt.userUUID})}))}updateToken({setState:me,getState:Ne},it){return me({...Ne(),lmsToken:it.token})}setRoleType(me,Ne){const it=me.getState(),yt=it.decodedToken.permissoes.split(",").map(Ft=>Number(Ft)),Gt=class L{static create(me,Ne){return{[P.Z.ADMINISTRADOR]:new X(Ne),[P.Z.ALUNO]:new y,[P.Z.COLABORADOR]:new $(Ne),[P.Z.TUTOR]:new J(Ne)}[me]}}.create(Ne.roleType,yt);return me.setState({...it,selectedRole:Gt})}getDefaultRole(me){const Ne=me.getState(),it=Ne.decodedToken,yt=this.roleService.isDoubleRole(it),Gt=this.roleService.getRoleType(it);if(me.setState({...Ne,activeRoles:Gt}),!yt){const Ft=Gt.find(nn=>nn.roleType===P.Z.TUTOR),Vt=Gt.find(nn=>nn.roleType===P.Z.ADMINISTRADOR),sn=Gt.find(nn=>nn.roleType===P.Z.ALUNO);return me.dispatch(new W.x(Vt?P.Z.ADMINISTRADOR:Ft?P.Z.TUTOR:sn?P.Z.ALUNO:P.Z.COLABORADOR))}}logout(me,{state:Ne}){return this.store.dispatch(new p.Vl),(0,_.D)(this.ngZone.run(()=>this.router.navigateByUrl("/auth",{...Ne&&{state:Ne}}))).pipe((0,v.b)(()=>{this.loadingBarService.useRef().stop(),this.loadingBarService.useRef().complete()}))}changePasswordFirstTime({getState:me,setState:Ne}){return Ne({...me(),isFirstAccess:!1})}};je.\u0275fac=function(me){return new(me||je)(le.LFG(c.yh),le.LFG(ce.e),le.LFG(Se.Z),le.LFG(Qe.F0),le.LFG($e),le.LFG(Et.dL),le.LFG(le.R0b))},je.\u0275prov=le.Yz7({token:je,factory:je.\u0275fac}),(0,s.gn)([(0,c.aU)(W.ee)],je.prototype,"authenticate",null),(0,s.gn)([(0,c.aU)(W._L)],je.prototype,"authenticateByIntegrationToken",null),(0,s.gn)([(0,c.aU)(W.U7)],je.prototype,"updateToken",null),(0,s.gn)([(0,c.aU)(W.x)],je.prototype,"setRoleType",null),(0,s.gn)([(0,c.aU)(W.DI)],je.prototype,"getDefaultRole",null),(0,s.gn)([(0,c.aU)(B.R)],je.prototype,"logout",null),(0,s.gn)([(0,c.aU)(W.wv)],je.prototype,"changePasswordFirstTime",null),(0,s.gn)([(0,c.Qf)()],je,"isLoggedIn",null),(0,s.gn)([(0,c.Qf)()],je,"getDecodedToken",null),(0,s.gn)([(0,c.Qf)()],je,"isAdmin",null),(0,s.gn)([(0,c.Qf)()],je,"isStudent",null),(0,s.gn)([(0,c.Qf)()],je,"isTutor",null),(0,s.gn)([(0,c.Qf)()],je,"isFuncionario",null),(0,s.gn)([(0,c.Qf)()],je,"selectedRole",null),(0,s.gn)([(0,c.Qf)()],je,"activeRoles",null),(0,s.gn)([(0,c.Qf)()],je,"isFirstAccess",null),(0,s.gn)([(0,c.Qf)()],je,"sistemaPagamento",null),je=(0,s.gn)([(0,c.ZM)({name:ke,defaults:{selectedRole:null,lmsToken:"",decodedToken:null,lmsEntrada:"",lmsTokenExpirationSeconds:"",integrationBookId:0,integrationUUID:"",activeRoles:[],isFirstAccess:!1,idEscolaLogada:0,sistemaPagamento:null}})],je)},35300:(ut,fe,d)=>{"use strict";d.d(fe,{DI:()=>N,U7:()=>c,_L:()=>A,ee:()=>s,wv:()=>te,x:()=>w});let s=(()=>{class I{constructor(p){this.payload=p}}return I.type="[Auth] authenticate",I})(),c=(()=>{class I{constructor(p){this.token=p}}return I.type="[Auth] update lms token",I})(),A=(()=>{class I{constructor(p){this.token=p}}return I.type="[Auth] Authenticate by integration token",I})(),w=(()=>{class I{constructor(p){this.roleType=p}}return I.type="[Auth] set role type",I})(),N=(()=>{class I{}return I.type="[Auth] get default role",I})(),te=(()=>{class I{}return I.type="[Auth] change password first time",I})()},31288:(ut,fe,d)=>{"use strict";d.d(fe,{Z:()=>c});var s=(()=>{return(A=s||(s={}))[A.ADMINISTRADOR=1]="ADMINISTRADOR",A[A.ALUNO=2]="ALUNO",A[A.TUTOR=3]="TUTOR",A[A.COLABORADOR=4]="COLABORADOR",s;var A})();const c=s},343:(ut,fe,d)=>{"use strict";d.d(fe,{R:()=>s});let s=(()=>{class c{constructor(w){this.state=w}}return c.type="[Auth] logout",c})()},28576:(ut,fe,d)=>{"use strict";d.d(fe,{Hq:()=>w,Im:()=>s,Pp:()=>A,sT:()=>N});const s=["/assets","/token/refresh"],A=["lms-api-mensagem/mensagens/mensagem-entre-aluno-e-tutor","lms-api-mensagem/mensagens/aluno-abriu-o-chat","lms-api-video-aula/video-aulas-matricula-disciplina/andamento","lms-api-dashboard-aluno/contador/disciplinas-abertas/matricula","lms-api-prova/prova-questoes/enviar-resposta","lms-api-mensagem/mensagens/buscar-mais-mensagens","count","total","contador","page=","lms-api-prova/respostas-atividade-pratica/find-not-graded"],w=["lms-api-curso/disciplinas"],N=["/prova/espelho","/prova"]},50319:(ut,fe,d)=>{"use strict";d.d(fe,{a:()=>te});var s=d(40199),c=d(343),A=d(94650),w=d(89867),N=d(34793);let te=(()=>{class I{constructor(p,_){this.store=p,this.router=_}canActivate(){return this.validate()}canLoad(){return this.validate()}validate(){const p=this.store.selectSnapshot(s.j.isLoggedIn);return p||this.store.dispatch(new c.R).subscribe({next:()=>this.router.navigateByUrl("/auth")}),p}}return I.\u0275fac=function(p){return new(p||I)(A.LFG(w.yh),A.LFG(N.F0))},I.\u0275prov=A.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"}),I})()},95394:(ut,fe,d)=>{"use strict";d.d(fe,{r:()=>T});var s=d(70655),c=d(94650),A=d(34793),w=d(89867),N=d(50457),te=d(39646),I=d(63900),b=d(54004),p=d(52925),_=d(97161),v=d(40199);class T{constructor(){this.router=(0,c.f3M)(A.F0),this.notificationService=(0,c.f3M)(_.g)}canLoad(){return this.firstAccess}canActivateChild(){return this.firstAccess}get firstAccess(){return this.isFirstAccess$.pipe((0,I.w)(P=>P?(this.showWarningMessage(),(0,N.D)(this.router.navigate([`${p.b.AUTENTICACAO}/${p.b.PRIMEIRO_ACESSO}`])).pipe((0,b.U)(()=>!1))):(0,te.of)(!0)))}showWarningMessage(){this.notificationService.warning("Voc\xea precisa alterar a senha para acessar o sistema.")}}T.\u0275fac=function(P){return new(P||T)},T.\u0275prov=c.Yz7({token:T,factory:T.\u0275fac,providedIn:"root"}),(0,s.gn)([(0,w.Ph)(v.j.isFirstAccess)],T.prototype,"isFirstAccess$",void 0)},46822:(ut,fe,d)=>{"use strict";d.d(fe,{f:()=>B});var s=d(70655),c=d(89867),A=d(39646),w=d(63900),N=d(54004),te=d(70262),I=d(82301),b=d(19804),p=d(73723),_=d(40151),v=d(28576),T=d(94650),W=d(34793),P=d(20410);class B{constructor(U,Z,ue){this.router=U,this.store=Z,this.testService=ue}canActivate(){return this.checkActivation()}canActivateChild(){return this.checkActivation()}checkActivation(){const U=this.selectedTest||this.disciplina?.testeDeLicao;return!(U&&!this.whitelistedUrl)||this.testService.getTestById(U).pipe((0,w.w)(Z=>Z.status.id===b.M.INICIADA?this.store.dispatch(new I.xP(U)).pipe((0,N.U)(()=>!1)):(0,A.of)(!0)),(0,te.K)(()=>(0,A.of)(!0)))}get selectedTest(){return this.store.selectSnapshot(_.P)?.provaEmAndamento}get disciplina(){return this.store.selectSnapshot(p.E)?.disciplina}get matriculaSelecionada(){return this.store.selectSnapshot(_.P)?.matriculaSelecionada}get whitelistedUrl(){return v.sT.find(U=>this.router.url===U)}}B.\u0275fac=function(U){return new(U||B)(T.LFG(W.F0),T.LFG(c.yh),T.LFG(P.Q))},B.\u0275prov=T.Yz7({token:B,factory:B.\u0275fac,providedIn:"root"}),(0,s.gn)([(0,c.Ph)(p.E.disciplina)],B.prototype,"disciplina$",void 0)},57990:(ut,fe,d)=>{"use strict";d.d(fe,{e:()=>N});var s=d(80529),c=d(54004),A=d(92340),w=d(94650);let N=(()=>{class te{constructor(b){this.http=b,this.httpOptions={headers:new s.WM({"Content-Type":"application/json"})},this.lmsAuthApi=A.N.API.AUTH}authenticate(b){return this.http.post(`${this.lmsAuthApi}/auth/login`,b,{observe:"response",headers:{dominio:A.N.dominio}})}refreshToken(b){return this.http.get(`${this.lmsAuthApi}/token/refresh?token=${b}`)}logout(){return this.http.post(`${this.lmsAuthApi}/login/logff`,this.httpOptions)}getLoginBackground(){const p=A.N.dominio;return this.http.get(`${this.lmsAuthApi}/login/background?dominio=${p}`).pipe((0,c.U)(_=>"/"===_.url.charAt(0)?{url:p+_.url}:{url:_.url}))}sendResetPassword(b){return this.http.get(`${this.lmsAuthApi}/login/recuperar-senha?login=${b}`,{observe:"response",headers:{dominio:A.N.dominio}})}confirmPasswordChange(b,p){return this.http.post(`${this.lmsAuthApi}/login/confirmar-troca-de-senha?token=${p}`,{senhaNova:b},{observe:"response"})}changePassword(b,p){return this.http.post(`${this.lmsAuthApi}/password`,{password:p,oldPassword:b})}}return te.\u0275fac=function(b){return new(b||te)(w.LFG(s.eN))},te.\u0275prov=w.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})()},59907:(ut,fe,d)=>{"use strict";d.d(fe,{n:()=>J});var s=d(80529),c=d(54968),A=d(56451),w=d(63900),N=d(40199),te=d(39133),I=d(73723),b=d(40151),p=d(48559),_=d(48083),v=d(92340),T=d(68880);const P=`${v.N.API.BASE}/dirVirtualLMS/arquivos/NT_Player.exe`;var B=d(94650),G=d(93795),U=d(65938),Z=d(4859),ue=d(42466);let F=(()=>{class L{constructor(ce){this.deviceDetectorService=ce}ntPlayerDownload(){this.isWindows?window.open(P):this.isAndroidBrowser&&window.open("https://play.google.com/store/apps/details?id=air.br.com.nteducacao.ntplayer")}get isAndroidBrowser(){return this.isMobile&&this.isAndroid}get isWindows(){return"Windows"===this.deviceDetectorService.getDeviceInfo().os}get isMobile(){return this.deviceDetectorService.isMobile()||this.deviceDetectorService.isTablet()}get isAndroid(){return"Android"===this.deviceDetectorService.getDeviceInfo().os}}return L.\u0275fac=function(ce){return new(ce||L)(B.Y36(G.x0))},L.\u0275cmp=B.Xpm({type:L,selectors:[["dis-nt-player-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],["mat-flat-button","","color","primary",3,"click"]],template:function(ce,Se){1&ce&&(B.TgZ(0,"h1",0),B._uU(1),B.ALo(2,"translate"),B.qZA(),B.TgZ(3,"div",1)(4,"p"),B._uU(5),B.ALo(6,"translate"),B.qZA()(),B.TgZ(7,"div",2)(8,"button",3),B.NdJ("click",function(){return Se.ntPlayerDownload()}),B._uU(9),B.ALo(10,"translate"),B.qZA()()),2&ce&&(B.xp6(1),B.hij(" ",B.lcZ(2,3,"COURSEMODULE.AIM.NT_PLAYER_APPLICATION"),"\n"),B.xp6(4),B.Oqu(B.lcZ(6,5,"COURSEMODULE.AIM.NT_PLAYER_NECESSARY")),B.xp6(4),B.hij(" ",B.lcZ(10,7,"COURSEMODULE.AIM.DOWNLOAD")," "))},dependencies:[U.uh,U.xY,U.H8,Z.lW,ue.X$],encapsulation:2}),L})();var Y=d(20227),ee=d.n(Y);const oe=`${v.N.API.BASE}/assets/player/`,X=`${v.N.API.BASE}/service/api/player/avant/input/`;class y{constructor(le,ce,Se,Qe){this.dialog=le,this.lmsEntrada=Se,this.pasta=ce,this.cmcId=Qe.toString(),this.setAimObject()}get aimData(){return{id:this.cmcId,nomeWbt:this.pasta,logEntrada:this.lmsEntrada,host:oe,servidor:X}}printAimData(){return this.aimData}setAimObject(){this.aimObject={protocolo:"ntplayer://curso?",valor:btoa(JSON.stringify(this.aimData))}}get aimCryptedData(){return`${this.aimObject.protocolo+this.aimObject.valor}`}checkNtPlayer(){(0,_.N)()?window.open(this.aimCryptedData):ee()(this.aimCryptedData,()=>this.dialog.open(F),()=>{})}}var k=d(89867),$=d(97161);let J=(()=>{class L{constructor(ce,Se,Qe,ct,$t,$e,Et){this.http=ce,this.store=Se,this.dialog=Qe,this.translate=ct,this.deviceService=$t,this.notificationService=$e,this.ngZone=Et,this.aim=v.N.API.AIM}get deviceInfo(){return this.deviceService.getDeviceInfo().os}openAimById(ce){this.getAim(ce).subscribe(Se=>{this.checkAimTechnology(Se)})}checkAimTechnology(ce,Se){const Qe=ce?.tecnologia?.id||Se;return this.isLinux(Qe)?this.notificationService.error(this.translate.instant("COURSEMODULE.AIM.NOT_WINDOWS")):(0,T.M_)(Qe)?void this.launchNtPlayer(ce):this.getAimHtmlWindow(ce)}launchNtPlayer(ce){new y(this.dialog,ce?.codigo||this.discipline?.aim?.pasta,this.lmsEntrada,this.discipline?.id||33476418).checkNtPlayer()}getAimHtmlWindow(ce){const Se=ce?.altura||this.discipline?.aim?.altura,Qe=ce?.largura||this.discipline?.aim?.largura,ct=screen.width/2-Qe/2,$t=screen.height/2-Se/2,ke=ce?.codigo||this.discipline?.aim?.pasta;(0,T.BX)(this.discipline?.id||33476418,!this.discipline?.id);const je=(0,_.N)()?(0,T.Dh)(ke):(0,T.vQ)(ke),de=(0,p.N8)(je,"_blank",`width=${Qe},height=${Se},location=yes,scrollbars=yes,status=yes,top=${$t},left=${ct}`);"object"==typeof de&&this.manageAimWindowEvents(de)}manageAimWindowEvents(ce){const Se=(0,c.R)(ce,"beforeunload");(0,A.T)(Se).pipe((0,w.w)(()=>this.store.dispatch(new te.gm)),(0,w.w)(()=>this.store.dispatch(new te.DY(!0)))).subscribe()}isLinux(ce){return(0,T.M_)(ce)&&"Linux"===this.deviceInfo}get lmsEntrada(){return this.store.selectSnapshot(N.j).lmsEntrada}get discipline(){return this.store.selectSnapshot(I.E)?.disciplina}get matricula(){return this.store.selectSnapshot(b.P)?.matriculaSelecionada}accessAim(ce){return this.http.get(`${this.aim}/acessarAim?id=${ce}`)}getAim(ce){return this.http.get(`${this.aim}/AimPlayerWs/${ce}`)}updateAim(ce,Se){const Qe=`${this.aim}/AimPlayerWs/${Se}`,ct=(new s.WM).set("Accept-Language","pt-BR,pt;q=0.9");return this.http.put(Qe,ce,{headers:ct})}createAim(ce){const Se=`${this.aim}/AimPlayerWs`,Qe=(new s.WM).set("Accept-Language","pt-BR,pt;q=0.9");return this.http.post(Se,ce,{headers:Qe})}updateAimMessages(ce){return this.http.post(`${this.aim}/service/api/player/avant/message`,ce)}updateAimProgress(ce){return this.http.post(`${this.aim}/service/api/player/avant`,ce)}getAimLessonsByDisciplineId(ce){return this.http.get(`${this.aim}/licoes/aim-disciplina/${ce}?size=1000`)}enableOrDisableLesson(ce){const Se=`${this.aim}/licoes/ativar-desativar/${ce}`,Qe=(new s.WM).set("Accept-Language","pt-BR,pt;q=0.9");return this.http.put(Se,null,{headers:Qe})}deleteLesson(ce){const Se=`${this.aim}/licoes/${ce}`,Qe=(new s.WM).set("Accept-Language","pt-BR,pt;q=0.9");return this.http.delete(Se,{headers:Qe})}updateLesson(ce,Se){return this.http.put(`${this.aim}/licoes/${ce}`,Se)}generateLessonsByBookId(ce,Se){const Qe=`${this.aim}/licoes/livro-disciplina/${ce}/${Se}`,ct=(new s.WM).set("Accept-Language","pt-BR,pt;q=0.9");return this.http.post(Qe,null,{headers:ct})}reorderLessons(ce){const Se=`${this.aim}/licoes/reordenacao`,Qe=(new s.WM).set("Accept-Language","pt-BR,pt;q=0.9");return this.http.put(Se,ce,{headers:Qe})}getTopicosLicao(ce){return this.http.get(`${this.aim}/topicos-licao/licao/${ce}?size=1000`)}reorderTopics(ce){const Se=`${this.aim}/topicos-licao/reordenacao`,Qe=(new s.WM).set("Accept-Language","pt-BR,pt;q=0.9");return this.http.put(Se,ce,{headers:Qe})}createLessonWithTopics(ce){const Se=`${this.aim}/topicos-licao/topicolicao-licao`,Qe=(new s.WM).set("Accept-Language","pt-BR,pt;q=0.9");return this.http.post(Se,ce,{headers:Qe})}updateLessonTopic(ce,Se){const Qe=`${this.aim}/topicos-licao/${ce}`,ct=(new s.WM).set("Accept-Language","pt-BR,pt;q=0.9");return this.http.put(Qe,Se,{headers:ct})}enableOrDisableLessonTopic(ce){return this.http.put(`${this.aim}/topicos-licao/ativar-desativar/${ce}`,null)}deleteLessonTopic(ce){return this.http.delete(`${this.aim}/topicos-licao/${ce}`)}getLessonsByDisciplineId(ce,Se){const Qe=(0,p._A)({...Se,size:1e3});return this.http.get(`${this.aim}/licoes/aim-disciplina/${ce}`,{params:Qe})}getTopicosLicaoByDisciplineId(ce){return this.http.get(`${this.aim}/topicos-licao/disciplina/${ce}`)}}return L.\u0275fac=function(ce){return new(ce||L)(B.LFG(s.eN),B.LFG(k.yh),B.LFG(U.uw),B.LFG(ue.sK),B.LFG(G.x0),B.LFG($.g),B.LFG(B.R0b))},L.\u0275prov=B.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})()},68880:(ut,fe,d)=>{"use strict";d.d(fe,{M_:()=>b,vQ:()=>te,Dh:()=>I,BX:()=>N});var s=d(92340),c=(()=>{return(p=c||(c={}))[p.FLASH_PLAYER=1]="FLASH_PLAYER",p[p.NT_PLAYER=2]="NT_PLAYER",p[p.HTML5=3]="HTML5",c;var p})();const A=c,w=`${s.N.API.BASE}/assets/player`,N=(p,_=!1)=>{sessionStorage.setItem("id",p.toString()),sessionStorage.setItem("simulation",_.toString())},te=p=>`${w}/${p}/`,I=p=>`assets/player/${p}/index.html`,b=p=>p===A.NT_PLAYER},33485:(ut,fe,d)=>{"use strict";d.d(fe,{J:()=>s,n:()=>c});var s=(()=>{return(A=s||(s={})).NAO_INCIADA="N\xc3O INICIADO",A.EM_ANDAMENTO="EM CURSO",A.EM_RECUPERACAO="EM RECUPERA\xc7\xc3O",A.AVALIACAO_REACAO_PENDENTE="AVALIA\xc7\xc3O REA\xc7\xc3O PENDENTE",A.CONCLUIDA="CONCLU\xcdDO",s;var A})(),c=(()=>{return(A=c||(c={})).NAO_INCIADA="N\xc3O INICIADO",A.EM_ANDAMENTO="EM CURSO",A.EM_RECUPERACAO="EM RECUPERA\xc7\xc3O",c;var A})()},16582:(ut,fe,d)=>{"use strict";d.d(fe,{G:()=>p});var s=d(70655),c=d(18505),A=d(92340),w=d(59383),N=d(89867),te=d(94650),I=d(63690);let p=class{constructor(v){this.bookService=v}static getFragments(v){return v.fragments}static getActualPage(v){return v.actualPage}static isSidebarHide(v){return v.hideSideMenu}static getActualPercentage(v){return v.actualPercentage}static getActualBook(v){return v.actualBook}static getDrmFragments(v){return v.drmFragments}static getBookIndexes(v){return v.indicesLivro}getFragments({getState:v,setState:T},W){const P=v(),B=W.pageNumber||1;return this.bookService.getBookFragments(W.idDisciplina,W.pageNumber,W.livroId).pipe((0,c.b)(G=>{T({...P,fragments:G,actualPage:W.pageNumber,actualPercentage:B/P?.actualBook?.totalDePaginas*100})}))}getNextPageFragments({getState:v,setState:T},W){const P=v();if(P.actualPage!==P.actualBook.totalDePaginas)return this.bookService.getBookFragments(W.idDisciplina,P.actualPage+1,W.livroId).pipe((0,c.b)(B=>{T({...P,fragments:B,actualPage:Number(P.actualPage)+1,actualPercentage:P.actualPage/P.actualBook.totalDePaginas*100})}))}getPreviousPageFragments({getState:v,setState:T},W){const P=v();return this.bookService.getBookFragments(W.idDisciplina,P.actualPage-1,W.livroId).pipe((0,c.b)(B=>{T({...P,fragments:B,actualPage:Number(P.actualPage)-1,actualPercentage:P.actualPage/P.actualBook.totalDePaginas*100})}))}getActualBookByDiscipline({getState:v,setState:T},W){const P=v();return this.bookService.getBookByDiscipline(W.idDisciplina).pipe((0,c.b)(B=>{T({...P,actualBook:B})}))}getActualBookById({getState:v,setState:T},W){const P=v();return this.bookService.getBookById(W.livroId).pipe((0,c.b)(B=>{T({...P,actualBook:B})}))}getDrmFragments({getState:v,setState:T},W){const P=v(),G=`${A.N.API.BASE}/assets/arquivos/drm/${W.uuid||W.integrationUUID}/`,U=[];let Z;for(let ue=1;ue<41;ue++)Z=ue<10?`${G}0${ue}.png`:`${G}${ue}.png`,U.push(Z);T({...P,drmFragments:U})}getActualBookChapters({getState:v,patchState:T},W){const P=v(),B=P.actualBook.indices.filter(Z=>Z.capitulo),G=P.actualBook.indices.filter(Z=>!B.includes(Z));T({indicesLivro:B.reduce((Z,ue)=>[...Z,{indices:G.filter(ee=>this.checkSameChapter(ue.nome,ee.nome)),title:ue.nome}],[])})}checkSameChapter(v,T){return this.splitByChapterNumber(v)===this.splitByChapterNumber(T)}splitByChapterNumber(v){return v.split(".")[0]}};p.\u0275fac=function(v){return new(v||p)(te.LFG(I.Z))},p.\u0275prov=te.Yz7({token:p,factory:p.\u0275fac}),(0,s.gn)([(0,N.aU)(w.S2)],p.prototype,"getFragments",null),(0,s.gn)([(0,N.aU)(w.L6)],p.prototype,"getNextPageFragments",null),(0,s.gn)([(0,N.aU)(w.ZT)],p.prototype,"getPreviousPageFragments",null),(0,s.gn)([(0,N.aU)(w.x8)],p.prototype,"getActualBookByDiscipline",null),(0,s.gn)([(0,N.aU)(w.sQ)],p.prototype,"getActualBookById",null),(0,s.gn)([(0,N.aU)(w.Bx)],p.prototype,"getDrmFragments",null),(0,s.gn)([(0,N.aU)(w.Ov)],p.prototype,"getActualBookChapters",null),(0,s.gn)([(0,N.Qf)()],p,"getFragments",null),(0,s.gn)([(0,N.Qf)()],p,"getActualPage",null),(0,s.gn)([(0,N.Qf)()],p,"isSidebarHide",null),(0,s.gn)([(0,N.Qf)()],p,"getActualPercentage",null),(0,s.gn)([(0,N.Qf)()],p,"getActualBook",null),(0,s.gn)([(0,N.Qf)()],p,"getDrmFragments",null),(0,s.gn)([(0,N.Qf)()],p,"getBookIndexes",null),p=(0,s.gn)([(0,N.ZM)({name:"book",defaults:{actualBook:null,fragments:[],actualPage:1,actualPercentage:0,drmFragments:[],hideSideMenu:!1,indicesLivro:[]}})],p)},97741:(ut,fe,d)=>{"use strict";d.d(fe,{C:()=>N});var s=d(80529),c=d(92340),A=d(61135),w=d(94650);let N=(()=>{class te{constructor(b){this.http=b,this.httpOptions={headers:new s.WM({"Content-Type":"application/json"})},this.respostaAtividadePraticaSource=new A.X(null)}get atividadePraticaSelecionada$(){return this.respostaAtividadePraticaSource.asObservable()}setAtividadePratica(b){this.respostaAtividadePraticaSource.next(b)}getPracticalActivies(b){return this.http.get(`${c.N.API.TEST}/atividade-pratica/${b}`)}answerActivity(b,p,_){const v=`${c.N.API.MENSAGEM}/mensagens-atividade-pratica?respostaAtividadePratica=${p}`,T=new FormData;return T.append("mensagem",b),_&&T.append("arquivo",_,_.name),this.http.post(v,T)}getMessages(b,p,_){let v=`${c.N.API.MENSAGEM}/mensagens-atividade-pratica/mensagem-entre-aluno-e-tutor/${b}?size=100`;return p&&(v+=`&messageToSearch=${p}`),this.http.get(v)}createMessage(b,p){const _=new FormData,v=`${c.N.API.MENSAGEM}/mensagens-atividade-pratica?mensagem=${encodeURIComponent(b.message)}&respostaAtividadePratica=${p}`;return b.image&&_.append("arquivo",b.image,b.image.name),this.http.post(v,_)}openChat(b){return this.http.put(`${c.N.API.MENSAGEM}/mensagens-atividade-pratica/aluno-abriu-o-chat/${b}`,this.httpOptions)}getUnreadedMessages(b,p){return this.http.get(`${c.N.API.MENSAGEM}/mensagens-atividade-pratica/buscar-mais-mensagens/${p}?idMensagem=${b}`,{observe:"response"})}getTotalGeral(b){return this.http.get(`${c.N.API.MENSAGEM}/mensagens-atividade-pratica/count-mensagens-nao-lida-pelo-aluno/${b}`)}getNotCorrectedQuestions(){return this.http.get(`${c.N.API.TEST}/respostas-atividade-pratica/find-not-graded`)}rectifyPracticalActivity(b){return this.http.put(`${c.N.API.TEST}/respostas-atividade-pratica/correct`,b)}}return te.\u0275fac=function(b){return new(b||te)(w.LFG(s.eN))},te.\u0275prov=w.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})()},47410:(ut,fe,d)=>{"use strict";d.d(fe,{G:()=>w});var s=d(92340),c=d(94650),A=d(80529);let w=(()=>{class N{constructor(I){this.http=I}getReactionEvaluationByDisciplineRegistration(I){return this.http.get(`${s.N.API.AVALIACAO_REACAO}/avaliacoes-reacao/selecionar-por-matricula-disciplina/${I}`)}finishReactionEvaluation(I,b){return this.http.put(`${s.N.API.AVALIACAO_REACAO}/avaliacao-reacao-respostas/finaliza-avaliacao-reacao/${I}/${b}`,null)}getReactionEvaluationAnswer(I){return this.http.get(`${s.N.API.AVALIACAO_REACAO}/avaliacao-reacao-respostas/${I}`)}createReactionEvaluationAnswer(I){return this.http.post(`${s.N.API.AVALIACAO_REACAO}/avaliacao-reacao-respostas`,I)}createReactionEvaluation(I){return this.http.post(`${s.N.API.AVALIACAO_REACAO}/avaliacoes-reacao/`,I)}updateReactionEvaluation(I){return this.http.put(`${s.N.API.AVALIACAO_REACAO}/avaliacoes-reacao`,I)}updateReactionEvaluationAnswer(I){return this.http.put(`${s.N.API.AVALIACAO_REACAO}/avaliacao-reacao-respostas`,I)}disableReactionEvaluation(I){return this.http.put(`${s.N.API.AVALIACAO_REACAO}/avaliacoes-reacao/inativar/${I}`,null)}enableReactionEvaluation(I){return this.http.put(`${s.N.API.AVALIACAO_REACAO}/avaliacoes-reacao/ativar/${I}`,null)}getQuestionsCount(I){return this.http.get(`${s.N.API.AVALIACAO_REACAO}/avaliacao-reacao-questoes/total-questoes/${I}`)}getAllReactionEvaluations(){return this.http.get(`${s.N.API.AVALIACAO_REACAO}/avaliacoes-reacao`)}getReactionEvaluationById(I){return this.http.get(`${s.N.API.AVALIACAO_REACAO}/avaliacoes-reacao/${I}`)}}return N.\u0275fac=function(I){return new(I||N)(c.LFG(A.eN))},N.\u0275prov=c.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"}),N})()},82301:(ut,fe,d)=>{"use strict";d.d(fe,{$Y:()=>te,Bm:()=>A,FS:()=>T,Kq:()=>N,Tk:()=>p,VW:()=>c,bm:()=>b,dt:()=>v,lv:()=>_,pq:()=>w,xP:()=>I,yR:()=>s});let s=(()=>{class W{constructor(B){this.test=B}}return W.type="[Prova] SelectTest",W})(),c=(()=>{class W{constructor(B){this.provaDto=B}}return W.type="[Prova] SelectTestToSchedule",W})(),A=(()=>{class W{constructor(B){this.aluno=B}}return W.type="[Prova] SelectTest",W})(),w=(()=>{class W{constructor(B){this.test=B}}return W.type="[Prova] GetTestLocals",W})(),N=(()=>{class W{constructor(B){this.selectedLocal=B}}return W.type="[Prova] SetSelectedLocal",W})(),te=(()=>{class W{constructor(B,G,U){this.date=B,this.testLocal=G,this.test=U}}return W.type="[Prova] GetTestTime",W})(),I=(()=>{class W{constructor(B){this.testId=B}}return W.type="[Prova] Start Test",W})(),b=(()=>{class W{constructor(B){this.testId=B}}return W.type="[Prova] Get Test By Id",W})(),p=(()=>{class W{constructor(B,G){this.questaoResposta=B,this.respostaQuestao=G}}return W.type="[Prova] UpdateSelectedAnswers",W})(),_=(()=>{class W{constructor(B,G){this.type=B,this.provaQuestaoDto=G}}return W.type="[Prova] UpdateActualQuestion",W})(),v=(()=>{class W{constructor(B){this.respostaAtividadePratica=B}}return W.type="[Prova] SetRespostaAtividadePratica",W})(),T=(()=>{class W{}return W.type="[Prova] GetTestMirror",W})()},20410:(ut,fe,d)=>{"use strict";d.d(fe,{Q:()=>te});var s=d(92340),c=d(61135),A=d(48559),w=d(80529),N=d(94650);let te=(()=>{class I{constructor(p){this.http=p,this.httpOptions={headers:new w.WM({"Content-Type":"application/json"})},this.alunoComProvaEQuestoesSource=new c.X(null)}get alunoComProvasEQuestoes$(){return this.alunoComProvaEQuestoesSource.asObservable()}setAlunoComProvasEQuestoes(p){this.alunoComProvaEQuestoesSource.next(p)}findLastTestByMatriculaDisciplina(p,_){return this.http.get(`${s.N.API.TEST}/provas/find-last-test/${p}`)}getTestLocalsByTestId(p,_){return this.http.get(`${s.N.API.TEST}/agendamento/local-de-prova/${p}?reagendar=${_}`)}getActualPoloTestLocations(){return this.http.get(`${s.N.API.TEST}/locais-de-prova/polo`)}getQuestionById(p){return this.http.get(`${s.N.API.TEST}/prova-questoes/${p}`)}getTestById(p){return this.http.get(`${s.N.API.TEST}/provas/${p}`)}getTestTime(p,_,v,T){return this.http.get(`${s.N.API.TEST}/agendamento/horarios/${v}?data=${p}&localDeProva=${_}&reagendar=${T}`)}confirmTestSchedule(p,_,v){const T=(new w.LE).append("data",_.diaSelecionado).append("horario",p.id).append("localDeProva",_.localSelecionado.id).append("prova",_.provaSelecionada).append("reagendar",v?"true":"false");return this.http.post(`${s.N.API.TEST}/agendamento/confirmar/${_.provaSelecionada}`,T)}startTest(p){return this.http.put(`${s.N.API.TEST}/provas/iniciar-prova/${p}`,null)}getTestQuestionsById(p){return this.http.get(`${s.N.API.TEST}/provas/${p}/questoes`)}startPracticalAcitivity(p){return this.http.put(`${s.N.API.TEST}/respostas-atividade-pratica/start/${p}`,this.httpOptions)}getPracticalActivityById(p){return this.http.get(`${s.N.API.TEST}/atividade-pratica/resposta-atividade-pratica/${p}`)}savePracticalActivityDraft(p){return this.http.put(`${s.N.API.TEST}/respostas-atividade-pratica/rascunho`,p,{observe:"response"})}sendAnswer(p){return this.http.put(`${s.N.API.TEST}/prova-questoes/enviar-resposta`,p,{observe:"response"})}getTestMirror(p){return this.http.get(`${s.N.API.TEST}/provas/espelho/${p}`)}finishTest(p){return this.http.put(`${s.N.API.TEST}/provas/finalizar-prova/${p}`,this.httpOptions)}reportError(p){return this.http.put(`${s.N.API.TEST}/prova-questoes/informar-erro`,p)}getReleasedTestsCount(p){return this.http.get(`${s.N.API.TEST}/provas/total-provas-liberadas/${p}`)}getQuestions(){return this.http.get(`${s.N.API.TEST}/provas-correcao/questoes-para-corrigir-e-revisar`)}getQuestionsCount(){return this.http.get(`${s.N.API.TEST}/provas-correcao/count`)}rectifyQuestion(p){return this.http.post(`${s.N.API.TEST}/prova-questoes/corrigir`,p)}reviewQuestion(p){return this.http.put(`${s.N.API.TEST}/prova-questoes/avalia-erro-questao`,p)}getPracticalActiviesCount(){return this.http.get(`${s.N.API.TEST}/respostas-atividade-pratica/count-not-graded`)}getLessonTestJustificatives(p){return this.http.get(`${s.N.API.TEST}/justificativas/teste/${p}`)}getTestJustificatives(p){return this.http.get(`${s.N.API.TEST}/justificativas/prova/${p}`)}justifyQuestion(p){return this.http.post(`${s.N.API.TEST}/justificativas`,p)}ratifyJustificative(p){return this.http.post(`${s.N.API.TEST}/justificativas/${p}/homologar`,null)}rejectJustificative(p){return this.http.post(`${s.N.API.TEST}/justificativas/${p}/rejeitar`,null)}rejectObjection(p){return this.http.put(`${s.N.API.TEST}/revisoes/indeferida/${p}`,null)}deferObjection(p){return this.http.put(`${s.N.API.TEST}/revisoes/deferida/${p}`,null)}getAllTestToLiberate(p,_=0,v=10,T="alunoNome",W="asc"){const P=`${s.N.API.TEST}/liberacoes/aluno`,B=(0,A._A)({...p,pageNumber:_,pageSize:v,orderBy:T,orderByDirection:W});return this.http.get(P,{params:B})}getAllGroupTestsToLiberate(p,_=0,v=10,T="grupoNome",W="asc"){const P=`${s.N.API.TEST}/liberacoes/grupo`,B=(0,A._A)({...p,pageNumber:_,pageSize:v,orderBy:T,orderByDirection:W});return this.http.get(P,{params:B})}liberateTests(p){return this.http.put(`${s.N.API.TEST}/liberacoes/liberar`,{provas:p})}getAllTestLocals(){}contestJustificative(p){return this.http.post(`${s.N.API.TEST}/revisoes/solicitacao`,p)}getAvailableTestTimesByTestLocal(p,_){const v=(new w.LE).set("data",_);return this.http.get(`${s.N.API.TEST}/agendamento/horarios/local/${p}`,{params:v})}getAllPoloCourses(){return this.http.get(`${s.N.API.TEST}/cursos/polo`)}getAllTestLocalsByPoloId(p){return this.http.get(`${s.N.API.TEST}/locais-de-prova/polo?polo=${p}`)}createTestLocal(p,_){return this.http.post(`${s.N.API.TEST}/locais-de-prova?polo=${_}`,p)}updateTestLocal(p,_){return this.http.put(`${s.N.API.TEST}/locais-de-prova?polo=${_}`,p)}getTestLocalById(p){return this.http.get(`${s.N.API.TEST}/locais-de-prova/${p}`)}deleteTestLocal(p){return this.http.delete(`${s.N.API.TEST}/locais-de-prova/${p}`)}enableOrDisableTestLocal(p){return this.http.put(`${s.N.API.TEST}/locais-de-prova/ativar-desativar/${p}`,null)}deleteTimeRange(p){return this.http.delete(`${s.N.API.TEST}/faixas-de-horario/${p}`)}}return I.\u0275fac=function(p){return new(p||I)(N.LFG(w.eN))},I.\u0275prov=N.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"}),I})()},22655:(ut,fe,d)=>{"use strict";d.d(fe,{H:()=>v});var s=d(70655),c=d(18505),A=d(54004),w=d(31083),N=d(89867),te=d(82301),I=d(94650),b=d(20410),p=d(34793);let v=class{constructor(W,P,B){this.testService=W,this.router=P,this.ngZone=B}static getSelectedTest(W){return W.provaSelecionada}static getTestToSchedule(W){return W.provaParaAgendar}static getAluno(W){return W.alunoComProvaEQuestoes}static getTestLocals(W){return W.locais}static getSelectedLocal(W){return W.localSelecionado}static getTestTime(W){return W.horarios}static getSelectedDay(W){return W.diaSelecionado}static getActualState(W){return W}static getExcecutionTest(W){return W.provaExecucao}static getSelectedQuestionOptions(W){return W.selectedQuestionOptions}static getRespostaAtividadePratica(W){return W.respostaAtividadePratica}static getActualQuestion(W){return W.actualQuestion}static getMirror(W){return W.espelho}selectTest({getState:W,setState:P},B){P({...W(),provaSelecionada:B.test})}selectTestToSchedule({getState:W,setState:P},B){P({...W(),provaParaAgendar:B.provaDto})}selectTestToRectify({getState:W,setState:P},B){P({...W(),alunoComProvaEQuestoes:B.aluno})}getTestLocals({getState:W,setState:P},B){return this.testService.getTestLocalsByTestId(B.test.id,(0,w.K)(B.test.statusId)).pipe((0,c.b)(G=>{const U=W();P({...U,provaSelecionada:B.test.id,locais:G})}))}setSelectedLocal({getState:W,setState:P},B){P({...W(),localSelecionado:B.selectedLocal})}getTestTime({getState:W,setState:P},B){return this.testService.getTestTime(B.date,B.testLocal.id,B.test.id,(0,w.K)(B.test.statusId)).pipe((0,c.b)(G=>{const U=W();P({...U,horarios:G,diaSelecionado:B.date})}))}startTest({getState:W,setState:P},B){const G=W();return this.testService.startTest(B.testId).pipe((0,A.U)(U=>{const Z=U.questoes.map(F=>({questaoId:F.id,opcaoSelecionada:F?.respostaEscolhidaId,respostaDoAluno:F?.respostaDoAluno})),ue=G?.actualQuestion||U.questoes[0];P({...G,provaExecucao:U,selectedQuestionOptions:Z,provaSelecionada:U.id,actualQuestion:ue}),this.ngZone.run(()=>this.router.navigateByUrl("/prova"))}))}getTestById({getState:W,setState:P},B){return this.testService.getTestQuestionsById(B.testId).pipe((0,c.b)(G=>{const U=W(),Z=G.questoes.map(F=>({questaoId:F.id,opcaoSelecionada:F?.respostaEscolhidaId,respostaDoAluno:F?.respostaDoAluno})),ue=U?.actualQuestion||G.questoes[0];P({...U,provaExecucao:G,selectedQuestionOptions:Z,provaSelecionada:G.id,actualQuestion:ue})}))}updateSelectedAnswers({getState:W,setState:P},B){const G=W();return this.testService.sendAnswer(B.respostaQuestao).pipe((0,c.b)(()=>{const U=G.selectedQuestionOptions.map(Z=>Z.questaoId===G?.actualQuestion?.id?{questaoId:Z?.questaoId,opcaoSelecionada:B?.questaoResposta?.id,respostaDoAluno:B?.respostaQuestao.texto}:{questaoId:Z.questaoId,opcaoSelecionada:Z?.opcaoSelecionada,respostaDoAluno:Z?.respostaDoAluno});P({...G,selectedQuestionOptions:U})}))}updateActualQuestion({getState:W,setState:P},B){const G=W(),U=G.espelho.questoes;let Z,ue=U.indexOf(U.find(F=>F.id===G.actualQuestion.id));if(B.provaQuestaoDto)Z=U.find(F=>F.id===B.provaQuestaoDto.id);else if("previous"===B.type?ue--:ue++,Z=G.espelho.questoes[ue],ue===U.length)return void this.ngZone.run(()=>this.router.navigateByUrl("/prova/espelho"));ue>-1&&P({...G,actualQuestion:Z})}getTestMirror({getState:W,setState:P}){const B=W();return this.testService.getTestMirror(B.provaExecucao.id).pipe((0,c.b)(G=>{P({...B,espelho:G})}))}setRespostaAtividadePratica({getState:W,setState:P},B){P({...W(),respostaAtividadePratica:B.respostaAtividadePratica})}};v.\u0275fac=function(W){return new(W||v)(I.LFG(b.Q),I.LFG(p.F0),I.LFG(I.R0b))},v.\u0275prov=I.Yz7({token:v,factory:v.\u0275fac}),(0,s.gn)([(0,N.aU)(te.yR)],v.prototype,"selectTest",null),(0,s.gn)([(0,N.aU)(te.VW)],v.prototype,"selectTestToSchedule",null),(0,s.gn)([(0,N.aU)(te.Bm)],v.prototype,"selectTestToRectify",null),(0,s.gn)([(0,N.aU)(te.pq)],v.prototype,"getTestLocals",null),(0,s.gn)([(0,N.aU)(te.Kq)],v.prototype,"setSelectedLocal",null),(0,s.gn)([(0,N.aU)(te.$Y)],v.prototype,"getTestTime",null),(0,s.gn)([(0,N.aU)(te.xP)],v.prototype,"startTest",null),(0,s.gn)([(0,N.aU)(te.bm)],v.prototype,"getTestById",null),(0,s.gn)([(0,N.aU)(te.Tk)],v.prototype,"updateSelectedAnswers",null),(0,s.gn)([(0,N.aU)(te.lv)],v.prototype,"updateActualQuestion",null),(0,s.gn)([(0,N.aU)(te.FS)],v.prototype,"getTestMirror",null),(0,s.gn)([(0,N.aU)(te.dt)],v.prototype,"setRespostaAtividadePratica",null),(0,s.gn)([(0,N.Qf)()],v,"getSelectedTest",null),(0,s.gn)([(0,N.Qf)()],v,"getTestToSchedule",null),(0,s.gn)([(0,N.Qf)()],v,"getAluno",null),(0,s.gn)([(0,N.Qf)()],v,"getTestLocals",null),(0,s.gn)([(0,N.Qf)()],v,"getSelectedLocal",null),(0,s.gn)([(0,N.Qf)()],v,"getTestTime",null),(0,s.gn)([(0,N.Qf)()],v,"getSelectedDay",null),(0,s.gn)([(0,N.Qf)()],v,"getActualState",null),(0,s.gn)([(0,N.Qf)()],v,"getExcecutionTest",null),(0,s.gn)([(0,N.Qf)()],v,"getSelectedQuestionOptions",null),(0,s.gn)([(0,N.Qf)()],v,"getRespostaAtividadePratica",null),(0,s.gn)([(0,N.Qf)()],v,"getActualQuestion",null),(0,s.gn)([(0,N.Qf)()],v,"getMirror",null),v=(0,s.gn)([(0,N.ZM)({name:"prova",defaults:{provaSelecionada:null,provaParaAgendar:null,locais:[],localSelecionado:null,horarios:[],diaSelecionado:"",provaExecucao:null,selectedQuestionOptions:[],respostaAtividadePratica:null,actualQuestion:null,espelho:null,alunoComProvaEQuestoes:null}})],v)},31083:(ut,fe,d)=>{"use strict";d.d(fe,{K:()=>c});var s=d(19804);function c(A){return A===s.M.AGENDADA}},74066:(ut,fe,d)=>{"use strict";d.d(fe,{j:()=>I});var s=d(80529),c=d(61135),A=d(18505),w=d(92340),N=d(48559),te=d(94650);let I=(()=>{class b{constructor(_){this.http=_,this.currentTimeSource=new c.X(0),this.currentTime=this.currentTimeSource.asObservable(),this.httpOptions={headers:new s.WM({"Content-Type":"application/json"})}}changeCurrentTime(_){this.currentTimeSource.next(_)}getLessonsByDiscipline(_){return this.http.get(`${w.N.API.VIDEOAULA}/aulas/disciplina/${_}`)}getAllVideoLessonsByLesson(_){return this.http.get(`${w.N.API.VIDEOAULA}/video-aulas/aula/${_}`)}getAllVideoLessonsTime(_){return this.http.get(`${w.N.API.VIDEOAULA}/video-aulas/aula/tempo/${_}`)}getAllVideoLessonsByMatriculaDisciplina(_){return this.http.get(`${w.N.API.VIDEOAULA}/video-aulas-matricula-disciplina/matricula-disciplina/${_}`)}getOne(_){return this.http.get(`${w.N.API.VIDEOAULA}/video-aulas/${_}`)}getAllMarkersByVideoLesson(_){return this.http.get(`${w.N.API.VIDEOAULA}/marcadores/video-aula-matricula-disciplina/${_}`).pipe((0,A.b)(T=>{T&&T.sort((W,P)=>W.duracao-P.duracao)}))}createNewMarker(_){return this.http.post(`${w.N.API.VIDEOAULA}/marcadores`,_,this.httpOptions)}deleteMarker(_){return this.http.delete(`${w.N.API.VIDEOAULA}/marcadores/${_}`,this.httpOptions)}updateMarker(_){return this.http.put(`${w.N.API.VIDEOAULA}/marcadores`,_,this.httpOptions)}updateVideoLessonProgress(_){return this.http.put(`${w.N.API.VIDEOAULA}/video-aulas-matricula-disciplina/andamento`,_,this.httpOptions)}getAllVideoLessonsFromDiscipline(_){return this.http.get(`${w.N.API.VIDEOAULA}/aulas/disciplina/${_}`)}updateLesson(_){return this.http.put(`${w.N.API.VIDEOAULA}/aulas/${_.id}`,_,this.httpOptions)}createLesson(_){return this.http.post(`${w.N.API.VIDEOAULA}/video-aulas`,_,this.httpOptions)}deleteLesson(_){return this.http.delete(`${w.N.API.VIDEOAULA}/aulas/${_}`,this.httpOptions)}enableOrDisableLesson(_){return this.http.put(`${w.N.API.VIDEOAULA}/aulas/ativar-desativar/${_}`,this.httpOptions)}reorderLessons(_){return this.http.put(`${w.N.API.VIDEOAULA}/aulas/reordenacao`,_,this.httpOptions)}getAllVideoLessonsByLessonId(_){return this.http.get(`${w.N.API.VIDEOAULA}/video-aulas/aula/${_}`)}enableOrDisableVideoLesson(_){return this.http.put(`${w.N.API.VIDEOAULA}/video-aulas/ativar-desativar/${_}`,this.httpOptions)}deleteVideoLesson(_){return this.http.delete(`${w.N.API.VIDEOAULA}/video-aulas/${_}`,this.httpOptions)}updateVideoLesson(_){return this.http.put(`${w.N.API.VIDEOAULA}/video-aulas/${_.id}`,_,this.httpOptions)}updateAndAddLessons(_,v){return this.http.put(`${w.N.API.VIDEOAULA}/video-aulas/aula/${v}`,_,this.httpOptions)}getLessonsByDisciplinePaginated(_,v){const T=(0,N._A)({...v,size:1e3});return this.http.get(`${w.N.API.VIDEOAULA}/aulas/disciplina-paginada/${_}`,{params:T})}}return b.\u0275fac=function(_){return new(_||b)(te.LFG(s.eN))},b.\u0275prov=te.Yz7({token:b,factory:b.\u0275fac,providedIn:"root"}),b})()},78915:(ut,fe,d)=>{"use strict";d.d(fe,{np:()=>_,rn:()=>T,yv:()=>v});var s=d(19322),c=d(54364),A=d(85305);const w=W=>{const{licoes:P,disciplina:B,formato:G,questaoStatus:U}=W;return{licoes:P,disciplina:B,formato:G,questaoStatus:U}},N=W=>{const{formato:P,disciplina:B}=W;return{formato:P,disciplina:B}},te=W=>{const{escolas:P,polos:B,tiposCurso:G,formato:U}=W;return{escolas:P,polos:B,tiposCurso:G,formato:U}},I=W=>{const{escolas:P,polos:B,tiposCurso:G,formato:U}=W;return{escolas:P,polos:B,tiposCurso:G,formato:U}},b=W=>{const{escolas:P,polos:B,formato:G,agrupamento:U}=W;return{escolas:P,polos:B,formato:G,analitico:"analitico"===U}},p=W=>{const P=W.formato,{cursos:B,dataFim:G,dataInicio:U,escolas:Z,polos:ue,tiposCurso:F,showCurso:Y,showDesconto:ee,showDescontoPorCento:oe,showNome:X,showSplitEscola:y,showSplitPolo:k,showTipo:$,showValor:J,showVenda:L}=W,{orderByData:le,orderByPolo:ce}=W.ordenacao,Se="analitico"===W.agrupamento,Qe="sintetico"===W.agrupamento;return{cursos:B,escolas:Z,polos:ue,tiposCurso:F,dataInicio:(0,c.LX)(U),dataFim:(0,c.LX)(G),salvar:!0,showCurso:Y,showDesconto:ee,showDescontoPorCento:oe,showNome:X,showSplitEscola:y,showSplitPolo:k,showTipo:$,showValor:J,showVenda:L,analitico:Se,sintetico:Qe,orderByData:le,orderByPolo:ce,formato:P}},_=(W,P)=>{const G=new Map([["LmsBancoQuestoes",w(W)],["LmsMatriculasPersonalizado",p(W)],["LmsItensAvaliacao",N(W)],["LmsValoresAReceber",te(W)],["LmsValoresEmAtraso",b(W)],["LmsValoresRecebidos",I(W)]]).get(P);if(!G)throw new Error("Tipo de relat\xf3rio n\xe3o encontrado, confira se existe fun\xe7\xe3o apontando para o tipo de relat\xf3rio");return G},v=W=>new Map([["PDF",s.T.PDF],["EXCEL",s.T.XLSX],["WORD",s.T.DOCX]]).get(W),T={showCurso:!1,showDesconto:!1,showDescontoPorCento:!1,showNome:!1,showSplitEscola:!1,showSplitPolo:!1,showTipo:!1,showValor:!1,showVenda:!1,agrupamento:null,ordenacao:{orderByData:null,orderByPolo:null},salvar:!1,cursos:"",dataFim:"",dataInicio:"",escolas:"",polos:"",tiposCurso:"",formato:null,escolasDisponiveis:[],polosDisponiveis:[],cursosDisponiveis:[],tiposDeCursoDisponiveis:[],licoesDisponiveis:[],camposRelatorio:A.Uo,possuiUltimosParametros:!1,relatorioBancoDeQuestoes:null,titulos:"",ano:"",questaoStatus:"",licoes:"",matriculas:"",promotores:"",curso:"",report:"",disciplina:""}},85305:(ut,fe,d)=>{"use strict";d.d(fe,{Uo:()=>c,be:()=>A,zm:()=>w});const s="REPORTSMODULE.REPORT_LIST",c=[["showCurso",`${s}.SHOW_COURSE`],["showDesconto",`${s}.SHOW_DISCOUNT`],["showDescontoPorCento",`${s}.SHOW_DISCOUNT_PERCENT`],["showNome",`${s}.SHOW_NAME`],["showSplitEscola",`${s}.SHOW_SPLIT_SCHOOL`],["showSplitPolo",`${s}.SHOW_SPLIT_POLO`],["showTipo",`${s}.SHOW_TYPE`],["showValor",`${s}.SHOW_VALUE`],["showVenda",`${s}.SHOW_SALE`]],A=[{label:"Anal\xedtico",key:"analitico",checked:!1},{label:"Sint\xe9tico",key:"sintetico",checked:!1}],w=[{label:"Data",key:"orderByData",checked:!1},{label:"Polo",key:"orderByPolo",checked:!1}]},95908:(ut,fe,d)=>{"use strict";d.d(fe,{U:()=>w});var s=d(92340),c=d(94650),A=d(80529);let w=(()=>{class N{constructor(I){this.http=I,this.calendario=s.N.API.ATIVIDADE_CALENDARIO}getStudentActivities(I){return this.http.get(`${this.calendario}/calendario-do-aluno/selecionar-atividades-do-aluno/${I}`)}getTotalEventsCount(){return this.http.get(`${this.calendario}/calendario-do-aluno/total-atividade`)}}return N.\u0275fac=function(I){return new(I||N)(c.LFG(A.eN))},N.\u0275prov=c.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"}),N})()},40028:(ut,fe,d)=>{"use strict";d.d(fe,{R:()=>N});var s=d(92340),c=d(61135),A=d(94650),w=d(80529);let N=(()=>{class te{constructor(b){this.http=b,this.disciplinaIdSource=new c.X(0),this.messageIdSource=new c.X(0)}get disciplinaId$(){return this.disciplinaIdSource.asObservable()}setDisciplinaID(b){this.disciplinaIdSource.next(b)}getAllTutors(){return this.http.get(`${s.N.API.TUTOR}/tutores?name`)}getAllSchoolDisciplines(){return this.http.get(`${s.N.API.TUTOR}/escola-disciplinas`)}getTutorDisciplinesById(b){return this.http.get(`${s.N.API.TUTOR}/tutor-disciplina/tutor/${b}`)}getTutorDisciplines(){return this.http.get(`${s.N.API.TUTOR}/tutor-disciplina`)}linkTutorWithDisciplines(b){return this.http.post(`${s.N.API.TUTOR}/tutor-disciplina/vinculo`,b)}unlinkTutorDisciplines(b){return this.http.delete(`${s.N.API.TUTOR}/tutor-disciplina/vinculo`,{body:{tutorDisciplinaIds:b}})}getLibrary(b){return this.http.get(`${s.N.API.TUTOR}/biblioteca-virtual/itens/${b}`)}getTutorFilters(){return this.http.get(`${s.N.API.TUTOR}/tutores/filtros`)}getLearningObjects(b){return this.http.get(`${s.N.API.TUTOR}/objetos-de-aprendizagem/disciplina/${b}`)}}return te.\u0275fac=function(b){return new(b||te)(A.LFG(w.eN))},te.\u0275prov=A.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})()},59383:(ut,fe,d)=>{"use strict";d.d(fe,{Bx:()=>te,L6:()=>c,Ov:()=>b,S2:()=>s,ZT:()=>A,sQ:()=>N,x8:()=>w});let s=(()=>{class p{constructor(v,T,W){this.idDisciplina=v,this.pageNumber=T,this.livroId=W}}return p.type="[Fragmentos] Get Page Fragments",p})(),c=(()=>{class p{constructor(v,T){this.idDisciplina=v,this.livroId=T}}return p.type="[Fragmentos] Get Next Page Fragments",p})(),A=(()=>{class p{constructor(v,T){this.idDisciplina=v,this.livroId=T}}return p.type="[Fragmentos] Get Previous Page Fragments",p})(),w=(()=>{class p{constructor(v,T){this.idDisciplina=v,this.livroId=T}}return p.type="[Livro] Get Actual Book by Discipline",p})(),N=(()=>{class p{constructor(v){this.livroId=v}}return p.type="[Livro] Get Actual Book by Id",p})(),te=(()=>{class p{constructor(v,T){this.uuid=v,this.integrationUUID=T}}return p.type="[Livro] Get Actual Book DRM",p})(),b=(()=>{class p{}return p.type="[Livro] getActualBookChapters",p})()},83127:(ut,fe,d)=>{"use strict";d.d(fe,{O5:()=>w,P7:()=>A,gl:()=>c,kp:()=>s});let s=(()=>{class N{constructor(I,b,p,_){this.idDisciplina=I,this.actualPage=b,this.messageToSearch=p,this.chatServiceName=_}}return N.type="[Chat] getMessages",N})(),c=(()=>{class N{constructor(I,b,p){this.lastMessageId=I,this.matriculaDisciplinaId=b,this.chatServiceName=p}}return N.type="[Chat] getUnreadedMessages",N})(),A=(()=>{class N{constructor(I,b,p){this.chatSubmit=I,this.idMatriculaDisciplina=b,this.chatServiceName=p}}return N.type="[Chat] createMessage",N})(),w=(()=>{class N{constructor(I,b){this.matriculaDisciplinaId=I,this.chatServiceName=b}}return N.type="[Chat] openMessageChat",N})()},68853:(ut,fe,d)=>{"use strict";d.d(fe,{C:()=>s,d:()=>c});let s=(()=>{class A{}return A.type="[Communication] Get Sections",A})(),c=(()=>{class A{constructor(N,te){this.url=N,this.sectionNumber=te}}return A.type="[Communication] Get Section",A})()},96270:(ut,fe,d)=>{"use strict";d.d(fe,{Bf:()=>B,Db:()=>b,IB:()=>te,OV:()=>_,PE:()=>N,PO:()=>v,V6:()=>I,cT:()=>A,ck:()=>p,gl:()=>c,i5:()=>s,jW:()=>P,jg:()=>T,q1:()=>w,yO:()=>W});let s=(()=>{class G{}return G.type="[Count] GetOpenedDisciplinesCount",G})(),c=(()=>{class G{}return G.type="[Count] GetUnreadedChatMessages",G})(),A=(()=>{class G{constructor(Z){this.matriculaId=Z}}return G.type="[Count] GetOverduePortionsQuantity",G})(),w=(()=>{class G{constructor(Z){this.matriculaDisciplinaId=Z}}return G.type="[Count] GetLearningQuantity",G})(),N=(()=>{class G{constructor(Z){this.matriculaDisciplinaId=Z}}return G.type="[Count] GetTestsQuantity",G})(),te=(()=>{class G{}return G.type="[Count] GetTotalEventsCount",G})(),I=(()=>{class G{}return G.type="[Count] GetQuestionsCount",G})(),b=(()=>{class G{}return G.type="[Count] GetAlertsCount",G})(),p=(()=>{class G{}return G.type="[Count] GetPracticalActivitiesCount",G})(),_=(()=>{class G{}return G.type="[Count] GetNotReadedMessagesByTutorCount",G})(),v=(()=>{class G{}return G.type="[Count] GetNotReadedSecretaryMessagesByTutorCount",G})(),T=(()=>{class G{}return G.type="[Count] GetNotReadedPaymentMessagesByTutorCount",G})(),W=(()=>{class G{}return G.type="[Count] GetNotReadedSupervisorMessagesCount",G})(),P=(()=>{class G{}return G.type="[Count] GetAllTutorMessagesCount",G})(),B=(()=>{class G{constructor(Z){this.matriculaId=Z}}return G.type="[Count] GetStudentsWithNotReadedMessagesByPaymentCount",G})()},62390:(ut,fe,d)=>{"use strict";d.d(fe,{Zo:()=>c,tr:()=>s,uj:()=>w,xi:()=>A});let s=(()=>{class N{constructor(I){this.idAluno=I}}return N.type="[Matricula] GetAllMatriculas",N})(),c=(()=>{class N{}return N.type="[Curso] UpdateCourseInfo",N})(),A=(()=>{class N{constructor(I){this.matricula=I}}return N.type="[Matricula] setMatricula",N})(),w=(()=>{class N{constructor(I){this.disciplina=I}}return N.type="[Disciplina] ManualUpdateDiscipline",N})()},39133:(ut,fe,d)=>{"use strict";d.d(fe,{CN:()=>W,DY:()=>s,IM:()=>N,Ng:()=>w,RK:()=>T,Wx:()=>b,fK:()=>I,gm:()=>p,jM:()=>A,pg:()=>c,t3:()=>v,vX:()=>_,xj:()=>te});let s=(()=>{class P{constructor(G){this.retry=G}}return P.type="[Disciplina] UpdateActualDiscipline",P})(),c=(()=>{class P{constructor(G){this.idDisciplina=G}}return P.type="[Disciplina] getLessons",P})(),A=(()=>{class P{constructor(G){this.videoLessonId=G}}return P.type="[Disciplina] setActualVideoLesson",P})(),w=(()=>{class P{}return P.type="[Disciplina] resetVideoLesson",P})(),N=(()=>{class P{constructor(G){this.videoAulaMatriculaDisciplina=G}}return P.type="[Disciplina] SetVideoAulaMatriculaDisciplinaAtual",P})(),te=(()=>{class P{constructor(G){this.matriculaDisciplinaId=G}}return P.type="[Disciplina] getAllVideoLessonsByMatriculaDisciplina",P})(),I=(()=>{class P{constructor(G){this.videoAulaMatriculaDisciplinaId=G}}return P.type="[Disciplina] getActualVideoLessonMarkers",P})(),b=(()=>{class P{constructor(G){this.matriculaDisciplinaId=G}}return P.type="[Disciplina] getMatriculaDisciplinaAvaliacaoReacao",P})(),p=(()=>{class P{}return P.type="[Disciplina] updateAimProgress",P})(),_=(()=>{class P{}return P.type="[Disciplina] GoToFirstAvailableDiscipline",P})(),v=(()=>{class P{constructor(G){this.disciplina=G}}return P.type="[Disciplina] StartDiscipline",P})(),T=(()=>{class P{constructor(G){this.disciplina=G}}return P.type="[Disciplina] ChangeDiscipline",P})(),W=(()=>{class P{constructor(G,U){this.avaliacaoReacaoId=G,this.disciplinaId=U}}return P.type="[Disciplina] FinishReactionEvaluation",P})()},73092:(ut,fe,d)=>{"use strict";d.d(fe,{E3:()=>te,EY:()=>T,FP:()=>_,NU:()=>w,TL:()=>I,Td:()=>W,UZ:()=>A,VH:()=>s,Z:()=>N,bP:()=>b,iQ:()=>c,pz:()=>v,sM:()=>p});let s=(()=>{class P{constructor(G){this.matriculaId=G}}return P.type="[ManageFinancial] getPaymentPlan",P})(),c=(()=>{class P{constructor(G,U){this.matriculaId=G,this.pagamentoValorEmAberto=U}}return P.type="[ManageFinancial] payOutstandingAmountWithCreditCard",P})(),A=(()=>{class P{constructor(G){this.email=G}}return P.type="[ManageFinancial] setSelectedStudentToManageFinancial",P})(),w=(()=>{class P{constructor(G){this.nome=G}}return P.type="[ManageFinancial] getStudentsToManageFinancialByName",P})(),N=(()=>{class P{constructor(G){this.cpf=G}}return P.type="[ManageFinancial] getStudentsToManageFinancialByCPF",P})(),te=(()=>{class P{constructor(G){this.alunoId=G}}return P.type="[ManageFinancial] getStudentCourseToManageFinancialByIdAluno",P})(),I=(()=>{class P{constructor(G){this.studentRenegotiation=G}}return P.type="[ManageFinancial] setStudentRenegotiation",P})(),b=(()=>{class P{constructor(G,U=!1,Z=1){this.matriculaId=G,this.pollingCondition=U,this.retries=Z}}return P.type="[ManageFinancial] getRenegotiationPaymentPlan",P})(),p=(()=>{class P{constructor(G,U){this.matriculaId=G,this.renegociacaoSolicitacao=U}}return P.type="[ManageFinancial] getRenegotiationPayentPlanPrevisualization",P})(),_=(()=>{class P{constructor(G,U,Z){this.matriculaId=G,this.dataEntrada=U,this.valorEntrada=Z}}return P.type="[ManageFinancial] getRenegotiationPaymentPlanMaxPortionsQuantity",P})(),v=(()=>{class P{constructor(G){this.renegociacaoSolicitacao=G}}return P.type="[ManageFinancial] confirmPaymentPlanRenegotiation",P})(),T=(()=>{class P{constructor(G){this.renegociacaoId=G}}return P.type="[ManageFinancial] cancelPaymentPlanRenegotiation",P})(),W=(()=>{class P{constructor(G){this.pagamentoParcelaCartao=G}}return P.type="[ManageFinancial] payPaymentPlanPortionWithCreditCard",P})()},88787:(ut,fe,d)=>{"use strict";d.d(fe,{A0:()=>s,BT:()=>ue,BU:()=>P,Bv:()=>Y,Cd:()=>te,De:()=>v,EM:()=>W,Ei:()=>N,H$:()=>oe,HO:()=>G,Jx:()=>F,X4:()=>Z,jO:()=>U,jf:()=>b,lf:()=>w,oX:()=>_,qA:()=>I,qt:()=>B,s7:()=>ee,w1:()=>T,yJ:()=>p,zF:()=>c});let s=(()=>{class X{}return X.type="[ManageInstitutions] Get All Polos",X})(),c=(()=>{class X{constructor(k){this.filtro=k}}return X.type="[ManageInstitutions] Get All Institutions By Filter",X})(),w=(()=>{class X{constructor(k){this.redeId=k}}return X.type="[ManageInstitutions] Get Learning Network By Id",X})(),N=(()=>{class X{constructor(k){this.payload=k}}return X.type="[ManageInstitutions] Create Learning Network",X})(),te=(()=>{class X{constructor(k){this.payload=k}}return X.type="[ManageInstitutions] Update Learning Network",X})(),I=(()=>{class X{constructor(k,$=""){this.redeId=k,this.nome=$}}return X.type="[ManageInstitutions] Get All Schools By Network Id",X})(),b=(()=>{class X{constructor(k){this.escolaId=k}}return X.type="[ManageInstitutions] Get Schpool By Id",X})(),p=(()=>{class X{constructor(k){this.payload=k}}return X.type="[ManageInstitutions] Create School",X})(),_=(()=>{class X{constructor(k){this.payload=k}}return X.type="[ManageInstitutions] Update School",X})(),v=(()=>{class X{constructor(k,$){this.escolaId=k,this.logo=$}}return X.type="[ManageInstitutions] Update School Logo",X})(),T=(()=>{class X{constructor(k){this.redeId=k}}return X.type="[ManageInstitutions] Get All Polos By Network Id",X})(),W=(()=>{class X{constructor(k){this.poloId=k}}return X.type="[ManageInstitutions] Get Polo By Id",X})(),P=(()=>{class X{constructor(k){this.payload=k}}return X.type="[ManageInstitutions] Create Polo",X})(),B=(()=>{class X{constructor(k){this.payload=k}}return X.type="[ManageInstitutions] Update Polo",X})(),G=(()=>{class X{constructor(k){this.escolaId=k}}return X.type="[ManageInstitutions] Get Polos By School Id",X})(),U=(()=>{class X{}return X.type="[ManageInstitutions] Get Select Polo Test Locals",X})(),Z=(()=>{class X{}return X.type="[ManageInstitutions] Create Update Test Local",X})(),ue=(()=>{class X{constructor(k){this.localId=k}}return X.type="[ManageInstitutions] Get Test Local By Id",X})(),F=(()=>{class X{constructor(k){this.localId=k}}return X.type="[ManageInstitutions] Delete Test Local",X})(),Y=(()=>{class X{constructor(k){this.localId=k}}return X.type="[ManageInstitutions] Enable Or Disable Local",X})(),ee=(()=>{class X{constructor(k){this.timeRangeId=k}}return X.type="[ManageInstitutions] Delete Time Range",X})(),oe=(()=>{class X{constructor(k){this.timeRange=k}}return X.type="[ManageInstitutions] Set Time Range",X})()},91388:(ut,fe,d)=>{"use strict";d.d(fe,{J$:()=>c,Ot:()=>w,PW:()=>I,Th:()=>p,U_:()=>te,XF:()=>W,Ym:()=>s,a9:()=>T,ei:()=>A,nC:()=>b,p3:()=>N,po:()=>v});let s=(()=>{class P{}return P.type="[manageProfile] GetAllProfiles",P})(),c=(()=>{class P{constructor(G){this.perfilComPerfilCompleto=G}}return P.type="[manageProfile] SelectProfileToEdit",P})(),A=(()=>{class P{constructor(G){this.perfilDto=G}}return P.type="[manageProfile] CreateProfile",P})(),w=(()=>{class P{constructor(G,U){this.perfilDto=G,this.perfilId=U}}return P.type="[manageProfile] UpdateProfile",P})(),N=(()=>{class P{constructor(G){this.perfilId=G}}return P.type="[manageProfile] DeleteProfile",P})(),te=(()=>{class P{constructor(G){this.perfilId=G}}return P.type="[manageProfile] GetCompleteProfileById",P})(),I=(()=>{class P{constructor(G){this.perfilId=G}}return P.type="[manageProfile] EnableProfileById",P})(),b=(()=>{class P{constructor(G){this.perfilId=G}}return P.type="[manageProfile] DisableProfileById",P})(),p=(()=>{class P{}return P.type="[manageProfile] GetAllPermissions",P})(),v=(()=>{class P{constructor(G=""){this.busca=G}}return P.type="[manageProfile] GetAllEmployees",P})(),T=(()=>{class P{constructor(G){this.email=G}}return P.type="[manageProfile] SelectEmployee",P})(),W=(()=>{class P{constructor(G,U){this.pessoaEmpresaId=G,this.perfisId=U}}return P.type="[manageProfile] AssociateEmployeeWithProfileList",P})()},57075:(ut,fe,d)=>{"use strict";d.d(fe,{D1:()=>c,Em:()=>v,Jt:()=>_,Os:()=>w,_P:()=>p,aC:()=>A,aK:()=>b,ep:()=>I,h8:()=>N,i2:()=>s,mM:()=>te});let s=(()=>{class T{}return T.type="[ReactionEvaluation] GetAllReactionEvaluations",T})(),c=(()=>{class T{constructor(P){this.id=P}}return T.type="[ReactionEvaluation] GetReactionEvaluationById",T})(),A=(()=>{class T{constructor(P){this.payload=P}}return T.type="[ReactionEvaluation] CreateReactionEvaluation",T})(),w=(()=>{class T{constructor(P){this.payload=P}}return T.type="[ReactionEvaluation] UpdateReactionEvaluation",T})(),N=(()=>{class T{constructor(P){this.id=P}}return T.type="[ReactionEvaluation] DeleteQuestionFromSelectedReactionEvaluation",T})(),te=(()=>{class T{constructor(P){this.payload=P}}return T.type="[ReactionEvaluation] EditQuestionFromSelectedReactionEvaluation",T})(),I=(()=>{class T{constructor(P){this.payload=P}}return T.type="[ReactionEvaluation] DisableReactionEvaluation",T})(),b=(()=>{class T{constructor(P){this.payload=P}}return T.type="[ReactionEvaluation] EnableReactionEvaluation",T})(),p=(()=>{class T{constructor(P){this.payload=P}}return T.type="[ReactionEvaluation] AddTipoDeAlternativa",T})(),_=(()=>{class T{constructor(P){this.payload=P}}return T.type="[ReactionEvaluation] EditTipoDeAlternativa",T})(),v=(()=>{class T{constructor(P){this.payload=P}}return T.type="[ReactionEvaluation] SelectTipoDeAlternativaToEdit",T})()},61566:(ut,fe,d)=>{"use strict";d.d(fe,{Pd:()=>ee,V2:()=>Y,yI:()=>y,Eh:()=>$,Qv:()=>X,_y:()=>B,jn:()=>P,g0:()=>U,v3:()=>oe,GZ:()=>$t,mL:()=>k,nc:()=>L,b6:()=>ue,Xd:()=>Z,eC:()=>G,$h:()=>J});var s=d(94650),c=d(54244),A=d(54004),w=d(18505),N=d(61646),te=d(14823),I=d(35439),b=d(63900),p=d(39300),_=d(95577),v=d(76657);const T=({stateContext:$e,paymentService:Et,action:ke})=>je=>{const de=$e.getState();return je.pipe((0,b.w)(me=>ke.pipe((0,A.U)(Ne=>{const{operacaoFinalizada:it}=me.body;return $e.patchState({...de,matriculaSelecionada:Ne[0],idRenegociacaoRecemConfirmada:me.body.id,operacaoFinalizada:it}),me}))),(0,p.h)(me=>me.body.formaPagamento===v.d.BOLETO),(0,_.z)(me=>Et.gerarBoleto(me.body.id)),(0,w.b)(({url:me})=>window.open(me,"_blank")))};let P=(()=>{class $e{constructor(ke){this.nome=ke}}return $e.type="[ManageRegistration] getStudentList",$e})(),B=(()=>{class $e{constructor(ke){this.cpf=ke}}return $e.type="[ManageRegistration] getStudentByCpf",$e})(),G=(()=>{class $e{constructor(ke){this.nomePessoa=ke}}return $e.type="[ManageRegistration] setSelectedStudent",$e})(),U=(()=>{class $e{constructor(ke){this.alunoId=ke}}return $e.type="[ManageRegistration] getStudentRegistrations",$e})(),Z=(()=>{class $e{constructor(ke){this.curso=ke}}return $e.type="[ManageRegistration] setSelectedRegistrationToManageByCourseName",$e})(),ue=(()=>{class $e{constructor(ke){this.matriculaRenegociacao=ke}}return $e.type="[ManageRegistration] setSelectedRegistrationToManage",$e})(),Y=(()=>{class $e{constructor(ke){this.matriculaRenegociacao=ke}}return $e.type="[ManageRegistration] extendRegistration",$e})(),ee=(()=>{class $e{constructor(ke){this.matriculaRenegociacao=ke}}return $e.type="[ManageRegistration] cancelRegistration",$e})(),oe=(()=>{class $e{constructor(ke){this.matriculaRenegociacao=ke}}return $e.type="[ManageRegistration] lockRegistration",$e})(),X=(()=>{class $e{constructor(ke){this.monthsToExtend=ke}}return $e.type="[ManageRegistration] getPortionValue",$e})(),y=(()=>{class $e{constructor(ke){this.action=ke}}return $e.type="[ManageRegistration] generateTerm",$e})(),k=(()=>{class $e{}return $e.type="[ManageRegistration] resetRenegotiationTotalValue",$e})(),$=(()=>{class $e{}return $e.type="[ManageRegistration] gerarBoletoRenegociacao",$e})(),J=(()=>{class $e{constructor(ke){this.informacoesDePagamento=ke}}return $e.type="[ManageRegistration] updateRenegotiationPaymentInfo",$e})(),L=(()=>{class $e{constructor(ke){this.nomeRenegociacao=ke}}return $e.type="[ManageRegistration] setNomeRenegociacao",$e})(),le=(()=>{class $e{constructor(){this.paymentService=(0,s.f3M)(N.t),this.matriculaService=(0,s.f3M)(te.H),this.studentService=(0,s.f3M)(I.N)}getStudentList(ke,{nome:je}){const de=ke.getState();return this.studentService.getStudentListByFilters({nome:je}).pipe((0,c.n)(me=>!me),(0,A.U)(me=>me.sort((Ne,it)=>Ne.nome<it.nome?-1:1)),(0,w.b)(me=>{ke.patchState({...de,alunos:me})}))}getStudentByCpf(ke,{cpf:je}){const de=ke.getState();if(je!==de.alunoSelecionado?.cpf)return this.studentService.getStudentByCpf(je).pipe((0,w.b)(me=>{ke.patchState({...de,alunoSelecionado:me})}))}setSelectedStudent(ke,{nomePessoa:je}){const de=ke.getState(),Ne=de.alunos.find(it=>it.nome===je);ke.patchState({...de,alunoSelecionado:Ne})}getStudentRegistrations(ke,{}){throw new Error("Method not implemented.")}setSelectedRegistrationToManageByCourseName(ke,{curso:je}){const de=ke.getState(),{nomeRenegociacao:me}=de,Ne=de.matriculasDoAluno.find(nn=>nn.curso===je),it=Array.from({length:Ne?.numeroMaximoMeses},(nn,Pt)=>Pt+1),{taxaCancelamento:yt,taxaProrrogacao:Gt,taxaTrancamento:Ft}=Ne.matricula.tipoDeCurso,sn="prorrogacao"===me?Ne.valorMensal:{cancelamento:yt,prorrogacao:Gt,trancamento:Ft}[me];return ke.patchState({...de,matriculaSelecionada:Ne,quantidadeMesesDisponiveis:it,taxa:sn})}setSelectedRegistrationToManage(ke,{matriculaRenegociacao:je}){const de=[],me=ke.getState(),{nomeRenegociacao:Ne}=me,{taxaCancelamento:it,taxaProrrogacao:yt,taxaTrancamento:Gt}=me.matriculaSelecionada.matricula.tipoDeCurso,Vt="prorrogacao"===Ne?me.matriculaSelecionada.valorMensal:{cancelamento:it,prorrogacao:yt,trancamento:Gt}[Ne];for(let sn=0;sn<je?.numeroMaximoMeses;sn++)de.push(sn);return ke.patchState({...ke.getState(),matriculaSelecionada:je,quantidadeMesesDisponiveis:de,taxa:Vt})}confirmRegistrationAction(ke,{}){throw new Error("Method not implemented.")}getPortionValue(ke,{monthsToExtend:je}){const de=ke.getState(),me=de?.matriculaSelecionada?.valorMensal*je,Ne=Math.max(Math.floor(me/de?.matriculaSelecionada?.valorMinimoParcela),1),it=Math.min(Ne,12),yt=[];for(let Gt=1;Gt<=it;Gt++)yt.push({qtd:Gt,valor:me/Gt});ke.patchState({...de,parcelas:yt,valorTotal:me})}generateTerm(ke,{}){throw new Error("Method not implemented.")}updateRenegotiationPaymentInfo(ke,{informacoesDePagamento:je}){const de=ke.getState();ke.patchState({...de,informacoesDePagamento:je})}gerarBoletoRenegociacao(ke){const je=ke.getState(),{idRenegociacaoRecemConfirmada:de}=je,{parcelaId:me}=je.matriculaSelecionada;return this.paymentService.gerarBoleto(de||me).pipe((0,w.b)(({url:Ne})=>window.open(Ne,"_blank")))}resetRenegotiationTotalValue(ke){const je=ke.getState();ke.patchState({...je,valorTotal:0})}}return $e.\u0275fac=function(ke){return new(ke||$e)},$e.\u0275prov=s.Yz7({token:$e,factory:$e.\u0275fac,providedIn:"root"}),$e})(),ce=(()=>{class $e{constructor(){this.matriculaService=(0,s.f3M)(te.H),this.paymentService=(0,s.f3M)(N.t)}getStudentRegistrations(ke,{}){throw new Error("Method not implemented.")}confirmRegistrationAction(ke,{}){throw new Error("Method not implemented.")}}return $e.\u0275fac=function(ke){return new(ke||$e)},$e.\u0275prov=s.Yz7({token:$e,factory:$e.\u0275fac,providedIn:"root"}),$e})(),Se=(()=>{class $e extends ce{getStudentRegistrations(ke,{alunoId:je}){const de=ke.getState();return this.matriculaService.getStudentCancelations(je).pipe((0,w.b)(me=>{ke.patchState({...de,matriculasDoAluno:me})}))}confirmRegistrationAction(ke,{matriculaRenegociacao:je}){const{id:de}=ke.getState().matriculaSelecionada.matricula,{informacoesDePagamento:me}=ke.getState();return this.matriculaService.cancelRegistration(de,{...je,...me}).pipe(T({paymentService:this.paymentService,stateContext:ke,action:this.matriculaService.getStudentCancelations(ke.getState().alunoSelecionado.id)}))}}return $e.\u0275fac=function(){let Et;return function(je){return(Et||(Et=s.n5z($e)))(je||$e)}}(),$e.\u0275prov=s.Yz7({token:$e,factory:$e.\u0275fac,providedIn:"root"}),$e})(),Qe=(()=>{class $e extends ce{constructor(){super(...arguments),this.studentListEndpoint="trancamento"}getStudentRegistrations(ke,{alunoId:je}){const de=ke.getState();return this.matriculaService.getStudentLockings(je).pipe((0,w.b)(me=>{ke.patchState({...de,matriculasDoAluno:me})}))}confirmRegistrationAction(ke,{matriculaRenegociacao:je}){const{id:de}=ke.getState().matriculaSelecionada.matricula,{informacoesDePagamento:me}=ke.getState();return this.matriculaService.lockRegistration(de,{...je,...me}).pipe(T({paymentService:this.paymentService,stateContext:ke,action:this.matriculaService.getStudentLockings(ke.getState().alunoSelecionado.id)}))}}return $e.\u0275fac=function(){let Et;return function(je){return(Et||(Et=s.n5z($e)))(je||$e)}}(),$e.\u0275prov=s.Yz7({token:$e,factory:$e.\u0275fac,providedIn:"root"}),$e})(),ct=(()=>{class $e extends ce{getStudentRegistrations(ke,{alunoId:je}){const de=ke.getState();return this.matriculaService.getStudentProrrogations(je).pipe((0,w.b)(me=>{ke.patchState({...de,matriculasDoAluno:me})}))}confirmRegistrationAction(ke,{matriculaRenegociacao:je}){const{id:de}=ke.getState().matriculaSelecionada.matricula,{informacoesDePagamento:me,alunoSelecionado:Ne}=ke.getState();return this.matriculaService.extendRegistration(de,{...je,...me}).pipe(T({paymentService:this.paymentService,stateContext:ke,action:this.matriculaService.getStudentProrrogations(Ne.id)}))}}return $e.\u0275fac=function(){let Et;return function(je){return(Et||(Et=s.n5z($e)))(je||$e)}}(),$e.\u0275prov=s.Yz7({token:$e,factory:$e.\u0275fac,providedIn:"root"}),$e})(),$t=(()=>{class $e extends le{constructor(){super(...arguments),this.trancamentoService=(0,s.f3M)(Qe),this.cancelamentoService=(0,s.f3M)(Se),this.prorrogacaoService=(0,s.f3M)(ct)}getService(ke){return"trancamento"===ke?this.trancamentoService:"cancelamento"===ke?this.cancelamentoService:this.prorrogacaoService}executeGetStudentRegistrations(ke,{alunoId:je},de){return this.getService(de).getStudentRegistrations(ke,{alunoId:je})}executeConfirmRegistrationAction(ke,{matriculaRenegociacao:je},de){return this.getService(de).confirmRegistrationAction(ke,{matriculaRenegociacao:je})}}return $e.\u0275fac=function(){let Et;return function(je){return(Et||(Et=s.n5z($e)))(je||$e)}}(),$e.\u0275prov=s.Yz7({token:$e,factory:$e.\u0275fac,providedIn:"root"}),$e})()},57492:(ut,fe,d)=>{"use strict";d.d(fe,{Az:()=>A,CF:()=>I,Lr:()=>te,OC:()=>N,Vr:()=>w,gc:()=>s,o:()=>c});let s=(()=>{class b{}return b.type="[ManageTutorDisciplines] Get All Tutors",b})(),c=(()=>{class b{constructor(_){this.tutor=_}}return b.type="[ManageTutorDisciplines] Select Tutor To Manage Disciplines",b})(),A=(()=>{class b{constructor(_){this.tutorId=_}}return b.type="[ManageTutorDisciplines] Get Tutor Disciplines To Manage",b})(),w=(()=>{class b{}return b.type="[ManageTutorDisciplines] Get All School Disciplines",b})(),N=(()=>{class b{constructor(_){this.disciplinesToSelect=_}}return b.type="[ManageTutorDisciplines] Link Tutor With Disciplines",b})(),te=(()=>{class b{}return b.type="[ManageTutorDisciplines] Unlink All Disciplines",b})(),I=(()=>{class b{constructor(_){this.disciplinesToRemove=_}}return b.type="[ManageTutorDisciplines] Unlink Disciplines From Tutor",b})()},84337:(ut,fe,d)=>{"use strict";d.d(fe,{A6:()=>w,B4:()=>T,Ig:()=>A,K0:()=>p,Pc:()=>W,S_:()=>N,YT:()=>te,Y_:()=>s,a4:()=>v,t0:()=>c,tb:()=>b,xd:()=>I,xk:()=>_});let s=(()=>{class P{}return P.type="[Manage Users] Get All Users",P})(),c=(()=>{class P{constructor(G){this.usuario=G}}return P.type="[Manage Users] Criar Usuario",P})(),A=(()=>{class P{constructor(G){this.usuarioCriacao=G}}return P.type="[Manage Users] Editar Usuario",P})(),w=(()=>{class P{constructor(G){this.cep=G}}return P.type="[Manage Users] Validar Cep Criacao Usuario",P})(),N=(()=>{class P{constructor(G){this.funcionarioFiltro=G}}return P.type="[Manage Users] Selec User To Edit",P})(),te=(()=>{class P{}return P.type="[Manage Users] Enable Edit User Preview Mode",P})(),I=(()=>{class P{}return P.type="[Manage Users] Disable Edit User Preview Mode",P})(),b=(()=>{class P{constructor(G){this.idPessoa=G}}return P.type="[Manage Users] Delete User",P})(),p=(()=>{class P{constructor(G){this.idPessoa=G}}return P.type="[Manage Users] Disable User",P})(),_=(()=>{class P{constructor(G){this.idPessoa=G}}return P.type="[Manage Users] Enable User",P})(),v=(()=>{class P{}return P.type="[Manage Users] Get Federations",P})(),T=(()=>{class P{constructor(G){this.ufId=G}}return P.type="[Manage Users] Get Cities By Federation",P})(),W=(()=>{class P{constructor(G){this.cidadeId=G}}return P.type="[Manage Users] Get District BY City Id",P})()},78507:(ut,fe,d)=>{"use strict";d.d(fe,{L:()=>s});let s=(()=>{class c{}return c.type="[Pessoa] GetOne",c})()},64961:(ut,fe,d)=>{"use strict";d.d(fe,{$0:()=>W,$9:()=>I,Bm:()=>b,E8:()=>c,EN:()=>_,HT:()=>v,Hv:()=>te,I6:()=>w,MM:()=>N,Mi:()=>Z,NS:()=>s,TG:()=>A,TN:()=>U,Zd:()=>ue,eY:()=>T,fD:()=>P,jv:()=>G,k:()=>p});let s=(()=>{class F{}return F.type="[Report] Get Last Saved Params",F})(),c=(()=>{class F{}return F.type="[Report] Get All Schools To Create Report",F})(),A=(()=>{class F{constructor(ee){this.redeId=ee}}return F.type="[Report] Get Polos To Create Report By Learning Network Id",F})(),w=(()=>{class F{constructor(ee){this.escolaId=ee}}return F.type="[Report] Get Polos By School Id To Create Report",F})(),N=(()=>{class F{constructor(ee){this.escolaIds=ee}}return F.type="[Report] Get Polos By Multiple School Ids To Create Report",F})(),te=(()=>{class F{constructor(ee){this.escolaId=ee}}return F.type="[Report] Get Course Types By School Id To Create Report",F})(),I=(()=>{class F{constructor(ee,oe){this.escolaId=ee,this.tipoDeCursoIds=oe}}return F.type="[Report] Get School Courses By Id And Type",F})(),b=(()=>{class F{constructor(ee,oe=[]){this.entity=ee,this.ids=oe}}return F.type="[Report] Add Entity To Report",F})(),p=(()=>{class F{constructor(ee,oe){this.dataInicio=ee,this.dataFim=oe}}return F.type="[Report] Set Report Period",F})(),_=(()=>{class F{constructor(ee){this.formato=ee}}return F.type="[Report] Set Report Format",F})(),v=(()=>{class F{constructor(ee){this.agrupamento=ee}}return F.type="[Report] Set Agrupamento Relatorio",F})(),T=(()=>{class F{constructor(ee){this.ordenacao=ee}}return F.type="[Report] Set Ordenacao Relatorio",F})(),W=(()=>{class F{constructor(ee,oe){this.campo=ee,this.exibir=oe}}return F.type="[Report] Set Report Field Exibition",F})(),P=(()=>{class F{constructor(ee,oe){this.tipoDeRelatorio=ee,this.endpoint=oe}}return F.type="[Report] Generate Report",F})(),G=(()=>{class F{}return F.type="[Report] Get Report Disciplines",F})(),U=(()=>{class F{constructor(ee){this.disciplinaId=ee}}return F.type="[Report] Get Report Discipline Lessons By Id",F})(),Z=(()=>{class F{constructor(ee){this.licoes=ee}}return F.type="[Report] Select Report Discipline Lesson",F})(),ue=(()=>{class F{constructor(ee){this.questaoStatus=ee}}return F.type="[Report] Set Questao Status",F})()},37285:(ut,fe,d)=>{"use strict";d.d(fe,{F4:()=>U,JP:()=>p,LJ:()=>te,Ng:()=>_,Sc:()=>X,TG:()=>Y,Vm:()=>B,ZP:()=>A,Zs:()=>T,_n:()=>s,an:()=>N,bV:()=>P,bY:()=>b,bn:()=>F,co:()=>c,jx:()=>v,oD:()=>oe,p2:()=>w,qr:()=>ue,tb:()=>G,v0:()=>ee,x7:()=>Z});let s=(()=>{class y{}return y.type="[StudentGroup] Get All Groups",y})(),c=(()=>{class y{constructor($){this.idGrupo=$}}return y.type="[StudentGroup] Delete Group",y})(),A=(()=>{class y{}return y.type="[StudentGroup] Add Students To Group",y})(),w=(()=>{class y{}return y.type="[StudentGroup] Remove Students from Group",y})(),N=(()=>{class y{constructor($,J){this.id=$,this.checked=J}}return y.type="[StudentGroup] Select Active Student",y})(),te=(()=>{class y{constructor($,J){this.id=$,this.checked=J}}return y.type="[StudentGroup] Select Group Student",y})(),b=(()=>{class y{constructor($){this.grupoCriacao=$}}return y.type="[StudentGroup] Create Group",y})(),p=(()=>{class y{constructor($){this.grupo=$}}return y.type="[StudentGroup] Select Group To Edit",y})(),_=(()=>{class y{constructor($){this.grupoId=$}}return y.type="[StudentGroup] GetAllStudentsFromGroup",y})(),v=(()=>{class y{}return y.type="[StudentGroup] Get All Polos",y})(),T=(()=>{class y{}return y.type="[StudentGroup] Get All Cursos To Create Group",y})(),P=(()=>{class y{constructor($){this.cursoId=$}}return y.type="[StudentGroup] Get All Disciplines From Course To Create Group",y})(),B=(()=>{class y{constructor($){this.grupoId=$}}return y.type="[StudentGroup] Activate Group",y})(),G=(()=>{class y{constructor($){this.grupoId=$}}return y.type="[StudentGroup] Deactivate Group",y})(),U=(()=>{class y{constructor($){this.filtro=$}}return y.type="[StudentGroup] Busca Por Curso Disciplina Polo",y})(),Z=(()=>{class y{constructor($){this.nome=$}}return y.type="[StudentGroup] Filtrar Pessoas Disponiveis",y})(),ue=(()=>{class y{constructor($){this.nome=$}}return y.type="[StudentGroup] Filtrar Pessoas Grupo",y})(),F=(()=>{class y{constructor($){this.payload=$}}return y.type="[StudentGroup] Update Group",y})(),Y=(()=>{class y{constructor($){this.params=$}}return y.type="[StudentGroup] Filtrar Grupo",y})(),ee=(()=>{class y{}return y.type="[StudentGroup] Get Actual Group Data",y})(),oe=(()=>{class y{constructor($){this.selectAll=$}}return y.type="[StudentGroup] Add All Students To Group",y})(),X=(()=>{class y{constructor($){this.selectAll=$}}return y.type="[StudentGroup] Remove All Students From Group",y})()},61646:(ut,fe,d)=>{"use strict";d.d(fe,{t:()=>b});var s=d(92340),c=d(70262),A=d(39646),w=d(62843),N=d(34829),te=d(94650),I=d(80529);let b=(()=>{class p{constructor(v){this.http=v,this.matriculaDisciplina=s.N.API.MATRICULA_DISCIPLINA,this.pagamento=s.N.API.PAYMENT}getPaymentHistory(v){return this.http.get(`${this.matriculaDisciplina}/historico-financeiro/${v}`)}gerarBoleto(v){return this.http.post(`${this.pagamento}/boletos/matricula-parcela/${v}`,null)}payPortionWithCreditCard(v){return this.http.put(`${this.pagamento}/cartao-de-credito/pagar`,v).pipe((0,c.K)(W=>W.status===N.Z.CREATED?(0,A.of)(null):(0,w._)(()=>W)))}payPortionWithPix({matriculaParcelasId:v}){return this.http.put(`${this.pagamento}/pix/pagar`,{matriculaParcelasId:v})}}return p.\u0275fac=function(v){return new(v||p)(te.LFG(I.eN))},p.\u0275prov=te.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"}),p})()},30804:(ut,fe,d)=>{"use strict";d.d(fe,{C:()=>w,D:()=>N});const s="/assets/images",c=`${s}/discipline-cards/`,A=`${s}/tutor-icons`,w={ATIVIDADES_PRATICAS:`${c}atividades_praticas.svg`,AULA_INTERATIVA:`${c}aula_interativa.svg`,BIBLIOTECA:`${c}biblioteca.svg`,FORUM:`${c}forum.svg`,HISTORICO:`${c}historico.svg`,LIVRO_DIDATICO:`${c}livro_didatico.svg`,PROVA:`${c}prova.svg`,VIDEO_AULA:`${c}video_aula.svg`,MENU_ANOTACOES:`${c}menu_anotacoes.svg`,MENU_PERGTUTOR:`${c}menu_pergtutor.svg`,PAINEL_CALENDARIO:`${c}painel_calendario.svg`,PAINEL_CHAT:`${c}painel_chat.svg`,PAINEL_PRINCIPAL:`${c}painel_principal.svg`},N={ATIVIDADES_PRATICAS:`${A}/atividades-praticas.svg`,AVISOS:`${A}/avisos.svg`,DISCIPLINA:`${A}/disciplina.svg`,MENSAGENS:`${A}/mensagens.svg`,MEUS_ALUNOS:`${A}/meus-alunos.svg`,PROVA:`${A}/provas.svg`,GERIR_PERFIS:`${A}/gerir-perfis.svg`,GERIR_FINANCEIRO:`${A}/gerir-financeiro.svg`,GERIR_MATRICULA:`${A}/gerir-matricula.svg`,GERIR_AVALIACAO_DE_REACAO:`${A}/gerir-avaliacao-de-reacao.svg`,GERIR_DISCIPLINAS_TUTOR:`${A}/gerir-disciplinas.svg`,GERIR_INSTITUICOES:`${A}/instituicoes.svg`,CGC:`${A}/cgc.svg`,GERIR_PROVAS:`${A}/gerir-provas.svg`,COMPONENTE_CURRICULAR:`${A}/gerir-matricula.svg`}},52925:(ut,fe,d)=>{"use strict";d.d(fe,{b:()=>s});let s=(()=>{class c{}return c.AIM="aim",c.TEST="prova",c.CURSO="curso",c.TUTOR="tutor",c.PROVA="prova",c.ALUNOS="alunos",c.MODULOS="modulos",c.ESTAGIO="estagio",c.ESPELHO="espelho",c.AUTENTICACAO="auth",c.LIVRO_DIDATICO="livro-didatico",c.LISTA="lista",c.PERFIL_ESTUDANTE="student-profile",c.APRENDIZAGEM="aprendizagem",c.CERTIFICADOS="certificados",c.DISCIPLINA="disciplina",c.HISTORICO="historico",c.BIBLIOTECA="biblioteca",c.ATIVIDADES_PRATICAS="atividades-praticas",c.VIDEO_AULA="video-aula",c.PAGAMENTO="pagamento",c.QUESTAO="questao",c.SUCESSO_QUESTAO="sucesso",c.COMUNICACAO="comunicacao",c.CALENDARIO_ESTUDANTE="calendario-estudante",c.REALIZAR_PROVA="prova",c.MENSAGENS="mensagens",c.ATIVIDADES_TUTOR="atividades",c.ALERTAS="alertas",c.REVISAR="revisar",c.JUSTIFICAR="justificar",c.RESPONDER="responder",c.INTEGRACAO_LIVRO="integracao/book",c.ACESSO_LIVROS="acesso-livros",c.PROGRESSO="progresso",c.SECRETARIA="secretaria",c.COORDENADOR="coordenador",c.RELATORIOS="relatorios",c.GERIR_MATRICULA="matricula",c.PRORROGAR_MATRICULA="prorrogar-matricula",c.TRANCAR_MATRICULA="trancar-matricula",c.CANCELAR_MATRICULA="cancelar-matricula",c.RENEGOCIAR="renegociar",c.GERIR_FINANCEIRO="gerir-financeiro",c.PLANO_DE_PAGAMENTO="plano-de-pagamento",c.FILTRAR_ALUNO="filtrar-aluno",c.RENEGOCIAR_PLANO="renegociar-plano",c.GROUP="grupo",c.GERIR_PERFIS="gerir-perfis",c.INCLUIR="incluir",c.USUARIOS_ASSOCIADOS="usuarios-associados",c.ASSOCIAR_PERFIL="associar-perfil",c.GERIR_AVALIACAO_DE_REACAO="gerir-avaliacao-de-reacao",c.CADASTRAR="cadastrar",c.GERIR_DISCIPLINAS_TUTOR="gerir-discipinas-tutor",c.GERIR_USUARIOS="gerir-usuarios",c.EDITAR="editar",c.PRIMEIRO_ACESSO="primeiro-acesso",c.MATRICULAR_ALUNOS="matricular-alunos",c.CONSULTAR_ALUNOS="consultar-alunos",c.AGRUPADOR="agrupador",c.DADOS_ACADEMICOS_ALUNO="dados-academicos-aluno",c.DADOS_CADASTRAIS_ALUNO="dados-cadastrais-aluno",c.DADOS_FINANCEIROS_ALUNO="dados-financeiros-aluno",c.DISCIPLINAS_FINALIZADAS="disciplinas-finalizadas",c.DISCIPLINAS_EM_ANDAMENTO="disciplinas-em-andamento",c.DISCIPLINAS_NAO_INICIADAS="disciplinas-nao-iniciadas",c.DETALHES_MATRICULA="detalhes-matricula",c.CRIAR_CHAT="criar-chat",c.GERIR_CALENDARIO_ESCOLAR="gerir-calendario-escolar",c.GERIR_INSTITUICOES="gerir-instituicoes",c.ESCOLA="escola",c.POLOS="polos",c.REDE="rede",c.BANCO_DE_QUESTOES="banco-de-questoes",c.FINANCEIRO="financeiro",c.ATUALIZAR_CGC="cgc",c.ITENS_DE_AVALIACAO="itens-de-avaliacao",c.A_RECEBER="a-receber",c.PAGAR_RENEGOCIACAO="pagamento",c.TIPOS_DE_EVENTO="tipos-de-evento",c.CALENDARIO_ATUAL="calendario-atual",c.RECEBIDOS="recebidos",c.EM_ATRASO="em-atraso",c.CONFIGURAR_DOCUMENTOS="configurar-documentos",c.AGENDAR_PROVAS="agendar-provas",c.GERIR_CONFIGURACAO_ALUNO="gerir-configuracao-aluno",c.GERIR_COMPONENTE_CURRICULAR="gerir-componente-curricular",c.DADOS_GERAIS="dados-gerais",c.CADASTRO_LIVROS="cadastro-livros",c.CADASTRO_LIVRO_DADOS_GERAIS="cadastro-livro-dados-gerais",c.CADASTRO_LIVRO_SUMARIO="cadastro-livro-sumario",c.CADASTRO_VIDEO_AULA="cadastro-video-aula",c.CADASTRO_AULA_INTERATIVA="cadastro-aula-interativa",c.CADASTRO_BIBLIOTECA_VIRTUAL="cadastro-biblioteca-virtual",c.CADASTRO_DE_ATIVIDADES="cadastro-de-atividades",c.CADASTRO_DE_QUESTOES="cadastro-de-questoes",c.USUARIOS_BIBLIOTECA_VIRTUAL="usuarios-biblioteca-virtual",c.PESQUISAR_MATRICULAS="pesquisar-matriculas",c})()},40556:(ut,fe,d)=>{"use strict";d.d(fe,{R:()=>c});const c=[{nome:"N\xfameros - 1 a 5",opcoesResposta:(0,d(25379).MB)(5).map(A=>({opcaoResposta:A.toString()}))},{nome:"Letras - A a E",opcoesResposta:[{opcaoResposta:"A"},{opcaoResposta:"B"},{opcaoResposta:"C"},{opcaoResposta:"D"},{opcaoResposta:"E"}]},{nome:"Sim/N\xe3o",opcoesResposta:[{opcaoResposta:"Sim"},{opcaoResposta:"N\xe3o"}]},{nome:"Qualidade - P\xe9ssimo a \xd3timo",opcoesResposta:[{opcaoResposta:"P\xe9ssimo"},{opcaoResposta:"Ruim"},{opcaoResposta:"Satisfat\xf3rio"},{opcaoResposta:"Bom"},{opcaoResposta:"\xd3timo"}]},{nome:"N\xedvel de satisfa\xe7\xe3o",opcoesResposta:[{opcaoResposta:"Muito insatisfeito"},{opcaoResposta:"Insatisfeito"},{opcaoResposta:"Neutro"},{opcaoResposta:"Satisfeito"},{opcaoResposta:"Muito satisfeito"}]}]},13355:(ut,fe,d)=>{"use strict";d.d(fe,{n:()=>s});var s=(()=>{return(c=s||(s={}))[c.EM_DIA=1]="EM_DIA",c[c.EM_ATRASO=2]="EM_ATRASO",c[c.INADIMPLENTE=3]="INADIMPLENTE",c[c.QUITADO=4]="QUITADO",c[c.GRATUITO=5]="GRATUITO",c[c.AGUARDANDO_ENTRADA=6]="AGUARDANDO_ENTRADA",s;var c})()},21767:(ut,fe,d)=>{"use strict";d.d(fe,{Q:()=>s});var s=(()=>{return(c=s||(s={})).NAO_INICIADO="N\xc3O INICIADO",c.EM_ANDAMENTO="EM CURSO",c.APROVADO="CONCLU\xcdDO",c.AGUARDANDO_PRE_REQUISITO="FINALIZAR DISCIPLINA ANTERIOR",c.AGUARDANDO_LIBERACAO_FINANCEIRA="AGUARDANDO LIBERA\xc7\xc3O FINANCEIRA",c.APROVEITAMENTO_ESCOLAR="APROVEITAMENTO ESCOLAR",c.AVALIACAO_REACAO_PENDENTE="AVALIA\xc7\xc3O REA\xc7\xc3O PENDENTE",c.EM_RECUPERACAO="EM RECUPERA\xc7\xc3O",c.EM_EVENTO_PRESENCIAL="PRESENCIAL",c.REPROVADO="REPROVADO",c.PENDENTE="PENDENTE",s;var c})()},19322:(ut,fe,d)=>{"use strict";d.d(fe,{T:()=>s,W:()=>c});var s=(()=>{return(A=s||(s={})).CSV="text/csv",A.IMAGE="image/*",A.PDF="application/pdf",A.DOC="application/msword",A.DOCX="application/vnd.openxmlformats-officedocument.wordprocessingml.document",A.XLS="application/vnd.ms-excel",A.XLSX="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",A.JPG="image/jpeg",A.PNG="image/png",A.VIDEO="video/*",s;var A})();const c=A=>new Map([[s.CSV,"csv"],[s.PDF,"pdf"],[s.DOC,"doc"],[s.DOCX,"docx"],[s.XLS,"xls"],[s.XLSX,"xlsx"],[s.JPG,"jpg"],[s.PNG,"png"]]).get(A)},76657:(ut,fe,d)=>{"use strict";d.d(fe,{d:()=>s});var s=(()=>{return(c=s||(s={}))[c.CARTAO_DE_CREDITO=3]="CARTAO_DE_CREDITO",c[c.BOLETO=5]="BOLETO",s;var c})()},34829:(ut,fe,d)=>{"use strict";d.d(fe,{Z:()=>c});var s=(()=>{return(A=s||(s={}))[A.CONTINUE=100]="CONTINUE",A[A.SWITCHING_PROTOCOLS=101]="SWITCHING_PROTOCOLS",A[A.PROCESSING=102]="PROCESSING",A[A.OK=200]="OK",A[A.CREATED=201]="CREATED",A[A.ACCEPTED=202]="ACCEPTED",A[A.NON_AUTHORITATIVE_INFORMATION=203]="NON_AUTHORITATIVE_INFORMATION",A[A.NO_CONTENT=204]="NO_CONTENT",A[A.RESET_CONTENT=205]="RESET_CONTENT",A[A.PARTIAL_CONTENT=206]="PARTIAL_CONTENT",A[A.MULTI_STATUS=207]="MULTI_STATUS",A[A.ALREADY_REPORTED=208]="ALREADY_REPORTED",A[A.IM_USED=226]="IM_USED",A[A.MULTIPLE_CHOICES=300]="MULTIPLE_CHOICES",A[A.MOVED_PERMANENTLY=301]="MOVED_PERMANENTLY",A[A.FOUND=302]="FOUND",A[A.SEE_OTHER=303]="SEE_OTHER",A[A.NOT_MODIFIED=304]="NOT_MODIFIED",A[A.USE_PROXY=305]="USE_PROXY",A[A.SWITCH_PROXY=306]="SWITCH_PROXY",A[A.TEMPORARY_REDIRECT=307]="TEMPORARY_REDIRECT",A[A.PERMANENT_REDIRECT=308]="PERMANENT_REDIRECT",A[A.BAD_REQUEST=400]="BAD_REQUEST",A[A.UNAUTHORIZED=401]="UNAUTHORIZED",A[A.PAYMENT_REQUIRED=402]="PAYMENT_REQUIRED",A[A.FORBIDDEN=403]="FORBIDDEN",A[A.NOT_FOUND=404]="NOT_FOUND",A[A.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",A[A.NOT_ACCEPTABLE=406]="NOT_ACCEPTABLE",A[A.PROXY_AUTHENTICATION_REQUIRED=407]="PROXY_AUTHENTICATION_REQUIRED",A[A.REQUEST_TIMEOUT=408]="REQUEST_TIMEOUT",A[A.CONFLICT=409]="CONFLICT",A[A.GONE=410]="GONE",A[A.LENGTH_REQUIRED=411]="LENGTH_REQUIRED",A[A.PRECONDITION_FAILED=412]="PRECONDITION_FAILED",A[A.PAYLOAD_TOO_LARGE=413]="PAYLOAD_TOO_LARGE",A[A.URI_TOO_LONG=414]="URI_TOO_LONG",A[A.UNSUPPORTED_MEDIA_TYPE=415]="UNSUPPORTED_MEDIA_TYPE",A[A.RANGE_NOT_SATISFIABLE=416]="RANGE_NOT_SATISFIABLE",A[A.EXPECTATION_FAILED=417]="EXPECTATION_FAILED",A[A.I_AM_A_TEAPOT=418]="I_AM_A_TEAPOT",A[A.MISDIRECTED_REQUEST=421]="MISDIRECTED_REQUEST",A[A.UNPROCESSABLE_ENTITY=422]="UNPROCESSABLE_ENTITY",A[A.LOCKED=423]="LOCKED",A[A.FAILED_DEPENDENCY=424]="FAILED_DEPENDENCY",A[A.UPGRADE_REQUIRED=426]="UPGRADE_REQUIRED",A[A.PRECONDITION_REQUIRED=428]="PRECONDITION_REQUIRED",A[A.TOO_MANY_REQUESTS=429]="TOO_MANY_REQUESTS",A[A.REQUEST_HEADER_FIELDS_TOO_LARGE=431]="REQUEST_HEADER_FIELDS_TOO_LARGE",A[A.UNAVAILABLE_FOR_LEGAL_REASONS=451]="UNAVAILABLE_FOR_LEGAL_REASONS",A[A.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",A[A.NOT_IMPLEMENTED=501]="NOT_IMPLEMENTED",A[A.BAD_GATEWAY=502]="BAD_GATEWAY",A[A.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE",A[A.GATEWAY_TIMEOUT=504]="GATEWAY_TIMEOUT",A[A.HTTP_VERSION_NOT_SUPPORTED=505]="HTTP_VERSION_NOT_SUPPORTED",A[A.VARIANT_ALSO_NEGOTIATES=506]="VARIANT_ALSO_NEGOTIATES",A[A.INSUFFICIENT_STORAGE=507]="INSUFFICIENT_STORAGE",A[A.LOOP_DETECTED=508]="LOOP_DETECTED",A[A.NOT_EXTENDED=510]="NOT_EXTENDED",A[A.NETWORK_AUTHENTICATION_REQUIRED=511]="NETWORK_AUTHENTICATION_REQUIRED",s;var A})();const c=s},82978:(ut,fe,d)=>{"use strict";d.d(fe,{v:()=>s});var s=(()=>{return(c=s||(s={}))[c.CRIAR_GRUPO=1]="CRIAR_GRUPO",c[c.ALTERAR_GRUPO=2]="ALTERAR_GRUPO",c[c.EXCLUIR_GRUPO=3]="EXCLUIR_GRUPO",c[c.CONSULTAR_GRUPO=4]="CONSULTAR_GRUPO",c[c.ADICIONAR_PESSOA_AO_GRUPO=5]="ADICIONAR_PESSOA_AO_GRUPO",c[c.REMOVER_PESSOA_DO_GRUPO=6]="REMOVER_PESSOA_DO_GRUPO",c[c.VINCULAR_DISCIPLINA_AO_TUTOR=7]="VINCULAR_DISCIPLINA_AO_TUTOR",c[c.DESVINCULAR_DISCIPLINA_AO_TUTOR=8]="DESVINCULAR_DISCIPLINA_AO_TUTOR",c[c.CONSULTAR_DISCIPLINA_DO_TUTOR=9]="CONSULTAR_DISCIPLINA_DO_TUTOR",c[c.CRIAR_FORUM=10]="CRIAR_FORUM",c[c.ALTERAR_FORUM=11]="ALTERAR_FORUM",c[c.EXCLUIR_FORUM=12]="EXCLUIR_FORUM",c[c.ATIVAR_FORUM=13]="ATIVAR_FORUM",c[c.DESATIVAR_FORUM=14]="DESATIVAR_FORUM",c[c.ADICIONAR_MODERADOR=15]="ADICIONAR_MODERADOR",c[c.REMOVER_MODERADOR=16]="REMOVER_MODERADOR",c[c.ADICIONAR_PARTICIPANTES=17]="ADICIONAR_PARTICIPANTES",c[c.REMOVER_PARTICIPANTES=18]="REMOVER_PARTICIPANTES",c[c.INCLUIR_ATIVIDADES_DE_CALENDARIO_ACADEMICO=19]="INCLUIR_ATIVIDADES_DE_CALENDARIO_ACADEMICO",c[c.EXCLUIR_ATIVIDADES_DE_CALENDARIO_ACADEMICO=20]="EXCLUIR_ATIVIDADES_DE_CALENDARIO_ACADEMICO",c[c.ALTERAR_ATIVIDADES_DE_CALENDARIO_ACADEMICO=21]="ALTERAR_ATIVIDADES_DE_CALENDARIO_ACADEMICO",c[c.ACESSO_AOS_LIVROS=22]="ACESSO_AOS_LIVROS",c[c.REGISTRAR_MATRICULA_GRATUITA=23]="REGISTRAR_MATRICULA_GRATUITA",c[c.CONSULTAR_CURSOS_DA_ESCOLA=24]="CONSULTAR_CURSOS_DA_ESCOLA",c[c.RESPONDER_CHAT_SECRETARIA=25]="RESPONDER_CHAT_SECRETARIA",c[c.RESPONDER_CHAT_FINANCEIRO=26]="RESPONDER_CHAT_FINANCEIRO",c[c.RESPONDER_CHAT_COORDENADOR=27]="RESPONDER_CHAT_COORDENADOR",c[c.PRORROGACAO_DE_MATRICULA=28]="PRORROGACAO_DE_MATRICULA",c[c.TRANCAR_MATRICULA=29]="TRANCAR_MATRICULA",c[c.CANCELAR_MATRICULA=30]="CANCELAR_MATRICULA",c[c.RENEGOCIAR_PAGAMENTO=31]="RENEGOCIAR_PAGAMENTO",c[c.GERENCIAR_PERFIS=32]="GERENCIAR_PERFIS",c[c.REVISAO_DE_PROVA=33]="REVISAO_DE_PROVA",c[c.CADASTRAR_USUARIO=34]="CADASTRAR_USUARIO",c[c.LISTAR_USUARIOS=35]="LISTAR_USUARIOS",c[c.GERAR_RELATORIO_DE_CONTEUDO=36]="GERAR_RELATORIO_DE_CONTEUDO",c[c.GERAR_RELATORIO_ACADEMICO=37]="GERAR_RELATORIO_ACADEMICO",c[c.GERAR_RELATORIO_FINANCEIRO=38]="GERAR_RELATORIO_FINANCEIRO",c[c.GERAR_RELATORIO_DE_SERVICOS_CONTINUADOS=39]="GERAR_RELATORIO_DE_SERVICOS_CONTINUADOS",c[c.HOMOLOGAR_JUSTIFICATIVAS=40]="HOMOLOGAR_JUSTIFICATIVAS",c[c.INCLUIR_JUSTIFICATIVAS=41]="INCLUIR_JUSTIFICATIVAS",c[c.REVISAR_DOCUMENTOS=42]="REVISAR_DOCUMENTOS",c[c.AGENDAR_PROVAS=44]="AGENDAR_PROVAS",c[c.ALERTAS_DE_COORDENACAO=45]="ALERTAS_DE_COORDENACAO",c[c.GERIR_REDE=46]="GERIR_REDE",c[c.GERIR_ESCOLA=47]="GERIR_ESCOLA",c[c.GERIR_POLO=48]="GERIR_POLO",c[c.CONSULTAR_ALUNOS=52]="CONSULTAR_ALUNOS",c[c.NO_PERMISSION=99]="NO_PERMISSION",s;var c})()},19804:(ut,fe,d)=>{"use strict";d.d(fe,{M:()=>s});var s=(()=>{return(c=s||(s={}))[c.AGUARDANDO_AGENDAMENTO=1]="AGUARDANDO_AGENDAMENTO",c[c.EM_CONFIRMACAO=2]="EM_CONFIRMACAO",c[c.AGENDADA=3]="AGENDADA",c[c.LIBERADA=4]="LIBERADA",c[c.INICIADA=5]="INICIADA",c[c.EM_CORRECAO=6]="EM_CORRECAO",c[c.FINALIZADA=7]="FINALIZADA",c[c.TEMPO_ESGOTADO=8]="TEMPO_ESGOTADO",c[c.AGUARDANDO_TEMPO=9]="AGUARDANDO_TEMPO",c[c.ANULADA=10]="ANULADA",s;var c})()},60013:(ut,fe,d)=>{"use strict";d.d(fe,{n:()=>s});var s=(()=>{return(c=s||(s={}))[c.NAO_INICIADO=1]="NAO_INICIADO",c[c.MATRICULADO=2]="MATRICULADO",c[c.CONCLUIDO=3]="CONCLUIDO",c[c.EXPIRADO=4]="EXPIRADO",c[c.TRANCADO=5]="TRANCADO",c[c.CANCELADO=6]="CANCELADO",c[c.MATRICULANDO=7]="MATRICULANDO",c[c.JUBILADO=8]="JUBILADO",c[c.EM_CONFIRMACAO=9]="EM_CONFIRMACAO",s;var c})()},79379:(ut,fe,d)=>{"use strict";d.d(fe,{c:()=>N});var s=d(92340),c=d(61135),A=d(94650),w=d(80529);let N=(()=>{class te{constructor(b){this.http=b,this.selectedAlertSource=new c.X(null),this.selectedAlert=this.selectedAlertSource.asObservable()}selectAlert(b){this.selectedAlertSource.next(b)}findCountAlertTutor(){return this.http.get(`${s.N.API.ALERTA}/dashboard-tutor/find-count-alert-tutor`)}getNotRevisedTestAlert(){return this.http.get(`${s.N.API.ALERTA}/dashboard-tutor/find-alerta-prova-nao-revisada`)}getNotAnswedMessagesAlerts(){return this.http.get(`${s.N.API.ALERTA}/dashboard-tutor/find-alert-mensagem-com-prazo-expirado-tutor`)}getLessonsBellowAverage(){return this.http.get(`${s.N.API.ALERTA}/alertas/tutor`)}getDetailedAlert(b){return this.http.get(`${s.N.API.ALERTA}/alertas/${b}`)}answerAlertBellowAverage(b){return this.http.put(`${s.N.API.ALERTA}/alertas/answer-alert-nota-abaixo-da-media/`,b)}getAllAlertFromSignedTutor(){return this.http.get(`${s.N.API.ALERTA}/dashboard-tutor/alertas`,{observe:"response"})}getAllAlertsFromTutors(){return this.http.get(`${s.N.API.ALERTA}/alertas`,{observe:"response"})}getAlertById(b){return this.http.get(`${s.N.API.ALERTA}/alertas/${b}`)}getAllCordinatorAlerts(){return this.http.get(`${s.N.API.ALERTA}/dashboard-coordenador/alertas`,{observe:"response"})}deleteAllAnsweredAlerts(){return this.http.delete(`${s.N.API.ALERTA}/dashboard-coordenador/alertas/respondidos`)}deleteAnsweredAlertById(b){return this.http.delete(`${s.N.API.ALERTA}/dashboard-coordenador/alertas/respondidos/${b}`)}}return te.\u0275fac=function(b){return new(b||te)(A.LFG(w.eN))},te.\u0275prov=A.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})()},63690:(ut,fe,d)=>{"use strict";d.d(fe,{Z:()=>te});var s=d(80529),c=d(61135),A=d(92340),w=d(48559),N=d(94650);let te=(()=>{class I{constructor(p){this.http=p,this.zoomInSource=new c.X({}),this.zoomOutSource=new c.X({}),this.zoomType=0,this.livro=A.N.API.LIVRO}get zoomIn(){return this.zoomInSource.asObservable()}get zoomOut(){return this.zoomOutSource.asObservable()}getBookByDiscipline(p){return this.http.get(`${this.livro}/acessar-livro/matricula-disciplina/${p}`)}getBookById(p){return this.http.get(`${this.livro}/acessar-livro/livro/${p}`)}getAllEixos(){return this.http.get(`${this.livro}/cursos-eixo`)}getEixoById(p){return this.http.get(`${this.livro}/livros/eixo/${p}`)}getBookFragments(p,_,v){return this.http.get(p?`${this.livro}/fragmentos/matricula-disciplina/${p}/pagina/${_}`:`${this.livro}/fragmentos/livro/${v}/pagina/${_}`)}loginByIntegrationToken(p){return this.http.post(`${this.livro}/integracao/login`,{token:p})}getAllBooks(p){const _=(0,w._A)({...p});return this.http.get(`${this.livro}/livros`,{params:_})}getBooksByDiscipline(p){const _=`${this.livro}/livros/disciplina/${p}`,v=(new s.WM).set("Accept-Language","pt-BR,pt;q=0.9");return this.http.get(_,{headers:v,observe:"response"})}createBook(p){const _=`${this.livro}/livros`,v=(0,w.D$)(p);return this.http.post(_,v)}updateBook(p,_){const v=`${this.livro}/livros/${_}`,T=(0,w.D$)(p);return this.http.put(v,T)}createOrUpdateSummary(p,_){return this.http.put(`${this.livro}/livros/livro-indices/${_}`,p)}deleteBook(p){return this.http.delete(`${this.livro}/livros/${p}`)}getDisciplineBookById(p){return this.http.get(`${this.livro}/livros/livro-disciplina/${p}`)}enableOrDisableBook(p){return this.http.put(`${this.livro}/livros/ativar-desativar/${p}`,{})}startBookProcessing(p){return this.http.post(`${this.livro}/livros/processamento/${p}`,{})}getBooksByName(p,_){return this.http.get(_?`${this.livro}/livros/descricao-autocomplete?descricao=${p}&eixoId=${_}`:`${this.livro}/livros/descricao-autocomplete?descricao=${p}`)}getTiposDeCurso(){return this.http.get(`${this.livro}/tipos-de-curso`)}getVirtualLibraryUsers(){return this.http.get(`${this.livro}/usuarios-biblioteca`)}createVirtualLibUser(p){return this.http.post(`${this.livro}/usuarios-biblioteca`,p)}createUsersByCsv(p){const _=`${this.livro}/usuarios-biblioteca/csv`,v=new FormData;return v.append("file",p.file),v.append("ativo",p.ativo.toString()),v.append("colaborador",p.colaborador.toString()),this.http.post(_,v)}updateVirtualLibUser(p){return this.http.put(`${this.livro}/usuarios-biblioteca`,p)}enableVirtualLibUser(p){return this.http.put(`${this.livro}/usuarios-biblioteca/${p}/ativar`,null)}disableVirtualLibUser(p){return this.http.put(`${this.livro}/usuarios-biblioteca/${p}/desativar`,null)}deleteUserById(p){return this.http.delete(`${this.livro}/usuarios-biblioteca/${p}`)}getVirtualLibSummary(){return this.http.get(`${this.livro}/usuarios-biblioteca/sumario`)}updateContractTime(p){return this.http.put(`${this.livro}/usuarios-biblioteca/datas-contrato`,p)}updateLicenseQuantity(p){return this.http.put(`${this.livro}/usuarios-biblioteca/licencas`,p)}getFullBookById(p){return this.http.get(`${this.livro}/livros/${p}`)}}return I.\u0275fac=function(p){return new(p||I)(N.LFG(s.eN))},I.\u0275prov=N.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"}),I})()},35591:(ut,fe,d)=>{"use strict";d.d(fe,{U:()=>w});var s=d(92340),c=d(80529),A=d(94650);let w=(()=>{class N{constructor(I){this.http=I,this.httpOptions={headers:new c.WM({"Content-Type":"application/json"})},this.mensagem=s.N.API.MENSAGEM}getMessages(I,b,p){let v;return v=b?`/${I}?page=${p}&size=50&messageToSearch=${b}`:`/${I}?page=${p}&size=50`,this.http.get(""+(`${this.mensagem}/mensagens-financeiro/mensagem-entre-aluno-e-financeiro`+v))}createMessage(I,b){const p=new FormData,_=`${this.mensagem}/mensagens-financeiro?matricula=${b}&mensagem=${encodeURIComponent(I.message)}`;return I.image&&p.append("arquivo",I.image,I.image.name),this.http.post(_,p)}openChat(I){return this.http.put(`${this.mensagem}/mensagens-financeiro/aluno-abriu-o-chat/${I}`,this.httpOptions)}getUnreadedMessages(I,b){return this.http.get(`${this.mensagem}/mensagens-financeiro/buscar-mais-mensagens/${b}?idMensagem=${I}`,{observe:"response"})}getTotalGeral(I){return this.http.get(`${this.mensagem}/mensagens-financeiro/count-mensagens-nao-lida-pelo-aluno/${I}`)}getStudentsWithNotReadedMessages(){return this.http.get(`${this.mensagem}/mensagens-financeiro/alunos-com-mensagem-nao-lida-pelo-financeiro`)}getStudentsWithNotReadedMessagesCount(){return this.http.get(`${this.mensagem}/mensagens-financeiro/alunos-com-mensagem-nao-lida-pelo-financeiro/count`)}getStudentsWithNotReadedMessagesByPaymentCountByMatricula(I){return this.http.get(`${this.mensagem}/mensagens-financeiro/alunos-com-mensagem-nao-lida-pelo-financeiro/${I}/count`)}}return N.\u0275fac=function(I){return new(I||N)(A.LFG(c.eN))},N.\u0275prov=A.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"}),N})()},42353:(ut,fe,d)=>{"use strict";d.d(fe,{W:()=>w});var s=d(92340),c=d(80529),A=d(94650);let w=(()=>{class N{constructor(I){this.http=I,this.httpOptions={headers:new c.WM({"Content-Type":"application/json"})},this.mensagem=s.N.API.MENSAGEM}getMessages(I,b,p){let v;return v=b?`/${I}?page=${p}&size=10&messageToSearch=${b}`:`/${I}?page=${p}&size=10`,this.http.get(""+(`${this.mensagem}/mensagens-secretaria/mensagem-entre-aluno-e-secretaria`+v))}createMessage(I,b){const p=new FormData,_=`${this.mensagem}/mensagens-secretaria?matricula=${b}&mensagem=${encodeURIComponent(I.message)}`;return I.image&&p.append("arquivo",I.image,I.image.name),this.http.post(_,p)}openChat(I){return this.http.put(`${this.mensagem}/mensagens-secretaria/aluno-abriu-o-chat/${I}`,this.httpOptions)}getUnreadedMessages(I,b){return this.http.get(`${this.mensagem}/mensagens-secretaria/buscar-mais-mensagens/${b}?idMensagem=${I}`,{observe:"response"})}getTotalGeral(I){return this.http.get(`${this.mensagem}/mensagens-secretaria/count-mensagens-nao-lida-pelo-aluno/${I}`)}getStudentsWithNotReadedMessages(){return this.http.get(`${this.mensagem}/mensagens-secretaria/alunos-com-mensagem-nao-lida-pela-secretaria`)}getStudentsWithNotReadedMessagesCount(){return this.http.get(`${this.mensagem}/mensagens-secretaria/alunos-com-mensagem-nao-lida-pela-secretaria/count`)}}return N.\u0275fac=function(I){return new(I||N)(A.LFG(c.eN))},N.\u0275prov=A.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"}),N})()},16225:(ut,fe,d)=>{"use strict";d.d(fe,{E:()=>w});var s=d(92340),c=d(94650),A=d(80529);let w=(()=>{class N{constructor(I){this.http=I,this.mensagem=s.N.API.MENSAGEM}getMessages(I,b,p){let v;return v=b?`/${I}?page=${p}&size=50&messageToSearch=${b}`:`/${I}?page=${p}&size=50`,this.http.get(""+(`${this.mensagem}/mensagens-coordenador/mensagem-entre-aluno-e-coordenador`+v))}getStudentsWithNotReadedMessages(){return this.http.get(`${this.mensagem}/mensagens-coordenador/alunos-com-mensagem-nao-lida-pelo-coordenador`)}getStudentsWithNotReadedMessagesCount(){return this.http.get(`${this.mensagem}/mensagens-coordenador/alunos-com-mensagem-nao-lida-pelo-coordenador/count`)}}return N.\u0275fac=function(I){return new(I||N)(c.LFG(A.eN))},N.\u0275prov=c.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"}),N})()},17545:(ut,fe,d)=>{"use strict";d.d(fe,{Y:()=>te});var s=d(48559),c=d(80529),A=d(54004),w=d(92340),N=d(94650);let te=(()=>{class I{constructor(p){this.http=p,this.httpOptions={headers:new c.WM({"Content-Type":"application/json"})},this.curso=w.N.API.CURSO}getAllCourses(){return this.http.get(`${this.curso}/cursos`)}getAllDisicplinesByName(p=""){const _=(new c.LE).set("name",p);return this.http.get(`${this.curso}/disciplinas/filter`,{params:_})}getCoursesByFilters(){const p=(new c.LE).set("nome","").set("size","500");return this.http.get(`${this.curso}/cursos/filter`,{params:p})}getAllCourseDisciplines(p){return this.http.get(`${this.curso}/disciplinas-curso/curso/${p}`)}updateCgc(p){const{tipoAtualizacao:_,arquivoCgc:v,tiposTitulo:T}=p,W=`${this.curso}/cgc`;let P=new c.LE;P=P.set("tipoAtualizacao",_),T?.length>0&&(P=(0,s.Si)(P,T,"tipoTitulo"));const B=new FormData;return B.append("arquivoCgc",v),this.http.put(W,B,{params:P})}getAllRedes(){return this.http.get(`${this.curso}/redes`)}getAllEscolas(){return this.http.get(`${this.curso}/escolas`)}getAllAreasDeConhecimento(){return this.http.get(`${this.curso}/areas-conhecimento`)}getAllEixos(){return this.http.get(`${this.curso}/curso-eixo`)}getDisciplinasByNome(p){return this.http.get(`${this.curso}/disciplinas/disciplina-nome?keyword=${p}`)}getDisciplinasBySigla(p){return this.http.get(`${this.curso}/disciplinas/disciplina-sigla?keyword=${p}`)}filterDisciplineByMultipleField(p,_){const v=(0,s._A)({...p,..._});return this.http.get(`${this.curso}/disciplinas/filter-by-multiple-fields`,{params:v})}getClassificacoes(){return this.http.get(`${this.curso}/classificoes-disciplina`)}createNewClassification(p){return this.http.post(`${this.curso}/classificoes-disciplina`,{nome:p})}getSubClassificacoes(p){return this.http.get(`${this.curso}/subclassificoes-disciplina/classificacao/${p}`)}createSubClassificacao(p,_){const v=(new c.WM).set("Accept-Language","pt-BR,pt;q=0.9");return this.http.post(`${this.curso}/subclassificoes-disciplina/classificacao/${_}`,p,{headers:v})}createDiscipline(p){return this.http.post(`${this.curso}/disciplinas`,p)}getDisciplinaById(p){const _=(new c.WM).set("Accept-Language","pt-BR,pt;q=0.9");return this.http.get(`${this.curso}/disciplinas/${p}`,{headers:_,observe:"response"})}changeDisciplineStatus(p){const _=(new c.WM).set("Accept-Language","pt-BR,pt;q=0.9");return this.http.put(`${this.curso}/disciplinas/ativar-desativar/${p}`,null,{observe:"response",headers:_})}deleteDiscipline(p){const _=(new c.WM).set("Accept-Language","pt-BR,pt;q=0.9");return this.http.delete(`${this.curso}/disciplinas/${p}`,{observe:"response",headers:_})}getLibByDiscipline(p){const _=(new c.WM).set("Accept-Language","pt-BR,pt;q=0.9");return this.http.get(`${this.curso}/biblioteca-virtual/disciplina/${p}`,{headers:_})}createNewItemVirtualLib(p){const _=new FormData;return _.append("tipo",p.tipo),_.append("descricao",p.descricao),_.append("bibliotecaVirtual",p.bibliotecaVirtual),p.link&&_.append("link",p.link),p.arquivo&&_.append("arquivo",p.arquivo),this.http.post(`${this.curso}/biblioteca-virtual-itens`,_)}getVirtualLibItems(p){const _=(new c.WM).set("Accept-Language","pt-BR,pt;q=0.9");return this.http.get(`${this.curso}/biblioteca-virtual-itens/disciplina/${p}?size=200`,{headers:_}).pipe((0,A.U)(T=>({...T,content:T?.content.sort((W,P)=>W.id-P.id)||[]})))}virtualLibGetItemById(p){const _=(new c.WM).set("Accept-Language","pt-BR,pt;q=0.9");return this.http.get(`${this.curso}/biblioteca-virtual-itens/${p}`,{headers:_})}createVirtualLib(p){return this.http.post(`${this.curso}/biblioteca-virtual`,{disciplina:{id:p}})}deleteItem(p){return this.http.delete(`${this.curso}/biblioteca-virtual-itens/${p}`)}updateItemId(p,_){const v=new FormData;return v.append("descricao",p.descricao),v.append("tipo",p.tipo),p.link&&v.append("link",p.link),_&&v.append("arquivo",_),v.append("bibliotecaVirtual",p.bibliotecaVirtual.toString()),this.http.put(`${this.curso}/biblioteca-virtual-itens/${p.id}`,v)}enableOrDisableItem(p){const _=`${this.curso}/biblioteca-virtual-itens/ativar-desativar/${p}`,v=(new c.WM).set("Accept-Language","pt-BR,pt;q=0.9");return this.http.put(_,null,{headers:v})}getQuestionsByLicao(p,_={}){const v=(0,s._A)(_);return this.http.get(`${this.curso}/questoes/disciplina/${p}/filter-licao`,{params:v}).pipe((0,A.U)(W=>({...W,content:W?.content.sort((P,B)=>P.id-B.id)||[]})))}getQuestionsByVideoLesson(p,_={}){const v=(0,s._A)(_);return this.http.get(`${this.curso}/questoes/disciplina/${p}/filter-aula`,{params:v}).pipe((0,A.U)(W=>({...W,content:W?.content.sort((P,B)=>P.id-B.id)||[]})))}getQuestionTypes(){return this.http.get(`${this.curso}/questao-tipos`)}getQuestionStatus(){return this.http.get(`${this.curso}/questao-status`)}getQuestionComplexities(){return this.http.get(`${this.curso}/questao-complexidades`)}createQuestion(p){return this.http.post(`${this.curso}/questoes`,p)}getQuestionById(p){return this.http.get(`${this.curso}/questoes/${p}`)}updateQuestion(p,_){return this.http.put(`${this.curso}/questoes/${_}`,p)}createQuestionAnswer(p,_){return this.http.post(`${this.curso}/questao-respostas/questao/${p}`,_)}updateQuestionAnswers(p,_){return this.http.put(`${this.curso}/questao-respostas/questao/${p}`,_)}uploadAnswerFile(p,_){const v=new FormData;return v.append("arquivo",p),this.http.put(`${this.curso}/questao-respostas/upload-arquivo/${_}`,v)}createRelationQuestionAnswer(p,_){return this.http.post(`${this.curso}/questao-opcoes/relacional/questao/${p}`,_)}uploadOptionFile(p,_){const v=new FormData;return v.append("arquivo",p),this.http.put(`${this.curso}/questao-opcoes/upload-arquivo/${_}`,v)}enableOrDisableQuestion(p){return this.http.put(`${this.curso}/questoes/ativar-desativar/${p}`,null)}deleteQuestion(p){return this.http.delete(`${this.curso}/questoes/${p}`)}updateQuestionStatus(p,_){return this.http.put(`${this.curso}/questoes/update-status/${p}?status=${_}`,null)}getAllLessonByDiscipline(p){return this.http.get(`${this.curso}/atividade-praticas/disciplina/${p}`)}createNewActivit(p){const _=new FormData;return _.append("nome",p.nome),_.append("enunciado",p.enunciado),_.append("arquivo",p.arquivo),_.append("disciplina",p.disciplina.toString()),_.append("semanasParaEntrega",p.semanasParaEntrega.toString()),this.http.post(`${this.curso}/atividade-praticas`,_)}deleteLesson(p){return this.http.delete(`${this.curso}/atividade-praticas/${p}`)}updateLesson(p,_){const v=new FormData;return v.append("nome",p.nome),v.append("enunciado",p.enunciado),_&&v.append("arquivo",_),v.append("disciplina",p.disciplina.toString()),v.append("semanasParaEntrega",p.semanasParaEntrega.toString()),this.http.put(`${this.curso}/atividade-praticas/${p.id}`,v)}activitBankGetItemById(p){const _=(new c.WM).set("Accept-Language","pt-BR,pt;q=0.9");return this.http.get(`${this.curso}/atividade-praticas/${p}`,{headers:_})}uploadQuestionFile(p,_){const v=new FormData;return v.append("arquivo",_),this.http.post(`${this.curso}/questao-arquivos/questao/${p}`,v)}}return I.\u0275fac=function(p){return new(p||I)(N.LFG(c.eN))},I.\u0275prov=N.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"}),I})()},35333:(ut,fe,d)=>{"use strict";d.d(fe,{G:()=>w});var s=d(92340),c=d(94650),A=d(80529);let w=(()=>{class N{constructor(I){this.http=I,this.general=s.N.API.DASHBOARD}getDiscipline(I,b){return this.http.get(`${this.general}/dashboard/disciplina/${I}`,{headers:{matricula:b.toString()}})}getGeneralGrades(I,b){return this.http.get(`${this.general}/historico/geral/${I}`,{headers:{matricula:b.toString()}})}getInteractiveLessonGrades(I,b){return this.http.get(`${this.general}/historico/aula-interativa/${I}`,{headers:{matricula:b.toString()}})}getPraticeLessonGrades(I,b){return this.http.get(`${this.general}/historico/atividades-praticas/${I}`,{headers:{matricula:b.toString()}})}getTestGrades(I,b){return this.http.get(`${this.general}/historico/prova/${I}`,{headers:{matricula:b.toString()}})}}return N.\u0275fac=function(I){return new(I||N)(c.LFG(A.eN))},N.\u0275prov=c.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"}),N})()},49058:(ut,fe,d)=>{"use strict";d.d(fe,{m:()=>w});var s=d(92340),c=d(80529),A=d(94650);let w=(()=>{class N{constructor(I){this.http=I,this.httpOptions={headers:new c.WM({"Content-Type":"application/json"})},this.mensagem=s.N.API.MENSAGEM}getMessages(I,b,p){let _;return _=b?`${this.mensagem}/mensagens/mensagem-entre-aluno-e-tutor/${I}?size=10&page=${p}&messageToSearch=${b}`:`${this.mensagem}/mensagens/mensagem-entre-aluno-e-tutor/${I}?size=10&page=${p}`,this.http.get(_)}createMessage(I,b){const p=new FormData,_=`${this.mensagem}/mensagens?cmc=${b}&mensagem=${encodeURIComponent(I.message)}`;return I.image&&p.append("arquivo",I.image,I.image.name),this.http.post(_,p)}openChat(I){return this.http.put(`${this.mensagem}/mensagens/aluno-abriu-o-chat?cmc=${I}`,this.httpOptions)}getUnreadedMessages(I,b){return this.http.get(`${this.mensagem}/mensagens/buscar-mais-mensagens?idMensagem=${I}&matriculaDisciplinaId=${b}`,{observe:"response"})}getTotalGeral(){return this.http.get(`${this.mensagem}/mensagens-secao/total-geral`)}getStudentsWithNotReadedMessages(){return this.http.get(`${this.mensagem}/mensagens/alunos-com-mensagem-nao-lida-pelo-tutor`)}getMessagesBetweenStudentAndTutor(I){return this.http.get(`${this.mensagem}/mensagens/mensagem-entre-aluno-e-tutor/${I}`)}getNotReadedMessagesByTutorCount(){return this.http.get(`${this.mensagem}/mensagens/alunos-com-mensagem-nao-lida-pelo-tutor/count`)}getAllTutorMessagesCount(){return this.http.get(`${this.mensagem}/mensagens/alunos-com-mensagem-nao-lida-pelo-tutor-all-messages/count`)}}return N.\u0275fac=function(I){return new(I||N)(A.LFG(c.eN))},N.\u0275prov=A.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"}),N})()},26177:(ut,fe,d)=>{"use strict";d.d(fe,{n:()=>W});var s=d(78915),c=d(80529),A=d(54004),w=d(69751),N=d(70262),te=d(18505),I=d(92340),b=d(48559),p=d(19322),_=d(94327),T=d(94650);let W=(()=>{class P{constructor(G){this.http=G,this.fileGenerator=I.N.API.FILEGENERATOR}getCertificateByIdMatricula(G){return this.http.get(`${this.fileGenerator}/jasper/certificado/${G}`,{observe:"response",responseType:"blob"}).pipe((0,N.K)(this.parseErrorBlob))}getModuleCertificateByIdMatricula(G,U){return this.http.get(`${this.fileGenerator}/jasper/certificado/${G}?modulo=${U}`,{observe:"response",responseType:"blob"}).pipe((0,N.K)(this.parseErrorBlob))}getDeclarationByIdMatricula(G){return this.http.get(`${this.fileGenerator}/jasper/declaracao/${G}`,{observe:"response",responseType:"blob"}).pipe((0,N.K)(this.parseErrorBlob))}getAllRedes(){return this.http.get(`${this.fileGenerator}/relatorios/redes`).pipe((0,A.U)(U=>U.map(Z=>({id:Number(Z.key),nome:Z.value}))))}viewSchoolRecordsByIdMatricula(G){return this.http.get(`${this.fileGenerator}/jasper/historico-escolar-visualizar/${G}`,{observe:"response",responseType:"blob"}).pipe((0,N.K)(this.parseErrorBlob))}getTermsOfUse(){return this.http.get(`${this.fileGenerator}/jasper/termos-de-uso-e-servicos`,{observe:"response",responseType:"blob"})}getSchoolsByUser(){return this.http.get(`${this.fileGenerator}/relatorios/pessoa-escolas`)}getPolosBySchoolId(G){const U=(new c.LE).set("escolaId",G.toString());return this.http.get(`${this.fileGenerator}/relatorios/pessoa-polos`,{params:U})}getCourseTypesBySchool(G){const U=(new c.LE).set("escolaId",G.toString());return this.http.get(`${this.fileGenerator}/relatorios/escola-tipo-de-curso`,{params:U})}getCoursesBySchoolIdAndType(G,U){let Z=(new c.LE).set("escolaId",G.toString());return U?.length>0&&(Z=(0,b.Si)(Z,U,"tipoDeCursoIds")),this.http.get(`${this.fileGenerator}/relatorios/escola-cursos`,{params:Z})}getLastUsedParamsByUser(G){return this.http.get(`${this.fileGenerator}/relatorios/parametros/${G}`).pipe((0,A.U)(({curso:Z,desconto:ue,descontoPorCento:F,nome:Y,splitEscola:ee,splitPolo:oe,tipo:X,valor:y,venda:k,...$})=>({...$,showCurso:Z,showDesconto:ue,showDescontoPorCento:F,showNome:Y,showSplitEscola:ee,showSplitPolo:oe,showTipo:X,showValor:y,showVenda:k})))}getReportDisciplines(){return this.http.get(`${this.fileGenerator}/relatorios/disciplinas`)}getDisciplineLessonsById(G){const U=`${this.fileGenerator}/relatorios/disciplina-licoes`,Z=(new c.LE).set("disciplinaId",G.toString());return this.http.get(U,{params:Z})}generateReport({tipoDeRelatorio:G,parametrosRelatorio:U,endpoint:Z}){const{formato:ue}=U,F=(0,s.yv)(ue);return this.http.post(`${this.fileGenerator}/relatorios/${Z}/report/${G}`,U,{responseType:"blob"}).pipe((0,te.b)(ee=>{if("PDF"===ue){const oe=new Blob([ee],{type:"application/pdf"}),X=URL.createObjectURL(oe);window.open(X)}else{const oe=(0,p.W)(F);(0,_.saveAs)(ee,`relatorio.${oe}`)}}))}parseErrorBlob(G){const U=new FileReader,Z=new w.y(ue=>{U.onloadend=()=>{ue.error(JSON.parse(U.result)),ue.complete()}});return U.readAsText(G.error),Z}}return P.\u0275fac=function(G){return new(G||P)(T.LFG(c.eN))},P.\u0275prov=T.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})()},10226:(ut,fe,d)=>{"use strict";d.d(fe,{l:()=>w});var s=d(80529),c=d(92340),A=d(94650);let w=(()=>{class N{constructor(I){this.http=I,this.grupo=c.N.API.GRUPO}getAllGroups(){return this.http.get(`${this.grupo}/grupos`)}getGroupById(I){return this.http.get(`${this.grupo}/grupos/${I}`)}getAllPeopleGroups(){return this.http.get(`${this.grupo}/grupo-pessoas`)}getAllCursosComPeriodoLetivo(){return this.http.get(`${this.grupo}/escola-cursos/com-periodo-letivo`)}getGroupsByName(I){const b=(new s.LE).append("nome",I);return this.http.get(`${this.grupo}/grupos/nome/}`,{params:b})}createGroup(I){return this.http.post(`${this.grupo}/grupos`,I)}updateGroup(I){return this.http.put(`${this.grupo}/grupos`,I)}deleteGroup(I){return this.http.delete(`${this.grupo}/grupos/${I}`)}getAllStudentsFromGroup(I){return this.http.get(`${this.grupo}/grupo-pessoas/grupo/${I}`)}addStudentsToGroup(I,b){return this.http.post(`${this.grupo}/grupo-pessoas/pessoas/${b}`,I)}activateGroup(I){return this.http.put(`${this.grupo}/grupos/${I}/ativar`,null)}deactivateGroup(I){return this.http.put(`${this.grupo}/grupos/${I}/desativar`,null)}getGroupsByCourseId(I){return this.http.get(`${this.grupo}/grupos/curso/${I}`,{observe:"response"})}getGroupsWithManageTestsPermission(){return this.http.get(`${this.grupo}/grupos/permissao-prova`)}}return N.\u0275fac=function(I){return new(I||N)(A.LFG(s.eN))},N.\u0275prov=A.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"}),N})()},96049:(ut,fe,d)=>{"use strict";d.d(fe,{s:()=>te});var s=d(80529),c=d(92340),A=d(70262),w=d(62843),N=d(94650);let te=(()=>{class I{constructor(p){this.http=p,this.dashboard=c.N.API.DASHBOARD}getAll(p){return this.http.get(`${this.dashboard}/dashboard/${p}`)}acceptContract(p){return this.http.put(`${this.dashboard}/dashboard/aceitar-termo/${p}`,{observe:"response"})}getAdhesionContract(p){return this.http.get(`${this.dashboard}/dashboard/contrato-de-adesao/${p}`)}getOpenedDisciplinesCount(){return this.http.get(`${this.dashboard}/contador/disciplinas-abertas`)}getOpenedDisciplinesByMatricula(p){return this.http.get(`${this.dashboard}/contador/disciplinas-abertas/matricula/${p}`)}accessCourse(p){return this.http.get(`${this.dashboard}/dashboard/acessar-curso/${p}`)}getInfoCurso(p){return this.http.get(`${this.dashboard}/dashboard/acessar-curso/${p}`)}isContractAccepted(p){return this.http.get(`${this.dashboard}/dashboard/termo/${p}`,{observe:"response"}).pipe((0,A.K)(this.handleError))}handleError(p){return(0,w._)(()=>p)}detailAcademicData(p){const _=`${this.dashboard}/dashboard/detalhar-dados-academicos`,v=(new s.LE).set("idMatricula",p.toString());return this.http.get(_,{params:v})}}return I.\u0275fac=function(p){return new(p||I)(N.LFG(s.eN))},I.\u0275prov=N.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"}),I})()},20681:(ut,fe,d)=>{"use strict";d.d(fe,{b:()=>N});var s=d(92340),c=d(48559),A=d(80529),w=d(94650);let N=(()=>{class te{constructor(b){this.http=b,this.httpOptions={headers:new A.WM({"Content-Type":"application/json"})},this.matriculaDisciplina=s.N.API.MATRICULA_DISCIPLINA}startDiscipline(b){return this.http.put(`${this.matriculaDisciplina}/matriculas-disciplina/iniciar/${b}`,this.httpOptions)}refreshDiscipline(b){return this.http.put(`${this.matriculaDisciplina}/matriculas-disciplina/${b}`,this.httpOptions)}getMatriculaDisciplinaById(b){return this.http.get(`${this.matriculaDisciplina}/matriculas-disciplina/${b}`)}reactionEvaluationAnswered(b){return this.http.put(`${this.matriculaDisciplina}/matriculas-disciplina/respondeu-avaliacao-reacao/${b}`,this.httpOptions)}getMyStudents(b){const p=(0,c._A)(b);return this.http.get(`${this.matriculaDisciplina}/meus-alunos`,{params:p,observe:"response"})}getMyStudentsAsExcel(b){const p=(0,c._A)(b);return this.http.get(`${this.matriculaDisciplina}/meus-alunos/xlsx`,{params:p})}payOutstandingAmountWithCreditCard(b,p){return this.http.post(`${this.matriculaDisciplina}/plano-de-pagamento/pagar-valor-em-aberto-com-cartao-de-credito/${b}`,p,{observe:"response"})}getPaymentPlan(b){return this.http.get(`${this.matriculaDisciplina}/plano-de-pagamento/${b}`)}getRenegotiationPaymentPlan(b){return this.http.get(`${this.matriculaDisciplina}/renegociacao-plano-de-pagamento/${b}`)}getRenegotiationPayentPlanPrevisualization(b,p){return this.http.post(`${this.matriculaDisciplina}/renegociacao-plano-de-pagamento/previsualizacao/${b}`,p)}getRenegotiationPaymentPlanMaxPortionsQuantity(b,p,_){return this.http.get(`${this.matriculaDisciplina}/renegociacao-plano-de-pagamento/quantidade-parcelas/${p}`,{params:{valorEntrada:_,dataEntrada:b}})}confirmPaymentPlanRenegotiation(b){return this.http.post(`${this.matriculaDisciplina}/renegociacao-plano-de-pagamento/`,b)}cancelPaymentPlanRenegotiation(b){return this.http.post(`${this.matriculaDisciplina}/renegociacao-plano-de-pagamento/${b}`,this.httpOptions)}getAllActiveDisciplinesByMatriculaId(b){return this.http.get(`${this.matriculaDisciplina}/matriculas-disciplina/ativas/matricula/${b}`)}}return te.\u0275fac=function(b){return new(b||te)(w.LFG(A.eN))},te.\u0275prov=w.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})()},14823:(ut,fe,d)=>{"use strict";d.d(fe,{H:()=>I});var s=d(80529),c=d(92340),A=d(62843),w=d(54004),N=d(48559),te=d(94650);let I=(()=>{class b{constructor(_){this.http=_,this.matricula=c.N.API.MATRICULA}startCourseByIdMatricula(_){return this.http.put(`${this.matricula}/matriculas/acessar-curso/${_}`,{observe:"response"})}getOverduePortionsQuantity(_){return this.http.get(`${this.matricula}/matriculas/parcelas-vencidas/${_}`)}getStudentRenegotiations(_){return this.http.get(`${this.matricula}/renegociacoes/filter?alunoId=${_}`)}getStudentProrrogations(_){return this.http.get(`${this.matricula}/prorrogacao/filter?alunoId=${_}`)}getStudentProrrogationByMatriculaId(_){return this.http.get(`${this.matricula}/prorrogacao/filter/${_}`)}getStudentLockings(_){return this.http.get(`${this.matricula}/trancamento/filter?alunoId=${_}`)}getStudentTrancamentoByMatriculaId(_){return this.http.get(`${this.matricula}/trancamento/filter/${_}`)}getStudentCancelations(_){return this.http.get(`${this.matricula}/cancelamento/filter?alunoId=${_}`)}getStudentRegistrationsByFilter(_,v){return this.http.get(`${this.matricula}/${v}/filter?alunoId=${_}`)}extendRegistration(_,v){return this.http.post(`${this.matricula}/prorrogacao/${_}`,v,{observe:"response"})}extendRegistrationByStudent(_,v){return this.http.post(`${this.matricula}/prorrogacao/${_}/aluno`,v,{observe:"response"})}lockRegistrationByStudent(_,v){return this.http.post(`${this.matricula}/trancamento/${_}/aluno`,v,{observe:"response"})}lockRegistration(_,v){return console.log("Matricula trancamento",v),this.http.post(`${this.matricula}/trancamento/${_}`,v,{observe:"response"})}cancelRegistration(_,v){return this.http.post(`${this.matricula}/cancelamento/${_}`,v,{observe:"response"})}generateTerm(_,v){return this.http.get(`${this.matricula}/${v}/termo/${_}`,{observe:"response"})}uploadTerm(_,v,T){const W=`${this.matricula}/${T}/termo/${_}`,P=new FormData;return P.append("arquivo",v),this.http.post(W,P)}confirmTermWasSigned(_,v){return this.http.put(`${this.matricula}/${v}/termo/${_}`,{observe:"response"})}getStudentCoursesToManageFinancialByIdMatricula(_){return this.http.get(`${this.matricula}/renegociacoes/filter?alunoId=${_}`)}registerMultiplesStudentsByCsv(_,v,T,W){if(!_)return(0,A._)(()=>"Arquivo n\xe3o informado");const P=`${this.matricula}/matriculas/csv`,B=new FormData;B.append("file",_,_.name);let G=Object.entries(v).filter(([U,Z])=>Boolean(Z)).reduce((U,[Z,ue])=>U.set(Z,ue),new s.LE);return G=G.set("tipoEstudo",T),W&&(G=G.set("emailsParaIgnorar",W)),this.http.post(P,B,{params:G})}getStudentAcademicData(_){const v=`${this.matricula}/matriculas/dados-academicos-aluno`,T=(new s.LE).set("idMatricula",_.toString());return this.http.get(v,{params:T})}getStudentRegistrationData(_){const v=`${this.matricula}/matriculas/dados-cadastrais-aluno`,T=(new s.LE).set("matriculaId",_.toString());return this.http.get(v,{params:T})}getStudentFinancialData(_){const v=`${this.matricula}/matriculas/dados-financeiros-aluno`,T=(new s.LE).set("idMatricula",_.toString());return this.http.get(v,{params:T})}detailStudentFinancialData(_){const v=`${this.matricula}/matriculas/detalhar-dados-financeiros-aluno`,T=(new s.LE).set("idMatricula",_.toString());return this.http.get(v,{params:T})}getMatriculaPagamentoByToken(_){return this.http.get(`${this.matricula}/matriculas-pagamento/token/${_}`)}payLocking(_){return this.http.post(`${this.matricula}/matriculas-pagamento/pagar-trancamento`,_)}payProrrogation(_){return this.http.post(`${this.matricula}/matriculas-pagamento/pagar-prorrogacao`,_)}payCancelation(_){return this.http.post(`${this.matricula}/matriculas-pagamento/pagar-cancelamento`,_)}registerStudent(_){return this.http.post(`${this.matricula}/matriculas`,_)}getCoursesAutoComplete(_){return this.http.get(`${this.matricula}/cursos/auto-complete?searchString=${_}`)}getPolosAutoComplete(_){return this.http.get(`${this.matricula}/polos/auto-complete?searchString=${_}`)}getAllStatusAcademico(){return this.http.get(`${this.matricula}/matricula-status-academico`)}getAllStatusFinanceiro(){return this.http.get(`${this.matricula}/matricula-status-financeiro`)}getAllStatusEstagio(){return this.http.get(`${this.matricula}/estagio-status`)}getAllComoFicouSabendo(){return this.http.get(`${this.matricula}/matricula-como-ficou-sabendo`).pipe((0,w.U)(v=>v.sort((T,W)=>T.ordem-W.ordem)))}getRegistrationsByFilter(_){const v=(0,N._A)(_);return this.http.get(`${this.matricula}/matriculas/filter`,{params:v})}getAllProrrogationsByMatriculaId(_){return this.http.get(`${this.matricula}/prorrogacao/${_}`)}getAllLockingsByMatriculaId(_){return this.http.get(`${this.matricula}/trancamento/${_}`)}}return b.\u0275fac=function(_){return new(_||b)(te.LFG(s.eN))},b.\u0275prov=te.Yz7({token:b,factory:b.\u0275fac,providedIn:"root"}),b})()},97161:(ut,fe,d)=>{"use strict";d.d(fe,{g:()=>w});var s=d(94650),c=d(68968),A=d(42466);let w=(()=>{class N{constructor(I,b){this.toastr=I,this.translate=b}success(I,b){(!b||""===b.trim())&&(b=this.translate.instant("DEFAULT.TITLE_SUCCESS")),this.toastr.success(I,b,{progressBar:!0,enableHtml:!0,closeButton:!0})}error(I,b){(!b||""===b.trim())&&(b=this.translate.instant("DEFAULT.TITLE_ERROR")),this.toastr.error(I,b,{progressBar:!0,enableHtml:!0,closeButton:!0})}info(I,b){(!b||""===b.trim())&&(b=this.translate.instant("DEFAULT.TITLE_INFO")),this.toastr.info(I,b,{progressBar:!0,enableHtml:!0,closeButton:!0})}warning(I,b){(!b||""===b.trim())&&(b=this.translate.instant("DEFAULT.TITLE_WARNING")),this.toastr.warning(I,b,{progressBar:!0,enableHtml:!0,closeButton:!0})}}return N.\u0275fac=function(I){return new(I||N)(s.LFG(c._W),s.LFG(A.sK))},N.\u0275prov=s.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"}),N})()},61254:(ut,fe,d)=>{"use strict";d.d(fe,{M:()=>p});var s=d(80529),c=d(94650),A=d(54004),w=d(92340),N=d(48559);const te=w.N.dominio,b=w.N.API.ORGANIZACAO;let p=(()=>{class _{constructor(){this.http=(0,c.f3M)(s.eN)}getSchoolLogo(){return this.http.get(`${b}/configuracoes-escola/logo?dominio=${te}`).pipe((0,A.U)(T=>T.url))}getAllPolos(){return this.http.get(`${b}/polos`)}createEmpresa(T){return this.http.post(`${b}/empresas`,T)}updateEmpresa(T){return this.http.put(`${b}/empresas`,T)}getEmpresaById(T){const W=(new s.LE).set("escolaId",T.toString());return this.http.get(`${b}/empresas/${T}`,{params:W})}removeEmpresa(T){return this.http.delete(`${b}/empresas/${T}`,{observe:"response"})}getSchoolAcademicData(T){return this.http.get(`${b}/empresas/configuracoes-escola/dados-academicos/${T}`)}updateSchoolAcademicData(T){return this.http.put(`${b}/empresas/configuracoes-escola/dados-academicos`,T)}getEmpresasByFilter(T){const W=(0,N._A)(T);return this.http.get(`${b}/empresas/filter`,{params:W})}getActualSchoolPolos(){return this.http.get(`${b}/polos`)}getPolosByFilter(T){const W=(0,N._A)(T);return this.http.get(`${b}/polos/filter`,{params:W})}getPoloById(T){return this.http.get(`${b}/polos/${T}`)}createPolo(T){return this.http.post(`${b}/polos`,T)}updatePolo(T){return this.http.put(`${b}/polos`,T)}getAllRedes(){return this.http.get(`${b}/redes`)}createLearningNetwork(T){return this.http.post(`${b}/redes`,T)}updateLearningNetwork(T){return this.http.put(`${b}/redes`,T)}getLearningNetworkById(T){return this.http.get(`${b}/redes/${T}`)}removeLearningNetwork(T){return this.http.delete(`${b}/redes/${T}`,{observe:"response"})}getLearningNetworksByFilter(T){const W=(0,N._A)(T);return this.http.get(`${b}/redes`,{params:W})}updateSchoolLogo(T,W){const P=new FormData;return P.append("arquivo",T),this.http.post(`${b}/empresas/${W}/logo`,P)}}return _.\u0275fac=function(T){return new(T||_)},_.\u0275prov=c.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_})()},35439:(ut,fe,d)=>{"use strict";d.d(fe,{N:()=>b});var s=d(54004),c=d(8435),w=d(92340),N=d(48559),te=d(80529),I=d(94650);let b=(()=>{class p{constructor(v){this.http=v,this.pessoas=w.N.API.PESSOA}getPersonGeneralInformation(){return this.http.get(`${this.pessoas}/pessoas/informacoes-gerais`)}getPersonById(v){return this.http.get(`${this.pessoas}/pessoas/${v}`)}getStudentDocuments(){return this.http.get(`${this.pessoas}/documentos`)}getStudentProfileImage(v){return this.http.get(v)}getDddList(){return this.http.get(`${this.pessoas}/ddd`)}getPhoneOperatorsList(){return this.http.get(`${this.pessoas}/operadora-de-telefone`)}getPhoneTypeList(){return this.http.get(`${this.pessoas}/tipo-de-telefone`)}updateGeneralInfo(v){return this.http.put(`${this.pessoas}/pessoas/informacoes-gerais`,v)}updateAditionalInfo(v){return this.http.put(`${this.pessoas}/pessoas/informacoes-adicionais`,v)}getOccupations(v){return this.http.get(`${this.pessoas}/profissoes?nome=${v}`)}getScholarity(){return this.http.get(`${this.pessoas}/escolaridades`)}getEstadosCivis(){return this.http.get(`${this.pessoas}/estados-civis`)}getCountries(){return this.http.get(`${this.pessoas}/paises`)}getFederalUnity(v){return this.http.get(`${this.pessoas}/ufs/pais/${v}`)}getCities(v){return this.http.get(`${this.pessoas}/cidades/uf/${v}`)}getBairrosByIdCidade(v){return this.http.get(`${this.pessoas}/bairros/cidade/${v}`)}updateOrigin(v){return this.http.put(`${this.pessoas}/pessoas/origem-filiacao`,v)}getCep(v){return this.http.get(`${this.pessoas}/cep/${v}`,{observe:"response"})}updateAddress(v){return this.http.put(`${this.pessoas}/pessoas/endereco`,v)}getDocumentFromUrl(v){return this.http.get(v,{responseType:"arraybuffer"}).pipe((0,s.U)(T=>new File([T],"document.jpeg")))}saveDocument(v,T){const W=`${this.pessoas}/documentos`,B=(0,c.serialize)(T,{indices:!0,nullsAsUndefineds:!1,booleansAsIntegers:!1,allowEmptyArrays:!1},null,"pessoaDocumento"),G=new FormData;G.append("arquivo",v);for(const U of B.entries()){const ue=U[0].split("[").join(".").split("]").join("");G.append(ue,U[1])}return this.http.post(W,G)}deleteDocument(v){return this.http.delete(`${this.pessoas}/documentos/${v}`)}uploadProfilePicture(v){const T=`${this.pessoas}/pessoas/foto`,W=new FormData;return W.append("arquivo",v),this.http.post(T,W)}uploadCameraPicture(v){return this.http.post(`${this.pessoas}/pessoas/foto-camera`,{arquivo:v})}getDocumentTypes(){return this.http.get(`${this.pessoas}/tipos-de-documento`)}getStudentByCpf(v){return this.http.get(`${this.pessoas}/pessoas/busca/cpf/${v}`)}getStudentListByFilters(v){const T=(0,N._A)(v);return this.http.get(`${this.pessoas}/pessoas/busca`,{params:T})}getAllProfiles(){return this.http.get(`${this.pessoas}/perfis`)}createProfile(v){return this.http.post(`${this.pessoas}/permissoes-perfil`,v)}updateProfile(v){return this.http.put(`${this.pessoas}/permissoes-perfil`,v)}deleteProfile(v){return this.http.delete(`${this.pessoas}/perfis/${v}`)}getCompleteProfileById(v){return this.http.get(`${this.pessoas}/permissoes-perfil/perfil-completo/${v}`)}enableProfileById(v){return this.http.put(`${this.pessoas}/perfis/ativar/${v}`,null)}disableProfileById(v){return this.http.put(`${this.pessoas}/perfis/desativar/${v}`,null)}getAllPermissions(){return this.http.get(`${this.pessoas}/permissoes`)}getAllPersons(){return this.http.get(`${this.pessoas}/pessoas`)}getAllAgrupadores(){return this.http.get(`${this.pessoas}/permissao-agrupadores`)}getAllEmployees(v="",T=!1){const W=(new te.LE).set("busca",v).set("size",200).set("trazInativos",T);return this.http.get(`${this.pessoas}/pessoas/busca-funcionario`,{params:W})}associateEmplooyeeWithProfileList(v,T){return this.http.post(`${this.pessoas}/pessoa-empresa-perfis/pessoa-empresa/${v}`,T)}createUser(v){return this.http.post(`${this.pessoas}/usuarios`,v)}updateUser(v){return this.http.put(`${this.pessoas}/usuarios`,v)}detailPerson(v){const T=`${this.pessoas}/pessoas/detalhar-pessoa`,W=(new te.LE).set("idPessoa",v.toString());return this.http.get(T,{params:W})}deleteUser(v){return this.http.put(`${this.pessoas}/usuarios/${v}/excluir`,null)}enableUser(v){return this.http.put(`${this.pessoas}/usuarios/${v}/ativar`,null)}disableUser(v){return this.http.put(`${this.pessoas}/usuarios/${v}/desativar`,null)}getPersonsByFilters(v){const T=(0,N._A)(v);return this.http.get(`${this.pessoas}/pessoas/busca-por-curso-disciplina-polo`,{params:T})}approveDocument(v,T){return this.http.put(`${this.pessoas}/documentos/aprovar/${v}`,{motivo:T})}rejectDocument(v,T){return this.http.put(`${this.pessoas}/documentos/rejeitar/${v}`,{motivo:T})}getAllDocumentsToReview(){return this.http.get(`${this.pessoas}/documentos/alertas/documentos-revisar`)}getAllDocumentTypes(){return this.http.get(`${this.pessoas}/tipos-de-documento`)}getAllDocumentTypeConfigurations(){return this.http.get(`${this.pessoas}/configuracoes-tipo-de-documento`)}saveDocumentTypeConfiguration(v){return this.http.post(`${this.pessoas}/configuracoes-tipo-de-documento`,v)}geAllDocumentsByPersonId(v){return this.http.get(`${this.pessoas}/documentos/pessoa/${v}`)}updateConfiguration(v){return this.http.put(`${this.pessoas}/configuracoes`,v)}getConfiguration(){return this.http.get(`${this.pessoas}/configuracoes`)}getStudentsByCourseAndDiscipline(v,T){return this.http.get(`${this.pessoas}/pessoas/curso/${v}/disciplina/${T}`)}}return p.\u0275fac=function(v){return new(v||p)(I.LFG(te.eN))},p.\u0275prov=I.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"}),p})()},26046:(ut,fe,d)=>{"use strict";d.d(fe,{g:()=>B});var s=d(70655),c=d(89867),A=d(62843),w=d(18505),N=d(70262),te=d(34829),I=d(48559),b=d(83127),p=d(94650),_=d(49058),v=d(42353),T=d(97741),W=d(35591);let B=class{constructor(U,Z,ue,F){this.disciplineMessageService=U,this.secretaryMessageService=Z,this.practicalActivityMessageService=ue,this.paymentMessageService=F}static getChat(U){return U.chat}getNextPageMessages({getState:U,setState:Z},ue){const F=U();return this.getService(ue.chatServiceName).getMessages(ue.idDisciplina,ue.messageToSearch,F?.chat?.actualPage||ue.actualPage).pipe((0,w.b)(oe=>{const X={actualPage:oe.currentPage+1,totalPages:oe.totalPages},y=F.chat?.messageList;X.messageList=y?.length?oe.mensagens.concat(y):oe.mensagens,Z({...F,chat:X})}))}getUnreadedChatMessages({getState:U,setState:Z},ue){const F=U();return this.getService(ue.chatServiceName).getUnreadedMessages(ue.lastMessageId,ue.matriculaDisciplinaId).pipe((0,N.K)(ee=>{const oe=ee?.error?.message?ee:(0,I.iw)(ee,"Ocorreu um erro ao atualizar as mensagens");return(0,A._)(oe)}),(0,w.b)(ee=>{if(ee.status===te.Z.OK){const oe={actualPage:F?.chat?.actualPage,messageList:F?.chat?.messageList?.concat(ee.body),totalPages:F?.chat?.totalPages};Z({...F,chat:oe})}}))}createMessage({},ue){return this.getService(ue.chatServiceName).createMessage(ue.chatSubmit,ue.idMatriculaDisciplina).pipe((0,N.K)(Y=>{const ee=Y?.error?.message?Y:(0,I.iw)(Y,"Ocorreu um erro ao enviar a mensagem");return(0,A._)(()=>ee)}))}openMessageChat({},ue){return this.getService(ue.chatServiceName).openChat(ue.matriculaDisciplinaId)}getService(U){return this[U]}};B.\u0275fac=function(U){return new(U||B)(p.LFG(_.m),p.LFG(v.W),p.LFG(T.C),p.LFG(W.U))},B.\u0275prov=p.Yz7({token:B,factory:B.\u0275fac}),(0,s.gn)([(0,c.aU)(b.kp)],B.prototype,"getNextPageMessages",null),(0,s.gn)([(0,c.aU)(b.gl)],B.prototype,"getUnreadedChatMessages",null),(0,s.gn)([(0,c.aU)(b.P7)],B.prototype,"createMessage",null),(0,s.gn)([(0,c.aU)(b.O5)],B.prototype,"openMessageChat",null),(0,s.gn)([(0,c.Qf)()],B,"getChat",null),B=(0,s.gn)([(0,c.ZM)({name:"chat",defaults:{chat:null}})],B)},16980:(ut,fe,d)=>{"use strict";d.d(fe,{o:()=>_});var s=d(70655),c=d(68853),A=d(89867),w=d(18505),N=d(94650),te=d(92340),I=d(80529);let b=(()=>{class v{constructor(W){this.http=W,this.mensagem=te.N.API.MENSAGEM}getSections(){return this.http.get(`${this.mensagem}/mensagens-secao/secoes`)}getSection(W){return this.http.get(`${this.mensagem}${W}`)}}return v.\u0275fac=function(W){return new(W||v)(N.LFG(I.eN))},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),v})(),_=class{constructor(T){this.mensagemSecaoService=T}static getSections(T){return T.sections}static getSelectedSection(T){return T.selectedSection}static getSectionType(T){return T.sectionType}getSections({getState:T,setState:W},P){const B=T();return this.mensagemSecaoService.getSections().pipe((0,w.b)(G=>{W({...B,sections:G})}))}getSection({getState:T,setState:W},P){const B=T();return this.mensagemSecaoService.getSection(P.url).pipe((0,w.b)(G=>{W({...B,selectedSection:G,sectionType:P.sectionNumber})}))}};_.\u0275fac=function(T){return new(T||_)(N.LFG(b))},_.\u0275prov=N.Yz7({token:_,factory:_.\u0275fac}),(0,s.gn)([(0,A.aU)(c.C)],_.prototype,"getSections",null),(0,s.gn)([(0,A.aU)(c.d)],_.prototype,"getSection",null),(0,s.gn)([(0,A.Qf)()],_,"getSections",null),(0,s.gn)([(0,A.Qf)()],_,"getSelectedSection",null),(0,s.gn)([(0,A.Qf)()],_,"getSectionType",null),_=(0,s.gn)([(0,A.ZM)({name:"communication",defaults:{sections:[],selectedSection:null,sectionType:0}})],_)},69174:(ut,fe,d)=>{"use strict";d.d(fe,{J:()=>G});var B,s=d(70655),c=d(18505),A=d(89867),w=d(96270),N=d(94650),te=d(20410),I=d(79379),b=d(95908),p=d(49058),_=d(96049),v=d(14823),T=d(35591),W=d(42353),P=d(16225);let G=B=class{constructor(Z,ue,F,Y,ee,oe,X,y,k){this.testService=Z,this.alertService=ue,this.calendarService=F,this.mensagemService=Y,this.dashboardService=ee,this.matriculaService=oe,this.paymentMessageService=X,this.secretaryMessageService=y,this.supervisorMessageService=k}static getCounter(Z){return(0,A.P1)([B],ue=>ue[Z])}getOpenedDisciplinesCount({getState:Z,setState:ue}){return this.dashboardService.getOpenedDisciplinesCount().pipe((0,c.b)(F=>{const Y=Z();ue({...Y,openedDisciplines:F})}))}getTotalEventsCount({getState:Z,setState:ue}){return this.calendarService.getTotalEventsCount().pipe((0,c.b)(F=>{const Y=Z();ue({...Y,calendar:F})}))}getUnreadChatMessagesCount({getState:Z,setState:ue},F){return this.mensagemService.getTotalGeral().pipe((0,c.b)(Y=>{const ee=Z();ue({...ee,unreadChatMessages:Y})}))}getOverdueportionsQuantity({getState:Z,setState:ue},F){return this.matriculaService.getOverduePortionsQuantity(F.matriculaId).pipe((0,c.b)(Y=>{const ee=Z();ue({...ee,overduePortions:Y})}))}getLearningQuantity({getState:Z,setState:ue},F){return this.testService.getReleasedTestsCount(F.matriculaDisciplinaId).pipe((0,c.b)(Y=>{const ee=Z();ue({...ee,learning:ee?.openedDisciplines+ee.unreadChatMessages+Y})}))}getTestsQuantity({getState:Z,setState:ue},F){return this.testService.getReleasedTestsCount(F.matriculaDisciplinaId).pipe((0,c.b)(Y=>{const ee=Z();ue({...ee,tests:Y})}))}getTestsToRectifyCount({getState:Z,setState:ue}){return this.testService.getQuestionsCount().pipe((0,c.b)(F=>{const Y=Z();ue({...Y,questions:F})}))}getTutorAlertsCount({getState:Z,setState:ue}){return this.alertService.findCountAlertTutor().pipe((0,c.b)(F=>{const Y=Z();ue({...Y,alerts:F.count})}))}getPracticalActivitiesCount({getState:Z,setState:ue}){return this.testService.getPracticalActiviesCount().pipe((0,c.b)(F=>{const Y=Z();ue({...Y,practicalActivities:F})}))}getNotReadedSecretaryMessagesCount({getState:Z,setState:ue}){return this.secretaryMessageService.getStudentsWithNotReadedMessagesCount().pipe((0,c.b)(F=>{const Y=Z();ue({...Y,unreadedBySecretary:F})}))}getNotReadedPaymentMessagesCount({getState:Z,setState:ue}){return this.paymentMessageService.getStudentsWithNotReadedMessagesCount().pipe((0,c.b)(F=>{const Y=Z();ue({...Y,unreadedByPayment:F})}))}getNotReadedSupervisorMessagesCount({getState:Z,setState:ue}){return this.supervisorMessageService.getStudentsWithNotReadedMessagesCount().pipe((0,c.b)(F=>{const Y=Z();ue({...Y,unreadedBySupervisor:F})}))}getNotReadedMessagesByTutorCount({getState:Z,setState:ue}){return this.mensagemService.getNotReadedMessagesByTutorCount().pipe((0,c.b)(F=>{const Y=Z();ue({...Y,unreadedByTutor:F})}))}getAllTutorMessagesCount({getState:Z,setState:ue}){return this.mensagemService.getAllTutorMessagesCount().pipe((0,c.b)(F=>{const Y=Z();ue({...Y,allTutorMessages:F})}))}getStudentsWithNotReadedMessagesByPaymentCountByMatricula({getState:Z,setState:ue},{matriculaId:F}){return this.paymentMessageService.getStudentsWithNotReadedMessagesByPaymentCountByMatricula(F).pipe((0,c.b)(Y=>{const ee=Z();ue({...ee,unreadedByPayment:Y})}))}};G.\u0275fac=function(Z){return new(Z||G)(N.LFG(te.Q),N.LFG(I.c),N.LFG(b.U),N.LFG(p.m),N.LFG(_.s),N.LFG(v.H),N.LFG(T.U),N.LFG(W.W),N.LFG(P.E))},G.\u0275prov=N.Yz7({token:G,factory:G.\u0275fac}),(0,s.gn)([(0,A.aU)(w.i5)],G.prototype,"getOpenedDisciplinesCount",null),(0,s.gn)([(0,A.aU)(w.IB)],G.prototype,"getTotalEventsCount",null),(0,s.gn)([(0,A.aU)(w.gl)],G.prototype,"getUnreadChatMessagesCount",null),(0,s.gn)([(0,A.aU)(w.cT)],G.prototype,"getOverdueportionsQuantity",null),(0,s.gn)([(0,A.aU)(w.q1)],G.prototype,"getLearningQuantity",null),(0,s.gn)([(0,A.aU)(w.PE)],G.prototype,"getTestsQuantity",null),(0,s.gn)([(0,A.aU)(w.V6)],G.prototype,"getTestsToRectifyCount",null),(0,s.gn)([(0,A.aU)(w.Db)],G.prototype,"getTutorAlertsCount",null),(0,s.gn)([(0,A.aU)(w.ck)],G.prototype,"getPracticalActivitiesCount",null),(0,s.gn)([(0,A.aU)(w.PO)],G.prototype,"getNotReadedSecretaryMessagesCount",null),(0,s.gn)([(0,A.aU)(w.jg)],G.prototype,"getNotReadedPaymentMessagesCount",null),(0,s.gn)([(0,A.aU)(w.yO)],G.prototype,"getNotReadedSupervisorMessagesCount",null),(0,s.gn)([(0,A.aU)(w.OV)],G.prototype,"getNotReadedMessagesByTutorCount",null),(0,s.gn)([(0,A.aU)(w.jW)],G.prototype,"getAllTutorMessagesCount",null),(0,s.gn)([(0,A.aU)(w.Bf)],G.prototype,"getStudentsWithNotReadedMessagesByPaymentCountByMatricula",null),G=B=(0,s.gn)([(0,A.ZM)({name:"counters",defaults:{openedDisciplines:0,unreadChatMessages:0,overduePortions:0,learning:0,tests:0,questions:0,calendar:0,alerts:0,practicalActivities:0,unreadedByTutor:0,unreadedBySecretary:0,unreadedByPayment:0,unreadedBySupervisor:0,allTutorMessages:0}})],G)},73723:(ut,fe,d)=>{"use strict";d.d(fe,{E:()=>y});var s=d(70655),c=d(95577),A=d(24351),w=d(39133),N=d(89867),te=d(60515),I=d(50457),b=d(39646),p=d(18505),_=d(63900),v=d(46590),T=d(33485),W=d(62390),P=d(21767),B=d(96270),G=d(78174),U=d(40151),Z=d(94650),ue=d(35333),F=d(74066),Y=d(20681),ee=d(59907),oe=d(47410);let y=class{constructor($,J,L,le,ce,Se){this.disciplineService=$,this.videoAulaService=J,this.matriculaDisciplinaService=L,this.aimService=le,this.store=ce,this.reactionEvaluationService=Se}static disciplina($){return $.disciplina}static matriculaDisciplinaAvaliacaoReacao($){return $.matriculaDisciplinaAvaliacaoReacao}static aulas($){return $.aulas}static videoAula($){return $.videoAula}static videoAulaMatriculaDisciplina($){return $.videoAulaMatriculaDisciplina}static actualVideoLessonMarkers($){return $.actualVideoLessonMarkers}static videoAulasMatriculaDisciplina($){return $.videoAulasMatriculaDisciplina}static notAvailableDisciplines($){return $.notAvailableDisciplines}static isInternshipAvailable($){return $.isInternshipAvailable}getActualDisciplineLessons({getState:$,setState:J},L){return this.videoAulaService.getLessonsByDiscipline(L.idDisciplina).pipe((0,p.b)(le=>{const ce=$();J({...ce,aulas:le})}))}getAllVideoLessonsByMatriculaDisciplina({getState:$,setState:J},L){return this.videoAulaService.getAllVideoLessonsByMatriculaDisciplina(L.matriculaDisciplinaId).pipe((0,p.b)(le=>{const ce=$();J({...ce,videoAulasMatriculaDisciplina:le})}))}setActualVideoLesson({getState:$,setState:J,dispatch:L},{videoLessonId:le}){const ce=$();return le?this.videoAulaService.getOne(le).pipe((0,p.b)(Se=>{J({...ce,videoAula:Se})})):L(new w.IM(null)).pipe((0,_.w)(()=>L(new w.fK(0))),(0,p.b)(()=>{J({...ce,videoAula:null})}))}setVideoAulaMatriculaDisciplinaAtual({getState:$,setState:J},{videoAulaMatriculaDisciplina:L}){J({...$(),videoAulaMatriculaDisciplina:L})}getActualVideoLessonMarkers({getState:$,setState:J},{videoAulaMatriculaDisciplinaId:L}){const le=$();return L?this.videoAulaService.getAllMarkersByVideoLesson(L).pipe((0,p.b)(ce=>{J({...le,actualVideoLessonMarkers:ce})})):J({...le,actualVideoLessonMarkers:null})}resetVideoLesson({getState:$,setState:J}){J({...$(),videoAula:null,videoAulaMatriculaDisciplina:null,actualVideoLessonMarkers:null})}getMatriculaDisciplinaAvaliacaoReacao({getState:$,setState:J},L){return this.matriculaDisciplinaService.getMatriculaDisciplinaById(L.matriculaDisciplinaId).pipe((0,p.b)(le=>{const ce=$();J({...ce,matriculaDisciplinaAvaliacaoReacao:le})}))}updateAimProgress({getState:$}){const J=$()?.disciplina?.id;if(!J)return te.E;const L={cryptedData:JSON.parse(localStorage.getItem(J.toString()))?.dsInfo},le=JSON.parse(localStorage.getItem("mensagem"))?.map(ce=>({cryptedData:ce?.dsInfoMensagem}));return(0,I.D)(le||[]).pipe((0,v.d)(null),(0,c.z)(ce=>ce?this.aimService.updateAimMessages(ce):(0,b.of)(null)),(0,p.b)(()=>{localStorage.removeItem("mensagem")}),(0,_.w)(()=>L?.cryptedData?this.aimService.updateAimProgress(L).pipe((0,p.b)(()=>{localStorage.removeItem(J?.toString())})):te.E))}goToFirstAvailableDiscipline($){const L=this.store.selectSnapshot(U.P).curso,le=L.disciplinas.find($t=>$t.status===P.Q.AVALIACAO_REACAO_PENDENTE),ce=L.disciplinas.find($t=>!!Object.keys(T.n).find($e=>T.n[$e]===$t.status)),Se=L.disciplinas.find($t=>$t.status===P.Q.APROVADO),Qe=le||ce||Se;if(!Qe)return $.patchState({...$.getState(),notAvailableDisciplines:!0});const ct=!Qe?.id||!1;return(0,b.of)(Qe).pipe((0,p.b)(()=>{$.patchState({...$.getState(),isInternshipAvailable:ct})}),(0,_.w)(()=>$.dispatch(Qe.status!==P.Q.NAO_INICIADO||ct?new w.RK(Qe):new w.t3(Qe))))}startDiscipline($,{disciplina:J}){return $.patchState({...$.getState(),disciplina:J}),J?.id?this.matriculaDisciplinaService.startDiscipline(J.id).pipe((0,_.w)(()=>this.matriculaDisciplinaService.refreshDiscipline(J.id)),(0,_.w)(()=>$.dispatch(new w.DY)),(0,_.w)(()=>$.dispatch(new W.Zo))):te.E}changeDiscipline($,{disciplina:J}){return $.patchState({...$.getState(),disciplina:J}),J?.id?$.dispatch(new w.DY):te.E}updateActualDiscipline({getState:$,setState:J,dispatch:L},{retry:le}){const ce=$(),Se=this.store.selectSnapshot(U.P).matriculaSelecionada.id,Qe=ce?.disciplina?.id;return Qe?this.disciplineService.getDiscipline(Qe,Se).pipe((0,G.d)(800,ct=>ct.id===ce.disciplina.id&&ct.status===ce.disciplina.status&&le,6,!0),(0,_.w)(ct=>L(new B.q1(ct.id)).pipe((0,p.b)(()=>{J({...ce,disciplina:ct})})))):te.E}finishReactionEvaluation($,{avaliacaoReacaoId:J,disciplinaId:L}){return this.reactionEvaluationService.finishReactionEvaluation(L,J).pipe((0,A.b)(()=>this.matriculaDisciplinaService.refreshDiscipline(L)),(0,A.b)(()=>$.dispatch(new W.Zo)),(0,A.b)(()=>$.dispatch(new w.vX)))}};y.\u0275fac=function($){return new($||y)(Z.LFG(ue.G),Z.LFG(F.j),Z.LFG(Y.b),Z.LFG(ee.n),Z.LFG(N.yh),Z.LFG(oe.G))},y.\u0275prov=Z.Yz7({token:y,factory:y.\u0275fac}),(0,s.gn)([(0,N.aU)(w.pg)],y.prototype,"getActualDisciplineLessons",null),(0,s.gn)([(0,N.aU)(w.xj)],y.prototype,"getAllVideoLessonsByMatriculaDisciplina",null),(0,s.gn)([(0,N.aU)(w.jM)],y.prototype,"setActualVideoLesson",null),(0,s.gn)([(0,N.aU)(w.IM)],y.prototype,"setVideoAulaMatriculaDisciplinaAtual",null),(0,s.gn)([(0,N.aU)(w.fK)],y.prototype,"getActualVideoLessonMarkers",null),(0,s.gn)([(0,N.aU)(w.Ng)],y.prototype,"resetVideoLesson",null),(0,s.gn)([(0,N.aU)(w.Wx)],y.prototype,"getMatriculaDisciplinaAvaliacaoReacao",null),(0,s.gn)([(0,N.aU)(w.gm)],y.prototype,"updateAimProgress",null),(0,s.gn)([(0,N.aU)(w.vX)],y.prototype,"goToFirstAvailableDiscipline",null),(0,s.gn)([(0,N.aU)(w.t3)],y.prototype,"startDiscipline",null),(0,s.gn)([(0,N.aU)(w.RK)],y.prototype,"changeDiscipline",null),(0,s.gn)([(0,N.aU)(w.DY)],y.prototype,"updateActualDiscipline",null),(0,s.gn)([(0,N.aU)(w.CN)],y.prototype,"finishReactionEvaluation",null),(0,s.gn)([(0,N.Qf)()],y,"disciplina",null),(0,s.gn)([(0,N.Qf)()],y,"matriculaDisciplinaAvaliacaoReacao",null),(0,s.gn)([(0,N.Qf)()],y,"aulas",null),(0,s.gn)([(0,N.Qf)()],y,"videoAula",null),(0,s.gn)([(0,N.Qf)()],y,"videoAulaMatriculaDisciplina",null),(0,s.gn)([(0,N.Qf)()],y,"actualVideoLessonMarkers",null),(0,s.gn)([(0,N.Qf)()],y,"videoAulasMatriculaDisciplina",null),(0,s.gn)([(0,N.Qf)()],y,"notAvailableDisciplines",null),(0,s.gn)([(0,N.Qf)()],y,"isInternshipAvailable",null),y=(0,s.gn)([(0,N.ZM)({name:"disciplina",defaults:{disciplina:null,matriculaDisciplinaAvaliacaoReacao:null,aulas:[],videoAula:null,videoAulasMatriculaDisciplina:[],videoAulaMatriculaDisciplina:null,actualVideoLessonMarkers:null,notAvailableDisciplines:!1,isInternshipAvailable:!1}})],y)},25822:(ut,fe,d)=>{"use strict";d.d(fe,{I:()=>oe});var s=d(70655),c=d(89867),A=d(62843),w=d(5963),N=d(18505),te=d(63900),I=d(54004),b=d(77579),p=d(54482),_=d(25403),T=d(75376),W=d(95698),P=d(39300),B=d(73092),G=d(25379),U=d(78174),Z=d(94650),ue=d(20681),F=d(14823),Y=d(61646),ee=d(35439);let oe=class{constructor(y,k,$,J){this.matriculaDisciplinaService=y,this.matriculaService=k,this.paymentService=$,this.studentService=J}static planoDePagamento(y){return y.planoDePagamento}static studentList(y){return y.studentList}static studentRenegotiations(y){return y.studentRenegotiations}static parcelas(y){return y.parcelas}static isPaymentPlanSettled(y){return y.isPaymentPlanSettled}static isUpdating(y){return y.isUpdating}static renegociacaoPlanoDePagamento(y){return y.renegociacaoPlanoDePagamento}static quantidadeMaximaParcelas(y){return y.quantidadeMaximaParcelas}static parcelasPreVisualizacao(y){return y.parcelasPreVisualizacao}static statusRenegociacaoPlano(y){return y.statusRenegociacaoPlano}static selectedStudent(y){return y.selectedStudent}getPaymentPlan({getState:y,patchState:k},$){const J=y();return this.matriculaDisciplinaService.getPaymentPlan($.matriculaId).pipe((0,N.b)(L=>{const le=L?.quantidadeParcelas||12,ce=[];for(let Qe=1;Qe<=le;Qe++)ce.push({ordem:Qe,valor:L.historicoFinanceiro.valorAPagar/Qe});k({...J,planoDePagamento:L,parcelas:ce,isPaymentPlanSettled:0===L.historicoFinanceiro.valorAPagar,isUpdating:!1})}))}payOutstandingAmountWithCreditCard(y,k){const $=y.getState();return this.matriculaDisciplinaService.payOutstandingAmountWithCreditCard(k.matriculaId,k.pagamentoValorEmAberto).pipe((0,te.w)(()=>this.matriculaDisciplinaService.getPaymentPlan(k.matriculaId).pipe((0,I.U)(J=>0===J.historicoFinanceiro.valorAPagar?J:(0,A._)(()=>"Atualizando")),function v(X){return(0,p.e)((y,k)=>{let $,L,J=!1;const le=()=>{$=y.subscribe((0,_.x)(k,void 0,void 0,ce=>{L||(L=new b.x,X(L).subscribe((0,_.x)(k,()=>$?le():J=!0))),L&&L.next(ce)})),J&&($.unsubscribe(),$=null,J=!1,le())};le()})}(J=>J.pipe((0,N.b)(()=>y.patchState({...$,isUpdating:!0})),(0,T.j)(()=>(0,w.H)(800)),(0,W.q)(10))))),(0,te.w)(()=>y.dispatch(new B.VH(k.matriculaId))))}getStudentsToManageFinancial({getState:y,patchState:k},$){const J=y();return this.studentService.getStudentListByFilters({nome:$.nome}).pipe((0,N.b)(L=>{k({...J,studentList:L})}))}getStudentsToManageFinancialByCPF({getState:y,patchState:k},$){const J=y();return this.studentService.getStudentByCpf($.cpf).pipe((0,P.h)(L=>!!L),(0,N.b)(L=>{k({...J,studentList:[L],selectedStudent:L})}))}getStudentCoursesToManageFinancialByIdMatricula({getState:y,patchState:k},$){const J=y();return this.matriculaService.getStudentCoursesToManageFinancialByIdMatricula($.alunoId).pipe((0,N.b)(L=>{k({...J,studentRenegotiations:L})}))}setPaymentPlanMatriculaId({patchState:y},k){y({selectedStudentRenegotiation:k.studentRenegotiation})}getRenegotiationPaymentPlan({getState:y,patchState:k},$){const J=y();return this.matriculaDisciplinaService.getRenegotiationPaymentPlan($.matriculaId).pipe((0,U.d)(1e3,L=>L.gerouParcelas!==$.pollingCondition&&$.retries>1,$.retries,!0),(0,N.b)(L=>{k({...J,renegociacaoPlanoDePagamento:L,statusRenegociacaoPlano:L.statusId})}))}getRenegotiationPayentPlanPrevisualization({getState:y,patchState:k},$){const J=y();return this.matriculaDisciplinaService.getRenegotiationPayentPlanPrevisualization($.matriculaId,$.renegociacaoSolicitacao).pipe((0,N.b)(L=>{k({...J,parcelasPreVisualizacao:L})}))}getRenegotiationPaymentPlanMaxPortionsQuantity({getState:y,patchState:k},$){const J=y();return this.matriculaDisciplinaService.getRenegotiationPaymentPlanMaxPortionsQuantity($.dataEntrada,$.matriculaId,$.valorEntrada).pipe((0,N.b)(L=>{const le=(0,G.MB)(L.quantidadeMaximaParcelas);k({...J,quantidadeMaximaParcelas:le})}))}confirmPaymentPlanRenegotiation(y,k){return this.matriculaDisciplinaService.confirmPaymentPlanRenegotiation(k.renegociacaoSolicitacao).pipe((0,N.b)(()=>y.patchState({...y.getState(),isUpdating:!0})),(0,te.w)(()=>y.dispatch(new B.bP(k.renegociacaoSolicitacao.matriculaId,!0,10))),(0,N.b)(()=>{const $=y.getState();y.patchState({...$,parcelasPreVisualizacao:null,isUpdating:!1})}))}cancelPaymentPlanRenegotiation({getState:y,patchState:k},$){const J=y();return this.matriculaDisciplinaService.cancelPaymentPlanRenegotiation($.renegociacaoId).pipe((0,N.b)(()=>{k({...J})}))}payPaymentPlanPortionWithCreditCard(y,k){const $=y.getState();return this.paymentService.payPortionWithCreditCard(k.pagamentoParcelaCartao).pipe((0,te.w)(()=>y.dispatch(new B.bP($.selectedStudentRenegotiation.matricula.id))),(0,te.w)(()=>y.dispatch(new B.VH($.selectedStudentRenegotiation.matricula.id))))}setSelectedStudentToManageFinancial({patchState:y,getState:k},$){y({selectedStudent:k().studentList.find(L=>L.email===$.email)})}};oe.\u0275fac=function(y){return new(y||oe)(Z.LFG(ue.b),Z.LFG(F.H),Z.LFG(Y.t),Z.LFG(ee.N))},oe.\u0275prov=Z.Yz7({token:oe,factory:oe.\u0275fac}),(0,s.gn)([(0,c.aU)(B.VH)],oe.prototype,"getPaymentPlan",null),(0,s.gn)([(0,c.aU)(B.iQ)],oe.prototype,"payOutstandingAmountWithCreditCard",null),(0,s.gn)([(0,c.aU)(B.NU)],oe.prototype,"getStudentsToManageFinancial",null),(0,s.gn)([(0,c.aU)(B.Z)],oe.prototype,"getStudentsToManageFinancialByCPF",null),(0,s.gn)([(0,c.aU)(B.E3)],oe.prototype,"getStudentCoursesToManageFinancialByIdMatricula",null),(0,s.gn)([(0,c.aU)(B.TL)],oe.prototype,"setPaymentPlanMatriculaId",null),(0,s.gn)([(0,c.aU)(B.bP)],oe.prototype,"getRenegotiationPaymentPlan",null),(0,s.gn)([(0,c.aU)(B.sM)],oe.prototype,"getRenegotiationPayentPlanPrevisualization",null),(0,s.gn)([(0,c.aU)(B.FP)],oe.prototype,"getRenegotiationPaymentPlanMaxPortionsQuantity",null),(0,s.gn)([(0,c.aU)(B.pz)],oe.prototype,"confirmPaymentPlanRenegotiation",null),(0,s.gn)([(0,c.aU)(B.EY)],oe.prototype,"cancelPaymentPlanRenegotiation",null),(0,s.gn)([(0,c.aU)(B.Td)],oe.prototype,"payPaymentPlanPortionWithCreditCard",null),(0,s.gn)([(0,c.aU)(B.UZ)],oe.prototype,"setSelectedStudentToManageFinancial",null),(0,s.gn)([(0,c.Qf)()],oe,"planoDePagamento",null),(0,s.gn)([(0,c.Qf)()],oe,"studentList",null),(0,s.gn)([(0,c.Qf)()],oe,"studentRenegotiations",null),(0,s.gn)([(0,c.Qf)()],oe,"parcelas",null),(0,s.gn)([(0,c.Qf)()],oe,"isPaymentPlanSettled",null),(0,s.gn)([(0,c.Qf)()],oe,"isUpdating",null),(0,s.gn)([(0,c.Qf)()],oe,"renegociacaoPlanoDePagamento",null),(0,s.gn)([(0,c.Qf)()],oe,"quantidadeMaximaParcelas",null),(0,s.gn)([(0,c.Qf)()],oe,"parcelasPreVisualizacao",null),(0,s.gn)([(0,c.Qf)()],oe,"statusRenegociacaoPlano",null),(0,s.gn)([(0,c.Qf)()],oe,"selectedStudent",null),oe=(0,s.gn)([(0,c.ZM)({name:"manageFinancial",defaults:{planoDePagamento:null,renegociacaoPlanoDePagamento:null,studentList:[],selectedStudent:null,studentRenegotiations:[],parcelas:[],selectedStudentRenegotiation:null,isPaymentPlanSettled:!1,isUpdating:!1,parcelasPreVisualizacao:null,quantidadeMaximaParcelas:[],statusRenegociacaoPlano:null}})],oe)},60424:(ut,fe,d)=>{"use strict";d.d(fe,{e:()=>T});var s=d(70655),c=d(94650),A=d(89867),w=d(18505),N=d(63900),te=d(4128),I=d(88787),b=d(61254),p=d(20410),_=d(19430),v=d(12345);let T=class{constructor(){this.organizationService=(0,c.f3M)(b.M),this.provaService=(0,c.f3M)(p.Q)}static instituicoesFiltradas(P){return P.instituicoesFiltradas}static todasInstituicoes(P){return P.instituicoes}static redeSelecionada(P){return P.redeSelecionada}static escolaSelecionada(P){return P.escolaSelecionada}static poloSelecionado(P){return P.poloSelecionado}static escolas(P){return P.escolas}static instituicoesFiltro(P){return P.instituicoesFiltro}static locaisDeProva(P){return P.locaisDeProvaPoloSelecionado}static localDeProvaSelecionado(P){return P.localDeProvaSelecionado}getAllPolos({getState:P,setState:B}){const G=P();return this.organizationService.getPolosByFilter({nome:""}).pipe((0,w.b)(U=>{const Z=U?.reduce((ue,F)=>({redes:[...ue.redes.filter(Y=>Y.redeId!==F.redeId),{redeNome:F.redeNome,redeId:F.redeId}],escolas:[...ue.escolas.filter(Y=>Y.escolaId!==F.escolaId),{escolaNome:F.escolaNome,escolaId:F.escolaId}],polos:[...ue.polos.filter(Y=>Y.poloId!==F.poloId),{poloNome:F.poloNome,poloId:F.poloId}]}),{redes:[],regionais:[],escolas:[],polos:[]});B({...G,instituicoesFiltro:Z,instituicoesFiltradas:U,instituicoes:U})}))}getAllInstitutionsByFilter({getState:P,setState:B},{filtro:G}){const U=P(),{instituicoes:Z,instituicoesFiltro:ue}=U,{redeId:F,escolaId:Y,poloId:ee}=G,X=["poloId","escolaId","redeId"].find(J=>G[J]),y=X?Z.filter(J=>J[X]===G[X]):Z,$={redeId:()=>({redes:ue.redes.filter(ce=>ce.redeId===F),escolas:y.filter((ce,Se,Qe)=>Se===Qe.findIndex(ct=>ct.escolaId===ce.escolaId)),polos:y.filter(ce=>ce.redeId===F)}),escolaId:()=>{const J=ue.escolas.filter(le=>le.escolaId===Y),L=y.filter(le=>le.escolaId===Y);return{...ue,escolas:J,polos:L}},poloId:()=>{const J=[ue.polos.find(L=>L.poloId===ee)];return{...ue,polos:J}}}[X]?.();B({...U,instituicoesFiltradas:y,instituicoesFiltro:$})}getLearningNetworkById({getState:P,patchState:B},{redeId:G}){const U=P();return this.organizationService.getLearningNetworkById(G).pipe((0,w.b)(Z=>{B({...U,redeSelecionada:Z})}))}createLearningNetwork({getState:P,patchState:B},{payload:G}){const U=P();return this.organizationService.createLearningNetwork(G).pipe((0,w.b)(Z=>{B({...U,redeSelecionada:Z})}))}updateLearningNetwork({dispatch:P},{payload:B}){return this.organizationService.updateLearningNetwork(B).pipe((0,N.w)(()=>P(new I.lf(B.id))))}getAllSchoolsByNetworkId({getState:P,patchState:B},{redeId:G,nome:U}){const Z=P();return this.organizationService.getEmpresasByFilter({redeId:G,nome:U}).pipe((0,w.b)(ue=>{B({...Z,escolas:ue??[]})}))}getSchoolById({getState:P,patchState:B},{escolaId:G}){const U=P();return this.organizationService.getEmpresaById(G).pipe((0,w.b)(Z=>{B({...U,escolaSelecionada:Z})}))}createSchool({getState:P,patchState:B},{payload:G}){const U=P();return this.organizationService.createEmpresa(G).pipe((0,w.b)(Z=>{B({...U,escolaSelecionada:Z})}))}updateSchool(P,{payload:B}){return this.organizationService.updateEmpresa(B)}getAllPolosByNetworkId({getState:P,patchState:B},{redeId:G}){const U=P();return this.organizationService.getPolosByFilter({redeId:G,nome:""}).pipe((0,w.b)(Z=>{B({...U,polos:Z})}))}getPolosBySchoolId({getState:P,patchState:B},{escolaId:G}){const U=P();return this.organizationService.getPolosByFilter({escolaId:G,nome:""}).pipe((0,w.b)(Z=>{B({...U,polos:Z})}))}getPoloById({getState:P,patchState:B,dispatch:G},{poloId:U}){const Z=P();return 0===U?(B({...Z,poloSelecionado:null,localDeProvaSelecionado:null}),void G(new v.z1({path:"manageInstitutions.testLocalForm"}))):this.organizationService.getPoloById(U).pipe((0,w.b)(ue=>{B({...Z,poloSelecionado:ue})}))}createPolo({getState:P,patchState:B},{payload:G}){const U=P();return this.organizationService.createPolo(G).pipe((0,w.b)(Z=>{B({...U,poloSelecionado:Z})}))}updatePolo({getState:P,patchState:B},{payload:G}){const U=P();return this.organizationService.updatePolo(G).pipe((0,w.b)(Z=>{B({...U,poloSelecionado:Z})}))}updateSchoolLogo(P,{escolaId:B,logo:G}){return this.organizationService.updateSchoolLogo(G,B)}getSelectPoloTestLocals({getState:P,patchState:B}){const G=P();return this.provaService.getAllTestLocalsByPoloId(P().poloSelecionado.id).pipe((0,w.b)(U=>{B({...G,locaisDeProvaPoloSelecionado:U})}))}createTestLocal({patchState:P,dispatch:B,getState:G}){const{testLocalForm:U,timeRangeForm:Z,poloSelecionado:ue}=G(),F=G().localDeProvaSelecionado?.localDeProva.id;return(()=>{if(!F){const oe=Z.model.localDeProvaFaixa[0];delete oe.id;const X=U.model;delete X.id;const y={localDeProva:{...X},localDeProvaFaixa:[oe],localDeProvaFaixaHorario:Z.model.localDeProvaFaixaHorario.map(k=>{const $={...k};return delete $.id,$})};return this.provaService.createTestLocal(y,ue.id)}const ee={localDeProva:{...U.model},localDeProvaFaixa:Z.model.localDeProvaFaixa.map(oe=>{const X={...oe};return X.id||delete X.id,X}),localDeProvaFaixaHorario:Z.model.localDeProvaFaixaHorario.map(oe=>{const X={...oe};return X.id||delete X.id,X})};return this.provaService.updateTestLocal(ee,ue.id)})().pipe((0,w.b)(ee=>{P({localDeProvaSelecionado:ee})}),(0,N.w)(()=>B(new I.jO)))}getTestLocalById({patchState:P,dispatch:B},{localId:G}){return G?this.provaService.getTestLocalById(G).pipe((0,w.b)(U=>{P({localDeProvaSelecionado:U}),B(new v.d7({path:"manageInstitutions.testLocalForm",value:{nome:U.localDeProva.nome,estacoes:U.localDeProva.estacoes,endereco:U.localDeProva.endereco,id:U.localDeProva.id}}))})):(console.warn("LocalId n\xe3o informado"),(0,te.D)([B(new v.z1({path:"manageInstitutions.testLocalForm"})),B(new v.z1({path:"manageInstitutions.timeRangeForm"}))]).pipe((0,w.b)(()=>{P({localDeProvaSelecionado:null})})))}deleteTestLocal({getState:P,patchState:B},{localId:G}){return this.provaService.deleteTestLocal(G).pipe((0,w.b)(()=>{const{locaisDeProvaPoloSelecionado:U}=P(),Z=U.filter(ue=>ue.id!==G);B({locaisDeProvaPoloSelecionado:Z,localDeProvaSelecionado:null})}))}enableOrDisableLocal(P,{localId:B}){return this.provaService.enableOrDisableTestLocal(B)}deleteTimeRange({dispatch:P},{timeRangeId:B}){return this.provaService.deleteTimeRange(B).pipe((0,N.w)(()=>P(new I.jO)))}setTimeRange({getState:P,dispatch:B},{timeRange:G}){const{localDeProvaSelecionado:U}=P();if(!G)return B(new v.z1({path:"manageInstitutions.timeRangeForm"}));const Z=U.localDeProvaFaixa.filter(F=>F.id===G.localDeProvaFaixa);console.log("Faixas",U.localDeProvaFaixaHorario);const ue=U.localDeProvaFaixaHorario.filter(F=>F.localDeProvaFaixa===G.localDeProvaFaixa).map(F=>({id:F.id,horaInicio:F.horaInicio,horaFim:F.horaFim}));return B(new v.d7({path:"manageInstitutions.timeRangeForm",value:{localDeProvaFaixa:Z,localDeProvaFaixaHorario:ue}}))}};T.\u0275fac=function(P){return new(P||T)},T.\u0275prov=c.Yz7({token:T,factory:T.\u0275fac}),(0,s.gn)([(0,A.aU)(I.A0)],T.prototype,"getAllPolos",null),(0,s.gn)([(0,A.aU)(I.zF)],T.prototype,"getAllInstitutionsByFilter",null),(0,s.gn)([(0,A.aU)(I.lf)],T.prototype,"getLearningNetworkById",null),(0,s.gn)([(0,A.aU)(I.Ei)],T.prototype,"createLearningNetwork",null),(0,s.gn)([(0,A.aU)(I.Cd)],T.prototype,"updateLearningNetwork",null),(0,s.gn)([(0,A.aU)(I.qA)],T.prototype,"getAllSchoolsByNetworkId",null),(0,s.gn)([(0,A.aU)(I.jf)],T.prototype,"getSchoolById",null),(0,s.gn)([(0,A.aU)(I.yJ)],T.prototype,"createSchool",null),(0,s.gn)([(0,A.aU)(I.oX)],T.prototype,"updateSchool",null),(0,s.gn)([(0,A.aU)(I.w1)],T.prototype,"getAllPolosByNetworkId",null),(0,s.gn)([(0,A.aU)(I.HO)],T.prototype,"getPolosBySchoolId",null),(0,s.gn)([(0,A.aU)(I.EM)],T.prototype,"getPoloById",null),(0,s.gn)([(0,A.aU)(I.BU)],T.prototype,"createPolo",null),(0,s.gn)([(0,A.aU)(I.qt)],T.prototype,"updatePolo",null),(0,s.gn)([(0,A.aU)(I.De)],T.prototype,"updateSchoolLogo",null),(0,s.gn)([(0,A.aU)(I.jO)],T.prototype,"getSelectPoloTestLocals",null),(0,s.gn)([(0,A.aU)(I.X4)],T.prototype,"createTestLocal",null),(0,s.gn)([(0,A.aU)(I.BT)],T.prototype,"getTestLocalById",null),(0,s.gn)([(0,A.aU)(I.Jx)],T.prototype,"deleteTestLocal",null),(0,s.gn)([(0,A.aU)(I.Bv)],T.prototype,"enableOrDisableLocal",null),(0,s.gn)([(0,A.aU)(I.s7)],T.prototype,"deleteTimeRange",null),(0,s.gn)([(0,A.aU)(I.H$)],T.prototype,"setTimeRange",null),(0,s.gn)([(0,A.Qf)()],T,"instituicoesFiltradas",null),(0,s.gn)([(0,A.Qf)()],T,"todasInstituicoes",null),(0,s.gn)([(0,A.Qf)()],T,"redeSelecionada",null),(0,s.gn)([(0,A.Qf)()],T,"escolaSelecionada",null),(0,s.gn)([(0,A.Qf)()],T,"poloSelecionado",null),(0,s.gn)([(0,A.Qf)()],T,"escolas",null),(0,s.gn)([(0,A.Qf)()],T,"instituicoesFiltro",null),(0,s.gn)([(0,A.Qf)()],T,"locaisDeProva",null),(0,s.gn)([(0,A.Qf)()],T,"localDeProvaSelecionado",null),T=(0,s.gn)([(0,A.ZM)({name:"manageInstitutions",defaults:{instituicoesFiltradas:[],instituicoes:[],instituicoesFiltro:null,polosInstituicao:[],redeSelecionada:null,escolas:[],escolaSelecionada:null,polos:[],poloSelecionado:null,locaisDeProvaPoloSelecionado:[],localDeProvaSelecionado:null,testLocalForm:(0,_.GV)({endereco:"",estacoes:0,nome:"",id:0}),timeRangeForm:(0,_.GV)({localDeProvaFaixa:[{domingo:!1,segunda:!1,terca:!1,quarta:!1,quinta:!1,sexta:!1,sabado:!1,id:0}],localDeProvaFaixaHorario:[{horaFim:"",horaInicio:"",id:0}]})}})],T)},44069:(ut,fe,d)=>{"use strict";d.d(fe,{u:()=>p});var b,s=d(70655),c=d(18505),A=d(54004),w=d(89867),N=d(91388),te=d(94650),I=d(35439);let p=b=class{constructor(v){this.personService=v}static getAgrupadorByPerfilId(v){return(0,w.P1)([b],T=>T.perfisComPerfilCompleto.find(W=>W.perfil.id===v))}static perfisComPerfilCompleto(v){return v.perfisComPerfilCompleto}static agrupadores(v){return v.agrupadores}static selectedProfile(v){return v.selectedProfile}static employees(v){return v.employees}static selectedEmployee(v){return v.selectedEmployee}getAllProfiles(v){return this.personService.getAllProfiles().pipe((0,c.b)(T=>{const W=T.reduce((P,B)=>[...P,{perfil:B,perfilCompleto:null}],[]);v.patchState({perfisComPerfilCompleto:W})}))}createProfile(v,{perfilDto:T}){return this.personService.createProfile(T)}updateProfile(v,T){const W={id:T.perfilId,...T.perfilDto};return this.personService.updateProfile(W)}deleteProfile(v,{perfilId:T}){return this.personService.deleteProfile(T)}selectProfileToEdit(v,{perfilComPerfilCompleto:T}){v.patchState({selectedProfile:T})}getCompleteProfileById(v,{perfilId:T}){const W=v.getState();return this.personService.getCompleteProfileById(T).pipe((0,c.b)(P=>{const B=W.perfisComPerfilCompleto.map(G=>G.perfil.id!==P.id?G:{perfil:G.perfil,perfilCompleto:P});v.patchState({perfisComPerfilCompleto:B})}))}enableProfileById(v,{perfilId:T}){return this.personService.enableProfileById(T)}disableProfileById(v,{perfilId:T}){return this.personService.disableProfileById(T)}getAllPermissions(v){return this.personService.getAllPermissions().pipe((0,A.U)(T=>T.reduce((P,B)=>{const G=P.find(U=>U.nome===B.agrupador.nome);return G&&(G.permissoes=[...G.permissoes,B]),G?P:[...P,{nome:B.agrupador.nome,permissoes:[B]}]},[])),(0,c.b)(T=>{v.patchState({agrupadores:T})}))}getAllEmployees(v,{busca:T}){return this.personService.getAllEmployees(T).pipe((0,c.b)(W=>{v.patchState({employees:W})}))}selectEmployeeByEmail(v,{email:T}){const W=v.getState();return this.personService.getAllEmployees(T).pipe((0,c.b)(P=>{v.patchState({...W,selectedEmployee:P[0]})}))}associateEmployeeWithProfileList(v,T){return this.personService.associateEmplooyeeWithProfileList(T.pessoaEmpresaId,T.perfisId)}};p.\u0275fac=function(v){return new(v||p)(te.LFG(I.N))},p.\u0275prov=te.Yz7({token:p,factory:p.\u0275fac}),(0,s.gn)([(0,w.aU)(N.Ym)],p.prototype,"getAllProfiles",null),(0,s.gn)([(0,w.aU)(N.ei)],p.prototype,"createProfile",null),(0,s.gn)([(0,w.aU)(N.Ot)],p.prototype,"updateProfile",null),(0,s.gn)([(0,w.aU)(N.p3)],p.prototype,"deleteProfile",null),(0,s.gn)([(0,w.aU)(N.J$)],p.prototype,"selectProfileToEdit",null),(0,s.gn)([(0,w.aU)(N.U_)],p.prototype,"getCompleteProfileById",null),(0,s.gn)([(0,w.aU)(N.PW)],p.prototype,"enableProfileById",null),(0,s.gn)([(0,w.aU)(N.nC)],p.prototype,"disableProfileById",null),(0,s.gn)([(0,w.aU)(N.Th)],p.prototype,"getAllPermissions",null),(0,s.gn)([(0,w.aU)(N.po)],p.prototype,"getAllEmployees",null),(0,s.gn)([(0,w.aU)(N.a9)],p.prototype,"selectEmployeeByEmail",null),(0,s.gn)([(0,w.aU)(N.XF)],p.prototype,"associateEmployeeWithProfileList",null),(0,s.gn)([(0,w.Qf)()],p,"perfisComPerfilCompleto",null),(0,s.gn)([(0,w.Qf)()],p,"agrupadores",null),(0,s.gn)([(0,w.Qf)()],p,"selectedProfile",null),(0,s.gn)([(0,w.Qf)()],p,"employees",null),(0,s.gn)([(0,w.Qf)()],p,"selectedEmployee",null),p=b=(0,s.gn)([(0,w.ZM)({name:"manageProfile",defaults:{perfisComPerfilCompleto:[],permissoes:[],agrupadores:[],selectedProfile:null,employees:[],selectedEmployee:null}})],p)},34196:(ut,fe,d)=>{"use strict";d.d(fe,{o:()=>b});var s=d(70655),c=d(57075),A=d(89867),w=d(18505),N=d(40556),te=d(94650),I=d(47410);let b=class{constructor(_){this.reactionEvaluationService=_}static avaliacoesReacao(_){return _.avaliacoesReacao}static avalicaoReacaoSelecionada(_){return _.avalicaoReacaoSelecionada}static tiposDeAlternativa(_){return _.tiposDeAlternativa}static tipoDeAlternativaSelecionado(_){return _.tipoDeAlternativaSelecionado}static questoesDaAvaliacaoAtualForamAlteradas(_){return _.questoesDaAvaliacaoAtualForamAlteradas}getAllReactionEvaluations(_){return this.reactionEvaluationService.getAllReactionEvaluations().pipe((0,w.b)(v=>{_.patchState({..._.getState(),avaliacoesReacao:v})}))}getReactionEvaluationById(_,v){return this.reactionEvaluationService.getReactionEvaluationById(v.id).pipe((0,w.b)(T=>{_.patchState({..._.getState(),avalicaoReacaoSelecionada:T})}))}createReactionEvaluation(_,{payload:v}){return this.reactionEvaluationService.createReactionEvaluation(v).pipe((0,w.b)(()=>{_.patchState({..._.getState(),avalicaoReacaoSelecionada:null})}))}updateReactionEvaluation(_,{payload:v}){return this.reactionEvaluationService.updateReactionEvaluation(v).pipe((0,w.b)(()=>{_.patchState({..._.getState(),avalicaoReacaoSelecionada:null})}))}disableReactionEvaluation(_,{payload:v}){return this.reactionEvaluationService.disableReactionEvaluation(v)}enableReactionEvaluation(_,{payload:v}){return this.reactionEvaluationService.enableReactionEvaluation(v)}addTipoDeAlternativa(_,{payload:v}){const T=_.getState(),W=[...T.tiposDeAlternativa,v];_.patchState({...T,tiposDeAlternativa:W,tipoDeAlternativaSelecionado:v})}editTipoDeAlternativa(_,{payload:v}){const T=_.getState(),W=T.tiposDeAlternativa.findIndex(B=>B.nome===v.nome),P=-1===W?[...T.tiposDeAlternativa,v]:[...T.tiposDeAlternativa];-1!==W&&(P[W]=v),_.patchState({...T,tiposDeAlternativa:P})}selectTipoDeAlternativaToEdit(_,{payload:v}){const T=_.getState(),W=T.tiposDeAlternativa.find(P=>P.opcoesResposta.length===v.length&&JSON.stringify(P.opcoesResposta)===JSON.stringify(v))||null;_.patchState({...T,tipoDeAlternativaSelecionado:W})}deleteQuestionFromSelectedReactionEvaluation(_,{id:v}){const T=_.getState(),W={...T.avalicaoReacaoSelecionada,avaliacaoReacaoQuestoes:T.avalicaoReacaoSelecionada.avaliacaoReacaoQuestoes.filter(P=>P.id!==v)};_.patchState({...T,avalicaoReacaoSelecionada:W,questoesDaAvaliacaoAtualForamAlteradas:!0})}editQuestionFromSelectedReactionEvaluation(_,{payload:v}){const T=_.getState(),W={...T.avalicaoReacaoSelecionada,avaliacaoReacaoQuestoes:T.avalicaoReacaoSelecionada.avaliacaoReacaoQuestoes.map(P=>P.id===v.id?v:P)};_.patchState({...T,avalicaoReacaoSelecionada:W,questoesDaAvaliacaoAtualForamAlteradas:!0})}};b.\u0275fac=function(_){return new(_||b)(te.LFG(I.G))},b.\u0275prov=te.Yz7({token:b,factory:b.\u0275fac}),(0,s.gn)([(0,A.aU)(c.i2)],b.prototype,"getAllReactionEvaluations",null),(0,s.gn)([(0,A.aU)(c.D1)],b.prototype,"getReactionEvaluationById",null),(0,s.gn)([(0,A.aU)(c.aC)],b.prototype,"createReactionEvaluation",null),(0,s.gn)([(0,A.aU)(c.Os)],b.prototype,"updateReactionEvaluation",null),(0,s.gn)([(0,A.aU)(c.ep)],b.prototype,"disableReactionEvaluation",null),(0,s.gn)([(0,A.aU)(c.aK)],b.prototype,"enableReactionEvaluation",null),(0,s.gn)([(0,A.aU)(c._P)],b.prototype,"addTipoDeAlternativa",null),(0,s.gn)([(0,A.aU)(c.Jt)],b.prototype,"editTipoDeAlternativa",null),(0,s.gn)([(0,A.aU)(c.Em)],b.prototype,"selectTipoDeAlternativaToEdit",null),(0,s.gn)([(0,A.aU)(c.h8)],b.prototype,"deleteQuestionFromSelectedReactionEvaluation",null),(0,s.gn)([(0,A.aU)(c.mM)],b.prototype,"editQuestionFromSelectedReactionEvaluation",null),(0,s.gn)([(0,A.Qf)()],b,"avaliacoesReacao",null),(0,s.gn)([(0,A.Qf)()],b,"avalicaoReacaoSelecionada",null),(0,s.gn)([(0,A.Qf)()],b,"tiposDeAlternativa",null),(0,s.gn)([(0,A.Qf)()],b,"tipoDeAlternativaSelecionado",null),(0,s.gn)([(0,A.Qf)()],b,"questoesDaAvaliacaoAtualForamAlteradas",null),b=(0,s.gn)([(0,A.ZM)({name:"manageReactionEvaluation",defaults:{avaliacoesReacao:[],avalicaoReacaoSelecionada:null,tiposDeAlternativa:N.R,tipoDeAlternativaSelecionado:null,questoesDaAvaliacaoAtualForamAlteradas:!1}})],b)},14257:(ut,fe,d)=>{"use strict";d.d(fe,{b:()=>I});var s=d(70655),c=d(61566),A=d(94650),w=d(89867),N=d(60515);let I=class{constructor(){this.manageRegistrationFactoryService=(0,A.f3M)(c.GZ)}static alunoSelecionado(p){return p.alunoSelecionado}static matriculaSelecionada(p){return p.matriculaSelecionada}static matriculasDoAluno(p){return p.matriculasDoAluno}static alunos(p){return p.alunos}static parcelas(p){return p.parcelas}static quantidadeMesesDisponiveis(p){return p.quantidadeMesesDisponiveis}static operacaoFinalizada(p){return p.operacaoFinalizada}static valorTotal(p){return p.valorTotal}static informacoesDePagamento(p){return p.informacoesDePagamento}static idRenegociacaoRecemConfirmada(p){return p.idRenegociacaoRecemConfirmada}static taxa(p){return p.taxa}static nomeRenegociacao(p){return p.nomeRenegociacao}getStudentList(p,{nome:_}){return this.manageRegistrationFactoryService.getStudentList(p,{nome:_})}getStudentByCpf(p,_){return this.manageRegistrationFactoryService.getStudentByCpf(p,_)}setSelectedStudent(p,_){return this.manageRegistrationFactoryService.setSelectedStudent(p,_)}getStudentRegistrations(p,_){const{nomeRenegociacao:v}=p.getState();return this.manageRegistrationFactoryService.executeGetStudentRegistrations(p,_,v)}setSelectedRegistrationToManageByCourseName(p,{curso:_}){return this.manageRegistrationFactoryService.setSelectedRegistrationToManageByCourseName(p,{curso:_})}setSelectedRegistrationToManage(p,{matriculaRenegociacao:_}){return this.manageRegistrationFactoryService.setSelectedRegistrationToManage(p,{matriculaRenegociacao:_})}confirmRegistrationAction(p,{matriculaRenegociacao:_}){const v=p?.getState()?.nomeRenegociacao;return v?this.manageRegistrationFactoryService.executeConfirmRegistrationAction(p,{matriculaRenegociacao:_},v):N.E}getPortionValue(p,_){return this.manageRegistrationFactoryService.getPortionValue(p,_)}generateTerm(p,{action:_}){return this.manageRegistrationFactoryService.generateTerm(p,{action:_})}updateRenegotiationPaymentInfo(p,{informacoesDePagamento:_}){return this.manageRegistrationFactoryService.updateRenegotiationPaymentInfo(p,{informacoesDePagamento:_})}gerarBoletoRenegociacao(p){return this.manageRegistrationFactoryService.gerarBoletoRenegociacao(p)}resetRenegotiationTotalValue(p){return this.manageRegistrationFactoryService.resetRenegotiationTotalValue(p)}setNomeRenegociacao(p,{nomeRenegociacao:_}){const v=p.getState();p.setState({...v,nomeRenegociacao:_})}};I.\u0275fac=function(p){return new(p||I)},I.\u0275prov=A.Yz7({token:I,factory:I.\u0275fac}),(0,s.gn)([(0,w.aU)(c.jn)],I.prototype,"getStudentList",null),(0,s.gn)([(0,w.aU)(c._y)],I.prototype,"getStudentByCpf",null),(0,s.gn)([(0,w.aU)(c.eC)],I.prototype,"setSelectedStudent",null),(0,s.gn)([(0,w.aU)(c.g0)],I.prototype,"getStudentRegistrations",null),(0,s.gn)([(0,w.aU)(c.Xd)],I.prototype,"setSelectedRegistrationToManageByCourseName",null),(0,s.gn)([(0,w.aU)(c.b6)],I.prototype,"setSelectedRegistrationToManage",null),(0,s.gn)([(0,w.aU)(c.V2),(0,w.aU)(c.v3),(0,w.aU)(c.Pd)],I.prototype,"confirmRegistrationAction",null),(0,s.gn)([(0,w.aU)(c.Qv)],I.prototype,"getPortionValue",null),(0,s.gn)([(0,w.aU)(c.yI)],I.prototype,"generateTerm",null),(0,s.gn)([(0,w.aU)(c.$h)],I.prototype,"updateRenegotiationPaymentInfo",null),(0,s.gn)([(0,w.aU)(c.Eh)],I.prototype,"gerarBoletoRenegociacao",null),(0,s.gn)([(0,w.aU)(c.mL)],I.prototype,"resetRenegotiationTotalValue",null),(0,s.gn)([(0,w.aU)(c.nc)],I.prototype,"setNomeRenegociacao",null),(0,s.gn)([(0,w.Qf)()],I,"alunoSelecionado",null),(0,s.gn)([(0,w.Qf)()],I,"matriculaSelecionada",null),(0,s.gn)([(0,w.Qf)()],I,"matriculasDoAluno",null),(0,s.gn)([(0,w.Qf)()],I,"alunos",null),(0,s.gn)([(0,w.Qf)()],I,"parcelas",null),(0,s.gn)([(0,w.Qf)()],I,"quantidadeMesesDisponiveis",null),(0,s.gn)([(0,w.Qf)()],I,"operacaoFinalizada",null),(0,s.gn)([(0,w.Qf)()],I,"valorTotal",null),(0,s.gn)([(0,w.Qf)()],I,"informacoesDePagamento",null),(0,s.gn)([(0,w.Qf)()],I,"idRenegociacaoRecemConfirmada",null),(0,s.gn)([(0,w.Qf)()],I,"taxa",null),(0,s.gn)([(0,w.Qf)()],I,"nomeRenegociacao",null),I=(0,s.gn)([(0,w.ZM)({name:"manageRegistration",defaults:{idRenegociacaoRecemConfirmada:0,alunos:[],alunoSelecionado:null,matriculasDoAluno:[],matriculaSelecionada:null,parcelas:[],quantidadeMesesDisponiveis:[],valorTotal:0,informacoesDePagamento:null,valorMensal:0,nomeRenegociacao:null,operacaoFinalizada:!1,taxa:0}})],I)},64268:(ut,fe,d)=>{"use strict";d.d(fe,{F:()=>p});var s=d(70655),c=d(57492),A=d(18505),w=d(63900),N=d(89867),te=d(94650),I=d(40028);let p=class{constructor(v){this.tutorService=v}static tutorList(v){return v.tutorList}static disciplinasTutorSelecionado(v){return v.disciplinasTutorSelecionado}static disciplinasDaEscola(v){return v.disciplinasDaEscola}static tutorSelecionado(v){return v.tutorSelecionado}getAllTutors(v){return this.tutorService.getAllTutors().pipe((0,A.b)(T=>{v.patchState({...v.getState(),tutorList:T})}))}selectTutorToManageDisciplines(v,T){v.patchState({...v.getState(),tutorSelecionado:T.tutor})}getTutorDisciplinesToManage(v,T){return v.dispatch(new c.Vr).pipe((0,w.w)(()=>this.tutorService.getTutorDisciplinesById(T.tutorId).pipe((0,A.b)(W=>{const P=v.getState().disciplinasDaEscola?.filter(B=>!W?.some(G=>G.escolaDisciplina.id===B.id));v.patchState({...v.getState(),disciplinasTutorSelecionado:W,disciplinasDaEscola:P})}))))}getAllSchoolDisciplines(v){return this.tutorService.getAllSchoolDisciplines().pipe((0,A.b)(T=>{v.patchState({...v.getState(),disciplinasDaEscola:T})}))}addSelectedDisciplinesToSelectedTutor(v,T){const W=v.getState(),G={escolaDisciplinaIds:[...W.disciplinasTutorSelecionado?.map(U=>U.escolaDisciplina.id)||[],...T.disciplinesToSelect],tutorId:W.tutorSelecionado.id};return this.tutorService.linkTutorWithDisciplines(G).pipe((0,w.w)(()=>v.dispatch(new c.Az(W.tutorSelecionado.id))))}unlinkDisciplinesFromTutor(v,{disciplinesToRemove:T}){const W=v.getState(),P=W.disciplinasTutorSelecionado.filter(B=>T.includes(B.escolaDisciplina.id)).map(B=>B.id);return this.tutorService.unlinkTutorDisciplines(P).pipe((0,w.w)(()=>v.dispatch(new c.Az(W.tutorSelecionado.id))))}unlinkAllDisciplinesFromTutor(v){const T=v.getState(),W=T.disciplinasTutorSelecionado.map(P=>P.id);return this.tutorService.unlinkTutorDisciplines(W).pipe((0,w.w)(()=>v.dispatch(new c.Az(T.tutorSelecionado.id))))}};p.\u0275fac=function(v){return new(v||p)(te.LFG(I.R))},p.\u0275prov=te.Yz7({token:p,factory:p.\u0275fac}),(0,s.gn)([(0,N.aU)(c.gc)],p.prototype,"getAllTutors",null),(0,s.gn)([(0,N.aU)(c.o)],p.prototype,"selectTutorToManageDisciplines",null),(0,s.gn)([(0,N.aU)(c.Az)],p.prototype,"getTutorDisciplinesToManage",null),(0,s.gn)([(0,N.aU)(c.Vr)],p.prototype,"getAllSchoolDisciplines",null),(0,s.gn)([(0,N.aU)(c.OC)],p.prototype,"addSelectedDisciplinesToSelectedTutor",null),(0,s.gn)([(0,N.aU)(c.CF)],p.prototype,"unlinkDisciplinesFromTutor",null),(0,s.gn)([(0,N.aU)(c.Lr)],p.prototype,"unlinkAllDisciplinesFromTutor",null),(0,s.gn)([(0,N.Qf)()],p,"tutorList",null),(0,s.gn)([(0,N.Qf)()],p,"disciplinasTutorSelecionado",null),(0,s.gn)([(0,N.Qf)()],p,"disciplinasDaEscola",null),(0,s.gn)([(0,N.Qf)()],p,"tutorSelecionado",null),p=(0,s.gn)([(0,N.ZM)({name:"manageTutorDisciplines",defaults:{tutorList:[],tutorSelecionado:null,disciplinasTutorSelecionado:[],disciplinasDaEscola:[]}})],p)},78885:(ut,fe,d)=>{"use strict";d.d(fe,{H:()=>I});var s=d(70655),c=d(89867),A=d(18505),w=d(84337),N=d(94650),te=d(35439);let I=class{constructor(p){this.personService=p}static usuarios(p){return p.usuarios}static cep(p){return p.cep}static usuarioSelecionado(p){return p.usuarioSelecionado}static modoDeVisualizao(p){return p.modoDeVisualizacao}static perfisUsuarioSelecionado(p){return p.perfisUsuarioSelecionado}static estados(p){return p.estados}static cidades(p){return p.cidades}static bairros(p){return p.bairros}getAllUsers(p){return this.personService.getAllEmployees("",!0).pipe((0,A.b)(_=>{p.patchState({usuarios:_})}))}criarUsuario(p,_){return this.personService.createUser(_.usuario).pipe((0,A.b)(v=>{p.patchState({usuarios:[...p.getState().usuarios,v]})}))}editarUsuario(p,_){return this.personService.updateUser(_.usuarioCriacao).pipe((0,A.b)(v=>{p.patchState({usuarios:[...p.getState().usuarios,v]})}))}validarCepCriacaoUsuario(p,_){return this.personService.getCep(_.cep).pipe((0,A.b)(v=>{p.patchState({cep:v.body})}))}selecUserToEdit(p,_){return this.personService.detailPerson(_.funcionarioFiltro.id).pipe((0,A.b)(v=>{p.patchState({usuarioSelecionado:v,perfisUsuarioSelecionado:_.funcionarioFiltro.perfis})}))}enableEditUserPreviewMode(p){p.patchState({modoDeVisualizacao:!0})}disableEditUserPreviewMode(p){p.patchState({modoDeVisualizacao:!1})}deleteUser(p,_){return this.personService.deleteUser(_.idPessoa)}enableUser(p,_){return this.personService.enableUser(_.idPessoa)}disableUser(p,_){return this.personService.disableUser(_.idPessoa)}getFederations(p){return this.personService.getFederalUnity(1).pipe((0,A.b)(_=>{p.patchState({estados:_})}))}getCitiesByFederation(p,_){return this.personService.getCities(_.ufId).pipe((0,A.b)(v=>{p.patchState({cidades:v})}))}getDistrictByCityId(p,_){return this.personService.getBairrosByIdCidade(_.cidadeId).pipe((0,A.b)(v=>{p.patchState({bairros:v})}))}};I.\u0275fac=function(p){return new(p||I)(N.LFG(te.N))},I.\u0275prov=N.Yz7({token:I,factory:I.\u0275fac}),(0,s.gn)([(0,c.aU)(w.Y_)],I.prototype,"getAllUsers",null),(0,s.gn)([(0,c.aU)(w.t0)],I.prototype,"criarUsuario",null),(0,s.gn)([(0,c.aU)(w.Ig)],I.prototype,"editarUsuario",null),(0,s.gn)([(0,c.aU)(w.A6)],I.prototype,"validarCepCriacaoUsuario",null),(0,s.gn)([(0,c.aU)(w.S_)],I.prototype,"selecUserToEdit",null),(0,s.gn)([(0,c.aU)(w.YT)],I.prototype,"enableEditUserPreviewMode",null),(0,s.gn)([(0,c.aU)(w.xd)],I.prototype,"disableEditUserPreviewMode",null),(0,s.gn)([(0,c.aU)(w.tb)],I.prototype,"deleteUser",null),(0,s.gn)([(0,c.aU)(w.xk)],I.prototype,"enableUser",null),(0,s.gn)([(0,c.aU)(w.K0)],I.prototype,"disableUser",null),(0,s.gn)([(0,c.aU)(w.a4)],I.prototype,"getFederations",null),(0,s.gn)([(0,c.aU)(w.B4)],I.prototype,"getCitiesByFederation",null),(0,s.gn)([(0,c.aU)(w.Pc)],I.prototype,"getDistrictByCityId",null),(0,s.gn)([(0,c.Qf)()],I,"usuarios",null),(0,s.gn)([(0,c.Qf)()],I,"cep",null),(0,s.gn)([(0,c.Qf)()],I,"usuarioSelecionado",null),(0,s.gn)([(0,c.Qf)()],I,"modoDeVisualizao",null),(0,s.gn)([(0,c.Qf)()],I,"perfisUsuarioSelecionado",null),(0,s.gn)([(0,c.Qf)()],I,"estados",null),(0,s.gn)([(0,c.Qf)()],I,"cidades",null),(0,s.gn)([(0,c.Qf)()],I,"bairros",null),I=(0,s.gn)([(0,c.ZM)({name:"manageUsers",defaults:{usuarios:[],cep:null,usuarioSelecionado:null,modoDeVisualizacao:!1,perfisUsuarioSelecionado:[],estados:[],cidades:[],bairros:[]}})],I)},40151:(ut,fe,d)=>{"use strict";d.d(fe,{P:()=>p});var s=d(70655),c=d(89867),A=d(18505),w=d(62390),N=d(68577),te=d(94650),I=d(96049);let p=class{constructor(v,T){this.dashboardService=v,this.matriculaService=T}static getAllMatricula(v){return v.matriculas}static provaEmAdamento(v){return v.provaEmAndamento}static getMatriculaSelecionada(v){return v.matriculaSelecionada}static getInfoCurso(v){return v.curso}static isEveryCourseInvalid(v){return v.isEveryCourseInvalid}getAllMatriculas({getState:v,setState:T},W){return this.matriculaService.getAll(W.idAluno).pipe((0,A.b)(P=>{const B=P.matriculas.every(Z=>(0,N.bY)(Z)),G=P.matriculas.sort((Z,ue)=>Z.statusAcademico.id-ue.statusAcademico.id),U=v();T({...U,matriculas:G,provaEmAndamento:P.provaEmAndamento,isEveryCourseInvalid:B})}))}setMatriculaAtual({getState:v,setState:T},W){return T({...v(),matriculaSelecionada:W.matricula})}getInfoCurso({getState:v,setState:T}){const W=v();return this.dashboardService.getInfoCurso(W.matriculaSelecionada.id).pipe((0,A.b)(P=>T({...W,curso:P})))}manualUpdateDiscipline({getState:v,setState:T},{disciplina:W}){const P=v(),B=[...P.curso.disciplinas],G=B.findIndex(U=>U.id===W.id);return-1!==G&&(B[G]=W),T({...P,curso:{...P.curso,disciplinas:B}})}};p.\u0275fac=function(v){return new(v||p)(te.LFG(I.s),te.LFG(I.s))},p.\u0275prov=te.Yz7({token:p,factory:p.\u0275fac}),(0,s.gn)([(0,c.aU)(w.tr)],p.prototype,"getAllMatriculas",null),(0,s.gn)([(0,c.aU)(w.xi)],p.prototype,"setMatriculaAtual",null),(0,s.gn)([(0,c.aU)(w.Zo)],p.prototype,"getInfoCurso",null),(0,s.gn)([(0,c.aU)(w.uj)],p.prototype,"manualUpdateDiscipline",null),(0,s.gn)([(0,c.Qf)()],p,"getAllMatricula",null),(0,s.gn)([(0,c.Qf)()],p,"provaEmAdamento",null),(0,s.gn)([(0,c.Qf)()],p,"getMatriculaSelecionada",null),(0,s.gn)([(0,c.Qf)()],p,"getInfoCurso",null),(0,s.gn)([(0,c.Qf)()],p,"isEveryCourseInvalid",null),p=(0,s.gn)([(0,c.ZM)({name:"matricula",defaults:{curso:null,matriculas:[],provaEmAndamento:0,matriculaSelecionada:null,isEveryCourseInvalid:!1}})],p)},44989:(ut,fe,d)=>{"use strict";d.d(fe,{X:()=>_});var s=d(70655),c=d(70262),A=d(18505),w=d(78507),N=d(89867),te=d(60515),I=d(94650),b=d(35439);let _=class{constructor(T){this.personService=T}static getUser(T){return T.pessoa}setUserData({getState:T,setState:W}){const P=T();return this.personService.getPersonGeneralInformation().pipe((0,c.K)(()=>(W({...P,hasFetchError:!0}),te.E)),(0,A.b)(B=>{W({...P,pessoa:B,hasFetchError:!1})}))}};_.\u0275fac=function(T){return new(T||_)(I.LFG(b.N))},_.\u0275prov=I.Yz7({token:_,factory:_.\u0275fac}),(0,s.gn)([(0,N.aU)(w.L)],_.prototype,"setUserData",null),(0,s.gn)([(0,N.Qf)()],_,"getUser",null),_=(0,s.gn)([(0,N.ZM)({name:"pessoa",defaults:{pessoa:null,sidenavIcons:[],hasFetchError:!1}})],_)},11570:(ut,fe,d)=>{"use strict";d.d(fe,{z:()=>ee});var s=d(70655),c=d(94650),A=d(89867),w=d(70262),N=d(18505),te=d(50457),I=d(24351),b=d(57359),p=d(54482);const v=(oe,X)=>(oe.push(X),oe);var Y,W=d(54004),P=d(60515),B=d(39646),G=d(44989),U=d(64961),Z=d(26177),ue=d(78915),F=d(61254);let ee=Y=class{constructor(){this.fileGeneratorService=(0,c.f3M)(Z.n),this.organizationService=(0,c.f3M)(F.M),this.store=(0,c.f3M)(A.yh)}static escolasDisponiveis(X){return X.escolasDisponiveis}static titulos(X){return X.titulos}static polosDisponiveis(X){return X.polosDisponiveis}static cursosDisponiveis(X){return X.cursosDisponiveis}static tiposDeCursoDisponiveis(X){return X.tiposDeCursoDisponiveis}static camposRelatorio(X){return X.camposRelatorio.map(([y,k])=>[y,k,X[y]])}static agrupamento(X){return X.agrupamento}static ordenacao(X){return X.ordenacao}static possuiUltimosParametros(X){return X.possuiUltimosParametros}static relatorioBancoDeQuestoes(X){return X.relatorioBancoDeQuestoes}static licoesDisponiveis(X){return X.licoesDisponiveis}static disciplina(X){return X.disciplina}static valoresRelatorio(X){return{escolas:X.escolas,polos:X.polos,cursos:X.cursos,tiposCurso:X.tiposCurso,dataInicio:X.dataInicio,dataFim:X.dataFim}}static getFieldByKey(X){return(0,A.P1)([Y],y=>y[X])}getAllSchoolsToCreateReport({getState:X,setState:y}){const k=X();return this.fileGeneratorService.getSchoolsByUser().pipe((0,w.K)(()=>[]),(0,N.b)($=>{y({...k,escolasDisponiveis:$})}))}getPolosBySchoolIdToCreateReport({getState:X,setState:y},{escolaId:k}){const $=X();return this.fileGeneratorService.getPolosBySchoolId(k).pipe((0,w.K)(()=>[]),(0,N.b)(J=>{y({...$,polosDisponiveis:J})}))}getPolosByMultipleSchoolIdsToCreateReport({getState:X,setState:y},{escolaIds:k}){const $=X();return(0,te.D)(k).pipe((0,I.b)(J=>this.fileGeneratorService.getPolosBySchoolId(J)),function T(){return(0,p.e)((oe,X)=>{(function _(oe,X){return(0,p.e)((0,b.U)(oe,X,arguments.length>=2,!1,!0))})(v,[])(oe).subscribe(X)})}(),(0,N.b)(J=>{const L=J.flat();y({...$,polosDisponiveis:L})}))}getPolosToCreateReportByLearningNetworkId({getState:X,setState:y},{redeId:k}){const $=X();return this.organizationService.getPolosByFilter({redeId:k}).pipe((0,W.U)(J=>J.map(({poloNome:L,poloId:le})=>({poloId:le,poloNomeFantasia:L}))),(0,N.b)(J=>{y({...$,polosDisponiveis:J})}))}getCourseTypesBySchoolIdToCreateReport({getState:X,setState:y},{escolaId:k}){const $=X();return this.fileGeneratorService.getCourseTypesBySchool(k).pipe((0,N.b)(J=>{y({...$,tiposDeCursoDisponiveis:J,escolas:k.toString()})}))}getSchoolCoursesByIdAndType({getState:X,setState:y},{escolaId:k,tipoDeCursoIds:$}){const J=X();return $.length?this.fileGeneratorService.getCoursesBySchoolIdAndType(k,$).pipe((0,N.b)(L=>{y({...J,cursosDisponiveis:L,cursos:""})})):y({...J,cursosDisponiveis:[],cursos:""})}addEntitiesToReport({getState:X,setState:y},{entity:k,ids:$}){const J=X();return $?y({...J,[k]:$.join(",")}):P.E}setReportPeriod({getState:X,setState:y},{dataInicio:k,dataFim:$}){return y({...X(),dataInicio:k,dataFim:$})}setAgrupamentoRelatorio({getState:X,setState:y},{agrupamento:k}){return y({...X(),agrupamento:k})}setOrdenacaoRelatorio({getState:X,setState:y},{ordenacao:k}){y({...X(),ordenacao:{orderByData:"orderByData"===k,orderByPolo:"orderByPolo"===k}})}setReportFieldExibition({getState:X,setState:y},{campo:k,exibir:$}){return y({...X(),[k]:$})}setReportFormat({getState:X,setState:y},{formato:k}){return y({...X(),formato:k})}getLastSavedParams({getState:X,setState:y}){const k=this.store.selectSnapshot(G.X.getUser).id;return this.fileGeneratorService.getLastUsedParamsByUser(k).pipe((0,N.b)(({analitico:$,sintetico:J,orderByData:L,orderByPolo:le,...ce})=>{y({...X(),...ce,agrupamento:$?"analitico":J?"sintetico":null,ordenacao:{orderByData:L,orderByPolo:le},possuiUltimosParametros:!0})}),(0,w.K)(()=>(0,B.of)(null)))}generateReport({getState:X},{tipoDeRelatorio:y,endpoint:k}){const $=X(),J=(0,ue.np)($,y);return this.fileGeneratorService.generateReport({tipoDeRelatorio:y,parametrosRelatorio:J,endpoint:k})}getReportDisciplines({getState:X,setState:y}){return this.fileGeneratorService.getReportDisciplines().pipe((0,N.b)(k=>{const $=X();y({...$,relatorioBancoDeQuestoes:{...$.relatorioBancoDeQuestoes,disciplinas:k}})}))}getReportDisciplineLessonsById({getState:X,setState:y},{disciplinaId:k}){return this.fileGeneratorService.getDisciplineLessonsById(k).pipe((0,N.b)($=>{const J=X();y({...J,disciplina:k.toString(),licoesDisponiveis:$})}))}selectReportDisciplineLesson({getState:X,setState:y},{licoes:k}){return y({...X(),licoes:k.join(",")})}setQuestaoStatus({getState:X,setState:y},{questaoStatus:k}){return y({...X(),questaoStatus:k.toString()})}};ee.\u0275fac=function(X){return new(X||ee)},ee.\u0275prov=c.Yz7({token:ee,factory:ee.\u0275fac}),(0,s.gn)([(0,A.aU)(U.E8)],ee.prototype,"getAllSchoolsToCreateReport",null),(0,s.gn)([(0,A.aU)(U.I6)],ee.prototype,"getPolosBySchoolIdToCreateReport",null),(0,s.gn)([(0,A.aU)(U.MM)],ee.prototype,"getPolosByMultipleSchoolIdsToCreateReport",null),(0,s.gn)([(0,A.aU)(U.TG)],ee.prototype,"getPolosToCreateReportByLearningNetworkId",null),(0,s.gn)([(0,A.aU)(U.Hv)],ee.prototype,"getCourseTypesBySchoolIdToCreateReport",null),(0,s.gn)([(0,A.aU)(U.$9)],ee.prototype,"getSchoolCoursesByIdAndType",null),(0,s.gn)([(0,A.aU)(U.Bm)],ee.prototype,"addEntitiesToReport",null),(0,s.gn)([(0,A.aU)(U.k)],ee.prototype,"setReportPeriod",null),(0,s.gn)([(0,A.aU)(U.HT)],ee.prototype,"setAgrupamentoRelatorio",null),(0,s.gn)([(0,A.aU)(U.eY)],ee.prototype,"setOrdenacaoRelatorio",null),(0,s.gn)([(0,A.aU)(U.$0)],ee.prototype,"setReportFieldExibition",null),(0,s.gn)([(0,A.aU)(U.EN)],ee.prototype,"setReportFormat",null),(0,s.gn)([(0,A.aU)(U.NS)],ee.prototype,"getLastSavedParams",null),(0,s.gn)([(0,A.aU)(U.fD)],ee.prototype,"generateReport",null),(0,s.gn)([(0,A.aU)(U.jv)],ee.prototype,"getReportDisciplines",null),(0,s.gn)([(0,A.aU)(U.TN)],ee.prototype,"getReportDisciplineLessonsById",null),(0,s.gn)([(0,A.aU)(U.Mi)],ee.prototype,"selectReportDisciplineLesson",null),(0,s.gn)([(0,A.aU)(U.Zd)],ee.prototype,"setQuestaoStatus",null),(0,s.gn)([(0,A.Qf)()],ee,"escolasDisponiveis",null),(0,s.gn)([(0,A.Qf)()],ee,"titulos",null),(0,s.gn)([(0,A.Qf)()],ee,"polosDisponiveis",null),(0,s.gn)([(0,A.Qf)()],ee,"cursosDisponiveis",null),(0,s.gn)([(0,A.Qf)()],ee,"tiposDeCursoDisponiveis",null),(0,s.gn)([(0,A.Qf)()],ee,"camposRelatorio",null),(0,s.gn)([(0,A.Qf)()],ee,"agrupamento",null),(0,s.gn)([(0,A.Qf)()],ee,"ordenacao",null),(0,s.gn)([(0,A.Qf)()],ee,"possuiUltimosParametros",null),(0,s.gn)([(0,A.Qf)()],ee,"relatorioBancoDeQuestoes",null),(0,s.gn)([(0,A.Qf)()],ee,"licoesDisponiveis",null),(0,s.gn)([(0,A.Qf)()],ee,"disciplina",null),(0,s.gn)([(0,A.Qf)()],ee,"valoresRelatorio",null),ee=Y=(0,s.gn)([(0,A.ZM)({name:"report",defaults:ue.rn})],ee)},72476:(ut,fe,d)=>{"use strict";d.d(fe,{m:()=>B});var s=d(70655),c=d(89867),A=d(62843),w=d(18505),N=d(54004);const te=G=>"object"==typeof G&&"pessoa"in G?{id:G.pessoa.id,nome:G.pessoa.nome}:{id:G.id,nome:G.nome},I=(G,U)=>G.map(Z=>({...Z,selected:U})),b=(G,U)=>{if(U?.length>0){const Z=U.some(ue=>ue===G.id);return{pessoa:G,selected:Z}}return{pessoa:G,selected:!1}};var p=d(37285),_=d(94650),v=d(10226),T=d(61254),W=d(17545),P=d(35439);let B=class{constructor(U,Z,ue,F){this.groupService=U,this.organizationService=Z,this.cursoService=ue,this.pessoaService=F}static gruposFiltrados(U){return U.gruposFiltrados}static pessoasGrupoSelecionadoFiltradas(U){return U.pessoasGrupoSelecionadoFiltradas}static selectedGroup(U){return U.selectedGroup}static polos(U){return U.polos}static pessoasDisponiveisFiltradas(U){return U.pessoasDisponiveisFiltradas}static cursos(U){return U.cursos}static disciplinas(U){return U.disciplinas}addStudentsToGroup(U){const Z=U.getState(),ue=Z.selectedGroup.id,F=Z.pessoasGrupoSelecionado?.map(ee=>ee.pessoa.id)||[];if(0===Z.studentsToAdd.length)return(0,A._)(()=>new Error("Nenhuma pessoa selecionada"));const Y=[...Z.studentsToAdd,...F];return this.groupService.addStudentsToGroup({pessoasId:Y},ue).pipe((0,w.b)(()=>{U.patchState({studentsToAdd:[]})}))}removeStudentsFromGroup(U){const Z=U.getState();if(0===Z.studentsToRemove.length)return(0,A._)(()=>new Error("Nenhuma pessoa selecionada"));const ue=Z.studentsToRemove.length===Z.pessoasGrupoSelecionado.length?[]:Z.pessoasGrupoSelecionado.filter(F=>!Z.studentsToRemove.includes(F.pessoa.id)).map(F=>F.pessoa.id);return this.groupService.addStudentsToGroup({pessoasId:ue},Z.selectedGroup.id).pipe((0,w.b)(()=>{U.patchState({studentsToRemove:[]})}))}getAllGroups(U){const Z=U.getState();return this.groupService.getAllGroups().pipe((0,w.b)(ue=>{U.patchState({...Z,searchedGroups:ue,gruposFiltrados:ue})}))}filtrarGrupo({getState:U,patchState:Z},ue){const{nome:F,disciplina:Y,polo:ee,curso:oe}=ue.params,{searchedGroups:X}=U();return Z({gruposFiltrados:X.filter(k=>(!F||k?.nome.toLowerCase().includes(F.toLowerCase()))&&(!Y||k?.disciplina?.id===Y)&&(!ee||k?.polo?.id===ee)&&(!oe||k?.curso?.id===oe))})}createGroup(U,{grupoCriacao:Z}){return this.groupService.createGroup(Z)}deleteGroup(U,{idGrupo:Z}){return this.groupService.deleteGroup(Z)}updateGroup(U,{payload:Z}){return this.groupService.updateGroup(Z)}selectGroupToEdit(U,Z){const ue=U.getState();return U.patchState({...ue,selectedGroup:Z.grupo})}getAllStudentsFromGroup(U,Z){const ue=U.getState();return this.groupService.getAllStudentsFromGroup(Z.grupoId).pipe((0,N.U)(F=>{if(!F)return{pessoasGrupoSelecionado:[],pessoasGrupoSelecionadoFiltradas:[],pessoasDisponiveisFiltradas:ue.pessoasDisponiveis?.map(oe=>({pessoa:oe,selected:!1}))};const Y=F.map(te).map(oe=>({pessoa:oe,selected:!1})),ee=ue.pessoasDisponiveis.filter(oe=>!Y?.some(X=>X.pessoa.id===oe.id)).map(oe=>({pessoa:oe,selected:!1}));return{pessoasGrupoSelecionado:F,pessoasGrupoSelecionadoFiltradas:Y,pessoasDisponiveisFiltradas:ee}}),(0,w.b)(({pessoasGrupoSelecionado:F,pessoasGrupoSelecionadoFiltradas:Y,pessoasDisponiveisFiltradas:ee})=>{U.patchState({...ue,pessoasGrupoSelecionado:F,pessoasGrupoSelecionadoFiltradas:Y,pessoasDisponiveisFiltradas:ee})}))}getAllPolos(U){const Z=U.getState();return this.organizationService.getAllPolos().pipe((0,w.b)(ue=>{U.patchState({...Z,polos:ue})}))}getAllCursosToCreateGroup(U){const Z=U.getState();return this.cursoService.getCoursesByFilters().pipe((0,w.b)(ue=>{U.patchState({...Z,cursos:ue})}))}getAllCourseDisciplinesToCreateGroup(U,Z){const ue=U.getState();return this.cursoService.getAllCourseDisciplines(Z.cursoId).pipe((0,w.b)(F=>{U.patchState({...ue,disciplinas:F})}))}buscaPorCursoDisciplinaPolo(U,Z){const ue=U.getState(),F={...Z.filtro.cursoId&&{cursoId:Z.filtro.cursoId},...Z.filtro.disciplinaId&&{disciplinaId:Z.filtro.disciplinaId},...Z.filtro.poloId&&{poloId:Z.filtro.poloId}};return this.pessoaService.getPersonsByFilters(F).pipe((0,w.b)(Y=>{const ee=Y?.map(te)?.map(oe=>({pessoa:oe,selected:!1}));U.patchState({...ue,pessoasDisponiveis:Y,pessoasDisponiveisFiltradas:ee})}))}activateGroup(U,Z){return this.groupService.activateGroup(Z.grupoId)}deactivateGroup(U,Z){return this.groupService.deactivateGroup(Z.grupoId)}filtrarPessoasDisponiveis(U,Z){const ue=U.getState(),F=ue.pessoasDisponiveis.filter(Y=>Y.nome.toLowerCase().includes(Z.nome.toLowerCase())).map(te).filter(Y=>!ue.pessoasGrupoSelecionado.some(ee=>ee.pessoa.id===Y.id)).map(Y=>({pessoa:Y,selected:!1}));U.patchState({...ue,pessoasDisponiveisFiltradas:F})}filtrarPessoasGrupoSelecionado(U,Z){const ue=U.getState(),F=Z.nome?ue.pessoasGrupoSelecionado.map(te).filter(Y=>Y.nome.toLowerCase().includes(Z.nome.toLowerCase())).map(Y=>b(Y,ue.studentsToRemove)):ue.pessoasGrupoSelecionado.map(te).map(Y=>b(Y,ue.studentsToRemove));U.patchState({...ue,pessoasGrupoSelecionadoFiltradas:F})}selectActiveStudent(U,Z){const ue=U.getState(),Y=[...ue.pessoasDisponiveis].find(X=>X.id===Z.id),[ee,oe]=Z.checked?[ue.pessoasDisponiveisFiltradas.map(X=>X.pessoa.id===Y.id?{...X,selected:!0}:X),[...ue.studentsToAdd,Y.id]]:[ue.pessoasDisponiveisFiltradas.map(X=>X.pessoa.id===Y.id?{...X,selected:!1}:X),ue.studentsToAdd.filter(X=>X!==Y.id)];U.patchState({...ue,studentsToAdd:oe,pessoasDisponiveisFiltradas:ee})}selectGroupStudent(U,Z){const ue=U.getState(),Y=[...ue.pessoasGrupoSelecionado].find(X=>X.pessoa.id===Z.id),[ee,oe]=Z.checked?[ue.pessoasGrupoSelecionadoFiltradas.map(X=>X.pessoa.id===Y.pessoa.id?{...X,selected:!0}:X),[...ue.studentsToRemove,Y.pessoa.id]]:[ue.pessoasGrupoSelecionadoFiltradas.map(X=>X.pessoa.id===Y.pessoa.id?{...X,selected:!1}:X),ue.studentsToRemove.filter(X=>X!==Y.pessoa.id)];U.patchState({...ue,studentsToRemove:oe,pessoasGrupoSelecionadoFiltradas:ee})}getActualGroupData(U){const Z=U.getState();return this.groupService.getGroupById(Z.selectedGroup.id).pipe((0,w.b)(F=>{U.patchState({...Z,selectedGroup:F})}))}addAllStudentsToGroup(U,Z){const ue=U.getState(),[F,Y]=Z.selectAll?[ue.pessoasDisponiveis.map(ee=>ee.id),I(ue.pessoasDisponiveisFiltradas,!0)]:[[],I(ue.pessoasDisponiveisFiltradas,!1)];U.patchState({...ue,pessoasDisponiveisFiltradas:Y,studentsToAdd:F})}removeAllStudentsFromGroup(U,Z){const ue=U.getState(),[F,Y]=Z.selectAll?[ue.pessoasGrupoSelecionado.map(ee=>ee.pessoa.id),I(ue.pessoasGrupoSelecionadoFiltradas,!0)]:[[],I(ue.pessoasGrupoSelecionadoFiltradas,!1)];U.patchState({...ue,pessoasGrupoSelecionadoFiltradas:Y,studentsToRemove:F})}};B.\u0275fac=function(U){return new(U||B)(_.LFG(v.l),_.LFG(T.M),_.LFG(W.Y),_.LFG(P.N))},B.\u0275prov=_.Yz7({token:B,factory:B.\u0275fac}),(0,s.gn)([(0,c.aU)(p.ZP)],B.prototype,"addStudentsToGroup",null),(0,s.gn)([(0,c.aU)(p.p2)],B.prototype,"removeStudentsFromGroup",null),(0,s.gn)([(0,c.aU)(p._n)],B.prototype,"getAllGroups",null),(0,s.gn)([(0,c.aU)(p.TG)],B.prototype,"filtrarGrupo",null),(0,s.gn)([(0,c.aU)(p.bY)],B.prototype,"createGroup",null),(0,s.gn)([(0,c.aU)(p.co)],B.prototype,"deleteGroup",null),(0,s.gn)([(0,c.aU)(p.bn)],B.prototype,"updateGroup",null),(0,s.gn)([(0,c.aU)(p.JP)],B.prototype,"selectGroupToEdit",null),(0,s.gn)([(0,c.aU)(p.Ng)],B.prototype,"getAllStudentsFromGroup",null),(0,s.gn)([(0,c.aU)(p.jx)],B.prototype,"getAllPolos",null),(0,s.gn)([(0,c.aU)(p.Zs)],B.prototype,"getAllCursosToCreateGroup",null),(0,s.gn)([(0,c.aU)(p.bV)],B.prototype,"getAllCourseDisciplinesToCreateGroup",null),(0,s.gn)([(0,c.aU)(p.F4)],B.prototype,"buscaPorCursoDisciplinaPolo",null),(0,s.gn)([(0,c.aU)(p.Vm)],B.prototype,"activateGroup",null),(0,s.gn)([(0,c.aU)(p.tb)],B.prototype,"deactivateGroup",null),(0,s.gn)([(0,c.aU)(p.x7)],B.prototype,"filtrarPessoasDisponiveis",null),(0,s.gn)([(0,c.aU)(p.qr)],B.prototype,"filtrarPessoasGrupoSelecionado",null),(0,s.gn)([(0,c.aU)(p.an)],B.prototype,"selectActiveStudent",null),(0,s.gn)([(0,c.aU)(p.LJ)],B.prototype,"selectGroupStudent",null),(0,s.gn)([(0,c.aU)(p.v0)],B.prototype,"getActualGroupData",null),(0,s.gn)([(0,c.aU)(p.oD)],B.prototype,"addAllStudentsToGroup",null),(0,s.gn)([(0,c.aU)(p.Sc)],B.prototype,"removeAllStudentsFromGroup",null),(0,s.gn)([(0,c.Qf)()],B,"gruposFiltrados",null),(0,s.gn)([(0,c.Qf)()],B,"pessoasGrupoSelecionadoFiltradas",null),(0,s.gn)([(0,c.Qf)()],B,"selectedGroup",null),(0,s.gn)([(0,c.Qf)()],B,"polos",null),(0,s.gn)([(0,c.Qf)()],B,"pessoasDisponiveisFiltradas",null),(0,s.gn)([(0,c.Qf)()],B,"cursos",null),(0,s.gn)([(0,c.Qf)()],B,"disciplinas",null),B=(0,s.gn)([(0,c.ZM)({name:"studentGroup",defaults:{searchedGroups:[],gruposFiltrados:[],selectedGroup:null,pessoasGrupoSelecionado:[],polos:[],cursos:[],pessoasDisponiveis:[],disciplinas:[],pessoasGrupoSelecionadoFiltradas:[],pessoasDisponiveisFiltradas:[],studentsToAdd:[],studentsToRemove:[]}})],B)},25379:(ut,fe,d)=>{"use strict";d.d(fe,{MB:()=>w,Z3:()=>_,b5:()=>v,hW:()=>p,xC:()=>A}),d(13028);const A=(T,W)=>{if(T?.length&&W?.length)return T.some(P=>W.includes(P))},w=(T,W=1)=>T<W?[]:Array.from({length:T}).map((P,B)=>B+1),p=(T,W,P)=>T.map((B,G)=>G===W?{...B,numero:T[P].numero}:G===P?{...B,numero:T[W].numero}:B).sort((B,G)=>B.numero-G.numero),_=T=>{const B=(new DOMParser).parseFromString(T,"text/html").querySelectorAll('img[src^="data:image"]'),G=[];return B.forEach(U=>{const Z=U.getAttribute("src");if(Z){const[ue,F]=Z.split(","),Y=ue.match(/:(.*?);/);if(Y){const ee=Y[1],oe=atob(F),X=new Uint8Array(oe.length);for(let k=0;k<oe.length;k++)X[k]=oe.charCodeAt(k);const y=new File([X],"image.png",{type:ee});G.push(y)}}}),G},v=(T,W)=>{const B=(new DOMParser).parseFromString(T,"text/html"),G=B.querySelectorAll('img[src^="data:image"]');return console.log("Tags length",G.length),G[0].src=W,B.body.innerHTML}},68577:(ut,fe,d)=>{"use strict";d.d(fe,{bY:()=>N,KC:()=>I,FW:()=>te});var s=d(13355),c=d(60013);const A=[c.n.CONCLUIDO,c.n.EXPIRADO,c.n.TRANCADO,c.n.CANCELADO,c.n.MATRICULANDO,c.n.JUBILADO],w=[s.n.INADIMPLENTE,s.n.AGUARDANDO_ENTRADA],N=b=>te(b.statusAcademico)||I(b.statusFinanceiro),te=b=>A.includes(b.id),I=b=>w.includes(b.id)},54364:(ut,fe,d)=>{"use strict";d.d(fe,{D6:()=>c,LX:()=>b,aV:()=>te,bD:()=>w,hE:()=>_,lB:()=>s,oC:()=>N});const s=["Janeiro","Fevereiro","Mar\xe7o","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],c=["segunda","terca","quarta","quinta","sexta","sabado","domingo"],A=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]],w=({date:W,formatStr:P})=>{let B=Number(W||0);return A.reduce((G,[U,Z])=>{if(-1!==G.indexOf(U)){const ue=Math.floor(B/Z);return B-=ue*Z,G.replace(new RegExp(`${U}+`,"g"),F=>ue.toString().padStart(F.length,"0"))}return G},P)},N=()=>{let P=(new Date).getFullYear();const B=[];for(let G=0;G<=10;G++)B.push(P),P++;return B},te=()=>{const W=new Date;return W.setFullYear(W.getFullYear()+1),W.toISOString()},b=W=>{const P=new Date(W);return`${P.getDate()}/${P.getMonth()+1}/${P.getFullYear()}`},_=W=>W.reduce((W=>P=>new Date(W)>new Date(P)?W:P)(W[1]))},19430:(ut,fe,d)=>{"use strict";d.d(fe,{Bq:()=>A,GV:()=>w,oV:()=>s,xs:()=>c});const s=N=>Object.keys(N.controls).filter(te=>N.controls[te].errors).length,c=N=>({ddd:{numero:Number(N.slice(0,2))},numero:N.slice(2,11)}),A=N=>`${N?.ddd?.numero||""}${N?.numero||""}`,w=N=>({model:N,dirty:!1,status:"INVALID",errors:{}})},48559:(ut,fe,d)=>{"use strict";d.d(fe,{D$:()=>I,N8:()=>P,Si:()=>p,Us:()=>_,_A:()=>N,iw:()=>v});var s=d(80529),c=d(48083);const w=d(52925).b,N=B=>Object.keys(B).reduce((G,U)=>G.append(U,B[U]),new s.LE),I=B=>Object.entries(B).reduce((G,[U,Z])=>(G.append(U,Z),G),new FormData),p=(B,G,U)=>G.reduce((Z,ue)=>Z.append(U,ue),B),_=B=>{P(`/${w.LIVRO_DIDATICO}?livroId=${B}`,"_blank","width=2560,height=1080")},v=(B,G)=>{const U=G;return{...B,error:{...B.error,message:U}}},P=(B,G,U)=>(0,c.N)()?(B=>window.location.replace(B))(B):((B,G,U)=>window.open(B,G,U))(B,G,U)},48083:(ut,fe,d)=>{"use strict";d.d(fe,{N:()=>c,l:()=>s});const s=A=>{c&&window.ReactNativeWebView.postMessage(JSON.stringify(A))},c=()=>navigator.userAgent.includes("wv")},78174:(ut,fe,d)=>{"use strict";d.d(fe,{d:()=>b});var s=d(5963),c=d(22940),A=d(18505),w=d(63900),N=d(22529),te=d(13103);const b=(p,_,v=1/0,T=!1)=>W=>{const P=(0,s.H)(0,p).pipe((0,c.R)(B=>++B,0),(0,A.b)((p=>_=>{if(_>p)throw new Error("Exceeded maxAttempts")})(v)),(0,w.w)(()=>W),(0,N.o)(_,!0));return T?P.pipe((0,te.Z)()):P}},92340:(ut,fe,d)=>{"use strict";d.d(fe,{N:()=>L});const s=`${window.location.protocol}//api.discent.com.br/api`,A=window.location.hostname,L={test:!1,production:!0,API:{AUTH:`${s}/lms-api-auth`,ORGANIZACAO:`${s}/lms-api-organizacao`,PESSOA:`${s}/lms-api-pessoa`,DASHBOARD:`${s}/lms-api-dashboard-aluno`,MENSAGEM:`${s}/lms-api-mensagem`,LIVRO:`${s}/lms-api-livro`,FILEGENERATOR:`${s}/lms-api-file-generator`,VIDEOAULA:`${s}/lms-api-video-aula`,TEST:`${s}/lms-api-prova`,MATRICULA:`${s}/lms-api-matricula`,MATRICULA_DISCIPLINA:`${s}/lms-api-matricula-disciplina`,ATIVIDADE_CALENDARIO:`${s}/lms-api-atividade-de-calendario`,AIM:`${s}/lms-api-aim`,PAYMENT:`${s}/lms-api-pagamento`,AVALIACAO_REACAO:`${s}/lms-api-avaliacao-reacao`,ALERTA:`${s}/lms-api-alerta`,TUTOR:`${s}/lms-api-tutor`,BASE:`${window.location.origin}`,BASE_AVANT:"http://avant-teste.grupont.com.br",AVANT_PROD:"http://avant.grupont.com.br",GRUPO:`${s}/lms-api-grupo`,CURSO:`${s}/lms-api-curso`,CALENDARIO_ACADEMICO:`${s}/lms-api-calendario-academico`},dominio:A,analyticsCode:"UA-201080177-4"}},27810:(ut,fe,d)=>{"use strict";var s=d(11481),c=d(94650),A=d(36895),w=d(80529);const N=void 0,I=["pt",[["AM","PM"],N,N],N,[["D","S","T","Q","Q","S","S"],["dom.","seg.","ter.","qua.","qui.","sex.","s\xe1b."],["domingo","segunda-feira","ter\xe7a-feira","quarta-feira","quinta-feira","sexta-feira","s\xe1bado"],["dom.","seg.","ter.","qua.","qui.","sex.","s\xe1b."]],N,[["J","F","M","A","M","J","J","A","S","O","N","D"],["jan.","fev.","mar.","abr.","mai.","jun.","jul.","ago.","set.","out.","nov.","dez."],["janeiro","fevereiro","mar\xe7o","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]],N,[["a.C.","d.C."],N,["antes de Cristo","depois de Cristo"]],0,[6,0],["dd/MM/y","d 'de' MMM 'de' y","d 'de' MMMM 'de' y","EEEE, d 'de' MMMM 'de' y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}",N,N,N],[",",".",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4\xa0#,##0.00","#E0"],"BRL","R$","Real brasileiro",{AUD:["AU$","$"],BYN:[N,"\u0440."],JPY:["JP\xa5","\xa5"],PHP:[N,"\u20b1"],PTE:["Esc."],RON:[N,"L"],SYP:[N,"S\xa3"],THB:["\u0e3f"],TWD:["NT$"],USD:["US$","$"]},"ltr",function te(m){const h=Math.floor(Math.abs(m)),D=m.toString().replace(/^[^.]*\.?/,"").length,K=parseInt(m.toString().replace(/^[^e]*(e([-+]?\d+))?/,"$2"))||0;return h===Math.floor(h)&&h>=0&&h<=1?1:0===K&&0!==h&&h%1e6==0&&0===D||!(K>=0&&K<=5)?4:5}];var b=d(65938),p=d(37340);function v(m){return new c.vHH(3e3,!1)}function sn(){return typeof window<"u"&&typeof window.document<"u"}function nn(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function Pt(m){switch(m.length){case 0:return new p.ZN;case 1:return m[0];default:return new p.ZE(m)}}function wt(m,u,h,D,K=new Map,ie=new Map){const Ce=[],Fe=[];let pt=-1,Rt=null;if(D.forEach(lt=>{const qt=lt.get("offset"),rn=qt==pt,Zt=rn&&Rt||new Map;lt.forEach((on,wn)=>{let xn=wn,Vn=on;if("offset"!==wn)switch(xn=u.normalizePropertyName(xn,Ce),Vn){case p.k1:Vn=K.get(wn);break;case p.l3:Vn=ie.get(wn);break;default:Vn=u.normalizeStyleValue(wn,xn,Vn,Ce)}Zt.set(xn,Vn)}),rn||Fe.push(Zt),Rt=Zt,pt=qt}),Ce.length)throw function $t(m){return new c.vHH(3502,!1)}();return Fe}function Je(m,u,h,D){switch(u){case"start":m.onStart(()=>D(h&&_t(h,"start",m)));break;case"done":m.onDone(()=>D(h&&_t(h,"done",m)));break;case"destroy":m.onDestroy(()=>D(h&&_t(h,"destroy",m)))}}function _t(m,u,h){const ie=Tt(m.element,m.triggerName,m.fromState,m.toState,u||m.phaseName,h.totalTime??m.totalTime,!!h.disabled),Ce=m._data;return null!=Ce&&(ie._data=Ce),ie}function Tt(m,u,h,D,K="",ie=0,Ce){return{element:m,triggerName:u,fromState:h,toState:D,phaseName:K,totalTime:ie,disabled:!!Ce}}function Wt(m,u,h){let D=m.get(u);return D||m.set(u,D=h),D}function Dt(m){const u=m.indexOf(":");return[m.substring(1,u),m.slice(u+1)]}let pe=(m,u)=>!1,Pe=(m,u,h)=>[],ot=null;function vt(m){const u=m.parentNode||m.host;return u===ot?null:u}(nn()||typeof Element<"u")&&(sn()?(ot=(()=>document.documentElement)(),pe=(m,u)=>{for(;u;){if(u===m)return!0;u=vt(u)}return!1}):pe=(m,u)=>m.contains(u),Pe=(m,u,h)=>{if(h)return Array.from(m.querySelectorAll(u));const D=m.querySelector(u);return D?[D]:[]});let Le=null,mt=!1;const xe=pe,Re=Pe;let Mt=(()=>{class m{validateStyleProperty(h){return function Ct(m){Le||(Le=function qe(){return typeof document<"u"?document.body:null}()||{},mt=!!Le.style&&"WebkitAppearance"in Le.style);let u=!0;return Le.style&&!function Ie(m){return"ebkit"==m.substring(1,6)}(m)&&(u=m in Le.style,!u&&mt&&(u="Webkit"+m.charAt(0).toUpperCase()+m.slice(1)in Le.style)),u}(h)}matchesElement(h,D){return!1}containsElement(h,D){return xe(h,D)}getParentElement(h){return vt(h)}query(h,D,K){return Re(h,D,K)}computeStyle(h,D,K){return K||""}animate(h,D,K,ie,Ce,Fe=[],pt){return new p.ZN(K,ie)}}return m.\u0275fac=function(h){return new(h||m)},m.\u0275prov=c.Yz7({token:m,factory:m.\u0275fac}),m})(),un=(()=>{class m{}return m.NOOP=new Mt,m})();const Ge="ng-enter",Oe="ng-leave",Ue="ng-trigger",be=".ng-trigger",at="ng-animating",At=".ng-animating";function Yt(m){if("number"==typeof m)return m;const u=m.match(/^(-?[\.\d]+)(m?s)/);return!u||u.length<2?0:En(parseFloat(u[1]),u[2])}function En(m,u){return"s"===u?1e3*m:m}function Ln(m,u,h){return m.hasOwnProperty("duration")?m:function Hr(m,u,h){let K,ie=0,Ce="";if("string"==typeof m){const Fe=m.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Fe)return u.push(v()),{duration:0,delay:0,easing:""};K=En(parseFloat(Fe[1]),Fe[2]);const pt=Fe[3];null!=pt&&(ie=En(parseFloat(pt),Fe[4]));const Rt=Fe[5];Rt&&(Ce=Rt)}else K=m;if(!h){let Fe=!1,pt=u.length;K<0&&(u.push(function T(){return new c.vHH(3100,!1)}()),Fe=!0),ie<0&&(u.push(function W(){return new c.vHH(3101,!1)}()),Fe=!0),Fe&&u.splice(pt,0,v())}return{duration:K,delay:ie,easing:Ce}}(m,u,h)}function On(m,u={}){return Object.keys(m).forEach(h=>{u[h]=m[h]}),u}function Er(m){const u=new Map;return Object.keys(m).forEach(h=>{u.set(h,m[h])}),u}function jn(m,u=new Map,h){if(h)for(let[D,K]of h)u.set(D,K);for(let[D,K]of m)u.set(D,K);return u}function nr(m,u,h){return h?u+":"+h+";":""}function Ke(m){let u="";for(let h=0;h<m.style.length;h++){const D=m.style.item(h);u+=nr(0,D,m.style.getPropertyValue(D))}for(const h in m.style)m.style.hasOwnProperty(h)&&!h.startsWith("_")&&(u+=nr(0,$r(h),m.style[h]));m.setAttribute("style",u)}function Ze(m,u,h){m.style&&(u.forEach((D,K)=>{const ie=yn(K);h&&!h.has(K)&&h.set(K,m.style[ie]),m.style[ie]=D}),nn()&&Ke(m))}function we(m,u){m.style&&(u.forEach((h,D)=>{const K=yn(D);m.style[K]=""}),nn()&&Ke(m))}function gt(m){return Array.isArray(m)?1==m.length?m[0]:(0,p.vP)(m):m}const ln=new RegExp("{{\\s*(.+?)\\s*}}","g");function pn(m){let u=[];if("string"==typeof m){let h;for(;h=ln.exec(m);)u.push(h[1]);ln.lastIndex=0}return u}function gn(m,u,h){const D=m.toString(),K=D.replace(ln,(ie,Ce)=>{let Fe=u[Ce];return null==Fe&&(h.push(function B(m){return new c.vHH(3003,!1)}()),Fe=""),Fe.toString()});return K==D?m:K}function Jn(m){const u=[];let h=m.next();for(;!h.done;)u.push(h.value),h=m.next();return u}const _r=/-+([a-z0-9])/g;function yn(m){return m.replace(_r,(...u)=>u[1].toUpperCase())}function $r(m){return m.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function tr(m,u,h){switch(u.type){case 7:return m.visitTrigger(u,h);case 0:return m.visitState(u,h);case 1:return m.visitTransition(u,h);case 2:return m.visitSequence(u,h);case 3:return m.visitGroup(u,h);case 4:return m.visitAnimate(u,h);case 5:return m.visitKeyframes(u,h);case 6:return m.visitStyle(u,h);case 8:return m.visitReference(u,h);case 9:return m.visitAnimateChild(u,h);case 10:return m.visitAnimateRef(u,h);case 11:return m.visitQuery(u,h);case 12:return m.visitStagger(u,h);default:throw function G(m){return new c.vHH(3004,!1)}()}}function Cr(m,u){return window.getComputedStyle(m)[u]}function cr(m,u){const h=[];return"string"==typeof m?m.split(/\s*,\s*/).forEach(D=>function di(m,u,h){if(":"==m[0]){const pt=function Kr(m,u){switch(m){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(h,D)=>parseFloat(D)>parseFloat(h);case":decrement":return(h,D)=>parseFloat(D)<parseFloat(h);default:return u.push(function ce(m){return new c.vHH(3016,!1)}()),"* => *"}}(m,h);if("function"==typeof pt)return void u.push(pt);m=pt}const D=m.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==D||D.length<4)return h.push(function le(m){return new c.vHH(3015,!1)}()),u;const K=D[1],ie=D[2],Ce=D[3];u.push(ir(K,Ce));"<"==ie[0]&&!("*"==K&&"*"==Ce)&&u.push(ir(Ce,K))}(D,h,u)):h.push(m),h}const ur=new Set(["true","1"]),bn=new Set(["false","0"]);function ir(m,u){const h=ur.has(m)||bn.has(m),D=ur.has(u)||bn.has(u);return(K,ie)=>{let Ce="*"==m||m==K,Fe="*"==u||u==ie;return!Ce&&h&&"boolean"==typeof K&&(Ce=K?ur.has(m):bn.has(m)),!Fe&&D&&"boolean"==typeof ie&&(Fe=ie?ur.has(u):bn.has(u)),Ce&&Fe}}const Sr=new RegExp("s*:selfs*,?","g");function xr(m,u,h,D){return new ri(m).build(u,h,D)}class ri{constructor(u){this._driver=u}build(u,h,D){const K=new Yi(h);return this._resetContextStyleTimingState(K),tr(this,gt(u),K)}_resetContextStyleTimingState(u){u.currentQuerySelector="",u.collectedStyles=new Map,u.collectedStyles.set("",new Map),u.currentTime=0}visitTrigger(u,h){let D=h.queryCount=0,K=h.depCount=0;const ie=[],Ce=[];return"@"==u.name.charAt(0)&&h.errors.push(function Z(){return new c.vHH(3006,!1)}()),u.definitions.forEach(Fe=>{if(this._resetContextStyleTimingState(h),0==Fe.type){const pt=Fe,Rt=pt.name;Rt.toString().split(/\s*,\s*/).forEach(lt=>{pt.name=lt,ie.push(this.visitState(pt,h))}),pt.name=Rt}else if(1==Fe.type){const pt=this.visitTransition(Fe,h);D+=pt.queryCount,K+=pt.depCount,Ce.push(pt)}else h.errors.push(function ue(){return new c.vHH(3007,!1)}())}),{type:7,name:u.name,states:ie,transitions:Ce,queryCount:D,depCount:K,options:null}}visitState(u,h){const D=this.visitStyle(u.styles,h),K=u.options&&u.options.params||null;if(D.containsDynamicStyles){const ie=new Set,Ce=K||{};D.styles.forEach(Fe=>{Fe instanceof Map&&Fe.forEach(pt=>{pn(pt).forEach(Rt=>{Ce.hasOwnProperty(Rt)||ie.add(Rt)})})}),ie.size&&(Jn(ie.values()),h.errors.push(function F(m,u){return new c.vHH(3008,!1)}()))}return{type:0,name:u.name,style:D,options:K?{params:K}:null}}visitTransition(u,h){h.queryCount=0,h.depCount=0;const D=tr(this,gt(u.animation),h);return{type:1,matchers:cr(u.expr,h.errors),animation:D,queryCount:h.queryCount,depCount:h.depCount,options:hi(u.options)}}visitSequence(u,h){return{type:2,steps:u.steps.map(D=>tr(this,D,h)),options:hi(u.options)}}visitGroup(u,h){const D=h.currentTime;let K=0;const ie=u.steps.map(Ce=>{h.currentTime=D;const Fe=tr(this,Ce,h);return K=Math.max(K,h.currentTime),Fe});return h.currentTime=K,{type:3,steps:ie,options:hi(u.options)}}visitAnimate(u,h){const D=function Mi(m,u){if(m.hasOwnProperty("duration"))return m;if("number"==typeof m)return ve(Ln(m,u).duration,0,"");const h=m;if(h.split(/\s+/).some(ie=>"{"==ie.charAt(0)&&"{"==ie.charAt(1))){const ie=ve(0,0,"");return ie.dynamic=!0,ie.strValue=h,ie}const K=Ln(h,u);return ve(K.duration,K.delay,K.easing)}(u.timings,h.errors);h.currentAnimateTimings=D;let K,ie=u.styles?u.styles:(0,p.oB)({});if(5==ie.type)K=this.visitKeyframes(ie,h);else{let Ce=u.styles,Fe=!1;if(!Ce){Fe=!0;const Rt={};D.easing&&(Rt.easing=D.easing),Ce=(0,p.oB)(Rt)}h.currentTime+=D.duration+D.delay;const pt=this.visitStyle(Ce,h);pt.isEmptyStep=Fe,K=pt}return h.currentAnimateTimings=null,{type:4,timings:D,style:K,options:null}}visitStyle(u,h){const D=this._makeStyleAst(u,h);return this._validateStyleAst(D,h),D}_makeStyleAst(u,h){const D=[],K=Array.isArray(u.styles)?u.styles:[u.styles];for(let Fe of K)"string"==typeof Fe?Fe===p.l3?D.push(Fe):h.errors.push(new c.vHH(3002,!1)):D.push(Er(Fe));let ie=!1,Ce=null;return D.forEach(Fe=>{if(Fe instanceof Map&&(Fe.has("easing")&&(Ce=Fe.get("easing"),Fe.delete("easing")),!ie))for(let pt of Fe.values())if(pt.toString().indexOf("{{")>=0){ie=!0;break}}),{type:6,styles:D,easing:Ce,offset:u.offset,containsDynamicStyles:ie,options:null}}_validateStyleAst(u,h){const D=h.currentAnimateTimings;let K=h.currentTime,ie=h.currentTime;D&&ie>0&&(ie-=D.duration+D.delay),u.styles.forEach(Ce=>{"string"!=typeof Ce&&Ce.forEach((Fe,pt)=>{const Rt=h.collectedStyles.get(h.currentQuerySelector),lt=Rt.get(pt);let qt=!0;lt&&(ie!=K&&ie>=lt.startTime&&K<=lt.endTime&&(h.errors.push(function oe(m,u,h,D,K){return new c.vHH(3010,!1)}()),qt=!1),ie=lt.startTime),qt&&Rt.set(pt,{startTime:ie,endTime:K}),h.options&&function Bt(m,u,h){const D=u.params||{},K=pn(m);K.length&&K.forEach(ie=>{D.hasOwnProperty(ie)||h.push(function P(m){return new c.vHH(3001,!1)}())})}(Fe,h.options,h.errors)})})}visitKeyframes(u,h){const D={type:5,styles:[],options:null};if(!h.currentAnimateTimings)return h.errors.push(function X(){return new c.vHH(3011,!1)}()),D;let ie=0;const Ce=[];let Fe=!1,pt=!1,Rt=0;const lt=u.steps.map(Vn=>{const br=this._makeStyleAst(Vn,h);let Vr=null!=br.offset?br.offset:function _i(m){if("string"==typeof m)return null;let u=null;if(Array.isArray(m))m.forEach(h=>{if(h instanceof Map&&h.has("offset")){const D=h;u=parseFloat(D.get("offset")),D.delete("offset")}});else if(m instanceof Map&&m.has("offset")){const h=m;u=parseFloat(h.get("offset")),h.delete("offset")}return u}(br.styles),kr=0;return null!=Vr&&(ie++,kr=br.offset=Vr),pt=pt||kr<0||kr>1,Fe=Fe||kr<Rt,Rt=kr,Ce.push(kr),br});pt&&h.errors.push(function y(){return new c.vHH(3012,!1)}()),Fe&&h.errors.push(function k(){return new c.vHH(3200,!1)}());const qt=u.steps.length;let rn=0;ie>0&&ie<qt?h.errors.push(function $(){return new c.vHH(3202,!1)}()):0==ie&&(rn=1/(qt-1));const Zt=qt-1,on=h.currentTime,wn=h.currentAnimateTimings,xn=wn.duration;return lt.forEach((Vn,br)=>{const Vr=rn>0?br==Zt?1:rn*br:Ce[br],kr=Vr*xn;h.currentTime=on+wn.delay+kr,wn.duration=kr,this._validateStyleAst(Vn,h),Vn.offset=Vr,D.styles.push(Vn)}),D}visitReference(u,h){return{type:8,animation:tr(this,gt(u.animation),h),options:hi(u.options)}}visitAnimateChild(u,h){return h.depCount++,{type:9,options:hi(u.options)}}visitAnimateRef(u,h){return{type:10,animation:this.visitReference(u.animation,h),options:hi(u.options)}}visitQuery(u,h){const D=h.currentQuerySelector,K=u.options||{};h.queryCount++,h.currentQuery=u;const[ie,Ce]=function bi(m){const u=!!m.split(/\s*,\s*/).find(h=>":self"==h);return u&&(m=m.replace(Sr,"")),m=m.replace(/@\*/g,be).replace(/@\w+/g,h=>be+"-"+h.slice(1)).replace(/:animating/g,At),[m,u]}(u.selector);h.currentQuerySelector=D.length?D+" "+ie:ie,Wt(h.collectedStyles,h.currentQuerySelector,new Map);const Fe=tr(this,gt(u.animation),h);return h.currentQuery=null,h.currentQuerySelector=D,{type:11,selector:ie,limit:K.limit||0,optional:!!K.optional,includeSelf:Ce,animation:Fe,originalSelector:u.selector,options:hi(u.options)}}visitStagger(u,h){h.currentQuery||h.errors.push(function J(){return new c.vHH(3013,!1)}());const D="full"===u.timings?{duration:0,delay:0,easing:"full"}:Ln(u.timings,h.errors,!0);return{type:12,animation:tr(this,gt(u.animation),h),timings:D,options:null}}}class Yi{constructor(u){this.errors=u,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function hi(m){return m?(m=On(m)).params&&(m.params=function Fr(m){return m?On(m):null}(m.params)):m={},m}function ve(m,u,h){return{duration:m,delay:u,easing:h}}function Te(m,u,h,D,K,ie,Ce=null,Fe=!1){return{type:1,element:m,keyframes:u,preStyleProps:h,postStyleProps:D,duration:K,delay:ie,totalTime:K+ie,easing:Ce,subTimeline:Fe}}class tt{constructor(){this._map=new Map}get(u){return this._map.get(u)||[]}append(u,h){let D=this._map.get(u);D||this._map.set(u,D=[]),D.push(...h)}has(u){return this._map.has(u)}clear(){this._map.clear()}}const hn=new RegExp(":enter","g"),dr=new RegExp(":leave","g");function sr(m,u,h,D,K,ie=new Map,Ce=new Map,Fe,pt,Rt=[]){return(new Mn).buildKeyframes(m,u,h,D,K,ie,Ce,Fe,pt,Rt)}class Mn{buildKeyframes(u,h,D,K,ie,Ce,Fe,pt,Rt,lt=[]){Rt=Rt||new tt;const qt=new is(u,h,Rt,K,ie,lt,[]);qt.options=pt;const rn=pt.delay?Yt(pt.delay):0;qt.currentTimeline.delayNextStep(rn),qt.currentTimeline.setStyles([Ce],null,qt.errors,pt),tr(this,D,qt);const Zt=qt.timelines.filter(on=>on.containsAnimation());if(Zt.length&&Fe.size){let on;for(let wn=Zt.length-1;wn>=0;wn--){const xn=Zt[wn];if(xn.element===h){on=xn;break}}on&&!on.allowOnlyTimelineStyles()&&on.setStyles([Fe],null,qt.errors,pt)}return Zt.length?Zt.map(on=>on.buildKeyframes()):[Te(h,[],[],[],0,rn,"",!1)]}visitTrigger(u,h){}visitState(u,h){}visitTransition(u,h){}visitAnimateChild(u,h){const D=h.subInstructions.get(h.element);if(D){const K=h.createSubContext(u.options),ie=h.currentTimeline.currentTime,Ce=this._visitSubInstructions(D,K,K.options);ie!=Ce&&h.transformIntoNewTimeline(Ce)}h.previousNode=u}visitAnimateRef(u,h){const D=h.createSubContext(u.options);D.transformIntoNewTimeline(),this.visitReference(u.animation,D),h.transformIntoNewTimeline(D.currentTimeline.currentTime),h.previousNode=u}_visitSubInstructions(u,h,D){let ie=h.currentTimeline.currentTime;const Ce=null!=D.duration?Yt(D.duration):null,Fe=null!=D.delay?Yt(D.delay):null;return 0!==Ce&&u.forEach(pt=>{const Rt=h.appendInstructionToTimeline(pt,Ce,Fe);ie=Math.max(ie,Rt.duration+Rt.delay)}),ie}visitReference(u,h){h.updateOptions(u.options,!0),tr(this,u.animation,h),h.previousNode=u}visitSequence(u,h){const D=h.subContextCount;let K=h;const ie=u.options;if(ie&&(ie.params||ie.delay)&&(K=h.createSubContext(ie),K.transformIntoNewTimeline(),null!=ie.delay)){6==K.previousNode.type&&(K.currentTimeline.snapshotCurrentStyles(),K.previousNode=Ir);const Ce=Yt(ie.delay);K.delayNextStep(Ce)}u.steps.length&&(u.steps.forEach(Ce=>tr(this,Ce,K)),K.currentTimeline.applyStylesToKeyframe(),K.subContextCount>D&&K.transformIntoNewTimeline()),h.previousNode=u}visitGroup(u,h){const D=[];let K=h.currentTimeline.currentTime;const ie=u.options&&u.options.delay?Yt(u.options.delay):0;u.steps.forEach(Ce=>{const Fe=h.createSubContext(u.options);ie&&Fe.delayNextStep(ie),tr(this,Ce,Fe),K=Math.max(K,Fe.currentTimeline.currentTime),D.push(Fe.currentTimeline)}),D.forEach(Ce=>h.currentTimeline.mergeTimelineCollectedStyles(Ce)),h.transformIntoNewTimeline(K),h.previousNode=u}_visitTiming(u,h){if(u.dynamic){const D=u.strValue;return Ln(h.params?gn(D,h.params,h.errors):D,h.errors)}return{duration:u.duration,delay:u.delay,easing:u.easing}}visitAnimate(u,h){const D=h.currentAnimateTimings=this._visitTiming(u.timings,h),K=h.currentTimeline;D.delay&&(h.incrementTime(D.delay),K.snapshotCurrentStyles());const ie=u.style;5==ie.type?this.visitKeyframes(ie,h):(h.incrementTime(D.duration),this.visitStyle(ie,h),K.applyStylesToKeyframe()),h.currentAnimateTimings=null,h.previousNode=u}visitStyle(u,h){const D=h.currentTimeline,K=h.currentAnimateTimings;!K&&D.hasCurrentStyleProperties()&&D.forwardFrame();const ie=K&&K.easing||u.easing;u.isEmptyStep?D.applyEmptyStep(ie):D.setStyles(u.styles,ie,h.errors,h.options),h.previousNode=u}visitKeyframes(u,h){const D=h.currentAnimateTimings,K=h.currentTimeline.duration,ie=D.duration,Fe=h.createSubContext().currentTimeline;Fe.easing=D.easing,u.styles.forEach(pt=>{Fe.forwardTime((pt.offset||0)*ie),Fe.setStyles(pt.styles,pt.easing,h.errors,h.options),Fe.applyStylesToKeyframe()}),h.currentTimeline.mergeTimelineCollectedStyles(Fe),h.transformIntoNewTimeline(K+ie),h.previousNode=u}visitQuery(u,h){const D=h.currentTimeline.currentTime,K=u.options||{},ie=K.delay?Yt(K.delay):0;ie&&(6===h.previousNode.type||0==D&&h.currentTimeline.hasCurrentStyleProperties())&&(h.currentTimeline.snapshotCurrentStyles(),h.previousNode=Ir);let Ce=D;const Fe=h.invokeQuery(u.selector,u.originalSelector,u.limit,u.includeSelf,!!K.optional,h.errors);h.currentQueryTotal=Fe.length;let pt=null;Fe.forEach((Rt,lt)=>{h.currentQueryIndex=lt;const qt=h.createSubContext(u.options,Rt);ie&&qt.delayNextStep(ie),Rt===h.element&&(pt=qt.currentTimeline),tr(this,u.animation,qt),qt.currentTimeline.applyStylesToKeyframe(),Ce=Math.max(Ce,qt.currentTimeline.currentTime)}),h.currentQueryIndex=0,h.currentQueryTotal=0,h.transformIntoNewTimeline(Ce),pt&&(h.currentTimeline.mergeTimelineCollectedStyles(pt),h.currentTimeline.snapshotCurrentStyles()),h.previousNode=u}visitStagger(u,h){const D=h.parentContext,K=h.currentTimeline,ie=u.timings,Ce=Math.abs(ie.duration),Fe=Ce*(h.currentQueryTotal-1);let pt=Ce*h.currentQueryIndex;switch(ie.duration<0?"reverse":ie.easing){case"reverse":pt=Fe-pt;break;case"full":pt=D.currentStaggerTime}const lt=h.currentTimeline;pt&&lt.delayNextStep(pt);const qt=lt.currentTime;tr(this,u.animation,h),h.previousNode=u,D.currentStaggerTime=K.currentTime-qt+(K.startTime-D.currentTimeline.startTime)}}const Ir={};class is{constructor(u,h,D,K,ie,Ce,Fe,pt){this._driver=u,this.element=h,this.subInstructions=D,this._enterClassName=K,this._leaveClassName=ie,this.errors=Ce,this.timelines=Fe,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ir,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=pt||new Ui(this._driver,h,0),Fe.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(u,h){if(!u)return;const D=u;let K=this.options;null!=D.duration&&(K.duration=Yt(D.duration)),null!=D.delay&&(K.delay=Yt(D.delay));const ie=D.params;if(ie){let Ce=K.params;Ce||(Ce=this.options.params={}),Object.keys(ie).forEach(Fe=>{(!h||!Ce.hasOwnProperty(Fe))&&(Ce[Fe]=gn(ie[Fe],Ce,this.errors))})}}_copyOptions(){const u={};if(this.options){const h=this.options.params;if(h){const D=u.params={};Object.keys(h).forEach(K=>{D[K]=h[K]})}}return u}createSubContext(u=null,h,D){const K=h||this.element,ie=new is(this._driver,K,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(K,D||0));return ie.previousNode=this.previousNode,ie.currentAnimateTimings=this.currentAnimateTimings,ie.options=this._copyOptions(),ie.updateOptions(u),ie.currentQueryIndex=this.currentQueryIndex,ie.currentQueryTotal=this.currentQueryTotal,ie.parentContext=this,this.subContextCount++,ie}transformIntoNewTimeline(u){return this.previousNode=Ir,this.currentTimeline=this.currentTimeline.fork(this.element,u),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(u,h,D){const K={duration:h??u.duration,delay:this.currentTimeline.currentTime+(D??0)+u.delay,easing:""},ie=new Ei(this._driver,u.element,u.keyframes,u.preStyleProps,u.postStyleProps,K,u.stretchStartingKeyframe);return this.timelines.push(ie),K}incrementTime(u){this.currentTimeline.forwardTime(this.currentTimeline.duration+u)}delayNextStep(u){u>0&&this.currentTimeline.delayNextStep(u)}invokeQuery(u,h,D,K,ie,Ce){let Fe=[];if(K&&Fe.push(this.element),u.length>0){u=(u=u.replace(hn,"."+this._enterClassName)).replace(dr,"."+this._leaveClassName);let Rt=this._driver.query(this.element,u,1!=D);0!==D&&(Rt=D<0?Rt.slice(Rt.length+D,Rt.length):Rt.slice(0,D)),Fe.push(...Rt)}return!ie&&0==Fe.length&&Ce.push(function L(m){return new c.vHH(3014,!1)}()),Fe}}class Ui{constructor(u,h,D,K){this._driver=u,this.element=h,this.startTime=D,this._elementTimelineStylesLookup=K,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(h),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(h,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(u){const h=1===this._keyframes.size&&this._pendingStyles.size;this.duration||h?(this.forwardTime(this.currentTime+u),h&&this.snapshotCurrentStyles()):this.startTime+=u}fork(u,h){return this.applyStylesToKeyframe(),new Ui(this._driver,u,h||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(u){this.applyStylesToKeyframe(),this.duration=u,this._loadKeyframe()}_updateStyle(u,h){this._localTimelineStyles.set(u,h),this._globalTimelineStyles.set(u,h),this._styleSummary.set(u,{time:this.currentTime,value:h})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(u){u&&this._previousKeyframe.set("easing",u);for(let[h,D]of this._globalTimelineStyles)this._backFill.set(h,D||p.l3),this._currentKeyframe.set(h,p.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(u,h,D,K){h&&this._previousKeyframe.set("easing",h);const ie=K&&K.params||{},Ce=function ui(m,u){const h=new Map;let D;return m.forEach(K=>{if("*"===K){D=D||u.keys();for(let ie of D)h.set(ie,p.l3)}else jn(K,h)}),h}(u,this._globalTimelineStyles);for(let[Fe,pt]of Ce){const Rt=gn(pt,ie,D);this._pendingStyles.set(Fe,Rt),this._localTimelineStyles.has(Fe)||this._backFill.set(Fe,this._globalTimelineStyles.get(Fe)??p.l3),this._updateStyle(Fe,Rt)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((u,h)=>{this._currentKeyframe.set(h,u)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((u,h)=>{this._currentKeyframe.has(h)||this._currentKeyframe.set(h,u)}))}snapshotCurrentStyles(){for(let[u,h]of this._localTimelineStyles)this._pendingStyles.set(u,h),this._updateStyle(u,h)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const u=[];for(let h in this._currentKeyframe)u.push(h);return u}mergeTimelineCollectedStyles(u){u._styleSummary.forEach((h,D)=>{const K=this._styleSummary.get(D);(!K||h.time>K.time)&&this._updateStyle(D,h.value)})}buildKeyframes(){this.applyStylesToKeyframe();const u=new Set,h=new Set,D=1===this._keyframes.size&&0===this.duration;let K=[];this._keyframes.forEach((Fe,pt)=>{const Rt=jn(Fe,new Map,this._backFill);Rt.forEach((lt,qt)=>{lt===p.k1?u.add(qt):lt===p.l3&&h.add(qt)}),D||Rt.set("offset",pt/this.duration),K.push(Rt)});const ie=u.size?Jn(u.values()):[],Ce=h.size?Jn(h.values()):[];if(D){const Fe=K[0],pt=new Map(Fe);Fe.set("offset",0),pt.set("offset",1),K=[Fe,pt]}return Te(this.element,K,ie,Ce,this.duration,this.startTime,this.easing,!1)}}class Ei extends Ui{constructor(u,h,D,K,ie,Ce,Fe=!1){super(u,h,Ce.delay),this.keyframes=D,this.preStyleProps=K,this.postStyleProps=ie,this._stretchStartingKeyframe=Fe,this.timings={duration:Ce.duration,delay:Ce.delay,easing:Ce.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let u=this.keyframes,{delay:h,duration:D,easing:K}=this.timings;if(this._stretchStartingKeyframe&&h){const ie=[],Ce=D+h,Fe=h/Ce,pt=jn(u[0]);pt.set("offset",0),ie.push(pt);const Rt=jn(u[0]);Rt.set("offset",ci(Fe)),ie.push(Rt);const lt=u.length-1;for(let qt=1;qt<=lt;qt++){let rn=jn(u[qt]);const Zt=rn.get("offset");rn.set("offset",ci((h+Zt*D)/Ce)),ie.push(rn)}D=Ce,h=0,K="",u=ie}return Te(this.element,u,this.preStyleProps,this.postStyleProps,D,h,K,!0)}}function ci(m,u=3){const h=Math.pow(10,u-1);return Math.round(m*h)/h}class Di{}const Or=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class Gi extends Di{normalizePropertyName(u,h){return yn(u)}normalizeStyleValue(u,h,D,K){let ie="";const Ce=D.toString().trim();if(Or.has(h)&&0!==D&&"0"!==D)if("number"==typeof D)ie="px";else{const Fe=D.match(/^[+-]?[\d\.]+([a-z]*)$/);Fe&&0==Fe[1].length&&K.push(function U(m,u){return new c.vHH(3005,!1)}())}return Ce+ie}}function Vi(m,u,h,D,K,ie,Ce,Fe,pt,Rt,lt,qt,rn){return{type:0,element:m,triggerName:u,isRemovalTransition:K,fromState:h,fromStyles:ie,toState:D,toStyles:Ce,timelines:Fe,queriedElements:pt,preStyleProps:Rt,postStyleProps:lt,totalTime:qt,errors:rn}}const Ri={};class Qi{constructor(u,h,D){this._triggerName=u,this.ast=h,this._stateStyles=D}match(u,h,D,K){return function fs(m,u,h,D,K){return m.some(ie=>ie(u,h,D,K))}(this.ast.matchers,u,h,D,K)}buildStyles(u,h,D){let K=this._stateStyles.get("*");return void 0!==u&&(K=this._stateStyles.get(u?.toString())||K),K?K.buildStyles(h,D):new Map}build(u,h,D,K,ie,Ce,Fe,pt,Rt,lt){const qt=[],rn=this.ast.options&&this.ast.options.params||Ri,on=this.buildStyles(D,Fe&&Fe.params||Ri,qt),wn=pt&&pt.params||Ri,xn=this.buildStyles(K,wn,qt),Vn=new Set,br=new Map,Vr=new Map,kr="void"===K,Xs={params:Zi(wn,rn),delay:this.ast.options?.delay},Wi=lt?[]:sr(u,h,this.ast.animation,ie,Ce,on,xn,Xs,Rt,qt);let oi=0;if(Wi.forEach(Pi=>{oi=Math.max(Pi.duration+Pi.delay,oi)}),qt.length)return Vi(h,this._triggerName,D,K,kr,on,xn,[],[],br,Vr,oi,qt);Wi.forEach(Pi=>{const Zs=Pi.element,Bl=Wt(br,Zs,new Set);Pi.preStyleProps.forEach(Js=>Bl.add(Js));const La=Wt(Vr,Zs,new Set);Pi.postStyleProps.forEach(Js=>La.add(Js)),Zs!==h&&Vn.add(Zs)});const ei=Jn(Vn.values());return Vi(h,this._triggerName,D,K,kr,on,xn,Wi,ei,br,Vr,oi)}}function Zi(m,u){const h=On(u);for(const D in m)m.hasOwnProperty(D)&&null!=m[D]&&(h[D]=m[D]);return h}class Ji{constructor(u,h,D){this.styles=u,this.defaultParams=h,this.normalizer=D}buildStyles(u,h){const D=new Map,K=On(this.defaultParams);return Object.keys(u).forEach(ie=>{const Ce=u[ie];null!==Ce&&(K[ie]=Ce)}),this.styles.styles.forEach(ie=>{"string"!=typeof ie&&ie.forEach((Ce,Fe)=>{Ce&&(Ce=gn(Ce,K,h));const pt=this.normalizer.normalizePropertyName(Fe,h);Ce=this.normalizer.normalizeStyleValue(Fe,pt,Ce,h),D.set(pt,Ce)})}),D}}class mo{constructor(u,h,D){this.name=u,this.ast=h,this._normalizer=D,this.transitionFactories=[],this.states=new Map,h.states.forEach(K=>{this.states.set(K.name,new Ji(K.style,K.options&&K.options.params||{},D))}),Ai(this.states,"true","1"),Ai(this.states,"false","0"),h.transitions.forEach(K=>{this.transitionFactories.push(new Qi(u,K,this.states))}),this.fallbackTransition=function Zr(m,u,h){return new Qi(m,{type:1,animation:{type:2,steps:[],options:null},matchers:[(Ce,Fe)=>!0],options:null,queryCount:0,depCount:0},u)}(u,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(u,h,D,K){return this.transitionFactories.find(Ce=>Ce.match(u,h,D,K))||null}matchStyles(u,h,D){return this.fallbackTransition.buildStyles(u,h,D)}}function Ai(m,u,h){m.has(u)?m.has(h)||m.set(h,m.get(u)):m.has(h)&&m.set(u,m.get(h))}const ps=new tt;class Ds{constructor(u,h,D){this.bodyNode=u,this._driver=h,this._normalizer=D,this._animations=new Map,this._playersById=new Map,this.players=[]}register(u,h){const D=[],ie=xr(this._driver,h,D,[]);if(D.length)throw function $e(m){return new c.vHH(3503,!1)}();this._animations.set(u,ie)}_buildPlayer(u,h,D){const K=u.element,ie=wt(0,this._normalizer,0,u.keyframes,h,D);return this._driver.animate(K,ie,u.duration,u.delay,u.easing,[],!0)}create(u,h,D={}){const K=[],ie=this._animations.get(u);let Ce;const Fe=new Map;if(ie?(Ce=sr(this._driver,h,ie,Ge,Oe,new Map,new Map,D,ps,K),Ce.forEach(lt=>{const qt=Wt(Fe,lt.element,new Map);lt.postStyleProps.forEach(rn=>qt.set(rn,null))})):(K.push(function Et(){return new c.vHH(3300,!1)}()),Ce=[]),K.length)throw function ke(m){return new c.vHH(3504,!1)}();Fe.forEach((lt,qt)=>{lt.forEach((rn,Zt)=>{lt.set(Zt,this._driver.computeStyle(qt,Zt,p.l3))})});const Rt=Pt(Ce.map(lt=>{const qt=Fe.get(lt.element);return this._buildPlayer(lt,new Map,qt)}));return this._playersById.set(u,Rt),Rt.onDestroy(()=>this.destroy(u)),this.players.push(Rt),Rt}destroy(u){const h=this._getPlayer(u);h.destroy(),this._playersById.delete(u);const D=this.players.indexOf(h);D>=0&&this.players.splice(D,1)}_getPlayer(u){const h=this._playersById.get(u);if(!h)throw function je(m){return new c.vHH(3301,!1)}();return h}listen(u,h,D,K){const ie=Tt(h,"","","");return Je(this._getPlayer(u),D,ie,K),()=>{}}command(u,h,D,K){if("register"==D)return void this.register(u,K[0]);if("create"==D)return void this.create(u,h,K[0]||{});const ie=this._getPlayer(u);switch(D){case"play":ie.play();break;case"pause":ie.pause();break;case"reset":ie.reset();break;case"restart":ie.restart();break;case"finish":ie.finish();break;case"init":ie.init();break;case"setPosition":ie.setPosition(parseFloat(K[0]));break;case"destroy":this.destroy(u)}}}const Mr="ng-animate-queued",or="ng-animate-disabled",et=[],Lt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ht={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},tn="__ng_removed";class ht{constructor(u,h=""){this.namespaceId=h;const D=u&&u.hasOwnProperty("value");if(this.value=function Dn(m){return m??null}(D?u.value:u),D){const ie=On(u);delete ie.value,this.options=ie}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(u){const h=u.params;if(h){const D=this.options.params;Object.keys(h).forEach(K=>{null==D[K]&&(D[K]=h[K])})}}}const In="void",$n=new ht(In);class Kn{constructor(u,h,D){this.id=u,this.hostElement=h,this._engine=D,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+u,Ur(h,this._hostClassName)}listen(u,h,D,K){if(!this._triggers.has(h))throw function de(m,u){return new c.vHH(3302,!1)}();if(null==D||0==D.length)throw function me(m){return new c.vHH(3303,!1)}();if(!function ka(m){return"start"==m||"done"==m}(D))throw function Ne(m,u){return new c.vHH(3400,!1)}();const ie=Wt(this._elementListeners,u,[]),Ce={name:h,phase:D,callback:K};ie.push(Ce);const Fe=Wt(this._engine.statesByElement,u,new Map);return Fe.has(h)||(Ur(u,Ue),Ur(u,Ue+"-"+h),Fe.set(h,$n)),()=>{this._engine.afterFlush(()=>{const pt=ie.indexOf(Ce);pt>=0&&ie.splice(pt,1),this._triggers.has(h)||Fe.delete(h)})}}register(u,h){return!this._triggers.has(u)&&(this._triggers.set(u,h),!0)}_getTrigger(u){const h=this._triggers.get(u);if(!h)throw function it(m){return new c.vHH(3401,!1)}();return h}trigger(u,h,D,K=!0){const ie=this._getTrigger(h),Ce=new gr(this.id,h,u);let Fe=this._engine.statesByElement.get(u);Fe||(Ur(u,Ue),Ur(u,Ue+"-"+h),this._engine.statesByElement.set(u,Fe=new Map));let pt=Fe.get(h);const Rt=new ht(D,this.id);if(!(D&&D.hasOwnProperty("value"))&&pt&&Rt.absorbOptions(pt.options),Fe.set(h,Rt),pt||(pt=$n),Rt.value!==In&&pt.value===Rt.value){if(!function vo(m,u){const h=Object.keys(m),D=Object.keys(u);if(h.length!=D.length)return!1;for(let K=0;K<h.length;K++){const ie=h[K];if(!u.hasOwnProperty(ie)||m[ie]!==u[ie])return!1}return!0}(pt.params,Rt.params)){const wn=[],xn=ie.matchStyles(pt.value,pt.params,wn),Vn=ie.matchStyles(Rt.value,Rt.params,wn);wn.length?this._engine.reportError(wn):this._engine.afterFlush(()=>{we(u,xn),Ze(u,Vn)})}return}const rn=Wt(this._engine.playersByElement,u,[]);rn.forEach(wn=>{wn.namespaceId==this.id&&wn.triggerName==h&&wn.queued&&wn.destroy()});let Zt=ie.matchTransition(pt.value,Rt.value,u,Rt.params),on=!1;if(!Zt){if(!K)return;Zt=ie.fallbackTransition,on=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:u,triggerName:h,transition:Zt,fromState:pt,toState:Rt,player:Ce,isFallbackTransition:on}),on||(Ur(u,Mr),Ce.onStart(()=>{ss(u,Mr)})),Ce.onDone(()=>{let wn=this.players.indexOf(Ce);wn>=0&&this.players.splice(wn,1);const xn=this._engine.playersByElement.get(u);if(xn){let Vn=xn.indexOf(Ce);Vn>=0&&xn.splice(Vn,1)}}),this.players.push(Ce),rn.push(Ce),Ce}deregister(u){this._triggers.delete(u),this._engine.statesByElement.forEach(h=>h.delete(u)),this._elementListeners.forEach((h,D)=>{this._elementListeners.set(D,h.filter(K=>K.name!=u))})}clearElementCache(u){this._engine.statesByElement.delete(u),this._elementListeners.delete(u);const h=this._engine.playersByElement.get(u);h&&(h.forEach(D=>D.destroy()),this._engine.playersByElement.delete(u))}_signalRemovalForInnerTriggers(u,h){const D=this._engine.driver.query(u,be,!0);D.forEach(K=>{if(K[tn])return;const ie=this._engine.fetchNamespacesByElement(K);ie.size?ie.forEach(Ce=>Ce.triggerLeaveAnimation(K,h,!1,!0)):this.clearElementCache(K)}),this._engine.afterFlushAnimationsDone(()=>D.forEach(K=>this.clearElementCache(K)))}triggerLeaveAnimation(u,h,D,K){const ie=this._engine.statesByElement.get(u),Ce=new Map;if(ie){const Fe=[];if(ie.forEach((pt,Rt)=>{if(Ce.set(Rt,pt.value),this._triggers.has(Rt)){const lt=this.trigger(u,Rt,In,K);lt&&Fe.push(lt)}}),Fe.length)return this._engine.markElementAsRemoved(this.id,u,!0,h,Ce),D&&Pt(Fe).onDone(()=>this._engine.processLeaveNode(u)),!0}return!1}prepareLeaveAnimationListeners(u){const h=this._elementListeners.get(u),D=this._engine.statesByElement.get(u);if(h&&D){const K=new Set;h.forEach(ie=>{const Ce=ie.name;if(K.has(Ce))return;K.add(Ce);const pt=this._triggers.get(Ce).fallbackTransition,Rt=D.get(Ce)||$n,lt=new ht(In),qt=new gr(this.id,Ce,u);this._engine.totalQueuedPlayers++,this._queue.push({element:u,triggerName:Ce,transition:pt,fromState:Rt,toState:lt,player:qt,isFallbackTransition:!0})})}}removeNode(u,h){const D=this._engine;if(u.childElementCount&&this._signalRemovalForInnerTriggers(u,h),this.triggerLeaveAnimation(u,h,!0))return;let K=!1;if(D.totalAnimations){const ie=D.players.length?D.playersByQueriedElement.get(u):[];if(ie&&ie.length)K=!0;else{let Ce=u;for(;Ce=Ce.parentNode;)if(D.statesByElement.get(Ce)){K=!0;break}}}if(this.prepareLeaveAnimationListeners(u),K)D.markElementAsRemoved(this.id,u,!1,h);else{const ie=u[tn];(!ie||ie===Lt)&&(D.afterFlush(()=>this.clearElementCache(u)),D.destroyInnerAnimations(u),D._onRemovalComplete(u,h))}}insertNode(u,h){Ur(u,this._hostClassName)}drainQueuedTransitions(u){const h=[];return this._queue.forEach(D=>{const K=D.player;if(K.destroyed)return;const ie=D.element,Ce=this._elementListeners.get(ie);Ce&&Ce.forEach(Fe=>{if(Fe.name==D.triggerName){const pt=Tt(ie,D.triggerName,D.fromState.value,D.toState.value);pt._data=u,Je(D.player,Fe.phase,pt,Fe.callback)}}),K.markedForDestroy?this._engine.afterFlush(()=>{K.destroy()}):h.push(D)}),this._queue=[],h.sort((D,K)=>{const ie=D.transition.ast.depCount,Ce=K.transition.ast.depCount;return 0==ie||0==Ce?ie-Ce:this._engine.driver.containsElement(D.element,K.element)?1:-1})}destroy(u){this.players.forEach(h=>h.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,u)}elementContainsData(u){let h=!1;return this._elementListeners.has(u)&&(h=!0),h=!!this._queue.find(D=>D.element===u)||h,h}}class qn{constructor(u,h,D){this.bodyNode=u,this.driver=h,this._normalizer=D,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(K,ie)=>{}}_onRemovalComplete(u,h){this.onRemovalComplete(u,h)}get queuedPlayers(){const u=[];return this._namespaceList.forEach(h=>{h.players.forEach(D=>{D.queued&&u.push(D)})}),u}createNamespace(u,h){const D=new Kn(u,h,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,h)?this._balanceNamespaceList(D,h):(this.newHostElements.set(h,D),this.collectEnterElement(h)),this._namespaceLookup[u]=D}_balanceNamespaceList(u,h){const D=this._namespaceList,K=this.namespacesByHostElement;if(D.length-1>=0){let Ce=!1,Fe=this.driver.getParentElement(h);for(;Fe;){const pt=K.get(Fe);if(pt){const Rt=D.indexOf(pt);D.splice(Rt+1,0,u),Ce=!0;break}Fe=this.driver.getParentElement(Fe)}Ce||D.unshift(u)}else D.push(u);return K.set(h,u),u}register(u,h){let D=this._namespaceLookup[u];return D||(D=this.createNamespace(u,h)),D}registerTrigger(u,h,D){let K=this._namespaceLookup[u];K&&K.register(h,D)&&this.totalAnimations++}destroy(u,h){if(!u)return;const D=this._fetchNamespace(u);this.afterFlush(()=>{this.namespacesByHostElement.delete(D.hostElement),delete this._namespaceLookup[u];const K=this._namespaceList.indexOf(D);K>=0&&this._namespaceList.splice(K,1)}),this.afterFlushAnimationsDone(()=>D.destroy(h))}_fetchNamespace(u){return this._namespaceLookup[u]}fetchNamespacesByElement(u){const h=new Set,D=this.statesByElement.get(u);if(D)for(let K of D.values())if(K.namespaceId){const ie=this._fetchNamespace(K.namespaceId);ie&&h.add(ie)}return h}trigger(u,h,D,K){if(es(h)){const ie=this._fetchNamespace(u);if(ie)return ie.trigger(h,D,K),!0}return!1}insertNode(u,h,D,K){if(!es(h))return;const ie=h[tn];if(ie&&ie.setForRemoval){ie.setForRemoval=!1,ie.setForMove=!0;const Ce=this.collectedLeaveElements.indexOf(h);Ce>=0&&this.collectedLeaveElements.splice(Ce,1)}if(u){const Ce=this._fetchNamespace(u);Ce&&Ce.insertNode(h,D)}K&&this.collectEnterElement(h)}collectEnterElement(u){this.collectedEnterElements.push(u)}markElementAsDisabled(u,h){h?this.disabledNodes.has(u)||(this.disabledNodes.add(u),Ur(u,or)):this.disabledNodes.has(u)&&(this.disabledNodes.delete(u),ss(u,or))}removeNode(u,h,D,K){if(es(h)){const ie=u?this._fetchNamespace(u):null;if(ie?ie.removeNode(h,K):this.markElementAsRemoved(u,h,!1,K),D){const Ce=this.namespacesByHostElement.get(h);Ce&&Ce.id!==u&&Ce.removeNode(h,K)}}else this._onRemovalComplete(h,K)}markElementAsRemoved(u,h,D,K,ie){this.collectedLeaveElements.push(h),h[tn]={namespaceId:u,setForRemoval:K,hasAnimation:D,removedBeforeQueried:!1,previousTriggersValues:ie}}listen(u,h,D,K,ie){return es(h)?this._fetchNamespace(u).listen(h,D,K,ie):()=>{}}_buildInstruction(u,h,D,K,ie){return u.transition.build(this.driver,u.element,u.fromState.value,u.toState.value,D,K,u.fromState.options,u.toState.options,h,ie)}destroyInnerAnimations(u){let h=this.driver.query(u,be,!0);h.forEach(D=>this.destroyActiveAnimationsForElement(D)),0!=this.playersByQueriedElement.size&&(h=this.driver.query(u,At,!0),h.forEach(D=>this.finishActiveQueriedAnimationOnElement(D)))}destroyActiveAnimationsForElement(u){const h=this.playersByElement.get(u);h&&h.forEach(D=>{D.queued?D.markedForDestroy=!0:D.destroy()})}finishActiveQueriedAnimationOnElement(u){const h=this.playersByQueriedElement.get(u);h&&h.forEach(D=>D.finish())}whenRenderingDone(){return new Promise(u=>{if(this.players.length)return Pt(this.players).onDone(()=>u());u()})}processLeaveNode(u){const h=u[tn];if(h&&h.setForRemoval){if(u[tn]=Lt,h.namespaceId){this.destroyInnerAnimations(u);const D=this._fetchNamespace(h.namespaceId);D&&D.clearElementCache(u)}this._onRemovalComplete(u,h.setForRemoval)}u.classList?.contains(or)&&this.markElementAsDisabled(u,!1),this.driver.query(u,".ng-animate-disabled",!0).forEach(D=>{this.markElementAsDisabled(D,!1)})}flush(u=-1){let h=[];if(this.newHostElements.size&&(this.newHostElements.forEach((D,K)=>this._balanceNamespaceList(D,K)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let D=0;D<this.collectedEnterElements.length;D++)Ur(this.collectedEnterElements[D],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const D=[];try{h=this._flushAnimations(D,u)}finally{for(let K=0;K<D.length;K++)D[K]()}}else for(let D=0;D<this.collectedLeaveElements.length;D++)this.processLeaveNode(this.collectedLeaveElements[D]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(D=>D()),this._flushFns=[],this._whenQuietFns.length){const D=this._whenQuietFns;this._whenQuietFns=[],h.length?Pt(h).onDone(()=>{D.forEach(K=>K())}):D.forEach(K=>K())}}reportError(u){throw function yt(m){return new c.vHH(3402,!1)}()}_flushAnimations(u,h){const D=new tt,K=[],ie=new Map,Ce=[],Fe=new Map,pt=new Map,Rt=new Map,lt=new Set;this.disabledNodes.forEach(An=>{lt.add(An);const Nn=this.driver.query(An,".ng-animate-queued",!0);for(let Un=0;Un<Nn.length;Un++)lt.add(Nn[Un])});const qt=this.bodyNode,rn=Array.from(this.statesByElement.keys()),Zt=Li(rn,this.collectedEnterElements),on=new Map;let wn=0;Zt.forEach((An,Nn)=>{const Un=Ge+wn++;on.set(Nn,Un),An.forEach(mr=>Ur(mr,Un))});const xn=[],Vn=new Set,br=new Set;for(let An=0;An<this.collectedLeaveElements.length;An++){const Nn=this.collectedLeaveElements[An],Un=Nn[tn];Un&&Un.setForRemoval&&(xn.push(Nn),Vn.add(Nn),Un.hasAnimation?this.driver.query(Nn,".ng-star-inserted",!0).forEach(mr=>Vn.add(mr)):br.add(Nn))}const Vr=new Map,kr=Li(rn,Array.from(Vn));kr.forEach((An,Nn)=>{const Un=Oe+wn++;Vr.set(Nn,Un),An.forEach(mr=>Ur(mr,Un))}),u.push(()=>{Zt.forEach((An,Nn)=>{const Un=on.get(Nn);An.forEach(mr=>ss(mr,Un))}),kr.forEach((An,Nn)=>{const Un=Vr.get(Nn);An.forEach(mr=>ss(mr,Un))}),xn.forEach(An=>{this.processLeaveNode(An)})});const Xs=[],Wi=[];for(let An=this._namespaceList.length-1;An>=0;An--)this._namespaceList[An].drainQueuedTransitions(h).forEach(Un=>{const mr=Un.player,o=Un.element;if(Xs.push(mr),this.collectedEnterElements.length){const Ae=o[tn];if(Ae&&Ae.setForMove){if(Ae.previousTriggersValues&&Ae.previousTriggersValues.has(Un.triggerName)){const We=Ae.previousTriggersValues.get(Un.triggerName),rt=this.statesByElement.get(Un.element);if(rt&&rt.has(Un.triggerName)){const St=rt.get(Un.triggerName);St.value=We,rt.set(Un.triggerName,St)}}return void mr.destroy()}}const r=!qt||!this.driver.containsElement(qt,o),l=Vr.get(o),g=on.get(o),C=this._buildInstruction(Un,D,g,l,r);if(C.errors&&C.errors.length)return void Wi.push(C);if(r)return mr.onStart(()=>we(o,C.fromStyles)),mr.onDestroy(()=>Ze(o,C.toStyles)),void K.push(mr);if(Un.isFallbackTransition)return mr.onStart(()=>we(o,C.fromStyles)),mr.onDestroy(()=>Ze(o,C.toStyles)),void K.push(mr);const x=[];C.timelines.forEach(Ae=>{Ae.stretchStartingKeyframe=!0,this.disabledNodes.has(Ae.element)||x.push(Ae)}),C.timelines=x,D.append(o,C.timelines),Ce.push({instruction:C,player:mr,element:o}),C.queriedElements.forEach(Ae=>Wt(Fe,Ae,[]).push(mr)),C.preStyleProps.forEach((Ae,We)=>{if(Ae.size){let rt=pt.get(We);rt||pt.set(We,rt=new Set),Ae.forEach((St,jt)=>rt.add(jt))}}),C.postStyleProps.forEach((Ae,We)=>{let rt=Rt.get(We);rt||Rt.set(We,rt=new Set),Ae.forEach((St,jt)=>rt.add(jt))})});if(Wi.length){const An=[];Wi.forEach(Nn=>{An.push(function Ft(m,u){return new c.vHH(3505,!1)}())}),Xs.forEach(Nn=>Nn.destroy()),this.reportError(An)}const oi=new Map,ei=new Map;Ce.forEach(An=>{const Nn=An.element;D.has(Nn)&&(ei.set(Nn,Nn),this._beforeAnimationBuild(An.player.namespaceId,An.instruction,oi))}),K.forEach(An=>{const Nn=An.element;this._getPreviousPlayers(Nn,!1,An.namespaceId,An.triggerName,null).forEach(mr=>{Wt(oi,Nn,[]).push(mr),mr.destroy()})});const Pi=xn.filter(An=>Ns(An,pt,Rt)),Zs=new Map;wi(Zs,this.driver,br,Rt,p.l3).forEach(An=>{Ns(An,pt,Rt)&&Pi.push(An)});const La=new Map;Zt.forEach((An,Nn)=>{wi(La,this.driver,new Set(An),pt,p.k1)}),Pi.forEach(An=>{const Nn=Zs.get(An),Un=La.get(An);Zs.set(An,new Map([...Array.from(Nn?.entries()??[]),...Array.from(Un?.entries()??[])]))});const Js=[],kl=[],Ul={};Ce.forEach(An=>{const{element:Nn,player:Un,instruction:mr}=An;if(D.has(Nn)){if(lt.has(Nn))return Un.onDestroy(()=>Ze(Nn,mr.toStyles)),Un.disabled=!0,Un.overrideTotalTime(mr.totalTime),void K.push(Un);let o=Ul;if(ei.size>1){let l=Nn;const g=[];for(;l=l.parentNode;){const C=ei.get(l);if(C){o=C;break}g.push(l)}g.forEach(C=>ei.set(C,o))}const r=this._buildAnimation(Un.namespaceId,mr,oi,ie,La,Zs);if(Un.setRealPlayer(r),o===Ul)Js.push(Un);else{const l=this.playersByElement.get(o);l&&l.length&&(Un.parentPlayer=Pt(l)),K.push(Un)}}else we(Nn,mr.fromStyles),Un.onDestroy(()=>Ze(Nn,mr.toStyles)),kl.push(Un),lt.has(Nn)&&K.push(Un)}),kl.forEach(An=>{const Nn=ie.get(An.element);if(Nn&&Nn.length){const Un=Pt(Nn);An.setRealPlayer(Un)}}),K.forEach(An=>{An.parentPlayer?An.syncPlayerEvents(An.parentPlayer):An.destroy()});for(let An=0;An<xn.length;An++){const Nn=xn[An],Un=Nn[tn];if(ss(Nn,Oe),Un&&Un.hasAnimation)continue;let mr=[];if(Fe.size){let r=Fe.get(Nn);r&&r.length&&mr.push(...r);let l=this.driver.query(Nn,At,!0);for(let g=0;g<l.length;g++){let C=Fe.get(l[g]);C&&C.length&&mr.push(...C)}}const o=mr.filter(r=>!r.destroyed);o.length?Go(this,Nn,o):this.processLeaveNode(Nn)}return xn.length=0,Js.forEach(An=>{this.players.push(An),An.onDone(()=>{An.destroy();const Nn=this.players.indexOf(An);this.players.splice(Nn,1)}),An.play()}),Js}elementContainsData(u,h){let D=!1;const K=h[tn];return K&&K.setForRemoval&&(D=!0),this.playersByElement.has(h)&&(D=!0),this.playersByQueriedElement.has(h)&&(D=!0),this.statesByElement.has(h)&&(D=!0),this._fetchNamespace(u).elementContainsData(h)||D}afterFlush(u){this._flushFns.push(u)}afterFlushAnimationsDone(u){this._whenQuietFns.push(u)}_getPreviousPlayers(u,h,D,K,ie){let Ce=[];if(h){const Fe=this.playersByQueriedElement.get(u);Fe&&(Ce=Fe)}else{const Fe=this.playersByElement.get(u);if(Fe){const pt=!ie||ie==In;Fe.forEach(Rt=>{Rt.queued||!pt&&Rt.triggerName!=K||Ce.push(Rt)})}}return(D||K)&&(Ce=Ce.filter(Fe=>!(D&&D!=Fe.namespaceId||K&&K!=Fe.triggerName))),Ce}_beforeAnimationBuild(u,h,D){const ie=h.element,Ce=h.isRemovalTransition?void 0:u,Fe=h.isRemovalTransition?void 0:h.triggerName;for(const pt of h.timelines){const Rt=pt.element,lt=Rt!==ie,qt=Wt(D,Rt,[]);this._getPreviousPlayers(Rt,lt,Ce,Fe,h.toState).forEach(Zt=>{const on=Zt.getRealPlayer();on.beforeDestroy&&on.beforeDestroy(),Zt.destroy(),qt.push(Zt)})}we(ie,h.fromStyles)}_buildAnimation(u,h,D,K,ie,Ce){const Fe=h.triggerName,pt=h.element,Rt=[],lt=new Set,qt=new Set,rn=h.timelines.map(on=>{const wn=on.element;lt.add(wn);const xn=wn[tn];if(xn&&xn.removedBeforeQueried)return new p.ZN(on.duration,on.delay);const Vn=wn!==pt,br=function Kt(m){const u=[];return Wn(m,u),u}((D.get(wn)||et).map(oi=>oi.getRealPlayer())).filter(oi=>!!oi.element&&oi.element===wn),Vr=ie.get(wn),kr=Ce.get(wn),Xs=wt(0,this._normalizer,0,on.keyframes,Vr,kr),Wi=this._buildPlayer(on,Xs,br);if(on.subTimeline&&K&&qt.add(wn),Vn){const oi=new gr(u,Fe,wn);oi.setRealPlayer(Wi),Rt.push(oi)}return Wi});Rt.forEach(on=>{Wt(this.playersByQueriedElement,on.element,[]).push(on),on.onDone(()=>function Pr(m,u,h){let D=m.get(u);if(D){if(D.length){const K=D.indexOf(h);D.splice(K,1)}0==D.length&&m.delete(u)}return D}(this.playersByQueriedElement,on.element,on))}),lt.forEach(on=>Ur(on,at));const Zt=Pt(rn);return Zt.onDestroy(()=>{lt.forEach(on=>ss(on,at)),Ze(pt,h.toStyles)}),qt.forEach(on=>{Wt(K,on,[]).push(Zt)}),Zt}_buildPlayer(u,h,D){return h.length>0?this.driver.animate(u.element,h,u.duration,u.delay,u.easing,D):new p.ZN(u.duration,u.delay)}}class gr{constructor(u,h,D){this.namespaceId=u,this.triggerName=h,this.element=D,this._player=new p.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(u){this._containsRealPlayer||(this._player=u,this._queuedCallbacks.forEach((h,D)=>{h.forEach(K=>Je(u,D,void 0,K))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(u.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(u){this.totalTime=u}syncPlayerEvents(u){const h=this._player;h.triggerCallback&&u.onStart(()=>h.triggerCallback("start")),u.onDone(()=>this.finish()),u.onDestroy(()=>this.destroy())}_queueEvent(u,h){Wt(this._queuedCallbacks,u,[]).push(h)}onDone(u){this.queued&&this._queueEvent("done",u),this._player.onDone(u)}onStart(u){this.queued&&this._queueEvent("start",u),this._player.onStart(u)}onDestroy(u){this.queued&&this._queueEvent("destroy",u),this._player.onDestroy(u)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(u){this.queued||this._player.setPosition(u)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(u){const h=this._player;h.triggerCallback&&h.triggerCallback(u)}}function es(m){return m&&1===m.nodeType}function gs(m,u){const h=m.style.display;return m.style.display=u??"none",h}function wi(m,u,h,D,K){const ie=[];h.forEach(pt=>ie.push(gs(pt)));const Ce=[];D.forEach((pt,Rt)=>{const lt=new Map;pt.forEach(qt=>{const rn=u.computeStyle(Rt,qt,K);lt.set(qt,rn),(!rn||0==rn.length)&&(Rt[tn]=Ht,Ce.push(Rt))}),m.set(Rt,lt)});let Fe=0;return h.forEach(pt=>gs(pt,ie[Fe++])),Ce}function Li(m,u){const h=new Map;if(m.forEach(Fe=>h.set(Fe,[])),0==u.length)return h;const K=new Set(u),ie=new Map;function Ce(Fe){if(!Fe)return 1;let pt=ie.get(Fe);if(pt)return pt;const Rt=Fe.parentNode;return pt=h.has(Rt)?Rt:K.has(Rt)?1:Ce(Rt),ie.set(Fe,pt),pt}return u.forEach(Fe=>{const pt=Ce(Fe);1!==pt&&h.get(pt).push(Fe)}),h}function Ur(m,u){m.classList?.add(u)}function ss(m,u){m.classList?.remove(u)}function Go(m,u,h){Pt(h).onDone(()=>m.processLeaveNode(u))}function Wn(m,u){for(let h=0;h<m.length;h++){const D=m[h];D instanceof p.ZE?Wn(D.players,u):u.push(D)}}function Ns(m,u,h){const D=h.get(m);if(!D)return!1;let K=u.get(m);return K?D.forEach(ie=>K.add(ie)):u.set(m,D),h.delete(m),!0}class Br{constructor(u,h,D){this.bodyNode=u,this._driver=h,this._normalizer=D,this._triggerCache={},this.onRemovalComplete=(K,ie)=>{},this._transitionEngine=new qn(u,h,D),this._timelineEngine=new Ds(u,h,D),this._transitionEngine.onRemovalComplete=(K,ie)=>this.onRemovalComplete(K,ie)}registerTrigger(u,h,D,K,ie){const Ce=u+"-"+K;let Fe=this._triggerCache[Ce];if(!Fe){const pt=[],lt=xr(this._driver,ie,pt,[]);if(pt.length)throw function ct(m,u){return new c.vHH(3404,!1)}();Fe=function qi(m,u,h){return new mo(m,u,h)}(K,lt,this._normalizer),this._triggerCache[Ce]=Fe}this._transitionEngine.registerTrigger(h,K,Fe)}register(u,h){this._transitionEngine.register(u,h)}destroy(u,h){this._transitionEngine.destroy(u,h)}onInsert(u,h,D,K){this._transitionEngine.insertNode(u,h,D,K)}onRemove(u,h,D,K){this._transitionEngine.removeNode(u,h,K||!1,D)}disableAnimations(u,h){this._transitionEngine.markElementAsDisabled(u,h)}process(u,h,D,K){if("@"==D.charAt(0)){const[ie,Ce]=Dt(D);this._timelineEngine.command(ie,h,Ce,K)}else this._transitionEngine.trigger(u,h,D,K)}listen(u,h,D,K,ie){if("@"==D.charAt(0)){const[Ce,Fe]=Dt(D);return this._timelineEngine.listen(Ce,h,Fe,ie)}return this._transitionEngine.listen(u,h,D,K,ie)}flush(u=-1){this._transitionEngine.flush(u)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let q=(()=>{class m{constructor(h,D,K){this._element=h,this._startStyles=D,this._endStyles=K,this._state=0;let ie=m.initialStylesByElement.get(h);ie||m.initialStylesByElement.set(h,ie=new Map),this._initialStyles=ie}start(){this._state<1&&(this._startStyles&&Ze(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ze(this._element,this._initialStyles),this._endStyles&&(Ze(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(m.initialStylesByElement.delete(this._element),this._startStyles&&(we(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(we(this._element,this._endStyles),this._endStyles=null),Ze(this._element,this._initialStyles),this._state=3)}}return m.initialStylesByElement=new WeakMap,m})();function j(m){let u=null;return m.forEach((h,D)=>{(function Ee(m){return"display"===m||"position"===m})(D)&&(u=u||new Map,u.set(D,h))}),u}class xt{constructor(u,h,D,K){this.element=u,this.keyframes=h,this.options=D,this._specialStyles=K,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=D.duration,this._delay=D.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(u=>u()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const u=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,u,this.options),this._finalKeyframe=u.length?u[u.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(u){const h=[];return u.forEach(D=>{h.push(Object.fromEntries(D))}),h}_triggerWebAnimation(u,h,D){return u.animate(this._convertKeyframesToObject(h),D)}onStart(u){this._originalOnStartFns.push(u),this._onStartFns.push(u)}onDone(u){this._originalOnDoneFns.push(u),this._onDoneFns.push(u)}onDestroy(u){this._onDestroyFns.push(u)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(u=>u()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(u=>u()),this._onDestroyFns=[])}setPosition(u){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=u*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const u=new Map;this.hasStarted()&&this._finalKeyframe.forEach((D,K)=>{"offset"!==K&&u.set(K,this._finished?D:Cr(this.element,K))}),this.currentSnapshot=u}triggerCallback(u){const h="start"===u?this._onStartFns:this._onDoneFns;h.forEach(D=>D()),h.length=0}}class _n{validateStyleProperty(u){return!0}validateAnimatableStyleProperty(u){return!0}matchesElement(u,h){return!1}containsElement(u,h){return xe(u,h)}getParentElement(u){return vt(u)}query(u,h,D){return Re(u,h,D)}computeStyle(u,h,D){return window.getComputedStyle(u)[h]}animate(u,h,D,K,ie,Ce=[]){const pt={duration:D,delay:K,fill:0==K?"both":"forwards"};ie&&(pt.easing=ie);const Rt=new Map,lt=Ce.filter(Zt=>Zt instanceof xt);(function ti(m,u){return 0===m||0===u})(D,K)&&lt.forEach(Zt=>{Zt.currentSnapshot.forEach((on,wn)=>Rt.set(wn,on))});let qt=function zn(m){return m.length?m[0]instanceof Map?m:m.map(u=>Er(u)):[]}(h).map(Zt=>jn(Zt));qt=function Xr(m,u,h){if(h.size&&u.length){let D=u[0],K=[];if(h.forEach((ie,Ce)=>{D.has(Ce)||K.push(Ce),D.set(Ce,ie)}),K.length)for(let ie=1;ie<u.length;ie++){let Ce=u[ie];K.forEach(Fe=>Ce.set(Fe,Cr(m,Fe)))}}return u}(u,qt,Rt);const rn=function se(m,u){let h=null,D=null;return Array.isArray(u)&&u.length?(h=j(u[0]),u.length>1&&(D=j(u[u.length-1]))):u instanceof Map&&(h=j(u)),h||D?new q(m,h,D):null}(u,qt);return new xt(u,qt,pt,rn)}}let Yr=(()=>{class m extends p._j{constructor(h,D){super(),this._nextAnimationId=0,this._renderer=h.createRenderer(D.body,{id:"0",encapsulation:c.ifc.None,styles:[],data:{animation:[]}})}build(h){const D=this._nextAnimationId.toString();this._nextAnimationId++;const K=Array.isArray(h)?(0,p.vP)(h):h;return Rr(this._renderer,null,D,"register",[K]),new Ii(D,this._renderer)}}return m.\u0275fac=function(h){return new(h||m)(c.LFG(c.FYo),c.LFG(A.K0))},m.\u0275prov=c.Yz7({token:m,factory:m.\u0275fac}),m})();class Ii extends p.LC{constructor(u,h){super(),this._id=u,this._renderer=h}create(u,h){return new Ni(this._id,u,h||{},this._renderer)}}class Ni{constructor(u,h,D,K){this.id=u,this.element=h,this._renderer=K,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",D)}_listen(u,h){return this._renderer.listen(this.element,`@@${this.id}:${u}`,h)}_command(u,...h){return Rr(this._renderer,this.element,this.id,u,h)}onDone(u){this._listen("done",u)}onStart(u){this._listen("start",u)}onDestroy(u){this._listen("destroy",u)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(u){this._command("setPosition",u)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function Rr(m,u,h,D,K){return m.setProperty(u,`@@${h}:${D}`,K)}const os="@.disabled";let As=(()=>{class m{constructor(h,D,K){this.delegate=h,this.engine=D,this._zone=K,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),D.onRemovalComplete=(ie,Ce)=>{const Fe=Ce?.parentNode(ie);Fe&&Ce.removeChild(Fe,ie)}}createRenderer(h,D){const ie=this.delegate.createRenderer(h,D);if(!(h&&D&&D.data&&D.data.animation)){let lt=this._rendererCache.get(ie);return lt||(lt=new xi("",ie,this.engine),this._rendererCache.set(ie,lt)),lt}const Ce=D.id,Fe=D.id+"-"+this._currentId;this._currentId++,this.engine.register(Fe,h);const pt=lt=>{Array.isArray(lt)?lt.forEach(pt):this.engine.registerTrigger(Ce,Fe,h,lt.name,lt)};return D.data.animation.forEach(pt),new xs(this,Fe,ie,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(h,D,K){h>=0&&h<this._microtaskId?this._zone.run(()=>D(K)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(ie=>{const[Ce,Fe]=ie;Ce(Fe)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([D,K]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return m.\u0275fac=function(h){return new(h||m)(c.LFG(c.FYo),c.LFG(Br),c.LFG(c.R0b))},m.\u0275prov=c.Yz7({token:m,factory:m.\u0275fac}),m})();class xi{constructor(u,h,D){this.namespaceId=u,this.delegate=h,this.engine=D,this.destroyNode=this.delegate.destroyNode?K=>h.destroyNode(K):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(u,h){return this.delegate.createElement(u,h)}createComment(u){return this.delegate.createComment(u)}createText(u){return this.delegate.createText(u)}appendChild(u,h){this.delegate.appendChild(u,h),this.engine.onInsert(this.namespaceId,h,u,!1)}insertBefore(u,h,D,K=!0){this.delegate.insertBefore(u,h,D),this.engine.onInsert(this.namespaceId,h,u,K)}removeChild(u,h,D){this.engine.onRemove(this.namespaceId,h,this.delegate,D)}selectRootElement(u,h){return this.delegate.selectRootElement(u,h)}parentNode(u){return this.delegate.parentNode(u)}nextSibling(u){return this.delegate.nextSibling(u)}setAttribute(u,h,D,K){this.delegate.setAttribute(u,h,D,K)}removeAttribute(u,h,D){this.delegate.removeAttribute(u,h,D)}addClass(u,h){this.delegate.addClass(u,h)}removeClass(u,h){this.delegate.removeClass(u,h)}setStyle(u,h,D,K){this.delegate.setStyle(u,h,D,K)}removeStyle(u,h,D){this.delegate.removeStyle(u,h,D)}setProperty(u,h,D){"@"==h.charAt(0)&&h==os?this.disableAnimations(u,!!D):this.delegate.setProperty(u,h,D)}setValue(u,h){this.delegate.setValue(u,h)}listen(u,h,D){return this.delegate.listen(u,h,D)}disableAnimations(u,h){this.engine.disableAnimations(u,h)}}class xs extends xi{constructor(u,h,D,K){super(h,D,K),this.factory=u,this.namespaceId=h}setProperty(u,h,D){"@"==h.charAt(0)?"."==h.charAt(1)&&h==os?this.disableAnimations(u,D=void 0===D||!!D):this.engine.process(this.namespaceId,u,h.slice(1),D):this.delegate.setProperty(u,h,D)}listen(u,h,D){if("@"==h.charAt(0)){const K=function ts(m){switch(m){case"body":return document.body;case"document":return document;case"window":return window;default:return m}}(u);let ie=h.slice(1),Ce="";return"@"!=ie.charAt(0)&&([ie,Ce]=function Vo(m){const u=m.indexOf(".");return[m.substring(0,u),m.slice(u+1)]}(ie)),this.engine.listen(this.namespaceId,K,ie,Ce,Fe=>{this.factory.scheduleListenerCallback(Fe._data||-1,D,Fe)})}return this.delegate.listen(u,h,D)}}const Fs=[{provide:p._j,useClass:Yr},{provide:Di,useFactory:function Ho(){return new Gi}},{provide:Br,useClass:(()=>{class m extends Br{constructor(h,D,K,ie){super(h.body,D,K)}ngOnDestroy(){this.flush()}}return m.\u0275fac=function(h){return new(h||m)(c.LFG(A.K0),c.LFG(un),c.LFG(Di),c.LFG(c.z2F))},m.\u0275prov=c.Yz7({token:m,factory:m.\u0275fac}),m})()},{provide:c.FYo,useFactory:function to(m,u,h){return new As(m,u,h)},deps:[s.se,Br,c.R0b]}],as=[{provide:un,useFactory:()=>new _n},{provide:c.QbO,useValue:"BrowserAnimations"},...Fs],Ss=[{provide:un,useClass:Mt},{provide:c.QbO,useValue:"NoopAnimations"},...Fs];let $o=(()=>{class m{static withConfig(h){return{ngModule:m,providers:h.disableAnimations?Ss:as}}}return m.\u0275fac=function(h){return new(h||m)},m.\u0275mod=c.oAB({type:m}),m.\u0275inj=c.cJS({providers:as,imports:[s.b2]}),m})();var Ts=d(82636),V=d(34793);let he=(()=>{class m{constructor(h,D){const K=D.useRef("router");h.events.subscribe(ie=>{const Ce=this.getCurrentNavigationState(h);Ce&&Ce.ignoreLoadingBar||(ie instanceof V.OD&&K.start(),(ie instanceof V.Q3||ie instanceof V.m2||ie instanceof V.gk)&&K.complete())})}getCurrentNavigationState(h){const D=h.getCurrentNavigation&&h.getCurrentNavigation();return D&&D.extras?D.extras.state:{}}}return m.\u0275fac=function(h){return new(h||m)(c.LFG(V.F0),c.LFG(Ts.dL))},m.\u0275mod=c.oAB({type:m}),m.\u0275inj=c.cJS({imports:[[V.Bz,Ts.sS],V.Bz,Ts.sS]}),m})();var Q=d(42466),ge=d(89867),nt=d(70262),Nt=d(18505);const ar=new c.OlP("NGXS_DEVTOOLS_OPTIONS");let Wr=(()=>{class m{constructor(h,D,K){this._options=h,this._injector=D,this._ngZone=K,this.devtoolsExtension=null,this.globalDevtools=c.dqk.__REDUX_DEVTOOLS_EXTENSION__||c.dqk.devToolsExtension,this.unsubscribe=null,this.connect()}ngOnDestroy(){null!==this.unsubscribe&&this.unsubscribe(),this.globalDevtools&&this.globalDevtools.disconnect()}get store(){return this._injector.get(ge.yh)}handle(h,D,K){return!this.devtoolsExtension||this._options.disabled?K(h,D):K(h,D).pipe((0,nt.K)(ie=>{const Ce=this.store.snapshot();throw this.sendToDevTools(h,D,Ce),ie}),(0,Nt.b)(ie=>{this.sendToDevTools(h,D,ie)}))}sendToDevTools(h,D,K){const ie=(0,ge.f4)(D);"@@INIT"===ie?this.devtoolsExtension.init(h):this.devtoolsExtension.send(Object.assign({},D,{action:null,type:ie}),K)}dispatched(h){if("DISPATCH"===h.type){if("JUMP_TO_ACTION"===h.payload.type||"JUMP_TO_STATE"===h.payload.type){const D=JSON.parse(h.state);D.router&&D.router.trigger&&(D.router.trigger="devtools"),this.store.reset(D)}else if("TOGGLE_ACTION"===h.payload.type)console.warn("Skip is not supported at this time.");else if("IMPORT_STATE"===h.payload.type){const{actionsById:D,computedStates:K,currentStateIndex:ie}=h.payload.nextLiftedState;this.devtoolsExtension.init(K[0].state),Object.keys(D).filter(Ce=>"0"!==Ce).forEach(Ce=>this.devtoolsExtension.send(D[Ce],K[Ce].state)),this.store.reset(K[ie].state)}}else if("ACTION"===h.type){const D=JSON.parse(h.payload);this.store.dispatch(D)}}connect(){!this.globalDevtools||this._options.disabled||(this.devtoolsExtension=this._ngZone.runOutsideAngular(()=>this.globalDevtools.connect(this._options)),this.unsubscribe=this.devtoolsExtension.subscribe(h=>{("DISPATCH"===h.type||"ACTION"===h.type)&&this._ngZone.run(()=>{this.dispatched(h)})}))}}return m.\u0275fac=function(h){return new(h||m)(c.LFG(ar),c.LFG(c.zs3),c.LFG(c.R0b))},m.\u0275prov=c.Yz7({token:m,factory:m.\u0275fac}),m})();function yr(m){return Object.assign({name:"NGXS"},m)}const Gr=new c.OlP("USER_OPTIONS");let Fi=(()=>{class m{static forRoot(h){return{ngModule:m,providers:[{provide:ge.fN,useClass:Wr,multi:!0},{provide:Gr,useValue:h},{provide:ar,useFactory:yr,deps:[Gr]}]}}}return m.\u0275fac=function(h){return new(h||m)},m.\u0275mod=c.oAB({type:m}),m.\u0275inj=c.cJS({}),m})();const Si=(m,u)=>((m,u)=>new Array(u+1).join("0"))(0,u-m.toString().length)+m;class Oi{constructor(u,h,D){this.action=u,this.store=h,this.logWriter=D}dispatched(u){const h=(0,ge.f4)(this.action),D=function Hi(m){return Si(m.getHours(),2)+":"+Si(m.getMinutes(),2)+":"+Si(m.getSeconds(),2)+"."+Si(m.getMilliseconds(),3)}(new Date);this.logWriter.startGroup(`action ${h} @ ${D}`),this._hasPayload(this.action)&&this.logWriter.logGrey("payload",Object.assign({},this.action)),this.logWriter.logGrey("prev state",u)}completed(u){this.logWriter.logGreen("next state",u),this.logWriter.endGroup()}errored(u){this.logWriter.logRedish("next state after error",this.store.snapshot()),this.logWriter.logRedish("error",u),this.logWriter.endGroup()}_hasPayload(u){return this._getNonEmptyProperties(u).length>0}_getNonEmptyProperties(u){return Object.keys(u).map(K=>u[K]).filter(K=>void 0!==K)}}class ls{constructor(u){this.options=u,this.options=this.options||{},this.logger=u.logger||console}startGroup(u){const h=this.options.collapsed?this.logger.groupCollapsed:this.logger.group;try{h.call(this.logger,u)}catch{console.log(u)}}endGroup(){try{this.logger.groupEnd()}catch{this.logger.log("\u2014\u2014 log end \u2014\u2014")}}logGrey(u,h){this.log(u,"color: #9E9E9E; font-weight: bold",h)}logGreen(u,h){this.log(u,"color: #4CAF50; font-weight: bold",h)}logRedish(u,h){this.log(u,"color: #FD8182; font-weight: bold",h)}log(u,h,D){this.isIE()?this.logger.log(u,D):this.logger.log("%c "+u,h,D)}isIE(){const u=typeof window<"u"&&window.navigator.userAgent?window.navigator.userAgent:"";let h=!1;const D=u.indexOf("MSIE "),K=u.indexOf("Trident/");return(D>-1||K>-1)&&(h=!0),h}}const Ua=new c.OlP("NGXS_LOGGER_PLUGIN_OPTIONS");let no=(()=>{class m{constructor(h,D){this._options=h,this._injector=D}handle(h,D,K){if(this._options.disabled||!this._options.filter(D,h))return K(h,D);this._logWriter=this._logWriter||new ls(this._options),this._store=this._store||this._injector.get(ge.yh);const ie=new Oi(D,this._store,this._logWriter);return ie.dispatched(h),K(h,D).pipe((0,Nt.b)(Ce=>{ie.completed(Ce)}),(0,nt.K)(Ce=>{throw ie.errored(Ce),Ce}))}}return m.\u0275fac=function(h){return new(h||m)(c.LFG(Ua),c.LFG(c.zs3))},m.\u0275prov=c.Yz7({token:m,factory:m.\u0275fac}),m})();const Do=new c.OlP("LOGGER_USER_OPTIONS");function al(m){return Object.assign({},{logger:console,collapsed:!1,disabled:!1,filter:()=>!0},m)}let ll=(()=>{class m{static forRoot(h){return{ngModule:m,providers:[{provide:ge.fN,useClass:no,multi:!0},{provide:Do,useValue:h},{provide:Ua,useFactory:al,deps:[Do]}]}}}return m.\u0275fac=function(h){return new(h||m)},m.\u0275mod=c.oAB({type:m}),m.\u0275inj=c.cJS({}),m})();const bs=new c.OlP("NGXS_STORAGE_PLUGIN_OPTION"),Qr=new c.OlP("STORAGE_ENGINE"),Ms="@@STATE",Ko="NGXS_OPTIONS_META";function ro(m){return void 0!==m&&m.key&&(m.key=function Ga(m){return Array.isArray(m)||(m=[m]),m.map(u=>(u.hasOwnProperty(Ko)&&(u=u[Ko].name),u instanceof ge.Cp?u.getName():u))}(m.key)),Object.assign({key:[Ms],storage:0,serialize:JSON.stringify,deserialize:JSON.parse,beforeSerialize:u=>u,afterDeserialize:u=>u},m)}function cl(m,u){return(0,A.PM)(u)?null:0===m.storage?localStorage:1===m.storage?sessionStorage:null}let ms=(()=>{class m{constructor(h,D,K){this._options=h,this._engine=D,this._platformId=K,this._keys=this._options.key,this._usesDefaultStateKey=1===this._keys.length&&this._keys[0]===Ms}handle(h,D,K){if((0,A.PM)(this._platformId)&&null===this._engine)return K(h,D);const ie=(0,ge.gc)(D),Ce=ie(ge.XP),Fe=ie(ge.JL),pt=Ce||Fe;let Rt=!1;if(pt){const lt=Fe&&D.addedStates;for(const qt of this._keys){if(!this._usesDefaultStateKey&&lt&&!lt.hasOwnProperty(qt))continue;let rn=this._engine.getItem(qt);if("undefined"!==rn&&null!=rn){try{const Zt=this._options.deserialize(rn);rn=this._options.afterDeserialize(Zt,qt)}catch{rn={}}this._options.migrations&&this._options.migrations.forEach(Zt=>{Zt.version===(0,ge.NA)(rn,Zt.versionKey||"version")&&(!Zt.key&&this._usesDefaultStateKey||Zt.key===qt)&&(rn=Zt.migrate(rn),Rt=!0)}),this._usesDefaultStateKey?(rn&&lt&&Object.keys(lt).length>0&&(rn=Object.keys(lt).reduce((Zt,on)=>(rn.hasOwnProperty(on)&&(Zt[on]=rn[on]),Zt),{})),h=Object.assign({},h,rn)):h=(0,ge.sO)(h,qt,rn)}}}return K(h,D).pipe((0,Nt.b)(lt=>{if(!pt||pt&&Rt)for(const qt of this._keys){let rn=lt;qt!==Ms&&(rn=(0,ge.NA)(lt,qt));try{const Zt=this._options.beforeSerialize(rn,qt);this._engine.setItem(qt,this._options.serialize(Zt))}catch{}}}))}}return m.\u0275fac=function(h){return new(h||m)(c.LFG(bs),c.LFG(Qr),c.LFG(c.Lbi))},m.\u0275prov=c.Yz7({token:m,factory:m.\u0275fac}),m})();const Ao=new c.OlP("USER_OPTIONS");let Bs=(()=>{class m{static forRoot(h){return{ngModule:m,providers:[{provide:ge.fN,useClass:ms,multi:!0},{provide:Ao,useValue:h},{provide:bs,useFactory:ro,deps:[Ao]},{provide:Qr,useFactory:cl,deps:[bs,c.Lbi]}]}}}return m.\u0275fac=function(h){return new(h||m)},m.\u0275mod=c.oAB({type:m}),m.\u0275inj=c.cJS({}),m})();var Va=d(55386),Yo=d(15861),ks=d(39300),Co=d(35684);const ga=new c.OlP("ngx-google-analytics-settings",{factory:()=>({trackingCode:"",enableTracing:!1})}),io=new c.OlP("ngx-window",{providedIn:"root",factory:()=>{const{defaultView:m}=(0,c.f3M)(A.K0);if(!m)throw new Error("Window is not available");return m}}),Ha=new c.OlP("ngx-data-layer",{providedIn:"root",factory:()=>function Qo(m){return m?m.dataLayer=m.dataLayer||[]:null}((0,c.f3M)(io))}),jr=new c.OlP("ngx-gtag-fn",{providedIn:"root",factory:()=>function Xo(m,u){return m?m.gtag=m.gtag||function(){u.push(arguments)}:null}((0,c.f3M)(io),(0,c.f3M)(Ha))});let ul=(()=>{class m{constructor(h,D,K){this.settings=h,this._document=D,this._gtag=K}get document(){return this._document}throw(h){(this.settings.enableTracing||(0,c.X6Q)())&&console&&console.error&&console.error(h)}toKeyValue(h){return h.size>0?Array.from(h).reduce((D,[K,ie])=>Object.defineProperty(D,K,{value:ie,enumerable:!0}),{}):void 0}gtag(...h){try{this._gtag(...h.filter(D=>void 0!==D))}catch(D){this.throw(D)}}event(h,D,K,ie,Ce){try{const Fe=new Map;D&&Fe.set("event_category",D),K&&Fe.set("event_label",K),ie&&Fe.set("value",ie),void 0!==Ce&&Fe.set("interaction",Ce);const pt=this.toKeyValue(Fe);pt?this.gtag("event",h,pt):this.gtag("event",h)}catch(Fe){this.throw(Fe)}}pageView(h,D,K,ie){try{const Ce=new Map([["page_path",h]]);D&&Ce.set("page_title",D),(K||this.document)&&Ce.set("page_location",K||this.document.location.href),ie&&Object.entries(ie).map(([Fe,pt])=>Ce.set(Fe,pt)),this.gtag("config",this.settings.trackingCode,this.toKeyValue(Ce))}catch(Ce){this.throw(Ce)}}appView(h,D,K,ie,Ce){try{const Fe=new Map([["screen_name",h],["app_name",D]]);K&&Fe.set("app_id",K),ie&&Fe.set("app_version",ie),Ce&&Fe.set("app_installer_id",Ce),this.gtag("event","screen_view",this.toKeyValue(Fe))}catch(Fe){this.throw(Fe)}}set(...h){try{this._gtag("set",...h)}catch(D){this.throw(D)}}exception(h,D){try{const K=new Map;h&&K.set("description",h),D&&K.set("fatal",D),this.toKeyValue(K)?this.gtag("event","exception",this.toKeyValue(K)):this.gtag("event","exception")}catch(K){this.throw(K)}}}return m.\u0275fac=function(h){return new(h||m)(c.LFG(ga),c.LFG(A.K0),c.LFG(jr))},m.\u0275prov=c.Yz7({token:m,factory:m.\u0275fac,providedIn:"root"}),m})();const qo={provide:c.ip1,multi:!0,useFactory:function Kl(m,u,h){return(0,Yo.Z)(function*(){if(!m.trackingCode)return void((0,c.X6Q)()||console.error("Empty tracking code for Google Analytics. Make sure to provide one when initializing NgxGoogleAnalyticsModule."));if(!u)return void((0,c.X6Q)()||console.error("Was not possible create or read gtag() fn. Make sure this module is running on a Browser w/ access to Window interface."));h||(0,c.X6Q)()||console.error("Was not possible to access Document interface. Make sure this module is running on a Browser w/ access do Document interface."),m.uri=m.uri||`https://www.googletagmanager.com/gtag/js?id=${m.trackingCode}`,m.initCommands=m?.initCommands??[],m.initCommands.find(ie=>"config"===ie.command)||m.initCommands.unshift({command:"config",values:[m.trackingCode]}),m.initCommands.find(ie=>"js"===ie.command)||m.initCommands.unshift({command:"js",values:[new Date]});for(const ie of m.initCommands)u(ie.command,...ie.values);const D=h.createElement("script");D.async=!0,D.src=m.uri,m.nonce&&D.setAttribute("nonce",m.nonce),h.getElementsByTagName("head")[0].appendChild(D)})},deps:[ga,jr,A.K0]},so=new c.OlP("ngx-google-analytics-routing-settings",{factory:()=>({})}),ea={provide:c.tb,multi:!0,useFactory:function Yl(m,u){return function(){var h=(0,Yo.Z)(function*(D){const K=D.injector.get(V.F0),{include:ie=[],exclude:Ce=[]}=m??{},Fe=So(ie),pt=So(Ce),Rt=K.events.pipe((0,ks.h)(lt=>lt instanceof V.m2),(0,Co.T)(1),(0,ks.h)(lt=>!(Fe.length>0)||Fe.some(qt=>qt.test(lt.urlAfterRedirects))),(0,ks.h)(lt=>!(pt.length>0&&pt.some(qt=>qt.test(lt.urlAfterRedirects))))).subscribe(lt=>u.pageView(lt.urlAfterRedirects,void 0));D.onDestroy(()=>Rt.unsubscribe())});return function(D){return h.apply(this,arguments)}}()},deps:[so,ul]};function So(m){return m.map(u=>u instanceof RegExp?u:new RegExp(`^${u.replace("*",".*")}$`,"i"))}let oo=(()=>{class m{static forRoot(h,D=[],K,ie,Ce){return{ngModule:m,providers:[{provide:ga,useValue:{trackingCode:h,initCommands:D,uri:K,enableTracing:ie,nonce:Ce}},qo]}}}return m.\u0275fac=function(h){return new(h||m)},m.\u0275mod=c.oAB({type:m}),m.\u0275inj=c.cJS({imports:[[]]}),m})(),Us=(()=>{class m{static forRoot(h){return{ngModule:m,providers:[{provide:so,useValue:h??{}}]}}}return m.\u0275fac=function(h){return new(h||m)},m.\u0275mod=c.oAB({type:m}),m.\u0275inj=c.cJS({providers:[ea],imports:[[A.ez,oo]]}),m})();var ao=d(21094),dl=d(68968),ta=d(71661),Is=d(26046),Gs=d(72476),To=d(92340),Vs=d(50319),_s=d(95394),rs=d(46822),na=d(52925);const ma={useHash:!1,anchorScrolling:"enabled",relativeLinkResolution:"legacy",scrollPositionRestoration:"enabled"},cs=na.b,Os=[{path:"",canActivate:[Vs.a],loadChildren:()=>Promise.all([d.e(7392),d.e(4144),d.e(4385),d.e(7331),d.e(5217),d.e(5292),d.e(3821),d.e(5137)]).then(d.bind(d,5137)).then(m=>m.ShellModule)},{path:cs.AUTENTICACAO,loadChildren:()=>Promise.all([d.e(4144),d.e(5292),d.e(5401)]).then(d.bind(d,85401)).then(m=>m.AuthModule)},{path:cs.LIVRO_DIDATICO,canActivate:[rs.f],canLoad:[_s.r],loadChildren:()=>Promise.all([d.e(7084),d.e(7392),d.e(4144),d.e(7331),d.e(8592),d.e(6754)]).then(d.bind(d,55862)).then(m=>m.DidaticBookModule)},{path:cs.INTEGRACAO_LIVRO,canActivate:[rs.f],canLoad:[_s.r],loadChildren:()=>Promise.all([d.e(7084),d.e(7392),d.e(4144),d.e(7331),d.e(8592),d.e(6754)]).then(d.bind(d,55862)).then(m=>m.DidaticBookModule)},{path:cs.AIM,canActivate:[rs.f],canLoad:[_s.r],pathMatch:"full",loadChildren:()=>Promise.all([d.e(7392),d.e(4144),d.e(4385),d.e(7331),d.e(5217),d.e(5189)]).then(d.bind(d,41057)).then(m=>m.AimModule)},{path:cs.PAGAR_RENEGOCIACAO,data:{title:"Pagar renegocia\xe7\xe3o"},loadChildren:()=>Promise.all([d.e(671),d.e(7084),d.e(9602),d.e(978),d.e(391),d.e(7392),d.e(4144),d.e(4385),d.e(7331),d.e(5217),d.e(5292),d.e(5339),d.e(2673)]).then(d.bind(d,45339)).then(m=>m.RenegotiationPaymentFormModule)}];let hl=(()=>{class m{}return m.\u0275fac=function(h){return new(h||m)},m.\u0275mod=c.oAB({type:m}),m.\u0275inj=c.cJS({imports:[V.Bz.forRoot(Os,ma),V.Bz]}),m})(),Tr=(()=>{class m{}return m.PTBR="pt-BR",m.ENUS="en-US",m.URL="./assets/i18n",m})();var _a,Sn,ja,va,Wa,Hs,bo=d(343),ya={},Ea=[],ii=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function $i(m,u){for(var h in u)m[h]=u[h];return m}function lo(m){var u=m.parentNode;u&&u.removeChild(m)}function ji(m,u,h){var D,K,ie,Ce={};for(ie in u)"key"==ie?D=u[ie]:"ref"==ie?K=u[ie]:Ce[ie]=u[ie];if(arguments.length>2&&(Ce.children=arguments.length>3?_a.call(arguments,2):h),"function"==typeof m&&null!=m.defaultProps)for(ie in m.defaultProps)void 0===Ce[ie]&&(Ce[ie]=m.defaultProps[ie]);return M(m,Ce,D,K,null)}function M(m,u,h,D,K){var ie={type:m,props:u,key:h,ref:D,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:K??++ja};return null==K&&null!=Sn.vnode&&Sn.vnode(ie),ie}function S(m){return m.children}function z(m,u){this.props=m,this.context=u}function re(m,u){if(null==u)return m.__?re(m.__,m.__.__k.indexOf(m)+1):null;for(var h;u<m.__k.length;u++)if(null!=(h=m.__k[u])&&null!=h.__e)return h.__e;return"function"==typeof m.type?re(m):null}function _e(m){var u,h;if(null!=(m=m.__)&&null!=m.__c){for(m.__e=m.__c.base=null,u=0;u<m.__k.length;u++)if(null!=(h=m.__k[u])&&null!=h.__e){m.__e=m.__c.base=h.__e;break}return _e(m)}}function Ye(m){(!m.__d&&(m.__d=!0)&&va.push(m)&&!Xe.__r++||Wa!==Sn.debounceRendering)&&((Wa=Sn.debounceRendering)||setTimeout)(Xe)}function Xe(){for(var m;Xe.__r=va.length;)m=va.sort(function(u,h){return u.__v.__b-h.__v.__b}),va=[],m.some(function(u){var h,D,K,ie,Ce,Fe;u.__d&&(Ce=(ie=(h=u).__v).__e,(Fe=h.__P)&&(D=[],(K=$i({},ie)).__v=ie.__v+1,ra(Fe,ie,K,h.__n,void 0!==Fe.ownerSVGElement,null!=ie.__h?[Ce]:null,D,Ce??re(ie),ie.__h),Ps(D,ie),ie.__e!=Ce&&_e(ie)))})}function kt(m,u,h,D,K,ie,Ce,Fe,pt,Rt){var lt,qt,rn,Zt,on,wn,xn,Vn=D&&D.__k||Ea,br=Vn.length;for(h.__k=[],lt=0;lt<u.length;lt++)if(null!=(Zt=h.__k[lt]=null==(Zt=u[lt])||"boolean"==typeof Zt?null:"string"==typeof Zt||"number"==typeof Zt||"bigint"==typeof Zt?M(null,Zt,null,null,Zt):Array.isArray(Zt)?M(S,{children:Zt},null,null,null):Zt.__b>0?M(Zt.type,Zt.props,Zt.key,Zt.ref?Zt.ref:null,Zt.__v):Zt)){if(Zt.__=h,Zt.__b=h.__b+1,null===(rn=Vn[lt])||rn&&Zt.key==rn.key&&Zt.type===rn.type)Vn[lt]=void 0;else for(qt=0;qt<br;qt++){if((rn=Vn[qt])&&Zt.key==rn.key&&Zt.type===rn.type){Vn[qt]=void 0;break}rn=null}ra(m,Zt,rn=rn||ya,K,ie,Ce,Fe,pt,Rt),on=Zt.__e,(qt=Zt.ref)&&rn.ref!=qt&&(xn||(xn=[]),rn.ref&&xn.push(rn.ref,null,Zt),xn.push(qt,Zt.__c||on,Zt)),null!=on?(null==wn&&(wn=on),"function"==typeof Zt.type&&Zt.__k===rn.__k?Zt.__d=pt=dn(Zt,pt,m):pt=vn(m,Zt,rn,Vn,on,pt),"function"==typeof h.type&&(h.__d=pt)):pt&&rn.__e==pt&&pt.parentNode!=m&&(pt=re(rn))}for(h.__e=wn,lt=br;lt--;)null!=Vn[lt]&&pl(Vn[lt],Vn[lt]);if(xn)for(lt=0;lt<xn.length;lt++)js(xn[lt],xn[++lt],xn[++lt])}function dn(m,u,h){for(var D,K=m.__k,ie=0;K&&ie<K.length;ie++)(D=K[ie])&&(D.__=m,u="function"==typeof D.type?dn(D,u,h):vn(h,D,D,K,D.__e,u));return u}function Pn(m,u){return u=u||[],null==m||"boolean"==typeof m||(Array.isArray(m)?m.some(function(h){Pn(h,u)}):u.push(m)),u}function vn(m,u,h,D,K,ie){var Ce,Fe,pt;if(void 0!==u.__d)Ce=u.__d,u.__d=void 0;else if(null==h||K!=ie||null==K.parentNode)e:if(null==ie||ie.parentNode!==m)m.appendChild(K),Ce=null;else{for(Fe=ie,pt=0;(Fe=Fe.nextSibling)&&pt<D.length;pt+=2)if(Fe==K)break e;m.insertBefore(K,ie),Ce=ie}return void 0!==Ce?Ce:K.nextSibling}function fi(m,u,h){"-"===u[0]?m.setProperty(u,h):m[u]=null==h?"":"number"!=typeof h||ii.test(u)?h:h+"px"}function pi(m,u,h,D,K){var ie;e:if("style"===u)if("string"==typeof h)m.style.cssText=h;else{if("string"==typeof D&&(m.style.cssText=D=""),D)for(u in D)h&&u in h||fi(m.style,u,"");if(h)for(u in h)D&&h[u]===D[u]||fi(m.style,u,h[u])}else if("o"===u[0]&&"n"===u[1])ie=u!==(u=u.replace(/Capture$/,"")),u=u.toLowerCase()in m?u.toLowerCase().slice(2):u.slice(2),m.l||(m.l={}),m.l[u+ie]=h,h?D||m.addEventListener(u,ie?Jr:$s,ie):m.removeEventListener(u,ie?Jr:$s,ie);else if("dangerouslySetInnerHTML"!==u){if(K)u=u.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==u&&"list"!==u&&"form"!==u&&"tabIndex"!==u&&"download"!==u&&u in m)try{m[u]=h??"";break e}catch{}"function"==typeof h||(null==h||!1===h&&-1==u.indexOf("-")?m.removeAttribute(u):m.setAttribute(u,h))}}function $s(m){this.l[m.type+!1](Sn.event?Sn.event(m):m)}function Jr(m){this.l[m.type+!0](Sn.event?Sn.event(m):m)}function ra(m,u,h,D,K,ie,Ce,Fe,pt){var Rt,lt,qt,rn,Zt,on,wn,xn,Vn,br,Vr,kr,Xs,Wi,oi,ei=u.type;if(void 0!==u.constructor)return null;null!=h.__h&&(pt=h.__h,Fe=u.__e=h.__e,u.__h=null,ie=[Fe]),(Rt=Sn.__b)&&Rt(u);try{e:if("function"==typeof ei){if(xn=u.props,Vn=(Rt=ei.contextType)&&D[Rt.__c],br=Rt?Vn?Vn.props.value:Rt.__:D,h.__c?wn=(lt=u.__c=h.__c).__=lt.__E:("prototype"in ei&&ei.prototype.render?u.__c=lt=new ei(xn,br):(u.__c=lt=new z(xn,br),lt.constructor=ei,lt.render=Xl),Vn&&Vn.sub(lt),lt.props=xn,lt.state||(lt.state={}),lt.context=br,lt.__n=D,qt=lt.__d=!0,lt.__h=[],lt._sb=[]),null==lt.__s&&(lt.__s=lt.state),null!=ei.getDerivedStateFromProps&&(lt.__s==lt.state&&(lt.__s=$i({},lt.__s)),$i(lt.__s,ei.getDerivedStateFromProps(xn,lt.__s))),rn=lt.props,Zt=lt.state,qt)null==ei.getDerivedStateFromProps&&null!=lt.componentWillMount&&lt.componentWillMount(),null!=lt.componentDidMount&&lt.__h.push(lt.componentDidMount);else{if(null==ei.getDerivedStateFromProps&&xn!==rn&&null!=lt.componentWillReceiveProps&&lt.componentWillReceiveProps(xn,br),!lt.__e&&null!=lt.shouldComponentUpdate&&!1===lt.shouldComponentUpdate(xn,lt.__s,br)||u.__v===h.__v){for(lt.props=xn,lt.state=lt.__s,u.__v!==h.__v&&(lt.__d=!1),lt.__v=u,u.__e=h.__e,u.__k=h.__k,u.__k.forEach(function(Pi){Pi&&(Pi.__=u)}),Vr=0;Vr<lt._sb.length;Vr++)lt.__h.push(lt._sb[Vr]);lt._sb=[],lt.__h.length&&Ce.push(lt);break e}null!=lt.componentWillUpdate&&lt.componentWillUpdate(xn,lt.__s,br),null!=lt.componentDidUpdate&&lt.__h.push(function(){lt.componentDidUpdate(rn,Zt,on)})}if(lt.context=br,lt.props=xn,lt.__v=u,lt.__P=m,kr=Sn.__r,Xs=0,"prototype"in ei&&ei.prototype.render){for(lt.state=lt.__s,lt.__d=!1,kr&&kr(u),Rt=lt.render(lt.props,lt.state,lt.context),Wi=0;Wi<lt._sb.length;Wi++)lt.__h.push(lt._sb[Wi]);lt._sb=[]}else do{lt.__d=!1,kr&&kr(u),Rt=lt.render(lt.props,lt.state,lt.context),lt.state=lt.__s}while(lt.__d&&++Xs<25);lt.state=lt.__s,null!=lt.getChildContext&&(D=$i($i({},D),lt.getChildContext())),qt||null==lt.getSnapshotBeforeUpdate||(on=lt.getSnapshotBeforeUpdate(rn,Zt)),oi=null!=Rt&&Rt.type===S&&null==Rt.key?Rt.props.children:Rt,kt(m,Array.isArray(oi)?oi:[oi],u,h,D,K,ie,Ce,Fe,pt),lt.base=u.__e,u.__h=null,lt.__h.length&&Ce.push(lt),wn&&(lt.__E=lt.__=null),lt.__e=!1}else null==ie&&u.__v===h.__v?(u.__k=h.__k,u.__e=h.__e):u.__e=function fl(m,u,h,D,K,ie,Ce,Fe){var pt,Rt,lt,qt=h.props,rn=u.props,Zt=u.type,on=0;if("svg"===Zt&&(K=!0),null!=ie)for(;on<ie.length;on++)if((pt=ie[on])&&"setAttribute"in pt==!!Zt&&(Zt?pt.localName===Zt:3===pt.nodeType)){m=pt,ie[on]=null;break}if(null==m){if(null===Zt)return document.createTextNode(rn);m=K?document.createElementNS("http://www.w3.org/2000/svg",Zt):document.createElement(Zt,rn.is&&rn),ie=null,Fe=!1}if(null===Zt)qt===rn||Fe&&m.data===rn||(m.data=rn);else{if(ie=ie&&_a.call(m.childNodes),Rt=(qt=h.props||ya).dangerouslySetInnerHTML,lt=rn.dangerouslySetInnerHTML,!Fe){if(null!=ie)for(qt={},on=0;on<m.attributes.length;on++)qt[m.attributes[on].name]=m.attributes[on].value;(lt||Rt)&&(lt&&(Rt&&lt.__html==Rt.__html||lt.__html===m.innerHTML)||(m.innerHTML=lt&&lt.__html||""))}if(function kn(m,u,h,D,K){var ie;for(ie in h)"children"===ie||"key"===ie||ie in u||pi(m,ie,null,h[ie],D);for(ie in u)K&&"function"!=typeof u[ie]||"children"===ie||"key"===ie||"value"===ie||"checked"===ie||h[ie]===u[ie]||pi(m,ie,u[ie],h[ie],D)}(m,rn,qt,K,Fe),lt)u.__k=[];else if(on=u.props.children,kt(m,Array.isArray(on)?on:[on],u,h,D,K&&"foreignObject"!==Zt,ie,Ce,ie?ie[0]:h.__k&&re(h,0),Fe),null!=ie)for(on=ie.length;on--;)null!=ie[on]&&lo(ie[on]);Fe||("value"in rn&&void 0!==(on=rn.value)&&(on!==m.value||"progress"===Zt&&!on||"option"===Zt&&on!==qt.value)&&pi(m,"value",on,qt.value,!1),"checked"in rn&&void 0!==(on=rn.checked)&&on!==m.checked&&pi(m,"checked",on,qt.checked,!1))}return m}(h.__e,u,h,D,K,ie,Ce,pt);(Rt=Sn.diffed)&&Rt(u)}catch(Pi){u.__v=null,(pt||null!=ie)&&(u.__e=Fe,u.__h=!!pt,ie[ie.indexOf(Fe)]=null),Sn.__e(Pi,u,h)}}function Ps(m,u){Sn.__c&&Sn.__c(u,m),m.some(function(h){try{m=h.__h,h.__h=[],m.some(function(D){D.call(h)})}catch(D){Sn.__e(D,h.__v)}})}function js(m,u,h){try{"function"==typeof m?m(u):m.current=u}catch(D){Sn.__e(D,h)}}function pl(m,u,h){var D,K;if(Sn.unmount&&Sn.unmount(m),(D=m.ref)&&(D.current&&D.current!==m.__e||js(D,null,u)),null!=(D=m.__c)){if(D.componentWillUnmount)try{D.componentWillUnmount()}catch(ie){Sn.__e(ie,u)}D.base=D.__P=null,m.__c=void 0}if(D=m.__k)for(K=0;K<D.length;K++)D[K]&&pl(D[K],u,h||"function"!=typeof m.type);h||null==m.__e||lo(m.__e),m.__=m.__e=m.__d=void 0}function Xl(m,u,h){return this.constructor(m,h)}function Rs(m,u,h){var D,K,ie;Sn.__&&Sn.__(m,u),K=(D="function"==typeof h)?null:h&&h.__k||u.__k,ie=[],ra(u,m=(!D&&h||u).__k=ji(S,null,[m]),K||ya,ya,void 0!==u.ownerSVGElement,!D&&h?[h]:K?null:u.firstChild?_a.call(u.childNodes):null,ie,!D&&h?h:K?K.__e:u.firstChild,D),Ps(ie,m)}_a=Ea.slice,Sn={__e:function(m,u,h,D){for(var K,ie,Ce;u=u.__;)if((K=u.__c)&&!K.__)try{if((ie=K.constructor)&&null!=ie.getDerivedStateFromError&&(K.setState(ie.getDerivedStateFromError(m)),Ce=K.__d),null!=K.componentDidCatch&&(K.componentDidCatch(m,D||{}),Ce=K.__d),Ce)return K.__E=K}catch(Fe){m=Fe}throw m}},ja=0,z.prototype.setState=function(m,u){var h;h=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=$i({},this.state),"function"==typeof m&&(m=m($i({},h),this.props)),m&&$i(h,m),null!=m&&this.__v&&(u&&this._sb.push(u),Ye(this))},z.prototype.forceUpdate=function(m){this.__v&&(this.__e=!0,m&&this.__h.push(m),Ye(this))},z.prototype.render=S,va=[],Xe.__r=0,Hs=0;var wr,za,Zl,gl=[],co=[],uo=Sn.__b,Jl=Sn.__r,qr=Sn.diffed,ml=Sn.__c,_l=Sn.unmount;function nc(){for(var m;m=gl.shift();)if(m.__P&&m.__H)try{m.__H.__h.forEach(zs),m.__H.__h.forEach(Po),m.__H.__h=[]}catch(u){m.__H.__h=[],Sn.__e(u,m.__v)}}Sn.__b=function(m){"function"!=typeof m.type||m.__m||null===m.__?m.__m||(m.__m=m.__&&m.__.__m?m.__.__m:""):m.__m=(m.__&&m.__.__m?m.__.__m:"")+(m.__&&m.__.__k?m.__.__k.indexOf(m):0),wr=null,uo&&uo(m)},Sn.__r=function(m){Jl&&Jl(m);var u=(wr=m.__c).__H;u&&(za===wr?(u.__h=[],wr.__h=[],u.__.forEach(function(h){h.__N&&(h.__=h.__N),h.__V=co,h.__N=h.i=void 0})):(u.__h.forEach(zs),u.__h.forEach(Po),u.__h=[])),za=wr},Sn.diffed=function(m){qr&&qr(m);var u=m.__c;u&&u.__H&&(u.__H.__h.length&&(1!==gl.push(u)&&Zl===Sn.requestAnimationFrame||((Zl=Sn.requestAnimationFrame)||tu)(nc)),u.__H.__.forEach(function(h){h.i&&(h.__H=h.i),h.__V!==co&&(h.__=h.__V),h.i=void 0,h.__V=co})),za=wr=null},Sn.__c=function(m,u){u.some(function(h){try{h.__h.forEach(zs),h.__h=h.__h.filter(function(D){return!D.__||Po(D)})}catch(D){u.some(function(K){K.__h&&(K.__h=[])}),u=[],Sn.__e(D,h.__v)}}),ml&&ml(m,u)},Sn.unmount=function(m){_l&&_l(m);var u,h=m.__c;h&&h.__H&&(h.__H.__.forEach(function(D){try{zs(D)}catch(K){u=K}}),h.__H=void 0,u&&Sn.__e(u,h.__v))};var yl="function"==typeof requestAnimationFrame;function tu(m){var u,h=function(){clearTimeout(D),yl&&cancelAnimationFrame(u),setTimeout(m)},D=setTimeout(h,100);yl&&(u=requestAnimationFrame(h))}function zs(m){var u=wr,h=m.__c;"function"==typeof h&&(m.__c=void 0,h()),wr=u}function Po(m){var u=wr;m.__c=m.__(),wr=u}function Qa(m,u){for(var h in m)if("__source"!==h&&!(h in u))return!0;for(var D in u)if("__source"!==D&&m[D]!==u[D])return!0;return!1}function rc(m){this.props=m}(rc.prototype=new z).isPureReactComponent=!0,rc.prototype.shouldComponentUpdate=function(m,u){return Qa(this.props,m)||Qa(this.state,u)};var ic=Sn.__b;Sn.__b=function(m){m.type&&m.type.__f&&m.ref&&(m.props.ref=m.ref,m.ref=null),ic&&ic(m)},typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref");var oc=Sn.__e;Sn.__e=function(m,u,h,D){if(m.then)for(var K,ie=u;ie=ie.__;)if((K=ie.__c)&&K.__c)return null==u.__e&&(u.__e=h.__e,u.__k=h.__k),K.__c(m,u);oc(m,u,h,D)};var $u=Sn.unmount;function Al(m,u,h){return m&&(m.__c&&m.__c.__H&&(m.__c.__H.__.forEach(function(D){"function"==typeof D.__c&&D.__c()}),m.__c.__H=null),null!=(m=function El(m,u){for(var h in u)m[h]=u[h];return m}({},m)).__c&&(m.__c.__P===h&&(m.__c.__P=u),m.__c=null),m.__k=m.__k&&m.__k.map(function(D){return Al(D,u,h)})),m}function ju(m,u,h){return m&&(m.__v=null,m.__k=m.__k&&m.__k.map(function(D){return ju(D,u,h)}),m.__c&&m.__c.__P===u&&(m.__e&&h.insertBefore(m.__e,m.__d),m.__c.__e=!0,m.__c.__P=h)),m}function sa(){this.__u=0,this.t=null,this.__b=null}function ac(m){var u=m.__.__c;return u&&u.__a&&u.__a(m)}function Ks(){this.u=null,this.o=null}Sn.unmount=function(m){var u=m.__c;u&&u.__R&&u.__R(),u&&!0===m.__h&&(m.type=null),$u&&$u(m)},(sa.prototype=new z).__c=function(m,u){var h=u.__c,D=this;null==D.t&&(D.t=[]),D.t.push(h);var K=ac(D.__v),ie=!1,Ce=function(){ie||(ie=!0,h.__R=null,K?K(Fe):Fe())};h.__R=Ce;var Fe=function(){if(!--D.__u){if(D.state.__a){var Rt=D.state.__a;D.__v.__k[0]=ju(Rt,Rt.__c.__P,Rt.__c.__O)}var lt;for(D.setState({__a:D.__b=null});lt=D.t.pop();)lt.forceUpdate()}},pt=!0===u.__h;D.__u++||pt||D.setState({__a:D.__b=D.__v.__k[0]}),m.then(Ce,Ce)},sa.prototype.componentWillUnmount=function(){this.t=[]},sa.prototype.render=function(m,u){if(this.__b){if(this.__v.__k){var h=document.createElement("div"),D=this.__v.__k[0].__c;this.__v.__k[0]=Al(this.__b,h,D.__O=D.__P)}this.__b=null}var K=u.__a&&ji(S,null,m.fallback);return K&&(K.__h=null),[ji(S,null,u.__a?null:m.children),K]};var Cl=function(m,u,h){if(++h[1]===h[0]&&m.o.delete(u),m.props.revealOrder&&("t"!==m.props.revealOrder[0]||!m.o.size))for(h=m.u;h;){for(;h.length>3;)h.pop()();if(h[1]<h[0])break;m.u=h=h[2]}};function Ma(m){return this.getChildContext=function(){return m.context},m.children}function su(m){var u=this,h=m.i;u.componentWillUnmount=function(){Rs(null,u.l),u.l=null,u.i=null},u.i&&u.i!==h&&u.componentWillUnmount(),m.__v?(u.l||(u.i=h,u.l={nodeType:1,parentNode:h,childNodes:[],appendChild:function(D){this.childNodes.push(D),u.i.appendChild(D)},insertBefore:function(D,K){this.childNodes.push(D),u.i.appendChild(D)},removeChild:function(D){this.childNodes.splice(this.childNodes.indexOf(D)>>>1,1),u.i.removeChild(D)}}),Rs(ji(Ma,{context:u.context},m.__v),u.l)):u.l&&u.componentWillUnmount()}(Ks.prototype=new z).__a=function(m){var u=this,h=ac(u.__v),D=u.o.get(m);return D[0]++,function(K){var ie=function(){u.props.revealOrder?(D.push(K),Cl(u,m,D)):K()};h?h(ie):ie()}},Ks.prototype.render=function(m){this.u=null,this.o=new Map;var u=Pn(m.children);m.revealOrder&&"b"===m.revealOrder[0]&&u.reverse();for(var h=u.length;h--;)this.o.set(u[h],this.u=[1,0,this.u]);return m.children},Ks.prototype.componentDidUpdate=Ks.prototype.componentDidMount=function(){var m=this;this.o.forEach(function(u,h){Cl(m,h,u)})};var Wu=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Sl=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Tl=typeof document<"u",uc=function(m){return(typeof Symbol<"u"&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(m)};z.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(m){Object.defineProperty(z.prototype,m,{configurable:!0,get:function(){return this["UNSAFE_"+m]},set:function(u){Object.defineProperty(this,m,{configurable:!0,writable:!0,value:u})}})});var ho=Sn.event;function ou(){}function au(){return this.cancelBubble}function lu(){return this.defaultPrevented}Sn.event=function(m){return ho&&(m=ho(m)),m.persist=ou,m.isPropagationStopped=au,m.isDefaultPrevented=lu,m.nativeEvent=m};var Za={configurable:!0,get:function(){return this.class}},ws=Sn.vnode;Sn.vnode=function(m){var u=m.type,h=m.props,D=h;if("string"==typeof u){var K=-1===u.indexOf("-");for(var ie in D={},h){var Ce=h[ie];Tl&&"children"===ie&&"noscript"===u||"value"===ie&&"defaultValue"in h&&null==Ce||("defaultValue"===ie&&"value"in h&&null==h.value?ie="value":"download"===ie&&!0===Ce?Ce="":/ondoubleclick/i.test(ie)?ie="ondblclick":/^onchange(textarea|input)/i.test(ie+u)&&!uc(h.type)?ie="oninput":/^onfocus$/i.test(ie)?ie="onfocusin":/^onblur$/i.test(ie)?ie="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(ie)?ie=ie.toLowerCase():K&&Sl.test(ie)?ie=ie.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===Ce&&(Ce=void 0),/^oninput$/i.test(ie)&&(ie=ie.toLowerCase(),D[ie]&&(ie="oninputCapture")),D[ie]=Ce)}"select"==u&&D.multiple&&Array.isArray(D.value)&&(D.value=Pn(h.children).forEach(function(Fe){Fe.props.selected=-1!=D.value.indexOf(Fe.props.value)})),"select"==u&&null!=D.defaultValue&&(D.value=Pn(h.children).forEach(function(Fe){Fe.props.selected=D.multiple?-1!=D.defaultValue.indexOf(Fe.props.value):D.defaultValue==Fe.props.value})),m.props=D,h.class!=h.className&&(Za.enumerable="className"in h,null!=h.className&&(D.class=h.className),Object.defineProperty(D,"className",Za))}m.$$typeof=Wu,ws&&ws(m)};var Ro=Sn.__r;Sn.__r=function(m){Ro&&Ro(m)};let Ia=typeof globalThis<"u"?globalThis:window;Ia.FullCalendarVDom?console.warn("FullCalendar VDOM already loaded"):Ia.FullCalendarVDom={Component:z,createElement:ji,render:Rs,createRef:function O(){return{current:null}},Fragment:S,createContext:function Ku(m){let u=function Io(m,u){var h={__c:u="__cC"+Hs++,__:m,Consumer:function(D,K){return D.children(K)},Provider:function(D){var K,ie;return this.getChildContext||(K=[],(ie={})[u]=this,this.getChildContext=function(){return ie},this.shouldComponentUpdate=function(Ce){this.props.value!==Ce.value&&K.some(Ye)},this.sub=function(Ce){K.push(Ce);var Fe=Ce.componentWillUnmount;Ce.componentWillUnmount=function(){K.splice(K.indexOf(Ce),1),Fe&&Fe.call(Ce)}}),D.children}};return h.Provider.__=h.Consumer.contextType=h}(m),h=u.Provider;return u.Provider=function(){let D=!this.getChildContext,K=h.apply(this,arguments);if(D){let ie=[];this.shouldComponentUpdate=Ce=>{this.props.value!==Ce.value&&ie.forEach(Fe=>{Fe.context=Ce.value,Fe.forceUpdate()})},this.sub=Ce=>{ie.push(Ce);let Fe=Ce.componentWillUnmount;Ce.componentWillUnmount=()=>{ie.splice(ie.indexOf(Ce),1),Fe&&Fe.call(Ce)}}}return K},u},createPortal:function cc(m,u){var h=ji(su,{__v:m,i:u});return h.containerInfo=u,h},flushSync:function qa(m){m();let u=Sn.debounceRendering,h=[];for(Sn.debounceRendering=function D(K){h.push(K)},Rs(ji(zu,{}),document.createElement("div"));h.length;)h.shift()();Sn.debounceRendering=u},unmountComponentAtNode:function mc(m){Rs(null,m)}};class zu extends z{render(){return ji("div",{})}componentDidMount(){this.setState({})}}var gi=d(50929);class Oa extends gi.zeW{constructor(u,h={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=D=>{switch(D.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=D=>{this.currentData=D,this.renderRunner.request(D.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:D}=this;(0,gi.iWm)(()=>{(0,gi.sYA)((0,gi.azq)(gi.Tdg,{options:D.calendarOptions,theme:D.theme,emitter:D.emitter},(K,ie,Ce,Fe)=>(this.setClassNames(K),this.setHeight(ie),(0,gi.azq)(gi.hiv.Provider,{value:this.customContentRenderId},(0,gi.azq)(gi.BdM,Object.assign({isHeightAuto:Ce,forPrint:Fe},D))))),this.el)})}else this.isRendered&&(this.isRendered=!1,(0,gi.uyT)(this.el),this.setClassNames([]),this.setHeight(""))},this.el=u,this.renderRunner=new gi.snJ(this.handleRenderRequest),new gi.FEm({optionOverrides:h,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}get view(){return this.currentData.viewApi}render(){let u=this.isRendering;u?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),u&&this.updateSize()}destroy(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}updateSize(){(0,gi.iWm)(()=>{super.updateSize()})}batchRendering(u){this.renderRunner.pause("batchRendering"),u(),this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",!0)}resetOptions(u,h){this.currentDataManager.resetOptions(u,h)}setClassNames(u){if(!(0,gi.CnA)(u,this.currentClassNames)){let{classList:h}=this.el;for(let D of this.currentClassNames)h.remove(D);for(let D of u)h.add(D);this.currentClassNames=u}}setHeight(u){(0,gi.oWe)(this.el,"height",u)}}class Pa extends HTMLElement{constructor(){super(...arguments),this._calendar=null,this._options=null}connectedCallback(){this._handleOptionsStr(this.getAttribute("options"))}disconnectedCallback(){this._handleOptionsStr(null)}attributeChangedCallback(u,h,D){"options"===u&&this._handleOptionsStr(D)}get options(){return this._options}set options(u){this._handleOptions(u)}getApi(){return this._calendar}_handleOptionsStr(u){this._handleOptions(u?JSON.parse(u):null)}_handleOptions(u){if(u){if(this._calendar)this._calendar.resetOptions(u);else{this.innerHTML="<div></div>";let h=this.querySelector("div"),D=new Oa(h,u);D.render(),this._calendar=D}this._options=u}else this._calendar&&(this._calendar.destroy(),this._calendar=null),this._options=null}}var Qu=d(77579),wo=d(54004);let _c=(()=>{class m{constructor(){this.subject$=new Qu.x}emit(h){this.subject$.next(h)}on(h,D){return this.subject$.pipe((0,ks.h)(K=>K.name===h),(0,wo.U)(K=>K.value)).subscribe(D)}}return m.\u0275fac=function(h){return new(h||m)},m.\u0275prov=c.Yz7({token:m,factory:m.\u0275fac,providedIn:"root"}),m})();!function Yu(m="full-calendar"){customElements.define(m,Pa)}();let vu=(()=>{class m{constructor(h,D,K){this.translate=h,this.eventBus=D,this.store=K,this.title="lms-client",this.setTranslate()}ngOnInit(){this.eventBusSub=this.eventBus.on("logout",()=>{this.store.dispatch(new bo.R)})}ngOnDestroy(){this.eventBusSub?.unsubscribe()}setTranslate(){this.translate.addLangs([Tr.PTBR,Tr.ENUS]),this.translate.setDefaultLang(Tr.PTBR)}}return m.\u0275fac=function(h){return new(h||m)(c.Y36(Q.sK),c.Y36(_c),c.Y36(ge.yh))},m.\u0275cmp=c.Xpm({type:m,selectors:[["app-root"]],decls:1,vars:0,template:function(h,D){1&h&&c._UZ(0,"router-outlet")},dependencies:[V.lC]}),m})();var vc=d(40199),Xu=d(69751),el=d(28576);let Ra=(()=>{class m{constructor(h){this.loadingBarService=h,this.whiteList=el.Pp,this.requests=[]}removeRequest(h){const D=this.requests.indexOf(h);D>=0&&this.requests.splice(D,1),this.requests.length>0?this.loadingBarService.useRef().start():this.loadingBarService.useRef().stop()}intercept(h,D){return this.whiteList.find(ie=>h.url.includes(ie))?D.handle(h):(this.requests.push(h),this.loadingBarService.useRef().start(),new Xu.y(ie=>{const Ce=D.handle(h).subscribe(Fe=>{Fe instanceof w.Zn&&(this.removeRequest(h),ie.next(Fe))},Fe=>{this.removeRequest(h),ie.error(Fe)},()=>{this.removeRequest(h),ie.complete()});return()=>{this.removeRequest(h),Ce.unsubscribe()}}))}}return m.\u0275fac=function(h){return new(h||m)(c.LFG(Ts.dL))},m.\u0275prov=c.Yz7({token:m,factory:m.\u0275fac}),m})();var yc=d(61135),tl=d(62843),Ec=d(63900),si=d(95698);class Dc{constructor(u,h){this.name=u,this.value=h}}var Ac=d(34829),Il=d(35300),Ol=d(57990);const Sc=[{provide:w.TP,useClass:(()=>{class m{constructor(h,D,K,ie){this.store=h,this.router=D,this.authService=K,this.eventBusService=ie,this.whiteList=el.Im,this.isRefreshing=!1,this.refreshTokenSubject=new yc.X(null)}intercept(h,D){const K=new RegExp(this.whiteList.join("|")).test(h.url);if(!this.authState||!this.authState.lmsToken||K)return D.handle(h);const ie=this.addToken(h,this.authState.lmsToken);return D.handle(ie).pipe((0,nt.K)(Ce=>{const Fe=new RegExp(el.Hq.join("|")).test(h.url);return Ce instanceof w.UA&&Ce.status===Ac.Z.FORBIDDEN&&!Fe?this.refreshToken(ie,D):(0,tl._)(()=>Ce)}))}refreshToken(h,D){return this.isRefreshing?this.refreshTokenSubject.pipe((0,ks.h)(K=>null!==K),(0,si.q)(1),(0,Ec.w)(K=>D.handle(this.addToken(h,K)))):(this.isRefreshing=!0,this.refreshTokenSubject.next(null),this.authState?.lmsToken?this.authService.refreshToken(this.authState.lmsToken).pipe((0,Ec.w)(K=>(this.isRefreshing=!1,this.store.dispatch(new Il.U7(K.refreshToken)),this.refreshTokenSubject.next(K.refreshToken),D.handle(this.addToken(h,K.refreshToken)))),(0,nt.K)(K=>(this.isRefreshing=!1,K.status===Ac.Z.FORBIDDEN&&this.eventBusService.emit(new Dc("logout",null)),(0,tl._)(()=>K)))):D.handle(h))}logout(){return this.store.dispatch(new bo.R)}addToken(h,D){return h.clone({setHeaders:{Authorization:`Bearer ${D}`}})}get authState(){return this.store.selectSnapshot(vc.j)}}return m.\u0275fac=function(h){return new(h||m)(c.LFG(ge.yh),c.LFG(V.F0),c.LFG(Ol.e),c.LFG(_c))},m.\u0275prov=c.Yz7({token:m,factory:m.\u0275fac}),m})(),multi:!0},{provide:w.TP,useClass:Ra,multi:!0}];var yu=d(34999),Eu=d.n(yu),Du=d(4128),Au=d(39646);const Tc=m=>m.concat(".json"),aa=/{([^}]+)}/gi;class Pl{constructor(u,h){this.http=u,this.options=h,this.defaultOptions=Object.assign({enableNamespacing:!0,nameSpaceUppercase:!0,deepMerge:!0,modulePathTemplate:"{baseTranslateUrl}/{moduleName}/{language}",pathTemplate:"{baseTranslateUrl}/{language}"},this.options)}getTranslation(u){const{defaultOptions:h}=this;return this.mergeTranslations(this.getModuleTranslations(u,h),h)}mergeTranslations(u,{translateMerger:h,deepMerge:D}){return(0,Du.D)(u).pipe((0,wo.U)(K=>h?h(K):D?Eu().all(K):K.reduce((ie,Ce)=>Object.assign(Object.assign({},ie),Ce),Object())))}getModuleTranslations(u,h){const{modules:D}=h;return D.map(K=>{const{moduleName:ie}=K;return ie?this.fetchTranslationForModule(u,h,K):this.fetchTranslation(u,h,K)})}fetchTranslation(u,{pathTemplate:h,translateError:D},{baseTranslateUrl:K,translateMap:ie}){const Ce={baseTranslateUrl:K,language:u},Fe=Tc(h.replace(aa,(pt,Rt)=>Ce[Rt]||""));return this.http.get(Fe).pipe((0,wo.U)(pt=>ie?ie(pt):pt),this.catchError(Fe,D))}fetchTranslationForModule(u,{modulePathTemplate:h,enableNamespacing:D,nameSpaceUppercase:K,translateError:ie},{baseTranslateUrl:Ce,translateMap:Fe,moduleName:pt,nameSpace:Rt}){const lt={baseTranslateUrl:Ce,moduleName:pt,language:u},qt=Tc(h.replace(aa,(Zt,on)=>lt[on]||"")),rn=Rt?K?Rt.toUpperCase():Rt.toLowerCase():K?pt.toUpperCase():pt.toLowerCase();return this.http.get(qt).pipe((0,wo.U)(Zt=>Fe?Fe(Zt):D?Object({[rn]:Zt}):Zt),this.catchError(qt,ie))}catchError(u,h){return(0,nt.K)(D=>(h&&h(D,u),console.error("Unable to load translation file:",u),(0,Au.of)(Object())))}}function Rl(m){const u=Tr.URL;return new Pl(m,{modules:[{baseTranslateUrl:u},{moduleName:"AuthModule",baseTranslateUrl:u},{moduleName:"SharedModule",baseTranslateUrl:u},{moduleName:"StudentModule",baseTranslateUrl:u},{moduleName:"CourseModule",baseTranslateUrl:u},{moduleName:"ComunicationModule",baseTranslateUrl:u},{moduleName:"TutorModule",baseTranslateUrl:u},{moduleName:"ReportsModule",baseTranslateUrl:u},{moduleName:"ManageFinancialModule",baseTranslateUrl:u},{moduleName:"ManageCalendarModule",baseTranslateUrl:u},{moduleName:"ReportsModule",baseTranslateUrl:u},{moduleName:"InstitutionModule",baseTranslateUrl:u}]})}var bc=d(16582),Mc=d(22655),wl=d(16980),Ic=d(69174),Oc=d(73723),nl=d(25822),Zu=d(60424),Cu=d(44069),Ll=d(34196),Nl=d(64268),Pc=d(78885),Qs=d(40151),Su=d(44989),la=d(11570),wa=d(14257),xl=d(12345);let Fl=(()=>{class m extends s.hm{constructor(){super(...arguments),this.overrides={swipe:{direction:Va.DIRECTION_ALL}}}}return m.\u0275fac=function(){let u;return function(D){return(u||(u=c.n5z(m)))(D||m)}}(),m.\u0275prov=c.Yz7({token:m,factory:m.\u0275fac}),m})();(0,A.qS)(I);let Lo=(()=>{class m{}return m.\u0275fac=function(h){return new(h||m)},m.\u0275mod=c.oAB({type:m,bootstrap:[vu]}),m.\u0275inj=c.cJS({providers:[Sc,{provide:c.soG,useValue:"pt-BR"},{provide:A.mr,useValue:"/"},{provide:s.ok,useClass:Fl}],imports:[s.b2,hl,$o,w.JF,s.t6,b.Is,he,Ts.sS,oo.forRoot(To.N.analyticsCode),Us,ge.$l.forRoot([vc.j,Su.X,Qs.P,Oc.E,bc.G,Mc.H,Is.g,Ic.J,wl.o,nl.I,Gs.m,Cu.u,Ll.o,Nl.F,Pc.H,la.z,Zu.e,wa.b],{developmentMode:!To.N.production}),ll.forRoot({disabled:To.N.production}),Bs.forRoot(),Fi.forRoot({disabled:To.N.production}),ta.vl.forRoot(),xl.vL.forRoot(),dl.Rh.forRoot(),Q.aw.forRoot({loader:{provide:Q.Zw,useFactory:Rl,deps:[w.eN]}}),ao.yI.forRoot()]}),m})();To.N.production&&(0,c.G48)(),s.q6().bootstrapModule(Lo).catch(m=>console.error(m))},42466:(ut,fe,d)=>{"use strict";d.d(fe,{X$:()=>$t,Zw:()=>T,aw:()=>Et,sK:()=>Qe});var s=d(94650),c=d(39646),A=d(45191),w=d(4128),N=d(97272),te=d(49770),I=d(95698),b=d(34782),p=d(54004),_=d(24351),v=d(63900);class T{}let W=(()=>{class ke extends T{getTranslation(de){return(0,c.of)({})}}return ke.\u0275fac=function(){let je;return function(me){return(je||(je=s.n5z(ke)))(me||ke)}}(),ke.\u0275prov=s.Yz7({token:ke,factory:ke.\u0275fac}),ke})();class B{}let G=(()=>{class ke{handle(de){return de.key}}return ke.\u0275fac=function(de){return new(de||ke)},ke.\u0275prov=s.Yz7({token:ke,factory:ke.\u0275fac}),ke})();function U(ke,je){if(ke===je)return!0;if(null===ke||null===je)return!1;if(ke!=ke&&je!=je)return!0;let Ne,it,yt,de=typeof ke;if(de==typeof je&&"object"==de){if(!Array.isArray(ke)){if(Array.isArray(je))return!1;for(it in yt=Object.create(null),ke){if(!U(ke[it],je[it]))return!1;yt[it]=!0}for(it in je)if(!(it in yt)&&typeof je[it]<"u")return!1;return!0}if(!Array.isArray(je))return!1;if((Ne=ke.length)==je.length){for(it=0;it<Ne;it++)if(!U(ke[it],je[it]))return!1;return!0}}return!1}function Z(ke){return typeof ke<"u"&&null!==ke}function ue(ke){return ke&&"object"==typeof ke&&!Array.isArray(ke)}function F(ke,je){let de=Object.assign({},ke);return ue(ke)&&ue(je)&&Object.keys(je).forEach(me=>{ue(je[me])?me in ke?de[me]=F(ke[me],je[me]):Object.assign(de,{[me]:je[me]}):Object.assign(de,{[me]:je[me]})}),de}class Y{}let ee=(()=>{class ke extends Y{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(de,me){let Ne;return Ne="string"==typeof de?this.interpolateString(de,me):"function"==typeof de?this.interpolateFunction(de,me):de,Ne}getValue(de,me){let Ne="string"==typeof me?me.split("."):[me];me="";do{me+=Ne.shift(),!Z(de)||!Z(de[me])||"object"!=typeof de[me]&&Ne.length?Ne.length?me+=".":de=void 0:(de=de[me],me="")}while(Ne.length);return de}interpolateFunction(de,me){return de(me)}interpolateString(de,me){return me?de.replace(this.templateMatcher,(Ne,it)=>{let yt=this.getValue(me,it);return Z(yt)?yt:Ne}):de}}return ke.\u0275fac=function(){let je;return function(me){return(je||(je=s.n5z(ke)))(me||ke)}}(),ke.\u0275prov=s.Yz7({token:ke,factory:ke.\u0275fac}),ke})();class oe{}let X=(()=>{class ke extends oe{compile(de,me){return de}compileTranslations(de,me){return de}}return ke.\u0275fac=function(){let je;return function(me){return(je||(je=s.n5z(ke)))(me||ke)}}(),ke.\u0275prov=s.Yz7({token:ke,factory:ke.\u0275fac}),ke})();class y{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new s.vpe,this.onLangChange=new s.vpe,this.onDefaultLangChange=new s.vpe}}const k=new s.OlP("USE_STORE"),$=new s.OlP("USE_DEFAULT_LANG"),J=new s.OlP("DEFAULT_LANGUAGE"),L=new s.OlP("USE_EXTEND");let Qe=(()=>{class ke{constructor(de,me,Ne,it,yt,Gt=!0,Ft=!1,Vt=!1,sn){this.store=de,this.currentLoader=me,this.compiler=Ne,this.parser=it,this.missingTranslationHandler=yt,this.useDefaultLang=Gt,this.isolate=Ft,this.extend=Vt,this.pending=!1,this._onTranslationChange=new s.vpe,this._onLangChange=new s.vpe,this._onDefaultLangChange=new s.vpe,this._langs=[],this._translations={},this._translationRequests={},sn&&this.setDefaultLang(sn)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(de){this.isolate?this._defaultLang=de:this.store.defaultLang=de}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(de){this.isolate?this._currentLang=de:this.store.currentLang=de}get langs(){return this.isolate?this._langs:this.store.langs}set langs(de){this.isolate?this._langs=de:this.store.langs=de}get translations(){return this.isolate?this._translations:this.store.translations}set translations(de){this.isolate?this._translations=de:this.store.translations=de}setDefaultLang(de){if(de===this.defaultLang)return;let me=this.retrieveTranslations(de);typeof me<"u"?(null==this.defaultLang&&(this.defaultLang=de),me.pipe((0,I.q)(1)).subscribe(Ne=>{this.changeDefaultLang(de)})):this.changeDefaultLang(de)}getDefaultLang(){return this.defaultLang}use(de){if(de===this.currentLang)return(0,c.of)(this.translations[de]);let me=this.retrieveTranslations(de);return typeof me<"u"?(this.currentLang||(this.currentLang=de),me.pipe((0,I.q)(1)).subscribe(Ne=>{this.changeLang(de)}),me):(this.changeLang(de),(0,c.of)(this.translations[de]))}retrieveTranslations(de){let me;return(typeof this.translations[de]>"u"||this.extend)&&(this._translationRequests[de]=this._translationRequests[de]||this.getTranslation(de),me=this._translationRequests[de]),me}getTranslation(de){this.pending=!0;const me=this.currentLoader.getTranslation(de).pipe((0,b.d)(1),(0,I.q)(1));return this.loadingTranslations=me.pipe((0,p.U)(Ne=>this.compiler.compileTranslations(Ne,de)),(0,b.d)(1),(0,I.q)(1)),this.loadingTranslations.subscribe({next:Ne=>{this.translations[de]=this.extend&&this.translations[de]?Object.assign(Object.assign({},Ne),this.translations[de]):Ne,this.updateLangs(),this.pending=!1},error:Ne=>{this.pending=!1}}),me}setTranslation(de,me,Ne=!1){me=this.compiler.compileTranslations(me,de),this.translations[de]=(Ne||this.extend)&&this.translations[de]?F(this.translations[de],me):me,this.updateLangs(),this.onTranslationChange.emit({lang:de,translations:this.translations[de]})}getLangs(){return this.langs}addLangs(de){de.forEach(me=>{-1===this.langs.indexOf(me)&&this.langs.push(me)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(de,me,Ne){let it;if(me instanceof Array){let yt={},Gt=!1;for(let Ft of me)yt[Ft]=this.getParsedResult(de,Ft,Ne),(0,A.b)(yt[Ft])&&(Gt=!0);if(Gt){const Ft=me.map(Vt=>(0,A.b)(yt[Vt])?yt[Vt]:(0,c.of)(yt[Vt]));return(0,w.D)(Ft).pipe((0,p.U)(Vt=>{let sn={};return Vt.forEach((nn,Pt)=>{sn[me[Pt]]=nn}),sn}))}return yt}if(de&&(it=this.parser.interpolate(this.parser.getValue(de,me),Ne)),typeof it>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(it=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],me),Ne)),typeof it>"u"){let yt={key:me,translateService:this};typeof Ne<"u"&&(yt.interpolateParams=Ne),it=this.missingTranslationHandler.handle(yt)}return typeof it<"u"?it:me}get(de,me){if(!Z(de)||!de.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,_.b)(Ne=>(Ne=this.getParsedResult(Ne,de,me),(0,A.b)(Ne)?Ne:(0,c.of)(Ne))));{let Ne=this.getParsedResult(this.translations[this.currentLang],de,me);return(0,A.b)(Ne)?Ne:(0,c.of)(Ne)}}getStreamOnTranslationChange(de,me){if(!Z(de)||!de.length)throw new Error('Parameter "key" required');return(0,N.z)((0,te.P)(()=>this.get(de,me)),this.onTranslationChange.pipe((0,v.w)(Ne=>{const it=this.getParsedResult(Ne.translations,de,me);return"function"==typeof it.subscribe?it:(0,c.of)(it)})))}stream(de,me){if(!Z(de)||!de.length)throw new Error('Parameter "key" required');return(0,N.z)((0,te.P)(()=>this.get(de,me)),this.onLangChange.pipe((0,v.w)(Ne=>{const it=this.getParsedResult(Ne.translations,de,me);return(0,A.b)(it)?it:(0,c.of)(it)})))}instant(de,me){if(!Z(de)||!de.length)throw new Error('Parameter "key" required');let Ne=this.getParsedResult(this.translations[this.currentLang],de,me);if((0,A.b)(Ne)){if(de instanceof Array){let it={};return de.forEach((yt,Gt)=>{it[de[Gt]]=de[Gt]}),it}return de}return Ne}set(de,me,Ne=this.currentLang){this.translations[Ne][de]=this.compiler.compile(me,Ne),this.updateLangs(),this.onTranslationChange.emit({lang:Ne,translations:this.translations[Ne]})}changeLang(de){this.currentLang=de,this.onLangChange.emit({lang:de,translations:this.translations[de]}),null==this.defaultLang&&this.changeDefaultLang(de)}changeDefaultLang(de){this.defaultLang=de,this.onDefaultLangChange.emit({lang:de,translations:this.translations[de]})}reloadLang(de){return this.resetLang(de),this.getTranslation(de)}resetLang(de){this._translationRequests[de]=void 0,this.translations[de]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let de=window.navigator.languages?window.navigator.languages[0]:null;return de=de||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof de>"u"?void 0:(-1!==de.indexOf("-")&&(de=de.split("-")[0]),-1!==de.indexOf("_")&&(de=de.split("_")[0]),de)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let de=window.navigator.languages?window.navigator.languages[0]:null;return de=de||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,de}}return ke.\u0275fac=function(de){return new(de||ke)(s.LFG(y),s.LFG(T),s.LFG(oe),s.LFG(Y),s.LFG(B),s.LFG($),s.LFG(k),s.LFG(L),s.LFG(J))},ke.\u0275prov=s.Yz7({token:ke,factory:ke.\u0275fac}),ke})(),$t=(()=>{class ke{constructor(de,me){this.translate=de,this._ref=me,this.value=""}updateValue(de,me,Ne){let it=yt=>{this.value=void 0!==yt?yt:de,this.lastKey=de,this._ref.markForCheck()};if(Ne){let yt=this.translate.getParsedResult(Ne,de,me);(0,A.b)(yt.subscribe)?yt.subscribe(it):it(yt)}this.translate.get(de,me).subscribe(it)}transform(de,...me){if(!de||!de.length)return de;if(U(de,this.lastKey)&&U(me,this.lastParams))return this.value;let Ne;if(Z(me[0])&&me.length)if("string"==typeof me[0]&&me[0].length){let it=me[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{Ne=JSON.parse(it)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${me[0]}`)}}else"object"==typeof me[0]&&!Array.isArray(me[0])&&(Ne=me[0]);return this.lastKey=de,this.lastParams=me,this.updateValue(de,Ne),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(it=>{this.lastKey&&it.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(de,Ne,it.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(it=>{this.lastKey&&(this.lastKey=null,this.updateValue(de,Ne,it.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(de,Ne))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return ke.\u0275fac=function(de){return new(de||ke)(s.Y36(Qe,16),s.Y36(s.sBO,16))},ke.\u0275pipe=s.Yjl({name:"translate",type:ke,pure:!1}),ke.\u0275prov=s.Yz7({token:ke,factory:ke.\u0275fac}),ke})(),Et=(()=>{class ke{static forRoot(de={}){return{ngModule:ke,providers:[de.loader||{provide:T,useClass:W},de.compiler||{provide:oe,useClass:X},de.parser||{provide:Y,useClass:ee},de.missingTranslationHandler||{provide:B,useClass:G},y,{provide:k,useValue:de.isolate},{provide:$,useValue:de.useDefaultLang},{provide:L,useValue:de.extend},{provide:J,useValue:de.defaultLanguage},Qe]}}static forChild(de={}){return{ngModule:ke,providers:[de.loader||{provide:T,useClass:W},de.compiler||{provide:oe,useClass:X},de.parser||{provide:Y,useClass:ee},de.missingTranslationHandler||{provide:B,useClass:G},{provide:k,useValue:de.isolate},{provide:$,useValue:de.useDefaultLang},{provide:L,useValue:de.extend},{provide:J,useValue:de.defaultLanguage},Qe]}}}return ke.\u0275fac=function(de){return new(de||ke)},ke.\u0275mod=s.oAB({type:ke}),ke.\u0275inj=s.cJS({}),ke})()},12345:(ut,fe,d)=>{"use strict";d.d(fe,{Cd:()=>G,NT:()=>Y,d7:()=>_,nt:()=>U,vL:()=>ee,z1:()=>Z});var s=d(94650),c=d(89867),A=d(24006),w=d(77579),N=d(39300),te=d(82722),I=d(71884),b=d(78372);let p=(()=>{class oe{constructor(y){this.payload=y}}return oe.type="[Forms] Update Form Status",oe})(),_=(()=>{class oe{constructor(y){this.payload=y}}return oe.type="[Forms] Update Form Value",oe})(),v=(()=>{class oe{constructor(y){this.payload=y}}return oe.type="[Forms] Update Form",oe})(),T=(()=>{class oe{constructor(y){this.payload=y}}return oe.type="[Forms] Update Form Dirty",oe})(),W=(()=>{class oe{constructor(y){this.payload=y}}return oe.type="[Forms] Set Form Dirty",oe})(),P=(()=>{class oe{constructor(y){this.payload=y}}return oe.type="[Forms] Set Form Pristine",oe})(),B=(()=>{class oe{constructor(y){this.payload=y}}return oe.type="[Forms] Update Form Errors",oe})(),G=(()=>{class oe{constructor(y){this.payload=y}}return oe.type="[Forms] Set Form Disabled",oe})(),U=(()=>{class oe{constructor(y){this.payload=y}}return oe.type="[Forms] Set Form Enabled",oe})(),Z=(()=>{class oe{constructor(y){this.payload=y}}return oe.type="[Forms] Reset Form",oe})(),ue=(()=>{class oe{handle(y,k,$){const J=(0,c.f4)(k);let L=y;if(J===_.type||J===v.type||J===Z.type){const{value:le}=k.payload,ce=Array.isArray(le)?le.slice():function F(oe){return null!==oe&&"object"==typeof oe}(le)?Object.assign({},le):le,Se=this.joinPathWithPropertyPath(k);L=(0,c.sO)(L,Se,ce)}if(J===Z.type){const le=(0,c.NA)(L,`${k.payload.path}.model`);L=(0,c.sO)(L,`${k.payload.path}`,{model:le})}return(J===p.type||J===v.type)&&(L=(0,c.sO)(L,`${k.payload.path}.status`,k.payload.status)),(J===B.type||J===v.type)&&(L=(0,c.sO)(L,`${k.payload.path}.errors`,Object.assign({},k.payload.errors))),(J===T.type||J===v.type)&&(L=(0,c.sO)(L,`${k.payload.path}.dirty`,k.payload.dirty)),J===W.type&&(L=(0,c.sO)(L,`${k.payload}.dirty`,!0)),J===P.type&&(L=(0,c.sO)(L,`${k.payload}.dirty`,!1)),J===G.type&&(L=(0,c.sO)(L,`${k.payload}.disabled`,!0)),J===U.type&&(L=(0,c.sO)(L,`${k.payload}.disabled`,!1)),$(L,k)}joinPathWithPropertyPath({payload:y}){let k=`${y.path}.model`;return y.propertyPath&&(k+=`.${y.propertyPath}`),k}}return oe.\u0275fac=function(y){return new(y||oe)},oe.\u0275prov=s.Yz7({token:oe,factory:oe.\u0275fac}),oe})(),Y=(()=>{class oe{constructor(y,k,$,J){this._actions$=y,this._store=k,this._formGroupDirective=$,this._cd=J,this.path=null,this._debounce=100,this._clearDestroy=!1,this._updating=!1,this._destroy$=new w.x}set debounce(y){this._debounce=Number(y)}get debounce(){return this._debounce}set clearDestroy(y){this._clearDestroy=null!=y&&"false"!=`${y}`}get clearDestroy(){return this._clearDestroy}ngOnInit(){this._actions$.pipe((0,c.xt)(Z),(0,N.h)(y=>y.payload.path===this.path),(0,te.R)(this._destroy$)).subscribe(({payload:{value:y}})=>{this.form.reset(y),this.updateFormStateWithRawValue(!0),this._cd.markForCheck()}),this.getStateStream(`${this.path}.model`).subscribe(y=>{this._updating||!y||(this.form.patchValue(y),this._cd.markForCheck())}),this.getStateStream(`${this.path}.dirty`).subscribe(y=>{this.form.dirty===y||"boolean"!=typeof y||(y?this.form.markAsDirty():this.form.markAsPristine(),this._cd.markForCheck())}),this._store.selectOnce(y=>(0,c.NA)(y,this.path)).subscribe(()=>{this._store.dispatch([new _({path:this.path,value:this.form.getRawValue()}),new p({path:this.path,status:this.form.status}),new T({path:this.path,dirty:this.form.dirty})])}),this.getStateStream(`${this.path}.disabled`).subscribe(y=>{this.form.disabled===y||"boolean"!=typeof y||(y?this.form.disable():this.form.enable(),this._cd.markForCheck())}),this._formGroupDirective.valueChanges.pipe((0,I.x)((y,k)=>JSON.stringify(y)===JSON.stringify(k)),this.debounceChange()).subscribe(()=>{this.updateFormStateWithRawValue()}),this._formGroupDirective.statusChanges.pipe((0,I.x)(),this.debounceChange()).subscribe(y=>{this._store.dispatch(new p({status:y,path:this.path}))})}updateFormStateWithRawValue(y){if(this._updating)return;const k=this._formGroupDirective.control.getRawValue(),$=[new _({path:this.path,value:k}),new T({path:this.path,dirty:this._formGroupDirective.dirty}),new B({path:this.path,errors:this._formGroupDirective.errors})];y&&$.push(new p({path:this.path,status:this._formGroupDirective.status})),this._updating=!0,this._store.dispatch($).subscribe({error:()=>this._updating=!1,complete:()=>this._updating=!1})}ngOnDestroy(){this._destroy$.next(),this.clearDestroy&&this._store.dispatch(new v({path:this.path,value:null,dirty:null,status:null,errors:null}))}debounceChange(){return"change"!==this._formGroupDirective.control.updateOn||this._debounce<0?k=>k.pipe((0,te.R)(this._destroy$)):k=>k.pipe((0,b.b)(this._debounce),(0,te.R)(this._destroy$))}get form(){return this._formGroupDirective.form}getStateStream(y){return this._store.select(k=>(0,c.NA)(k,y)).pipe((0,te.R)(this._destroy$))}}return oe.\u0275fac=function(y){return new(y||oe)(s.Y36(c.eX),s.Y36(c.yh),s.Y36(A.sg),s.Y36(s.sBO))},oe.\u0275dir=s.lG2({type:oe,selectors:[["","ngxsForm",""]],inputs:{path:["ngxsForm","path"],debounce:["ngxsFormDebounce","debounce"],clearDestroy:["ngxsFormClearOnDestroy","clearDestroy"]}}),oe})(),ee=(()=>{class oe{static forRoot(){return{ngModule:oe,providers:[{provide:c.fN,useClass:ue,multi:!0}]}}}return oe.\u0275fac=function(y){return new(y||oe)},oe.\u0275mod=s.oAB({type:oe}),oe.\u0275inj=s.cJS({imports:[[A.UX]]}),oe})()},89867:(ut,fe,d)=>{"use strict";d.d(fe,{aU:()=>Gi,eX:()=>ir,XP:()=>ui,fN:()=>pe,$l:()=>Or,Ph:()=>Ji,Qf:()=>_o,ZM:()=>Ri,Cp:()=>or,yh:()=>Ei,JL:()=>eo,gc:()=>dt,P1:()=>dr,f4:()=>an,C$:()=>ps,NA:()=>Ge,xt:()=>$r,nW:()=>ti,sO:()=>ze});var s=d(94650),c=d(4707);let w=(()=>{class De{constructor(){this.bootstrap$=new c.t(1)}get appBootstrapped$(){return this.bootstrap$.asObservable()}bootstrap(){this.bootstrap$.next(!0),this.bootstrap$.complete()}}return De.\u0275fac=function(Ve){return new(Ve||De)},De.\u0275prov=s.Yz7({token:De,factory:De.\u0275fac}),De})();function N(De,st){return De===st}function te(De,st,Ve){if(null===st||null===Ve||st.length!==Ve.length)return!1;const et=st.length;for(let Lt=0;Lt<et;Lt++)if(!De(st[Lt],Ve[Lt]))return!1;return!0}function I(De,st=N){let Ve=null,et=null;function Lt(){return te(st,Ve,arguments)||(et=De.apply(null,arguments)),Ve=arguments,et}return Lt.reset=function(){Ve=null,et=null},Lt}const b=new s.OlP("INITIAL_STATE_TOKEN");let p=(()=>{class De{static set(Ve){this.value=Ve}static pop(){const Ve=this.value;return this.value={},Ve}}return De.value={},De})();const _=new s.OlP("Internals.StateContextFactory"),v=new s.OlP("Internals.StateFactory");var T=d(36895),W=d(69751),P=d(77579),B=d(61135),G=d(39646),U=d(4128),Z=d(62843),ue=d(60515),F=d(50457),Y=d(84408),oe=d(97565);const y=new class X extends oe.v{}(class ee extends Y.o{constructor(st,Ve){super(st,Ve),this.scheduler=st,this.work=Ve}schedule(st,Ve=0){return Ve>0?super.schedule(st,Ve):(this.delay=Ve,this.state=st,this.scheduler.flush(this),this)}execute(st,Ve){return Ve>0||this.closed?super.execute(st,Ve):this._execute(st,Ve)}requestAsyncId(st,Ve,et=0){return null!=et&&et>0||null==et&&this.delay>0?super.requestAsyncId(st,Ve,et):st.flush(this)}});var $=d(39300),J=d(54004),L=d(34782),le=d(95698),ce=d(38421),Se=d(54482),Qe=d(25403);function ct(De,st){return st?Ve=>Ve.pipe(ct((et,Lt)=>(0,ce.Xf)(De(et,Lt)).pipe((0,J.U)((Ht,tn)=>st(et,Ht,Lt,tn))))):(0,Se.e)((Ve,et)=>{let Lt=0,Ht=null,tn=!1;Ve.subscribe((0,Qe.x)(et,ht=>{Ht||(Ht=(0,Qe.x)(et,void 0,()=>{Ht=null,tn&&et.complete()}),(0,ce.Xf)(De(ht,Lt++)).subscribe(Ht))},()=>{tn=!0,!Ht&&et.complete()}))})}var $t=d(95577),$e=d(46590),Et=d(70262),ke=d(82722),je=d(18505),de=d(85363),me=d(71884);class _t{constructor(st,Ve){this._ngZone=st,this._platformId=Ve}enter(st){return(0,T.PM)(this._platformId)?this.runInsideAngular(st):this.runOutsideAngular(st)}leave(st){return this.runInsideAngular(st)}runInsideAngular(st){return s.R0b.isInAngularZone()?st():this._ngZone.run(st)}runOutsideAngular(st){return s.R0b.isInAngularZone()?this._ngZone.runOutsideAngular(st):st()}}_t.\u0275fac=function(st){return new(st||_t)(s.LFG(s.R0b),s.LFG(s.Lbi))},_t.\u0275prov=s.Yz7({token:_t,factory:_t.\u0275fac,providedIn:"root"}),_t.ngInjectableDef=(0,s.Ez6)({factory:function(){return new _t((0,s.f3M)(s.R0b),(0,s.f3M)(s.Lbi))},token:_t,providedIn:"root"});const Wt=new s.OlP("ROOT_STATE_TOKEN"),Dt=new s.OlP("FEATURE_STATE_TOKEN"),pe=new s.OlP("NGXS_PLUGINS"),Pe="NGXS_META",ot="NGXS_OPTIONS_META",vt="NGXS_SELECTOR_META";let Be=(()=>{class De{constructor(){this.defaultsState={},this.selectorOptions={injectContainerState:!0,suppressErrors:!0},this.compatibility={strictContentSecurityPolicy:!1},this.executionStrategy=_t}}return De.\u0275fac=function(Ve){return new(Ve||De)},De.\u0275prov=s.Yz7({token:De,factory:De.\u0275fac}),De})();class Ct{constructor(st,Ve,et){this.previousValue=st,this.currentValue=Ve,this.firstChange=et}}class Re{enter(st){return st()}leave(st){return st()}}Re.\u0275fac=function(st){return new(st||Re)},Re.\u0275prov=s.Yz7({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re.ngInjectableDef=(0,s.Ez6)({factory:function(){return new Re},token:Re,providedIn:"root"});const bt=new s.OlP("USER_PROVIDED_NGXS_EXECUTION_STRATEGY"),Mt=new s.OlP("NGXS_EXECUTION_STRATEGY",{providedIn:"root",factory:()=>{const De=(0,s.f3M)(s.gxx),st=De.get(bt);return De.get(st||(typeof s.dqk.Zone<"u"?_t:Re))}});function an(De){return De.constructor&&De.constructor.type?De.constructor.type:De.type}function dt(De){const st=an(De);return function(Ve){return st===an(Ve)}}const ze=(De,st,Ve)=>{De=Object.assign({},De);const et=st.split("."),Lt=et.length-1;return et.reduce((Ht,tn,ht)=>(Ht[tn]=ht===Lt?Ve:Array.isArray(Ht[tn])?Ht[tn].slice():Object.assign({},Ht[tn]),Ht&&Ht[tn]),De),De},Ge=(De,st)=>st.split(".").reduce((Ve,et)=>Ve&&Ve[et],De),Oe=De=>De&&"object"==typeof De&&!Array.isArray(De),Ue=(De,...st)=>{if(!st.length)return De;const Ve=st.shift();if(Oe(De)&&Oe(Ve))for(const et in Ve)Oe(Ve[et])?(De[et]||Object.assign(De,{[et]:{}}),Ue(De[et],Ve[et])):Object.assign(De,{[et]:Ve[et]});return Ue(De,...st)};function zn(De){if(!De.hasOwnProperty(Pe)){const st={name:null,actions:{},defaults:{},path:null,makeRootSelector:Ve=>Ve.getStateGetter(st.name),children:[]};Object.defineProperty(De,Pe,{value:st})}return Tn(De)}function Tn(De){return De[Pe]}function jn(De){return De.hasOwnProperty(vt)||Object.defineProperty(De,vt,{value:{makeRootSelector:null,originalFn:null,containerClass:null,selectorName:null,getSelectorOptions:()=>({})}}),nr(De)}function nr(De){return De[vt]}function we(De,st){return st&&st.compatibility&&st.compatibility.strictContentSecurityPolicy?function Ke(De){const st=De.slice();return Ve=>st.reduce((et,Lt)=>et&&et[Lt],Ve)}(De):function Ze(De){const st=De;let Ve="store."+st[0],et=0;const Lt=st.length;let Ht=Ve;for(;++et<Lt;)Ht=Ht+" && "+(Ve=Ve+"."+st[et]);return new Function("store","return "+Ht+";")}(De)}function Jn(De,st){const Ve=Ge(st.currentAppState,De.path),et=Ge(st.newAppState,De.path);return new Ct(Ve,et,!De.isInitialised)}function $r(...De){return fr(De,["DISPATCHED"])}function ti(...De){return fr(De,["SUCCESSFUL"])}function fr(De,st,Ve=Nr){const et=function Xn(De){return De.reduce((st,Ve)=>(st[an(Ve)]=!0,st),{})}(De),Lt=st&&function Lr(De){return De.reduce((st,Ve)=>(st[Ve]=!0,st),{})}(st);return function(Ht){return Ht.pipe(function pr(De,st){return(0,$.h)(Ve=>{const et=an(Ve.action);return De[et]&&(!st||st[Ve.status])})}(et,Lt),Ve())}}function Nr(){return(0,J.U)(De=>De.action)}function lr(De){return st=>new W.y(Ve=>st.subscribe({next(et){De.leave(()=>Ve.next(et))},error(et){De.leave(()=>Ve.error(et))},complete(){De.leave(()=>Ve.complete())}}))}let cr=(()=>{class De{constructor(Ve){this._executionStrategy=Ve}enter(Ve){return this._executionStrategy.enter(Ve)}leave(Ve){return this._executionStrategy.leave(Ve)}}return De.\u0275fac=function(Ve){return new(Ve||De)(s.LFG(Mt))},De.\u0275prov=s.Yz7({token:De,factory:De.\u0275fac}),De})();class ur extends P.x{constructor(){super(...arguments),this._itemQueue=[],this._busyPushingNext=!1}next(st){if(this._busyPushingNext)this._itemQueue.unshift(st);else{for(this._busyPushingNext=!0,super.next(st);this._itemQueue.length>0;){const Ve=this._itemQueue.pop();super.next(Ve)}this._busyPushingNext=!1}}}let bn=(()=>{class De extends ur{}return De.\u0275fac=function(){let st;return function(et){return(st||(st=s.n5z(De)))(et||De)}}(),De.\u0275prov=s.Yz7({token:De,factory:De.\u0275fac}),De})(),ir=(()=>{class De extends W.y{constructor(Ve,et){super(Lt=>{const Ht=Ve.pipe(lr(et)).subscribe({next:tn=>Lt.next(tn),error:tn=>Lt.error(tn),complete:()=>Lt.complete()});Lt.add(Ht)})}}return De.\u0275fac=function(Ve){return new(Ve||De)(s.LFG(bn),s.LFG(cr))},De.\u0275prov=s.Yz7({token:De,factory:De.\u0275fac}),De})();const li=De=>(...st)=>De.shift()(...st,(...et)=>li(De)(...et));let Sr=(()=>{class De extends B.X{constructor(){super({})}ngOnDestroy(){this.complete()}}return De.\u0275fac=function(Ve){return new(Ve||De)},De.\u0275prov=s.Yz7({token:De,factory:De.\u0275fac}),De})(),xr=(()=>{class De{constructor(Ve,et){this._parentManager=Ve,this._pluginHandlers=et,this.plugins=[],this.registerHandlers()}get rootPlugins(){return this._parentManager&&this._parentManager.plugins||this.plugins}registerHandlers(){const Ve=this.getPluginHandlers();this.rootPlugins.push(...Ve)}getPluginHandlers(){return(this._pluginHandlers||[]).map(et=>et.handle?et.handle.bind(et):et)}}return De.\u0275fac=function(Ve){return new(Ve||De)(s.LFG(De,12),s.LFG(pe,8))},De.\u0275prov=s.Yz7({token:De,factory:De.\u0275fac}),De})(),ni=(()=>{class De extends P.x{}return De.\u0275fac=function(){let st;return function(et){return(st||(st=s.n5z(De)))(et||De)}}(),De.\u0275prov=s.Yz7({token:De,factory:De.\u0275fac}),De})(),ri=(()=>{class De{constructor(Ve,et,Lt,Ht,tn,ht){this._injector=Ve,this._actions=et,this._actionResults=Lt,this._pluginManager=Ht,this._stateStream=tn,this._ngxsExecutionStrategy=ht}dispatch(Ve){const et=this._ngxsExecutionStrategy.enter(()=>this.dispatchByEvents(Ve));return et.subscribe({error:Lt=>this._ngxsExecutionStrategy.leave(()=>{try{this._errorHandler=this._errorHandler||this._injector.get(s.qLn),this._errorHandler.handleError(Lt)}catch{}})}),et.pipe(lr(this._ngxsExecutionStrategy))}dispatchByEvents(Ve){return Array.isArray(Ve)?0===Ve.length?(0,G.of)(this._stateStream.getValue()):(0,U.D)(Ve.map(et=>this.dispatchSingle(et))):this.dispatchSingle(Ve)}dispatchSingle(Ve){const et=this._stateStream.getValue();return li([...this._pluginManager.plugins,(Ht,tn)=>{Ht!==et&&this._stateStream.next(Ht);const ht=this.getActionResultStream(tn);return ht.subscribe(In=>this._actions.next(In)),this._actions.next({action:tn,status:"DISPATCHED"}),this.createDispatchObservable(ht)}])(et,Ve).pipe((0,L.d)())}getActionResultStream(Ve){return this._actionResults.pipe((0,$.h)(et=>et.action===Ve&&"DISPATCHED"!==et.status),(0,le.q)(1),(0,L.d)())}createDispatchObservable(Ve){return Ve.pipe(ct(et=>{switch(et.status){case"SUCCESSFUL":return(0,G.of)(this._stateStream.getValue());case"ERRORED":return(0,Z._)(et.error);default:return ue.E}})).pipe((0,L.d)())}}return De.\u0275fac=function(Ve){return new(Ve||De)(s.LFG(s.zs3),s.LFG(bn),s.LFG(ni),s.LFG(xr),s.LFG(Sr),s.LFG(cr))},De.\u0275prov=s.Yz7({token:De,factory:De.\u0275fac}),De})(),Fr=(()=>{class De{constructor(Ve,et,Lt){this._stateStream=Ve,this._dispatcher=et,this._config=Lt}getRootStateOperations(){return{getState:()=>this._stateStream.getValue(),setState:et=>this._stateStream.next(et),dispatch:et=>this._dispatcher.dispatch(et)}}setStateToTheCurrentWithNew(Ve){const et=this.getRootStateOperations(),Lt=et.getState();et.setState(Object.assign({},Lt,Ve.defaults))}}return De.\u0275fac=function(Ve){return new(Ve||De)(s.LFG(Sr),s.LFG(ri),s.LFG(Be))},De.\u0275prov=s.Yz7({token:De,factory:De.\u0275fac}),De})();let Mi=(()=>{class De{constructor(Ve){this._internalStateOperations=Ve}createStateContext(Ve){const et=this._internalStateOperations.getRootStateOperations();function Lt(In){return Ge(In,Ve.path)}function Ht(In,$n){const Kn=ze(In,Ve.path,$n),qn=Ve.instance;if(qn.ngxsOnChanges){const gr=Jn(Ve,{currentAppState:In,newAppState:Kn});qn.ngxsOnChanges(gr)}return et.setState(Kn),Kn}function tn(In,$n){return Ht(In,$n(Lt(In)))}return{getState:()=>Lt(et.getState()),patchState:In=>tn(et.getState(),function _i(De){return st=>{Array.isArray(De)?function wt(){throw new Error("Patching arrays is not supported.")}():"object"!=typeof De&&function Je(){throw new Error("Patching primitives is not supported.")}();const Ve=Object.assign({},st);for(const et in De)Ve[et]=De[et];return Ve}}(In)),setState(In){const $n=et.getState();return function ht(In){return"function"==typeof In}(In)?tn($n,In):Ht($n,In)},dispatch:In=>et.dispatch(In)}}}return De.\u0275fac=function(Ve){return new(Ve||De)(s.LFG(Fr))},De.\u0275prov=s.Yz7({token:De,factory:De.\u0275fac}),De})();new RegExp("^[a-zA-Z0-9_]+$");let Te=(()=>{class De{constructor(Ve,et,Lt,Ht,tn,ht,In){this._injector=Ve,this._config=et,this._parentFactory=Lt,this._actions=Ht,this._actionResults=tn,this._stateContextFactory=ht,this._initialState=In,this._actionsSubscription=null,this._states=[],this._statesByName={},this._statePaths={},this.getRuntimeSelectorContext=I(()=>{const $n=this;function Kn(gr){const Pr=$n.statePaths[gr];return Pr?we(Pr.split("."),$n._config):null}return this._parentFactory?this._parentFactory.getRuntimeSelectorContext():{getStateGetter(gr){let Pr=Kn(gr);return Pr||((...Dn)=>(Pr||(Pr=Kn(gr)),Pr?Pr(...Dn):void 0))},getSelectorOptions:gr=>Object.assign({},$n._config.selectorOptions,gr||{})}})}get states(){return this._parentFactory?this._parentFactory.states:this._states}get statesByName(){return this._parentFactory?this._parentFactory.statesByName:this._statesByName}get statePaths(){return this._parentFactory?this._parentFactory.statePaths:this._statePaths}static cloneDefaults(Ve){let et={};return et=Array.isArray(Ve)?Ve.slice():function gn(De){return"object"==typeof De&&null!==De||"function"==typeof De}(Ve)?Object.assign({},Ve):void 0===Ve?{}:Ve,et}ngOnDestroy(){this._actionsSubscription.unsubscribe()}add(Ve){const{newStates:et}=this.addToStatesMap(Ve);if(!et.length)return[];const Lt=function gt(De){const st=Ve=>De.find(Lt=>Lt===Ve)[Pe].name;return De.reduce((Ve,et)=>{const{name:Lt,children:Ht}=et[Pe];return Ve[Lt]=(Ht||[]).map(st),Ve},{})}(et),Ht=function pn(De){const st=[],Ve={},et=(Lt,Ht=[])=>{Array.isArray(Ht)||(Ht=[]),Ht.push(Lt),Ve[Lt]=!0,De[Lt].forEach(tn=>{Ve[tn]||et(tn,Ht.slice(0))}),st.indexOf(Lt)<0&&st.push(Lt)};return Object.keys(De).forEach(Lt=>et(Lt)),st.reverse()}(Lt),tn=function ln(De,st={}){const Ve=(et,Lt)=>{for(const Ht in et)if(et.hasOwnProperty(Ht)&&et[Ht].indexOf(Lt)>=0){const tn=Ve(et,Ht);return null!==tn?`${tn}.${Ht}`:Ht}return null};for(const et in De)if(De.hasOwnProperty(et)){const Lt=Ve(De,et);st[et]=Lt?`${Lt}.${et}`:et}return st}(Lt),ht=function Bt(De){return De.reduce((st,Ve)=>(st[Ve[Pe].name]=Ve,st),{})}(et),In=[];for(const $n of Ht){const Kn=ht[$n],qn=tn[$n],gr=Kn[Pe];this.addRuntimeInfoToMeta(gr,qn);const Pr={name:$n,path:qn,isInitialised:!1,actions:gr.actions,instance:this._injector.get(Kn),defaults:De.cloneDefaults(gr.defaults)};this.hasBeenMountedAndBootstrapped($n,qn)||In.push(Pr),this.states.push(Pr)}return In}addAndReturnDefaults(Ve){const Lt=this.add(Ve||[]);return{defaults:Lt.reduce((tn,ht)=>ze(tn,ht.path,ht.defaults),{}),states:Lt}}connectActionHandlers(){if(null!==this._actionsSubscription)return;const Ve=new P.x;this._actionsSubscription=this._actions.pipe((0,$.h)(et=>"DISPATCHED"===et.status),(0,$t.z)(et=>{Ve.next(et);const Lt=et.action;return this.invokeActions(Ve,Lt).pipe((0,J.U)(()=>({action:Lt,status:"SUCCESSFUL"})),(0,$e.d)({action:Lt,status:"CANCELED"}),(0,Et.K)(Ht=>(0,G.of)({action:Lt,status:"ERRORED",error:Ht})))})).subscribe(et=>this._actionResults.next(et))}invokeActions(Ve,et){const Lt=an(et),Ht=[];for(const tn of this.states){const ht=tn.actions[Lt];if(ht)for(const In of ht){const $n=this._stateContextFactory.createStateContext(tn);try{let Kn=tn.instance[In.fn]($n,et);Kn instanceof Promise&&(Kn=(0,F.D)(Kn)),Kn instanceof W.y?(Kn=Kn.pipe((0,$t.z)(qn=>qn instanceof Promise?(0,F.D)(qn):qn instanceof W.y?qn:(0,G.of)(qn)),(0,$e.d)({})),In.options.cancelUncompleted&&(Kn=Kn.pipe((0,ke.R)(Ve.pipe($r(et)))))):Kn=(0,G.of)({}).pipe((0,L.d)()),Ht.push(Kn)}catch(Kn){Ht.push((0,Z._)(Kn))}}}return Ht.length||Ht.push((0,G.of)({})),(0,U.D)(Ht)}addToStatesMap(Ve){const et=[],Lt=this.statesByName;for(const Ht of Ve){const tn=Tn(Ht).name;!Lt[tn]&&(et.push(Ht),Lt[tn]=Ht)}return{newStates:et}}addRuntimeInfoToMeta(Ve,et){this.statePaths[Ve.name]=et,Ve.path=et}hasBeenMountedAndBootstrapped(Ve,et){const Lt=void 0!==Ge(this._initialState,et);return this.statesByName[Ve]&&Lt}}return De.\u0275fac=function(Ve){return new(Ve||De)(s.LFG(s.zs3),s.LFG(Be),s.LFG(De,12),s.LFG(bn),s.LFG(ni),s.LFG(Mi),s.LFG(b,8))},De.\u0275prov=s.Yz7({token:De,factory:De.\u0275fac}),De})(),tt=(()=>{class De{constructor(Ve,et,Lt){this.internalStateOperations=Ve,this.stateContextFactory=et,this.bootstrapper=Lt}ngxsBootstrap(Ve,et){this.internalStateOperations.getRootStateOperations().dispatch(Ve).pipe((0,$.h)(()=>!!et),(0,je.b)(()=>this.invokeInit(et.states)),(0,$t.z)(()=>this.bootstrapper.appBootstrapped$),(0,$.h)(Lt=>!!Lt)).subscribe(()=>this.invokeBootstrap(et.states))}invokeInit(Ve){for(const et of Ve){const Lt=et.instance;if(Lt.ngxsOnChanges){const ht=Jn(et,{currentAppState:{},newAppState:this.internalStateOperations.getRootStateOperations().getState()});Lt.ngxsOnChanges(ht)}Lt.ngxsOnInit&&Lt.ngxsOnInit(this.getStateContext(et)),et.isInitialised=!0}}invokeBootstrap(Ve){for(const et of Ve){const Lt=et.instance;Lt.ngxsAfterBootstrap&&Lt.ngxsAfterBootstrap(this.getStateContext(et))}}getStateContext(Ve){return this.stateContextFactory.createStateContext(Ve)}}return De.\u0275fac=function(Ve){return new(Ve||De)(s.LFG(Fr),s.LFG(Mi),s.LFG(w))},De.\u0275prov=s.Yz7({token:De,factory:De.\u0275fac}),De})();const Qt_getOptions=De=>De&&De.NGXS_SELECTOR_OPTIONS_META||{};function dr(De,st,Ve){const et=Ve&&Ve.containerClass,Ht=I(function(...$n){const Kn=st.apply(et,$n);return Kn instanceof Function?I.apply(null,[Kn]):Kn});Object.setPrototypeOf(Ht,st);const tn=function sr(De,st){const Ve=jn(De);Ve.originalFn=De;let et=()=>({});st&&(Ve.containerClass=st.containerClass,Ve.selectorName=st.selectorName,et=st.getSelectorOptions||et);const Lt=Object.assign({},Ve);return Ve.getSelectorOptions=()=>function Ir(De,st){return Object.assign({},Qt_getOptions(De.containerClass)||{},Qt_getOptions(De.originalFn)||{},De.getSelectorOptions()||{},st)}(Lt,et()),Ve}(st,Ve);return tn.makeRootSelector=In=>{const{argumentSelectorFunctions:$n,selectorOptions:Kn}=function Mn(De,st,Ve=[]){const et=st.getSelectorOptions(),Lt=De.getSelectorOptions(et),tn=function is(De=[],st,Ve){const et=[];return Ve&&(0===De.length||st.injectContainerState)&&Tn(Ve)&&et.push(Ve),De&&et.push(...De),et}(Ve,Lt,st.containerClass).map(ht=>Ui(ht)(De));return{selectorOptions:Lt,argumentSelectorFunctions:tn}}(In,tn,De);return function(gr){const Pr=$n.map(Dn=>Dn(gr));try{return Ht(...Pr)}catch(Dn){if(Dn instanceof TypeError&&Kn.suppressErrors)return;throw Dn}}},Ht}function Ui(De){const st=nr(De)||Tn(De);return st&&st.makeRootSelector||(()=>De)}let Ei=(()=>{class De{constructor(Ve,et,Lt,Ht,tn,ht){this._stateStream=Ve,this._internalStateOperations=et,this._config=Lt,this._internalExecutionStrategy=Ht,this._stateFactory=tn,this._selectableStateStream=this._stateStream.pipe((0,de.Q)(y),lr(this._internalExecutionStrategy),(0,L.d)({bufferSize:1,refCount:!0})),this.initStateStream(ht)}dispatch(Ve){return this._internalStateOperations.getRootStateOperations().dispatch(Ve)}select(Ve){const et=this.getStoreBoundSelectorFn(Ve);return this._selectableStateStream.pipe((0,J.U)(et),(0,Et.K)(Lt=>{const{suppressErrors:Ht}=this._config.selectorOptions;return Lt instanceof TypeError&&Ht?(0,G.of)(void 0):(0,Z._)(Lt)}),(0,me.x)(),lr(this._internalExecutionStrategy))}selectOnce(Ve){return this.select(Ve).pipe((0,le.q)(1))}selectSnapshot(Ve){return this.getStoreBoundSelectorFn(Ve)(this._stateStream.getValue())}subscribe(Ve){return this._selectableStateStream.pipe(lr(this._internalExecutionStrategy)).subscribe(Ve)}snapshot(){return this._internalStateOperations.getRootStateOperations().getState()}reset(Ve){return this._internalStateOperations.getRootStateOperations().setState(Ve)}getStoreBoundSelectorFn(Ve){return Ui(Ve)(this._stateFactory.getRuntimeSelectorContext())}initStateStream(Ve){const et=this._stateStream.value;if(!et||0===Object.keys(et).length){const tn=Object.keys(this._config.defaultsState).length>0?Object.assign({},this._config.defaultsState,Ve):Ve;this._stateStream.next(tn)}}}return De.\u0275fac=function(Ve){return new(Ve||De)(s.LFG(Sr),s.LFG(Fr),s.LFG(Be),s.LFG(cr),s.LFG(Te),s.LFG(b,8))},De.\u0275prov=s.Yz7({token:De,factory:De.\u0275fac}),De})(),ci=(()=>{class De{constructor(Ve,et){De.store=Ve,De.config=et}ngOnDestroy(){De.store=null,De.config=null}}return De.\u0275fac=function(Ve){return new(Ve||De)(s.LFG(Ei),s.LFG(Be))},De.\u0275prov=s.Yz7({token:De,factory:De.\u0275fac}),De.store=null,De.config=null,De})();class ui{static get type(){return"@@INIT"}}class eo{constructor(st){this.addedStates=st}static get type(){return"@@UPDATE_STATE"}}let Di=(()=>{class De{constructor(Ve,et,Lt,Ht,tn=[],ht){const In=Ve.addAndReturnDefaults(tn);et.setStateToTheCurrentWithNew(In),Ve.connectActionHandlers(),ht.ngxsBootstrap(new ui,In)}}return De.\u0275fac=function(Ve){return new(Ve||De)(s.LFG(Te),s.LFG(Fr),s.LFG(Ei),s.LFG(ci),s.LFG(Wt,8),s.LFG(tt))},De.\u0275mod=s.oAB({type:De}),De.\u0275inj=s.cJS({}),De})(),Ls=(()=>{class De{constructor(Ve,et,Lt,Ht=[],tn){const ht=De.flattenStates(Ht),In=Lt.addAndReturnDefaults(ht);In.states.length&&(et.setStateToTheCurrentWithNew(In),tn.ngxsBootstrap(new eo(In.defaults),In))}static flattenStates(Ve=[]){return Ve.reduce((et,Lt)=>et.concat(Lt),[])}}return De.\u0275fac=function(Ve){return new(Ve||De)(s.LFG(Ei),s.LFG(Fr),s.LFG(Te),s.LFG(Dt,8),s.LFG(tt))},De.\u0275mod=s.oAB({type:De}),De.\u0275inj=s.cJS({}),De})();class Or{static forRoot(st=[],Ve={}){return{ngModule:Di,providers:[Te,Mi,ir,bn,w,tt,ri,ni,Fr,cr,Ei,Sr,ci,xr,...st,...Or.ngxsTokenProviders(st,Ve)]}}static forFeature(st=[]){return{ngModule:Ls,providers:[Te,xr,...st,{provide:Dt,multi:!0,useValue:st}]}}static ngxsTokenProviders(st,Ve){return[{provide:bt,useValue:Ve.executionStrategy},{provide:Wt,useValue:st},{provide:Or.ROOT_OPTIONS,useValue:Ve},{provide:Be,useFactory:Or.ngxsConfigFactory,deps:[Or.ROOT_OPTIONS]},{provide:s.tb,useFactory:Or.appBootstrapListenerFactory,multi:!0,deps:[w]},{provide:b,useFactory:Or.getInitialState},{provide:_,useExisting:Mi},{provide:v,useExisting:Te}]}static ngxsConfigFactory(st){return Ue(new Be,st)}static appBootstrapListenerFactory(st){return()=>st.bootstrap()}static getInitialState(){return p.pop()}}function Gi(De,st){return(Ve,et)=>{const Lt=zn(Ve.constructor);Array.isArray(De)||(De=[De]);for(const Ht of De){const tn=Ht.type;Lt.actions[tn]||(Lt.actions[tn]=[]),Lt.actions[tn].push({fn:et,options:st||{},type:tn})}}}function Ri(De){return et=>{const Lt=et,Ht=zn(Lt),tn=Object.getPrototypeOf(Lt),ht=function st(et){return Object.assign({},et[ot]||{},De)}(tn);(function Ve(et){const{meta:Lt,inheritedStateClass:Ht,optionsWithInheritance:tn}=et,{children:ht,defaults:In,name:$n}=tn,Kn="string"==typeof $n?$n:$n&&$n.getName()||null;Ht.hasOwnProperty(Pe)&&(Lt.actions=Object.assign({},Lt.actions,(Ht[Pe]||{}).actions)),Lt.children=ht,Lt.defaults=In,Lt.name=Kn})({meta:Ht,inheritedStateClass:tn,optionsWithInheritance:ht}),Lt[ot]=ht}}function Ji(De,...st){return function(Ve,et){const Lt=et.toString(),Ht=`__${Lt}__selector`,tn=function fs(De,st,Ve=[]){return st=st||function Zi(De){const st=De.length-1;return 36===De.charCodeAt(st)?De.slice(0,st):De}(De),"string"==typeof st?we(Ve.length?[st,...Ve]:st.split("."),ci.config):st}(Lt,De,st);Object.defineProperties(Ve,{[Ht]:{writable:!0,enumerable:!1,configurable:!0},[Lt]:{enumerable:!0,configurable:!0,get(){return this[Ht]||(this[Ht]=function Xi(De){return ci.store||function Pt(){throw new Error("You have forgotten to import the NGXS module!")}(),ci.store.select(De)}(tn))}}})}}function ps(De){return Tn(De)}function _o(De){return(st,Ve,et)=>{const Lt=et.value,Ht=dr(De,Lt,{containerClass:st,selectorName:Ve.toString(),getSelectorOptions:()=>({})}),tn={configurable:!0,get:()=>Ht};return tn.originalFn=Lt,tn}}Or.\u0275fac=function(st){return new(st||Or)},Or.\u0275mod=s.oAB({type:Or}),Or.\u0275inj=s.cJS({}),Or.ROOT_OPTIONS=new s.OlP("ROOT_OPTIONS");class or{constructor(st){this.name=st,jn(this).makeRootSelector=et=>et.getStateGetter(this.name)}getName(){return this.name}toString(){return`StateToken[${this.name}]`}}},20227:ut=>{const fe={getUserAgent:function(){return window.navigator.userAgent},userAgentContains:function(p){return p=p.toLowerCase(),this.getUserAgent().toLowerCase().indexOf(p)>-1},isOSX:function(){return this.userAgentContains("Macintosh")},isFirefox:function(){return this.userAgentContains("firefox")},isInternetExplorer:function(){return this.userAgentContains("trident")},isIE:function(){var p=this.getUserAgent().toLowerCase();return p.indexOf("msie")>0||p.indexOf("trident/")>0},isEdge:function(){return this.getUserAgent().toLowerCase().indexOf("edge")>0},isChrome:function(){const p=window.chrome,_=window.navigator,v=_.vendor,T=typeof window.opr<"u",W=_.userAgent.indexOf("Edge")>-1,P=_.userAgent.match("CriOS");return null!==p&&typeof p<"u"&&"Google Inc."===v&&!1===T&&!1===W||P},isOpera:function(){return this.userAgentContains(" OPR/")}};let d;const s=(p,_,v)=>p.addEventListener?(p.addEventListener(_,v),{remove:function(){p.removeEventListener(_,v)}}):(p.attachEvent(_,v),{remove:function(){p.detachEvent(_,v)}}),c=(p,_)=>{let v=document.createElement("iframe");return v.src=_,v.id="hiddenIframe",v.style.display="none",p.appendChild(v),v},A=(p,_,v)=>{const T=setTimeout(function(){_(),B.remove()},d);let W=document.querySelector("#hiddenIframe");W||(W=c(document.body,"about:blank"));const B=s(window,"blur",()=>{clearTimeout(T),B.remove(),v()});W.contentWindow.location.href=p};ut.exports=(p,_,v,T=2e3,W)=>{const P=()=>{_&&_()},B=()=>{v&&v()},U=()=>{fe.isFirefox()?(()=>{const p=window.navigator.userAgent;let _,v=p.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];return/trident/i.test(v[1])?(_=/\brv[ :]+(\d+)/g.exec(p)||[],parseFloat(_[1])||""):"Chrome"===v[1]&&(_=p.match(/\b(OPR|Edge)\/(\d+)/),null!=_)?parseFloat(_[2]):(v=v[2]?[v[1],v[2]]:[window.navigator.appName,window.navigator.appVersion,"-?"],null!=(_=p.match(/version\/(\d+)/i))&&v.splice(1,1,_[1]),parseFloat(v[1]))})()>=64?A(p,P,B):((p,_,v)=>{let T=document.querySelector("#hiddenIframe");T||(T=c(document.body,"about:blank"));try{T.contentWindow.location.href=p,v()}catch(W){"NS_ERROR_UNKNOWN_PROTOCOL"==W.name&&_()}})(p,P,B):fe.isChrome()?((p,_,v)=>{const T=setTimeout(function(){_(),B.remove()},d);let W=window;for(;W.parent&&W!=W.parent;)W=W.parent;const B=s(W,"blur",()=>{clearTimeout(T),B.remove(),v()});window.location.href=p})(p,P,B):fe.isOSX()?A(p,P,B):W&&W()};if(T&&(d=T),fe.isEdge()||fe.isIE())((p,_,v)=>{navigator.msLaunchUri(p,v,_)})(p,_,v);else if(document.hasFocus())U();else{let Z=s(window,"focus",()=>{Z.remove(),U()})}}},34999:ut=>{"use strict";var fe=function(U){return function d(G){return!!G&&"object"==typeof G}(U)&&!function s(G){var U=Object.prototype.toString.call(G);return"[object RegExp]"===U||"[object Date]"===U||function w(G){return G.$$typeof===A}(G)}(U)},A="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function te(G,U){return!1!==U.clone&&U.isMergeableObject(G)?P(function N(G){return Array.isArray(G)?[]:{}}(G),G,U):G}function I(G,U,Z){return G.concat(U).map(function(ue){return te(ue,Z)})}function _(G){return Object.keys(G).concat(function p(G){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(G).filter(function(U){return G.propertyIsEnumerable(U)}):[]}(G))}function v(G,U){try{return U in G}catch{return!1}}function P(G,U,Z){(Z=Z||{}).arrayMerge=Z.arrayMerge||I,Z.isMergeableObject=Z.isMergeableObject||fe,Z.cloneUnlessOtherwiseSpecified=te;var ue=Array.isArray(U);return ue===Array.isArray(G)?ue?Z.arrayMerge(G,U,Z):function W(G,U,Z){var ue={};return Z.isMergeableObject(G)&&_(G).forEach(function(F){ue[F]=te(G[F],Z)}),_(U).forEach(function(F){(function T(G,U){return v(G,U)&&!(Object.hasOwnProperty.call(G,U)&&Object.propertyIsEnumerable.call(G,U))})(G,F)||(ue[F]=v(G,F)&&Z.isMergeableObject(U[F])?function b(G,U){if(!U.customMerge)return P;var Z=U.customMerge(G);return"function"==typeof Z?Z:P}(F,Z)(G[F],U[F],Z):te(U[F],Z))}),ue}(G,U,Z):te(U,Z)}P.all=function(U,Z){if(!Array.isArray(U))throw new Error("first argument should be an array");return U.reduce(function(ue,F){return P(ue,F,Z)},{})},ut.exports=P},94327:function(ut,fe){var c;void 0!==(c=function(){"use strict";function w(_,v,T){var W=new XMLHttpRequest;W.open("GET",_),W.responseType="blob",W.onload=function(){p(W.response,v,T)},W.onerror=function(){console.error("could not download file")},W.send()}function N(_){var v=new XMLHttpRequest;v.open("HEAD",_,!1);try{v.send()}catch{}return 200<=v.status&&299>=v.status}function te(_){try{_.dispatchEvent(new MouseEvent("click"))}catch{var v=document.createEvent("MouseEvents");v.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),_.dispatchEvent(v)}}var I="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,b=I.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),p=I.saveAs||("object"!=typeof window||window!==I?function(){}:"download"in HTMLAnchorElement.prototype&&!b?function(_,v,T){var W=I.URL||I.webkitURL,P=document.createElement("a");P.download=v=v||_.name||"download",P.rel="noopener","string"==typeof _?(P.href=_,P.origin===location.origin?te(P):N(P.href)?w(_,v,T):te(P,P.target="_blank")):(P.href=W.createObjectURL(_),setTimeout(function(){W.revokeObjectURL(P.href)},4e4),setTimeout(function(){te(P)},0))}:"msSaveOrOpenBlob"in navigator?function(_,v,T){if(v=v||_.name||"download","string"!=typeof _)navigator.msSaveOrOpenBlob(function A(_,v){return typeof v>"u"?v={autoBom:!1}:"object"!=typeof v&&(console.warn("Deprecated: Expected third argument to be a object"),v={autoBom:!v}),v.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(_.type)?new Blob(["\ufeff",_],{type:_.type}):_}(_,T),v);else if(N(_))w(_,v,T);else{var W=document.createElement("a");W.href=_,W.target="_blank",setTimeout(function(){te(W)})}}:function(_,v,T,W){if((W=W||open("","_blank"))&&(W.document.title=W.document.body.innerText="downloading..."),"string"==typeof _)return w(_,v,T);var P="application/octet-stream"===_.type,B=/constructor/i.test(I.HTMLElement)||I.safari,G=/CriOS\/[\d]+/.test(navigator.userAgent);if((G||P&&B||b)&&typeof FileReader<"u"){var U=new FileReader;U.onloadend=function(){var F=U.result;F=G?F:F.replace(/^data:[^;]*;/,"data:attachment/file;"),W?W.location.href=F:location=F,W=null},U.readAsDataURL(_)}else{var Z=I.URL||I.webkitURL,ue=Z.createObjectURL(_);W?W.location=ue:location.href=ue,W=null,setTimeout(function(){Z.revokeObjectURL(ue)},4e4)}});I.saveAs=p.saveAs=p,ut.exports=p}.apply(fe,[]))&&(ut.exports=c)},55386:(ut,fe,d)=>{var s;!function(c,A,w,N){"use strict";var G,te=["","webkit","Moz","MS","ms","o"],I=A.createElement("div"),p=Math.round,_=Math.abs,v=Date.now;function T(ve,Te,tt){return setTimeout(F(ve,tt),Te)}function W(ve,Te,tt){return!!Array.isArray(ve)&&(P(ve,tt[Te],tt),!0)}function P(ve,Te,tt){var Ot;if(ve)if(ve.forEach)ve.forEach(Te,tt);else if(ve.length!==N)for(Ot=0;Ot<ve.length;)Te.call(tt,ve[Ot],Ot,ve),Ot++;else for(Ot in ve)ve.hasOwnProperty(Ot)&&Te.call(tt,ve[Ot],Ot,ve)}function B(ve,Te,tt){var Ot="DEPRECATED METHOD: "+Te+"\n"+tt+" AT \n";return function(){var Qt=new Error("get-stack-trace"),hn=Qt&&Qt.stack?Qt.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",Bn=c.console&&(c.console.warn||c.console.log);return Bn&&Bn.call(c.console,Ot,hn),ve.apply(this,arguments)}}G="function"!=typeof Object.assign?function(Te){if(Te===N||null===Te)throw new TypeError("Cannot convert undefined or null to object");for(var tt=Object(Te),Ot=1;Ot<arguments.length;Ot++){var Qt=arguments[Ot];if(Qt!==N&&null!==Qt)for(var hn in Qt)Qt.hasOwnProperty(hn)&&(tt[hn]=Qt[hn])}return tt}:Object.assign;var U=B(function(Te,tt,Ot){for(var Qt=Object.keys(tt),hn=0;hn<Qt.length;)(!Ot||Ot&&Te[Qt[hn]]===N)&&(Te[Qt[hn]]=tt[Qt[hn]]),hn++;return Te},"extend","Use `assign`."),Z=B(function(Te,tt){return U(Te,tt,!0)},"merge","Use `assign`.");function ue(ve,Te,tt){var Qt,Ot=Te.prototype;(Qt=ve.prototype=Object.create(Ot)).constructor=ve,Qt._super=Ot,tt&&G(Qt,tt)}function F(ve,Te){return function(){return ve.apply(Te,arguments)}}function Y(ve,Te){return"function"==typeof ve?ve.apply(Te&&Te[0]||N,Te):ve}function ee(ve,Te){return ve===N?Te:ve}function oe(ve,Te,tt){P($(Te),function(Ot){ve.addEventListener(Ot,tt,!1)})}function X(ve,Te,tt){P($(Te),function(Ot){ve.removeEventListener(Ot,tt,!1)})}function y(ve,Te){for(;ve;){if(ve==Te)return!0;ve=ve.parentNode}return!1}function k(ve,Te){return ve.indexOf(Te)>-1}function $(ve){return ve.trim().split(/\s+/g)}function J(ve,Te,tt){if(ve.indexOf&&!tt)return ve.indexOf(Te);for(var Ot=0;Ot<ve.length;){if(tt&&ve[Ot][tt]==Te||!tt&&ve[Ot]===Te)return Ot;Ot++}return-1}function L(ve){return Array.prototype.slice.call(ve,0)}function le(ve,Te,tt){for(var Ot=[],Qt=[],hn=0;hn<ve.length;){var Bn=Te?ve[hn][Te]:ve[hn];J(Qt,Bn)<0&&Ot.push(ve[hn]),Qt[hn]=Bn,hn++}return tt&&(Ot=Te?Ot.sort(function(sr,Mn){return sr[Te]>Mn[Te]}):Ot.sort()),Ot}function ce(ve,Te){for(var tt,Ot,Qt=Te[0].toUpperCase()+Te.slice(1),hn=0;hn<te.length;){if((Ot=(tt=te[hn])?tt+Qt:Te)in ve)return Ot;hn++}return N}var Se=1;function ct(ve){var Te=ve.ownerDocument||ve;return Te.defaultView||Te.parentWindow||c}var $e="ontouchstart"in c,Et=ce(c,"PointerEvent")!==N,ke=$e&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),je="touch",me="mouse",Dt=["x","y"],pe=["clientX","clientY"];function Pe(ve,Te){var tt=this;this.manager=ve,this.callback=Te,this.element=ve.element,this.target=ve.options.inputTarget,this.domHandler=function(Ot){Y(ve.options.enable,[ve])&&tt.handler(Ot)},this.init()}function vt(ve,Te,tt){var Ot=tt.pointers.length,Qt=tt.changedPointers.length,hn=1&Te&&Ot-Qt==0,Bn=12&Te&&Ot-Qt==0;tt.isFirst=!!hn,tt.isFinal=!!Bn,hn&&(ve.session={}),tt.eventType=Te,function Be(ve,Te){var tt=ve.session,Ot=Te.pointers,Qt=Ot.length;tt.firstInput||(tt.firstInput=mt(Te)),Qt>1&&!tt.firstMultiple?tt.firstMultiple=mt(Te):1===Qt&&(tt.firstMultiple=!1);var hn=tt.firstInput,Bn=tt.firstMultiple,dr=Bn?Bn.center:hn.center,sr=Te.center=Ct(Ot);Te.timeStamp=v(),Te.deltaTime=Te.timeStamp-hn.timeStamp,Te.angle=Re(dr,sr),Te.distance=xe(dr,sr),function Ie(ve,Te){var tt=Te.center,Ot=ve.offsetDelta||{},Qt=ve.prevDelta||{},hn=ve.prevInput||{};(1===Te.eventType||4===hn.eventType)&&(Qt=ve.prevDelta={x:hn.deltaX||0,y:hn.deltaY||0},Ot=ve.offsetDelta={x:tt.x,y:tt.y}),Te.deltaX=Qt.x+(tt.x-Ot.x),Te.deltaY=Qt.y+(tt.y-Ot.y)}(tt,Te),Te.offsetDirection=qe(Te.deltaX,Te.deltaY);var Mn=Me(Te.deltaTime,Te.deltaX,Te.deltaY);Te.overallVelocityX=Mn.x,Te.overallVelocityY=Mn.y,Te.overallVelocity=_(Mn.x)>_(Mn.y)?Mn.x:Mn.y,Te.scale=Bn?function Mt(ve,Te){return xe(Te[0],Te[1],pe)/xe(ve[0],ve[1],pe)}(Bn.pointers,Ot):1,Te.rotation=Bn?function bt(ve,Te){return Re(Te[1],Te[0],pe)+Re(ve[1],ve[0],pe)}(Bn.pointers,Ot):0,Te.maxPointers=tt.prevInput?Te.pointers.length>tt.prevInput.maxPointers?Te.pointers.length:tt.prevInput.maxPointers:Te.pointers.length,function Le(ve,Te){var Qt,hn,Bn,dr,tt=ve.lastInterval||Te,Ot=Te.timeStamp-tt.timeStamp;if(8!=Te.eventType&&(Ot>25||tt.velocity===N)){var sr=Te.deltaX-tt.deltaX,Mn=Te.deltaY-tt.deltaY,Ir=Me(Ot,sr,Mn);hn=Ir.x,Bn=Ir.y,Qt=_(Ir.x)>_(Ir.y)?Ir.x:Ir.y,dr=qe(sr,Mn),ve.lastInterval=Te}else Qt=tt.velocity,hn=tt.velocityX,Bn=tt.velocityY,dr=tt.direction;Te.velocity=Qt,Te.velocityX=hn,Te.velocityY=Bn,Te.direction=dr}(tt,Te);var Ir=ve.element;y(Te.srcEvent.target,Ir)&&(Ir=Te.srcEvent.target),Te.target=Ir}(ve,tt),ve.emit("hammer.input",tt),ve.recognize(tt),ve.session.prevInput=tt}function mt(ve){for(var Te=[],tt=0;tt<ve.pointers.length;)Te[tt]={clientX:p(ve.pointers[tt].clientX),clientY:p(ve.pointers[tt].clientY)},tt++;return{timeStamp:v(),pointers:Te,center:Ct(Te),deltaX:ve.deltaX,deltaY:ve.deltaY}}function Ct(ve){var Te=ve.length;if(1===Te)return{x:p(ve[0].clientX),y:p(ve[0].clientY)};for(var tt=0,Ot=0,Qt=0;Qt<Te;)tt+=ve[Qt].clientX,Ot+=ve[Qt].clientY,Qt++;return{x:p(tt/Te),y:p(Ot/Te)}}function Me(ve,Te,tt){return{x:Te/ve||0,y:tt/ve||0}}function qe(ve,Te){return ve===Te?1:_(ve)>=_(Te)?ve<0?2:4:Te<0?8:16}function xe(ve,Te,tt){tt||(tt=Dt);var Ot=Te[tt[0]]-ve[tt[0]],Qt=Te[tt[1]]-ve[tt[1]];return Math.sqrt(Ot*Ot+Qt*Qt)}function Re(ve,Te,tt){return tt||(tt=Dt),180*Math.atan2(Te[tt[1]]-ve[tt[1]],Te[tt[0]]-ve[tt[0]])/Math.PI}Pe.prototype={handler:function(){},init:function(){this.evEl&&oe(this.element,this.evEl,this.domHandler),this.evTarget&&oe(this.target,this.evTarget,this.domHandler),this.evWin&&oe(ct(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&X(this.element,this.evEl,this.domHandler),this.evTarget&&X(this.target,this.evTarget,this.domHandler),this.evWin&&X(ct(this.element),this.evWin,this.domHandler)}};var un={mousedown:1,mousemove:2,mouseup:4},an="mousedown",dt="mousemove mouseup";function ze(){this.evEl=an,this.evWin=dt,this.pressed=!1,Pe.apply(this,arguments)}ue(ze,Pe,{handler:function(Te){var tt=un[Te.type];1&tt&&0===Te.button&&(this.pressed=!0),2&tt&&1!==Te.which&&(tt=4),this.pressed&&(4&tt&&(this.pressed=!1),this.callback(this.manager,tt,{pointers:[Te],changedPointers:[Te],pointerType:me,srcEvent:Te}))}});var Ge={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},Oe={2:je,3:"pen",4:me,5:"kinect"},Ue="pointerdown",be="pointermove pointerup pointercancel";function at(){this.evEl=Ue,this.evWin=be,Pe.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}c.MSPointerEvent&&!c.PointerEvent&&(Ue="MSPointerDown",be="MSPointerMove MSPointerUp MSPointerCancel"),ue(at,Pe,{handler:function(Te){var tt=this.store,Ot=!1,Qt=Te.type.toLowerCase().replace("ms",""),hn=Ge[Qt],Bn=Oe[Te.pointerType]||Te.pointerType,dr=Bn==je,sr=J(tt,Te.pointerId,"pointerId");1&hn&&(0===Te.button||dr)?sr<0&&(tt.push(Te),sr=tt.length-1):12&hn&&(Ot=!0),!(sr<0)&&(tt[sr]=Te,this.callback(this.manager,hn,{pointers:tt,changedPointers:[Te],pointerType:Bn,srcEvent:Te}),Ot&&tt.splice(sr,1))}});var At={touchstart:1,touchmove:2,touchend:4,touchcancel:8},Yt="touchstart",En="touchstart touchmove touchend touchcancel";function Ln(){this.evTarget=Yt,this.evWin=En,this.started=!1,Pe.apply(this,arguments)}function Hr(ve,Te){var tt=L(ve.touches),Ot=L(ve.changedTouches);return 12&Te&&(tt=le(tt.concat(Ot),"identifier",!0)),[tt,Ot]}ue(Ln,Pe,{handler:function(Te){var tt=At[Te.type];if(1===tt&&(this.started=!0),this.started){var Ot=Hr.call(this,Te,tt);12&tt&&Ot[0].length-Ot[1].length==0&&(this.started=!1),this.callback(this.manager,tt,{pointers:Ot[0],changedPointers:Ot[1],pointerType:je,srcEvent:Te})}}});var On={touchstart:1,touchmove:2,touchend:4,touchcancel:8},Er="touchstart touchmove touchend touchcancel";function zn(){this.evTarget=Er,this.targetIds={},Pe.apply(this,arguments)}function Tn(ve,Te){var tt=L(ve.touches),Ot=this.targetIds;if(3&Te&&1===tt.length)return Ot[tt[0].identifier]=!0,[tt,tt];var Qt,hn,Bn=L(ve.changedTouches),dr=[],sr=this.target;if(hn=tt.filter(function(Mn){return y(Mn.target,sr)}),1===Te)for(Qt=0;Qt<hn.length;)Ot[hn[Qt].identifier]=!0,Qt++;for(Qt=0;Qt<Bn.length;)Ot[Bn[Qt].identifier]&&dr.push(Bn[Qt]),12&Te&&delete Ot[Bn[Qt].identifier],Qt++;return dr.length?[le(hn.concat(dr),"identifier",!0),dr]:void 0}function Ke(){Pe.apply(this,arguments);var ve=F(this.handler,this);this.touch=new zn(this.manager,ve),this.mouse=new ze(this.manager,ve),this.primaryTouch=null,this.lastTouches=[]}function Ze(ve,Te){1&ve?(this.primaryTouch=Te.changedPointers[0].identifier,we.call(this,Te)):12&ve&&we.call(this,Te)}function we(ve){var Te=ve.changedPointers[0];if(Te.identifier===this.primaryTouch){var tt={x:Te.clientX,y:Te.clientY};this.lastTouches.push(tt);var Ot=this.lastTouches;setTimeout(function(){var hn=Ot.indexOf(tt);hn>-1&&Ot.splice(hn,1)},2500)}}function gt(ve){for(var Te=ve.srcEvent.clientX,tt=ve.srcEvent.clientY,Ot=0;Ot<this.lastTouches.length;Ot++){var Qt=this.lastTouches[Ot],hn=Math.abs(Te-Qt.x),Bn=Math.abs(tt-Qt.y);if(hn<=25&&Bn<=25)return!0}return!1}ue(zn,Pe,{handler:function(Te){var tt=On[Te.type],Ot=Tn.call(this,Te,tt);!Ot||this.callback(this.manager,tt,{pointers:Ot[0],changedPointers:Ot[1],pointerType:je,srcEvent:Te})}}),ue(Ke,Pe,{handler:function(Te,tt,Ot){var hn=Ot.pointerType==me;if(!(hn&&Ot.sourceCapabilities&&Ot.sourceCapabilities.firesTouchEvents)){if(Ot.pointerType==je)Ze.call(this,tt,Ot);else if(hn&&gt.call(this,Ot))return;this.callback(Te,tt,Ot)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Bt=ce(I.style,"touchAction"),ln=Bt!==N,pn="compute",Jn="manipulation",_r="none",yn="pan-x",$r="pan-y",ti=function Cr(){if(!ln)return!1;var ve={},Te=c.CSS&&c.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(tt){ve[tt]=!Te||c.CSS.supports("touch-action",tt)}),ve}();function Xr(ve,Te){this.manager=ve,this.set(Te)}function lr(ve){this.options=G({},this.defaults,ve||{}),this.id=function Qe(){return Se++}(),this.manager=null,this.options.enable=ee(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function cr(ve){return 16&ve?"cancel":8&ve?"end":4&ve?"move":2&ve?"start":""}function di(ve){return 16==ve?"down":8==ve?"up":2==ve?"left":4==ve?"right":""}function Kr(ve,Te){var tt=Te.manager;return tt?tt.get(ve):ve}function ur(){lr.apply(this,arguments)}function bn(){ur.apply(this,arguments),this.pX=null,this.pY=null}function ir(){ur.apply(this,arguments)}function li(){lr.apply(this,arguments),this._timer=null,this._input=null}function Sr(){ur.apply(this,arguments)}function xr(){ur.apply(this,arguments)}function ni(){lr.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function ri(ve,Te){return(Te=Te||{}).recognizers=ee(Te.recognizers,ri.defaults.preset),new Yi(ve,Te)}function Yi(ve,Te){this.options=G({},ri.defaults,Te||{}),this.options.inputTarget=this.options.inputTarget||ve,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=ve,this.input=function ot(ve){return new(ve.options.inputClass||(Et?at:ke?zn:$e?Ke:ze))(ve,vt)}(this),this.touchAction=new Xr(this,this.options.touchAction),_i(this,!0),P(this.options.recognizers,function(tt){var Ot=this.add(new tt[0](tt[1]));tt[2]&&Ot.recognizeWith(tt[2]),tt[3]&&Ot.requireFailure(tt[3])},this)}function _i(ve,Te){var Ot,tt=ve.element;tt.style&&(P(ve.options.cssProps,function(Qt,hn){Ot=ce(tt.style,hn),Te?(ve.oldCssProps[Ot]=tt.style[Ot],tt.style[Ot]=Qt):tt.style[Ot]=ve.oldCssProps[Ot]||""}),Te||(ve.oldCssProps={}))}Xr.prototype={set:function(ve){ve==pn&&(ve=this.compute()),ln&&this.manager.element.style&&ti[ve]&&(this.manager.element.style[Bt]=ve),this.actions=ve.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var ve=[];return P(this.manager.recognizers,function(Te){Y(Te.options.enable,[Te])&&(ve=ve.concat(Te.getTouchAction()))}),function tr(ve){if(k(ve,_r))return _r;var Te=k(ve,yn),tt=k(ve,$r);return Te&&tt?_r:Te||tt?Te?yn:$r:k(ve,Jn)?Jn:"auto"}(ve.join(" "))},preventDefaults:function(ve){var Te=ve.srcEvent,tt=ve.offsetDirection;if(!this.manager.session.prevented){var Ot=this.actions,Qt=k(Ot,_r)&&!ti[_r],hn=k(Ot,$r)&&!ti[$r],Bn=k(Ot,yn)&&!ti[yn];if(Qt&&1===ve.pointers.length&&ve.distance<2&&ve.deltaTime<250)return;return Bn&&hn||!(Qt||hn&&6&tt||Bn&&24&tt)?void 0:this.preventSrc(Te)}Te.preventDefault()},preventSrc:function(ve){this.manager.session.prevented=!0,ve.preventDefault()}},lr.prototype={defaults:{},set:function(ve){return G(this.options,ve),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(ve){if(W(ve,"recognizeWith",this))return this;var Te=this.simultaneous;return Te[(ve=Kr(ve,this)).id]||(Te[ve.id]=ve,ve.recognizeWith(this)),this},dropRecognizeWith:function(ve){return W(ve,"dropRecognizeWith",this)||(ve=Kr(ve,this),delete this.simultaneous[ve.id]),this},requireFailure:function(ve){if(W(ve,"requireFailure",this))return this;var Te=this.requireFail;return-1===J(Te,ve=Kr(ve,this))&&(Te.push(ve),ve.requireFailure(this)),this},dropRequireFailure:function(ve){if(W(ve,"dropRequireFailure",this))return this;ve=Kr(ve,this);var Te=J(this.requireFail,ve);return Te>-1&&this.requireFail.splice(Te,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(ve){return!!this.simultaneous[ve.id]},emit:function(ve){var Te=this,tt=this.state;function Ot(Qt){Te.manager.emit(Qt,ve)}tt<8&&Ot(Te.options.event+cr(tt)),Ot(Te.options.event),ve.additionalEvent&&Ot(ve.additionalEvent),tt>=8&&Ot(Te.options.event+cr(tt))},tryEmit:function(ve){if(this.canEmit())return this.emit(ve);this.state=32},canEmit:function(){for(var ve=0;ve<this.requireFail.length;){if(!(33&this.requireFail[ve].state))return!1;ve++}return!0},recognize:function(ve){var Te=G({},ve);if(!Y(this.options.enable,[this,Te]))return this.reset(),void(this.state=32);56&this.state&&(this.state=1),this.state=this.process(Te),30&this.state&&this.tryEmit(Te)},process:function(ve){},getTouchAction:function(){},reset:function(){}},ue(ur,lr,{defaults:{pointers:1},attrTest:function(ve){var Te=this.options.pointers;return 0===Te||ve.pointers.length===Te},process:function(ve){var Te=this.state,tt=ve.eventType,Ot=6&Te,Qt=this.attrTest(ve);return Ot&&(8&tt||!Qt)?16|Te:Ot||Qt?4&tt?8|Te:2&Te?4|Te:2:32}}),ue(bn,ur,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var ve=this.options.direction,Te=[];return 6&ve&&Te.push($r),24&ve&&Te.push(yn),Te},directionTest:function(ve){var Te=this.options,tt=!0,Ot=ve.distance,Qt=ve.direction,hn=ve.deltaX,Bn=ve.deltaY;return Qt&Te.direction||(6&Te.direction?(Qt=0===hn?1:hn<0?2:4,tt=hn!=this.pX,Ot=Math.abs(ve.deltaX)):(Qt=0===Bn?1:Bn<0?8:16,tt=Bn!=this.pY,Ot=Math.abs(ve.deltaY))),ve.direction=Qt,tt&&Ot>Te.threshold&&Qt&Te.direction},attrTest:function(ve){return ur.prototype.attrTest.call(this,ve)&&(2&this.state||!(2&this.state)&&this.directionTest(ve))},emit:function(ve){this.pX=ve.deltaX,this.pY=ve.deltaY;var Te=di(ve.direction);Te&&(ve.additionalEvent=this.options.event+Te),this._super.emit.call(this,ve)}}),ue(ir,ur,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[_r]},attrTest:function(ve){return this._super.attrTest.call(this,ve)&&(Math.abs(ve.scale-1)>this.options.threshold||2&this.state)},emit:function(ve){1!==ve.scale&&(ve.additionalEvent=this.options.event+(ve.scale<1?"in":"out")),this._super.emit.call(this,ve)}}),ue(li,lr,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(ve){var Te=this.options,tt=ve.pointers.length===Te.pointers,Ot=ve.distance<Te.threshold,Qt=ve.deltaTime>Te.time;if(this._input=ve,!Ot||!tt||12&ve.eventType&&!Qt)this.reset();else if(1&ve.eventType)this.reset(),this._timer=T(function(){this.state=8,this.tryEmit()},Te.time,this);else if(4&ve.eventType)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(ve){8===this.state&&(ve&&4&ve.eventType?this.manager.emit(this.options.event+"up",ve):(this._input.timeStamp=v(),this.manager.emit(this.options.event,this._input)))}}),ue(Sr,ur,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[_r]},attrTest:function(ve){return this._super.attrTest.call(this,ve)&&(Math.abs(ve.rotation)>this.options.threshold||2&this.state)}}),ue(xr,ur,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return bn.prototype.getTouchAction.call(this)},attrTest:function(ve){var tt,Te=this.options.direction;return 30&Te?tt=ve.overallVelocity:6&Te?tt=ve.overallVelocityX:24&Te&&(tt=ve.overallVelocityY),this._super.attrTest.call(this,ve)&&Te&ve.offsetDirection&&ve.distance>this.options.threshold&&ve.maxPointers==this.options.pointers&&_(tt)>this.options.velocity&&4&ve.eventType},emit:function(ve){var Te=di(ve.offsetDirection);Te&&this.manager.emit(this.options.event+Te,ve),this.manager.emit(this.options.event,ve)}}),ue(ni,lr,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Jn]},process:function(ve){var Te=this.options,tt=ve.pointers.length===Te.pointers,Ot=ve.distance<Te.threshold,Qt=ve.deltaTime<Te.time;if(this.reset(),1&ve.eventType&&0===this.count)return this.failTimeout();if(Ot&&Qt&&tt){if(4!=ve.eventType)return this.failTimeout();var hn=!this.pTime||ve.timeStamp-this.pTime<Te.interval,Bn=!this.pCenter||xe(this.pCenter,ve.center)<Te.posThreshold;if(this.pTime=ve.timeStamp,this.pCenter=ve.center,Bn&&hn?this.count+=1:this.count=1,this._input=ve,0==this.count%Te.taps)return this.hasRequireFailures()?(this._timer=T(function(){this.state=8,this.tryEmit()},Te.interval,this),2):8}return 32},failTimeout:function(){return this._timer=T(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),ri.VERSION="2.0.7",ri.defaults={domEvents:!1,touchAction:pn,enable:!0,inputTarget:null,inputClass:null,preset:[[Sr,{enable:!1}],[ir,{enable:!1},["rotate"]],[xr,{direction:6}],[bn,{direction:6},["swipe"]],[ni],[ni,{event:"doubletap",taps:2},["tap"]],[li]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Yi.prototype={set:function(ve){return G(this.options,ve),ve.touchAction&&this.touchAction.update(),ve.inputTarget&&(this.input.destroy(),this.input.target=ve.inputTarget,this.input.init()),this},stop:function(ve){this.session.stopped=ve?2:1},recognize:function(ve){var Te=this.session;if(!Te.stopped){this.touchAction.preventDefaults(ve);var tt,Ot=this.recognizers,Qt=Te.curRecognizer;(!Qt||Qt&&8&Qt.state)&&(Qt=Te.curRecognizer=null);for(var hn=0;hn<Ot.length;)tt=Ot[hn],2===Te.stopped||Qt&&tt!=Qt&&!tt.canRecognizeWith(Qt)?tt.reset():tt.recognize(ve),!Qt&&14&tt.state&&(Qt=Te.curRecognizer=tt),hn++}},get:function(ve){if(ve instanceof lr)return ve;for(var Te=this.recognizers,tt=0;tt<Te.length;tt++)if(Te[tt].options.event==ve)return Te[tt];return null},add:function(ve){if(W(ve,"add",this))return this;var Te=this.get(ve.options.event);return Te&&this.remove(Te),this.recognizers.push(ve),ve.manager=this,this.touchAction.update(),ve},remove:function(ve){if(W(ve,"remove",this))return this;if(ve=this.get(ve)){var Te=this.recognizers,tt=J(Te,ve);-1!==tt&&(Te.splice(tt,1),this.touchAction.update())}return this},on:function(ve,Te){if(ve!==N&&Te!==N){var tt=this.handlers;return P($(ve),function(Ot){tt[Ot]=tt[Ot]||[],tt[Ot].push(Te)}),this}},off:function(ve,Te){if(ve!==N){var tt=this.handlers;return P($(ve),function(Ot){Te?tt[Ot]&&tt[Ot].splice(J(tt[Ot],Te),1):delete tt[Ot]}),this}},emit:function(ve,Te){this.options.domEvents&&function Mi(ve,Te){var tt=A.createEvent("Event");tt.initEvent(ve,!0,!0),tt.gesture=Te,Te.target.dispatchEvent(tt)}(ve,Te);var tt=this.handlers[ve]&&this.handlers[ve].slice();if(tt&&tt.length){Te.type=ve,Te.preventDefault=function(){Te.srcEvent.preventDefault()};for(var Ot=0;Ot<tt.length;)tt[Ot](Te),Ot++}},destroy:function(){this.element&&_i(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},G(ri,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:24,DIRECTION_ALL:30,Manager:Yi,Input:Pe,TouchAction:Xr,TouchInput:zn,MouseInput:ze,PointerEventInput:at,TouchMouseInput:Ke,SingleTouchInput:Ln,Recognizer:lr,AttrRecognizer:ur,Tap:ni,Pan:bn,Swipe:xr,Pinch:ir,Rotate:Sr,Press:li,on:oe,off:X,each:P,merge:Z,extend:U,assign:G,inherit:ue,bindFn:F,prefixed:ce}),(typeof c<"u"?c:typeof self<"u"?self:{}).Hammer=ri,(s=function(){return ri}.call(fe,d,fe,ut))!==N&&(ut.exports=s)}(window,document)},68968:(ut,fe,d)=>{"use strict";function N(Me,qe,xe,Re){var un,bt=arguments.length,Mt=bt<3?qe:null===Re?Re=Object.getOwnPropertyDescriptor(qe,xe):Re;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Mt=Reflect.decorate(Me,qe,xe,Re);else for(var an=Me.length-1;an>=0;an--)(un=Me[an])&&(Mt=(bt<3?un(Mt):bt>3?un(qe,xe,Mt):un(qe,xe))||Mt);return bt>3&&Mt&&Object.defineProperty(qe,xe,Mt),Mt}function te(Me,qe){return function(xe,Re){qe(xe,Re,Me)}}d.d(fe,{Rh:()=>vt,_W:()=>Dt});var y=d(94650),k=d(37340),$=d(77579),J=d(11481),L=d(36895);const le=["toast-component",""];function ce(Me,qe){if(1&Me){const xe=y.EpF();y.TgZ(0,"button",5),y.NdJ("click",function(){y.CHM(xe);const bt=y.oxw();return y.KtG(bt.remove())}),y.TgZ(1,"span",6),y._uU(2,"\xd7"),y.qZA()()}}function Se(Me,qe){if(1&Me&&(y.ynx(0),y._uU(1),y.BQk()),2&Me){const xe=y.oxw(2);y.xp6(1),y.hij("[",xe.duplicatesCount+1,"]")}}function Qe(Me,qe){if(1&Me&&(y.TgZ(0,"div"),y._uU(1),y.YNc(2,Se,2,1,"ng-container",4),y.qZA()),2&Me){const xe=y.oxw();y.Tol(xe.options.titleClass),y.uIk("aria-label",xe.title),y.xp6(1),y.hij(" ",xe.title," "),y.xp6(1),y.Q6J("ngIf",xe.duplicatesCount)}}function ct(Me,qe){if(1&Me&&y._UZ(0,"div",7),2&Me){const xe=y.oxw();y.Tol(xe.options.messageClass),y.Q6J("innerHTML",xe.message,y.oJD)}}function $t(Me,qe){if(1&Me&&(y.TgZ(0,"div",8),y._uU(1),y.qZA()),2&Me){const xe=y.oxw();y.Tol(xe.options.messageClass),y.uIk("aria-label",xe.message),y.xp6(1),y.hij(" ",xe.message," ")}}function $e(Me,qe){if(1&Me&&(y.TgZ(0,"div"),y._UZ(1,"div",9),y.qZA()),2&Me){const xe=y.oxw();y.xp6(1),y.Udp("width",xe.width+"%")}}function Et(Me,qe){if(1&Me){const xe=y.EpF();y.TgZ(0,"button",5),y.NdJ("click",function(){y.CHM(xe);const bt=y.oxw();return y.KtG(bt.remove())}),y.TgZ(1,"span",6),y._uU(2,"\xd7"),y.qZA()()}}function ke(Me,qe){if(1&Me&&(y.ynx(0),y._uU(1),y.BQk()),2&Me){const xe=y.oxw(2);y.xp6(1),y.hij("[",xe.duplicatesCount+1,"]")}}function je(Me,qe){if(1&Me&&(y.TgZ(0,"div"),y._uU(1),y.YNc(2,ke,2,1,"ng-container",4),y.qZA()),2&Me){const xe=y.oxw();y.Tol(xe.options.titleClass),y.uIk("aria-label",xe.title),y.xp6(1),y.hij(" ",xe.title," "),y.xp6(1),y.Q6J("ngIf",xe.duplicatesCount)}}function de(Me,qe){if(1&Me&&y._UZ(0,"div",7),2&Me){const xe=y.oxw();y.Tol(xe.options.messageClass),y.Q6J("innerHTML",xe.message,y.oJD)}}function me(Me,qe){if(1&Me&&(y.TgZ(0,"div",8),y._uU(1),y.qZA()),2&Me){const xe=y.oxw();y.Tol(xe.options.messageClass),y.uIk("aria-label",xe.message),y.xp6(1),y.hij(" ",xe.message," ")}}function Ne(Me,qe){if(1&Me&&(y.TgZ(0,"div"),y._UZ(1,"div",9),y.qZA()),2&Me){const xe=y.oxw();y.xp6(1),y.Udp("width",xe.width+"%")}}class Gt{constructor(qe,xe,Re,bt,Mt,un){this.toastId=qe,this.config=xe,this.message=Re,this.title=bt,this.toastType=Mt,this.toastRef=un,this._onTap=new $.x,this._onAction=new $.x,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(qe){this._onAction.next(qe)}onAction(){return this._onAction.asObservable()}}const Ft={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing"},Vt=new y.OlP("ToastConfig");class sn{constructor(qe,xe){this.component=qe,this.injector=xe}attach(qe,xe){return this._attachedHost=qe,qe.attach(this,xe)}detach(){const qe=this._attachedHost;if(qe)return this._attachedHost=void 0,qe.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(qe){this._attachedHost=qe}}class Pt extends class nn{attach(qe,xe){return this._attachedPortal=qe,this.attachComponentPortal(qe,xe)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(qe){this._disposeFn=qe}}{constructor(qe,xe,Re){super(),this._hostDomElement=qe,this._componentFactoryResolver=xe,this._appRef=Re}attachComponentPortal(qe,xe){const Re=this._componentFactoryResolver.resolveComponentFactory(qe.component);let bt;return bt=Re.create(qe.injector),this._appRef.attachView(bt.hostView),this.setDisposeFn(()=>{this._appRef.detachView(bt.hostView),bt.destroy()}),xe?this._hostDomElement.insertBefore(this._getComponentRootNode(bt),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(bt)),bt}_getComponentRootNode(qe){return qe.hostView.rootNodes[0]}}let wt=(()=>{let Me=class{constructor(xe){this._document=xe}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const xe=this._document.createElement("div");xe.classList.add("overlay-container"),this._document.body.appendChild(xe),this._containerElement=xe}};return Me.\u0275fac=function(xe){return new(xe||Me)(y.LFG(L.K0))},Me.\u0275prov=(0,y.Yz7)({factory:function(){return new Me((0,y.LFG)(L.K0))},token:Me,providedIn:"root"}),Me=N([te(0,(0,y.tBr)(L.K0))],Me),Me})();class Je{constructor(qe){this._portalHost=qe}attach(qe,xe=!0){return this._portalHost.attach(qe,xe)}detach(){return this._portalHost.detach()}}let _t=(()=>{let Me=class{constructor(xe,Re,bt,Mt){this._overlayContainer=xe,this._componentFactoryResolver=Re,this._appRef=bt,this._document=Mt,this._paneElements=new Map}create(xe,Re){return this._createOverlayRef(this.getPaneElement(xe,Re))}getPaneElement(xe="",Re){return this._paneElements.get(Re)||this._paneElements.set(Re,{}),this._paneElements.get(Re)[xe]||(this._paneElements.get(Re)[xe]=this._createPaneElement(xe,Re)),this._paneElements.get(Re)[xe]}_createPaneElement(xe,Re){const bt=this._document.createElement("div");return bt.id="toast-container",bt.classList.add(xe),bt.classList.add("toast-container"),Re?Re.getContainerElement().appendChild(bt):this._overlayContainer.getContainerElement().appendChild(bt),bt}_createPortalHost(xe){return new Pt(xe,this._componentFactoryResolver,this._appRef)}_createOverlayRef(xe){return new Je(this._createPortalHost(xe))}};return Me.\u0275fac=function(xe){return new(xe||Me)(y.LFG(wt),y.LFG(y._Vd),y.LFG(y.z2F),y.LFG(L.K0))},Me.\u0275prov=(0,y.Yz7)({factory:function(){return new Me((0,y.LFG)(wt),(0,y.LFG)(y._Vd),(0,y.LFG)(y.z2F),(0,y.LFG)(L.K0))},token:Me,providedIn:"root"}),Me=N([te(3,(0,y.tBr)(L.K0))],Me),Me})();class Tt{constructor(qe){this._overlayRef=qe,this.duplicatesCount=0,this._afterClosed=new $.x,this._activate=new $.x,this._manualClose=new $.x,this._resetTimeout=new $.x,this._countDuplicate=new $.x}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(qe,xe){qe&&this._resetTimeout.next(),xe&&this._countDuplicate.next(++this.duplicatesCount)}}class Wt{constructor(qe,xe){this._toastPackage=qe,this._parentInjector=xe}get(qe,xe,Re){return qe===Gt?this._toastPackage:this._parentInjector.get(qe,xe,Re)}}let Dt=(()=>{let Me=class{constructor(xe,Re,bt,Mt,un){this.overlay=Re,this._injector=bt,this.sanitizer=Mt,this.ngZone=un,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig=Object.assign(Object.assign({},xe.default),xe.config),xe.config.iconClasses&&(this.toastrConfig.iconClasses=Object.assign(Object.assign({},xe.default.iconClasses),xe.config.iconClasses))}show(xe,Re,bt={},Mt=""){return this._preBuildNotification(Mt,xe,Re,this.applyConfig(bt))}success(xe,Re,bt={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",xe,Re,this.applyConfig(bt))}error(xe,Re,bt={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",xe,Re,this.applyConfig(bt))}info(xe,Re,bt={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",xe,Re,this.applyConfig(bt))}warning(xe,Re,bt={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",xe,Re,this.applyConfig(bt))}clear(xe){for(const Re of this.toasts)if(void 0!==xe){if(Re.toastId===xe)return void Re.toastRef.manualClose()}else Re.toastRef.manualClose()}remove(xe){const Re=this._findToast(xe);if(!Re||(Re.activeToast.toastRef.close(),this.toasts.splice(Re.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){const bt=this.toasts[this.currentlyActive].toastRef;bt.isInactive()||(this.currentlyActive=this.currentlyActive+1,bt.activate())}return!0}findDuplicate(xe,Re,bt){for(const Mt of this.toasts)if(Mt.message===xe)return Mt.toastRef.onDuplicate(Re,bt),Mt;return null}applyConfig(xe={}){return Object.assign(Object.assign({},this.toastrConfig),xe)}_findToast(xe){for(let Re=0;Re<this.toasts.length;Re++)if(this.toasts[Re].toastId===xe)return{index:Re,activeToast:this.toasts[Re]};return null}_preBuildNotification(xe,Re,bt,Mt){return Mt.onActivateTick?this.ngZone.run(()=>this._buildNotification(xe,Re,bt,Mt)):this._buildNotification(xe,Re,bt,Mt)}_buildNotification(xe,Re,bt,Mt){if(!Mt.toastComponent)throw new Error("toastComponent required");const un=this.findDuplicate(Re,this.toastrConfig.resetTimeoutOnDuplicate&&Mt.timeOut>0,this.toastrConfig.countDuplicates);if(Re&&this.toastrConfig.preventDuplicates&&null!==un)return un;this.previousToastMessage=Re;let an=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(an=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const dt=this.overlay.create(Mt.positionClass,this.overlayContainer);this.index=this.index+1;let ze=Re;Re&&Mt.enableHtml&&(ze=this.sanitizer.sanitize(y.q3G.HTML,Re));const Ge=new Tt(dt),Oe=new Gt(this.index,Mt,ze,bt,xe,Ge),Ue=new Wt(Oe,this._injector),be=new sn(Mt.toastComponent,Ue),at=dt.attach(be,this.toastrConfig.newestOnTop);Ge.componentInstance=at.instance;const At={toastId:this.index,message:Re||"",toastRef:Ge,onShown:Ge.afterActivate(),onHidden:Ge.afterClosed(),onTap:Oe.onTap(),onAction:Oe.onAction(),portal:at};return an||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{At.toastRef.activate()})),this.toasts.push(At),At}};return Me.\u0275fac=function(xe){return new(xe||Me)(y.LFG(Vt),y.LFG(_t),y.LFG(y.zs3),y.LFG(J.H7),y.LFG(y.R0b))},Me.\u0275prov=(0,y.Yz7)({factory:function(){return new Me((0,y.LFG)(Vt),(0,y.LFG)(_t),(0,y.LFG)(y.gxx),(0,y.LFG)(J.H7),(0,y.LFG)(y.R0b))},token:Me,providedIn:"root"}),Me=N([te(0,(0,y.tBr)(Vt))],Me),Me})(),pe=(()=>{let Me=class{constructor(xe,Re,bt){this.toastrService=xe,this.toastPackage=Re,this.ngZone=bt,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=Re.message,this.title=Re.title,this.options=Re.config,this.originalTimeout=Re.config.timeOut,this.toastClasses=`${Re.toastType} ${Re.config.toastClass}`,this.sub=Re.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=Re.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=Re.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=Re.toastRef.countDuplicate().subscribe(Mt=>{this.duplicatesCount=Mt})}get displayStyle(){if("inactive"===this.state.value)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state=Object.assign(Object.assign({},this.state),{value:"active"}),!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const xe=(new Date).getTime();this.width=(this.hideTime-xe)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state=Object.assign(Object.assign({},this.state),{value:"active"}),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state=Object.assign(Object.assign({},this.state),{value:"removed"}),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state.value||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(xe,Re){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(xe),Re)):this.timeout=setTimeout(()=>xe(),Re)}outsideInterval(xe,Re){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(xe),Re)):this.intervalId=setInterval(()=>xe(),Re)}runInsideAngular(xe){this.ngZone?this.ngZone.run(()=>xe()):xe()}};return Me.\u0275fac=function(xe){return new(xe||Me)(y.Y36(Dt),y.Y36(Gt),y.Y36(y.R0b))},Me.\u0275cmp=y.Xpm({type:Me,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(xe,Re){1&xe&&y.NdJ("click",function(){return Re.tapToast()})("mouseenter",function(){return Re.stickAround()})("mouseleave",function(){return Re.delayedHideToast()}),2&xe&&(y.d8E("@flyInOut",Re.state),y.Tol(Re.toastClasses),y.Udp("display",Re.displayStyle))},attrs:le,decls:5,vars:5,consts:[["class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alertdialog","aria-live","polite",3,"innerHTML"],["role","alertdialog","aria-live","polite"],[1,"toast-progress"]],template:function(xe,Re){1&xe&&(y.YNc(0,ce,3,0,"button",0),y.YNc(1,Qe,3,5,"div",1),y.YNc(2,ct,1,3,"div",2),y.YNc(3,$t,2,4,"div",3),y.YNc(4,$e,2,2,"div",4)),2&xe&&(y.Q6J("ngIf",Re.options.closeButton),y.xp6(1),y.Q6J("ngIf",Re.title),y.xp6(1),y.Q6J("ngIf",Re.message&&Re.options.enableHtml),y.xp6(1),y.Q6J("ngIf",Re.message&&!Re.options.enableHtml),y.xp6(1),y.Q6J("ngIf",Re.options.progressBar))},dependencies:[L.O5],encapsulation:2,data:{animation:[(0,k.X$)("flyInOut",[(0,k.SB)("inactive",(0,k.oB)({opacity:0})),(0,k.SB)("active",(0,k.oB)({opacity:1})),(0,k.SB)("removed",(0,k.oB)({opacity:0})),(0,k.eR)("inactive => active",(0,k.jt)("{{ easeTime }}ms {{ easing }}")),(0,k.eR)("active => removed",(0,k.jt)("{{ easeTime }}ms {{ easing }}"))])]}}),N([(0,y.pfw)("class")],Me.prototype,"toastClasses",void 0),N([(0,y.pfw)("@flyInOut")],Me.prototype,"state",void 0),N([(0,y.pfw)("style.display")],Me.prototype,"displayStyle",null),N([(0,y.L6J)("click")],Me.prototype,"tapToast",null),N([(0,y.L6J)("mouseenter")],Me.prototype,"stickAround",null),N([(0,y.L6J)("mouseleave")],Me.prototype,"delayedHideToast",null),Me})();var Pe;const ot=Object.assign(Object.assign({},Ft),{toastComponent:pe});let vt=Pe=class{static forRoot(qe={}){return{ngModule:Pe,providers:[{provide:Vt,useValue:{default:ot,config:qe}}]}}};var Ie;vt.\u0275fac=function(qe){return new(qe||vt)},vt.\u0275mod=y.oAB({type:vt}),vt.\u0275inj=y.cJS({imports:[L.ez]});let Le=(()=>{let Me=class{constructor(xe,Re,bt){this.toastrService=xe,this.toastPackage=Re,this.appRef=bt,this.width=-1,this.toastClasses="",this.state="inactive",this.message=Re.message,this.title=Re.title,this.options=Re.config,this.originalTimeout=Re.config.timeOut,this.toastClasses=`${Re.toastType} ${Re.config.toastClass}`,this.sub=Re.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=Re.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=Re.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=Re.toastRef.countDuplicate().subscribe(Mt=>{this.duplicatesCount=Mt})}get displayStyle(){if("inactive"===this.state)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state="active",!(!0===this.options.disableTimeOut||"timeOut"===this.options.disableTimeOut)&&this.options.timeOut&&(this.timeout=setTimeout(()=>{this.remove()},this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))),this.options.onActivateTick&&this.appRef.tick()}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const xe=(new Date).getTime();this.width=(this.hideTime-xe)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state="active",this.options.timeOut=this.originalTimeout,this.timeout=setTimeout(()=>this.remove(),this.originalTimeout),this.hideTime=(new Date).getTime()+(this.originalTimeout||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))}remove(){"removed"!==this.state&&(clearTimeout(this.timeout),this.state="removed",this.timeout=setTimeout(()=>this.toastrService.remove(this.toastPackage.toastId)))}tapToast(){"removed"!==this.state&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state||(this.timeout=setTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10)))}};return Me.\u0275fac=function(xe){return new(xe||Me)(y.Y36(Dt),y.Y36(Gt),y.Y36(y.z2F))},Me.\u0275cmp=y.Xpm({type:Me,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(xe,Re){1&xe&&y.NdJ("click",function(){return Re.tapToast()})("mouseenter",function(){return Re.stickAround()})("mouseleave",function(){return Re.delayedHideToast()}),2&xe&&(y.Tol(Re.toastClasses),y.Udp("display",Re.displayStyle))},attrs:le,decls:5,vars:5,consts:[["class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alert","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert","aria-live","polite",3,"innerHTML"],["role","alert","aria-live","polite"],[1,"toast-progress"]],template:function(xe,Re){1&xe&&(y.YNc(0,Et,3,0,"button",0),y.YNc(1,je,3,5,"div",1),y.YNc(2,de,1,3,"div",2),y.YNc(3,me,2,4,"div",3),y.YNc(4,Ne,2,2,"div",4)),2&xe&&(y.Q6J("ngIf",Re.options.closeButton),y.xp6(1),y.Q6J("ngIf",Re.title),y.xp6(1),y.Q6J("ngIf",Re.message&&Re.options.enableHtml),y.xp6(1),y.Q6J("ngIf",Re.message&&!Re.options.enableHtml),y.xp6(1),y.Q6J("ngIf",Re.options.progressBar))},dependencies:[L.O5],encapsulation:2}),N([(0,y.pfw)("class")],Me.prototype,"toastClasses",void 0),N([(0,y.pfw)("style.display")],Me.prototype,"displayStyle",null),N([(0,y.L6J)("click")],Me.prototype,"tapToast",null),N([(0,y.L6J)("mouseenter")],Me.prototype,"stickAround",null),N([(0,y.L6J)("mouseleave")],Me.prototype,"delayedHideToast",null),Me})();const mt=Object.assign(Object.assign({},Ft),{toastComponent:Le});let Ct=Ie=class{static forRoot(qe={}){return{ngModule:Ie,providers:[{provide:Vt,useValue:{default:mt,config:qe}}]}}};Ct.\u0275fac=function(qe){return new(qe||Ct)},Ct.\u0275mod=y.oAB({type:Ct}),Ct.\u0275inj=y.cJS({imports:[L.ez]})},8435:ut=>{const fe=b=>void 0===b,A=b=>Array.isArray(b),N=b=>b&&"number"==typeof b.size&&"string"==typeof b.type&&"function"==typeof b.slice,I=(b,p,_,v)=>((p=p||{}).indices=!fe(p.indices)&&p.indices,p.nullsAsUndefineds=!fe(p.nullsAsUndefineds)&&p.nullsAsUndefineds,p.booleansAsIntegers=!fe(p.booleansAsIntegers)&&p.booleansAsIntegers,p.allowEmptyArrays=!fe(p.allowEmptyArrays)&&p.allowEmptyArrays,_=_||new FormData,fe(b)||((b=>null===b)(b)?p.nullsAsUndefineds||_.append(v,""):(b=>"boolean"==typeof b)(b)?_.append(v,p.booleansAsIntegers?b?1:0:b):A(b)?b.length?b.forEach((T,W)=>{I(T,p,_,v+"["+(p.indices?W:"")+"]")}):p.allowEmptyArrays&&_.append(v+"[]",""):(b=>b instanceof Date)(b)?_.append(v,b.toISOString()):!(b=>b===Object(b))(b)||(b=>N(b)&&"string"==typeof b.name&&("object"==typeof b.lastModifiedDate||"number"==typeof b.lastModified))(b)||N(b)?_.append(v,b):Object.keys(b).forEach(T=>{const W=b[T];if(A(W))for(;T.length>2&&T.lastIndexOf("[]")===T.length-2;)T=T.substring(0,T.length-2);I(W,p,_,v?v+"["+T+"]":T)})),_);ut.exports={serialize:I}},13028:function(ut,fe){var d,c;d=function A(){"use strict";var w=typeof self<"u"?self:typeof window<"u"?window:void 0!==w?w:{},N=!w.document&&!!w.postMessage,te=N&&/blob:/i.test((w.location||{}).protocol),I={},b=0,p={parse:function(y,k){var $=(k=k||{}).dynamicTyping||!1;if(X($)&&(k.dynamicTypingFunction=$,$={}),k.dynamicTyping=$,k.transform=!!X(k.transform)&&k.transform,k.worker&&p.WORKERS_SUPPORTED){var J=function(){if(!p.WORKERS_SUPPORTED)return!1;var Se,Qe,le=(Se=w.URL||w.webkitURL||null,Qe=A.toString(),p.BLOB_URL||(p.BLOB_URL=Se.createObjectURL(new Blob(["(",Qe,")();"],{type:"text/javascript"})))),ce=new w.Worker(le);return ce.onmessage=ue,ce.id=b++,I[ce.id]=ce}();return J.userStep=k.step,J.userChunk=k.chunk,J.userComplete=k.complete,J.userError=k.error,k.step=X(k.step),k.chunk=X(k.chunk),k.complete=X(k.complete),k.error=X(k.error),delete k.worker,void J.postMessage({input:y,config:k,workerId:J.id})}var L=null;return"string"==typeof y?L=k.download?new T(k):new P(k):!0===y.readable&&X(y.read)&&X(y.on)?L=new B(k):(w.File&&y instanceof File||y instanceof Object)&&(L=new W(k)),L.stream(y)},unparse:function(y,k){var $=!1,J=!0,L=",",le="\r\n",ce='"',Se=ce+ce,Qe=!1,ct=null,$t=!1;!function(){if("object"==typeof k){if("string"!=typeof k.delimiter||p.BAD_DELIMITERS.filter(function(je){return-1!==k.delimiter.indexOf(je)}).length||(L=k.delimiter),("boolean"==typeof k.quotes||"function"==typeof k.quotes||Array.isArray(k.quotes))&&($=k.quotes),"boolean"!=typeof k.skipEmptyLines&&"string"!=typeof k.skipEmptyLines||(Qe=k.skipEmptyLines),"string"==typeof k.newline&&(le=k.newline),"string"==typeof k.quoteChar&&(ce=k.quoteChar),"boolean"==typeof k.header&&(J=k.header),Array.isArray(k.columns)){if(0===k.columns.length)throw new Error("Option columns is empty");ct=k.columns}void 0!==k.escapeChar&&(Se=k.escapeChar+ce),("boolean"==typeof k.escapeFormulae||k.escapeFormulae instanceof RegExp)&&($t=k.escapeFormulae instanceof RegExp?k.escapeFormulae:/^[=+\-@\t\r].*$/)}}();var $e=new RegExp(U(ce),"g");if("string"==typeof y&&(y=JSON.parse(y)),Array.isArray(y)){if(!y.length||Array.isArray(y[0]))return Et(null,y,Qe);if("object"==typeof y[0])return Et(ct||Object.keys(y[0]),y,Qe)}else if("object"==typeof y)return"string"==typeof y.data&&(y.data=JSON.parse(y.data)),Array.isArray(y.data)&&(y.fields||(y.fields=y.meta&&y.meta.fields||ct),y.fields||(y.fields=Array.isArray(y.data[0])?y.fields:"object"==typeof y.data[0]?Object.keys(y.data[0]):[]),Array.isArray(y.data[0])||"object"==typeof y.data[0]||(y.data=[y.data])),Et(y.fields||[],y.data||[],Qe);throw new Error("Unable to serialize unrecognized input");function Et(je,de,me){var Ne="";"string"==typeof je&&(je=JSON.parse(je)),"string"==typeof de&&(de=JSON.parse(de));var it=Array.isArray(je)&&0<je.length,yt=!Array.isArray(de[0]);if(it&&J){for(var Gt=0;Gt<je.length;Gt++)0<Gt&&(Ne+=L),Ne+=ke(je[Gt],Gt);0<de.length&&(Ne+=le)}for(var Ft=0;Ft<de.length;Ft++){var Vt=it?je.length:de[Ft].length,sn=!1,nn=it?0===Object.keys(de[Ft]).length:0===de[Ft].length;if(me&&!it&&(sn="greedy"===me?""===de[Ft].join("").trim():1===de[Ft].length&&0===de[Ft][0].length),"greedy"===me&&it){for(var Pt=[],wt=0;wt<Vt;wt++)Pt.push(de[Ft][yt?je[wt]:wt]);sn=""===Pt.join("").trim()}if(!sn){for(var _t=0;_t<Vt;_t++)0<_t&&!nn&&(Ne+=L),Ne+=ke(de[Ft][it&&yt?je[_t]:_t],_t);Ft<de.length-1&&(!me||0<Vt&&!nn)&&(Ne+=le)}}return Ne}function ke(je,de){if(null==je)return"";if(je.constructor===Date)return JSON.stringify(je).slice(1,25);var me=!1;$t&&"string"==typeof je&&$t.test(je)&&(je="'"+je,me=!0);var Ne=je.toString().replace($e,Se);return(me=me||!0===$||"function"==typeof $&&$(je,de)||Array.isArray($)&&$[de]||function(it,yt){for(var Gt=0;Gt<yt.length;Gt++)if(-1<it.indexOf(yt[Gt]))return!0;return!1}(Ne,p.BAD_DELIMITERS)||-1<Ne.indexOf(L)||" "===Ne.charAt(0)||" "===Ne.charAt(Ne.length-1))?ce+Ne+ce:Ne}}};if(p.RECORD_SEP=String.fromCharCode(30),p.UNIT_SEP=String.fromCharCode(31),p.BYTE_ORDER_MARK="\ufeff",p.BAD_DELIMITERS=["\r","\n",'"',p.BYTE_ORDER_MARK],p.WORKERS_SUPPORTED=!N&&!!w.Worker,p.NODE_STREAM_INPUT=1,p.LocalChunkSize=10485760,p.RemoteChunkSize=5242880,p.DefaultDelimiter=",",p.Parser=Z,p.ParserHandle=G,p.NetworkStreamer=T,p.FileStreamer=W,p.StringStreamer=P,p.ReadableStreamStreamer=B,w.jQuery){var _=w.jQuery;_.fn.parse=function(y){var k=y.config||{},$=[];return this.each(function(le){if("INPUT"!==_(this).prop("tagName").toUpperCase()||"file"!==_(this).attr("type").toLowerCase()||!w.FileReader||!this.files||0===this.files.length)return!0;for(var ce=0;ce<this.files.length;ce++)$.push({file:this.files[ce],inputElem:this,instanceConfig:_.extend({},k)})}),J(),this;function J(){if(0!==$.length){var ce,Se,Qe,ct=$[0];if(X(y.before)){var $t=y.before(ct.file,ct.inputElem);if("object"==typeof $t){if("abort"===$t.action)return"AbortError",ce=ct.file,Se=ct.inputElem,Qe=$t.reason,void(X(y.error)&&y.error({name:"AbortError"},ce,Se,Qe));if("skip"===$t.action)return void L();"object"==typeof $t.config&&(ct.instanceConfig=_.extend(ct.instanceConfig,$t.config))}else if("skip"===$t)return void L()}var $e=ct.instanceConfig.complete;ct.instanceConfig.complete=function(Et){X($e)&&$e(Et,ct.file,ct.inputElem),L()},p.parse(ct.file,ct.instanceConfig)}else X(y.complete)&&y.complete()}function L(){$.splice(0,1),J()}}}function v(y){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(k){var $=ee(k);$.chunkSize=parseInt($.chunkSize),k.step||k.chunk||($.chunkSize=null),this._handle=new G($),(this._handle.streamer=this)._config=$}.call(this,y),this.parseChunk=function(k,$){if(this.isFirstChunk&&X(this._config.beforeFirstChunk)){var J=this._config.beforeFirstChunk(k);void 0!==J&&(k=J)}this.isFirstChunk=!1,this._halted=!1;var L=this._partialLine+k;this._partialLine="";var le=this._handle.parse(L,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var ce=le.meta.cursor;this._finished||(this._partialLine=L.substring(ce-this._baseIndex),this._baseIndex=ce),le&&le.data&&(this._rowCount+=le.data.length);var Se=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(te)w.postMessage({results:le,workerId:p.WORKER_ID,finished:Se});else if(X(this._config.chunk)&&!$){if(this._config.chunk(le,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);le=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(le.data),this._completeResults.errors=this._completeResults.errors.concat(le.errors),this._completeResults.meta=le.meta),this._completed||!Se||!X(this._config.complete)||le&&le.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),Se||le&&le.meta.paused||this._nextChunk(),le}this._halted=!0},this._sendError=function(k){X(this._config.error)?this._config.error(k):te&&this._config.error&&w.postMessage({workerId:p.WORKER_ID,error:k,finished:!1})}}function T(y){var k;(y=y||{}).chunkSize||(y.chunkSize=p.RemoteChunkSize),v.call(this,y),this._nextChunk=N?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function($){this._input=$,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(k=new XMLHttpRequest,this._config.withCredentials&&(k.withCredentials=this._config.withCredentials),N||(k.onload=oe(this._chunkLoaded,this),k.onerror=oe(this._chunkError,this)),k.open(this._config.downloadRequestBody?"POST":"GET",this._input,!N),this._config.downloadRequestHeaders){var $=this._config.downloadRequestHeaders;for(var J in $)k.setRequestHeader(J,$[J])}this._config.chunkSize&&k.setRequestHeader("Range","bytes="+this._start+"-"+(this._start+this._config.chunkSize-1));try{k.send(this._config.downloadRequestBody)}catch(le){this._chunkError(le.message)}N&&0===k.status&&this._chunkError()}},this._chunkLoaded=function(){var J;4===k.readyState&&(k.status<200||400<=k.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:k.responseText.length,this._finished=!this._config.chunkSize||this._start>=(null===(J=k.getResponseHeader("Content-Range"))?-1:parseInt(J.substring(J.lastIndexOf("/")+1))),this.parseChunk(k.responseText)))},this._chunkError=function($){this._sendError(new Error(k.statusText||$))}}function W(y){var k,$;(y=y||{}).chunkSize||(y.chunkSize=p.LocalChunkSize),v.call(this,y);var J=typeof FileReader<"u";this.stream=function(L){this._input=L,$=L.slice||L.webkitSlice||L.mozSlice,J?((k=new FileReader).onload=oe(this._chunkLoaded,this),k.onerror=oe(this._chunkError,this)):k=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var L=this._input;if(this._config.chunkSize){var le=Math.min(this._start+this._config.chunkSize,this._input.size);L=$.call(L,this._start,le)}var ce=k.readAsText(L,this._config.encoding);J||this._chunkLoaded({target:{result:ce}})},this._chunkLoaded=function(L){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(L.target.result)},this._chunkError=function(){this._sendError(k.error)}}function P(y){var k;v.call(this,y=y||{}),this.stream=function($){return k=$,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var $,J=this._config.chunkSize;return J?($=k.substring(0,J),k=k.substring(J)):($=k,k=""),this._finished=!k,this.parseChunk($)}}}function B(y){v.call(this,y=y||{});var k=[],$=!0,J=!1;this.pause=function(){v.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){v.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(L){this._input=L,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){J&&1===k.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),k.length?this.parseChunk(k.shift()):$=!0},this._streamData=oe(function(L){try{k.push("string"==typeof L?L:L.toString(this._config.encoding)),$&&($=!1,this._checkIsFinished(),this.parseChunk(k.shift()))}catch(le){this._streamError(le)}},this),this._streamError=oe(function(L){this._streamCleanUp(),this._sendError(L)},this),this._streamEnd=oe(function(){this._streamCleanUp(),J=!0,this._streamData("")},this),this._streamCleanUp=oe(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function G(y){var k,$,J,L=Math.pow(2,53),le=-L,ce=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,Se=/^(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))$/,Qe=this,ct=0,$t=0,$e=!1,Et=!1,ke=[],je={data:[],errors:[],meta:{}};if(X(y.step)){var de=y.step;y.step=function(Ft){if(je=Ft,it())Ne();else{if(Ne(),0===je.data.length)return;ct+=Ft.data.length,y.preview&&ct>y.preview?$.abort():(je.data=je.data[0],de(je,Qe))}}}function me(Ft){return"greedy"===y.skipEmptyLines?""===Ft.join("").trim():1===Ft.length&&0===Ft[0].length}function Ne(){return je&&J&&(Gt("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+p.DefaultDelimiter+"'"),J=!1),y.skipEmptyLines&&(je.data=je.data.filter(function(Ft){return!me(Ft)})),it()&&function(){if(je)if(Array.isArray(je.data[0])){for(var Vt=0;it()&&Vt<je.data.length;Vt++)je.data[Vt].forEach(Ft);je.data.splice(0,1)}else je.data.forEach(Ft);function Ft(sn,nn){X(y.transformHeader)&&(sn=y.transformHeader(sn,nn)),ke.push(sn)}}(),function(){if(!je||!y.header&&!y.dynamicTyping&&!y.transform)return je;function Ft(sn,nn){var Pt,wt=y.header?{}:[];for(Pt=0;Pt<sn.length;Pt++){var Je=Pt,_t=sn[Pt];y.header&&(Je=Pt>=ke.length?"__parsed_extra":ke[Pt]),y.transform&&(_t=y.transform(_t,Je)),_t=yt(Je,_t),"__parsed_extra"===Je?(wt[Je]=wt[Je]||[],wt[Je].push(_t)):wt[Je]=_t}return y.header&&(Pt>ke.length?Gt("FieldMismatch","TooManyFields","Too many fields: expected "+ke.length+" fields but parsed "+Pt,$t+nn):Pt<ke.length&&Gt("FieldMismatch","TooFewFields","Too few fields: expected "+ke.length+" fields but parsed "+Pt,$t+nn)),wt}var Vt=1;return!je.data.length||Array.isArray(je.data[0])?(je.data=je.data.map(Ft),Vt=je.data.length):je.data=Ft(je.data,0),y.header&&je.meta&&(je.meta.fields=ke),$t+=Vt,je}()}function it(){return y.header&&0===ke.length}function yt(Ft,Vt){return sn=Ft,y.dynamicTypingFunction&&void 0===y.dynamicTyping[sn]&&(y.dynamicTyping[sn]=y.dynamicTypingFunction(sn)),!0===(y.dynamicTyping[sn]||y.dynamicTyping)?"true"===Vt||"TRUE"===Vt||"false"!==Vt&&"FALSE"!==Vt&&(function(nn){if(ce.test(nn)){var Pt=parseFloat(nn);if(le<Pt&&Pt<L)return!0}return!1}(Vt)?parseFloat(Vt):Se.test(Vt)?new Date(Vt):""===Vt?null:Vt):Vt;var sn}function Gt(Ft,Vt,sn,nn){var Pt={type:Ft,code:Vt,message:sn};void 0!==nn&&(Pt.row=nn),je.errors.push(Pt)}this.parse=function(Ft,Vt,sn){if(y.newline||(y.newline=function(Je,_t){Je=Je.substring(0,1048576);var Tt=new RegExp(U(_t)+"([^]*?)"+U(_t),"gm"),Wt=(Je=Je.replace(Tt,"")).split("\r"),Dt=Je.split("\n");if(1===Wt.length||1<Dt.length&&Dt[0].length<Wt[0].length)return"\n";for(var Pe=0,ot=0;ot<Wt.length;ot++)"\n"===Wt[ot][0]&&Pe++;return Pe>=Wt.length/2?"\r\n":"\r"}(Ft,y.quoteChar||'"')),J=!1,y.delimiter)X(y.delimiter)&&(y.delimiter=y.delimiter(Ft),je.meta.delimiter=y.delimiter);else{var Pt=function(Je,_t,Tt,Wt,Dt){var pe,Pe,ot,vt;Dt=Dt||[",","\t","|",";",p.RECORD_SEP,p.UNIT_SEP];for(var Be=0;Be<Dt.length;Be++){var Ie=Dt[Be],Le=0,mt=0,Ct=0;ot=void 0;for(var Me=new Z({comments:Wt,delimiter:Ie,newline:_t,preview:10}).parse(Je),qe=0;qe<Me.data.length;qe++)if(Tt&&me(Me.data[qe]))Ct++;else{var xe=Me.data[qe].length;mt+=xe,void 0!==ot?0<xe&&(Le+=Math.abs(xe-ot),ot=xe):ot=xe}0<Me.data.length&&(mt/=Me.data.length-Ct),(void 0===Pe||Le<=Pe)&&(void 0===vt||vt<mt)&&1.99<mt&&(Pe=Le,pe=Ie,vt=mt)}return{successful:!!(y.delimiter=pe),bestDelimiter:pe}}(Ft,y.newline,y.skipEmptyLines,y.comments,y.delimitersToGuess);Pt.successful?y.delimiter=Pt.bestDelimiter:(J=!0,y.delimiter=p.DefaultDelimiter),je.meta.delimiter=y.delimiter}var wt=ee(y);return y.preview&&y.header&&wt.preview++,k=Ft,$=new Z(wt),je=$.parse(k,Vt,sn),Ne(),$e?{meta:{paused:!0}}:je||{meta:{paused:!1}}},this.paused=function(){return $e},this.pause=function(){$e=!0,$.abort(),k=X(y.chunk)?"":k.substring($.getCharIndex())},this.resume=function(){Qe.streamer._halted?($e=!1,Qe.streamer.parseChunk(k,!0)):setTimeout(Qe.resume,3)},this.aborted=function(){return Et},this.abort=function(){Et=!0,$.abort(),je.meta.aborted=!0,X(y.complete)&&y.complete(je),k=""}}function U(y){return y.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Z(y){var k,$=(y=y||{}).delimiter,J=y.newline,L=y.comments,le=y.step,ce=y.preview,Se=y.fastMode,Qe=k=y.quoteChar??'"';if(void 0!==y.escapeChar&&(Qe=y.escapeChar),("string"!=typeof $||-1<p.BAD_DELIMITERS.indexOf($))&&($=","),L===$)throw new Error("Comment character same as delimiter");!0===L?L="#":("string"!=typeof L||-1<p.BAD_DELIMITERS.indexOf(L))&&(L=!1),"\n"!==J&&"\r"!==J&&"\r\n"!==J&&(J="\n");var ct=0,$t=!1;this.parse=function($e,Et,ke){if("string"!=typeof $e)throw new Error("Input must be a string");var je=$e.length,de=$.length,me=J.length,Ne=L.length,it=X(le),yt=[],Gt=[],Ft=[],Vt=ct=0;if(!$e)return vt();if(Se||!1!==Se&&-1===$e.indexOf(k)){for(var sn=$e.split(J),nn=0;nn<sn.length;nn++){if(ct+=(Ft=sn[nn]).length,nn!==sn.length-1)ct+=J.length;else if(ke)return vt();if(!L||Ft.substring(0,Ne)!==L){if(it){if(yt=[],Dt(Ft.split($)),Be(),$t)return vt()}else Dt(Ft.split($));if(ce&&ce<=nn)return yt=yt.slice(0,ce),vt(!0)}}return vt()}for(var Pt=$e.indexOf($,ct),wt=$e.indexOf(J,ct),Je=new RegExp(U(Qe)+U(k),"g"),_t=$e.indexOf(k,ct);;)if($e[ct]!==k)if(L&&0===Ft.length&&$e.substring(ct,ct+Ne)===L){if(-1===wt)return vt();wt=$e.indexOf(J,ct=wt+me),Pt=$e.indexOf($,ct)}else if(-1!==Pt&&(Pt<wt||-1===wt))Ft.push($e.substring(ct,Pt)),Pt=$e.indexOf($,ct=Pt+de);else{if(-1===wt)break;if(Ft.push($e.substring(ct,wt)),ot(wt+me),it&&(Be(),$t))return vt();if(ce&&yt.length>=ce)return vt(!0)}else for(_t=ct,ct++;;){if(-1===(_t=$e.indexOf(k,_t+1)))return ke||Gt.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:yt.length,index:ct}),Pe();if(_t===je-1)return Pe($e.substring(ct,_t).replace(Je,k));if(k!==Qe||$e[_t+1]!==Qe){if(k===Qe||0===_t||$e[_t-1]!==Qe){-1!==Pt&&Pt<_t+1&&(Pt=$e.indexOf($,_t+1)),-1!==wt&&wt<_t+1&&(wt=$e.indexOf(J,_t+1));var Tt=pe(-1===wt?Pt:Math.min(Pt,wt));if($e.substr(_t+1+Tt,de)===$){Ft.push($e.substring(ct,_t).replace(Je,k)),$e[ct=_t+1+Tt+de]!==k&&(_t=$e.indexOf(k,ct)),Pt=$e.indexOf($,ct),wt=$e.indexOf(J,ct);break}var Wt=pe(wt);if($e.substring(_t+1+Wt,_t+1+Wt+me)===J){if(Ft.push($e.substring(ct,_t).replace(Je,k)),ot(_t+1+Wt+me),Pt=$e.indexOf($,ct),_t=$e.indexOf(k,ct),it&&(Be(),$t))return vt();if(ce&&yt.length>=ce)return vt(!0);break}Gt.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:yt.length,index:ct}),_t++}}else _t++}return Pe();function Dt(Ie){yt.push(Ie),Vt=ct}function pe(Ie){var Le=0;if(-1!==Ie){var mt=$e.substring(_t+1,Ie);mt&&""===mt.trim()&&(Le=mt.length)}return Le}function Pe(Ie){return ke||(void 0===Ie&&(Ie=$e.substring(ct)),Ft.push(Ie),ct=je,Dt(Ft),it&&Be()),vt()}function ot(Ie){ct=Ie,Dt(Ft),Ft=[],wt=$e.indexOf(J,ct)}function vt(Ie){return{data:yt,errors:Gt,meta:{delimiter:$,linebreak:J,aborted:$t,truncated:!!Ie,cursor:Vt+(Et||0)}}}function Be(){le(vt()),yt=[],Gt=[]}},this.abort=function(){$t=!0},this.getCharIndex=function(){return ct}}function ue(y){var k=y.data,$=I[k.workerId],J=!1;if(k.error)$.userError(k.error,k.file);else if(k.results&&k.results.data){var L={abort:function(){J=!0,F(k.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:Y,resume:Y};if(X($.userStep)){for(var le=0;le<k.results.data.length&&($.userStep({data:k.results.data[le],errors:k.results.errors,meta:k.results.meta},L),!J);le++);delete k.results}else X($.userChunk)&&($.userChunk(k.results,L,k.file),delete k.results)}k.finished&&!J&&F(k.workerId,k.results)}function F(y,k){var $=I[y];X($.userComplete)&&$.userComplete(k),$.terminate(),delete I[y]}function Y(){throw new Error("Not implemented.")}function ee(y){if("object"!=typeof y||null===y)return y;var k=Array.isArray(y)?[]:{};for(var $ in y)k[$]=ee(y[$]);return k}function oe(y,k){return function(){y.apply(k,arguments)}}function X(y){return"function"==typeof y}return te&&(w.onmessage=function(y){var k=y.data;if(void 0===p.WORKER_ID&&k&&(p.WORKER_ID=k.workerId),"string"==typeof k.input)w.postMessage({workerId:p.WORKER_ID,results:p.parse(k.input,k.config),finished:!0});else if(w.File&&k.input instanceof File||k.input instanceof Object){var $=p.parse(k.input,k.config);$&&w.postMessage({workerId:p.WORKER_ID,results:$,finished:!0})}}),(T.prototype=Object.create(v.prototype)).constructor=T,(W.prototype=Object.create(v.prototype)).constructor=W,(P.prototype=Object.create(P.prototype)).constructor=P,(B.prototype=Object.create(v.prototype)).constructor=B,p},void 0!==(c=d.apply(fe,[]))&&(ut.exports=c)},61135:(ut,fe,d)=>{"use strict";d.d(fe,{X:()=>c});var s=d(77579);class c extends s.x{constructor(w){super(),this._value=w}get value(){return this.getValue()}_subscribe(w){const N=super._subscribe(w);return!N.closed&&w.next(this._value),N}getValue(){const{hasError:w,thrownError:N,_value:te}=this;if(w)throw N;return this._throwIfClosed(),te}next(w){super.next(this._value=w)}}},69751:(ut,fe,d)=>{"use strict";d.d(fe,{y:()=>b});var s=d(70930),c=d(50727),A=d(48822),w=d(89635),N=d(42416),te=d(30576),I=d(72806);let b=(()=>{class T{constructor(P){P&&(this._subscribe=P)}lift(P){const B=new T;return B.source=this,B.operator=P,B}subscribe(P,B,G){const U=function v(T){return T&&T instanceof s.Lv||function _(T){return T&&(0,te.m)(T.next)&&(0,te.m)(T.error)&&(0,te.m)(T.complete)}(T)&&(0,c.Nn)(T)}(P)?P:new s.Hp(P,B,G);return(0,I.x)(()=>{const{operator:Z,source:ue}=this;U.add(Z?Z.call(U,ue):ue?this._subscribe(U):this._trySubscribe(U))}),U}_trySubscribe(P){try{return this._subscribe(P)}catch(B){P.error(B)}}forEach(P,B){return new(B=p(B))((G,U)=>{const Z=new s.Hp({next:ue=>{try{P(ue)}catch(F){U(F),Z.unsubscribe()}},error:U,complete:G});this.subscribe(Z)})}_subscribe(P){var B;return null===(B=this.source)||void 0===B?void 0:B.subscribe(P)}[A.L](){return this}pipe(...P){return(0,w.U)(P)(this)}toPromise(P){return new(P=p(P))((B,G)=>{let U;this.subscribe(Z=>U=Z,Z=>G(Z),()=>B(U))})}}return T.create=W=>new T(W),T})();function p(T){var W;return null!==(W=T??N.v.Promise)&&void 0!==W?W:Promise}},4707:(ut,fe,d)=>{"use strict";d.d(fe,{t:()=>A});var s=d(77579),c=d(26063);class A extends s.x{constructor(N=1/0,te=1/0,I=c.l){super(),this._bufferSize=N,this._windowTime=te,this._timestampProvider=I,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=te===1/0,this._bufferSize=Math.max(1,N),this._windowTime=Math.max(1,te)}next(N){const{isStopped:te,_buffer:I,_infiniteTimeWindow:b,_timestampProvider:p,_windowTime:_}=this;te||(I.push(N),!b&&I.push(p.now()+_)),this._trimBuffer(),super.next(N)}_subscribe(N){this._throwIfClosed(),this._trimBuffer();const te=this._innerSubscribe(N),{_infiniteTimeWindow:I,_buffer:b}=this,p=b.slice();for(let _=0;_<p.length&&!N.closed;_+=I?1:2)N.next(p[_]);return this._checkFinalizedStatuses(N),te}_trimBuffer(){const{_bufferSize:N,_timestampProvider:te,_buffer:I,_infiniteTimeWindow:b}=this,p=(b?1:2)*N;if(N<1/0&&p<I.length&&I.splice(0,I.length-p),!b){const _=te.now();let v=0;for(let T=1;T<I.length&&I[T]<=_;T+=2)v=T;v&&I.splice(0,v+1)}}}},77579:(ut,fe,d)=>{"use strict";d.d(fe,{x:()=>I});var s=d(69751),c=d(50727);const w=(0,d(83888).d)(p=>function(){p(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var N=d(38737),te=d(72806);let I=(()=>{class p extends s.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(v){const T=new b(this,this);return T.operator=v,T}_throwIfClosed(){if(this.closed)throw new w}next(v){(0,te.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const T of this.currentObservers)T.next(v)}})}error(v){(0,te.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=v;const{observers:T}=this;for(;T.length;)T.shift().error(v)}})}complete(){(0,te.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:v}=this;for(;v.length;)v.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var v;return(null===(v=this.observers)||void 0===v?void 0:v.length)>0}_trySubscribe(v){return this._throwIfClosed(),super._trySubscribe(v)}_subscribe(v){return this._throwIfClosed(),this._checkFinalizedStatuses(v),this._innerSubscribe(v)}_innerSubscribe(v){const{hasError:T,isStopped:W,observers:P}=this;return T||W?c.Lc:(this.currentObservers=null,P.push(v),new c.w0(()=>{this.currentObservers=null,(0,N.P)(P,v)}))}_checkFinalizedStatuses(v){const{hasError:T,thrownError:W,isStopped:P}=this;T?v.error(W):P&&v.complete()}asObservable(){const v=new s.y;return v.source=this,v}}return p.create=(_,v)=>new b(_,v),p})();class b extends I{constructor(_,v){super(),this.destination=_,this.source=v}next(_){var v,T;null===(T=null===(v=this.destination)||void 0===v?void 0:v.next)||void 0===T||T.call(v,_)}error(_){var v,T;null===(T=null===(v=this.destination)||void 0===v?void 0:v.error)||void 0===T||T.call(v,_)}complete(){var _,v;null===(v=null===(_=this.destination)||void 0===_?void 0:_.complete)||void 0===v||v.call(_)}_subscribe(_){var v,T;return null!==(T=null===(v=this.source)||void 0===v?void 0:v.subscribe(_))&&void 0!==T?T:c.Lc}}},70930:(ut,fe,d)=>{"use strict";d.d(fe,{Hp:()=>G,Lv:()=>T});var s=d(30576),c=d(50727),A=d(42416),w=d(87849),N=d(25032);const te=p("C",void 0,void 0);function p(Y,ee,oe){return{kind:Y,value:ee,error:oe}}var _=d(43410),v=d(72806);class T extends c.w0{constructor(ee){super(),this.isStopped=!1,ee?(this.destination=ee,(0,c.Nn)(ee)&&ee.add(this)):this.destination=F}static create(ee,oe,X){return new G(ee,oe,X)}next(ee){this.isStopped?ue(function b(Y){return p("N",Y,void 0)}(ee),this):this._next(ee)}error(ee){this.isStopped?ue(function I(Y){return p("E",void 0,Y)}(ee),this):(this.isStopped=!0,this._error(ee))}complete(){this.isStopped?ue(te,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(ee){this.destination.next(ee)}_error(ee){try{this.destination.error(ee)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const W=Function.prototype.bind;function P(Y,ee){return W.call(Y,ee)}class B{constructor(ee){this.partialObserver=ee}next(ee){const{partialObserver:oe}=this;if(oe.next)try{oe.next(ee)}catch(X){U(X)}}error(ee){const{partialObserver:oe}=this;if(oe.error)try{oe.error(ee)}catch(X){U(X)}else U(ee)}complete(){const{partialObserver:ee}=this;if(ee.complete)try{ee.complete()}catch(oe){U(oe)}}}class G extends T{constructor(ee,oe,X){let y;if(super(),(0,s.m)(ee)||!ee)y={next:ee??void 0,error:oe??void 0,complete:X??void 0};else{let k;this&&A.v.useDeprecatedNextContext?(k=Object.create(ee),k.unsubscribe=()=>this.unsubscribe(),y={next:ee.next&&P(ee.next,k),error:ee.error&&P(ee.error,k),complete:ee.complete&&P(ee.complete,k)}):y=ee}this.destination=new B(y)}}function U(Y){A.v.useDeprecatedSynchronousErrorHandling?(0,v.O)(Y):(0,w.h)(Y)}function ue(Y,ee){const{onStoppedNotification:oe}=A.v;oe&&_.z.setTimeout(()=>oe(Y,ee))}const F={closed:!0,next:N.Z,error:function Z(Y){throw Y},complete:N.Z}},50727:(ut,fe,d)=>{"use strict";d.d(fe,{Lc:()=>te,w0:()=>N,Nn:()=>I});var s=d(30576);const A=(0,d(83888).d)(p=>function(v){p(this),this.message=v?`${v.length} errors occurred during unsubscription:\n${v.map((T,W)=>`${W+1}) ${T.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=v});var w=d(38737);class N{constructor(_){this.initialTeardown=_,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let _;if(!this.closed){this.closed=!0;const{_parentage:v}=this;if(v)if(this._parentage=null,Array.isArray(v))for(const P of v)P.remove(this);else v.remove(this);const{initialTeardown:T}=this;if((0,s.m)(T))try{T()}catch(P){_=P instanceof A?P.errors:[P]}const{_finalizers:W}=this;if(W){this._finalizers=null;for(const P of W)try{b(P)}catch(B){_=_??[],B instanceof A?_=[..._,...B.errors]:_.push(B)}}if(_)throw new A(_)}}add(_){var v;if(_&&_!==this)if(this.closed)b(_);else{if(_ instanceof N){if(_.closed||_._hasParent(this))return;_._addParent(this)}(this._finalizers=null!==(v=this._finalizers)&&void 0!==v?v:[]).push(_)}}_hasParent(_){const{_parentage:v}=this;return v===_||Array.isArray(v)&&v.includes(_)}_addParent(_){const{_parentage:v}=this;this._parentage=Array.isArray(v)?(v.push(_),v):v?[v,_]:_}_removeParent(_){const{_parentage:v}=this;v===_?this._parentage=null:Array.isArray(v)&&(0,w.P)(v,_)}remove(_){const{_finalizers:v}=this;v&&(0,w.P)(v,_),_ instanceof N&&_._removeParent(this)}}N.EMPTY=(()=>{const p=new N;return p.closed=!0,p})();const te=N.EMPTY;function I(p){return p instanceof N||p&&"closed"in p&&(0,s.m)(p.remove)&&(0,s.m)(p.add)&&(0,s.m)(p.unsubscribe)}function b(p){(0,s.m)(p)?p():p.unsubscribe()}},42416:(ut,fe,d)=>{"use strict";d.d(fe,{v:()=>s});const s={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},94033:(ut,fe,d)=>{"use strict";d.d(fe,{c:()=>te});var s=d(69751),c=d(50727),A=d(38343),w=d(25403),N=d(54482);class te extends s.y{constructor(b,p){super(),this.source=b,this.subjectFactory=p,this._subject=null,this._refCount=0,this._connection=null,(0,N.A)(b)&&(this.lift=b.lift)}_subscribe(b){return this.getSubject().subscribe(b)}getSubject(){const b=this._subject;return(!b||b.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:b}=this;this._subject=this._connection=null,b?.unsubscribe()}connect(){let b=this._connection;if(!b){b=this._connection=new c.w0;const p=this.getSubject();b.add(this.source.subscribe((0,w.x)(p,void 0,()=>{this._teardown(),p.complete()},_=>{this._teardown(),p.error(_)},()=>this._teardown()))),b.closed&&(this._connection=null,b=c.w0.EMPTY)}return b}refCount(){return(0,A.x)()(this)}}},39841:(ut,fe,d)=>{"use strict";d.d(fe,{a:()=>_,l:()=>v});var s=d(69751),c=d(54742),A=d(50457),w=d(44671),N=d(83268),te=d(63269),I=d(31810),b=d(25403),p=d(39672);function _(...W){const P=(0,te.yG)(W),B=(0,te.jO)(W),{args:G,keys:U}=(0,c.D)(W);if(0===G.length)return(0,A.D)([],P);const Z=new s.y(v(G,P,U?ue=>(0,I.n)(U,ue):w.y));return B?Z.pipe((0,N.Z)(B)):Z}function v(W,P,B=w.y){return G=>{T(P,()=>{const{length:U}=W,Z=new Array(U);let ue=U,F=U;for(let Y=0;Y<U;Y++)T(P,()=>{const ee=(0,A.D)(W[Y],P);let oe=!1;ee.subscribe((0,b.x)(G,X=>{Z[Y]=X,oe||(oe=!0,F--),F||G.next(B(Z.slice()))},()=>{--ue||G.complete()}))},G)},G)}}function T(W,P,B){W?(0,p.f)(B,W,P):P()}},97272:(ut,fe,d)=>{"use strict";d.d(fe,{z:()=>N});var s=d(8189),A=d(63269),w=d(50457);function N(...te){return function c(){return(0,s.J)(1)}()((0,w.D)(te,(0,A.yG)(te)))}},49770:(ut,fe,d)=>{"use strict";d.d(fe,{P:()=>A});var s=d(69751),c=d(38421);function A(w){return new s.y(N=>{(0,c.Xf)(w()).subscribe(N)})}},60515:(ut,fe,d)=>{"use strict";d.d(fe,{E:()=>c});const c=new(d(69751).y)(N=>N.complete())},4128:(ut,fe,d)=>{"use strict";d.d(fe,{D:()=>b});var s=d(69751),c=d(54742),A=d(38421),w=d(63269),N=d(25403),te=d(83268),I=d(31810);function b(...p){const _=(0,w.jO)(p),{args:v,keys:T}=(0,c.D)(p),W=new s.y(P=>{const{length:B}=v;if(!B)return void P.complete();const G=new Array(B);let U=B,Z=B;for(let ue=0;ue<B;ue++){let F=!1;(0,A.Xf)(v[ue]).subscribe((0,N.x)(P,Y=>{F||(F=!0,Z--),G[ue]=Y},()=>U--,void 0,()=>{(!U||!F)&&(Z||P.next(T?(0,I.n)(T,G):G),P.complete())}))}});return _?W.pipe((0,te.Z)(_)):W}},50457:(ut,fe,d)=>{"use strict";d.d(fe,{D:()=>oe});var s=d(38421),c=d(85363),A=d(54482);function w(X,y=0){return(0,A.e)((k,$)=>{$.add(X.schedule(()=>k.subscribe($),y))})}var I=d(69751),p=d(2202),_=d(30576),v=d(39672);function W(X,y){if(!X)throw new Error("Iterable cannot be null");return new I.y(k=>{(0,v.f)(k,y,()=>{const $=X[Symbol.asyncIterator]();(0,v.f)(k,y,()=>{$.next().then(J=>{J.done?k.complete():k.next(J.value)})},0,!0)})})}var P=d(93670),B=d(28239),G=d(81144),U=d(26495),Z=d(12206),ue=d(44532),F=d(53260);function oe(X,y){return y?function ee(X,y){if(null!=X){if((0,P.c)(X))return function N(X,y){return(0,s.Xf)(X).pipe(w(y),(0,c.Q)(y))}(X,y);if((0,G.z)(X))return function b(X,y){return new I.y(k=>{let $=0;return y.schedule(function(){$===X.length?k.complete():(k.next(X[$++]),k.closed||this.schedule())})})}(X,y);if((0,B.t)(X))return function te(X,y){return(0,s.Xf)(X).pipe(w(y),(0,c.Q)(y))}(X,y);if((0,Z.D)(X))return W(X,y);if((0,U.T)(X))return function T(X,y){return new I.y(k=>{let $;return(0,v.f)(k,y,()=>{$=X[p.h](),(0,v.f)(k,y,()=>{let J,L;try{({value:J,done:L}=$.next())}catch(le){return void k.error(le)}L?k.complete():k.next(J)},0,!0)}),()=>(0,_.m)($?.return)&&$.return()})}(X,y);if((0,F.L)(X))return function Y(X,y){return W((0,F.Q)(X),y)}(X,y)}throw(0,ue.z)(X)}(X,y):(0,s.Xf)(X)}},54968:(ut,fe,d)=>{"use strict";d.d(fe,{R:()=>_});var s=d(38421),c=d(69751),A=d(95577),w=d(81144),N=d(30576),te=d(83268);const I=["addListener","removeListener"],b=["addEventListener","removeEventListener"],p=["on","off"];function _(B,G,U,Z){if((0,N.m)(U)&&(Z=U,U=void 0),Z)return _(B,G,U).pipe((0,te.Z)(Z));const[ue,F]=function P(B){return(0,N.m)(B.addEventListener)&&(0,N.m)(B.removeEventListener)}(B)?b.map(Y=>ee=>B[Y](G,ee,U)):function T(B){return(0,N.m)(B.addListener)&&(0,N.m)(B.removeListener)}(B)?I.map(v(B,G)):function W(B){return(0,N.m)(B.on)&&(0,N.m)(B.off)}(B)?p.map(v(B,G)):[];if(!ue&&(0,w.z)(B))return(0,A.z)(Y=>_(Y,G,U))((0,s.Xf)(B));if(!ue)throw new TypeError("Invalid event target");return new c.y(Y=>{const ee=(...oe)=>Y.next(1<oe.length?oe:oe[0]);return ue(ee),()=>F(ee)})}function v(B,G){return U=>Z=>B[U](G,Z)}},38421:(ut,fe,d)=>{"use strict";d.d(fe,{Xf:()=>W});var s=d(35987),c=d(81144),A=d(28239),w=d(69751),N=d(93670),te=d(12206),I=d(44532),b=d(26495),p=d(53260),_=d(30576),v=d(87849),T=d(48822);function W(Y){if(Y instanceof w.y)return Y;if(null!=Y){if((0,N.c)(Y))return function P(Y){return new w.y(ee=>{const oe=Y[T.L]();if((0,_.m)(oe.subscribe))return oe.subscribe(ee);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(Y);if((0,c.z)(Y))return function B(Y){return new w.y(ee=>{for(let oe=0;oe<Y.length&&!ee.closed;oe++)ee.next(Y[oe]);ee.complete()})}(Y);if((0,A.t)(Y))return function G(Y){return new w.y(ee=>{Y.then(oe=>{ee.closed||(ee.next(oe),ee.complete())},oe=>ee.error(oe)).then(null,v.h)})}(Y);if((0,te.D)(Y))return Z(Y);if((0,b.T)(Y))return function U(Y){return new w.y(ee=>{for(const oe of Y)if(ee.next(oe),ee.closed)return;ee.complete()})}(Y);if((0,p.L)(Y))return function ue(Y){return Z((0,p.Q)(Y))}(Y)}throw(0,I.z)(Y)}function Z(Y){return new w.y(ee=>{(function F(Y,ee){var oe,X,y,k;return(0,s.mG)(this,void 0,void 0,function*(){try{for(oe=(0,s.KL)(Y);!(X=yield oe.next()).done;)if(ee.next(X.value),ee.closed)return}catch($){y={error:$}}finally{try{X&&!X.done&&(k=oe.return)&&(yield k.call(oe))}finally{if(y)throw y.error}}ee.complete()})})(Y,ee).catch(oe=>ee.error(oe))})}},56451:(ut,fe,d)=>{"use strict";d.d(fe,{T:()=>te});var s=d(8189),c=d(38421),A=d(60515),w=d(63269),N=d(50457);function te(...I){const b=(0,w.yG)(I),p=(0,w._6)(I,1/0),_=I;return _.length?1===_.length?(0,c.Xf)(_[0]):(0,s.J)(p)((0,N.D)(_,b)):A.E}},39646:(ut,fe,d)=>{"use strict";d.d(fe,{of:()=>A});var s=d(63269),c=d(50457);function A(...w){const N=(0,s.yG)(w);return(0,c.D)(w,N)}},62843:(ut,fe,d)=>{"use strict";d.d(fe,{_:()=>A});var s=d(69751),c=d(30576);function A(w,N){const te=(0,c.m)(w)?w:()=>w,I=b=>b.error(te());return new s.y(N?b=>N.schedule(I,0,b):I)}},5963:(ut,fe,d)=>{"use strict";d.d(fe,{H:()=>N});var s=d(69751),c=d(34986),A=d(93532);function N(te=0,I,b=c.P){let p=-1;return null!=I&&((0,A.K)(I)?b=I:p=I),new s.y(_=>{let v=function w(te){return te instanceof Date&&!isNaN(te)}(te)?+te-b.now():te;v<0&&(v=0);let T=0;return b.schedule(function(){_.closed||(_.next(T++),0<=p?this.schedule(void 0,p):_.complete())},v)})}},25403:(ut,fe,d)=>{"use strict";d.d(fe,{x:()=>c});var s=d(70930);function c(w,N,te,I,b){return new A(w,N,te,I,b)}class A extends s.Lv{constructor(N,te,I,b,p,_){super(N),this.onFinalize=p,this.shouldUnsubscribe=_,this._next=te?function(v){try{te(v)}catch(T){N.error(T)}}:super._next,this._error=b?function(v){try{b(v)}catch(T){N.error(T)}finally{this.unsubscribe()}}:super._error,this._complete=I?function(){try{I()}catch(v){N.error(v)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var N;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:te}=this;super.unsubscribe(),!te&&(null===(N=this.onFinalize)||void 0===N||N.call(this))}}}},70262:(ut,fe,d)=>{"use strict";d.d(fe,{K:()=>w});var s=d(38421),c=d(25403),A=d(54482);function w(N){return(0,A.e)((te,I)=>{let _,b=null,p=!1;b=te.subscribe((0,c.x)(I,void 0,void 0,v=>{_=(0,s.Xf)(N(v,w(N)(te))),b?(b.unsubscribe(),b=null,_.subscribe(I)):p=!0})),p&&(b.unsubscribe(),b=null,_.subscribe(I))})}},24351:(ut,fe,d)=>{"use strict";d.d(fe,{b:()=>A});var s=d(95577),c=d(30576);function A(w,N){return(0,c.m)(N)?(0,s.z)(w,N,1):(0,s.z)(w,1)}},78372:(ut,fe,d)=>{"use strict";d.d(fe,{b:()=>w});var s=d(34986),c=d(54482),A=d(25403);function w(N,te=s.z){return(0,c.e)((I,b)=>{let p=null,_=null,v=null;const T=()=>{if(p){p.unsubscribe(),p=null;const P=_;_=null,b.next(P)}};function W(){const P=v+N,B=te.now();if(B<P)return p=this.schedule(void 0,P-B),void b.add(p);T()}I.subscribe((0,A.x)(b,P=>{_=P,v=te.now(),p||(p=te.schedule(W,N),b.add(p))},()=>{T(),b.complete()},void 0,()=>{_=p=null}))})}},46590:(ut,fe,d)=>{"use strict";d.d(fe,{d:()=>A});var s=d(54482),c=d(25403);function A(w){return(0,s.e)((N,te)=>{let I=!1;N.subscribe((0,c.x)(te,b=>{I=!0,te.next(b)},()=>{I||te.next(w),te.complete()}))})}},75376:(ut,fe,d)=>{"use strict";d.d(fe,{j:()=>p});var s=d(97272),c=d(95698),A=d(54482),w=d(25403),N=d(25032),I=d(69718),b=d(95577);function p(_,v){return v?T=>(0,s.z)(v.pipe((0,c.q)(1),function te(){return(0,A.e)((_,v)=>{_.subscribe((0,w.x)(v,N.Z))})}()),T.pipe(p(_))):(0,b.z)((T,W)=>_(T,W).pipe((0,c.q)(1),(0,I.h)(T)))}},71884:(ut,fe,d)=>{"use strict";d.d(fe,{x:()=>w});var s=d(44671),c=d(54482),A=d(25403);function w(te,I=s.y){return te=te??N,(0,c.e)((b,p)=>{let _,v=!0;b.subscribe((0,A.x)(p,T=>{const W=I(T);(v||!te(_,W))&&(v=!1,_=W,p.next(T))}))})}function N(te,I){return te===I}},39300:(ut,fe,d)=>{"use strict";d.d(fe,{h:()=>A});var s=d(54482),c=d(25403);function A(w,N){return(0,s.e)((te,I)=>{let b=0;te.subscribe((0,c.x)(I,p=>w.call(N,p,b++)&&I.next(p)))})}},28746:(ut,fe,d)=>{"use strict";d.d(fe,{x:()=>c});var s=d(54482);function c(A){return(0,s.e)((w,N)=>{try{w.subscribe(N)}finally{N.add(A)}})}},50590:(ut,fe,d)=>{"use strict";d.d(fe,{P:()=>I});var s=d(86805),c=d(39300),A=d(95698),w=d(46590),N=d(18068),te=d(44671);function I(b,p){const _=arguments.length>=2;return v=>v.pipe(b?(0,c.h)((T,W)=>b(T,W,v)):te.y,(0,A.q)(1),_?(0,w.d)(p):(0,N.T)(()=>new s.K))}},13103:(ut,fe,d)=>{"use strict";d.d(fe,{Z:()=>I});var s=d(86805),c=d(39300),A=d(52035),w=d(18068),N=d(46590),te=d(44671);function I(b,p){const _=arguments.length>=2;return v=>v.pipe(b?(0,c.h)((T,W)=>b(T,W,v)):te.y,(0,A.h)(1),_?(0,N.d)(p):(0,w.T)(()=>new s.K))}},54004:(ut,fe,d)=>{"use strict";d.d(fe,{U:()=>A});var s=d(54482),c=d(25403);function A(w,N){return(0,s.e)((te,I)=>{let b=0;te.subscribe((0,c.x)(I,p=>{I.next(w.call(N,p,b++))}))})}},69718:(ut,fe,d)=>{"use strict";d.d(fe,{h:()=>c});var s=d(54004);function c(A){return(0,s.U)(()=>A)}},8189:(ut,fe,d)=>{"use strict";d.d(fe,{J:()=>A});var s=d(95577),c=d(44671);function A(w=1/0){return(0,s.z)(c.y,w)}},95577:(ut,fe,d)=>{"use strict";d.d(fe,{z:()=>b});var s=d(54004),c=d(38421),A=d(54482),w=d(39672),N=d(25403),I=d(30576);function b(p,_,v=1/0){return(0,I.m)(_)?b((T,W)=>(0,s.U)((P,B)=>_(T,P,W,B))((0,c.Xf)(p(T,W))),v):("number"==typeof _&&(v=_),(0,A.e)((T,W)=>function te(p,_,v,T,W,P,B,G){const U=[];let Z=0,ue=0,F=!1;const Y=()=>{F&&!U.length&&!Z&&_.complete()},ee=X=>Z<T?oe(X):U.push(X),oe=X=>{P&&_.next(X),Z++;let y=!1;(0,c.Xf)(v(X,ue++)).subscribe((0,N.x)(_,k=>{W?.(k),P?ee(k):_.next(k)},()=>{y=!0},void 0,()=>{if(y)try{for(Z--;U.length&&Z<T;){const k=U.shift();B?(0,w.f)(_,B,()=>oe(k)):oe(k)}Y()}catch(k){_.error(k)}}))};return p.subscribe((0,N.x)(_,ee,()=>{F=!0,Y()})),()=>{G?.()}}(T,W,p,v)))}},85363:(ut,fe,d)=>{"use strict";d.d(fe,{Q:()=>w});var s=d(39672),c=d(54482),A=d(25403);function w(N,te=0){return(0,c.e)((I,b)=>{I.subscribe((0,A.x)(b,p=>(0,s.f)(b,N,()=>b.next(p),te),()=>(0,s.f)(b,N,()=>b.complete(),te),p=>(0,s.f)(b,N,()=>b.error(p),te)))})}},38343:(ut,fe,d)=>{"use strict";d.d(fe,{x:()=>A});var s=d(54482),c=d(25403);function A(){return(0,s.e)((w,N)=>{let te=null;w._refCount++;const I=(0,c.x)(N,void 0,void 0,void 0,()=>{if(!w||w._refCount<=0||0<--w._refCount)return void(te=null);const b=w._connection,p=te;te=null,b&&(!p||b===p)&&b.unsubscribe(),N.unsubscribe()});w.subscribe(I),I.closed||(te=w.connect())})}},22940:(ut,fe,d)=>{"use strict";d.d(fe,{R:()=>A});var s=d(54482),c=d(57359);function A(w,N){return(0,s.e)((0,c.U)(w,N,arguments.length>=2,!0))}},57359:(ut,fe,d)=>{"use strict";d.d(fe,{U:()=>c});var s=d(25403);function c(A,w,N,te,I){return(b,p)=>{let _=N,v=w,T=0;b.subscribe((0,s.x)(p,W=>{const P=T++;v=_?A(v,W,P):(_=!0,W),te&&p.next(v)},I&&(()=>{_&&p.next(v),p.complete()})))}}},13099:(ut,fe,d)=>{"use strict";d.d(fe,{B:()=>N});var s=d(38421),c=d(77579),A=d(70930),w=d(54482);function N(I={}){const{connector:b=(()=>new c.x),resetOnError:p=!0,resetOnComplete:_=!0,resetOnRefCountZero:v=!0}=I;return T=>{let W,P,B,G=0,U=!1,Z=!1;const ue=()=>{P?.unsubscribe(),P=void 0},F=()=>{ue(),W=B=void 0,U=Z=!1},Y=()=>{const ee=W;F(),ee?.unsubscribe()};return(0,w.e)((ee,oe)=>{G++,!Z&&!U&&ue();const X=B=B??b();oe.add(()=>{G--,0===G&&!Z&&!U&&(P=te(Y,v))}),X.subscribe(oe),!W&&G>0&&(W=new A.Hp({next:y=>X.next(y),error:y=>{Z=!0,ue(),P=te(F,p,y),X.error(y)},complete:()=>{U=!0,ue(),P=te(F,_),X.complete()}}),(0,s.Xf)(ee).subscribe(W))})(T)}}function te(I,b,...p){if(!0===b)return void I();if(!1===b)return;const _=new A.Hp({next:()=>{_.unsubscribe(),I()}});return b(...p).subscribe(_)}},34782:(ut,fe,d)=>{"use strict";d.d(fe,{d:()=>A});var s=d(4707),c=d(13099);function A(w,N,te){let I,b=!1;return w&&"object"==typeof w?({bufferSize:I=1/0,windowTime:N=1/0,refCount:b=!1,scheduler:te}=w):I=w??1/0,(0,c.B)({connector:()=>new s.t(I,N,te),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:b})}},35684:(ut,fe,d)=>{"use strict";d.d(fe,{T:()=>c});var s=d(39300);function c(A){return(0,s.h)((w,N)=>A<=N)}},54244:(ut,fe,d)=>{"use strict";d.d(fe,{n:()=>A});var s=d(54482),c=d(25403);function A(w){return(0,s.e)((N,te)=>{let I=!1,b=0;N.subscribe((0,c.x)(te,p=>(I||(I=!w(p,b++)))&&te.next(p)))})}},68675:(ut,fe,d)=>{"use strict";d.d(fe,{O:()=>w});var s=d(97272),c=d(63269),A=d(54482);function w(...N){const te=(0,c.yG)(N);return(0,A.e)((I,b)=>{(te?(0,s.z)(N,I,te):(0,s.z)(N,I)).subscribe(b)})}},63900:(ut,fe,d)=>{"use strict";d.d(fe,{w:()=>w});var s=d(38421),c=d(54482),A=d(25403);function w(N,te){return(0,c.e)((I,b)=>{let p=null,_=0,v=!1;const T=()=>v&&!p&&b.complete();I.subscribe((0,A.x)(b,W=>{p?.unsubscribe();let P=0;const B=_++;(0,s.Xf)(N(W,B)).subscribe(p=(0,A.x)(b,G=>b.next(te?te(W,G,B,P++):G),()=>{p=null,T()}))},()=>{v=!0,T()}))})}},95698:(ut,fe,d)=>{"use strict";d.d(fe,{q:()=>w});var s=d(60515),c=d(54482),A=d(25403);function w(N){return N<=0?()=>s.E:(0,c.e)((te,I)=>{let b=0;te.subscribe((0,A.x)(I,p=>{++b<=N&&(I.next(p),N<=b&&I.complete())}))})}},52035:(ut,fe,d)=>{"use strict";d.d(fe,{h:()=>w});var s=d(60515),c=d(54482),A=d(25403);function w(N){return N<=0?()=>s.E:(0,c.e)((te,I)=>{let b=[];te.subscribe((0,A.x)(I,p=>{b.push(p),N<b.length&&b.shift()},()=>{for(const p of b)I.next(p);I.complete()},void 0,()=>{b=null}))})}},82722:(ut,fe,d)=>{"use strict";d.d(fe,{R:()=>N});var s=d(54482),c=d(25403),A=d(38421),w=d(25032);function N(te){return(0,s.e)((I,b)=>{(0,A.Xf)(te).subscribe((0,c.x)(b,()=>b.complete(),w.Z)),!b.closed&&I.subscribe(b)})}},22529:(ut,fe,d)=>{"use strict";d.d(fe,{o:()=>A});var s=d(54482),c=d(25403);function A(w,N=!1){return(0,s.e)((te,I)=>{let b=0;te.subscribe((0,c.x)(I,p=>{const _=w(p,b++);(_||N)&&I.next(p),!_&&I.complete()}))})}},18505:(ut,fe,d)=>{"use strict";d.d(fe,{b:()=>N});var s=d(30576),c=d(54482),A=d(25403),w=d(44671);function N(te,I,b){const p=(0,s.m)(te)||I||b?{next:te,error:I,complete:b}:te;return p?(0,c.e)((_,v)=>{var T;null===(T=p.subscribe)||void 0===T||T.call(p);let W=!0;_.subscribe((0,A.x)(v,P=>{var B;null===(B=p.next)||void 0===B||B.call(p,P),v.next(P)},()=>{var P;W=!1,null===(P=p.complete)||void 0===P||P.call(p),v.complete()},P=>{var B;W=!1,null===(B=p.error)||void 0===B||B.call(p,P),v.error(P)},()=>{var P,B;W&&(null===(P=p.unsubscribe)||void 0===P||P.call(p)),null===(B=p.finalize)||void 0===B||B.call(p)}))}):w.y}},18068:(ut,fe,d)=>{"use strict";d.d(fe,{T:()=>w});var s=d(86805),c=d(54482),A=d(25403);function w(te=N){return(0,c.e)((I,b)=>{let p=!1;I.subscribe((0,A.x)(b,_=>{p=!0,b.next(_)},()=>p?b.complete():b.error(te())))})}function N(){return new s.K}},84408:(ut,fe,d)=>{"use strict";d.d(fe,{o:()=>N});var s=d(50727);class c extends s.w0{constructor(I,b){super()}schedule(I,b=0){return this}}const A={setInterval(te,I,...b){const{delegate:p}=A;return p?.setInterval?p.setInterval(te,I,...b):setInterval(te,I,...b)},clearInterval(te){const{delegate:I}=A;return(I?.clearInterval||clearInterval)(te)},delegate:void 0};var w=d(38737);class N extends c{constructor(I,b){super(I,b),this.scheduler=I,this.work=b,this.pending=!1}schedule(I,b=0){if(this.closed)return this;this.state=I;const p=this.id,_=this.scheduler;return null!=p&&(this.id=this.recycleAsyncId(_,p,b)),this.pending=!0,this.delay=b,this.id=this.id||this.requestAsyncId(_,this.id,b),this}requestAsyncId(I,b,p=0){return A.setInterval(I.flush.bind(I,this),p)}recycleAsyncId(I,b,p=0){if(null!=p&&this.delay===p&&!1===this.pending)return b;A.clearInterval(b)}execute(I,b){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const p=this._execute(I,b);if(p)return p;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(I,b){let _,p=!1;try{this.work(I)}catch(v){p=!0,_=v||new Error("Scheduled action threw falsy error")}if(p)return this.unsubscribe(),_}unsubscribe(){if(!this.closed){const{id:I,scheduler:b}=this,{actions:p}=b;this.work=this.state=this.scheduler=null,this.pending=!1,(0,w.P)(p,this),null!=I&&(this.id=this.recycleAsyncId(b,I,null)),this.delay=null,super.unsubscribe()}}}},97565:(ut,fe,d)=>{"use strict";d.d(fe,{v:()=>A});var s=d(26063);class c{constructor(N,te=c.now){this.schedulerActionCtor=N,this.now=te}schedule(N,te=0,I){return new this.schedulerActionCtor(this,N).schedule(I,te)}}c.now=s.l.now;class A extends c{constructor(N,te=c.now){super(N,te),this.actions=[],this._active=!1,this._scheduled=void 0}flush(N){const{actions:te}=this;if(this._active)return void te.push(N);let I;this._active=!0;do{if(I=N.execute(N.state,N.delay))break}while(N=te.shift());if(this._active=!1,I){for(;N=te.shift();)N.unsubscribe();throw I}}}},53101:(ut,fe,d)=>{"use strict";d.d(fe,{E:()=>P});var s=d(84408);let A,c=1;const w={};function N(G){return G in w&&(delete w[G],!0)}const te={setImmediate(G){const U=c++;return w[U]=!0,A||(A=Promise.resolve()),A.then(()=>N(U)&&G()),U},clearImmediate(G){N(G)}},{setImmediate:b,clearImmediate:p}=te,_={setImmediate(...G){const{delegate:U}=_;return(U?.setImmediate||b)(...G)},clearImmediate(G){const{delegate:U}=_;return(U?.clearImmediate||p)(G)},delegate:void 0};var T=d(97565);const P=new class W extends T.v{flush(U){this._active=!0;const Z=this._scheduled;this._scheduled=void 0;const{actions:ue}=this;let F;U=U||ue.shift();do{if(F=U.execute(U.state,U.delay))break}while((U=ue[0])&&U.id===Z&&ue.shift());if(this._active=!1,F){for(;(U=ue[0])&&U.id===Z&&ue.shift();)U.unsubscribe();throw F}}}(class v extends s.o{constructor(U,Z){super(U,Z),this.scheduler=U,this.work=Z}requestAsyncId(U,Z,ue=0){return null!==ue&&ue>0?super.requestAsyncId(U,Z,ue):(U.actions.push(this),U._scheduled||(U._scheduled=_.setImmediate(U.flush.bind(U,void 0))))}recycleAsyncId(U,Z,ue=0){if(null!=ue&&ue>0||null==ue&&this.delay>0)return super.recycleAsyncId(U,Z,ue);U.actions.some(F=>F.id===Z)||(_.clearImmediate(Z),U._scheduled=void 0)}})},34986:(ut,fe,d)=>{"use strict";d.d(fe,{P:()=>w,z:()=>A});var s=d(84408);const A=new(d(97565).v)(s.o),w=A},26063:(ut,fe,d)=>{"use strict";d.d(fe,{l:()=>s});const s={now:()=>(s.delegate||Date).now(),delegate:void 0}},43410:(ut,fe,d)=>{"use strict";d.d(fe,{z:()=>s});const s={setTimeout(c,A,...w){const{delegate:N}=s;return N?.setTimeout?N.setTimeout(c,A,...w):setTimeout(c,A,...w)},clearTimeout(c){const{delegate:A}=s;return(A?.clearTimeout||clearTimeout)(c)},delegate:void 0}},2202:(ut,fe,d)=>{"use strict";d.d(fe,{h:()=>c});const c=function s(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},48822:(ut,fe,d)=>{"use strict";d.d(fe,{L:()=>s});const s="function"==typeof Symbol&&Symbol.observable||"@@observable"},86805:(ut,fe,d)=>{"use strict";d.d(fe,{K:()=>c});const c=(0,d(83888).d)(A=>function(){A(this),this.name="EmptyError",this.message="no elements in sequence"})},63269:(ut,fe,d)=>{"use strict";d.d(fe,{_6:()=>te,jO:()=>w,yG:()=>N});var s=d(30576),c=d(93532);function A(I){return I[I.length-1]}function w(I){return(0,s.m)(A(I))?I.pop():void 0}function N(I){return(0,c.K)(A(I))?I.pop():void 0}function te(I,b){return"number"==typeof A(I)?I.pop():b}},54742:(ut,fe,d)=>{"use strict";d.d(fe,{D:()=>N});const{isArray:s}=Array,{getPrototypeOf:c,prototype:A,keys:w}=Object;function N(I){if(1===I.length){const b=I[0];if(s(b))return{args:b,keys:null};if(function te(I){return I&&"object"==typeof I&&c(I)===A}(b)){const p=w(b);return{args:p.map(_=>b[_]),keys:p}}}return{args:I,keys:null}}},38737:(ut,fe,d)=>{"use strict";function s(c,A){if(c){const w=c.indexOf(A);0<=w&&c.splice(w,1)}}d.d(fe,{P:()=>s})},83888:(ut,fe,d)=>{"use strict";function s(c){const w=c(N=>{Error.call(N),N.stack=(new Error).stack});return w.prototype=Object.create(Error.prototype),w.prototype.constructor=w,w}d.d(fe,{d:()=>s})},31810:(ut,fe,d)=>{"use strict";function s(c,A){return c.reduce((w,N,te)=>(w[N]=A[te],w),{})}d.d(fe,{n:()=>s})},72806:(ut,fe,d)=>{"use strict";d.d(fe,{O:()=>w,x:()=>A});var s=d(42416);let c=null;function A(N){if(s.v.useDeprecatedSynchronousErrorHandling){const te=!c;if(te&&(c={errorThrown:!1,error:null}),N(),te){const{errorThrown:I,error:b}=c;if(c=null,I)throw b}}else N()}function w(N){s.v.useDeprecatedSynchronousErrorHandling&&c&&(c.errorThrown=!0,c.error=N)}},39672:(ut,fe,d)=>{"use strict";function s(c,A,w,N=0,te=!1){const I=A.schedule(function(){w(),te?c.add(this.schedule(null,N)):this.unsubscribe()},N);if(c.add(I),!te)return I}d.d(fe,{f:()=>s})},44671:(ut,fe,d)=>{"use strict";function s(c){return c}d.d(fe,{y:()=>s})},81144:(ut,fe,d)=>{"use strict";d.d(fe,{z:()=>s});const s=c=>c&&"number"==typeof c.length&&"function"!=typeof c},12206:(ut,fe,d)=>{"use strict";d.d(fe,{D:()=>c});var s=d(30576);function c(A){return Symbol.asyncIterator&&(0,s.m)(A?.[Symbol.asyncIterator])}},30576:(ut,fe,d)=>{"use strict";function s(c){return"function"==typeof c}d.d(fe,{m:()=>s})},93670:(ut,fe,d)=>{"use strict";d.d(fe,{c:()=>A});var s=d(48822),c=d(30576);function A(w){return(0,c.m)(w[s.L])}},26495:(ut,fe,d)=>{"use strict";d.d(fe,{T:()=>A});var s=d(2202),c=d(30576);function A(w){return(0,c.m)(w?.[s.h])}},45191:(ut,fe,d)=>{"use strict";d.d(fe,{b:()=>A});var s=d(69751),c=d(30576);function A(w){return!!w&&(w instanceof s.y||(0,c.m)(w.lift)&&(0,c.m)(w.subscribe))}},28239:(ut,fe,d)=>{"use strict";d.d(fe,{t:()=>c});var s=d(30576);function c(A){return(0,s.m)(A?.then)}},53260:(ut,fe,d)=>{"use strict";d.d(fe,{L:()=>w,Q:()=>A});var s=d(35987),c=d(30576);function A(N){return(0,s.FC)(this,arguments,function*(){const I=N.getReader();try{for(;;){const{value:b,done:p}=yield(0,s.qq)(I.read());if(p)return yield(0,s.qq)(void 0);yield yield(0,s.qq)(b)}}finally{I.releaseLock()}})}function w(N){return(0,c.m)(N?.getReader)}},93532:(ut,fe,d)=>{"use strict";d.d(fe,{K:()=>c});var s=d(30576);function c(A){return A&&(0,s.m)(A.schedule)}},54482:(ut,fe,d)=>{"use strict";d.d(fe,{A:()=>c,e:()=>A});var s=d(30576);function c(w){return(0,s.m)(w?.lift)}function A(w){return N=>{if(c(N))return N.lift(function(te){try{return w(te,this)}catch(I){this.error(I)}});throw new TypeError("Unable to lift unknown Observable type")}}},83268:(ut,fe,d)=>{"use strict";d.d(fe,{Z:()=>w});var s=d(54004);const{isArray:c}=Array;function w(N){return(0,s.U)(te=>function A(N,te){return c(te)?N(...te):N(te)}(N,te))}},25032:(ut,fe,d)=>{"use strict";function s(){}d.d(fe,{Z:()=>s})},89635:(ut,fe,d)=>{"use strict";d.d(fe,{U:()=>A,z:()=>c});var s=d(44671);function c(...w){return A(w)}function A(w){return 0===w.length?s.y:1===w.length?w[0]:function(te){return w.reduce((I,b)=>b(I),te)}}},87849:(ut,fe,d)=>{"use strict";d.d(fe,{h:()=>A});var s=d(42416),c=d(43410);function A(w){c.z.setTimeout(()=>{const{onUnhandledError:N}=s.v;if(!N)throw w;N(w)})}},44532:(ut,fe,d)=>{"use strict";function s(c){return new TypeError(`You provided ${null!==c&&"object"==typeof c?"an invalid object":`'${c}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}d.d(fe,{z:()=>s})},35987:(ut,fe,d)=>{"use strict";function b(J,L,le,ce){return new(le||(le=Promise))(function(Qe,ct){function $t(ke){try{Et(ce.next(ke))}catch(je){ct(je)}}function $e(ke){try{Et(ce.throw(ke))}catch(je){ct(je)}}function Et(ke){ke.done?Qe(ke.value):function Se(Qe){return Qe instanceof le?Qe:new le(function(ct){ct(Qe)})}(ke.value).then($t,$e)}Et((ce=ce.apply(J,L||[])).next())})}function U(J){return this instanceof U?(this.v=J,this):new U(J)}function Z(J,L,le){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Se,ce=le.apply(J,L||[]),Qe=[];return Se={},ct("next"),ct("throw"),ct("return"),Se[Symbol.asyncIterator]=function(){return this},Se;function ct(de){ce[de]&&(Se[de]=function(me){return new Promise(function(Ne,it){Qe.push([de,me,Ne,it])>1||$t(de,me)})})}function $t(de,me){try{!function $e(de){de.value instanceof U?Promise.resolve(de.value.v).then(Et,ke):je(Qe[0][2],de)}(ce[de](me))}catch(Ne){je(Qe[0][3],Ne)}}function Et(de){$t("next",de)}function ke(de){$t("throw",de)}function je(de,me){de(me),Qe.shift(),Qe.length&&$t(Qe[0][0],Qe[0][1])}}function F(J){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var le,L=J[Symbol.asyncIterator];return L?L.call(J):(J=function T(J){var L="function"==typeof Symbol&&Symbol.iterator,le=L&&J[L],ce=0;if(le)return le.call(J);if(J&&"number"==typeof J.length)return{next:function(){return J&&ce>=J.length&&(J=void 0),{value:J&&J[ce++],done:!J}}};throw new TypeError(L?"Object is not iterable.":"Symbol.iterator is not defined.")}(J),le={},ce("next"),ce("throw"),ce("return"),le[Symbol.asyncIterator]=function(){return this},le);function ce(Qe){le[Qe]=J[Qe]&&function(ct){return new Promise(function($t,$e){!function Se(Qe,ct,$t,$e){Promise.resolve($e).then(function(Et){Qe({value:Et,done:$t})},ct)}($t,$e,(ct=J[Qe](ct)).done,ct.value)})}}}d.d(fe,{FC:()=>Z,KL:()=>F,mG:()=>b,qq:()=>U})},70655:(ut,fe,d)=>{"use strict";function N($,J,L,le){var Qe,ce=arguments.length,Se=ce<3?J:null===le?le=Object.getOwnPropertyDescriptor(J,L):le;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Se=Reflect.decorate($,J,L,le);else for(var ct=$.length-1;ct>=0;ct--)(Qe=$[ct])&&(Se=(ce<3?Qe(Se):ce>3?Qe(J,L,Se):Qe(J,L))||Se);return ce>3&&Se&&Object.defineProperty(J,L,Se),Se}d.d(fe,{gn:()=>N})},37340:(ut,fe,d)=>{"use strict";d.d(fe,{F4:()=>_,IO:()=>B,LC:()=>c,SB:()=>p,X$:()=>w,ZE:()=>ue,ZN:()=>Z,_7:()=>P,_j:()=>s,eR:()=>v,jt:()=>N,k1:()=>F,l3:()=>A,oB:()=>b,oQ:()=>T,pV:()=>W,ru:()=>te,vP:()=>I});class s{}class c{}const A="*";function w(Y,ee){return{type:7,name:Y,definitions:ee,options:{}}}function N(Y,ee=null){return{type:4,styles:ee,timings:Y}}function te(Y,ee=null){return{type:3,steps:Y,options:ee}}function I(Y,ee=null){return{type:2,steps:Y,options:ee}}function b(Y){return{type:6,styles:Y,offset:null}}function p(Y,ee,oe){return{type:0,name:Y,styles:ee,options:oe}}function _(Y){return{type:5,steps:Y}}function v(Y,ee,oe=null){return{type:1,expr:Y,animation:ee,options:oe}}function T(Y,ee=null){return{type:8,animation:Y,options:ee}}function W(Y=null){return{type:9,options:Y}}function P(Y,ee=null){return{type:10,animation:Y,options:ee}}function B(Y,ee,oe=null){return{type:11,selector:Y,animation:ee,options:oe}}function U(Y){Promise.resolve().then(Y)}class Z{constructor(ee=0,oe=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=ee+oe}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(ee=>ee()),this._onDoneFns=[])}onStart(ee){this._originalOnStartFns.push(ee),this._onStartFns.push(ee)}onDone(ee){this._originalOnDoneFns.push(ee),this._onDoneFns.push(ee)}onDestroy(ee){this._onDestroyFns.push(ee)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){U(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(ee=>ee()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(ee=>ee()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(ee){this._position=this.totalTime?ee*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(ee){const oe="start"==ee?this._onStartFns:this._onDoneFns;oe.forEach(X=>X()),oe.length=0}}class ue{constructor(ee){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=ee;let oe=0,X=0,y=0;const k=this.players.length;0==k?U(()=>this._onFinish()):this.players.forEach($=>{$.onDone(()=>{++oe==k&&this._onFinish()}),$.onDestroy(()=>{++X==k&&this._onDestroy()}),$.onStart(()=>{++y==k&&this._onStart()})}),this.totalTime=this.players.reduce(($,J)=>Math.max($,J.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(ee=>ee()),this._onDoneFns=[])}init(){this.players.forEach(ee=>ee.init())}onStart(ee){this._onStartFns.push(ee)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(ee=>ee()),this._onStartFns=[])}onDone(ee){this._onDoneFns.push(ee)}onDestroy(ee){this._onDestroyFns.push(ee)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(ee=>ee.play())}pause(){this.players.forEach(ee=>ee.pause())}restart(){this.players.forEach(ee=>ee.restart())}finish(){this._onFinish(),this.players.forEach(ee=>ee.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(ee=>ee.destroy()),this._onDestroyFns.forEach(ee=>ee()),this._onDestroyFns=[])}reset(){this.players.forEach(ee=>ee.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(ee){const oe=ee*this.totalTime;this.players.forEach(X=>{const y=X.totalTime?Math.min(1,oe/X.totalTime):1;X.setPosition(y)})}getPosition(){const ee=this.players.reduce((oe,X)=>null===oe||X.totalTime>oe.totalTime?X:oe,null);return null!=ee?ee.getPosition():0}beforeDestroy(){this.players.forEach(ee=>{ee.beforeDestroy&&ee.beforeDestroy()})}triggerCallback(ee){const oe="start"==ee?this._onStartFns:this._onDoneFns;oe.forEach(X=>X()),oe.length=0}}const F="!"},12687:(ut,fe,d)=>{"use strict";d.d(fe,{$s:()=>J,Em:()=>Qe,Kd:()=>Me,X6:()=>Dt,ic:()=>$t,kH:()=>Mt,mK:()=>Pt,qV:()=>nn,qm:()=>ze,rt:()=>Ge,s1:()=>Se,tE:()=>bt,yG:()=>pe});var s=d(36895),c=d(94650),A=d(83353),w=d(77579),N=d(50727),te=d(61135),I=d(39646),b=d(29521),p=d(18505),_=d(78372),v=d(39300),T=d(54004),W=d(95698),P=d(35684),B=d(71884),G=d(82722),U=d(21281),Z=d(49643),ue=d(62289);function oe(Oe,Ue){return(Oe.getAttribute(Ue)||"").match(/\S+/g)||[]}const y="cdk-describedby-message",k="cdk-describedby-host";let $=0,J=(()=>{class Oe{constructor(be,at){this._platform=at,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+$++,this._document=be,this._id=(0,c.f3M)(c.AFp)+"-"+$++}describe(be,at,At){if(!this._canBeDescribed(be,at))return;const Yt=L(at,At);"string"!=typeof at?(le(at,this._id),this._messageRegistry.set(Yt,{messageElement:at,referenceCount:0})):this._messageRegistry.has(Yt)||this._createMessageElement(at,At),this._isElementDescribedByMessage(be,Yt)||this._addMessageReference(be,Yt)}removeDescription(be,at,At){if(!at||!this._isElementNode(be))return;const Yt=L(at,At);if(this._isElementDescribedByMessage(be,Yt)&&this._removeMessageReference(be,Yt),"string"==typeof at){const En=this._messageRegistry.get(Yt);En&&0===En.referenceCount&&this._deleteMessageElement(Yt)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const be=this._document.querySelectorAll(`[${k}="${this._id}"]`);for(let at=0;at<be.length;at++)this._removeCdkDescribedByReferenceIds(be[at]),be[at].removeAttribute(k);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(be,at){const At=this._document.createElement("div");le(At,this._id),At.textContent=be,at&&At.setAttribute("role",at),this._createMessagesContainer(),this._messagesContainer.appendChild(At),this._messageRegistry.set(L(be,at),{messageElement:At,referenceCount:0})}_deleteMessageElement(be){this._messageRegistry.get(be)?.messageElement?.remove(),this._messageRegistry.delete(be)}_createMessagesContainer(){if(this._messagesContainer)return;const be="cdk-describedby-message-container",at=this._document.querySelectorAll(`.${be}[platform="server"]`);for(let Yt=0;Yt<at.length;Yt++)at[Yt].remove();const At=this._document.createElement("div");At.style.visibility="hidden",At.classList.add(be),At.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&At.setAttribute("platform","server"),this._document.body.appendChild(At),this._messagesContainer=At}_removeCdkDescribedByReferenceIds(be){const at=oe(be,"aria-describedby").filter(At=>0!=At.indexOf(y));be.setAttribute("aria-describedby",at.join(" "))}_addMessageReference(be,at){const At=this._messageRegistry.get(at);(function Y(Oe,Ue,be){const at=oe(Oe,Ue);at.some(At=>At.trim()==be.trim())||(at.push(be.trim()),Oe.setAttribute(Ue,at.join(" ")))})(be,"aria-describedby",At.messageElement.id),be.setAttribute(k,this._id),At.referenceCount++}_removeMessageReference(be,at){const At=this._messageRegistry.get(at);At.referenceCount--,function ee(Oe,Ue,be){const At=oe(Oe,Ue).filter(Yt=>Yt!=be.trim());At.length?Oe.setAttribute(Ue,At.join(" ")):Oe.removeAttribute(Ue)}(be,"aria-describedby",At.messageElement.id),be.removeAttribute(k)}_isElementDescribedByMessage(be,at){const At=oe(be,"aria-describedby"),Yt=this._messageRegistry.get(at),En=Yt&&Yt.messageElement.id;return!!En&&-1!=At.indexOf(En)}_canBeDescribed(be,at){if(!this._isElementNode(be))return!1;if(at&&"object"==typeof at)return!0;const At=null==at?"":`${at}`.trim(),Yt=be.getAttribute("aria-label");return!(!At||Yt&&Yt.trim()===At)}_isElementNode(be){return be.nodeType===this._document.ELEMENT_NODE}}return Oe.\u0275fac=function(be){return new(be||Oe)(c.LFG(s.K0),c.LFG(A.t4))},Oe.\u0275prov=c.Yz7({token:Oe,factory:Oe.\u0275fac,providedIn:"root"}),Oe})();function L(Oe,Ue){return"string"==typeof Oe?`${Ue||""}/${Oe}`:Oe}function le(Oe,Ue){Oe.id||(Oe.id=`${y}-${Ue}-${$++}`)}class ce{constructor(Ue){this._items=Ue,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new w.x,this._typeaheadSubscription=N.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=be=>be.disabled,this._pressedLetters=[],this.tabOut=new w.x,this.change=new w.x,Ue instanceof c.n_E&&Ue.changes.subscribe(be=>{if(this._activeItem){const At=be.toArray().indexOf(this._activeItem);At>-1&&At!==this._activeItemIndex&&(this._activeItemIndex=At)}})}skipPredicate(Ue){return this._skipPredicateFn=Ue,this}withWrap(Ue=!0){return this._wrap=Ue,this}withVerticalOrientation(Ue=!0){return this._vertical=Ue,this}withHorizontalOrientation(Ue){return this._horizontal=Ue,this}withAllowedModifierKeys(Ue){return this._allowedModifierKeys=Ue,this}withTypeAhead(Ue=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,p.b)(be=>this._pressedLetters.push(be)),(0,_.b)(Ue),(0,v.h)(()=>this._pressedLetters.length>0),(0,T.U)(()=>this._pressedLetters.join(""))).subscribe(be=>{const at=this._getItemsArray();for(let At=1;At<at.length+1;At++){const Yt=(this._activeItemIndex+At)%at.length,En=at[Yt];if(!this._skipPredicateFn(En)&&0===En.getLabel().toUpperCase().trim().indexOf(be)){this.setActiveItem(Yt);break}}this._pressedLetters=[]}),this}withHomeAndEnd(Ue=!0){return this._homeAndEnd=Ue,this}setActiveItem(Ue){const be=this._activeItem;this.updateActiveItem(Ue),this._activeItem!==be&&this.change.next(this._activeItemIndex)}onKeydown(Ue){const be=Ue.keyCode,At=["altKey","ctrlKey","metaKey","shiftKey"].every(Yt=>!Ue[Yt]||this._allowedModifierKeys.indexOf(Yt)>-1);switch(be){case b.Mf:return void this.tabOut.next();case b.JH:if(this._vertical&&At){this.setNextItemActive();break}return;case b.LH:if(this._vertical&&At){this.setPreviousItemActive();break}return;case b.SV:if(this._horizontal&&At){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case b.oh:if(this._horizontal&&At){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case b.Sd:if(this._homeAndEnd&&At){this.setFirstItemActive();break}return;case b.uR:if(this._homeAndEnd&&At){this.setLastItemActive();break}return;default:return void((At||(0,b.Vb)(Ue,"shiftKey"))&&(Ue.key&&1===Ue.key.length?this._letterKeyStream.next(Ue.key.toLocaleUpperCase()):(be>=b.A&&be<=b.Z||be>=b.xE&&be<=b.aO)&&this._letterKeyStream.next(String.fromCharCode(be))))}this._pressedLetters=[],Ue.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(Ue){const be=this._getItemsArray(),at="number"==typeof Ue?Ue:be.indexOf(Ue);this._activeItem=be[at]??null,this._activeItemIndex=at}_setActiveItemByDelta(Ue){this._wrap?this._setActiveInWrapMode(Ue):this._setActiveInDefaultMode(Ue)}_setActiveInWrapMode(Ue){const be=this._getItemsArray();for(let at=1;at<=be.length;at++){const At=(this._activeItemIndex+Ue*at+be.length)%be.length;if(!this._skipPredicateFn(be[At]))return void this.setActiveItem(At)}}_setActiveInDefaultMode(Ue){this._setActiveItemByIndex(this._activeItemIndex+Ue,Ue)}_setActiveItemByIndex(Ue,be){const at=this._getItemsArray();if(at[Ue]){for(;this._skipPredicateFn(at[Ue]);)if(!at[Ue+=be])return;this.setActiveItem(Ue)}}_getItemsArray(){return this._items instanceof c.n_E?this._items.toArray():this._items}}class Se extends ce{setActiveItem(Ue){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(Ue),this.activeItem&&this.activeItem.setActiveStyles()}}class Qe extends ce{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(Ue){return this._origin=Ue,this}setActiveItem(Ue){super.setActiveItem(Ue),this.activeItem&&this.activeItem.focus(this._origin)}}let $t=(()=>{class Oe{constructor(be){this._platform=be}isDisabled(be){return be.hasAttribute("disabled")}isVisible(be){return function Et(Oe){return!!(Oe.offsetWidth||Oe.offsetHeight||"function"==typeof Oe.getClientRects&&Oe.getClientRects().length)}(be)&&"visible"===getComputedStyle(be).visibility}isTabbable(be){if(!this._platform.isBrowser)return!1;const at=function $e(Oe){try{return Oe.frameElement}catch{return null}}(function Vt(Oe){return Oe.ownerDocument&&Oe.ownerDocument.defaultView||window}(be));if(at&&(-1===yt(at)||!this.isVisible(at)))return!1;let At=be.nodeName.toLowerCase(),Yt=yt(be);return be.hasAttribute("contenteditable")?-1!==Yt:!("iframe"===At||"object"===At||this._platform.WEBKIT&&this._platform.IOS&&!function Gt(Oe){let Ue=Oe.nodeName.toLowerCase(),be="input"===Ue&&Oe.type;return"text"===be||"password"===be||"select"===Ue||"textarea"===Ue}(be))&&("audio"===At?!!be.hasAttribute("controls")&&-1!==Yt:"video"===At?-1!==Yt&&(null!==Yt||this._platform.FIREFOX||be.hasAttribute("controls")):be.tabIndex>=0)}isFocusable(be,at){return function Ft(Oe){return!function je(Oe){return function me(Oe){return"input"==Oe.nodeName.toLowerCase()}(Oe)&&"hidden"==Oe.type}(Oe)&&(function ke(Oe){let Ue=Oe.nodeName.toLowerCase();return"input"===Ue||"select"===Ue||"button"===Ue||"textarea"===Ue}(Oe)||function de(Oe){return function Ne(Oe){return"a"==Oe.nodeName.toLowerCase()}(Oe)&&Oe.hasAttribute("href")}(Oe)||Oe.hasAttribute("contenteditable")||it(Oe))}(be)&&!this.isDisabled(be)&&(at?.ignoreVisibility||this.isVisible(be))}}return Oe.\u0275fac=function(be){return new(be||Oe)(c.LFG(A.t4))},Oe.\u0275prov=c.Yz7({token:Oe,factory:Oe.\u0275fac,providedIn:"root"}),Oe})();function it(Oe){if(!Oe.hasAttribute("tabindex")||void 0===Oe.tabIndex)return!1;let Ue=Oe.getAttribute("tabindex");return!(!Ue||isNaN(parseInt(Ue,10)))}function yt(Oe){if(!it(Oe))return null;const Ue=parseInt(Oe.getAttribute("tabindex")||"",10);return isNaN(Ue)?-1:Ue}class sn{constructor(Ue,be,at,At,Yt=!1){this._element=Ue,this._checker=be,this._ngZone=at,this._document=At,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,Yt||this.attachAnchors()}get enabled(){return this._enabled}set enabled(Ue){this._enabled=Ue,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Ue,this._startAnchor),this._toggleAnchorTabIndex(Ue,this._endAnchor))}destroy(){const Ue=this._startAnchor,be=this._endAnchor;Ue&&(Ue.removeEventListener("focus",this.startAnchorListener),Ue.remove()),be&&(be.removeEventListener("focus",this.endAnchorListener),be.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(Ue){return new Promise(be=>{this._executeOnStable(()=>be(this.focusInitialElement(Ue)))})}focusFirstTabbableElementWhenReady(Ue){return new Promise(be=>{this._executeOnStable(()=>be(this.focusFirstTabbableElement(Ue)))})}focusLastTabbableElementWhenReady(Ue){return new Promise(be=>{this._executeOnStable(()=>be(this.focusLastTabbableElement(Ue)))})}_getRegionBoundary(Ue){const be=this._element.querySelectorAll(`[cdk-focus-region-${Ue}], [cdkFocusRegion${Ue}], [cdk-focus-${Ue}]`);return"start"==Ue?be.length?be[0]:this._getFirstTabbableElement(this._element):be.length?be[be.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(Ue){const be=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(be){if(!this._checker.isFocusable(be)){const at=this._getFirstTabbableElement(be);return at?.focus(Ue),!!at}return be.focus(Ue),!0}return this.focusFirstTabbableElement(Ue)}focusFirstTabbableElement(Ue){const be=this._getRegionBoundary("start");return be&&be.focus(Ue),!!be}focusLastTabbableElement(Ue){const be=this._getRegionBoundary("end");return be&&be.focus(Ue),!!be}hasAttached(){return this._hasAttached}_getFirstTabbableElement(Ue){if(this._checker.isFocusable(Ue)&&this._checker.isTabbable(Ue))return Ue;const be=Ue.children;for(let at=0;at<be.length;at++){const At=be[at].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(be[at]):null;if(At)return At}return null}_getLastTabbableElement(Ue){if(this._checker.isFocusable(Ue)&&this._checker.isTabbable(Ue))return Ue;const be=Ue.children;for(let at=be.length-1;at>=0;at--){const At=be[at].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(be[at]):null;if(At)return At}return null}_createAnchor(){const Ue=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Ue),Ue.classList.add("cdk-visually-hidden"),Ue.classList.add("cdk-focus-trap-anchor"),Ue.setAttribute("aria-hidden","true"),Ue}_toggleAnchorTabIndex(Ue,be){Ue?be.setAttribute("tabindex","0"):be.removeAttribute("tabindex")}toggleAnchors(Ue){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Ue,this._startAnchor),this._toggleAnchorTabIndex(Ue,this._endAnchor))}_executeOnStable(Ue){this._ngZone.isStable?Ue():this._ngZone.onStable.pipe((0,W.q)(1)).subscribe(Ue)}}let nn=(()=>{class Oe{constructor(be,at,At){this._checker=be,this._ngZone=at,this._document=At}create(be,at=!1){return new sn(be,this._checker,this._ngZone,this._document,at)}}return Oe.\u0275fac=function(be){return new(be||Oe)(c.LFG($t),c.LFG(c.R0b),c.LFG(s.K0))},Oe.\u0275prov=c.Yz7({token:Oe,factory:Oe.\u0275fac,providedIn:"root"}),Oe})(),Pt=(()=>{class Oe{constructor(be,at,At){this._elementRef=be,this._focusTrapFactory=at,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(be){this.focusTrap.enabled=(0,U.Ig)(be)}get autoCapture(){return this._autoCapture}set autoCapture(be){this._autoCapture=(0,U.Ig)(be)}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(be){const at=be.autoCapture;at&&!at.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,A.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return Oe.\u0275fac=function(be){return new(be||Oe)(c.Y36(c.SBq),c.Y36(nn),c.Y36(s.K0))},Oe.\u0275dir=c.lG2({type:Oe,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[c.TTD]}),Oe})();function Dt(Oe){return 0===Oe.buttons||0===Oe.offsetX&&0===Oe.offsetY}function pe(Oe){const Ue=Oe.touches&&Oe.touches[0]||Oe.changedTouches&&Oe.changedTouches[0];return!(!Ue||-1!==Ue.identifier||null!=Ue.radiusX&&1!==Ue.radiusX||null!=Ue.radiusY&&1!==Ue.radiusY)}const Pe=new c.OlP("cdk-input-modality-detector-options"),ot={ignoreKeys:[b.zL,b.jx,b.b2,b.MW,b.JU]},Be=(0,A.i$)({passive:!0,capture:!0});let Ie=(()=>{class Oe{constructor(be,at,At,Yt){this._platform=be,this._mostRecentTarget=null,this._modality=new te.X(null),this._lastTouchMs=0,this._onKeydown=En=>{this._options?.ignoreKeys?.some(Ln=>Ln===En.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,A.sA)(En))},this._onMousedown=En=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Dt(En)?"keyboard":"mouse"),this._mostRecentTarget=(0,A.sA)(En))},this._onTouchstart=En=>{pe(En)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,A.sA)(En))},this._options={...ot,...Yt},this.modalityDetected=this._modality.pipe((0,P.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,B.x)()),be.isBrowser&&at.runOutsideAngular(()=>{At.addEventListener("keydown",this._onKeydown,Be),At.addEventListener("mousedown",this._onMousedown,Be),At.addEventListener("touchstart",this._onTouchstart,Be)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Be),document.removeEventListener("mousedown",this._onMousedown,Be),document.removeEventListener("touchstart",this._onTouchstart,Be))}}return Oe.\u0275fac=function(be){return new(be||Oe)(c.LFG(A.t4),c.LFG(c.R0b),c.LFG(s.K0),c.LFG(Pe,8))},Oe.\u0275prov=c.Yz7({token:Oe,factory:Oe.\u0275fac,providedIn:"root"}),Oe})();const Le=new c.OlP("liveAnnouncerElement",{providedIn:"root",factory:function mt(){return null}}),Ct=new c.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Me=(()=>{class Oe{constructor(be,at,At,Yt){this._ngZone=at,this._defaultOptions=Yt,this._document=At,this._liveElement=be||this._createLiveElement()}announce(be,...at){const At=this._defaultOptions;let Yt,En;return 1===at.length&&"number"==typeof at[0]?En=at[0]:[Yt,En]=at,this.clear(),clearTimeout(this._previousTimeout),Yt||(Yt=At&&At.politeness?At.politeness:"polite"),null==En&&At&&(En=At.duration),this._liveElement.setAttribute("aria-live",Yt),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(Ln=>this._currentResolve=Ln)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=be,"number"==typeof En&&(this._previousTimeout=setTimeout(()=>this.clear(),En)),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 be="cdk-live-announcer-element",at=this._document.getElementsByClassName(be),At=this._document.createElement("div");for(let Yt=0;Yt<at.length;Yt++)at[Yt].remove();return At.classList.add(be),At.classList.add("cdk-visually-hidden"),At.setAttribute("aria-atomic","true"),At.setAttribute("aria-live","polite"),this._document.body.appendChild(At),At}}return Oe.\u0275fac=function(be){return new(be||Oe)(c.LFG(Le,8),c.LFG(c.R0b),c.LFG(s.K0),c.LFG(Ct,8))},Oe.\u0275prov=c.Yz7({token:Oe,factory:Oe.\u0275fac,providedIn:"root"}),Oe})();const xe=new c.OlP("cdk-focus-monitor-default-options"),Re=(0,A.i$)({passive:!0,capture:!0});let bt=(()=>{class Oe{constructor(be,at,At,Yt,En){this._ngZone=be,this._platform=at,this._inputModalityDetector=At,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 w.x,this._rootNodeFocusAndBlurListener=Ln=>{for(let On=(0,A.sA)(Ln);On;On=On.parentElement)"focus"===Ln.type?this._onFocus(Ln,On):this._onBlur(Ln,On)},this._document=Yt,this._detectionMode=En?.detectionMode||0}monitor(be,at=!1){const At=(0,U.fI)(be);if(!this._platform.isBrowser||1!==At.nodeType)return(0,I.of)(null);const Yt=(0,A.kV)(At)||this._getDocument(),En=this._elementInfo.get(At);if(En)return at&&(En.checkChildren=!0),En.subject;const Ln={checkChildren:at,subject:new w.x,rootNode:Yt};return this._elementInfo.set(At,Ln),this._registerGlobalListeners(Ln),Ln.subject}stopMonitoring(be){const at=(0,U.fI)(be),At=this._elementInfo.get(at);At&&(At.subject.complete(),this._setClasses(at),this._elementInfo.delete(at),this._removeGlobalListeners(At))}focusVia(be,at,At){const Yt=(0,U.fI)(be);Yt===this._getDocument().activeElement?this._getClosestElementsInfo(Yt).forEach(([Ln,Hr])=>this._originChanged(Ln,at,Hr)):(this._setOrigin(at),"function"==typeof Yt.focus&&Yt.focus(At))}ngOnDestroy(){this._elementInfo.forEach((be,at)=>this.stopMonitoring(at))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(be){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(be)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:be&&this._isLastInteractionFromInputLabel(be)?"mouse":"program"}_shouldBeAttributedToTouch(be){return 1===this._detectionMode||!!be?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(be,at){be.classList.toggle("cdk-focused",!!at),be.classList.toggle("cdk-touch-focused","touch"===at),be.classList.toggle("cdk-keyboard-focused","keyboard"===at),be.classList.toggle("cdk-mouse-focused","mouse"===at),be.classList.toggle("cdk-program-focused","program"===at)}_setOrigin(be,at=!1){this._ngZone.runOutsideAngular(()=>{this._origin=be,this._originFromTouchInteraction="touch"===be&&at,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(be,at){const At=this._elementInfo.get(at),Yt=(0,A.sA)(be);!At||!At.checkChildren&&at!==Yt||this._originChanged(at,this._getFocusOrigin(Yt),At)}_onBlur(be,at){const At=this._elementInfo.get(at);!At||At.checkChildren&&be.relatedTarget instanceof Node&&at.contains(be.relatedTarget)||(this._setClasses(at),this._emitOrigin(At,null))}_emitOrigin(be,at){be.subject.observers.length&&this._ngZone.run(()=>be.subject.next(at))}_registerGlobalListeners(be){if(!this._platform.isBrowser)return;const at=be.rootNode,At=this._rootNodeFocusListenerCount.get(at)||0;At||this._ngZone.runOutsideAngular(()=>{at.addEventListener("focus",this._rootNodeFocusAndBlurListener,Re),at.addEventListener("blur",this._rootNodeFocusAndBlurListener,Re)}),this._rootNodeFocusListenerCount.set(at,At+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,G.R)(this._stopInputModalityDetector)).subscribe(Yt=>{this._setOrigin(Yt,!0)}))}_removeGlobalListeners(be){const at=be.rootNode;if(this._rootNodeFocusListenerCount.has(at)){const At=this._rootNodeFocusListenerCount.get(at);At>1?this._rootNodeFocusListenerCount.set(at,At-1):(at.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Re),at.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Re),this._rootNodeFocusListenerCount.delete(at))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(be,at,At){this._setClasses(be,at),this._emitOrigin(At,at),this._lastFocusOrigin=at}_getClosestElementsInfo(be){const at=[];return this._elementInfo.forEach((At,Yt)=>{(Yt===be||At.checkChildren&&Yt.contains(be))&&at.push([Yt,At])}),at}_isLastInteractionFromInputLabel(be){const{_mostRecentTarget:at,mostRecentModality:At}=this._inputModalityDetector;if("mouse"!==At||!at||at===be||"INPUT"!==be.nodeName&&"TEXTAREA"!==be.nodeName||be.disabled)return!1;const Yt=be.labels;if(Yt)for(let En=0;En<Yt.length;En++)if(Yt[En].contains(at))return!0;return!1}}return Oe.\u0275fac=function(be){return new(be||Oe)(c.LFG(c.R0b),c.LFG(A.t4),c.LFG(Ie),c.LFG(s.K0,8),c.LFG(xe,8))},Oe.\u0275prov=c.Yz7({token:Oe,factory:Oe.\u0275fac,providedIn:"root"}),Oe})(),Mt=(()=>{class Oe{constructor(be,at){this._elementRef=be,this._focusMonitor=at,this._focusOrigin=null,this.cdkFocusChange=new c.vpe}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const be=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(be,1===be.nodeType&&be.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(at=>{this._focusOrigin=at,this.cdkFocusChange.emit(at)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return Oe.\u0275fac=function(be){return new(be||Oe)(c.Y36(c.SBq),c.Y36(bt))},Oe.\u0275dir=c.lG2({type:Oe,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),Oe})();const un="cdk-high-contrast-black-on-white",an="cdk-high-contrast-white-on-black",dt="cdk-high-contrast-active";let ze=(()=>{class Oe{constructor(be,at){this._platform=be,this._document=at,this._breakpointSubscription=(0,c.f3M)(ue.Yg).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const be=this._document.createElement("div");be.style.backgroundColor="rgb(1,2,3)",be.style.position="absolute",this._document.body.appendChild(be);const at=this._document.defaultView||window,At=at&&at.getComputedStyle?at.getComputedStyle(be):null,Yt=(At&&At.backgroundColor||"").replace(/ /g,"");switch(be.remove(),Yt){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const be=this._document.body.classList;be.remove(dt,un,an),this._hasCheckedHighContrastMode=!0;const at=this.getHighContrastMode();1===at?be.add(dt,un):2===at&&be.add(dt,an)}}}return Oe.\u0275fac=function(be){return new(be||Oe)(c.LFG(A.t4),c.LFG(s.K0))},Oe.\u0275prov=c.Yz7({token:Oe,factory:Oe.\u0275fac,providedIn:"root"}),Oe})(),Ge=(()=>{class Oe{constructor(be){be._applyBodyHighContrastModeCssClasses()}}return Oe.\u0275fac=function(be){return new(be||Oe)(c.LFG(ze))},Oe.\u0275mod=c.oAB({type:Oe}),Oe.\u0275inj=c.cJS({imports:[Z.Q8]}),Oe})()},40445:(ut,fe,d)=>{"use strict";d.d(fe,{Is:()=>I,vT:()=>p});var s=d(94650),c=d(36895);const A=new s.OlP("cdk-dir-doc",{providedIn:"root",factory:function w(){return(0,s.f3M)(c.K0)}}),N=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let I=(()=>{class _{constructor(T){if(this.value="ltr",this.change=new s.vpe,T){const P=T.documentElement?T.documentElement.dir:null;this.value=function te(_){const v=_?.toLowerCase()||"";return"auto"===v&&typeof navigator<"u"&&navigator?.language?N.test(navigator.language)?"rtl":"ltr":"rtl"===v?"rtl":"ltr"}((T.body?T.body.dir:null)||P||"ltr")}}ngOnDestroy(){this.change.complete()}}return _.\u0275fac=function(T){return new(T||_)(s.LFG(A,8))},_.\u0275prov=s.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_})(),p=(()=>{class _{}return _.\u0275fac=function(T){return new(T||_)},_.\u0275mod=s.oAB({type:_}),_.\u0275inj=s.cJS({}),_})()},21281:(ut,fe,d)=>{"use strict";d.d(fe,{Eq:()=>N,HM:()=>te,Ig:()=>c,du:()=>b,fI:()=>I,su:()=>A});var s=d(94650);function c(p){return null!=p&&"false"!=`${p}`}function A(p,_=0){return function w(p){return!isNaN(parseFloat(p))&&!isNaN(Number(p))}(p)?Number(p):_}function N(p){return Array.isArray(p)?p:[p]}function te(p){return null==p?"":"string"==typeof p?p:`${p}px`}function I(p){return p instanceof s.SBq?p.nativeElement:p}function b(p,_=/\s+/){const v=[];if(null!=p){const T=Array.isArray(p)?p:`${p}`.split(_);for(const W of T){const P=`${W}`.trim();P&&v.push(P)}}return v}},97855:(ut,fe,d)=>{"use strict";d.d(fe,{LL:()=>G,Su:()=>k,Vq:()=>X,ib:()=>P});var s=d(12687),c=d(98184),A=d(83353),w=d(84080),N=d(36895),te=d(94650),I=d(29521),b=d(77579),p=d(49770),_=d(39646),v=d(40445),T=d(68675);function W($,J){}class P{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 G=(()=>{class $ extends w.en{constructor(L,le,ce,Se,Qe,ct,$t,$e){super(),this._elementRef=L,this._focusTrapFactory=le,this._config=Se,this._interactivityChecker=Qe,this._ngZone=ct,this._overlayRef=$t,this._focusMonitor=$e,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=Et=>{this._portalOutlet.hasAttached();const ke=this._portalOutlet.attachDomPortal(Et);return this._contentAttached(),ke},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=ce}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(L){this._portalOutlet.hasAttached();const le=this._portalOutlet.attachComponentPortal(L);return this._contentAttached(),le}attachTemplatePortal(L){this._portalOutlet.hasAttached();const le=this._portalOutlet.attachTemplatePortal(L);return this._contentAttached(),le}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(L,le){this._interactivityChecker.isFocusable(L)||(L.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const ce=()=>{L.removeEventListener("blur",ce),L.removeEventListener("mousedown",ce),L.removeAttribute("tabindex")};L.addEventListener("blur",ce),L.addEventListener("mousedown",ce)})),L.focus(le)}_focusByCssSelector(L,le){let ce=this._elementRef.nativeElement.querySelector(L);ce&&this._forceFocus(ce,le)}_trapFocus(){const L=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||L.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(le=>{le||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 L=this._config.restoreFocus;let le=null;if("string"==typeof L?le=this._document.querySelector(L):"boolean"==typeof L?le=L?this._elementFocusedBeforeDialogWasOpened:null:L&&(le=L),this._config.restoreFocus&&le&&"function"==typeof le.focus){const ce=(0,A.ht)(),Se=this._elementRef.nativeElement;(!ce||ce===this._document.body||ce===Se||Se.contains(ce))&&(this._focusMonitor?(this._focusMonitor.focusVia(le,this._closeInteractionType),this._closeInteractionType=null):le.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const L=this._elementRef.nativeElement,le=(0,A.ht)();return L===le||L.contains(le)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,A.ht)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return $.\u0275fac=function(L){return new(L||$)(te.Y36(te.SBq),te.Y36(s.qV),te.Y36(N.K0,8),te.Y36(P),te.Y36(s.ic),te.Y36(te.R0b),te.Y36(c.Iu),te.Y36(s.tE))},$.\u0275cmp=te.Xpm({type:$,selectors:[["cdk-dialog-container"]],viewQuery:function(L,le){if(1&L&&te.Gf(w.Pl,7),2&L){let ce;te.iGM(ce=te.CRH())&&(le._portalOutlet=ce.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(L,le){2&L&&te.uIk("id",le._config.id||null)("role",le._config.role)("aria-modal",le._config.ariaModal)("aria-labelledby",le._config.ariaLabel?null:le._ariaLabelledBy)("aria-label",le._config.ariaLabel)("aria-describedby",le._config.ariaDescribedBy||null)},features:[te.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(L,le){1&L&&te.YNc(0,W,0,0,"ng-template",0)},dependencies:[w.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),$})();class U{constructor(J,L){this.overlayRef=J,this.config=L,this.closed=new b.x,this.disableClose=L.disableClose,this.backdropClick=J.backdropClick(),this.keydownEvents=J.keydownEvents(),this.outsidePointerEvents=J.outsidePointerEvents(),this.id=L.id,this.keydownEvents.subscribe(le=>{le.keyCode===I.hY&&!this.disableClose&&!(0,I.Vb)(le)&&(le.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(J,L){if(this.containerInstance){const le=this.closed;this.containerInstance._closeInteractionType=L?.focusOrigin||"program",this.overlayRef.dispose(),le.next(J),le.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(J="",L=""){return this.overlayRef.updateSize({width:J,height:L}),this}addPanelClass(J){return this.overlayRef.addPanelClass(J),this}removePanelClass(J){return this.overlayRef.removePanelClass(J),this}}const Z=new te.OlP("DialogScrollStrategy"),ue=new te.OlP("DialogData"),F=new te.OlP("DefaultDialogConfig"),ee={provide:Z,deps:[c.aV],useFactory:function Y($){return()=>$.scrollStrategies.block()}};let oe=0,X=(()=>{class ${constructor(L,le,ce,Se,Qe,ct){this._overlay=L,this._injector=le,this._defaultOptions=ce,this._parentDialog=Se,this._overlayContainer=Qe,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new b.x,this._afterOpenedAtThisLevel=new b.x,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,p.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,T.O)(void 0))),this._scrollStrategy=ct}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(L,le){(le={...this._defaultOptions||new P,...le}).id=le.id||"cdk-dialog-"+oe++,le.id&&this.getDialogById(le.id);const Se=this._getOverlayConfig(le),Qe=this._overlay.create(Se),ct=new U(Qe,le),$t=this._attachContainer(Qe,ct,le);return ct.containerInstance=$t,this._attachDialogContent(L,ct,$t,le),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(ct),ct.closed.subscribe(()=>this._removeOpenDialog(ct,!0)),this.afterOpened.next(ct),ct}closeAll(){y(this.openDialogs,L=>L.close())}getDialogById(L){return this.openDialogs.find(le=>le.id===L)}ngOnDestroy(){y(this._openDialogsAtThisLevel,L=>{!1===L.config.closeOnDestroy&&this._removeOpenDialog(L,!1)}),y(this._openDialogsAtThisLevel,L=>L.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(L){const le=new c.X_({positionStrategy:L.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:L.scrollStrategy||this._scrollStrategy(),panelClass:L.panelClass,hasBackdrop:L.hasBackdrop,direction:L.direction,minWidth:L.minWidth,minHeight:L.minHeight,maxWidth:L.maxWidth,maxHeight:L.maxHeight,width:L.width,height:L.height,disposeOnNavigation:L.closeOnNavigation});return L.backdropClass&&(le.backdropClass=L.backdropClass),le}_attachContainer(L,le,ce){const Se=ce.injector||ce.viewContainerRef?.injector,Qe=[{provide:P,useValue:ce},{provide:U,useValue:le},{provide:c.Iu,useValue:L}];let ct;ce.container?"function"==typeof ce.container?ct=ce.container:(ct=ce.container.type,Qe.push(...ce.container.providers(ce))):ct=G;const $t=new w.C5(ct,ce.viewContainerRef,te.zs3.create({parent:Se||this._injector,providers:Qe}),ce.componentFactoryResolver);return L.attach($t).instance}_attachDialogContent(L,le,ce,Se){if(L instanceof te.Rgc){const Qe=this._createInjector(Se,le,ce,void 0);let ct={$implicit:Se.data,dialogRef:le};Se.templateContext&&(ct={...ct,..."function"==typeof Se.templateContext?Se.templateContext():Se.templateContext}),ce.attachTemplatePortal(new w.UE(L,null,ct,Qe))}else{const Qe=this._createInjector(Se,le,ce,this._injector),ct=ce.attachComponentPortal(new w.C5(L,Se.viewContainerRef,Qe,Se.componentFactoryResolver));le.componentInstance=ct.instance}}_createInjector(L,le,ce,Se){const Qe=L.injector||L.viewContainerRef?.injector,ct=[{provide:ue,useValue:L.data},{provide:U,useValue:le}];return L.providers&&("function"==typeof L.providers?ct.push(...L.providers(le,L,ce)):ct.push(...L.providers)),L.direction&&(!Qe||!Qe.get(v.Is,null,te.XFs.Optional))&&ct.push({provide:v.Is,useValue:{value:L.direction,change:(0,_.of)()}}),te.zs3.create({parent:Qe||Se,providers:ct})}_removeOpenDialog(L,le){const ce=this.openDialogs.indexOf(L);ce>-1&&(this.openDialogs.splice(ce,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((Se,Qe)=>{Se?Qe.setAttribute("aria-hidden",Se):Qe.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),le&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const L=this._overlayContainer.getContainerElement();if(L.parentElement){const le=L.parentElement.children;for(let ce=le.length-1;ce>-1;ce--){const Se=le[ce];Se!==L&&"SCRIPT"!==Se.nodeName&&"STYLE"!==Se.nodeName&&!Se.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(Se,Se.getAttribute("aria-hidden")),Se.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const L=this._parentDialog;return L?L._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return $.\u0275fac=function(L){return new(L||$)(te.LFG(c.aV),te.LFG(te.zs3),te.LFG(F,8),te.LFG($,12),te.LFG(c.Xj),te.LFG(Z))},$.\u0275prov=te.Yz7({token:$,factory:$.\u0275fac}),$})();function y($,J){let L=$.length;for(;L--;)J($[L])}let k=(()=>{class ${}return $.\u0275fac=function(L){return new(L||$)},$.\u0275mod=te.oAB({type:$}),$.\u0275inj=te.cJS({providers:[X,ee],imports:[c.U8,w.eL,s.rt,w.eL]}),$})()},29521:(ut,fe,d)=>{"use strict";d.d(fe,{A:()=>je,JH:()=>F,JU:()=>te,K5:()=>N,Ku:()=>W,LH:()=>Z,L_:()=>T,MW:()=>Ct,Mf:()=>A,SV:()=>ue,Sd:()=>G,VM:()=>P,Vb:()=>bn,Z:()=>mt,ZH:()=>c,aO:()=>ct,b2:()=>ur,hY:()=>v,jx:()=>I,oh:()=>U,uR:()=>B,xE:()=>y,yY:()=>X,zL:()=>b});const c=8,A=9,N=13,te=16,I=17,b=18,v=27,T=32,W=33,P=34,B=35,G=36,U=37,Z=38,ue=39,F=40,X=46,y=48,ct=57,je=65,mt=90,Ct=91,ur=224;function bn(ir,...li){return li.length?li.some(Sr=>ir[Sr]):ir.altKey||ir.shiftKey||ir.ctrlKey||ir.metaKey}},62289:(ut,fe,d)=>{"use strict";d.d(fe,{Yg:()=>F,u3:()=>ee,xu:()=>P});var s=d(94650),c=d(21281),A=d(77579),w=d(39841),N=d(97272),te=d(69751),I=d(95698),b=d(35684),p=d(78372),_=d(54004),v=d(68675),T=d(82722),W=d(83353);let P=(()=>{class oe{}return oe.\u0275fac=function(y){return new(y||oe)},oe.\u0275mod=s.oAB({type:oe}),oe.\u0275inj=s.cJS({}),oe})();const B=new Set;let G,U=(()=>{class oe{constructor(y){this._platform=y,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):ue}matchMedia(y){return(this._platform.WEBKIT||this._platform.BLINK)&&function Z(oe){if(!B.has(oe))try{G||(G=document.createElement("style"),G.setAttribute("type","text/css"),document.head.appendChild(G)),G.sheet&&(G.sheet.insertRule(`@media ${oe} {body{ }}`,0),B.add(oe))}catch(X){console.error(X)}}(y),this._matchMedia(y)}}return oe.\u0275fac=function(y){return new(y||oe)(s.LFG(W.t4))},oe.\u0275prov=s.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})();function ue(oe){return{matches:"all"===oe||""===oe,media:oe,addListener:()=>{},removeListener:()=>{}}}let F=(()=>{class oe{constructor(y,k){this._mediaMatcher=y,this._zone=k,this._queries=new Map,this._destroySubject=new A.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(y){return Y((0,c.Eq)(y)).some($=>this._registerQuery($).mql.matches)}observe(y){const $=Y((0,c.Eq)(y)).map(L=>this._registerQuery(L).observable);let J=(0,w.a)($);return J=(0,N.z)(J.pipe((0,I.q)(1)),J.pipe((0,b.T)(1),(0,p.b)(0))),J.pipe((0,_.U)(L=>{const le={matches:!1,breakpoints:{}};return L.forEach(({matches:ce,query:Se})=>{le.matches=le.matches||ce,le.breakpoints[Se]=ce}),le}))}_registerQuery(y){if(this._queries.has(y))return this._queries.get(y);const k=this._mediaMatcher.matchMedia(y),J={observable:new te.y(L=>{const le=ce=>this._zone.run(()=>L.next(ce));return k.addListener(le),()=>{k.removeListener(le)}}).pipe((0,v.O)(k),(0,_.U)(({matches:L})=>({query:y,matches:L})),(0,T.R)(this._destroySubject)),mql:k};return this._queries.set(y,J),J}}return oe.\u0275fac=function(y){return new(y||oe)(s.LFG(U),s.LFG(s.R0b))},oe.\u0275prov=s.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})();function Y(oe){return oe.map(X=>X.split(",")).reduce((X,y)=>X.concat(y)).map(X=>X.trim())}const ee={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:(ut,fe,d)=>{"use strict";d.d(fe,{Q8:()=>p,wD:()=>b});var s=d(21281),c=d(94650),A=d(69751),w=d(77579),N=d(78372);let te=(()=>{class _{create(T){return typeof MutationObserver>"u"?null:new MutationObserver(T)}}return _.\u0275fac=function(T){return new(T||_)},_.\u0275prov=c.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_})(),I=(()=>{class _{constructor(T){this._mutationObserverFactory=T,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((T,W)=>this._cleanupObserver(W))}observe(T){const W=(0,s.fI)(T);return new A.y(P=>{const G=this._observeElement(W).subscribe(P);return()=>{G.unsubscribe(),this._unobserveElement(W)}})}_observeElement(T){if(this._observedElements.has(T))this._observedElements.get(T).count++;else{const W=new w.x,P=this._mutationObserverFactory.create(B=>W.next(B));P&&P.observe(T,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(T,{observer:P,stream:W,count:1})}return this._observedElements.get(T).stream}_unobserveElement(T){this._observedElements.has(T)&&(this._observedElements.get(T).count--,this._observedElements.get(T).count||this._cleanupObserver(T))}_cleanupObserver(T){if(this._observedElements.has(T)){const{observer:W,stream:P}=this._observedElements.get(T);W&&W.disconnect(),P.complete(),this._observedElements.delete(T)}}}return _.\u0275fac=function(T){return new(T||_)(c.LFG(te))},_.\u0275prov=c.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_})(),b=(()=>{class _{constructor(T,W,P){this._contentObserver=T,this._elementRef=W,this._ngZone=P,this.event=new c.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(T){this._disabled=(0,s.Ig)(T),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(T){this._debounce=(0,s.su)(T),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const T=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?T.pipe((0,N.b)(this.debounce)):T).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return _.\u0275fac=function(T){return new(T||_)(c.Y36(I),c.Y36(c.SBq),c.Y36(c.R0b))},_.\u0275dir=c.lG2({type:_,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),_})(),p=(()=>{class _{}return _.\u0275fac=function(T){return new(T||_)},_.\u0275mod=c.oAB({type:_}),_.\u0275inj=c.cJS({providers:[te]}),_})()},98184:(ut,fe,d)=>{"use strict";d.d(fe,{Iu:()=>ct,U8:()=>Tt,X_:()=>X,Xj:()=>Qe,_G:()=>Et,aV:()=>Vt,pI:()=>wt,xu:()=>Pt});var s=d(45589),c=d(36895),A=d(94650),w=d(21281),N=d(83353),te=d(40445),I=d(84080),b=d(77579),p=d(50727),_=d(56451),v=d(95698),T=d(82722),W=d(22529),P=d(29521);const B=(0,N.Mq)();class G{constructor(pe,Pe){this._viewportRuler=pe,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=Pe}attach(){}enable(){if(this._canBeEnabled()){const pe=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=pe.style.left||"",this._previousHTMLStyles.top=pe.style.top||"",pe.style.left=(0,w.HM)(-this._previousScrollPosition.left),pe.style.top=(0,w.HM)(-this._previousScrollPosition.top),pe.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const pe=this._document.documentElement,ot=pe.style,vt=this._document.body.style,Be=ot.scrollBehavior||"",Ie=vt.scrollBehavior||"";this._isEnabled=!1,ot.left=this._previousHTMLStyles.left,ot.top=this._previousHTMLStyles.top,pe.classList.remove("cdk-global-scrollblock"),B&&(ot.scrollBehavior=vt.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),B&&(ot.scrollBehavior=Be,vt.scrollBehavior=Ie)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const Pe=this._document.body,ot=this._viewportRuler.getViewportSize();return Pe.scrollHeight>ot.height||Pe.scrollWidth>ot.width}}class Z{constructor(pe,Pe,ot,vt){this._scrollDispatcher=pe,this._ngZone=Pe,this._viewportRuler=ot,this._config=vt,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(pe){this._overlayRef=pe}enable(){if(this._scrollSubscription)return;const pe=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=pe.subscribe(()=>{const Pe=this._viewportRuler.getViewportScrollPosition().top;Math.abs(Pe-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=pe.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class ue{enable(){}disable(){}attach(){}}function F(Dt,pe){return pe.some(Pe=>Dt.bottom<Pe.top||Dt.top>Pe.bottom||Dt.right<Pe.left||Dt.left>Pe.right)}function Y(Dt,pe){return pe.some(Pe=>Dt.top<Pe.top||Dt.bottom>Pe.bottom||Dt.left<Pe.left||Dt.right>Pe.right)}class ee{constructor(pe,Pe,ot,vt){this._scrollDispatcher=pe,this._viewportRuler=Pe,this._ngZone=ot,this._config=vt,this._scrollSubscription=null}attach(pe){this._overlayRef=pe}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 Pe=this._overlayRef.overlayElement.getBoundingClientRect(),{width:ot,height:vt}=this._viewportRuler.getViewportSize();F(Pe,[{width:ot,height:vt,bottom:vt,right:ot,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 oe=(()=>{class Dt{constructor(Pe,ot,vt,Be){this._scrollDispatcher=Pe,this._viewportRuler=ot,this._ngZone=vt,this.noop=()=>new ue,this.close=Ie=>new Z(this._scrollDispatcher,this._ngZone,this._viewportRuler,Ie),this.block=()=>new G(this._viewportRuler,this._document),this.reposition=Ie=>new ee(this._scrollDispatcher,this._viewportRuler,this._ngZone,Ie),this._document=Be}}return Dt.\u0275fac=function(Pe){return new(Pe||Dt)(A.LFG(s.mF),A.LFG(s.rL),A.LFG(A.R0b),A.LFG(c.K0))},Dt.\u0275prov=A.Yz7({token:Dt,factory:Dt.\u0275fac,providedIn:"root"}),Dt})();class X{constructor(pe){if(this.scrollStrategy=new ue,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,pe){const Pe=Object.keys(pe);for(const ot of Pe)void 0!==pe[ot]&&(this[ot]=pe[ot])}}}class ${constructor(pe,Pe){this.connectionPair=pe,this.scrollableViewProperties=Pe}}let le=(()=>{class Dt{constructor(Pe){this._attachedOverlays=[],this._document=Pe}ngOnDestroy(){this.detach()}add(Pe){this.remove(Pe),this._attachedOverlays.push(Pe)}remove(Pe){const ot=this._attachedOverlays.indexOf(Pe);ot>-1&&this._attachedOverlays.splice(ot,1),0===this._attachedOverlays.length&&this.detach()}}return Dt.\u0275fac=function(Pe){return new(Pe||Dt)(A.LFG(c.K0))},Dt.\u0275prov=A.Yz7({token:Dt,factory:Dt.\u0275fac,providedIn:"root"}),Dt})(),ce=(()=>{class Dt extends le{constructor(Pe,ot){super(Pe),this._ngZone=ot,this._keydownListener=vt=>{const Be=this._attachedOverlays;for(let Ie=Be.length-1;Ie>-1;Ie--)if(Be[Ie]._keydownEvents.observers.length>0){const Le=Be[Ie]._keydownEvents;this._ngZone?this._ngZone.run(()=>Le.next(vt)):Le.next(vt);break}}}add(Pe){super.add(Pe),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 Dt.\u0275fac=function(Pe){return new(Pe||Dt)(A.LFG(c.K0),A.LFG(A.R0b,8))},Dt.\u0275prov=A.Yz7({token:Dt,factory:Dt.\u0275fac,providedIn:"root"}),Dt})(),Se=(()=>{class Dt extends le{constructor(Pe,ot,vt){super(Pe),this._platform=ot,this._ngZone=vt,this._cursorStyleIsSet=!1,this._pointerDownListener=Be=>{this._pointerDownEventTarget=(0,N.sA)(Be)},this._clickListener=Be=>{const Ie=(0,N.sA)(Be),Le="click"===Be.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:Ie;this._pointerDownEventTarget=null;const mt=this._attachedOverlays.slice();for(let Ct=mt.length-1;Ct>-1;Ct--){const Me=mt[Ct];if(Me._outsidePointerEvents.observers.length<1||!Me.hasAttached())continue;if(Me.overlayElement.contains(Ie)||Me.overlayElement.contains(Le))break;const qe=Me._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>qe.next(Be)):qe.next(Be)}}}add(Pe){if(super.add(Pe),!this._isAttached){const ot=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(ot)):this._addEventListeners(ot),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=ot.style.cursor,ot.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const Pe=this._document.body;Pe.removeEventListener("pointerdown",this._pointerDownListener,!0),Pe.removeEventListener("click",this._clickListener,!0),Pe.removeEventListener("auxclick",this._clickListener,!0),Pe.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(Pe.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(Pe){Pe.addEventListener("pointerdown",this._pointerDownListener,!0),Pe.addEventListener("click",this._clickListener,!0),Pe.addEventListener("auxclick",this._clickListener,!0),Pe.addEventListener("contextmenu",this._clickListener,!0)}}return Dt.\u0275fac=function(Pe){return new(Pe||Dt)(A.LFG(c.K0),A.LFG(N.t4),A.LFG(A.R0b,8))},Dt.\u0275prov=A.Yz7({token:Dt,factory:Dt.\u0275fac,providedIn:"root"}),Dt})(),Qe=(()=>{class Dt{constructor(Pe,ot){this._platform=ot,this._document=Pe}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const Pe="cdk-overlay-container";if(this._platform.isBrowser||(0,N.Oy)()){const vt=this._document.querySelectorAll(`.${Pe}[platform="server"], .${Pe}[platform="test"]`);for(let Be=0;Be<vt.length;Be++)vt[Be].remove()}const ot=this._document.createElement("div");ot.classList.add(Pe),(0,N.Oy)()?ot.setAttribute("platform","test"):this._platform.isBrowser||ot.setAttribute("platform","server"),this._document.body.appendChild(ot),this._containerElement=ot}}return Dt.\u0275fac=function(Pe){return new(Pe||Dt)(A.LFG(c.K0),A.LFG(N.t4))},Dt.\u0275prov=A.Yz7({token:Dt,factory:Dt.\u0275fac,providedIn:"root"}),Dt})();class ct{constructor(pe,Pe,ot,vt,Be,Ie,Le,mt,Ct,Me=!1){this._portalOutlet=pe,this._host=Pe,this._pane=ot,this._config=vt,this._ngZone=Be,this._keyboardDispatcher=Ie,this._document=Le,this._location=mt,this._outsideClickDispatcher=Ct,this._animationsDisabled=Me,this._backdropElement=null,this._backdropClick=new b.x,this._attachments=new b.x,this._detachments=new b.x,this._locationChanges=p.w0.EMPTY,this._backdropClickHandler=qe=>this._backdropClick.next(qe),this._backdropTransitionendHandler=qe=>{this._disposeBackdrop(qe.target)},this._keydownEvents=new b.x,this._outsidePointerEvents=new b.x,vt.scrollStrategy&&(this._scrollStrategy=vt.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=vt.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(pe){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const Pe=this._portalOutlet.attach(pe);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,v.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 Pe?.onDestroy&&Pe.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),Pe}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const pe=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),pe}dispose(){const pe=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,pe&&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(pe){pe!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=pe,this.hasAttached()&&(pe.attach(this),this.updatePosition()))}updateSize(pe){this._config={...this._config,...pe},this._updateElementSize()}setDirection(pe){this._config={...this._config,direction:pe},this._updateElementDirection()}addPanelClass(pe){this._pane&&this._toggleClasses(this._pane,pe,!0)}removePanelClass(pe){this._pane&&this._toggleClasses(this._pane,pe,!1)}getDirection(){const pe=this._config.direction;return pe?"string"==typeof pe?pe:pe.value:"ltr"}updateScrollStrategy(pe){pe!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=pe,this.hasAttached()&&(pe.attach(this),pe.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const pe=this._pane.style;pe.width=(0,w.HM)(this._config.width),pe.height=(0,w.HM)(this._config.height),pe.minWidth=(0,w.HM)(this._config.minWidth),pe.minHeight=(0,w.HM)(this._config.minHeight),pe.maxWidth=(0,w.HM)(this._config.maxWidth),pe.maxHeight=(0,w.HM)(this._config.maxHeight)}_togglePointerEvents(pe){this._pane.style.pointerEvents=pe?"":"none"}_attachBackdrop(){const pe="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(pe)})}):this._backdropElement.classList.add(pe)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const pe=this._backdropElement;if(pe){if(this._animationsDisabled)return void this._disposeBackdrop(pe);pe.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{pe.addEventListener("transitionend",this._backdropTransitionendHandler)}),pe.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(pe)},500))}}_toggleClasses(pe,Pe,ot){const vt=(0,w.Eq)(Pe||[]).filter(Be=>!!Be);vt.length&&(ot?pe.classList.add(...vt):pe.classList.remove(...vt))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const pe=this._ngZone.onStable.pipe((0,T.R)((0,_.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()),pe.unsubscribe())})})}_disposeScrollStrategy(){const pe=this._scrollStrategy;pe&&(pe.disable(),pe.detach&&pe.detach())}_disposeBackdrop(pe){pe&&(pe.removeEventListener("click",this._backdropClickHandler),pe.removeEventListener("transitionend",this._backdropTransitionendHandler),pe.remove(),this._backdropElement===pe&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const $t="cdk-overlay-connected-position-bounding-box",$e=/([A-Za-z%]+)$/;class Et{constructor(pe,Pe,ot,vt,Be){this._viewportRuler=Pe,this._document=ot,this._platform=vt,this._overlayContainer=Be,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 b.x,this._resizeSubscription=p.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(pe)}get positions(){return this._preferredPositions}attach(pe){this._validatePositions(),pe.hostElement.classList.add($t),this._overlayRef=pe,this._boundingBox=pe.hostElement,this._pane=pe.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 pe=this._originRect,Pe=this._overlayRect,ot=this._viewportRect,vt=this._containerRect,Be=[];let Ie;for(let Le of this._preferredPositions){let mt=this._getOriginPoint(pe,vt,Le),Ct=this._getOverlayPoint(mt,Pe,Le),Me=this._getOverlayFit(Ct,Pe,ot,Le);if(Me.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(Le,mt);this._canFitWithFlexibleDimensions(Me,Ct,ot)?Be.push({position:Le,origin:mt,overlayRect:Pe,boundingBoxRect:this._calculateBoundingBoxRect(mt,Le)}):(!Ie||Ie.overlayFit.visibleArea<Me.visibleArea)&&(Ie={overlayFit:Me,overlayPoint:Ct,originPoint:mt,position:Le,overlayRect:Pe})}if(Be.length){let Le=null,mt=-1;for(const Ct of Be){const Me=Ct.boundingBoxRect.width*Ct.boundingBoxRect.height*(Ct.position.weight||1);Me>mt&&(mt=Me,Le=Ct)}return this._isPushed=!1,void this._applyPosition(Le.position,Le.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(Ie.position,Ie.originPoint);this._applyPosition(Ie.position,Ie.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&ke(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove($t),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const pe=this._lastPosition;if(pe){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const Pe=this._getOriginPoint(this._originRect,this._containerRect,pe);this._applyPosition(pe,Pe)}else this.apply()}withScrollableContainers(pe){return this._scrollables=pe,this}withPositions(pe){return this._preferredPositions=pe,-1===pe.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(pe){return this._viewportMargin=pe,this}withFlexibleDimensions(pe=!0){return this._hasFlexibleDimensions=pe,this}withGrowAfterOpen(pe=!0){return this._growAfterOpen=pe,this}withPush(pe=!0){return this._canPush=pe,this}withLockedPosition(pe=!0){return this._positionLocked=pe,this}setOrigin(pe){return this._origin=pe,this}withDefaultOffsetX(pe){return this._offsetX=pe,this}withDefaultOffsetY(pe){return this._offsetY=pe,this}withTransformOriginOn(pe){return this._transformOriginSelector=pe,this}_getOriginPoint(pe,Pe,ot){let vt,Be;if("center"==ot.originX)vt=pe.left+pe.width/2;else{const Ie=this._isRtl()?pe.right:pe.left,Le=this._isRtl()?pe.left:pe.right;vt="start"==ot.originX?Ie:Le}return Pe.left<0&&(vt-=Pe.left),Be="center"==ot.originY?pe.top+pe.height/2:"top"==ot.originY?pe.top:pe.bottom,Pe.top<0&&(Be-=Pe.top),{x:vt,y:Be}}_getOverlayPoint(pe,Pe,ot){let vt,Be;return vt="center"==ot.overlayX?-Pe.width/2:"start"===ot.overlayX?this._isRtl()?-Pe.width:0:this._isRtl()?0:-Pe.width,Be="center"==ot.overlayY?-Pe.height/2:"top"==ot.overlayY?0:-Pe.height,{x:pe.x+vt,y:pe.y+Be}}_getOverlayFit(pe,Pe,ot,vt){const Be=de(Pe);let{x:Ie,y:Le}=pe,mt=this._getOffset(vt,"x"),Ct=this._getOffset(vt,"y");mt&&(Ie+=mt),Ct&&(Le+=Ct);let xe=0-Le,Re=Le+Be.height-ot.height,bt=this._subtractOverflows(Be.width,0-Ie,Ie+Be.width-ot.width),Mt=this._subtractOverflows(Be.height,xe,Re),un=bt*Mt;return{visibleArea:un,isCompletelyWithinViewport:Be.width*Be.height===un,fitsInViewportVertically:Mt===Be.height,fitsInViewportHorizontally:bt==Be.width}}_canFitWithFlexibleDimensions(pe,Pe,ot){if(this._hasFlexibleDimensions){const vt=ot.bottom-Pe.y,Be=ot.right-Pe.x,Ie=je(this._overlayRef.getConfig().minHeight),Le=je(this._overlayRef.getConfig().minWidth),Ct=pe.fitsInViewportHorizontally||null!=Le&&Le<=Be;return(pe.fitsInViewportVertically||null!=Ie&&Ie<=vt)&&Ct}return!1}_pushOverlayOnScreen(pe,Pe,ot){if(this._previousPushAmount&&this._positionLocked)return{x:pe.x+this._previousPushAmount.x,y:pe.y+this._previousPushAmount.y};const vt=de(Pe),Be=this._viewportRect,Ie=Math.max(pe.x+vt.width-Be.width,0),Le=Math.max(pe.y+vt.height-Be.height,0),mt=Math.max(Be.top-ot.top-pe.y,0),Ct=Math.max(Be.left-ot.left-pe.x,0);let Me=0,qe=0;return Me=vt.width<=Be.width?Ct||-Ie:pe.x<this._viewportMargin?Be.left-ot.left-pe.x:0,qe=vt.height<=Be.height?mt||-Le:pe.y<this._viewportMargin?Be.top-ot.top-pe.y:0,this._previousPushAmount={x:Me,y:qe},{x:pe.x+Me,y:pe.y+qe}}_applyPosition(pe,Pe){if(this._setTransformOrigin(pe),this._setOverlayElementStyles(Pe,pe),this._setBoundingBoxStyles(Pe,pe),pe.panelClass&&this._addPanelClasses(pe.panelClass),this._lastPosition=pe,this._positionChanges.observers.length){const ot=this._getScrollVisibility(),vt=new $(pe,ot);this._positionChanges.next(vt)}this._isInitialRender=!1}_setTransformOrigin(pe){if(!this._transformOriginSelector)return;const Pe=this._boundingBox.querySelectorAll(this._transformOriginSelector);let ot,vt=pe.overlayY;ot="center"===pe.overlayX?"center":this._isRtl()?"start"===pe.overlayX?"right":"left":"start"===pe.overlayX?"left":"right";for(let Be=0;Be<Pe.length;Be++)Pe[Be].style.transformOrigin=`${ot} ${vt}`}_calculateBoundingBoxRect(pe,Pe){const ot=this._viewportRect,vt=this._isRtl();let Be,Ie,Le,Me,qe,xe;if("top"===Pe.overlayY)Ie=pe.y,Be=ot.height-Ie+this._viewportMargin;else if("bottom"===Pe.overlayY)Le=ot.height-pe.y+2*this._viewportMargin,Be=ot.height-Le+this._viewportMargin;else{const Re=Math.min(ot.bottom-pe.y+ot.top,pe.y),bt=this._lastBoundingBoxSize.height;Be=2*Re,Ie=pe.y-Re,Be>bt&&!this._isInitialRender&&!this._growAfterOpen&&(Ie=pe.y-bt/2)}if("end"===Pe.overlayX&&!vt||"start"===Pe.overlayX&&vt)xe=ot.width-pe.x+this._viewportMargin,Me=pe.x-this._viewportMargin;else if("start"===Pe.overlayX&&!vt||"end"===Pe.overlayX&&vt)qe=pe.x,Me=ot.right-pe.x;else{const Re=Math.min(ot.right-pe.x+ot.left,pe.x),bt=this._lastBoundingBoxSize.width;Me=2*Re,qe=pe.x-Re,Me>bt&&!this._isInitialRender&&!this._growAfterOpen&&(qe=pe.x-bt/2)}return{top:Ie,left:qe,bottom:Le,right:xe,width:Me,height:Be}}_setBoundingBoxStyles(pe,Pe){const ot=this._calculateBoundingBoxRect(pe,Pe);!this._isInitialRender&&!this._growAfterOpen&&(ot.height=Math.min(ot.height,this._lastBoundingBoxSize.height),ot.width=Math.min(ot.width,this._lastBoundingBoxSize.width));const vt={};if(this._hasExactPosition())vt.top=vt.left="0",vt.bottom=vt.right=vt.maxHeight=vt.maxWidth="",vt.width=vt.height="100%";else{const Be=this._overlayRef.getConfig().maxHeight,Ie=this._overlayRef.getConfig().maxWidth;vt.height=(0,w.HM)(ot.height),vt.top=(0,w.HM)(ot.top),vt.bottom=(0,w.HM)(ot.bottom),vt.width=(0,w.HM)(ot.width),vt.left=(0,w.HM)(ot.left),vt.right=(0,w.HM)(ot.right),vt.alignItems="center"===Pe.overlayX?"center":"end"===Pe.overlayX?"flex-end":"flex-start",vt.justifyContent="center"===Pe.overlayY?"center":"bottom"===Pe.overlayY?"flex-end":"flex-start",Be&&(vt.maxHeight=(0,w.HM)(Be)),Ie&&(vt.maxWidth=(0,w.HM)(Ie))}this._lastBoundingBoxSize=ot,ke(this._boundingBox.style,vt)}_resetBoundingBoxStyles(){ke(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ke(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(pe,Pe){const ot={},vt=this._hasExactPosition(),Be=this._hasFlexibleDimensions,Ie=this._overlayRef.getConfig();if(vt){const Me=this._viewportRuler.getViewportScrollPosition();ke(ot,this._getExactOverlayY(Pe,pe,Me)),ke(ot,this._getExactOverlayX(Pe,pe,Me))}else ot.position="static";let Le="",mt=this._getOffset(Pe,"x"),Ct=this._getOffset(Pe,"y");mt&&(Le+=`translateX(${mt}px) `),Ct&&(Le+=`translateY(${Ct}px)`),ot.transform=Le.trim(),Ie.maxHeight&&(vt?ot.maxHeight=(0,w.HM)(Ie.maxHeight):Be&&(ot.maxHeight="")),Ie.maxWidth&&(vt?ot.maxWidth=(0,w.HM)(Ie.maxWidth):Be&&(ot.maxWidth="")),ke(this._pane.style,ot)}_getExactOverlayY(pe,Pe,ot){let vt={top:"",bottom:""},Be=this._getOverlayPoint(Pe,this._overlayRect,pe);return this._isPushed&&(Be=this._pushOverlayOnScreen(Be,this._overlayRect,ot)),"bottom"===pe.overlayY?vt.bottom=this._document.documentElement.clientHeight-(Be.y+this._overlayRect.height)+"px":vt.top=(0,w.HM)(Be.y),vt}_getExactOverlayX(pe,Pe,ot){let Ie,vt={left:"",right:""},Be=this._getOverlayPoint(Pe,this._overlayRect,pe);return this._isPushed&&(Be=this._pushOverlayOnScreen(Be,this._overlayRect,ot)),Ie=this._isRtl()?"end"===pe.overlayX?"left":"right":"end"===pe.overlayX?"right":"left","right"===Ie?vt.right=this._document.documentElement.clientWidth-(Be.x+this._overlayRect.width)+"px":vt.left=(0,w.HM)(Be.x),vt}_getScrollVisibility(){const pe=this._getOriginRect(),Pe=this._pane.getBoundingClientRect(),ot=this._scrollables.map(vt=>vt.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Y(pe,ot),isOriginOutsideView:F(pe,ot),isOverlayClipped:Y(Pe,ot),isOverlayOutsideView:F(Pe,ot)}}_subtractOverflows(pe,...Pe){return Pe.reduce((ot,vt)=>ot-Math.max(vt,0),pe)}_getNarrowedViewportRect(){const pe=this._document.documentElement.clientWidth,Pe=this._document.documentElement.clientHeight,ot=this._viewportRuler.getViewportScrollPosition();return{top:ot.top+this._viewportMargin,left:ot.left+this._viewportMargin,right:ot.left+pe-this._viewportMargin,bottom:ot.top+Pe-this._viewportMargin,width:pe-2*this._viewportMargin,height:Pe-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(pe,Pe){return"x"===Pe?pe.offsetX??this._offsetX:pe.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(pe){this._pane&&(0,w.Eq)(pe).forEach(Pe=>{""!==Pe&&-1===this._appliedPanelClasses.indexOf(Pe)&&(this._appliedPanelClasses.push(Pe),this._pane.classList.add(Pe))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(pe=>{this._pane.classList.remove(pe)}),this._appliedPanelClasses=[])}_getOriginRect(){const pe=this._origin;if(pe instanceof A.SBq)return pe.nativeElement.getBoundingClientRect();if(pe instanceof Element)return pe.getBoundingClientRect();const Pe=pe.width||0,ot=pe.height||0;return{top:pe.y,bottom:pe.y+ot,left:pe.x,right:pe.x+Pe,height:ot,width:Pe}}}function ke(Dt,pe){for(let Pe in pe)pe.hasOwnProperty(Pe)&&(Dt[Pe]=pe[Pe]);return Dt}function je(Dt){if("number"!=typeof Dt&&null!=Dt){const[pe,Pe]=Dt.split($e);return Pe&&"px"!==Pe?null:parseFloat(pe)}return Dt||null}function de(Dt){return{top:Math.floor(Dt.top),right:Math.floor(Dt.right),bottom:Math.floor(Dt.bottom),left:Math.floor(Dt.left),width:Math.floor(Dt.width),height:Math.floor(Dt.height)}}const it="cdk-global-overlay-wrapper";class yt{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(pe){const Pe=pe.getConfig();this._overlayRef=pe,this._width&&!Pe.width&&pe.updateSize({width:this._width}),this._height&&!Pe.height&&pe.updateSize({height:this._height}),pe.hostElement.classList.add(it),this._isDisposed=!1}top(pe=""){return this._bottomOffset="",this._topOffset=pe,this._alignItems="flex-start",this}left(pe=""){return this._xOffset=pe,this._xPosition="left",this}bottom(pe=""){return this._topOffset="",this._bottomOffset=pe,this._alignItems="flex-end",this}right(pe=""){return this._xOffset=pe,this._xPosition="right",this}start(pe=""){return this._xOffset=pe,this._xPosition="start",this}end(pe=""){return this._xOffset=pe,this._xPosition="end",this}width(pe=""){return this._overlayRef?this._overlayRef.updateSize({width:pe}):this._width=pe,this}height(pe=""){return this._overlayRef?this._overlayRef.updateSize({height:pe}):this._height=pe,this}centerHorizontally(pe=""){return this.left(pe),this._xPosition="center",this}centerVertically(pe=""){return this.top(pe),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const pe=this._overlayRef.overlayElement.style,Pe=this._overlayRef.hostElement.style,ot=this._overlayRef.getConfig(),{width:vt,height:Be,maxWidth:Ie,maxHeight:Le}=ot,mt=!("100%"!==vt&&"100vw"!==vt||Ie&&"100%"!==Ie&&"100vw"!==Ie),Ct=!("100%"!==Be&&"100vh"!==Be||Le&&"100%"!==Le&&"100vh"!==Le),Me=this._xPosition,qe=this._xOffset,xe="rtl"===this._overlayRef.getConfig().direction;let Re="",bt="",Mt="";mt?Mt="flex-start":"center"===Me?(Mt="center",xe?bt=qe:Re=qe):xe?"left"===Me||"end"===Me?(Mt="flex-end",Re=qe):("right"===Me||"start"===Me)&&(Mt="flex-start",bt=qe):"left"===Me||"start"===Me?(Mt="flex-start",Re=qe):("right"===Me||"end"===Me)&&(Mt="flex-end",bt=qe),pe.position=this._cssPosition,pe.marginLeft=mt?"0":Re,pe.marginTop=Ct?"0":this._topOffset,pe.marginBottom=this._bottomOffset,pe.marginRight=mt?"0":bt,Pe.justifyContent=Mt,Pe.alignItems=Ct?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const pe=this._overlayRef.overlayElement.style,Pe=this._overlayRef.hostElement,ot=Pe.style;Pe.classList.remove(it),ot.justifyContent=ot.alignItems=pe.marginTop=pe.marginBottom=pe.marginLeft=pe.marginRight=pe.position="",this._overlayRef=null,this._isDisposed=!0}}let Gt=(()=>{class Dt{constructor(Pe,ot,vt,Be){this._viewportRuler=Pe,this._document=ot,this._platform=vt,this._overlayContainer=Be}global(){return new yt}flexibleConnectedTo(Pe){return new Et(Pe,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return Dt.\u0275fac=function(Pe){return new(Pe||Dt)(A.LFG(s.rL),A.LFG(c.K0),A.LFG(N.t4),A.LFG(Qe))},Dt.\u0275prov=A.Yz7({token:Dt,factory:Dt.\u0275fac,providedIn:"root"}),Dt})(),Ft=0,Vt=(()=>{class Dt{constructor(Pe,ot,vt,Be,Ie,Le,mt,Ct,Me,qe,xe,Re){this.scrollStrategies=Pe,this._overlayContainer=ot,this._componentFactoryResolver=vt,this._positionBuilder=Be,this._keyboardDispatcher=Ie,this._injector=Le,this._ngZone=mt,this._document=Ct,this._directionality=Me,this._location=qe,this._outsideClickDispatcher=xe,this._animationsModuleType=Re}create(Pe){const ot=this._createHostElement(),vt=this._createPaneElement(ot),Be=this._createPortalOutlet(vt),Ie=new X(Pe);return Ie.direction=Ie.direction||this._directionality.value,new ct(Be,ot,vt,Ie,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(Pe){const ot=this._document.createElement("div");return ot.id="cdk-overlay-"+Ft++,ot.classList.add("cdk-overlay-pane"),Pe.appendChild(ot),ot}_createHostElement(){const Pe=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(Pe),Pe}_createPortalOutlet(Pe){return this._appRef||(this._appRef=this._injector.get(A.z2F)),new I.u0(Pe,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return Dt.\u0275fac=function(Pe){return new(Pe||Dt)(A.LFG(oe),A.LFG(Qe),A.LFG(A._Vd),A.LFG(Gt),A.LFG(ce),A.LFG(A.zs3),A.LFG(A.R0b),A.LFG(c.K0),A.LFG(te.Is),A.LFG(c.Ye),A.LFG(Se),A.LFG(A.QbO,8))},Dt.\u0275prov=A.Yz7({token:Dt,factory:Dt.\u0275fac}),Dt})();const sn=[{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"}],nn=new A.OlP("cdk-connected-overlay-scroll-strategy");let Pt=(()=>{class Dt{constructor(Pe){this.elementRef=Pe}}return Dt.\u0275fac=function(Pe){return new(Pe||Dt)(A.Y36(A.SBq))},Dt.\u0275dir=A.lG2({type:Dt,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),Dt})(),wt=(()=>{class Dt{constructor(Pe,ot,vt,Be,Ie){this._overlay=Pe,this._dir=Ie,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=p.w0.EMPTY,this._attachSubscription=p.w0.EMPTY,this._detachSubscription=p.w0.EMPTY,this._positionSubscription=p.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new A.vpe,this.positionChange=new A.vpe,this.attach=new A.vpe,this.detach=new A.vpe,this.overlayKeydown=new A.vpe,this.overlayOutsideClick=new A.vpe,this._templatePortal=new I.UE(ot,vt),this._scrollStrategyFactory=Be,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(Pe){this._offsetX=Pe,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(Pe){this._offsetY=Pe,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(Pe){this._hasBackdrop=(0,w.Ig)(Pe)}get lockPosition(){return this._lockPosition}set lockPosition(Pe){this._lockPosition=(0,w.Ig)(Pe)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(Pe){this._flexibleDimensions=(0,w.Ig)(Pe)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(Pe){this._growAfterOpen=(0,w.Ig)(Pe)}get push(){return this._push}set push(Pe){this._push=(0,w.Ig)(Pe)}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(Pe){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),Pe.origin&&this.open&&this._position.apply()),Pe.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=sn);const Pe=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=Pe.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=Pe.detachments().subscribe(()=>this.detach.emit()),Pe.keydownEvents().subscribe(ot=>{this.overlayKeydown.next(ot),ot.keyCode===P.hY&&!this.disableClose&&!(0,P.Vb)(ot)&&(ot.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(ot=>{this.overlayOutsideClick.next(ot)})}_buildConfig(){const Pe=this._position=this.positionStrategy||this._createPositionStrategy(),ot=new X({direction:this._dir,positionStrategy:Pe,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(ot.width=this.width),(this.height||0===this.height)&&(ot.height=this.height),(this.minWidth||0===this.minWidth)&&(ot.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(ot.minHeight=this.minHeight),this.backdropClass&&(ot.backdropClass=this.backdropClass),this.panelClass&&(ot.panelClass=this.panelClass),ot}_updatePositionStrategy(Pe){const ot=this.positions.map(vt=>({originX:vt.originX,originY:vt.originY,overlayX:vt.overlayX,overlayY:vt.overlayY,offsetX:vt.offsetX||this.offsetX,offsetY:vt.offsetY||this.offsetY,panelClass:vt.panelClass||void 0}));return Pe.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(ot).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const Pe=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(Pe),Pe}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof Pt?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(Pe=>{this.backdropClick.emit(Pe)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,W.o)(()=>this.positionChange.observers.length>0)).subscribe(Pe=>{this.positionChange.emit(Pe),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return Dt.\u0275fac=function(Pe){return new(Pe||Dt)(A.Y36(Vt),A.Y36(A.Rgc),A.Y36(A.s_b),A.Y36(nn),A.Y36(te.Is,8))},Dt.\u0275dir=A.lG2({type:Dt,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:[A.TTD]}),Dt})();const _t={provide:nn,deps:[Vt],useFactory:function Je(Dt){return()=>Dt.scrollStrategies.reposition()}};let Tt=(()=>{class Dt{}return Dt.\u0275fac=function(Pe){return new(Pe||Dt)},Dt.\u0275mod=A.oAB({type:Dt}),Dt.\u0275inj=A.cJS({providers:[Vt,_t],imports:[te.vT,I.eL,s.Cl,s.Cl]}),Dt})()},83353:(ut,fe,d)=>{"use strict";d.d(fe,{Mq:()=>P,Oy:()=>Y,_i:()=>B,ht:()=>ue,i$:()=>v,kV:()=>Z,qK:()=>b,sA:()=>F,t4:()=>w});var s=d(94650),c=d(36895);let A;try{A=typeof Intl<"u"&&Intl.v8BreakIterator}catch{A=!1}let te,w=(()=>{class ee{constructor(X){this._platformId=X,this.isBrowser=this._platformId?(0,c.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&&!A)&&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 ee.\u0275fac=function(X){return new(X||ee)(s.LFG(s.Lbi))},ee.\u0275prov=s.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"}),ee})();const I=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function b(){if(te)return te;if("object"!=typeof document||!document)return te=new Set(I),te;let ee=document.createElement("input");return te=new Set(I.filter(oe=>(ee.setAttribute("type",oe),ee.type===oe))),te}let p,T,W,G;function v(ee){return function _(){if(null==p&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>p=!0}))}finally{p=p||!1}return p}()?ee:!!ee.capture}function P(){if(null==W){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return W=!1,W;if("scrollBehavior"in document.documentElement.style)W=!0;else{const ee=Element.prototype.scrollTo;W=!!ee&&!/\{\s*\[native code\]\s*\}/.test(ee.toString())}}return W}function B(){if("object"!=typeof document||!document)return 0;if(null==T){const ee=document.createElement("div"),oe=ee.style;ee.dir="rtl",oe.width="1px",oe.overflow="auto",oe.visibility="hidden",oe.pointerEvents="none",oe.position="absolute";const X=document.createElement("div"),y=X.style;y.width="2px",y.height="1px",ee.appendChild(X),document.body.appendChild(ee),T=0,0===ee.scrollLeft&&(ee.scrollLeft=1,T=0===ee.scrollLeft?1:2),ee.remove()}return T}function Z(ee){if(function U(){if(null==G){const ee=typeof document<"u"?document.head:null;G=!(!ee||!ee.createShadowRoot&&!ee.attachShadow)}return G}()){const oe=ee.getRootNode?ee.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&oe instanceof ShadowRoot)return oe}return null}function ue(){let ee=typeof document<"u"&&document?document.activeElement:null;for(;ee&&ee.shadowRoot;){const oe=ee.shadowRoot.activeElement;if(oe===ee)break;ee=oe}return ee}function F(ee){return ee.composedPath?ee.composedPath()[0]:ee.target}function Y(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},84080:(ut,fe,d)=>{"use strict";d.d(fe,{C5:()=>_,Pl:()=>ue,UE:()=>v,eL:()=>Y,en:()=>W,ig:()=>U,u0:()=>B});var s=d(94650),c=d(36895);class p{attach(X){return this._attachedHost=X,X.attach(this)}detach(){let X=this._attachedHost;null!=X&&(this._attachedHost=null,X.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(X){this._attachedHost=X}}class _ extends p{constructor(X,y,k,$){super(),this.component=X,this.viewContainerRef=y,this.injector=k,this.componentFactoryResolver=$}}class v extends p{constructor(X,y,k,$){super(),this.templateRef=X,this.viewContainerRef=y,this.context=k,this.injector=$}get origin(){return this.templateRef.elementRef}attach(X,y=this.context){return this.context=y,super.attach(X)}detach(){return this.context=void 0,super.detach()}}class T extends p{constructor(X){super(),this.element=X instanceof s.SBq?X.nativeElement:X}}class W{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(X){return X instanceof _?(this._attachedPortal=X,this.attachComponentPortal(X)):X instanceof v?(this._attachedPortal=X,this.attachTemplatePortal(X)):this.attachDomPortal&&X instanceof T?(this._attachedPortal=X,this.attachDomPortal(X)):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(X){this._disposeFn=X}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class B extends W{constructor(X,y,k,$,J){super(),this.outletElement=X,this._componentFactoryResolver=y,this._appRef=k,this._defaultInjector=$,this.attachDomPortal=L=>{const le=L.element,ce=this._document.createComment("dom-portal");le.parentNode.insertBefore(ce,le),this.outletElement.appendChild(le),this._attachedPortal=L,super.setDisposeFn(()=>{ce.parentNode&&ce.parentNode.replaceChild(le,ce)})},this._document=J}attachComponentPortal(X){const k=(X.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(X.component);let $;return X.viewContainerRef?($=X.viewContainerRef.createComponent(k,X.viewContainerRef.length,X.injector||X.viewContainerRef.injector),this.setDisposeFn(()=>$.destroy())):($=k.create(X.injector||this._defaultInjector||s.zs3.NULL),this._appRef.attachView($.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView($.hostView),$.destroy()})),this.outletElement.appendChild(this._getComponentRootNode($)),this._attachedPortal=X,$}attachTemplatePortal(X){let y=X.viewContainerRef,k=y.createEmbeddedView(X.templateRef,X.context,{injector:X.injector});return k.rootNodes.forEach($=>this.outletElement.appendChild($)),k.detectChanges(),this.setDisposeFn(()=>{let $=y.indexOf(k);-1!==$&&y.remove($)}),this._attachedPortal=X,k}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(X){return X.hostView.rootNodes[0]}}let U=(()=>{class oe extends v{constructor(y,k){super(y,k)}}return oe.\u0275fac=function(y){return new(y||oe)(s.Y36(s.Rgc),s.Y36(s.s_b))},oe.\u0275dir=s.lG2({type:oe,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[s.qOj]}),oe})(),ue=(()=>{class oe extends W{constructor(y,k,$){super(),this._componentFactoryResolver=y,this._viewContainerRef=k,this._isInitialized=!1,this.attached=new s.vpe,this.attachDomPortal=J=>{const L=J.element,le=this._document.createComment("dom-portal");J.setAttachedHost(this),L.parentNode.insertBefore(le,L),this._getRootNode().appendChild(L),this._attachedPortal=J,super.setDisposeFn(()=>{le.parentNode&&le.parentNode.replaceChild(L,le)})},this._document=$}get portal(){return this._attachedPortal}set portal(y){this.hasAttached()&&!y&&!this._isInitialized||(this.hasAttached()&&super.detach(),y&&super.attach(y),this._attachedPortal=y||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(y){y.setAttachedHost(this);const k=null!=y.viewContainerRef?y.viewContainerRef:this._viewContainerRef,J=(y.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(y.component),L=k.createComponent(J,k.length,y.injector||k.injector);return k!==this._viewContainerRef&&this._getRootNode().appendChild(L.hostView.rootNodes[0]),super.setDisposeFn(()=>L.destroy()),this._attachedPortal=y,this._attachedRef=L,this.attached.emit(L),L}attachTemplatePortal(y){y.setAttachedHost(this);const k=this._viewContainerRef.createEmbeddedView(y.templateRef,y.context,{injector:y.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=y,this._attachedRef=k,this.attached.emit(k),k}_getRootNode(){const y=this._viewContainerRef.element.nativeElement;return y.nodeType===y.ELEMENT_NODE?y:y.parentNode}}return oe.\u0275fac=function(y){return new(y||oe)(s.Y36(s._Vd),s.Y36(s.s_b),s.Y36(c.K0))},oe.\u0275dir=s.lG2({type:oe,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[s.qOj]}),oe})(),Y=(()=>{class oe{}return oe.\u0275fac=function(y){return new(y||oe)},oe.\u0275mod=s.oAB({type:oe}),oe.\u0275inj=s.cJS({}),oe})()},45589:(ut,fe,d)=>{"use strict";d.d(fe,{PQ:()=>$e,ZD:()=>sn,mF:()=>$t,Cl:()=>nn,rL:()=>ke});var s=d(21281),c=d(94650),A=d(77579),w=d(39646),N=d(69751),te=d(54968),I=d(84408),b=d(50727);const p={schedule(Pt){let wt=requestAnimationFrame,Je=cancelAnimationFrame;const{delegate:_t}=p;_t&&(wt=_t.requestAnimationFrame,Je=_t.cancelAnimationFrame);const Tt=wt(Wt=>{Je=void 0,Pt(Wt)});return new b.w0(()=>Je?.(Tt))},requestAnimationFrame(...Pt){const{delegate:wt}=p;return(wt?.requestAnimationFrame||requestAnimationFrame)(...Pt)},cancelAnimationFrame(...Pt){const{delegate:wt}=p;return(wt?.cancelAnimationFrame||cancelAnimationFrame)(...Pt)},delegate:void 0};var v=d(97565);new class T extends v.v{flush(wt){this._active=!0;const Je=this._scheduled;this._scheduled=void 0;const{actions:_t}=this;let Tt;wt=wt||_t.shift();do{if(Tt=wt.execute(wt.state,wt.delay))break}while((wt=_t[0])&&wt.id===Je&&_t.shift());if(this._active=!1,Tt){for(;(wt=_t[0])&&wt.id===Je&&_t.shift();)wt.unsubscribe();throw Tt}}}(class _ extends I.o{constructor(wt,Je){super(wt,Je),this.scheduler=wt,this.work=Je}requestAsyncId(wt,Je,_t=0){return null!==_t&&_t>0?super.requestAsyncId(wt,Je,_t):(wt.actions.push(this),wt._scheduled||(wt._scheduled=p.requestAnimationFrame(()=>wt.flush(void 0))))}recycleAsyncId(wt,Je,_t=0){if(null!=_t&&_t>0||null==_t&&this.delay>0)return super.recycleAsyncId(wt,Je,_t);wt.actions.some(Tt=>Tt.id===Je)||(p.cancelAnimationFrame(Je),wt._scheduled=void 0)}});d(53101);var G=d(34986),U=d(54482),Z=d(38421),ue=d(25403),Y=d(5963);function ee(Pt,wt=G.z){return function F(Pt){return(0,U.e)((wt,Je)=>{let _t=!1,Tt=null,Wt=null,Dt=!1;const pe=()=>{if(Wt?.unsubscribe(),Wt=null,_t){_t=!1;const ot=Tt;Tt=null,Je.next(ot)}Dt&&Je.complete()},Pe=()=>{Wt=null,Dt&&Je.complete()};wt.subscribe((0,ue.x)(Je,ot=>{_t=!0,Tt=ot,Wt||(0,Z.Xf)(Pt(ot)).subscribe(Wt=(0,ue.x)(Je,pe,Pe))},()=>{Dt=!0,(!_t||!Wt||Wt.closed)&&Je.complete()}))})}(()=>(0,Y.H)(Pt,wt))}var oe=d(39300),X=d(82722),y=d(83353),k=d(36895),$=d(40445);let $t=(()=>{class Pt{constructor(Je,_t,Tt){this._ngZone=Je,this._platform=_t,this._scrolled=new A.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=Tt}register(Je){this.scrollContainers.has(Je)||this.scrollContainers.set(Je,Je.elementScrolled().subscribe(()=>this._scrolled.next(Je)))}deregister(Je){const _t=this.scrollContainers.get(Je);_t&&(_t.unsubscribe(),this.scrollContainers.delete(Je))}scrolled(Je=20){return this._platform.isBrowser?new N.y(_t=>{this._globalSubscription||this._addGlobalListener();const Tt=Je>0?this._scrolled.pipe(ee(Je)).subscribe(_t):this._scrolled.subscribe(_t);return this._scrolledCount++,()=>{Tt.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,w.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((Je,_t)=>this.deregister(_t)),this._scrolled.complete()}ancestorScrolled(Je,_t){const Tt=this.getAncestorScrollContainers(Je);return this.scrolled(_t).pipe((0,oe.h)(Wt=>!Wt||Tt.indexOf(Wt)>-1))}getAncestorScrollContainers(Je){const _t=[];return this.scrollContainers.forEach((Tt,Wt)=>{this._scrollableContainsElement(Wt,Je)&&_t.push(Wt)}),_t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(Je,_t){let Tt=(0,s.fI)(_t),Wt=Je.getElementRef().nativeElement;do{if(Tt==Wt)return!0}while(Tt=Tt.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const Je=this._getWindow();return(0,te.R)(Je.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return Pt.\u0275fac=function(Je){return new(Je||Pt)(c.LFG(c.R0b),c.LFG(y.t4),c.LFG(k.K0,8))},Pt.\u0275prov=c.Yz7({token:Pt,factory:Pt.\u0275fac,providedIn:"root"}),Pt})(),$e=(()=>{class Pt{constructor(Je,_t,Tt,Wt){this.elementRef=Je,this.scrollDispatcher=_t,this.ngZone=Tt,this.dir=Wt,this._destroyed=new A.x,this._elementScrolled=new N.y(Dt=>this.ngZone.runOutsideAngular(()=>(0,te.R)(this.elementRef.nativeElement,"scroll").pipe((0,X.R)(this._destroyed)).subscribe(Dt)))}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(Je){const _t=this.elementRef.nativeElement,Tt=this.dir&&"rtl"==this.dir.value;null==Je.left&&(Je.left=Tt?Je.end:Je.start),null==Je.right&&(Je.right=Tt?Je.start:Je.end),null!=Je.bottom&&(Je.top=_t.scrollHeight-_t.clientHeight-Je.bottom),Tt&&0!=(0,y._i)()?(null!=Je.left&&(Je.right=_t.scrollWidth-_t.clientWidth-Je.left),2==(0,y._i)()?Je.left=Je.right:1==(0,y._i)()&&(Je.left=Je.right?-Je.right:Je.right)):null!=Je.right&&(Je.left=_t.scrollWidth-_t.clientWidth-Je.right),this._applyScrollToOptions(Je)}_applyScrollToOptions(Je){const _t=this.elementRef.nativeElement;(0,y.Mq)()?_t.scrollTo(Je):(null!=Je.top&&(_t.scrollTop=Je.top),null!=Je.left&&(_t.scrollLeft=Je.left))}measureScrollOffset(Je){const _t="left",Wt=this.elementRef.nativeElement;if("top"==Je)return Wt.scrollTop;if("bottom"==Je)return Wt.scrollHeight-Wt.clientHeight-Wt.scrollTop;const Dt=this.dir&&"rtl"==this.dir.value;return"start"==Je?Je=Dt?"right":_t:"end"==Je&&(Je=Dt?_t:"right"),Dt&&2==(0,y._i)()?Je==_t?Wt.scrollWidth-Wt.clientWidth-Wt.scrollLeft:Wt.scrollLeft:Dt&&1==(0,y._i)()?Je==_t?Wt.scrollLeft+Wt.scrollWidth-Wt.clientWidth:-Wt.scrollLeft:Je==_t?Wt.scrollLeft:Wt.scrollWidth-Wt.clientWidth-Wt.scrollLeft}}return Pt.\u0275fac=function(Je){return new(Je||Pt)(c.Y36(c.SBq),c.Y36($t),c.Y36(c.R0b),c.Y36($.Is,8))},Pt.\u0275dir=c.lG2({type:Pt,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),Pt})(),ke=(()=>{class Pt{constructor(Je,_t,Tt){this._platform=Je,this._change=new A.x,this._changeListener=Wt=>{this._change.next(Wt)},this._document=Tt,_t.runOutsideAngular(()=>{if(Je.isBrowser){const Wt=this._getWindow();Wt.addEventListener("resize",this._changeListener),Wt.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const Je=this._getWindow();Je.removeEventListener("resize",this._changeListener),Je.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const Je={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),Je}getViewportRect(){const Je=this.getViewportScrollPosition(),{width:_t,height:Tt}=this.getViewportSize();return{top:Je.top,left:Je.left,bottom:Je.top+Tt,right:Je.left+_t,height:Tt,width:_t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const Je=this._document,_t=this._getWindow(),Tt=Je.documentElement,Wt=Tt.getBoundingClientRect();return{top:-Wt.top||Je.body.scrollTop||_t.scrollY||Tt.scrollTop||0,left:-Wt.left||Je.body.scrollLeft||_t.scrollX||Tt.scrollLeft||0}}change(Je=20){return Je>0?this._change.pipe(ee(Je)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const Je=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:Je.innerWidth,height:Je.innerHeight}:{width:0,height:0}}}return Pt.\u0275fac=function(Je){return new(Je||Pt)(c.LFG(y.t4),c.LFG(c.R0b),c.LFG(k.K0,8))},Pt.\u0275prov=c.Yz7({token:Pt,factory:Pt.\u0275fac,providedIn:"root"}),Pt})(),sn=(()=>{class Pt{}return Pt.\u0275fac=function(Je){return new(Je||Pt)},Pt.\u0275mod=c.oAB({type:Pt}),Pt.\u0275inj=c.cJS({}),Pt})(),nn=(()=>{class Pt{}return Pt.\u0275fac=function(Je){return new(Je||Pt)},Pt.\u0275mod=c.oAB({type:Pt}),Pt.\u0275inj=c.cJS({imports:[$.vT,sn,$.vT,sn]}),Pt})()},36895:(ut,fe,d)=>{"use strict";d.d(fe,{Do:()=>F,ED:()=>bi,EM:()=>De,H9:()=>Ri,HT:()=>N,JF:()=>Ht,JJ:()=>Gi,K0:()=>I,Mx:()=>zr,NF:()=>ps,Nd:()=>Ls,O5:()=>ir,Ov:()=>Bn,PC:()=>Mi,PM:()=>Ds,RF:()=>ni,S$:()=>U,V_:()=>_,Ye:()=>Y,Zx:()=>Vi,b0:()=>ue,bD:()=>qi,ez:()=>Ji,gd:()=>Ir,i8:()=>dr,mk:()=>Xn,mr:()=>Z,n9:()=>ri,p6:()=>Ct,q:()=>A,qS:()=>Nr,rS:()=>Mn,sg:()=>Kr,tP:()=>hi,uU:()=>Ui,w_:()=>te});var s=d(94650);let c=null;function A(){return c}function N(V){c||(c=V)}class te{}const I=new s.OlP("DocumentToken");let b=(()=>{class V{historyGo(Q){throw new Error("Not implemented")}}return V.\u0275fac=function(Q){return new(Q||V)},V.\u0275prov=s.Yz7({token:V,factory:function(){return function p(){return(0,s.LFG)(v)}()},providedIn:"platform"}),V})();const _=new s.OlP("Location Initialized");let v=(()=>{class V extends b{constructor(Q){super(),this._doc=Q,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return A().getBaseHref(this._doc)}onPopState(Q){const ge=A().getGlobalEventTarget(this._doc,"window");return ge.addEventListener("popstate",Q,!1),()=>ge.removeEventListener("popstate",Q)}onHashChange(Q){const ge=A().getGlobalEventTarget(this._doc,"window");return ge.addEventListener("hashchange",Q,!1),()=>ge.removeEventListener("hashchange",Q)}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(Q){this.location.pathname=Q}pushState(Q,ge,nt){T()?this._history.pushState(Q,ge,nt):this.location.hash=nt}replaceState(Q,ge,nt){T()?this._history.replaceState(Q,ge,nt):this.location.hash=nt}forward(){this._history.forward()}back(){this._history.back()}historyGo(Q=0){this._history.go(Q)}getState(){return this._history.state}}return V.\u0275fac=function(Q){return new(Q||V)(s.LFG(I))},V.\u0275prov=s.Yz7({token:V,factory:function(){return function W(){return new v((0,s.LFG)(I))}()},providedIn:"platform"}),V})();function T(){return!!window.history.pushState}function P(V,he){if(0==V.length)return he;if(0==he.length)return V;let Q=0;return V.endsWith("/")&&Q++,he.startsWith("/")&&Q++,2==Q?V+he.substring(1):1==Q?V+he:V+"/"+he}function B(V){const he=V.match(/#|\?|$/),Q=he&&he.index||V.length;return V.slice(0,Q-("/"===V[Q-1]?1:0))+V.slice(Q)}function G(V){return V&&"?"!==V[0]?"?"+V:V}let U=(()=>{class V{historyGo(Q){throw new Error("Not implemented")}}return V.\u0275fac=function(Q){return new(Q||V)},V.\u0275prov=s.Yz7({token:V,factory:function(){return(0,s.f3M)(ue)},providedIn:"root"}),V})();const Z=new s.OlP("appBaseHref");let ue=(()=>{class V extends U{constructor(Q,ge){super(),this._platformLocation=Q,this._removeListenerFns=[],this._baseHref=ge??this._platformLocation.getBaseHrefFromDOM()??(0,s.f3M)(I).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Q){this._removeListenerFns.push(this._platformLocation.onPopState(Q),this._platformLocation.onHashChange(Q))}getBaseHref(){return this._baseHref}prepareExternalUrl(Q){return P(this._baseHref,Q)}path(Q=!1){const ge=this._platformLocation.pathname+G(this._platformLocation.search),nt=this._platformLocation.hash;return nt&&Q?`${ge}${nt}`:ge}pushState(Q,ge,nt,Nt){const Ut=this.prepareExternalUrl(nt+G(Nt));this._platformLocation.pushState(Q,ge,Ut)}replaceState(Q,ge,nt,Nt){const Ut=this.prepareExternalUrl(nt+G(Nt));this._platformLocation.replaceState(Q,ge,Ut)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(Q=0){this._platformLocation.historyGo?.(Q)}}return V.\u0275fac=function(Q){return new(Q||V)(s.LFG(b),s.LFG(Z,8))},V.\u0275prov=s.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})(),F=(()=>{class V extends U{constructor(Q,ge){super(),this._platformLocation=Q,this._baseHref="",this._removeListenerFns=[],null!=ge&&(this._baseHref=ge)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Q){this._removeListenerFns.push(this._platformLocation.onPopState(Q),this._platformLocation.onHashChange(Q))}getBaseHref(){return this._baseHref}path(Q=!1){let ge=this._platformLocation.hash;return null==ge&&(ge="#"),ge.length>0?ge.substring(1):ge}prepareExternalUrl(Q){const ge=P(this._baseHref,Q);return ge.length>0?"#"+ge:ge}pushState(Q,ge,nt,Nt){let Ut=this.prepareExternalUrl(nt+G(Nt));0==Ut.length&&(Ut=this._platformLocation.pathname),this._platformLocation.pushState(Q,ge,Ut)}replaceState(Q,ge,nt,Nt){let Ut=this.prepareExternalUrl(nt+G(Nt));0==Ut.length&&(Ut=this._platformLocation.pathname),this._platformLocation.replaceState(Q,ge,Ut)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(Q=0){this._platformLocation.historyGo?.(Q)}}return V.\u0275fac=function(Q){return new(Q||V)(s.LFG(b),s.LFG(Z,8))},V.\u0275prov=s.Yz7({token:V,factory:V.\u0275fac}),V})(),Y=(()=>{class V{constructor(Q){this._subject=new s.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=Q;const ge=this._locationStrategy.getBaseHref();this._baseHref=B(X(ge)),this._locationStrategy.onPopState(nt=>{this._subject.emit({url:this.path(!0),pop:!0,state:nt.state,type:nt.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(Q=!1){return this.normalize(this._locationStrategy.path(Q))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(Q,ge=""){return this.path()==this.normalize(Q+G(ge))}normalize(Q){return V.stripTrailingSlash(function oe(V,he){return V&&he.startsWith(V)?he.substring(V.length):he}(this._baseHref,X(Q)))}prepareExternalUrl(Q){return Q&&"/"!==Q[0]&&(Q="/"+Q),this._locationStrategy.prepareExternalUrl(Q)}go(Q,ge="",nt=null){this._locationStrategy.pushState(nt,"",Q,ge),this._notifyUrlChangeListeners(this.prepareExternalUrl(Q+G(ge)),nt)}replaceState(Q,ge="",nt=null){this._locationStrategy.replaceState(nt,"",Q,ge),this._notifyUrlChangeListeners(this.prepareExternalUrl(Q+G(ge)),nt)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(Q=0){this._locationStrategy.historyGo?.(Q)}onUrlChange(Q){return this._urlChangeListeners.push(Q),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(ge=>{this._notifyUrlChangeListeners(ge.url,ge.state)})),()=>{const ge=this._urlChangeListeners.indexOf(Q);this._urlChangeListeners.splice(ge,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(Q="",ge){this._urlChangeListeners.forEach(nt=>nt(Q,ge))}subscribe(Q,ge,nt){return this._subject.subscribe({next:Q,error:ge,complete:nt})}}return V.normalizeQueryParams=G,V.joinWithSlash=P,V.stripTrailingSlash=B,V.\u0275fac=function(Q){return new(Q||V)(s.LFG(U))},V.\u0275prov=s.Yz7({token:V,factory:function(){return function ee(){return new Y((0,s.LFG)(U))}()},providedIn:"root"}),V})();function X(V){return V.replace(/\/index.html$/,"")}const y={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 k=(()=>((k=k||{})[k.Decimal=0]="Decimal",k[k.Percent=1]="Percent",k[k.Currency=2]="Currency",k[k.Scientific=3]="Scientific",k))(),J=(()=>((J=J||{})[J.Format=0]="Format",J[J.Standalone=1]="Standalone",J))(),L=(()=>((L=L||{})[L.Narrow=0]="Narrow",L[L.Abbreviated=1]="Abbreviated",L[L.Wide=2]="Wide",L[L.Short=3]="Short",L))(),le=(()=>((le=le||{})[le.Short=0]="Short",le[le.Medium=1]="Medium",le[le.Long=2]="Long",le[le.Full=3]="Full",le))(),ce=(()=>((ce=ce||{})[ce.Decimal=0]="Decimal",ce[ce.Group=1]="Group",ce[ce.List=2]="List",ce[ce.PercentSign=3]="PercentSign",ce[ce.PlusSign=4]="PlusSign",ce[ce.MinusSign=5]="MinusSign",ce[ce.Exponential=6]="Exponential",ce[ce.SuperscriptingExponent=7]="SuperscriptingExponent",ce[ce.PerMille=8]="PerMille",ce[ce.Infinity=9]="Infinity",ce[ce.NaN=10]="NaN",ce[ce.TimeSeparator=11]="TimeSeparator",ce[ce.CurrencyDecimal=12]="CurrencyDecimal",ce[ce.CurrencyGroup=13]="CurrencyGroup",ce))();function de(V,he){return Tt((0,s.cg1)(V)[s.wAp.DateFormat],he)}function me(V,he){return Tt((0,s.cg1)(V)[s.wAp.TimeFormat],he)}function Ne(V,he){return Tt((0,s.cg1)(V)[s.wAp.DateTimeFormat],he)}function it(V,he){const Q=(0,s.cg1)(V),ge=Q[s.wAp.NumberSymbols][he];if(typeof ge>"u"){if(he===ce.CurrencyDecimal)return Q[s.wAp.NumberSymbols][ce.Decimal];if(he===ce.CurrencyGroup)return Q[s.wAp.NumberSymbols][ce.Group]}return ge}function yt(V,he){return(0,s.cg1)(V)[s.wAp.NumberFormats][he]}function Pt(V){if(!V[s.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${V[s.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Tt(V,he){for(let Q=he;Q>-1;Q--)if(typeof V[Q]<"u")return V[Q];throw new Error("Locale data API: locale data undefined")}function Wt(V){const[he,Q]=V.split(":");return{hours:+he,minutes:+Q}}const ot=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,vt={},Be=/((?:[^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 Ie=(()=>((Ie=Ie||{})[Ie.Short=0]="Short",Ie[Ie.ShortGMT=1]="ShortGMT",Ie[Ie.Long=2]="Long",Ie[Ie.Extended=3]="Extended",Ie))(),Le=(()=>((Le=Le||{})[Le.FullYear=0]="FullYear",Le[Le.Month=1]="Month",Le[Le.Date=2]="Date",Le[Le.Hours=3]="Hours",Le[Le.Minutes=4]="Minutes",Le[Le.Seconds=5]="Seconds",Le[Le.FractionalSeconds=6]="FractionalSeconds",Le[Le.Day=7]="Day",Le))(),mt=(()=>((mt=mt||{})[mt.DayPeriods=0]="DayPeriods",mt[mt.Days=1]="Days",mt[mt.Months=2]="Months",mt[mt.Eras=3]="Eras",mt))();function Ct(V,he,Q,ge){let nt=function Er(V){if(Tn(V))return V;if("number"==typeof V&&!isNaN(V))return new Date(V);if("string"==typeof V){if(V=V.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(V)){const[nt,Nt=1,Ut=1]=V.split("-").map(mn=>+mn);return Me(nt,Nt-1,Ut)}const Q=parseFloat(V);if(!isNaN(V-Q))return new Date(Q);let ge;if(ge=V.match(ot))return function zn(V){const he=new Date(0);let Q=0,ge=0;const nt=V[8]?he.setUTCFullYear:he.setFullYear,Nt=V[8]?he.setUTCHours:he.setHours;V[9]&&(Q=Number(V[9]+V[10]),ge=Number(V[9]+V[11])),nt.call(he,Number(V[1]),Number(V[2])-1,Number(V[3]));const Ut=Number(V[4]||0)-Q,mn=Number(V[5]||0)-ge,vr=Number(V[6]||0),ar=Math.floor(1e3*parseFloat("0."+(V[7]||0)));return Nt.call(he,Ut,mn,vr,ar),he}(ge)}const he=new Date(V);if(!Tn(he))throw new Error(`Unable to convert "${V}" into a date`);return he}(V);he=qe(Q,he)||he;let mn,Ut=[];for(;he;){if(mn=Be.exec(he),!mn){Ut.push(he);break}{Ut=Ut.concat(mn.slice(1));const Dr=Ut.pop();if(!Dr)break;he=Dr}}let vr=nt.getTimezoneOffset();ge&&(vr=Ln(ge,vr),nt=function On(V,he,Q){const ge=Q?-1:1,nt=V.getTimezoneOffset();return function Hr(V,he){return(V=new Date(V.getTime())).setMinutes(V.getMinutes()+he),V}(V,ge*(Ln(he,nt)-nt))}(nt,ge,!0));let ar="";return Ut.forEach(Dr=>{const er=function En(V){if(Yt[V])return Yt[V];let he;switch(V){case"G":case"GG":case"GGG":he=an(mt.Eras,L.Abbreviated);break;case"GGGG":he=an(mt.Eras,L.Wide);break;case"GGGGG":he=an(mt.Eras,L.Narrow);break;case"y":he=Mt(Le.FullYear,1,0,!1,!0);break;case"yy":he=Mt(Le.FullYear,2,0,!0,!0);break;case"yyy":he=Mt(Le.FullYear,3,0,!1,!0);break;case"yyyy":he=Mt(Le.FullYear,4,0,!1,!0);break;case"Y":he=At(1);break;case"YY":he=At(2,!0);break;case"YYY":he=At(3);break;case"YYYY":he=At(4);break;case"M":case"L":he=Mt(Le.Month,1,1);break;case"MM":case"LL":he=Mt(Le.Month,2,1);break;case"MMM":he=an(mt.Months,L.Abbreviated);break;case"MMMM":he=an(mt.Months,L.Wide);break;case"MMMMM":he=an(mt.Months,L.Narrow);break;case"LLL":he=an(mt.Months,L.Abbreviated,J.Standalone);break;case"LLLL":he=an(mt.Months,L.Wide,J.Standalone);break;case"LLLLL":he=an(mt.Months,L.Narrow,J.Standalone);break;case"w":he=at(1);break;case"ww":he=at(2);break;case"W":he=at(1,!0);break;case"d":he=Mt(Le.Date,1);break;case"dd":he=Mt(Le.Date,2);break;case"c":case"cc":he=Mt(Le.Day,1);break;case"ccc":he=an(mt.Days,L.Abbreviated,J.Standalone);break;case"cccc":he=an(mt.Days,L.Wide,J.Standalone);break;case"ccccc":he=an(mt.Days,L.Narrow,J.Standalone);break;case"cccccc":he=an(mt.Days,L.Short,J.Standalone);break;case"E":case"EE":case"EEE":he=an(mt.Days,L.Abbreviated);break;case"EEEE":he=an(mt.Days,L.Wide);break;case"EEEEE":he=an(mt.Days,L.Narrow);break;case"EEEEEE":he=an(mt.Days,L.Short);break;case"a":case"aa":case"aaa":he=an(mt.DayPeriods,L.Abbreviated);break;case"aaaa":he=an(mt.DayPeriods,L.Wide);break;case"aaaaa":he=an(mt.DayPeriods,L.Narrow);break;case"b":case"bb":case"bbb":he=an(mt.DayPeriods,L.Abbreviated,J.Standalone,!0);break;case"bbbb":he=an(mt.DayPeriods,L.Wide,J.Standalone,!0);break;case"bbbbb":he=an(mt.DayPeriods,L.Narrow,J.Standalone,!0);break;case"B":case"BB":case"BBB":he=an(mt.DayPeriods,L.Abbreviated,J.Format,!0);break;case"BBBB":he=an(mt.DayPeriods,L.Wide,J.Format,!0);break;case"BBBBB":he=an(mt.DayPeriods,L.Narrow,J.Format,!0);break;case"h":he=Mt(Le.Hours,1,-12);break;case"hh":he=Mt(Le.Hours,2,-12);break;case"H":he=Mt(Le.Hours,1);break;case"HH":he=Mt(Le.Hours,2);break;case"m":he=Mt(Le.Minutes,1);break;case"mm":he=Mt(Le.Minutes,2);break;case"s":he=Mt(Le.Seconds,1);break;case"ss":he=Mt(Le.Seconds,2);break;case"S":he=Mt(Le.FractionalSeconds,1);break;case"SS":he=Mt(Le.FractionalSeconds,2);break;case"SSS":he=Mt(Le.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":he=ze(Ie.Short);break;case"ZZZZZ":he=ze(Ie.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":he=ze(Ie.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":he=ze(Ie.Long);break;default:return null}return Yt[V]=he,he}(Dr);ar+=er?er(nt,Q,vr):"''"===Dr?"'":Dr.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),ar}function Me(V,he,Q){const ge=new Date(0);return ge.setFullYear(V,he,Q),ge.setHours(0,0,0),ge}function qe(V,he){const Q=function Qe(V){return(0,s.cg1)(V)[s.wAp.LocaleId]}(V);if(vt[Q]=vt[Q]||{},vt[Q][he])return vt[Q][he];let ge="";switch(he){case"shortDate":ge=de(V,le.Short);break;case"mediumDate":ge=de(V,le.Medium);break;case"longDate":ge=de(V,le.Long);break;case"fullDate":ge=de(V,le.Full);break;case"shortTime":ge=me(V,le.Short);break;case"mediumTime":ge=me(V,le.Medium);break;case"longTime":ge=me(V,le.Long);break;case"fullTime":ge=me(V,le.Full);break;case"short":const nt=qe(V,"shortTime"),Nt=qe(V,"shortDate");ge=xe(Ne(V,le.Short),[nt,Nt]);break;case"medium":const Ut=qe(V,"mediumTime"),mn=qe(V,"mediumDate");ge=xe(Ne(V,le.Medium),[Ut,mn]);break;case"long":const vr=qe(V,"longTime"),ar=qe(V,"longDate");ge=xe(Ne(V,le.Long),[vr,ar]);break;case"full":const Dr=qe(V,"fullTime"),er=qe(V,"fullDate");ge=xe(Ne(V,le.Full),[Dr,er])}return ge&&(vt[Q][he]=ge),ge}function xe(V,he){return he&&(V=V.replace(/\{([^}]+)}/g,function(Q,ge){return null!=he&&ge in he?he[ge]:Q})),V}function Re(V,he,Q="-",ge,nt){let Nt="";(V<0||nt&&V<=0)&&(nt?V=1-V:(V=-V,Nt=Q));let Ut=String(V);for(;Ut.length<he;)Ut="0"+Ut;return ge&&(Ut=Ut.slice(Ut.length-he)),Nt+Ut}function Mt(V,he,Q=0,ge=!1,nt=!1){return function(Nt,Ut){let mn=function un(V,he){switch(V){case Le.FullYear:return he.getFullYear();case Le.Month:return he.getMonth();case Le.Date:return he.getDate();case Le.Hours:return he.getHours();case Le.Minutes:return he.getMinutes();case Le.Seconds:return he.getSeconds();case Le.FractionalSeconds:return he.getMilliseconds();case Le.Day:return he.getDay();default:throw new Error(`Unknown DateType value "${V}".`)}}(V,Nt);if((Q>0||mn>-Q)&&(mn+=Q),V===Le.Hours)0===mn&&-12===Q&&(mn=12);else if(V===Le.FractionalSeconds)return function bt(V,he){return Re(V,3).substring(0,he)}(mn,he);const vr=it(Ut,ce.MinusSign);return Re(mn,he,vr,ge,nt)}}function an(V,he,Q=J.Format,ge=!1){return function(nt,Nt){return function dt(V,he,Q,ge,nt,Nt){switch(Q){case mt.Months:return function $e(V,he,Q){const ge=(0,s.cg1)(V),Nt=Tt([ge[s.wAp.MonthsFormat],ge[s.wAp.MonthsStandalone]],he);return Tt(Nt,Q)}(he,nt,ge)[V.getMonth()];case mt.Days:return function $t(V,he,Q){const ge=(0,s.cg1)(V),Nt=Tt([ge[s.wAp.DaysFormat],ge[s.wAp.DaysStandalone]],he);return Tt(Nt,Q)}(he,nt,ge)[V.getDay()];case mt.DayPeriods:const Ut=V.getHours(),mn=V.getMinutes();if(Nt){const ar=function wt(V){const he=(0,s.cg1)(V);return Pt(he),(he[s.wAp.ExtraData][2]||[]).map(ge=>"string"==typeof ge?Wt(ge):[Wt(ge[0]),Wt(ge[1])])}(he),Dr=function Je(V,he,Q){const ge=(0,s.cg1)(V);Pt(ge);const Nt=Tt([ge[s.wAp.ExtraData][0],ge[s.wAp.ExtraData][1]],he)||[];return Tt(Nt,Q)||[]}(he,nt,ge),er=ar.findIndex(Wr=>{if(Array.isArray(Wr)){const[yr,Gr]=Wr,Fi=Ut>=yr.hours&&mn>=yr.minutes,vi=Ut<Gr.hours||Ut===Gr.hours&&mn<Gr.minutes;if(yr.hours<Gr.hours){if(Fi&&vi)return!0}else if(Fi||vi)return!0}else if(Wr.hours===Ut&&Wr.minutes===mn)return!0;return!1});if(-1!==er)return Dr[er]}return function ct(V,he,Q){const ge=(0,s.cg1)(V),Nt=Tt([ge[s.wAp.DayPeriodsFormat],ge[s.wAp.DayPeriodsStandalone]],he);return Tt(Nt,Q)}(he,nt,ge)[Ut<12?0:1];case mt.Eras:return function Et(V,he){return Tt((0,s.cg1)(V)[s.wAp.Eras],he)}(he,ge)[V.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${Q}`)}}(nt,Nt,V,he,Q,ge)}}function ze(V){return function(he,Q,ge){const nt=-1*ge,Nt=it(Q,ce.MinusSign),Ut=nt>0?Math.floor(nt/60):Math.ceil(nt/60);switch(V){case Ie.Short:return(nt>=0?"+":"")+Re(Ut,2,Nt)+Re(Math.abs(nt%60),2,Nt);case Ie.ShortGMT:return"GMT"+(nt>=0?"+":"")+Re(Ut,1,Nt);case Ie.Long:return"GMT"+(nt>=0?"+":"")+Re(Ut,2,Nt)+":"+Re(Math.abs(nt%60),2,Nt);case Ie.Extended:return 0===ge?"Z":(nt>=0?"+":"")+Re(Ut,2,Nt)+":"+Re(Math.abs(nt%60),2,Nt);default:throw new Error(`Unknown zone width "${V}"`)}}}function be(V){return Me(V.getFullYear(),V.getMonth(),V.getDate()+(4-V.getDay()))}function at(V,he=!1){return function(Q,ge){let nt;if(he){const Nt=new Date(Q.getFullYear(),Q.getMonth(),1).getDay()-1,Ut=Q.getDate();nt=1+Math.floor((Ut+Nt)/7)}else{const Nt=be(Q),Ut=function Ue(V){const he=Me(V,0,1).getDay();return Me(V,0,1+(he<=4?4:11)-he)}(Nt.getFullYear()),mn=Nt.getTime()-Ut.getTime();nt=1+Math.round(mn/6048e5)}return Re(nt,V,it(ge,ce.MinusSign))}}function At(V,he=!1){return function(Q,ge){return Re(be(Q).getFullYear(),V,it(ge,ce.MinusSign),he)}}const Yt={};function Ln(V,he){V=V.replace(/:/g,"");const Q=Date.parse("Jan 01, 1970 00:00:00 "+V)/6e4;return isNaN(Q)?he:Q}function Tn(V){return V instanceof Date&&!isNaN(V.valueOf())}const jn=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function gn(V,he,Q,ge,nt,Nt,Ut=!1){let mn="",vr=!1;if(isFinite(V)){let ar=function Xr(V){let ge,nt,Nt,Ut,mn,he=Math.abs(V)+"",Q=0;for((nt=he.indexOf("."))>-1&&(he=he.replace(".","")),(Nt=he.search(/e/i))>0?(nt<0&&(nt=Nt),nt+=+he.slice(Nt+1),he=he.substring(0,Nt)):nt<0&&(nt=he.length),Nt=0;"0"===he.charAt(Nt);Nt++);if(Nt===(mn=he.length))ge=[0],nt=1;else{for(mn--;"0"===he.charAt(mn);)mn--;for(nt-=Nt,ge=[],Ut=0;Nt<=mn;Nt++,Ut++)ge[Ut]=Number(he.charAt(Nt))}return nt>22&&(ge=ge.splice(0,21),Q=nt-1,nt=1),{digits:ge,exponent:Q,integerLen:nt}}(V);Ut&&(ar=function ti(V){if(0===V.digits[0])return V;const he=V.digits.length-V.integerLen;return V.exponent?V.exponent+=2:(0===he?V.digits.push(0,0):1===he&&V.digits.push(0),V.integerLen+=2),V}(ar));let Dr=he.minInt,er=he.minFrac,Wr=he.maxFrac;if(Nt){const Hi=Nt.match(jn);if(null===Hi)throw new Error(`${Nt} is not a valid digit info`);const Oi=Hi[1],ls=Hi[3],Wo=Hi[5];null!=Oi&&(Dr=Cr(Oi)),null!=ls&&(er=Cr(ls)),null!=Wo?Wr=Cr(Wo):null!=ls&&er>Wr&&(Wr=er)}!function tr(V,he,Q){if(he>Q)throw new Error(`The minimum number of digits after fraction (${he}) is higher than the maximum (${Q}).`);let ge=V.digits,nt=ge.length-V.integerLen;const Nt=Math.min(Math.max(he,nt),Q);let Ut=Nt+V.integerLen,mn=ge[Ut];if(Ut>0){ge.splice(Math.max(V.integerLen,Ut));for(let er=Ut;er<ge.length;er++)ge[er]=0}else{nt=Math.max(0,nt),V.integerLen=1,ge.length=Math.max(1,Ut=Nt+1),ge[0]=0;for(let er=1;er<Ut;er++)ge[er]=0}if(mn>=5)if(Ut-1<0){for(let er=0;er>Ut;er--)ge.unshift(0),V.integerLen++;ge.unshift(1),V.integerLen++}else ge[Ut-1]++;for(;nt<Math.max(0,Nt);nt++)ge.push(0);let vr=0!==Nt;const ar=he+V.integerLen,Dr=ge.reduceRight(function(er,Wr,yr,Gr){return Gr[yr]=(Wr+=er)<10?Wr:Wr-10,vr&&(0===Gr[yr]&&yr>=ar?Gr.pop():vr=!1),Wr>=10?1:0},0);Dr&&(ge.unshift(Dr),V.integerLen++)}(ar,er,Wr);let yr=ar.digits,Gr=ar.integerLen;const Fi=ar.exponent;let vi=[];for(vr=yr.every(Hi=>!Hi);Gr<Dr;Gr++)yr.unshift(0);for(;Gr<0;Gr++)yr.unshift(0);Gr>0?vi=yr.splice(Gr,yr.length):(vi=yr,yr=[0]);const Si=[];for(yr.length>=he.lgSize&&Si.unshift(yr.splice(-he.lgSize,yr.length).join(""));yr.length>he.gSize;)Si.unshift(yr.splice(-he.gSize,yr.length).join(""));yr.length&&Si.unshift(yr.join("")),mn=Si.join(it(Q,ge)),vi.length&&(mn+=it(Q,nt)+vi.join("")),Fi&&(mn+=it(Q,ce.Exponential)+"+"+Fi)}else mn=it(Q,ce.Infinity);return mn=V<0&&!vr?he.negPre+mn+he.negSuf:he.posPre+mn+he.posSuf,mn}function $r(V,he="-"){const Q={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},ge=V.split(";"),nt=ge[0],Nt=ge[1],Ut=-1!==nt.indexOf(".")?nt.split("."):[nt.substring(0,nt.lastIndexOf("0")+1),nt.substring(nt.lastIndexOf("0")+1)],mn=Ut[0],vr=Ut[1]||"";Q.posPre=mn.substring(0,mn.indexOf("#"));for(let Dr=0;Dr<vr.length;Dr++){const er=vr.charAt(Dr);"0"===er?Q.minFrac=Q.maxFrac=Dr+1:"#"===er?Q.maxFrac=Dr+1:Q.posSuf+=er}const ar=mn.split(",");if(Q.gSize=ar[1]?ar[1].length:0,Q.lgSize=ar[2]||ar[1]?(ar[2]||ar[1]).length:0,Nt){const Dr=nt.length-Q.posPre.length-Q.posSuf.length,er=Nt.indexOf("#");Q.negPre=Nt.substring(0,er).replace(/'/g,""),Q.negSuf=Nt.slice(er+Dr).replace(/'/g,"")}else Q.negPre=he+Q.posPre,Q.negSuf=Q.posSuf;return Q}function Cr(V){const he=parseInt(V);if(isNaN(he))throw new Error("Invalid integer literal when parsing "+V);return he}function Nr(V,he,Q){return(0,s.dwT)(V,he,Q)}function zr(V,he){he=encodeURIComponent(he);for(const Q of V.split(";")){const ge=Q.indexOf("="),[nt,Nt]=-1==ge?[Q,""]:[Q.slice(0,ge),Q.slice(ge+1)];if(nt.trim()===he)return decodeURIComponent(Nt)}return null}let Xn=(()=>{class V{constructor(Q,ge,nt,Nt){this._iterableDiffers=Q,this._keyValueDiffers=ge,this._ngEl=nt,this._renderer=Nt,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(Q){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof Q?Q.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(Q){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof Q?Q.split(/\s+/):Q,this._rawClass&&((0,s.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const Q=this._iterableDiffer.diff(this._rawClass);Q&&this._applyIterableChanges(Q)}else if(this._keyValueDiffer){const Q=this._keyValueDiffer.diff(this._rawClass);Q&&this._applyKeyValueChanges(Q)}}_applyKeyValueChanges(Q){Q.forEachAddedItem(ge=>this._toggleClass(ge.key,ge.currentValue)),Q.forEachChangedItem(ge=>this._toggleClass(ge.key,ge.currentValue)),Q.forEachRemovedItem(ge=>{ge.previousValue&&this._toggleClass(ge.key,!1)})}_applyIterableChanges(Q){Q.forEachAddedItem(ge=>{if("string"!=typeof ge.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,s.AaK)(ge.item)}`);this._toggleClass(ge.item,!0)}),Q.forEachRemovedItem(ge=>this._toggleClass(ge.item,!1))}_applyClasses(Q){Q&&(Array.isArray(Q)||Q instanceof Set?Q.forEach(ge=>this._toggleClass(ge,!0)):Object.keys(Q).forEach(ge=>this._toggleClass(ge,!!Q[ge])))}_removeClasses(Q){Q&&(Array.isArray(Q)||Q instanceof Set?Q.forEach(ge=>this._toggleClass(ge,!1)):Object.keys(Q).forEach(ge=>this._toggleClass(ge,!1)))}_toggleClass(Q,ge){(Q=Q.trim())&&Q.split(/\s+/g).forEach(nt=>{ge?this._renderer.addClass(this._ngEl.nativeElement,nt):this._renderer.removeClass(this._ngEl.nativeElement,nt)})}}return V.\u0275fac=function(Q){return new(Q||V)(s.Y36(s.ZZ4),s.Y36(s.aQg),s.Y36(s.SBq),s.Y36(s.Qsj))},V.\u0275dir=s.lG2({type:V,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),V})();class di{constructor(he,Q,ge,nt){this.$implicit=he,this.ngForOf=Q,this.index=ge,this.count=nt}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 Kr=(()=>{class V{constructor(Q,ge,nt){this._viewContainer=Q,this._template=ge,this._differs=nt,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(Q){this._ngForOf=Q,this._ngForOfDirty=!0}set ngForTrackBy(Q){this._trackByFn=Q}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(Q){Q&&(this._template=Q)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const Q=this._ngForOf;!this._differ&&Q&&(this._differ=this._differs.find(Q).create(this.ngForTrackBy))}if(this._differ){const Q=this._differ.diff(this._ngForOf);Q&&this._applyChanges(Q)}}_applyChanges(Q){const ge=this._viewContainer;Q.forEachOperation((nt,Nt,Ut)=>{if(null==nt.previousIndex)ge.createEmbeddedView(this._template,new di(nt.item,this._ngForOf,-1,-1),null===Ut?void 0:Ut);else if(null==Ut)ge.remove(null===Nt?void 0:Nt);else if(null!==Nt){const mn=ge.get(Nt);ge.move(mn,Ut),ur(mn,nt)}});for(let nt=0,Nt=ge.length;nt<Nt;nt++){const mn=ge.get(nt).context;mn.index=nt,mn.count=Nt,mn.ngForOf=this._ngForOf}Q.forEachIdentityChange(nt=>{ur(ge.get(nt.currentIndex),nt)})}static ngTemplateContextGuard(Q,ge){return!0}}return V.\u0275fac=function(Q){return new(Q||V)(s.Y36(s.s_b),s.Y36(s.Rgc),s.Y36(s.ZZ4))},V.\u0275dir=s.lG2({type:V,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),V})();function ur(V,he){V.context.$implicit=he.item}let ir=(()=>{class V{constructor(Q,ge){this._viewContainer=Q,this._context=new li,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=ge}set ngIf(Q){this._context.$implicit=this._context.ngIf=Q,this._updateView()}set ngIfThen(Q){Sr("ngIfThen",Q),this._thenTemplateRef=Q,this._thenViewRef=null,this._updateView()}set ngIfElse(Q){Sr("ngIfElse",Q),this._elseTemplateRef=Q,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(Q,ge){return!0}}return V.\u0275fac=function(Q){return new(Q||V)(s.Y36(s.s_b),s.Y36(s.Rgc))},V.\u0275dir=s.lG2({type:V,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),V})();class li{constructor(){this.$implicit=null,this.ngIf=null}}function Sr(V,he){if(he&&!he.createEmbeddedView)throw new Error(`${V} must be a TemplateRef, but received '${(0,s.AaK)(he)}'.`)}class xr{constructor(he,Q){this._viewContainerRef=he,this._templateRef=Q,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(he){he&&!this._created?this.create():!he&&this._created&&this.destroy()}}let ni=(()=>{class V{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(Q){this._ngSwitch=Q,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(Q){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(Q)}_matchCase(Q){const ge=Q==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||ge,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),ge}_updateDefaultCases(Q){if(this._defaultViews&&Q!==this._defaultUsed){this._defaultUsed=Q;for(let ge=0;ge<this._defaultViews.length;ge++)this._defaultViews[ge].enforceState(Q)}}}return V.\u0275fac=function(Q){return new(Q||V)},V.\u0275dir=s.lG2({type:V,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),V})(),ri=(()=>{class V{constructor(Q,ge,nt){this.ngSwitch=nt,nt._addCase(),this._view=new xr(Q,ge)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return V.\u0275fac=function(Q){return new(Q||V)(s.Y36(s.s_b),s.Y36(s.Rgc),s.Y36(ni,9))},V.\u0275dir=s.lG2({type:V,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),V})(),bi=(()=>{class V{constructor(Q,ge,nt){nt._addDefault(new xr(Q,ge))}}return V.\u0275fac=function(Q){return new(Q||V)(s.Y36(s.s_b),s.Y36(s.Rgc),s.Y36(ni,9))},V.\u0275dir=s.lG2({type:V,selectors:[["","ngSwitchDefault",""]],standalone:!0}),V})(),Mi=(()=>{class V{constructor(Q,ge,nt){this._ngEl=Q,this._differs=ge,this._renderer=nt,this._ngStyle=null,this._differ=null}set ngStyle(Q){this._ngStyle=Q,!this._differ&&Q&&(this._differ=this._differs.find(Q).create())}ngDoCheck(){if(this._differ){const Q=this._differ.diff(this._ngStyle);Q&&this._applyChanges(Q)}}_setStyle(Q,ge){const[nt,Nt]=Q.split("."),Ut=-1===nt.indexOf("-")?void 0:s.JOm.DashCase;null!=ge?this._renderer.setStyle(this._ngEl.nativeElement,nt,Nt?`${ge}${Nt}`:ge,Ut):this._renderer.removeStyle(this._ngEl.nativeElement,nt,Ut)}_applyChanges(Q){Q.forEachRemovedItem(ge=>this._setStyle(ge.key,null)),Q.forEachAddedItem(ge=>this._setStyle(ge.key,ge.currentValue)),Q.forEachChangedItem(ge=>this._setStyle(ge.key,ge.currentValue))}}return V.\u0275fac=function(Q){return new(Q||V)(s.Y36(s.SBq),s.Y36(s.aQg),s.Y36(s.Qsj))},V.\u0275dir=s.lG2({type:V,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),V})(),hi=(()=>{class V{constructor(Q){this._viewContainerRef=Q,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(Q){if(Q.ngTemplateOutlet||Q.ngTemplateOutletInjector){const ge=this._viewContainerRef;if(this._viewRef&&ge.remove(ge.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:nt,ngTemplateOutletContext:Nt,ngTemplateOutletInjector:Ut}=this;this._viewRef=ge.createEmbeddedView(nt,Nt,Ut?{injector:Ut}:void 0)}else this._viewRef=null}else this._viewRef&&Q.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return V.\u0275fac=function(Q){return new(Q||V)(s.Y36(s.s_b))},V.\u0275dir=s.lG2({type:V,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[s.TTD]}),V})();function Te(V,he){return new s.vHH(2100,!1)}class tt{createSubscription(he,Q){return he.subscribe({next:Q,error:ge=>{throw ge}})}dispose(he){he.unsubscribe()}}class Ot{createSubscription(he,Q){return he.then(Q,ge=>{throw ge})}dispose(he){}}const Qt=new Ot,hn=new tt;let Bn=(()=>{class V{constructor(Q){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=Q}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(Q){return this._obj?Q!==this._obj?(this._dispose(),this.transform(Q)):this._latestValue:(Q&&this._subscribe(Q),this._latestValue)}_subscribe(Q){this._obj=Q,this._strategy=this._selectStrategy(Q),this._subscription=this._strategy.createSubscription(Q,ge=>this._updateLatestValue(Q,ge))}_selectStrategy(Q){if((0,s.QGY)(Q))return Qt;if((0,s.F4k)(Q))return hn;throw Te()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(Q,ge){Q===this._obj&&(this._latestValue=ge,this._ref.markForCheck())}}return V.\u0275fac=function(Q){return new(Q||V)(s.Y36(s.sBO,16))},V.\u0275pipe=s.Yjl({name:"async",type:V,pure:!1,standalone:!0}),V})(),dr=(()=>{class V{transform(Q){if(null==Q)return null;if("string"!=typeof Q)throw Te();return Q.toLowerCase()}}return V.\u0275fac=function(Q){return new(Q||V)},V.\u0275pipe=s.Yjl({name:"lowercase",type:V,pure:!0,standalone:!0}),V})();const sr=/(?:[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 Mn=(()=>{class V{transform(Q){if(null==Q)return null;if("string"!=typeof Q)throw Te();return Q.replace(sr,ge=>ge[0].toUpperCase()+ge.slice(1).toLowerCase())}}return V.\u0275fac=function(Q){return new(Q||V)},V.\u0275pipe=s.Yjl({name:"titlecase",type:V,pure:!0,standalone:!0}),V})(),Ir=(()=>{class V{transform(Q){if(null==Q)return null;if("string"!=typeof Q)throw Te();return Q.toUpperCase()}}return V.\u0275fac=function(Q){return new(Q||V)},V.\u0275pipe=s.Yjl({name:"uppercase",type:V,pure:!0,standalone:!0}),V})();const is=new s.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let Ui=(()=>{class V{constructor(Q,ge){this.locale=Q,this.defaultTimezone=ge}transform(Q,ge="mediumDate",nt,Nt){if(null==Q||""===Q||Q!=Q)return null;try{return Ct(Q,ge,Nt||this.locale,nt??this.defaultTimezone??void 0)}catch(Ut){throw Te()}}}return V.\u0275fac=function(Q){return new(Q||V)(s.Y36(s.soG,16),s.Y36(is,24))},V.\u0275pipe=s.Yjl({name:"date",type:V,pure:!0,standalone:!0}),V})(),Ls=(()=>{class V{constructor(Q){this.differs=Q,this.keyValues=[],this.compareFn=Or}transform(Q,ge=Or){if(!Q||!(Q instanceof Map)&&"object"!=typeof Q)return null;this.differ||(this.differ=this.differs.find(Q).create());const nt=this.differ.diff(Q),Nt=ge!==this.compareFn;return nt&&(this.keyValues=[],nt.forEachItem(Ut=>{this.keyValues.push(function Di(V,he){return{key:V,value:he}}(Ut.key,Ut.currentValue))})),(nt||Nt)&&(this.keyValues.sort(ge),this.compareFn=ge),this.keyValues}}return V.\u0275fac=function(Q){return new(Q||V)(s.Y36(s.aQg,16))},V.\u0275pipe=s.Yjl({name:"keyvalue",type:V,pure:!1,standalone:!0}),V})();function Or(V,he){const Q=V.key,ge=he.key;if(Q===ge)return 0;if(void 0===Q)return 1;if(void 0===ge)return-1;if(null===Q)return 1;if(null===ge)return-1;if("string"==typeof Q&&"string"==typeof ge)return Q<ge?-1:1;if("number"==typeof Q&&"number"==typeof ge)return Q-ge;if("boolean"==typeof Q&&"boolean"==typeof ge)return Q<ge?-1:1;const nt=String(Q),Nt=String(ge);return nt==Nt?0:nt<Nt?-1:1}let Gi=(()=>{class V{constructor(Q){this._locale=Q}transform(Q,ge,nt){if(!Qi(Q))return null;nt=nt||this._locale;try{return function yn(V,he,Q){return gn(V,$r(yt(he,k.Decimal),it(he,ce.MinusSign)),he,ce.Group,ce.Decimal,Q)}(Xi(Q),nt,ge)}catch(Nt){throw Te()}}}return V.\u0275fac=function(Q){return new(Q||V)(s.Y36(s.soG,16))},V.\u0275pipe=s.Yjl({name:"number",type:V,pure:!0,standalone:!0}),V})(),Vi=(()=>{class V{constructor(Q){this._locale=Q}transform(Q,ge,nt){if(!Qi(Q))return null;nt=nt||this._locale;try{return function _r(V,he,Q){return gn(V,$r(yt(he,k.Percent),it(he,ce.MinusSign)),he,ce.Group,ce.Decimal,Q,!0).replace(new RegExp("%","g"),it(he,ce.PercentSign))}(Xi(Q),nt,ge)}catch(Nt){throw Te()}}}return V.\u0275fac=function(Q){return new(Q||V)(s.Y36(s.soG,16))},V.\u0275pipe=s.Yjl({name:"percent",type:V,pure:!0,standalone:!0}),V})(),Ri=(()=>{class V{constructor(Q,ge="USD"){this._locale=Q,this._defaultCurrencyCode=ge}transform(Q,ge=this._defaultCurrencyCode,nt="symbol",Nt,Ut){if(!Qi(Q))return null;Ut=Ut||this._locale,"boolean"==typeof nt&&(nt=nt?"symbol":"code");let mn=ge||this._defaultCurrencyCode;"code"!==nt&&(mn="symbol"===nt||"symbol-narrow"===nt?function Dt(V,he,Q="en"){const ge=function sn(V){return(0,s.cg1)(V)[s.wAp.Currencies]}(Q)[V]||y[V]||[],nt=ge[1];return"narrow"===he&&"string"==typeof nt?nt:ge[0]||V}(mn,"symbol"===nt?"wide":"narrow",Ut):nt);try{return function Jn(V,he,Q,ge,nt){const Ut=$r(yt(he,k.Currency),it(he,ce.MinusSign));return Ut.minFrac=function Pe(V){let he;const Q=y[V];return Q&&(he=Q[2]),"number"==typeof he?he:2}(ge),Ut.maxFrac=Ut.minFrac,gn(V,Ut,he,ce.CurrencyGroup,ce.CurrencyDecimal,nt).replace("\xa4",Q).replace("\xa4","").trim()}(Xi(Q),Ut,mn,ge,Nt)}catch(vr){throw Te()}}}return V.\u0275fac=function(Q){return new(Q||V)(s.Y36(s.soG,16),s.Y36(s.EJc,16))},V.\u0275pipe=s.Yjl({name:"currency",type:V,pure:!0,standalone:!0}),V})();function Qi(V){return!(null==V||""===V||V!=V)}function Xi(V){if("string"==typeof V&&!isNaN(Number(V)-parseFloat(V)))return Number(V);if("number"!=typeof V)throw new Error(`${V} is not a number`);return V}let Ji=(()=>{class V{}return V.\u0275fac=function(Q){return new(Q||V)},V.\u0275mod=s.oAB({type:V}),V.\u0275inj=s.cJS({}),V})();const qi="browser";function ps(V){return V===qi}function Ds(V){return"server"===V}let De=(()=>{class V{}return V.\u0275prov=(0,s.Yz7)({token:V,providedIn:"root",factory:()=>new st((0,s.LFG)(I),window)}),V})();class st{constructor(he,Q){this.document=he,this.window=Q,this.offset=()=>[0,0]}setOffset(he){this.offset=Array.isArray(he)?()=>he:he}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(he){this.supportsScrolling()&&this.window.scrollTo(he[0],he[1])}scrollToAnchor(he){if(!this.supportsScrolling())return;const Q=function et(V,he){const Q=V.getElementById(he)||V.getElementsByName(he)[0];if(Q)return Q;if("function"==typeof V.createTreeWalker&&V.body&&(V.body.createShadowRoot||V.body.attachShadow)){const ge=V.createTreeWalker(V.body,NodeFilter.SHOW_ELEMENT);let nt=ge.currentNode;for(;nt;){const Nt=nt.shadowRoot;if(Nt){const Ut=Nt.getElementById(he)||Nt.querySelector(`[name="${he}"]`);if(Ut)return Ut}nt=ge.nextNode()}}return null}(this.document,he);Q&&(this.scrollToElement(Q),Q.focus())}setHistoryScrollRestoration(he){if(this.supportScrollRestoration()){const Q=this.window.history;Q&&Q.scrollRestoration&&(Q.scrollRestoration=he)}}scrollToElement(he){const Q=he.getBoundingClientRect(),ge=Q.left+this.window.pageXOffset,nt=Q.top+this.window.pageYOffset,Nt=this.offset();this.window.scrollTo(ge-Nt[0],nt-Nt[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const he=Ve(this.window.history)||Ve(Object.getPrototypeOf(this.window.history));return!(!he||!he.writable&&!he.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function Ve(V){return Object.getOwnPropertyDescriptor(V,"scrollRestoration")}class Ht{}},80529:(ut,fe,d)=>{"use strict";d.d(fe,{JF:()=>Pe,LE:()=>Z,TP:()=>$t,UA:()=>ce,WM:()=>_,Zn:()=>le,dt:()=>$,eN:()=>Qe});var s=d(36895),c=d(94650),A=d(39646),w=d(69751),N=d(24351),te=d(39300),I=d(54004);class b{}class p{}class _{constructor(Ie){this.normalizedNames=new Map,this.lazyUpdate=null,Ie?this.lazyInit="string"==typeof Ie?()=>{this.headers=new Map,Ie.split("\n").forEach(Le=>{const mt=Le.indexOf(":");if(mt>0){const Ct=Le.slice(0,mt),Me=Ct.toLowerCase(),qe=Le.slice(mt+1).trim();this.maybeSetNormalizedName(Ct,Me),this.headers.has(Me)?this.headers.get(Me).push(qe):this.headers.set(Me,[qe])}})}:()=>{this.headers=new Map,Object.keys(Ie).forEach(Le=>{let mt=Ie[Le];const Ct=Le.toLowerCase();"string"==typeof mt&&(mt=[mt]),mt.length>0&&(this.headers.set(Ct,mt),this.maybeSetNormalizedName(Le,Ct))})}:this.headers=new Map}has(Ie){return this.init(),this.headers.has(Ie.toLowerCase())}get(Ie){this.init();const Le=this.headers.get(Ie.toLowerCase());return Le&&Le.length>0?Le[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(Ie){return this.init(),this.headers.get(Ie.toLowerCase())||null}append(Ie,Le){return this.clone({name:Ie,value:Le,op:"a"})}set(Ie,Le){return this.clone({name:Ie,value:Le,op:"s"})}delete(Ie,Le){return this.clone({name:Ie,value:Le,op:"d"})}maybeSetNormalizedName(Ie,Le){this.normalizedNames.has(Le)||this.normalizedNames.set(Le,Ie)}init(){this.lazyInit&&(this.lazyInit instanceof _?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(Ie=>this.applyUpdate(Ie)),this.lazyUpdate=null))}copyFrom(Ie){Ie.init(),Array.from(Ie.headers.keys()).forEach(Le=>{this.headers.set(Le,Ie.headers.get(Le)),this.normalizedNames.set(Le,Ie.normalizedNames.get(Le))})}clone(Ie){const Le=new _;return Le.lazyInit=this.lazyInit&&this.lazyInit instanceof _?this.lazyInit:this,Le.lazyUpdate=(this.lazyUpdate||[]).concat([Ie]),Le}applyUpdate(Ie){const Le=Ie.name.toLowerCase();switch(Ie.op){case"a":case"s":let mt=Ie.value;if("string"==typeof mt&&(mt=[mt]),0===mt.length)return;this.maybeSetNormalizedName(Ie.name,Le);const Ct=("a"===Ie.op?this.headers.get(Le):void 0)||[];Ct.push(...mt),this.headers.set(Le,Ct);break;case"d":const Me=Ie.value;if(Me){let qe=this.headers.get(Le);if(!qe)return;qe=qe.filter(xe=>-1===Me.indexOf(xe)),0===qe.length?(this.headers.delete(Le),this.normalizedNames.delete(Le)):this.headers.set(Le,qe)}else this.headers.delete(Le),this.normalizedNames.delete(Le)}}forEach(Ie){this.init(),Array.from(this.normalizedNames.keys()).forEach(Le=>Ie(this.normalizedNames.get(Le),this.headers.get(Le)))}}class T{encodeKey(Ie){return G(Ie)}encodeValue(Ie){return G(Ie)}decodeKey(Ie){return decodeURIComponent(Ie)}decodeValue(Ie){return decodeURIComponent(Ie)}}const P=/%(\d[a-f0-9])/gi,B={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function G(Be){return encodeURIComponent(Be).replace(P,(Ie,Le)=>B[Le]??Ie)}function U(Be){return`${Be}`}class Z{constructor(Ie={}){if(this.updates=null,this.cloneFrom=null,this.encoder=Ie.encoder||new T,Ie.fromString){if(Ie.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function W(Be,Ie){const Le=new Map;return Be.length>0&&Be.replace(/^\?/,"").split("&").forEach(Ct=>{const Me=Ct.indexOf("="),[qe,xe]=-1==Me?[Ie.decodeKey(Ct),""]:[Ie.decodeKey(Ct.slice(0,Me)),Ie.decodeValue(Ct.slice(Me+1))],Re=Le.get(qe)||[];Re.push(xe),Le.set(qe,Re)}),Le}(Ie.fromString,this.encoder)}else Ie.fromObject?(this.map=new Map,Object.keys(Ie.fromObject).forEach(Le=>{const mt=Ie.fromObject[Le],Ct=Array.isArray(mt)?mt.map(U):[U(mt)];this.map.set(Le,Ct)})):this.map=null}has(Ie){return this.init(),this.map.has(Ie)}get(Ie){this.init();const Le=this.map.get(Ie);return Le?Le[0]:null}getAll(Ie){return this.init(),this.map.get(Ie)||null}keys(){return this.init(),Array.from(this.map.keys())}append(Ie,Le){return this.clone({param:Ie,value:Le,op:"a"})}appendAll(Ie){const Le=[];return Object.keys(Ie).forEach(mt=>{const Ct=Ie[mt];Array.isArray(Ct)?Ct.forEach(Me=>{Le.push({param:mt,value:Me,op:"a"})}):Le.push({param:mt,value:Ct,op:"a"})}),this.clone(Le)}set(Ie,Le){return this.clone({param:Ie,value:Le,op:"s"})}delete(Ie,Le){return this.clone({param:Ie,value:Le,op:"d"})}toString(){return this.init(),this.keys().map(Ie=>{const Le=this.encoder.encodeKey(Ie);return this.map.get(Ie).map(mt=>Le+"="+this.encoder.encodeValue(mt)).join("&")}).filter(Ie=>""!==Ie).join("&")}clone(Ie){const Le=new Z({encoder:this.encoder});return Le.cloneFrom=this.cloneFrom||this,Le.updates=(this.updates||[]).concat(Ie),Le}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(Ie=>this.map.set(Ie,this.cloneFrom.map.get(Ie))),this.updates.forEach(Ie=>{switch(Ie.op){case"a":case"s":const Le=("a"===Ie.op?this.map.get(Ie.param):void 0)||[];Le.push(U(Ie.value)),this.map.set(Ie.param,Le);break;case"d":if(void 0===Ie.value){this.map.delete(Ie.param);break}{let mt=this.map.get(Ie.param)||[];const Ct=mt.indexOf(U(Ie.value));-1!==Ct&&mt.splice(Ct,1),mt.length>0?this.map.set(Ie.param,mt):this.map.delete(Ie.param)}}}),this.cloneFrom=this.updates=null)}}class F{constructor(){this.map=new Map}set(Ie,Le){return this.map.set(Ie,Le),this}get(Ie){return this.map.has(Ie)||this.map.set(Ie,Ie.defaultValue()),this.map.get(Ie)}delete(Ie){return this.map.delete(Ie),this}has(Ie){return this.map.has(Ie)}keys(){return this.map.keys()}}function ee(Be){return typeof ArrayBuffer<"u"&&Be instanceof ArrayBuffer}function oe(Be){return typeof Blob<"u"&&Be instanceof Blob}function X(Be){return typeof FormData<"u"&&Be instanceof FormData}class k{constructor(Ie,Le,mt,Ct){let Me;if(this.url=Le,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=Ie.toUpperCase(),function Y(Be){switch(Be){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Ct?(this.body=void 0!==mt?mt:null,Me=Ct):Me=mt,Me&&(this.reportProgress=!!Me.reportProgress,this.withCredentials=!!Me.withCredentials,Me.responseType&&(this.responseType=Me.responseType),Me.headers&&(this.headers=Me.headers),Me.context&&(this.context=Me.context),Me.params&&(this.params=Me.params)),this.headers||(this.headers=new _),this.context||(this.context=new F),this.params){const qe=this.params.toString();if(0===qe.length)this.urlWithParams=Le;else{const xe=Le.indexOf("?");this.urlWithParams=Le+(-1===xe?"?":xe<Le.length-1?"&":"")+qe}}else this.params=new Z,this.urlWithParams=Le}serializeBody(){return null===this.body?null:ee(this.body)||oe(this.body)||X(this.body)||function y(Be){return typeof URLSearchParams<"u"&&Be instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof Z?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||X(this.body)?null:oe(this.body)?this.body.type||null:ee(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Z?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(Ie={}){const Le=Ie.method||this.method,mt=Ie.url||this.url,Ct=Ie.responseType||this.responseType,Me=void 0!==Ie.body?Ie.body:this.body,qe=void 0!==Ie.withCredentials?Ie.withCredentials:this.withCredentials,xe=void 0!==Ie.reportProgress?Ie.reportProgress:this.reportProgress;let Re=Ie.headers||this.headers,bt=Ie.params||this.params;const Mt=Ie.context??this.context;return void 0!==Ie.setHeaders&&(Re=Object.keys(Ie.setHeaders).reduce((un,an)=>un.set(an,Ie.setHeaders[an]),Re)),Ie.setParams&&(bt=Object.keys(Ie.setParams).reduce((un,an)=>un.set(an,Ie.setParams[an]),bt)),new k(Le,mt,Me,{params:bt,headers:Re,context:Mt,reportProgress:xe,responseType:Ct,withCredentials:qe})}}var $=(()=>(($=$||{})[$.Sent=0]="Sent",$[$.UploadProgress=1]="UploadProgress",$[$.ResponseHeader=2]="ResponseHeader",$[$.DownloadProgress=3]="DownloadProgress",$[$.Response=4]="Response",$[$.User=5]="User",$))();class J{constructor(Ie,Le=200,mt="OK"){this.headers=Ie.headers||new _,this.status=void 0!==Ie.status?Ie.status:Le,this.statusText=Ie.statusText||mt,this.url=Ie.url||null,this.ok=this.status>=200&&this.status<300}}class L extends J{constructor(Ie={}){super(Ie),this.type=$.ResponseHeader}clone(Ie={}){return new L({headers:Ie.headers||this.headers,status:void 0!==Ie.status?Ie.status:this.status,statusText:Ie.statusText||this.statusText,url:Ie.url||this.url||void 0})}}class le extends J{constructor(Ie={}){super(Ie),this.type=$.Response,this.body=void 0!==Ie.body?Ie.body:null}clone(Ie={}){return new le({body:void 0!==Ie.body?Ie.body:this.body,headers:Ie.headers||this.headers,status:void 0!==Ie.status?Ie.status:this.status,statusText:Ie.statusText||this.statusText,url:Ie.url||this.url||void 0})}}class ce extends J{constructor(Ie){super(Ie,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${Ie.url||"(unknown url)"}`:`Http failure response for ${Ie.url||"(unknown url)"}: ${Ie.status} ${Ie.statusText}`,this.error=Ie.error||null}}function Se(Be,Ie){return{body:Ie,headers:Be.headers,context:Be.context,observe:Be.observe,params:Be.params,reportProgress:Be.reportProgress,responseType:Be.responseType,withCredentials:Be.withCredentials}}let Qe=(()=>{class Be{constructor(Le){this.handler=Le}request(Le,mt,Ct={}){let Me;if(Le instanceof k)Me=Le;else{let Re,bt;Re=Ct.headers instanceof _?Ct.headers:new _(Ct.headers),Ct.params&&(bt=Ct.params instanceof Z?Ct.params:new Z({fromObject:Ct.params})),Me=new k(Le,mt,void 0!==Ct.body?Ct.body:null,{headers:Re,context:Ct.context,params:bt,reportProgress:Ct.reportProgress,responseType:Ct.responseType||"json",withCredentials:Ct.withCredentials})}const qe=(0,A.of)(Me).pipe((0,N.b)(Re=>this.handler.handle(Re)));if(Le instanceof k||"events"===Ct.observe)return qe;const xe=qe.pipe((0,te.h)(Re=>Re instanceof le));switch(Ct.observe||"body"){case"body":switch(Me.responseType){case"arraybuffer":return xe.pipe((0,I.U)(Re=>{if(null!==Re.body&&!(Re.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Re.body}));case"blob":return xe.pipe((0,I.U)(Re=>{if(null!==Re.body&&!(Re.body instanceof Blob))throw new Error("Response is not a Blob.");return Re.body}));case"text":return xe.pipe((0,I.U)(Re=>{if(null!==Re.body&&"string"!=typeof Re.body)throw new Error("Response is not a string.");return Re.body}));default:return xe.pipe((0,I.U)(Re=>Re.body))}case"response":return xe;default:throw new Error(`Unreachable: unhandled observe type ${Ct.observe}}`)}}delete(Le,mt={}){return this.request("DELETE",Le,mt)}get(Le,mt={}){return this.request("GET",Le,mt)}head(Le,mt={}){return this.request("HEAD",Le,mt)}jsonp(Le,mt){return this.request("JSONP",Le,{params:(new Z).append(mt,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Le,mt={}){return this.request("OPTIONS",Le,mt)}patch(Le,mt,Ct={}){return this.request("PATCH",Le,Se(Ct,mt))}post(Le,mt,Ct={}){return this.request("POST",Le,Se(Ct,mt))}put(Le,mt,Ct={}){return this.request("PUT",Le,Se(Ct,mt))}}return Be.\u0275fac=function(Le){return new(Le||Be)(c.LFG(b))},Be.\u0275prov=c.Yz7({token:Be,factory:Be.\u0275fac}),Be})();class ct{constructor(Ie,Le){this.next=Ie,this.interceptor=Le}handle(Ie){return this.interceptor.intercept(Ie,this.next)}}const $t=new c.OlP("HTTP_INTERCEPTORS");let $e=(()=>{class Be{intercept(Le,mt){return mt.handle(Le)}}return Be.\u0275fac=function(Le){return new(Le||Be)},Be.\u0275prov=c.Yz7({token:Be,factory:Be.\u0275fac}),Be})();const Ft=/^\)\]\}',?\n/;let sn=(()=>{class Be{constructor(Le){this.xhrFactory=Le}handle(Le){if("JSONP"===Le.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new w.y(mt=>{const Ct=this.xhrFactory.build();if(Ct.open(Le.method,Le.urlWithParams),Le.withCredentials&&(Ct.withCredentials=!0),Le.headers.forEach((dt,ze)=>Ct.setRequestHeader(dt,ze.join(","))),Le.headers.has("Accept")||Ct.setRequestHeader("Accept","application/json, text/plain, */*"),!Le.headers.has("Content-Type")){const dt=Le.detectContentTypeHeader();null!==dt&&Ct.setRequestHeader("Content-Type",dt)}if(Le.responseType){const dt=Le.responseType.toLowerCase();Ct.responseType="json"!==dt?dt:"text"}const Me=Le.serializeBody();let qe=null;const xe=()=>{if(null!==qe)return qe;const dt=Ct.statusText||"OK",ze=new _(Ct.getAllResponseHeaders()),Ge=function Vt(Be){return"responseURL"in Be&&Be.responseURL?Be.responseURL:/^X-Request-URL:/m.test(Be.getAllResponseHeaders())?Be.getResponseHeader("X-Request-URL"):null}(Ct)||Le.url;return qe=new L({headers:ze,status:Ct.status,statusText:dt,url:Ge}),qe},Re=()=>{let{headers:dt,status:ze,statusText:Ge,url:Oe}=xe(),Ue=null;204!==ze&&(Ue=typeof Ct.response>"u"?Ct.responseText:Ct.response),0===ze&&(ze=Ue?200:0);let be=ze>=200&&ze<300;if("json"===Le.responseType&&"string"==typeof Ue){const at=Ue;Ue=Ue.replace(Ft,"");try{Ue=""!==Ue?JSON.parse(Ue):null}catch(At){Ue=at,be&&(be=!1,Ue={error:At,text:Ue})}}be?(mt.next(new le({body:Ue,headers:dt,status:ze,statusText:Ge,url:Oe||void 0})),mt.complete()):mt.error(new ce({error:Ue,headers:dt,status:ze,statusText:Ge,url:Oe||void 0}))},bt=dt=>{const{url:ze}=xe(),Ge=new ce({error:dt,status:Ct.status||0,statusText:Ct.statusText||"Unknown Error",url:ze||void 0});mt.error(Ge)};let Mt=!1;const un=dt=>{Mt||(mt.next(xe()),Mt=!0);let ze={type:$.DownloadProgress,loaded:dt.loaded};dt.lengthComputable&&(ze.total=dt.total),"text"===Le.responseType&&!!Ct.responseText&&(ze.partialText=Ct.responseText),mt.next(ze)},an=dt=>{let ze={type:$.UploadProgress,loaded:dt.loaded};dt.lengthComputable&&(ze.total=dt.total),mt.next(ze)};return Ct.addEventListener("load",Re),Ct.addEventListener("error",bt),Ct.addEventListener("timeout",bt),Ct.addEventListener("abort",bt),Le.reportProgress&&(Ct.addEventListener("progress",un),null!==Me&&Ct.upload&&Ct.upload.addEventListener("progress",an)),Ct.send(Me),mt.next({type:$.Sent}),()=>{Ct.removeEventListener("error",bt),Ct.removeEventListener("abort",bt),Ct.removeEventListener("load",Re),Ct.removeEventListener("timeout",bt),Le.reportProgress&&(Ct.removeEventListener("progress",un),null!==Me&&Ct.upload&&Ct.upload.removeEventListener("progress",an)),Ct.readyState!==Ct.DONE&&Ct.abort()}})}}return Be.\u0275fac=function(Le){return new(Le||Be)(c.LFG(s.JF))},Be.\u0275prov=c.Yz7({token:Be,factory:Be.\u0275fac}),Be})();const nn=new c.OlP("XSRF_COOKIE_NAME"),Pt=new c.OlP("XSRF_HEADER_NAME");class wt{}let Je=(()=>{class Be{constructor(Le,mt,Ct){this.doc=Le,this.platform=mt,this.cookieName=Ct,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Le=this.doc.cookie||"";return Le!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,s.Mx)(Le,this.cookieName),this.lastCookieString=Le),this.lastToken}}return Be.\u0275fac=function(Le){return new(Le||Be)(c.LFG(s.K0),c.LFG(c.Lbi),c.LFG(nn))},Be.\u0275prov=c.Yz7({token:Be,factory:Be.\u0275fac}),Be})(),_t=(()=>{class Be{constructor(Le,mt){this.tokenService=Le,this.headerName=mt}intercept(Le,mt){const Ct=Le.url.toLowerCase();if("GET"===Le.method||"HEAD"===Le.method||Ct.startsWith("http://")||Ct.startsWith("https://"))return mt.handle(Le);const Me=this.tokenService.getToken();return null!==Me&&!Le.headers.has(this.headerName)&&(Le=Le.clone({headers:Le.headers.set(this.headerName,Me)})),mt.handle(Le)}}return Be.\u0275fac=function(Le){return new(Le||Be)(c.LFG(wt),c.LFG(Pt))},Be.\u0275prov=c.Yz7({token:Be,factory:Be.\u0275fac}),Be})(),Tt=(()=>{class Be{constructor(Le,mt){this.backend=Le,this.injector=mt,this.chain=null}handle(Le){if(null===this.chain){const mt=this.injector.get($t,[]);this.chain=mt.reduceRight((Ct,Me)=>new ct(Ct,Me),this.backend)}return this.chain.handle(Le)}}return Be.\u0275fac=function(Le){return new(Le||Be)(c.LFG(p),c.LFG(c.zs3))},Be.\u0275prov=c.Yz7({token:Be,factory:Be.\u0275fac}),Be})(),pe=(()=>{class Be{static disable(){return{ngModule:Be,providers:[{provide:_t,useClass:$e}]}}static withOptions(Le={}){return{ngModule:Be,providers:[Le.cookieName?{provide:nn,useValue:Le.cookieName}:[],Le.headerName?{provide:Pt,useValue:Le.headerName}:[]]}}}return Be.\u0275fac=function(Le){return new(Le||Be)},Be.\u0275mod=c.oAB({type:Be}),Be.\u0275inj=c.cJS({providers:[_t,{provide:$t,useExisting:_t,multi:!0},{provide:wt,useClass:Je},{provide:nn,useValue:"XSRF-TOKEN"},{provide:Pt,useValue:"X-XSRF-TOKEN"}]}),Be})(),Pe=(()=>{class Be{}return Be.\u0275fac=function(Le){return new(Le||Be)},Be.\u0275mod=c.oAB({type:Be}),Be.\u0275inj=c.cJS({providers:[Qe,{provide:b,useClass:Tt},sn,{provide:p,useExisting:sn}],imports:[pe.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),Be})()},94650:(ut,fe,d)=>{"use strict";d.d(fe,{$8M:()=>To,$Z:()=>Cp,AFp:()=>G_,ALo:()=>r_,AaK:()=>b,Akn:()=>Fo,AsE:()=>kh,B6R:()=>Ue,BQk:()=>gd,CHM:()=>vo,CRH:()=>m_,CZH:()=>Md,CqO:()=>pg,D6c:()=>JA,DdM:()=>$m,Dn7:()=>o_,EJc:()=>fA,EiD:()=>yc,EpF:()=>hg,Ez6:()=>Ne,F$t:()=>yg,F4k:()=>fg,FYo:()=>oi,FiY:()=>Ca,G48:()=>NA,Gf:()=>p_,GfV:()=>Bl,GkF:()=>Ih,Gpc:()=>v,Gre:()=>Qg,HOy:()=>Gh,HTZ:()=>Qm,Hh0:()=>Xm,Hsn:()=>Eg,IIB:()=>sA,Ikx:()=>Vh,JOm:()=>ca,JVY:()=>uu,Jf7:()=>Uf,KtG:()=>Ns,L6J:()=>lA,L6k:()=>du,LAX:()=>hu,LFG:()=>qr,LSH:()=>Il,Lbi:()=>cA,Lck:()=>dD,MAs:()=>dg,MMx:()=>Zh,NdJ:()=>Ph,O4$:()=>mn,OlP:()=>Tr,Oqu:()=>Bh,PSE:()=>qA,PXZ:()=>IA,Q6J:()=>Th,QGY:()=>Oh,QP$:()=>Tn,QbO:()=>uA,Qsj:()=>ei,R0b:()=>go,RDi:()=>ac,Rgc:()=>Vu,SBq:()=>kr,Sil:()=>gA,Suo:()=>g_,TTD:()=>Vi,TgZ:()=>hd,Tol:()=>Fg,Udp:()=>Nh,VKq:()=>jm,W1O:()=>E_,WFA:()=>Rh,WLB:()=>Wm,X6Q:()=>LA,XFs:()=>Tt,Xpm:()=>Oe,Xts:()=>Pl,Y36:()=>Nc,YKP:()=>Nm,YNc:()=>ug,Yjl:()=>Hr,Yz7:()=>me,Z0I:()=>Gt,ZZ4:()=>Cf,_Bn:()=>Lm,_UZ:()=>Mh,_Vd:()=>Vn,_c5:()=>XA,_uU:()=>$g,aQg:()=>Sf,c2e:()=>dA,cJS:()=>it,cg1:()=>$h,d8E:()=>Hh,dDg:()=>SA,dqk:()=>Ct,dwT:()=>hE,eBb:()=>fc,eFA:()=>q_,ekj:()=>xh,eoX:()=>X_,evT:()=>Gf,f3M:()=>_l,g9A:()=>H_,gM2:()=>a_,gxx:()=>Rl,h0i:()=>Xc,hGG:()=>ZA,hij:()=>_d,i9L:()=>Wa,iGM:()=>f_,ifc:()=>mt,ip1:()=>U_,jDz:()=>Fm,kEZ:()=>zm,kL8:()=>sm,kYT:()=>Yt,kcU:()=>ar,l5B:()=>Km,lG2:()=>Ln,lcZ:()=>i_,lnq:()=>Uh,lqb:()=>Lo,lri:()=>Y_,mCW:()=>oa,n5z:()=>dl,n_E:()=>Ad,oAB:()=>At,oJD:()=>Dc,oxw:()=>vg,pB0:()=>fu,pfw:()=>aA,q3G:()=>si,qLn:()=>Rn,qOj:()=>Dh,qZA:()=>fd,qbA:()=>Ym,qzn:()=>Ro,rFY:()=>Zm,rWj:()=>Q_,r_U:()=>oA,s9C:()=>wh,sBO:()=>xA,sIi:()=>wu,s_b:()=>Sd,soG:()=>Id,tBr:()=>Aa,tb:()=>$_,tp0:()=>Ta,uIk:()=>Sh,uOi:()=>Ol,vHH:()=>B,vpe:()=>fa,wAp:()=>Gn,xi3:()=>s_,xp6:()=>up,ynx:()=>pd,z2F:()=>Od,z3N:()=>ws,zSh:()=>la,zs3:()=>Vl});var s=d(77579),c=d(50727),A=d(69751),w=d(56451),N=d(13099);function te(e){for(let t in e)if(e[t]===te)return t;throw Error("Could not find renamed property on target object.")}function I(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function b(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(b).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function p(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const _=te({__forward_ref__:te});function v(e){return e.__forward_ref__=v,e.toString=function(){return b(this())},e}function T(e){return W(e)?e():e}function W(e){return"function"==typeof e&&e.hasOwnProperty(_)&&e.__forward_ref__===v}class B extends Error{constructor(t,n){super(function G(e,t){return`NG0${Math.abs(e)}${t?": "+t.trim():""}`}(t,n)),this.code=t}}function U(e){return"string"==typeof e?e:null==e?"":String(e)}function ee(e,t){throw new B(-201,!1)}function $e(e,t){null==e&&function Et(e,t,n,i){throw new Error(`ASSERTION ERROR: ${e}`+(null==i?"":` [Expected=> ${n} ${i} ${t} <=Actual]`))}(t,e,null,"!=")}function me(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}const Ne=me;function it(e){return{providers:e.providers||[],imports:e.imports||[]}}function yt(e){return Ft(e,Pt)||Ft(e,Je)}function Gt(e){return null!==yt(e)}function Ft(e,t){return e.hasOwnProperty(t)?e[t]:null}function nn(e){return e&&(e.hasOwnProperty(wt)||e.hasOwnProperty(_t))?e[wt]:null}const Pt=te({\u0275prov:te}),wt=te({\u0275inj:te}),Je=te({ngInjectableDef:te}),_t=te({ngInjectorDef:te});var Tt=(()=>((Tt=Tt||{})[Tt.Default=0]="Default",Tt[Tt.Host=1]="Host",Tt[Tt.Self=2]="Self",Tt[Tt.SkipSelf=4]="SkipSelf",Tt[Tt.Optional=8]="Optional",Tt))();let Wt;function pe(e){const t=Wt;return Wt=e,t}function Pe(e,t,n){const i=yt(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&Tt.Optional?null:void 0!==t?t:void ee(b(e))}function vt(e){return{toString:e}.toString()}var Be=(()=>((Be=Be||{})[Be.OnPush=0]="OnPush",Be[Be.Default=1]="Default",Be))(),mt=(()=>{return(e=mt||(mt={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",mt;var e})();const Ct=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),xe={},Re=[],bt=te({\u0275cmp:te}),Mt=te({\u0275dir:te}),un=te({\u0275pipe:te}),an=te({\u0275mod:te}),dt=te({\u0275fac:te}),ze=te({__NG_ELEMENT_ID__:te});let Ge=0;function Oe(e){return vt(()=>{const n=!0===e.standalone,i={},a={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:i,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===Be.OnPush,directiveDefs:null,pipeDefs:null,standalone:n,dependencies:n&&e.dependencies||null,getStandaloneInjector:null,selectors:e.selectors||Re,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||mt.Emulated,id:"c"+Ge++,styles:e.styles||Re,_:null,setInput:null,schemas:e.schemas||null,tView:null},f=e.dependencies,E=e.features;return a.inputs=En(e.inputs,i),a.outputs=En(e.outputs),E&&E.forEach(R=>R(a)),a.directiveDefs=f?()=>("function"==typeof f?f():f).map(be).filter(at):null,a.pipeDefs=f?()=>("function"==typeof f?f():f).map(zn).filter(at):null,a})}function Ue(e,t,n){const i=e.\u0275cmp;i.directiveDefs=()=>("function"==typeof t?t():t).map(be),i.pipeDefs=()=>("function"==typeof n?n():n).map(zn)}function be(e){return On(e)||Er(e)}function at(e){return null!==e}function At(e){return vt(()=>({type:e.type,bootstrap:e.bootstrap||Re,declarations:e.declarations||Re,imports:e.imports||Re,exports:e.exports||Re,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Yt(e,t){return vt(()=>{const n=jn(e,!0);n.declarations=t.declarations||Re,n.imports=t.imports||Re,n.exports=t.exports||Re})}function En(e,t){if(null==e)return xe;const n={};for(const i in e)if(e.hasOwnProperty(i)){let a=e[i],f=a;Array.isArray(a)&&(f=a[1],a=a[0]),n[a]=i,t&&(t[a]=f)}return n}const Ln=Oe;function Hr(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function On(e){return e[bt]||null}function Er(e){return e[Mt]||null}function zn(e){return e[un]||null}function Tn(e){const t=On(e)||Er(e)||zn(e);return null!==t&&t.standalone}function jn(e,t){const n=e[an]||null;if(!n&&!0===t)throw new Error(`Type ${b(e)} does not have '\u0275mod' property.`);return n}function Sr(e){return Array.isArray(e)&&"object"==typeof e[1]}function xr(e){return Array.isArray(e)&&!0===e[1]}function ni(e){return 0!=(8&e.flags)}function ri(e){return 2==(2&e.flags)}function bi(e){return 1==(1&e.flags)}function Fr(e){return null!==e.template}function Yi(e){return 0!=(256&e[2])}function Or(e,t){return e.hasOwnProperty(dt)?e[dt]:null}class Gi{constructor(t,n,i){this.previousValue=t,this.currentValue=n,this.firstChange=i}isFirstChange(){return this.firstChange}}function Vi(){return Ri}function Ri(e){return e.type.prototype.ngOnChanges&&(e.setInput=Xi),Qi}function Qi(){const e=Zi(this),t=e?.current;if(t){const n=e.previous;if(n===xe)e.previous=t;else for(let i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function Xi(e,t,n,i){const a=Zi(e)||function Ji(e,t){return e[fs]=t}(e,{previous:xe,current:null}),f=a.current||(a.current={}),E=a.previous,R=this.declaredInputs[n],H=E[R];f[R]=new Gi(H&&H.currentValue,t,E===xe),e[i]=t}Vi.ngInherit=!0;const fs="__ngSimpleChanges__";function Zi(e){return e[fs]||null}function or(e){for(;Array.isArray(e);)e=e[0];return e}function Ve(e,t){return or(t[e])}function et(e,t){return or(t[e.index])}function Ht(e,t){return e.data[t]}function tn(e,t){return e[t]}function ht(e,t){const n=t[e];return Sr(n)?n:n[0]}function In(e){return 4==(4&e[2])}function $n(e){return 64==(64&e[2])}function qn(e,t){return null==t?null:e[t]}function gr(e){e[18]=0}function Pr(e,t){e[5]+=t;let n=e,i=e[3];for(;null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}const Dn={lFrame:Eo(null),bindingsEnabled:!0};function Ur(){return Dn.bindingsEnabled}function Kt(){return Dn.lFrame.lView}function Wn(){return Dn.lFrame.tView}function vo(e){return Dn.lFrame.contextLView=e,e[8]}function Ns(e){return Dn.lFrame.contextLView=null,e}function Br(){let e=se();for(;null!==e&&64===e.type;)e=e.parent;return e}function se(){return Dn.lFrame.currentTNode}function j(e,t){const n=Dn.lFrame;n.currentTNode=e,n.isParent=t}function Ee(){return Dn.lFrame.isParent}function xt(){Dn.lFrame.isParent=!1}function Rr(){const e=Dn.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Ci(){return Dn.lFrame.bindingIndex}function As(){return Dn.lFrame.bindingIndex++}function xi(e){const t=Dn.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Vo(e,t){const n=Dn.lFrame;n.bindingIndex=n.bindingRootIndex=e,Ho(t)}function Ho(e){Dn.lFrame.currentDirectiveIndex=e}function to(e){const t=Dn.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function Fs(){return Dn.lFrame.currentQueryIndex}function as(e){Dn.lFrame.currentQueryIndex=e}function Ss(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function $o(e,t,n){if(n&Tt.SkipSelf){let a=t,f=e;for(;!(a=a.parent,null!==a||n&Tt.Host||(a=Ss(f),null===a||(f=f[15],10&a.type))););if(null===a)return!1;t=a,e=f}const i=Dn.lFrame=yo();return i.currentTNode=t,i.lView=e,!0}function jo(e){const t=yo(),n=e[1];Dn.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function yo(){const e=Dn.lFrame,t=null===e?null:e.child;return null===t?Eo(e):t}function Eo(e){const t={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:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function Ts(){const e=Dn.lFrame;return Dn.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const V=Ts;function he(){const e=Ts();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function nt(){return Dn.lFrame.selectedIndex}function Nt(e){Dn.lFrame.selectedIndex=e}function Ut(){const e=Dn.lFrame;return Ht(e.tView,e.selectedIndex)}function mn(){Dn.lFrame.currentNamespace="svg"}function ar(){!function Dr(){Dn.lFrame.currentNamespace=null}()}function yr(e,t){for(let n=t.directiveStart,i=t.directiveEnd;n<i;n++){const f=e.data[n].type.prototype,{ngAfterContentInit:E,ngAfterContentChecked:R,ngAfterViewInit:H,ngAfterViewChecked:ae,ngOnDestroy:ye}=f;E&&(e.contentHooks||(e.contentHooks=[])).push(-n,E),R&&((e.contentHooks||(e.contentHooks=[])).push(n,R),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,R)),H&&(e.viewHooks||(e.viewHooks=[])).push(-n,H),ae&&((e.viewHooks||(e.viewHooks=[])).push(n,ae),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,ae)),null!=ye&&(e.destroyHooks||(e.destroyHooks=[])).push(n,ye)}}function Gr(e,t,n){Si(e,t,3,n)}function Fi(e,t,n,i){(3&e[2])===n&&Si(e,t,n,i)}function vi(e,t){let n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function Si(e,t,n,i){const f=i??-1,E=t.length-1;let R=0;for(let H=void 0!==i?65535&e[18]:0;H<E;H++)if("number"==typeof t[H+1]){if(R=t[H],null!=i&&R>=i)break}else t[H]<0&&(e[18]+=65536),(R<f||-1==f)&&(Hi(e,n,t,H),e[18]=(4294901760&e[18])+H+2),H++}function Hi(e,t,n,i){const a=n[i]<0,f=n[i+1],R=e[a?-n[i]:n[i]];if(a){if(e[2]>>11<e[18]>>16&&(3&e[2])===t){e[2]+=2048;try{f.call(R)}finally{}}}else try{f.call(R)}finally{}}class ls{constructor(t,n,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i}}function bs(e,t,n){let i=0;for(;i<n.length;){const a=n[i];if("number"==typeof a){if(0!==a)break;i++;const f=n[i++],E=n[i++],R=n[i++];e.setAttribute(t,E,R,f)}else{const f=a,E=n[++i];pa(f)?e.setProperty(t,f,E):e.setAttribute(t,f,E),i++}}return i}function Qr(e){return 3===e||4===e||6===e}function pa(e){return 64===e.charCodeAt(0)}function Ms(e,t){if(null!==t&&0!==t.length)if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let i=0;i<t.length;i++){const a=t[i];"number"==typeof a?n=a:0===n||Ko(e,n,a,null,-1===n||2===n?t[++i]:null)}}return e}function Ko(e,t,n,i,a){let f=0,E=e.length;if(-1===t)E=-1;else for(;f<e.length;){const R=e[f++];if("number"==typeof R){if(R===t){E=-1;break}if(R>t){E=f-1;break}}}for(;f<e.length;){const R=e[f];if("number"==typeof R)break;if(R===n){if(null===i)return void(null!==a&&(e[f+1]=a));if(i===e[f+1])return void(e[f+2]=a)}f++,null!==i&&f++,null!==a&&f++}-1!==E&&(e.splice(E,0,t),f=E+1),e.splice(f++,0,n),null!==i&&e.splice(f++,0,i),null!==a&&e.splice(f++,0,a)}function Ga(e){return-1!==e}function ro(e){return 32767&e}function ms(e,t){let n=function cl(e){return e>>16}(e),i=t;for(;n>0;)i=i[15],n--;return i}let Ao=!0;function Bs(e){const t=Ao;return Ao=e,t}let Co=0;const ns={};function io(e,t){const n=Ha(e,t);if(-1!==n)return n;const i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,Qo(i.data,e),Qo(t,null),Qo(i.blueprint,null));const a=Xo(e,t),f=e.injectorIndex;if(Ga(a)){const E=ro(a),R=ms(a,t),H=R[1].data;for(let ae=0;ae<8;ae++)t[f+ae]=R[E+ae]|H[E+ae]}return t[f+8]=a,f}function Qo(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Ha(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Xo(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,i=null,a=t;for(;null!==a;){if(i=Gs(a),null===i)return-1;if(n++,a=a[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function jr(e,t,n){!function ga(e,t,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(ze)&&(i=n[ze]),null==i&&(i=n[ze]=Co++);const a=255&i;t.data[e+(a>>5)]|=1<<a}(e,t,n)}function $a(e,t,n){if(n&Tt.Optional)return e;ee()}function Zo(e,t,n,i){if(n&Tt.Optional&&void 0===i&&(i=null),0==(n&(Tt.Self|Tt.Host))){const a=e[9],f=pe(void 0);try{return a?a.get(t,i,n&Tt.Optional):Pe(t,i,n&Tt.Optional)}finally{pe(f)}}return $a(i,0,n)}function Jo(e,t,n,i=Tt.Default,a){if(null!==e){if(1024&t[2]){const E=function Is(e,t,n,i,a){let f=e,E=t;for(;null!==f&&null!==E&&1024&E[2]&&!(256&E[2]);){const R=qo(f,E,n,i|Tt.Self,ns);if(R!==ns)return R;let H=f.parent;if(!H){const ae=E[21];if(ae){const ye=ae.get(n,ns,i);if(ye!==ns)return ye}H=Gs(E),E=E[15]}f=H}return a}(e,t,n,i,ns);if(E!==ns)return E}const f=qo(e,t,n,i,ns);if(f!==ns)return f}return Zo(t,n,i,a)}function qo(e,t,n,i,a){const f=function Yl(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(ze)?e[ze]:void 0;return"number"==typeof t?t>=0?255&t:ao:t}(n);if("function"==typeof f){if(!$o(t,e,i))return i&Tt.Host?$a(a,0,i):Zo(t,n,i,a);try{const E=f(i);if(null!=E||i&Tt.Optional)return E;ee()}finally{V()}}else if("number"==typeof f){let E=null,R=Ha(e,t),H=-1,ae=i&Tt.Host?t[16][6]:null;for((-1===R||i&Tt.SkipSelf)&&(H=-1===R?Xo(e,t):t[R+8],-1!==H&&oo(i,!1)?(E=t[1],R=ro(H),t=ms(H,t)):R=-1);-1!==R;){const ye=t[1];if(So(f,R,ye.data)){const He=Kl(R,t,n,E,i,ae);if(He!==ns)return He}H=t[R+8],-1!==H&&oo(i,t[1].data[R+8]===ae)&&So(f,R,t)?(E=ye,R=ro(H),t=ms(H,t)):R=-1}}return a}function Kl(e,t,n,i,a,f){const E=t[1],R=E.data[e+8],ye=so(R,E,n,null==i?ri(R)&&Ao:i!=E&&0!=(3&R.type),a&Tt.Host&&f===R);return null!==ye?ea(t,E,ye,R):ns}function so(e,t,n,i,a){const f=e.providerIndexes,E=t.data,R=1048575&f,H=e.directiveStart,ye=f>>20,ft=a?R+ye:e.directiveEnd;for(let It=i?R:R+ye;It<ft;It++){const zt=E[It];if(It<H&&n===zt||It>=H&&zt.type===n)return It}if(a){const It=E[H];if(It&&Fr(It)&&It.type===n)return H}return null}function ea(e,t,n,i){let a=e[n];const f=t.data;if(function Wo(e){return e instanceof ls}(a)){const E=a;E.resolving&&function ue(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new B(-200,`Circular dependency in DI detected for ${e}${n}`)}(function Z(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():U(e)}(f[n]));const R=Bs(E.canSeeViewProviders);E.resolving=!0;const H=E.injectImpl?pe(E.injectImpl):null;$o(e,i,Tt.Default);try{a=e[n]=E.factory(void 0,f,e,i),t.firstCreatePass&&n>=i.directiveStart&&function Wr(e,t,n){const{ngOnChanges:i,ngOnInit:a,ngDoCheck:f}=t.type.prototype;if(i){const E=Ri(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,E),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,E)}a&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,a),f&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,f),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,f))}(n,f[n],t)}finally{null!==H&&pe(H),Bs(R),E.resolving=!1,V()}}return a}function So(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function oo(e,t){return!(e&Tt.Self||e&Tt.Host&&t)}class Us{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,i){return Jo(this._tNode,this._lView,t,i,n)}}function ao(){return new Us(Br(),Kt())}function dl(e){return vt(()=>{const t=e.prototype.constructor,n=t[dt]||ta(t),i=Object.prototype;let a=Object.getPrototypeOf(e.prototype).constructor;for(;a&&a!==i;){const f=a[dt]||ta(a);if(f&&f!==n)return f;a=Object.getPrototypeOf(a)}return f=>new f})}function ta(e){return W(e)?()=>{const t=ta(T(e));return t&&t()}:Or(e)}function Gs(e){const t=e[1],n=t.type;return 2===n?t.declTNode:1===n?e[6]:null}function To(e){return function ul(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const i=n.length;let a=0;for(;a<i;){const f=n[a];if(Qr(f))break;if(0===f)a+=2;else if("number"==typeof f)for(a++;a<i&&"string"==typeof n[a];)a++;else{if(f===t)return n[a+1];a+=2}}}return null}(Br(),e)}const _s="__parameters__",rs="__prop__metadata__";function ma(e){return function(...n){if(e){const i=e(...n);for(const a in i)this[a]=i[a]}}}function cs(e,t,n){return vt(()=>{const i=ma(t);function a(...f){if(this instanceof a)return i.apply(this,f),this;const E=new a(...f);return R.annotation=E,R;function R(H,ae,ye){const He=H.hasOwnProperty(_s)?H[_s]:Object.defineProperty(H,_s,{value:[]})[_s];for(;He.length<=ye;)He.push(null);return(He[ye]=He[ye]||[]).push(E),H}}return n&&(a.prototype=Object.create(n.prototype)),a.prototype.ngMetadataName=e,a.annotationCls=a,a})}function Os(e,t,n,i){return vt(()=>{const a=ma(t);function f(...E){if(this instanceof f)return a.apply(this,E),this;const R=new f(...E);return function H(ae,ye){const He=ae.constructor,ft=He.hasOwnProperty(rs)?He[rs]:Object.defineProperty(He,rs,{value:{}})[rs];ft[ye]=ft.hasOwnProperty(ye)&&ft[ye]||[],ft[ye].unshift(R),i&&i(ae,ye,...E)}}return n&&(f.prototype=Object.create(n.prototype)),f.prototype.ngMetadataName=e,f.annotationCls=f,f})}class Tr{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=me({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}class Sn{}const Wa=Os("ViewChild",(e,t)=>({selector:e,first:!0,isViewQuery:!0,descendants:!0,...t}),Sn);function O(e,t){void 0===t&&(t=e);for(let n=0;n<e.length;n++){let i=e[n];Array.isArray(i)?(t===e&&(t=e.slice(0,n)),O(i,t)):t!==e&&t.push(i)}return t}function S(e,t){e.forEach(n=>Array.isArray(n)?S(n,t):t(n))}function z(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function re(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function _e(e,t){const n=[];for(let i=0;i<e;i++)n.push(t);return n}function kn(e,t,n){let i=pi(e,t);return i>=0?e[1|i]=n:(i=~i,function kt(e,t,n,i){let a=e.length;if(a==t)e.push(n,i);else if(1===a)e.push(i,e[0]),e[0]=n;else{for(a--,e.push(e[a-1],e[a]);a>t;)e[a]=e[a-2],a--;e[t]=n,e[t+1]=i}}(e,i,t,n)),i}function fi(e,t){const n=pi(e,t);if(n>=0)return e[1|n]}function pi(e,t){return function Jr(e,t,n){let i=0,a=e.length>>n;for(;a!==i;){const f=i+(a-i>>1),E=e[f<<n];if(t===E)return f<<n;E>t?a=f:i=f+1}return~(a<<n)}(e,t,1)}const Io={},us="__NG_DI_FLAG__",wr="ngTempTokenPath",Zl=/\n/gm,gl="__source";let co;function uo(e){const t=co;return co=e,t}function Jl(e,t=Tt.Default){if(void 0===co)throw new B(-203,!1);return null===co?Pe(e,void 0,t):co.get(e,t&Tt.Optional?null:void 0,t)}function qr(e,t=Tt.Default){return(function Dt(){return Wt}()||Jl)(T(e),t)}function _l(e,t=Tt.Default){return"number"!=typeof t&&(t=0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)),qr(e,t)}function Ws(e){const t=[];for(let n=0;n<e.length;n++){const i=T(e[n]);if(Array.isArray(i)){if(0===i.length)throw new B(900,!1);let a,f=Tt.Default;for(let E=0;E<i.length;E++){const R=i[E],H=ql(R);"number"==typeof H?-1===H?a=R.token:f|=H:a=R}t.push(qr(a,f))}else t.push(qr(i))}return t}function Oo(e,t){return e[us]=t,e.prototype[us]=t,e}function ql(e){return e[us]}const Aa=Oo(cs("Inject",e=>({token:e})),-1),Ca=Oo(cs("Optional"),8),Ta=Oo(cs("SkipSelf"),4);let sa,Ks,Sl;function ac(e){sa=e}function Ma(e){return function Cl(){if(void 0===Ks&&(Ks=null,Ct.trustedTypes))try{Ks=Ct.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Ks}()?.createHTML(e)||e}function Tl(){if(void 0===Sl&&(Sl=null,Ct.trustedTypes))try{Sl=Ct.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Sl}function uc(e){return Tl()?.createHTML(e)||e}function bl(e){return Tl()?.createScriptURL(e)||e}class ho{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class ou extends ho{getTypeName(){return"HTML"}}class au extends ho{getTypeName(){return"Style"}}class lu extends ho{getTypeName(){return"Script"}}class hc extends ho{getTypeName(){return"URL"}}class Za extends ho{getTypeName(){return"ResourceURL"}}function ws(e){return e instanceof ho?e.changingThisBreaksApplicationSecurity:e}function Ro(e,t){const n=function cu(e){return e instanceof ho&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===t}function uu(e){return new ou(e)}function du(e){return new au(e)}function fc(e){return new lu(e)}function hu(e){return new hc(e)}function fu(e){return new Za(e)}class pu{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const n=(new window.DOMParser).parseFromString(Ma(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch{return null}}}class gu{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);const i=this.inertDocument.createElement("body");n.appendChild(i)}}getInertBodyElement(t){const n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=Ma(t),n;const i=this.inertDocument.createElement("body");return i.innerHTML=Ma(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const n=t.attributes;for(let a=n.length-1;0<a;a--){const E=n.item(a).name;("xmlns:ns1"===E||0===E.indexOf("ns1:"))&&t.removeAttribute(E)}let i=t.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const gc=/^(?:(?:https?|mailto|data|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi;function oa(e){return(e=String(e)).match(gc)?e:"unsafe:"+e}function Ys(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Ja(...e){const t={};for(const n of e)for(const i in n)n.hasOwnProperty(i)&&(t[i]=!0);return t}const _u=Ys("area,br,col,hr,img,wbr"),Ia=Ys("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),qa=Ys("rp,rt"),gi=Ja(_u,Ja(Ia,Ys("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Ja(qa,Ys("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Ja(qa,Ia)),Oa=Ys("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Pa=Ys("srcset"),wo=Ja(Oa,Pa,Ys("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Ys("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),_c=Ys("script,style,template");class vu{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,i=!0;for(;n;)if(n.nodeType===Node.ELEMENT_NODE?i=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,i&&n.firstChild)n=n.firstChild;else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let a=this.checkClobberedElement(n,n.nextSibling);if(a){n=a;break}n=this.checkClobberedElement(n,n.parentNode)}return this.buf.join("")}startElement(t){const n=t.nodeName.toLowerCase();if(!gi.hasOwnProperty(n))return this.sanitizedSomething=!0,!_c.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const i=t.attributes;for(let a=0;a<i.length;a++){const f=i.item(a),E=f.name,R=E.toLowerCase();if(!wo.hasOwnProperty(R)){this.sanitizedSomething=!0;continue}let H=f.value;Oa[R]&&(H=oa(H)),Pa[R]&&(e=H,H=(e=String(e)).split(",").map(t=>oa(t.trim())).join(", ")),this.buf.push(" ",E,'="',el(H),'"')}var e;return this.buf.push(">"),!0}endElement(t){const n=t.nodeName.toLowerCase();gi.hasOwnProperty(n)&&!_u.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(el(t))}checkClobberedElement(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return n}}const vc=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Xu=/([^\#-~ |!])/g;function el(e){return e.replace(/&/g,"&amp;").replace(vc,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Xu,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Ra;function yc(e,t){let n=null;try{Ra=Ra||function pc(e){const t=new gu(e);return function Ml(){try{return!!(new window.DOMParser).parseFromString(Ma(""),"text/html")}catch{return!1}}()?new pu(t):t}(e);let i=t?String(t):"";n=Ra.getInertBodyElement(i);let a=5,f=i;do{if(0===a)throw new Error("Failed to sanitize html because the input is unstable");a--,i=f,f=n.innerHTML,n=Ra.getInertBodyElement(i)}while(i!==f);return Ma((new vu).sanitizeChildren(tl(n)||n))}finally{if(n){const i=tl(n)||n;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function tl(e){return"content"in e&&function Ec(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var si=(()=>((si=si||{})[si.NONE=0]="NONE",si[si.HTML=1]="HTML",si[si.STYLE=2]="STYLE",si[si.SCRIPT=3]="SCRIPT",si[si.URL=4]="URL",si[si.RESOURCE_URL=5]="RESOURCE_URL",si))();function Dc(e){const t=aa();return t?uc(t.sanitize(si.HTML,e)||""):Ro(e,"HTML")?uc(ws(e)):yc(function lc(){return void 0!==sa?sa:typeof document<"u"?document:void 0}(),U(e))}function Il(e){const t=aa();return t?t.sanitize(si.URL,e)||"":Ro(e,"URL")?ws(e):oa(U(e))}function Ol(e){const t=aa();if(t)return bl(t.sanitize(si.RESOURCE_URL,e)||"");if(Ro(e,"ResourceURL"))return bl(ws(e));throw new B(904,!1)}function aa(){const e=Kt();return e&&e[12]}const Pl=new Tr("ENVIRONMENT_INITIALIZER"),Rl=new Tr("INJECTOR",-1),bc=new Tr("INJECTOR_DEF_TYPES");class Mc{get(t,n=Io){if(n===Io){const i=new Error(`NullInjectorError: No provider for ${b(t)}!`);throw i.name="NullInjectorError",i}return n}}function wl(...e){return{\u0275providers:Ic(0,e)}}function Ic(e,...t){const n=[],i=new Set;let a;return S(t,f=>{const E=f;nl(E,n,[],i)&&(a||(a=[]),a.push(E))}),void 0!==a&&Oc(a,n),n}function Oc(e,t){for(let n=0;n<e.length;n++){const{providers:a}=e[n];S(a,f=>{t.push(f)})}}function nl(e,t,n,i){if(!(e=T(e)))return!1;let a=null,f=nn(e);const E=!f&&On(e);if(f||E){if(E&&!E.standalone)return!1;a=e}else{const H=e.ngModule;if(f=nn(H),!f)return!1;a=H}const R=i.has(a);if(E){if(R)return!1;if(i.add(a),E.dependencies){const H="function"==typeof E.dependencies?E.dependencies():E.dependencies;for(const ae of H)nl(ae,t,n,i)}}else{if(!f)return!1;{if(null!=f.imports&&!R){let ae;i.add(a);try{S(f.imports,ye=>{nl(ye,t,n,i)&&(ae||(ae=[]),ae.push(ye))})}finally{}void 0!==ae&&Oc(ae,t)}if(!R){const ae=Or(a)||(()=>new a);t.push({provide:a,useFactory:ae,deps:Re},{provide:bc,useValue:a,multi:!0},{provide:Pl,useValue:()=>qr(a),multi:!0})}const H=f.providers;null==H||R||S(H,ye=>{t.push(ye)})}}return a!==e&&void 0!==e.providers}const Cu=te({provide:String,useValue:te});function Ll(e){return null!==e&&"object"==typeof e&&Cu in e}function Qs(e){return"function"==typeof e}const la=new Tr("Set Injector scope."),wa={},xl={};let Fl;function rl(){return void 0===Fl&&(Fl=new Mc),Fl}class Lo{}class m extends Lo{constructor(t,n,i,a){super(),this.parent=n,this.source=i,this.scopes=a,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,lt(t,E=>this.processProvider(E)),this.records.set(Rl,ie(void 0,this)),a.has("environment")&&this.records.set(Lo,ie(void 0,this));const f=this.records.get(la);null!=f&&"string"==typeof f.value&&this.scopes.add(f.value),this.injectorDefTypes=new Set(this.get(bc.multi,Re,Tt.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){this._onDestroyHooks.push(t)}runInContext(t){this.assertNotDestroyed();const n=uo(this),i=pe(void 0);try{return t()}finally{uo(n),pe(i)}}get(t,n=Io,i=Tt.Default){this.assertNotDestroyed();const a=uo(this),f=pe(void 0);try{if(!(i&Tt.SkipSelf)){let R=this.records.get(t);if(void 0===R){const H=function pt(e){return"function"==typeof e||"object"==typeof e&&e instanceof Tr}(t)&&yt(t);R=H&&this.injectableDefInScope(H)?ie(u(t),wa):null,this.records.set(t,R)}if(null!=R)return this.hydrate(t,R)}return(i&Tt.Self?rl():this.parent).get(t,n=i&Tt.Optional&&n===Io?null:n)}catch(E){if("NullInjectorError"===E.name){if((E[wr]=E[wr]||[]).unshift(b(t)),a)throw E;return function ec(e,t,n,i){const a=e[wr];throw t[gl]&&a.unshift(t[gl]),e.message=function Da(e,t,n,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let a=b(t);if(Array.isArray(t))a=t.map(b).join(" -> ");else if("object"==typeof t){let f=[];for(let E in t)if(t.hasOwnProperty(E)){let R=t[E];f.push(E+":"+("string"==typeof R?JSON.stringify(R):b(R)))}a=`{${f.join(", ")}}`}return`${n}${i?"("+i+")":""}[${a}]: ${e.replace(Zl,"\n  ")}`}("\n"+e.message,a,n,i),e.ngTokenPath=a,e[wr]=null,e}(E,t,"R3InjectorError",this.source)}throw E}finally{pe(f),uo(a)}}resolveInjectorInitializers(){const t=uo(this),n=pe(void 0);try{const i=this.get(Pl.multi,Re,Tt.Self);for(const a of i)a()}finally{uo(t),pe(n)}}toString(){const t=[],n=this.records;for(const i of n.keys())t.push(b(i));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new B(205,!1)}processProvider(t){let n=Qs(t=T(t))?t:T(t&&t.provide);const i=function D(e){return Ll(e)?ie(void 0,e.useValue):ie(K(e),wa)}(t);if(Qs(t)||!0!==t.multi)this.records.get(n);else{let a=this.records.get(n);a||(a=ie(void 0,wa,!0),a.factory=()=>Ws(a.multi),this.records.set(n,a)),n=t,a.multi.push(t)}this.records.set(n,i)}hydrate(t,n){return n.value===wa&&(n.value=xl,n.value=n.factory()),"object"==typeof n.value&&n.value&&function Fe(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=T(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}}function u(e){const t=yt(e),n=null!==t?t.factory:Or(e);if(null!==n)return n;if(e instanceof Tr)throw new B(204,!1);if(e instanceof Function)return function h(e){const t=e.length;if(t>0)throw _e(t,"?"),new B(204,!1);const n=function Vt(e){const t=e&&(e[Pt]||e[Je]);if(t){const n=function sn(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" 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 "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new B(204,!1)}function K(e,t,n){let i;if(Qs(e)){const a=T(e);return Or(a)||u(a)}if(Ll(e))i=()=>T(e.useValue);else if(function Pc(e){return!(!e||!e.useFactory)}(e))i=()=>e.useFactory(...Ws(e.deps||[]));else if(function Nl(e){return!(!e||!e.useExisting)}(e))i=()=>qr(T(e.useExisting));else{const a=T(e&&(e.useClass||e.provide));if(!function Ce(e){return!!e.deps}(e))return Or(a)||u(a);i=()=>new a(...Ws(e.deps))}return i}function ie(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Rt(e){return!!e.\u0275providers}function lt(e,t){for(const n of e)Array.isArray(n)?lt(n,t):Rt(n)?lt(n.\u0275providers,t):t(n)}class rn{}class xn{resolveComponentFactory(t){throw function Zt(e){const t=Error(`No component factory found for ${b(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let Vn=(()=>{class e{}return e.NULL=new xn,e})();function br(){return Vr(Br(),Kt())}function Vr(e,t){return new kr(et(e,t))}let kr=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=br,e})();function Xs(e){return e instanceof kr?e.nativeElement:e}class oi{}let ei=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function Pi(){const e=Kt(),n=ht(Br().index,e);return(Sr(n)?n:e)[11]}(),e})(),Zs=(()=>{class e{}return e.\u0275prov=me({token:e,providedIn:"root",factory:()=>null}),e})();class Bl{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const La=new Bl("14.2.1"),Js={};function Jt(e){return e.ngOriginalError}class Rn{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Jt(t);for(;n&&Jt(n);)n=Jt(n);return n||null}}const Bi=new Map;let Ti=0;const xd="__ngContext__";function ds(e,t){Sr(t)?(e[xd]=t[20],function Tu(e){Bi.set(e[20],e)}(t)):e[xd]=t}function bu(e){const t=e[xd];return"number"==typeof t?function Nf(e){return Bi.get(e)||null}(t):t||null}function Fd(e){const t=bu(e);return t?Sr(t)?t:t.lView:null}function Uf(e){return e.ownerDocument.defaultView}function Gf(e){return e.ownerDocument}function Na(e){return e instanceof Function?e():e}var ca=(()=>((ca=ca||{})[ca.Important=1]="Important",ca[ca.DashCase=2]="DashCase",ca))();function kd(e,t){return undefined(e,t)}function Mu(e){const t=e[3];return xr(t)?t[3]:t}function Ud(e){return $f(e[13])}function Gd(e){return $f(e[4])}function $f(e){for(;null!==e&&!xr(e);)e=e[4];return e}function wc(e,t,n,i,a){if(null!=i){let f,E=!1;xr(i)?f=i:Sr(i)&&(E=!0,i=i[0]);const R=or(i);0===e&&null!==n?null==a?Qf(t,n,R):Gl(t,n,R,a||null,!0):1===e&&null!==n?Gl(t,n,R,a||null,!0):2===e?function np(e,t,n){const i=Ju(e,t);i&&function Hv(e,t,n,i){e.removeChild(t,n,i)}(e,i,t,n)}(t,R,E):3===e&&t.destroyNode(R),null!=f&&function Wv(e,t,n,i,a){const f=n[7];f!==or(n)&&wc(t,e,i,f,a);for(let R=10;R<n.length;R++){const H=n[R];Iu(H[1],H,e,t,i,f)}}(t,e,f,n,a)}}function Hd(e,t,n){return e.createElement(t,n)}function Wf(e,t){const n=e[9],i=n.indexOf(t),a=t[3];512&t[2]&&(t[2]&=-513,Pr(a,-1)),n.splice(i,1)}function $d(e,t){if(e.length<=10)return;const n=10+t,i=e[n];if(i){const a=i[17];null!==a&&a!==e&&Wf(a,i),t>0&&(e[n-1][4]=i[4]);const f=re(e,10+t);!function Nv(e,t){Iu(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);const E=f[19];null!==E&&E.detachView(f[1]),i[3]=null,i[4]=null,i[2]&=-65}return i}function zf(e,t){if(!(128&t[2])){const n=t[11];n.destroyNode&&Iu(e,t,n,3,null,null),function Bv(e){let t=e[13];if(!t)return jd(e[1],e);for(;t;){let n=null;if(Sr(t))n=t[13];else{const i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)Sr(t)&&jd(t[1],t),t=t[3];null===t&&(t=e),Sr(t)&&jd(t[1],t),n=t&&t[4]}t=n}}(t)}}function jd(e,t){if(!(128&t[2])){t[2]&=-65,t[2]|=128,function Vv(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let i=0;i<n.length;i+=2){const a=t[n[i]];if(!(a instanceof ls)){const f=n[i+1];if(Array.isArray(f))for(let E=0;E<f.length;E+=2){const R=a[f[E]],H=f[E+1];try{H.call(R)}finally{}}else try{f.call(a)}finally{}}}}(e,t),function Gv(e,t){const n=e.cleanup,i=t[7];let a=-1;if(null!==n)for(let f=0;f<n.length-1;f+=2)if("string"==typeof n[f]){const E=n[f+1],R="function"==typeof E?E(t):or(t[E]),H=i[a=n[f+2]],ae=n[f+3];"boolean"==typeof ae?R.removeEventListener(n[f],H,ae):ae>=0?i[a=ae]():i[a=-ae].unsubscribe(),f+=2}else{const E=i[a=n[f+1]];n[f].call(E)}if(null!==i){for(let f=a+1;f<i.length;f++)(0,i[f])();t[7]=null}}(e,t),1===t[1].type&&t[11].destroy();const n=t[17];if(null!==n&&xr(t[3])){n!==t[3]&&Wf(n,t);const i=t[19];null!==i&&i.detachView(e)}!function vv(e){Bi.delete(e[20])}(t)}}function Kf(e,t,n){return function Yf(e,t,n){let i=t;for(;null!==i&&40&i.type;)i=(t=i).parent;if(null===i)return n[0];if(2&i.flags){const a=e.data[i.directiveStart].encapsulation;if(a===mt.None||a===mt.Emulated)return null}return et(i,n)}(e,t.parent,n)}function Gl(e,t,n,i,a){e.insertBefore(t,n,i,a)}function Qf(e,t,n){e.appendChild(t,n)}function Xf(e,t,n,i,a){null!==i?Gl(e,t,n,i,a):Qf(e,t,n)}function Ju(e,t){return e.parentNode(t)}function Zf(e,t,n){return qf(e,t,n)}let qf=function Jf(e,t,n){return 40&e.type?et(e,n):null};function qu(e,t,n,i){const a=Kf(e,i,t),f=t[11],R=Zf(i.parent||t[6],i,t);if(null!=a)if(Array.isArray(n))for(let H=0;H<n.length;H++)Xf(f,a,n[H],R,!1);else Xf(f,a,n,R,!1)}function ed(e,t){if(null!==t){const n=t.type;if(3&n)return et(t,e);if(4&n)return zd(-1,e[t.index]);if(8&n){const i=t.child;if(null!==i)return ed(e,i);{const a=e[t.index];return xr(a)?zd(-1,a):or(a)}}if(32&n)return kd(t,e)()||or(e[t.index]);{const i=tp(e,t);return null!==i?Array.isArray(i)?i[0]:ed(Mu(e[16]),i):ed(e,t.next)}}return null}function tp(e,t){return null!==t?e[16][6].projection[t.projection]:null}function zd(e,t){const n=10+e+1;if(n<t.length){const i=t[n],a=i[1].firstChild;if(null!==a)return ed(i,a)}return t[7]}function Kd(e,t,n,i,a,f,E){for(;null!=n;){const R=i[n.index],H=n.type;if(E&&0===t&&(R&&ds(or(R),i),n.flags|=4),64!=(64&n.flags))if(8&H)Kd(e,t,n.child,i,a,f,!1),wc(t,e,a,R,f);else if(32&H){const ae=kd(n,i);let ye;for(;ye=ae();)wc(t,e,a,ye,f);wc(t,e,a,R,f)}else 16&H?rp(e,t,i,n,a,f):wc(t,e,a,R,f);n=E?n.projectionNext:n.next}}function Iu(e,t,n,i,a,f){Kd(n,i,e.firstChild,t,a,f,!1)}function rp(e,t,n,i,a,f){const E=n[16],H=E[6].projection[i.projection];if(Array.isArray(H))for(let ae=0;ae<H.length;ae++)wc(t,e,a,H[ae],f);else Kd(e,t,H,E[3],a,f,!0)}function ip(e,t,n){e.setAttribute(t,"style",n)}function Yd(e,t,n){""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function sp(e,t,n){let i=e.length;for(;;){const a=e.indexOf(t,n);if(-1===a)return a;if(0===a||e.charCodeAt(a-1)<=32){const f=t.length;if(a+f===i||e.charCodeAt(a+f)<=32)return a}n=a+1}}const op="ng-template";function Kv(e,t,n){let i=0;for(;i<e.length;){let a=e[i++];if(n&&"class"===a){if(a=e[i],-1!==sp(a.toLowerCase(),t,0))return!0}else if(1===a){for(;i<e.length&&"string"==typeof(a=e[i++]);)if(a.toLowerCase()===t)return!0;return!1}}return!1}function ap(e){return 4===e.type&&e.value!==op}function Yv(e,t,n){return t===(4!==e.type||n?e.value:op)}function Qv(e,t,n){let i=4;const a=e.attrs||[],f=function Jv(e){for(let t=0;t<e.length;t++)if(Qr(e[t]))return t;return e.length}(a);let E=!1;for(let R=0;R<t.length;R++){const H=t[R];if("number"!=typeof H){if(!E)if(4&i){if(i=2|1&i,""!==H&&!Yv(e,H,n)||""===H&&1===t.length){if(No(i))return!1;E=!0}}else{const ae=8&i?H:t[++R];if(8&i&&null!==e.attrs){if(!Kv(e.attrs,ae,n)){if(No(i))return!1;E=!0}continue}const He=Xv(8&i?"class":H,a,ap(e),n);if(-1===He){if(No(i))return!1;E=!0;continue}if(""!==ae){let ft;ft=He>f?"":a[He+1].toLowerCase();const It=8&i?ft:null;if(It&&-1!==sp(It,ae,0)||2&i&&ae!==ft){if(No(i))return!1;E=!0}}}}else{if(!E&&!No(i)&&!No(H))return!1;if(E&&No(H))continue;E=!1,i=H|1&i}}return No(i)||E}function No(e){return 0==(1&e)}function Xv(e,t,n,i){if(null===t)return-1;let a=0;if(i||!n){let f=!1;for(;a<t.length;){const E=t[a];if(E===e)return a;if(3===E||6===E)f=!0;else{if(1===E||2===E){let R=t[++a];for(;"string"==typeof R;)R=t[++a];continue}if(4===E)break;if(0===E){a+=4;continue}}a+=f?1:2}return-1}return function qv(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const i=e[n];if("number"==typeof i)return-1;if(i===t)return n;n++}return-1}(t,e)}function lp(e,t,n=!1){for(let i=0;i<t.length;i++)if(Qv(e,t[i],n))return!0;return!1}function ey(e,t){e:for(let n=0;n<t.length;n++){const i=t[n];if(e.length===i.length){for(let a=0;a<e.length;a++)if(e[a]!==i[a])continue e;return!0}}return!1}function cp(e,t){return e?":not("+t.trim()+")":t}function ty(e){let t=e[0],n=1,i=2,a="",f=!1;for(;n<e.length;){let E=e[n];if("string"==typeof E)if(2&i){const R=e[++n];a+="["+E+(R.length>0?'="'+R+'"':"")+"]"}else 8&i?a+="."+E:4&i&&(a+=" "+E);else""!==a&&!No(E)&&(t+=cp(f,a),a=""),i=E,f=f||!No(i);n++}return""!==a&&(t+=cp(f,a)),t}const Zn={};function up(e){dp(Wn(),Kt(),nt()+e,!1)}function dp(e,t,n,i){if(!i)if(3==(3&t[2])){const f=e.preOrderCheckHooks;null!==f&&Gr(t,f,n)}else{const f=e.preOrderHooks;null!==f&&Fi(t,f,0,n)}Nt(n)}function gp(e,t=null,n=null,i){const a=mp(e,t,n,i);return a.resolveInjectorInitializers(),a}function mp(e,t=null,n=null,i,a=new Set){const f=[n||Re,wl(e)];return i=i||("object"==typeof e?void 0:b(e)),new m(f,t||rl(),i||null,a)}let Vl=(()=>{class e{static create(n,i){if(Array.isArray(n))return gp({name:""},i,n,"");{const a=n.name??"";return gp({name:a},n.parent,n.providers,a)}}}return e.THROW_IF_NOT_FOUND=Io,e.NULL=new Mc,e.\u0275prov=me({token:e,providedIn:"any",factory:()=>qr(Rl)}),e.__NG_ELEMENT_ID__=-1,e})();function Nc(e,t=Tt.Default){const n=Kt();return null===n?qr(e,t):Jo(Br(),n,T(e),t)}function Cp(){throw new Error("invalid")}function nd(e,t){return e<<17|t<<2}function xo(e){return e>>17&32767}function qd(e){return 2|e}function xa(e){return(131068&e)>>2}function eh(e,t){return-131069&e|t<<2}function th(e){return 1|e}function Np(e,t){const n=e.contentQueries;if(null!==n)for(let i=0;i<n.length;i+=2){const a=n[i],f=n[i+1];if(-1!==f){const E=e.data[f];as(a),E.contentQueries(2,t[f],f)}}}function sd(e,t,n,i,a,f,E,R,H,ae,ye){const He=t.blueprint.slice();return He[0]=a,He[2]=76|i,(null!==ye||e&&1024&e[2])&&(He[2]|=1024),gr(He),He[3]=He[15]=e,He[8]=n,He[10]=E||e&&e[10],He[11]=R||e&&e[11],He[12]=H||e&&e[12]||null,He[9]=ae||e&&e[9]||null,He[6]=f,He[20]=function Ld(){return Ti++}(),He[21]=ye,He[16]=2==t.type?e[16]:He,He}function xc(e,t,n,i,a){let f=e.data[t];if(null===f)f=function ch(e,t,n,i,a){const f=se(),E=Ee(),H=e.data[t]=function ky(e,t,n,i,a,f){return{type:n,index:i,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:a,attrs:f,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,E?f:f&&f.parent,n,t,i,a);return null===e.firstChild&&(e.firstChild=H),null!==f&&(E?null==f.child&&null!==H.parent&&(f.child=H):null===f.next&&(f.next=H)),H}(e,t,n,i,a),function xs(){return Dn.lFrame.inI18n}()&&(f.flags|=64);else if(64&f.type){f.type=n,f.value=i,f.attrs=a;const E=function q(){const e=Dn.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();f.injectorIndex=null===E?-1:E.injectorIndex}return j(f,!0),f}function Fc(e,t,n,i){if(0===n)return-1;const a=t.length;for(let f=0;f<n;f++)t.push(i),e.blueprint.push(i),e.data.push(null);return a}function od(e,t,n){jo(t);try{const i=e.viewQuery;null!==i&&vh(1,i,n);const a=e.template;null!==a&&xp(e,t,a,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Np(e,t),e.staticViewQueries&&vh(2,e.viewQuery,n);const f=e.components;null!==f&&function Ny(e,t){for(let n=0;n<t.length;n++)e0(e,t[n])}(t,f)}catch(i){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),i}finally{t[2]&=-5,he()}}function Ou(e,t,n,i){const a=t[2];if(128!=(128&a)){jo(t);try{gr(t),function os(e){return Dn.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&xp(e,t,n,2,i);const E=3==(3&a);if(E){const ae=e.preOrderCheckHooks;null!==ae&&Gr(t,ae,null)}else{const ae=e.preOrderHooks;null!==ae&&Fi(t,ae,0,null),vi(t,0)}if(function Jy(e){for(let t=Ud(e);null!==t;t=Gd(t)){if(!t[2])continue;const n=t[9];for(let i=0;i<n.length;i++){const a=n[i],f=a[3];0==(512&a[2])&&Pr(f,1),a[2]|=512}}}(t),function Zy(e){for(let t=Ud(e);null!==t;t=Gd(t))for(let n=10;n<t.length;n++){const i=t[n],a=i[1];$n(i)&&Ou(a,i,a.template,i[8])}}(t),null!==e.contentQueries&&Np(e,t),E){const ae=e.contentCheckHooks;null!==ae&&Gr(t,ae)}else{const ae=e.contentHooks;null!==ae&&Fi(t,ae,1),vi(t,1)}!function wy(e,t){const n=e.hostBindingOpCodes;if(null!==n)try{for(let i=0;i<n.length;i++){const a=n[i];if(a<0)Nt(~a);else{const f=a,E=n[++i],R=n[++i];Vo(E,f),R(2,t[f])}}}finally{Nt(-1)}}(e,t);const R=e.components;null!==R&&function Ly(e,t){for(let n=0;n<t.length;n++)qy(e,t[n])}(t,R);const H=e.viewQuery;if(null!==H&&vh(2,H,i),E){const ae=e.viewCheckHooks;null!==ae&&Gr(t,ae)}else{const ae=e.viewHooks;null!==ae&&Fi(t,ae,2),vi(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),t[2]&=-41,512&t[2]&&(t[2]&=-513,Pr(t[3],-1))}finally{he()}}}function xy(e,t,n,i){const a=t[10],E=In(t);try{!E&&a.begin&&a.begin(),E&&od(e,t,i),Ou(e,t,n,i)}finally{!E&&a.end&&a.end()}}function xp(e,t,n,i,a){const f=nt(),E=2&i;try{Nt(-1),E&&t.length>22&&dp(e,t,22,!1),n(i,a)}finally{Nt(f)}}function Fp(e,t,n){if(ni(t)){const a=t.directiveEnd;for(let f=t.directiveStart;f<a;f++){const E=e.data[f];E.contentQueries&&E.contentQueries(1,n[f],f)}}}function uh(e,t,n){!Ur()||(function $y(e,t,n,i){const a=n.directiveStart,f=n.directiveEnd;e.firstCreatePass||io(n,t),ds(i,t);const E=n.initialInputs;for(let R=a;R<f;R++){const H=e.data[R],ae=Fr(H);ae&&Yy(t,n,H);const ye=ea(t,e,R,n);ds(ye,t),null!==E&&Qy(0,R-a,ye,H,0,E),ae&&(ht(n.index,t)[8]=ye)}}(e,t,n,et(n,t)),128==(128&n.flags)&&function jy(e,t,n){const i=n.directiveStart,a=n.directiveEnd,f=n.index,E=function Cs(){return Dn.lFrame.currentDirectiveIndex}();try{Nt(f);for(let R=i;R<a;R++){const H=e.data[R],ae=t[R];Ho(R),(null!==H.hostBindings||0!==H.hostVars||null!==H.hostAttrs)&&$p(H,ae)}}finally{Nt(-1),Ho(E)}}(e,t,n))}function dh(e,t,n=et){const i=t.localNames;if(null!==i){let a=t.index+1;for(let f=0;f<i.length;f+=2){const E=i[f+1],R=-1===E?n(t,e):e[E];e[a++]=R}}}function Bp(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=hh(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function hh(e,t,n,i,a,f,E,R,H,ae){const ye=22+i,He=ye+a,ft=function Fy(e,t){const n=[];for(let i=0;i<t;i++)n.push(i<e?null:Zn);return n}(ye,He),It="function"==typeof ae?ae():ae;return ft[1]={type:e,blueprint:ft,template:n,queries:null,viewQuery:R,declTNode:t,data:ft.slice().fill(null,ye),bindingStartIndex:ye,expandoStartIndex:He,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof f?f():f,pipeRegistry:"function"==typeof E?E():E,firstChild:null,schemas:H,consts:It,incompleteFirstPass:!1}}function kp(e,t,n,i){const a=Qp(t);null===n?a.push(i):(a.push(n),e.firstCreatePass&&Xp(e).push(i,a.length-1))}function Up(e,t,n){for(let i in e)if(e.hasOwnProperty(i)){const a=e[i];(n=null===n?{}:n).hasOwnProperty(i)?n[i].push(t,a):n[i]=[t,a]}return n}function Gp(e,t){const i=t.directiveEnd,a=e.data,f=t.attrs,E=[];let R=null,H=null;for(let ae=t.directiveStart;ae<i;ae++){const ye=a[ae],He=ye.inputs,ft=null===f||ap(t)?null:Xy(He,f);E.push(ft),R=Up(He,ae,R),H=Up(ye.outputs,ae,H)}null!==R&&(R.hasOwnProperty("class")&&(t.flags|=16),R.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=E,t.inputs=R,t.outputs=H}function qs(e,t,n,i,a,f,E,R){const H=et(t,n);let ye,ae=t.inputs;!R&&null!=ae&&(ye=ae[i])?(yh(e,n,ye,i,a),ri(t)&&Vp(n,t.index)):3&t.type&&(i=function Uy(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(i),a=null!=E?E(a,t.value||"",i):a,f.setProperty(H,i,a))}function Vp(e,t){const n=ht(t,e);16&n[2]||(n[2]|=32)}function fh(e,t,n,i){let a=!1;if(Ur()){const f=function Wy(e,t,n){const i=e.directiveRegistry;let a=null;if(i)for(let f=0;f<i.length;f++){const E=i[f];lp(n,E.selectors,!1)&&(a||(a=[]),jr(io(n,t),e,E.type),Fr(E)?(jp(e,n),a.unshift(E)):a.push(E))}return a}(e,t,n),E=null===i?null:{"":-1};if(null!==f){a=!0,Wp(n,e.data.length,f.length);for(let ye=0;ye<f.length;ye++){const He=f[ye];He.providersResolver&&He.providersResolver(He)}let R=!1,H=!1,ae=Fc(e,t,f.length,null);for(let ye=0;ye<f.length;ye++){const He=f[ye];n.mergedAttrs=Ms(n.mergedAttrs,He.hostAttrs),zp(e,n,t,ae,He),Ky(ae,He,E),null!==He.contentQueries&&(n.flags|=8),(null!==He.hostBindings||null!==He.hostAttrs||0!==He.hostVars)&&(n.flags|=128);const ft=He.type.prototype;!R&&(ft.ngOnChanges||ft.ngOnInit||ft.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),R=!0),!H&&(ft.ngOnChanges||ft.ngDoCheck)&&((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),H=!0),ae++}Gp(e,n)}E&&function zy(e,t,n){if(t){const i=e.localNames=[];for(let a=0;a<t.length;a+=2){const f=n[t[a+1]];if(null==f)throw new B(-301,!1);i.push(t[a],f)}}}(n,i,E)}return n.mergedAttrs=Ms(n.mergedAttrs,n.attrs),a}function Hp(e,t,n,i,a,f){const E=f.hostBindings;if(E){let R=e.hostBindingOpCodes;null===R&&(R=e.hostBindingOpCodes=[]);const H=~t.index;(function Hy(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(R)!=H&&R.push(H),R.push(i,a,E)}}function $p(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function jp(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function Ky(e,t,n){if(n){if(t.exportAs)for(let i=0;i<t.exportAs.length;i++)n[t.exportAs[i]]=e;Fr(t)&&(n[""]=e)}}function Wp(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function zp(e,t,n,i,a){e.data[i]=a;const f=a.factory||(a.factory=Or(a.type)),E=new ls(f,Fr(a),Nc);e.blueprint[i]=E,n[i]=E,Hp(e,t,0,i,Fc(e,n,a.hostVars,Zn),a)}function Yy(e,t,n){const i=et(t,e),a=Bp(n),f=e[10],E=ad(e,sd(e,a,null,n.onPush?32:16,i,t,f,f.createRenderer(i,n),null,null,null));e[t.index]=E}function ua(e,t,n,i,a,f){const E=et(e,t);!function ph(e,t,n,i,a,f,E){if(null==f)e.removeAttribute(t,a,n);else{const R=null==E?U(f):E(f,i||"",a);e.setAttribute(t,a,R,n)}}(t[11],E,f,e.value,n,i,a)}function Qy(e,t,n,i,a,f){const E=f[t];if(null!==E){const R=i.setInput;for(let H=0;H<E.length;){const ae=E[H++],ye=E[H++],He=E[H++];null!==R?i.setInput(n,He,ae,ye):n[ye]=He}}}function Xy(e,t){let n=null,i=0;for(;i<t.length;){const a=t[i];if(0!==a)if(5!==a){if("number"==typeof a)break;e.hasOwnProperty(a)&&(null===n&&(n=[]),n.push(a,e[a],t[i+1])),i+=2}else i+=2;else i+=4}return n}function Kp(e,t,n,i){return new Array(e,!0,!1,t,null,0,i,n,null,null)}function qy(e,t){const n=ht(t,e);if($n(n)){const i=n[1];48&n[2]?Ou(i,n,i.template,n[8]):n[5]>0&&gh(n)}}function gh(e){for(let i=Ud(e);null!==i;i=Gd(i))for(let a=10;a<i.length;a++){const f=i[a];if($n(f))if(512&f[2]){const E=f[1];Ou(E,f,E.template,f[8])}else f[5]>0&&gh(f)}const n=e[1].components;if(null!==n)for(let i=0;i<n.length;i++){const a=ht(n[i],e);$n(a)&&a[5]>0&&gh(a)}}function e0(e,t){const n=ht(t,e),i=n[1];(function t0(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])})(i,n),od(i,n,n[8])}function ad(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function mh(e){for(;e;){e[2]|=32;const t=Mu(e);if(Yi(e)&&!t)return e;e=t}return null}function vh(e,t,n){as(0),t(e,n)}function Qp(e){return e[7]||(e[7]=[])}function Xp(e){return e.cleanup||(e.cleanup=[])}function Zp(e,t,n){return(null===e||Fr(e))&&(n=function De(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}function Jp(e,t){const n=e[9],i=n?n.get(Rn,null):null;i&&i.handleError(t)}function yh(e,t,n,i,a){for(let f=0;f<n.length;){const E=n[f++],R=n[f++],H=t[E],ae=e.data[E];null!==ae.setInput?ae.setInput(H,a,i,R):H[R]=a}}function Fa(e,t,n){const i=Ve(t,e);!function jf(e,t,n){e.setValue(t,n)}(e[11],i,n)}function ld(e,t,n){let i=n?e.styles:null,a=n?e.classes:null,f=0;if(null!==t)for(let E=0;E<t.length;E++){const R=t[E];"number"==typeof R?f=R:1==f?a=p(a,R):2==f&&(i=p(i,R+": "+t[++E]+";"))}n?e.styles=i:e.stylesWithoutHost=i,n?e.classes=a:e.classesWithoutHost=a}function cd(e,t,n,i,a=!1){for(;null!==n;){const f=t[n.index];if(null!==f&&i.push(or(f)),xr(f))for(let R=10;R<f.length;R++){const H=f[R],ae=H[1].firstChild;null!==ae&&cd(H[1],H,ae,i)}const E=n.type;if(8&E)cd(e,t,n.child,i);else if(32&E){const R=kd(n,t);let H;for(;H=R();)i.push(H)}else if(16&E){const R=tp(t,n);if(Array.isArray(R))i.push(...R);else{const H=Mu(t[16]);cd(H[1],H,R,i,!0)}}n=a?n.projectionNext:n.next}return i}class Pu{constructor(t,n){this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const t=this._lView,n=t[1];return cd(n,t,n.firstChild,[])}get context(){return this._lView[8]}set context(t){this._lView[8]=t}get destroyed(){return 128==(128&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[3];if(xr(t)){const n=t[8],i=n?n.indexOf(this):-1;i>-1&&($d(t,i),re(n,i))}this._attachedToViewContainer=!1}zf(this._lView[1],this._lView)}onDestroy(t){kp(this._lView[1],this._lView,null,t)}markForCheck(){mh(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function _h(e,t,n){const i=t[10];i.begin&&i.begin();try{Ou(e,t,e.template,n)}catch(a){throw Jp(t,a),a}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new B(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Fv(e,t){Iu(e,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new B(902,!1);this._appRef=t}}class r0 extends Pu{constructor(t){super(t),this._view=t}detectChanges(){!function Yp(e){!function n0(e){for(let t=0;t<e.components.length;t++){const n=e.components[t],i=Fd(n);if(null!==i){const a=i[1];xy(a,i,a.template,n)}}}(e[8])}(this._view)}checkNoChanges(){}get context(){return null}}class Eh extends Vn{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=On(t);return new Ru(n,this.ngModule)}}function qp(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class o0{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,i){const a=this.injector.get(t,Js,i);return a!==Js||n===Js?a:this.parentInjector.get(t,n,i)}}class Ru extends rn{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function ny(e){return e.map(ty).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return qp(this.componentDef.inputs)}get outputs(){return qp(this.componentDef.outputs)}create(t,n,i,a){let f=(a=a||this.ngModule)instanceof Lo?a:a?.injector;f&&null!==this.componentDef.getStandaloneInjector&&(f=this.componentDef.getStandaloneInjector(f)||f);const E=f?new o0(t,f):t,R=E.get(oi,null);if(null===R)throw new B(407,!1);const H=E.get(Zs,null),ae=R.createRenderer(null,this.componentDef),ye=this.componentDef.selectors[0][0]||"div",He=i?function By(e,t,n){return e.selectRootElement(t,n===mt.ShadowDom)}(ae,i,this.componentDef.encapsulation):Hd(R.createRenderer(null,this.componentDef),ye,function s0(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(ye)),ft=this.componentDef.onPush?288:272,It={components:[]},zt=hh(0,null,null,1,0,null,null,null,null,null),cn=sd(null,zt,It,ft,null,null,R,ae,H,E,null);let fn,Cn;jo(cn);try{const Hn=function c0(e,t,n,i,a,f){const E=n[1];n[22]=e;const H=xc(E,22,2,"#host",null),ae=H.mergedAttrs=t.hostAttrs;null!==ae&&(ld(H,ae,!0),null!==e&&(bs(a,e,ae),null!==H.classes&&Yd(a,e,H.classes),null!==H.styles&&ip(a,e,H.styles)));const ye=i.createRenderer(e,t),He=sd(n,Bp(t),null,t.onPush?32:16,n[22],H,i,ye,f||null,null,null);return E.firstCreatePass&&(jr(io(H,n),E,t.type),jp(E,H),Wp(H,n.length,1)),ad(n,He),n[22]=He}(He,this.componentDef,cn,R,ae);if(He)if(i)bs(ae,He,["ng-version",La.full]);else{const{attrs:en,classes:Fn}=function ry(e){const t=[],n=[];let i=1,a=2;for(;i<e.length;){let f=e[i];if("string"==typeof f)2===a?""!==f&&t.push(f,e[++i]):8===a&&n.push(f);else{if(!No(a))break;a=f}i++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]);en&&bs(ae,He,en),Fn&&Fn.length>0&&Yd(ae,He,Fn.join(" "))}if(Cn=Ht(zt,22),void 0!==n){const en=Cn.projection=[];for(let Fn=0;Fn<this.ngContentSelectors.length;Fn++){const Ar=n[Fn];en.push(null!=Ar?Array.from(Ar):null)}}fn=function u0(e,t,n,i,a){const f=n[1],E=function Vy(e,t,n){const i=Br();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),zp(e,i,t,Fc(e,t,1,null),n),Gp(e,i));const a=ea(t,e,i.directiveStart,i);ds(a,t);const f=et(i,t);return f&&ds(f,t),a}(f,n,t);if(i.components.push(E),e[8]=E,null!==a)for(const H of a)H(E,t);if(t.contentQueries){const H=Br();t.contentQueries(1,E,H.directiveStart)}const R=Br();return!f.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(Nt(R.index),Hp(n[1],R,0,R.directiveStart,R.directiveEnd,t),$p(t,E)),E}(Hn,this.componentDef,cn,It,[h0]),od(zt,cn,null)}finally{he()}return new l0(this.componentType,fn,Vr(Cn,cn),cn,Cn)}}class l0 extends class qt{}{constructor(t,n,i,a,f){super(),this.location=i,this._rootLView=a,this._tNode=f,this.instance=n,this.hostView=this.changeDetectorRef=new r0(a),this.componentType=t}setInput(t,n){const i=this._tNode.inputs;let a;if(null!==i&&(a=i[t])){const f=this._rootLView;yh(f[1],f,a,t,n),Vp(f,this._tNode.index)}}get injector(){return new Us(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function h0(){const e=Br();yr(Kt()[1],e)}function Dh(e){let t=function eg(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const i=[e];for(;t;){let a;if(Fr(e))a=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new B(903,!1);a=t.\u0275dir}if(a){if(n){i.push(a);const E=e;E.inputs=Ah(e.inputs),E.declaredInputs=Ah(e.declaredInputs),E.outputs=Ah(e.outputs);const R=a.hostBindings;R&&m0(e,R);const H=a.viewQuery,ae=a.contentQueries;if(H&&p0(e,H),ae&&g0(e,ae),I(e.inputs,a.inputs),I(e.declaredInputs,a.declaredInputs),I(e.outputs,a.outputs),Fr(a)&&a.data.animation){const ye=e.data;ye.animation=(ye.animation||[]).concat(a.data.animation)}}const f=a.features;if(f)for(let E=0;E<f.length;E++){const R=f[E];R&&R.ngInherit&&R(e),R===Dh&&(n=!1)}}t=Object.getPrototypeOf(t)}!function f0(e){let t=0,n=null;for(let i=e.length-1;i>=0;i--){const a=e[i];a.hostVars=t+=a.hostVars,a.hostAttrs=Ms(a.hostAttrs,n=Ms(n,a.hostAttrs))}}(i)}function Ah(e){return e===xe?{}:e===Re?[]:e}function p0(e,t){const n=e.viewQuery;e.viewQuery=n?(i,a)=>{t(i,a),n(i,a)}:t}function g0(e,t){const n=e.contentQueries;e.contentQueries=n?(i,a,f)=>{t(i,a,f),n(i,a,f)}:t}function m0(e,t){const n=e.hostBindings;e.hostBindings=n?(i,a)=>{t(i,a),n(i,a)}:t}let ud=null;function Hl(){if(!ud){const e=Ct.Symbol;if(e&&e.iterator)ud=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let n=0;n<t.length;++n){const i=t[n];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(ud=i)}}}return ud}function wu(e){return!!Ch(e)&&(Array.isArray(e)||!(e instanceof Map)&&Hl()in e)}function Ch(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function da(e,t,n){return e[t]=n}function Lu(e,t){return e[t]}function hs(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function $l(e,t,n,i){const a=hs(e,t,n);return hs(e,t+1,i)||a}function dd(e,t,n,i,a){const f=$l(e,t,n,i);return hs(e,t+2,a)||f}function po(e,t,n,i,a,f){const E=$l(e,t,n,i);return $l(e,t+2,a,f)||E}function Sh(e,t,n,i){const a=Kt();return hs(a,As(),t)&&(Wn(),ua(Ut(),a,e,t,n,i)),Sh}function kc(e,t,n,i){return hs(e,As(),n)?t+U(n)+i:Zn}function ug(e,t,n,i,a,f,E,R){const H=Kt(),ae=Wn(),ye=e+22,He=ae.firstCreatePass?function S0(e,t,n,i,a,f,E,R,H){const ae=t.consts,ye=xc(t,e,4,E||null,qn(ae,R));fh(t,n,ye,qn(ae,H)),yr(t,ye);const He=ye.tViews=hh(2,ye,i,a,f,t.directiveRegistry,t.pipeRegistry,null,t.schemas,ae);return null!==t.queries&&(t.queries.template(t,ye),He.queries=t.queries.embeddedTView(ye)),ye}(ye,ae,H,t,n,i,a,f,E):ae.data[ye];j(He,!1);const ft=H[11].createComment("");qu(ae,H,ft,He),ds(ft,H),ad(H,H[ye]=Kp(ft,H,ft,He)),bi(He)&&uh(ae,H,He),null!=E&&dh(H,He,R)}function dg(e){return tn(function Yr(){return Dn.lFrame.contextLView}(),22+e)}function Th(e,t,n){const i=Kt();return hs(i,As(),t)&&qs(Wn(),Ut(),i,e,t,i[11],n,!1),Th}function bh(e,t,n,i,a){const E=a?"class":"style";yh(e,n,t.inputs[E],E,i)}function hd(e,t,n,i){const a=Kt(),f=Wn(),E=22+e,R=a[11],H=a[E]=Hd(R,t,function er(){return Dn.lFrame.currentNamespace}()),ae=f.firstCreatePass?function b0(e,t,n,i,a,f,E){const R=t.consts,ae=xc(t,e,2,a,qn(R,f));return fh(t,n,ae,qn(R,E)),null!==ae.attrs&&ld(ae,ae.attrs,!1),null!==ae.mergedAttrs&&ld(ae,ae.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,ae),ae}(E,f,a,0,t,n,i):f.data[E];j(ae,!0);const ye=ae.mergedAttrs;null!==ye&&bs(R,H,ye);const He=ae.classes;null!==He&&Yd(R,H,He);const ft=ae.styles;return null!==ft&&ip(R,H,ft),64!=(64&ae.flags)&&qu(f,a,H,ae),0===function gs(){return Dn.lFrame.elementDepthCount}()&&ds(H,a),function wi(){Dn.lFrame.elementDepthCount++}(),bi(ae)&&(uh(f,a,ae),Fp(f,ae,a)),null!==i&&dh(a,ae),hd}function fd(){let e=Br();Ee()?xt():(e=e.parent,j(e,!1));const t=e;!function Li(){Dn.lFrame.elementDepthCount--}();const n=Wn();return n.firstCreatePass&&(yr(n,e),ni(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function al(e){return 0!=(16&e.flags)}(t)&&bh(n,t,Kt(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function ll(e){return 0!=(32&e.flags)}(t)&&bh(n,t,Kt(),t.stylesWithoutHost,!1),fd}function Mh(e,t,n,i){return hd(e,t,n,i),fd(),Mh}function pd(e,t,n){const i=Kt(),a=Wn(),f=e+22,E=a.firstCreatePass?function M0(e,t,n,i,a){const f=t.consts,E=qn(f,i),R=xc(t,e,8,"ng-container",E);return null!==E&&ld(R,E,!0),fh(t,n,R,qn(f,a)),null!==t.queries&&t.queries.elementStart(t,R),R}(f,a,i,t,n):a.data[f];j(E,!0);const R=i[f]=i[11].createComment("");return qu(a,i,R,E),ds(R,i),bi(E)&&(uh(a,i,E),Fp(a,E,i)),null!=n&&dh(i,E),pd}function gd(){let e=Br();const t=Wn();return Ee()?xt():(e=e.parent,j(e,!1)),t.firstCreatePass&&(yr(t,e),ni(e)&&t.queries.elementEnd(e)),gd}function Ih(e,t,n){return pd(e,t,n),gd(),Ih}function hg(){return Kt()}function Oh(e){return!!e&&"function"==typeof e.then}function fg(e){return!!e&&"function"==typeof e.subscribe}const pg=fg;function Ph(e,t,n,i){const a=Kt(),f=Wn(),E=Br();return gg(f,a,a[11],E,e,t,0,i),Ph}function Rh(e,t){const n=Br(),i=Kt(),a=Wn();return gg(a,i,Zp(to(a.data),n,i),n,e,t),Rh}function gg(e,t,n,i,a,f,E,R){const H=bi(i),ye=e.firstCreatePass&&Xp(e),He=t[8],ft=Qp(t);let It=!0;if(3&i.type||R){const fn=et(i,t),Cn=R?R(fn):fn,Hn=ft.length,en=R?Ar=>R(or(Ar[i.index])):i.index;let Fn=null;if(!R&&H&&(Fn=function I0(e,t,n,i){const a=e.cleanup;if(null!=a)for(let f=0;f<a.length-1;f+=2){const E=a[f];if(E===n&&a[f+1]===i){const R=t[7],H=a[f+2];return R.length>H?R[H]:null}"string"==typeof E&&(f+=2)}return null}(e,t,a,i.index)),null!==Fn)(Fn.__ngLastListenerFn__||Fn).__ngNextListenerFn__=f,Fn.__ngLastListenerFn__=f,It=!1;else{f=_g(i,t,He,f,!1);const Ar=n.listen(Cn,a,f);ft.push(f,Ar),ye&&ye.push(a,en,Hn,Hn+1)}}else f=_g(i,t,He,f,!1);const zt=i.outputs;let cn;if(It&&null!==zt&&(cn=zt[a])){const fn=cn.length;if(fn)for(let Cn=0;Cn<fn;Cn+=2){const ai=t[cn[Cn]][cn[Cn+1]].subscribe(f),zl=ft.length;ft.push(f,ai),ye&&ye.push(a,i.index,zl,-(zl+1))}}}function mg(e,t,n,i){try{return!1!==n(i)}catch(a){return Jp(e,a),!1}}function _g(e,t,n,i,a){return function f(E){if(E===Function)return i;mh(2&e.flags?ht(e.index,t):t);let H=mg(t,0,i,E),ae=f.__ngNextListenerFn__;for(;ae;)H=mg(t,0,ae,E)&&H,ae=ae.__ngNextListenerFn__;return a&&!1===H&&(E.preventDefault(),E.returnValue=!1),H}}function vg(e=1){return function Q(e){return(Dn.lFrame.contextLView=function ge(e,t){for(;e>0;)t=t[15],e--;return t}(e,Dn.lFrame.contextLView))[8]}(e)}function O0(e,t){let n=null;const i=function Zv(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e);for(let a=0;a<t.length;a++){const f=t[a];if("*"!==f){if(null===i?lp(e,f,!0):ey(i,f))return a}else n=a}return n}function yg(e){const t=Kt()[16][6];if(!t.projection){const i=t.projection=_e(e?e.length:1,null),a=i.slice();let f=t.child;for(;null!==f;){const E=e?O0(f,e):0;null!==E&&(a[E]?a[E].projectionNext=f:i[E]=f,a[E]=f),f=f.next}}}function Eg(e,t=0,n){const i=Kt(),a=Wn(),f=xc(a,22+e,16,null,n||null);null===f.projection&&(f.projection=t),xt(),64!=(64&f.flags)&&function jv(e,t,n){rp(t[11],0,t,n,Kf(e,n,t),Zf(n.parent||t[6],n,t))}(a,i,f)}function wh(e,t,n){return Lh(e,"",t,"",n),wh}function Lh(e,t,n,i,a){const f=Kt(),E=kc(f,t,n,i);return E!==Zn&&qs(Wn(),Ut(),f,e,E,f[11],a,!1),Lh}function Og(e,t,n,i,a){const f=e[n+1],E=null===t;let R=i?xo(f):xa(f),H=!1;for(;0!==R&&(!1===H||E);){const ye=e[R+1];w0(e[R],t)&&(H=!0,e[R+1]=i?th(ye):qd(ye)),R=i?xo(ye):xa(ye)}H&&(e[n+1]=i?qd(f):th(f))}function w0(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&pi(e,t)>=0}const ki={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Pg(e){return e.substring(ki.key,ki.keyEnd)}function L0(e){return e.substring(ki.value,ki.valueEnd)}function Rg(e,t){const n=ki.textEnd;return n===t?-1:(t=ki.keyEnd=function F0(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,ki.key=t,n),zc(e,t,n))}function wg(e,t){const n=ki.textEnd;let i=ki.key=zc(e,t,n);return n===i?-1:(i=ki.keyEnd=function B0(e,t,n){let i;for(;t<n&&(45===(i=e.charCodeAt(t))||95===i||(-33&i)>=65&&(-33&i)<=90||i>=48&&i<=57);)t++;return t}(e,i,n),i=Ng(e,i,n),i=ki.value=zc(e,i,n),i=ki.valueEnd=function k0(e,t,n){let i=-1,a=-1,f=-1,E=t,R=E;for(;E<n;){const H=e.charCodeAt(E++);if(59===H)return R;34===H||39===H?R=E=xg(e,H,E,n):t===E-4&&85===f&&82===a&&76===i&&40===H?R=E=xg(e,41,E,n):H>32&&(R=E),f=a,a=i,i=-33&H}return R}(e,i,n),Ng(e,i,n))}function Lg(e){ki.key=0,ki.keyEnd=0,ki.value=0,ki.valueEnd=0,ki.textEnd=e.length}function zc(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function Ng(e,t,n,i){return(t=zc(e,t,n))<n&&t++,t}function xg(e,t,n,i){let a=-1,f=n;for(;f<i;){const E=e.charCodeAt(f++);if(E==t&&92!==a)return f;a=92==E&&92===a?0:E}throw new Error}function Nh(e,t,n){return Bo(e,t,n,!1),Nh}function xh(e,t){return Bo(e,t,null,!0),xh}function Fo(e){ko(Ug,U0,e,!1)}function U0(e,t){for(let n=function x0(e){return Lg(e),wg(e,zc(e,0,ki.textEnd))}(t);n>=0;n=wg(t,n))Ug(e,Pg(t),L0(t))}function Fg(e){ko(kn,ha,e,!0)}function ha(e,t){for(let n=function N0(e){return Lg(e),Rg(e,zc(e,0,ki.textEnd))}(t);n>=0;n=Rg(t,n))kn(e,Pg(t),!0)}function Bo(e,t,n,i){const a=Kt(),f=Wn(),E=xi(2);f.firstUpdatePass&&kg(f,e,E,i),t!==Zn&&hs(a,E,t)&&Gg(f,f.data[nt()],a,a[11],e,a[E+1]=function z0(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=b(ws(e)))),e}(t,n),i,E)}function ko(e,t,n,i){const a=Wn(),f=xi(2);a.firstUpdatePass&&kg(a,null,f,i);const E=Kt();if(n!==Zn&&hs(E,f,n)){const R=a.data[nt()];if(Hg(R,i)&&!Bg(a,f)){let H=i?R.classesWithoutHost:R.stylesWithoutHost;null!==H&&(n=p(H,n||"")),bh(a,R,E,n,i)}else!function W0(e,t,n,i,a,f,E,R){a===Zn&&(a=Re);let H=0,ae=0,ye=0<a.length?a[0]:null,He=0<f.length?f[0]:null;for(;null!==ye||null!==He;){const ft=H<a.length?a[H+1]:void 0,It=ae<f.length?f[ae+1]:void 0;let cn,zt=null;ye===He?(H+=2,ae+=2,ft!==It&&(zt=He,cn=It)):null===He||null!==ye&&ye<He?(H+=2,zt=ye):(ae+=2,zt=He,cn=It),null!==zt&&Gg(e,t,n,i,zt,cn,E,R),ye=H<a.length?a[H]:null,He=ae<f.length?f[ae]:null}}(a,R,E,E[11],E[f+1],E[f+1]=function j0(e,t,n){if(null==n||""===n)return Re;const i=[],a=ws(n);if(Array.isArray(a))for(let f=0;f<a.length;f++)e(i,a[f],!0);else if("object"==typeof a)for(const f in a)a.hasOwnProperty(f)&&e(i,f,a[f]);else"string"==typeof a&&t(i,a);return i}(e,t,n),i,f)}}function Bg(e,t){return t>=e.expandoStartIndex}function kg(e,t,n,i){const a=e.data;if(null===a[n+1]){const f=a[nt()],E=Bg(e,n);Hg(f,i)&&null===t&&!E&&(t=!1),t=function G0(e,t,n,i){const a=to(e);let f=i?t.residualClasses:t.residualStyles;if(null===a)0===(i?t.classBindings:t.styleBindings)&&(n=Nu(n=Fh(null,e,t,n,i),t.attrs,i),f=null);else{const E=t.directiveStylingLast;if(-1===E||e[E]!==a)if(n=Fh(a,e,t,n,i),null===f){let H=function V0(e,t,n){const i=n?t.classBindings:t.styleBindings;if(0!==xa(i))return e[xo(i)]}(e,t,i);void 0!==H&&Array.isArray(H)&&(H=Fh(null,e,t,H[1],i),H=Nu(H,t.attrs,i),function H0(e,t,n,i){e[xo(n?t.classBindings:t.styleBindings)]=i}(e,t,i,H))}else f=function $0(e,t,n){let i;const a=t.directiveEnd;for(let f=1+t.directiveStylingLast;f<a;f++)i=Nu(i,e[f].hostAttrs,n);return Nu(i,t.attrs,n)}(e,t,i)}return void 0!==f&&(i?t.residualClasses=f:t.residualStyles=f),n}(a,f,t,i),function P0(e,t,n,i,a,f){let E=f?t.classBindings:t.styleBindings,R=xo(E),H=xa(E);e[i]=n;let ye,ae=!1;if(Array.isArray(n)){const He=n;ye=He[1],(null===ye||pi(He,ye)>0)&&(ae=!0)}else ye=n;if(a)if(0!==H){const ft=xo(e[R+1]);e[i+1]=nd(ft,R),0!==ft&&(e[ft+1]=eh(e[ft+1],i)),e[R+1]=function Ay(e,t){return 131071&e|t<<17}(e[R+1],i)}else e[i+1]=nd(R,0),0!==R&&(e[R+1]=eh(e[R+1],i)),R=i;else e[i+1]=nd(H,0),0===R?R=i:e[H+1]=eh(e[H+1],i),H=i;ae&&(e[i+1]=qd(e[i+1])),Og(e,ye,i,!0),Og(e,ye,i,!1),function R0(e,t,n,i,a){const f=a?e.residualClasses:e.residualStyles;null!=f&&"string"==typeof t&&pi(f,t)>=0&&(n[i+1]=th(n[i+1]))}(t,ye,e,i,f),E=nd(R,H),f?t.classBindings=E:t.styleBindings=E}(a,f,t,n,E,i)}}function Fh(e,t,n,i,a){let f=null;const E=n.directiveEnd;let R=n.directiveStylingLast;for(-1===R?R=n.directiveStart:R++;R<E&&(f=t[R],i=Nu(i,f.hostAttrs,a),f!==e);)R++;return null!==e&&(n.directiveStylingLast=R),i}function Nu(e,t,n){const i=n?1:2;let a=-1;if(null!==t)for(let f=0;f<t.length;f++){const E=t[f];"number"==typeof E?a=E:a===i&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),kn(e,E,!!n||t[++f]))}return void 0===e?null:e}function Ug(e,t,n){kn(e,t,ws(n))}function Gg(e,t,n,i,a,f,E,R){if(!(3&t.type))return;const H=e.data,ae=H[R+1];md(function bp(e){return 1==(1&e)}(ae)?Vg(H,t,n,a,xa(ae),E):void 0)||(md(f)||function Tp(e){return 2==(2&e)}(ae)&&(f=Vg(H,null,n,a,R,E)),function zv(e,t,n,i,a){if(t)a?e.addClass(n,i):e.removeClass(n,i);else{let f=-1===i.indexOf("-")?void 0:ca.DashCase;null==a?e.removeStyle(n,i,f):("string"==typeof a&&a.endsWith("!important")&&(a=a.slice(0,-10),f|=ca.Important),e.setStyle(n,i,a,f))}}(i,E,Ve(nt(),n),a,f))}function Vg(e,t,n,i,a,f){const E=null===t;let R;for(;a>0;){const H=e[a],ae=Array.isArray(H),ye=ae?H[1]:H,He=null===ye;let ft=n[a+1];ft===Zn&&(ft=He?Re:void 0);let It=He?fi(ft,i):ye===i?ft:void 0;if(ae&&!md(It)&&(It=fi(H,i)),md(It)&&(R=It,E))return R;const zt=e[a+1];a=E?xo(zt):xa(zt)}if(null!==t){let H=f?t.residualClasses:t.residualStyles;null!=H&&(R=fi(H,i))}return R}function md(e){return void 0!==e}function Hg(e,t){return 0!=(e.flags&(t?16:32))}function $g(e,t=""){const n=Kt(),i=Wn(),a=e+22,f=i.firstCreatePass?xc(i,a,1,t,null):i.data[a],E=n[a]=function Vd(e,t){return e.createText(t)}(n[11],t);qu(i,n,E,f),j(f,!1)}function Bh(e){return _d("",e,""),Bh}function _d(e,t,n){const i=Kt(),a=kc(i,e,t,n);return a!==Zn&&Fa(i,nt(),a),_d}function kh(e,t,n,i,a){const f=Kt(),E=function Uc(e,t,n,i,a,f){const R=$l(e,Ci(),n,a);return xi(2),R?t+U(n)+i+U(a)+f:Zn}(f,e,t,n,i,a);return E!==Zn&&Fa(f,nt(),E),kh}function Uh(e,t,n,i,a,f,E){const R=Kt(),H=function Gc(e,t,n,i,a,f,E,R){const ae=dd(e,Ci(),n,a,E);return xi(3),ae?t+U(n)+i+U(a)+f+U(E)+R:Zn}(R,e,t,n,i,a,f,E);return H!==Zn&&Fa(R,nt(),H),Uh}function Gh(e,t,n,i,a,f,E,R,H){const ae=Kt(),ye=function Vc(e,t,n,i,a,f,E,R,H,ae){const He=po(e,Ci(),n,a,E,H);return xi(4),He?t+U(n)+i+U(a)+f+U(E)+R+U(H)+ae:Zn}(ae,e,t,n,i,a,f,E,R,H);return ye!==Zn&&Fa(ae,nt(),ye),Gh}function Qg(e,t,n){ko(kn,ha,kc(Kt(),e,t,n),!0)}function Vh(e,t,n){const i=Kt();return hs(i,As(),t)&&qs(Wn(),Ut(),i,e,t,i[11],n,!0),Vh}function Hh(e,t,n){const i=Kt();if(hs(i,As(),t)){const f=Wn(),E=Ut();qs(f,E,i,e,t,Zp(to(f.data),E,i),n,!0)}return Hh}const jl=void 0;var dE=["en",[["a","p"],["AM","PM"],jl],[["AM","PM"],jl,jl],[["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"]],jl,[["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"]],jl,[["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}",jl,"{1} 'at' {0}",jl],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function uE(e){const n=Math.floor(Math.abs(e)),i=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===i?1:5}];let Kc={};function hE(e,t,n){"string"!=typeof t&&(n=t,t=e[Gn.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),Kc[t]=e,n&&(Kc[t][Gn.ExtraData]=n)}function $h(e){const t=function fE(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=om(t);if(n)return n;const i=t.split("-")[0];if(n=om(i),n)return n;if("en"===i)return dE;throw new B(701,!1)}function sm(e){return $h(e)[Gn.PluralCase]}function om(e){return e in Kc||(Kc[e]=Ct.ng&&Ct.ng.common&&Ct.ng.common.locales&&Ct.ng.common.locales[e]),Kc[e]}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 Yc="en-US";let am=Yc;function zh(e,t,n,i,a){if(e=T(e),Array.isArray(e))for(let f=0;f<e.length;f++)zh(e[f],t,n,i,a);else{const f=Wn(),E=Kt();let R=Qs(e)?e:T(e.provide),H=K(e);const ae=Br(),ye=1048575&ae.providerIndexes,He=ae.directiveStart,ft=ae.providerIndexes>>20;if(Qs(e)||!e.multi){const It=new ls(H,a,Nc),zt=Yh(R,t,a?ye:ye+ft,He);-1===zt?(jr(io(ae,E),f,R),Kh(f,e,t.length),t.push(R),ae.directiveStart++,ae.directiveEnd++,a&&(ae.providerIndexes+=1048576),n.push(It),E.push(It)):(n[zt]=It,E[zt]=It)}else{const It=Yh(R,t,ye+ft,He),zt=Yh(R,t,ye,ye+ft),cn=It>=0&&n[It],fn=zt>=0&&n[zt];if(a&&!fn||!a&&!cn){jr(io(ae,E),f,R);const Cn=function uD(e,t,n,i,a){const f=new ls(e,n,Nc);return f.multi=[],f.index=t,f.componentProviders=0,wm(f,a,i&&!n),f}(a?cD:lD,n.length,a,i,H);!a&&fn&&(n[zt].providerFactory=Cn),Kh(f,e,t.length,0),t.push(R),ae.directiveStart++,ae.directiveEnd++,a&&(ae.providerIndexes+=1048576),n.push(Cn),E.push(Cn)}else Kh(f,e,It>-1?It:zt,wm(n[a?zt:It],H,!a&&i));!a&&i&&fn&&n[zt].componentProviders++}}}function Kh(e,t,n,i){const a=Qs(t),f=function Su(e){return!!e.useClass}(t);if(a||f){const H=(f?T(t.useClass):t).prototype.ngOnDestroy;if(H){const ae=e.destroyHooks||(e.destroyHooks=[]);if(!a&&t.multi){const ye=ae.indexOf(n);-1===ye?ae.push(n,[i,H]):ae[ye+1].push(i,H)}else ae.push(n,H)}}}function wm(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Yh(e,t,n,i){for(let a=n;a<i;a++)if(t[a]===e)return a;return-1}function lD(e,t,n,i){return Qh(this.multi,[])}function cD(e,t,n,i){const a=this.multi;let f;if(this.providerFactory){const E=this.providerFactory.componentProviders,R=ea(n,n[1],this.providerFactory.index,i);f=R.slice(0,E),Qh(a,f);for(let H=E;H<R.length;H++)f.push(R[H])}else f=[],Qh(a,f);return f}function Qh(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function Lm(e,t=[]){return n=>{n.providersResolver=(i,a)=>function aD(e,t,n){const i=Wn();if(i.firstCreatePass){const a=Fr(e);zh(n,i.data,i.blueprint,a,!0),zh(t,i.data,i.blueprint,a,!1)}}(i,a?a(e):e,t)}}class Xc{}class Nm{}function dD(e,t){return new xm(e,t??null)}class xm extends Xc{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Eh(this);const i=jn(t);this._bootstrapComponents=Na(i.bootstrap),this._r3Injector=mp(t,n,[{provide:Xc,useValue:this},{provide:Vn,useValue:this.componentFactoryResolver}],b(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Xh extends Nm{constructor(t){super(),this.moduleType=t}create(t){return new xm(this.moduleType,t)}}class hD extends Xc{constructor(t,n,i){super(),this.componentFactoryResolver=new Eh(this),this.instance=null;const a=new m([...t,{provide:Xc,useValue:this},{provide:Vn,useValue:this.componentFactoryResolver}],n||rl(),i,new Set(["environment"]));this.injector=a,a.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function Zh(e,t,n=null){return new hD(e,t,n).injector}let fD=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n.id)){const i=Ic(0,n.type),a=i.length>0?Zh([i],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n.id,a)}return this.cachedInjectors.get(n.id)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}}return e.\u0275prov=me({token:e,providedIn:"environment",factory:()=>new e(qr(Lo))}),e})();function Fm(e){e.getStandaloneInjector=t=>t.get(fD).getOrCreateStandaloneInjector(e)}function $m(e,t,n){const i=Rr()+e,a=Kt();return a[i]===Zn?da(a,i,n?t.call(n):t()):Lu(a,i)}function jm(e,t,n,i){return Jm(Kt(),Rr(),e,t,n,i)}function Wm(e,t,n,i,a){return qm(Kt(),Rr(),e,t,n,i,a)}function zm(e,t,n,i,a,f){return e_(Kt(),Rr(),e,t,n,i,a,f)}function Km(e,t,n,i,a,f,E){return t_(Kt(),Rr(),e,t,n,i,a,f,E)}function Ym(e,t,n,i,a,f,E,R){const H=Rr()+e,ae=Kt(),ye=po(ae,H,n,i,a,f);return hs(ae,H+4,E)||ye?da(ae,H+5,R?t.call(R,n,i,a,f,E):t(n,i,a,f,E)):Lu(ae,H+5)}function Qm(e,t,n,i,a,f,E,R,H){const ae=Rr()+e,ye=Kt(),He=po(ye,ae,n,i,a,f);return $l(ye,ae+4,E,R)||He?da(ye,ae+6,H?t.call(H,n,i,a,f,E,R):t(n,i,a,f,E,R)):Lu(ye,ae+6)}function Xm(e,t,n,i,a,f,E,R,H,ae){const ye=Rr()+e,He=Kt();let ft=po(He,ye,n,i,a,f);return dd(He,ye+4,E,R,H)||ft?da(He,ye+7,ae?t.call(ae,n,i,a,f,E,R,H):t(n,i,a,f,E,R,H)):Lu(He,ye+7)}function Zm(e,t,n,i){return function n_(e,t,n,i,a,f){let E=t+n,R=!1;for(let H=0;H<a.length;H++)hs(e,E++,a[H])&&(R=!0);return R?da(e,E,i.apply(f,a)):Uu(e,E)}(Kt(),Rr(),e,t,n,i)}function Uu(e,t){const n=e[t];return n===Zn?void 0:n}function Jm(e,t,n,i,a,f){const E=t+n;return hs(e,E,a)?da(e,E+1,f?i.call(f,a):i(a)):Uu(e,E+1)}function qm(e,t,n,i,a,f,E){const R=t+n;return $l(e,R,a,f)?da(e,R+2,E?i.call(E,a,f):i(a,f)):Uu(e,R+2)}function e_(e,t,n,i,a,f,E,R){const H=t+n;return dd(e,H,a,f,E)?da(e,H+3,R?i.call(R,a,f,E):i(a,f,E)):Uu(e,H+3)}function t_(e,t,n,i,a,f,E,R,H){const ae=t+n;return po(e,ae,a,f,E,R)?da(e,ae+4,H?i.call(H,a,f,E,R):i(a,f,E,R)):Uu(e,ae+4)}function r_(e,t){const n=Wn();let i;const a=e+22;n.firstCreatePass?(i=function CD(e,t){if(t)for(let n=t.length-1;n>=0;n--){const i=t[n];if(e===i.name)return i}}(t,n.pipeRegistry),n.data[a]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(a,i.onDestroy)):i=n.data[a];const f=i.factory||(i.factory=Or(i.type)),E=pe(Nc);try{const R=Bs(!1),H=f();return Bs(R),function T0(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(n,Kt(),a,H),H}finally{pe(E)}}function i_(e,t,n){const i=e+22,a=Kt(),f=tn(a,i);return Gu(a,i)?Jm(a,Rr(),t,f.transform,n,f):f.transform(n)}function s_(e,t,n,i){const a=e+22,f=Kt(),E=tn(f,a);return Gu(f,a)?qm(f,Rr(),t,E.transform,n,i,E):E.transform(n,i)}function o_(e,t,n,i,a){const f=e+22,E=Kt(),R=tn(E,f);return Gu(E,f)?e_(E,Rr(),t,R.transform,n,i,a,R):R.transform(n,i,a)}function a_(e,t,n,i,a,f){const E=e+22,R=Kt(),H=tn(R,E);return Gu(R,E)?t_(R,Rr(),t,H.transform,n,i,a,f,H):H.transform(n,i,a,f)}function Gu(e,t){return e[1].data[t].pure}function qh(e){return t=>{setTimeout(e,void 0,t)}}const fa=class TD extends s.x{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,i){let a=t,f=n||(()=>null),E=i;if(t&&"object"==typeof t){const H=t;a=H.next?.bind(H),f=H.error?.bind(H),E=H.complete?.bind(H)}this.__isAsync&&(f=qh(f),a&&(a=qh(a)),E&&(E=qh(E)));const R=super.subscribe({next:a,error:f,complete:E});return t instanceof c.w0&&t.add(R),R}};function bD(){return this._results[Hl()]()}class Ad{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=Hl(),i=Ad.prototype;i[n]||(i[n]=bD)}get changes(){return this._changes||(this._changes=new fa)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){const i=this;i.dirty=!1;const a=O(t);(this._changesDetected=!function M(e,t,n){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++){let a=e[i],f=t[i];if(n&&(a=n(a),f=n(f)),f!==a)return!1}return!0}(i._results,a,n))&&(i._results=a,i.length=a.length,i.last=a[this.length-1],i.first=a[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let Vu=(()=>{class e{}return e.__NG_ELEMENT_ID__=OD,e})();const MD=Vu,ID=class extends MD{constructor(t,n,i){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=i}createEmbeddedView(t,n){const i=this._declarationTContainer.tViews,a=sd(this._declarationLView,i,t,16,null,i.declTNode,null,null,null,null,n||null);a[17]=this._declarationLView[this._declarationTContainer.index];const E=this._declarationLView[19];return null!==E&&(a[19]=E.createEmbeddedView(i)),od(i,a,t),new Pu(a)}};function OD(){return Cd(Br(),Kt())}function Cd(e,t){return 4&e.type?new ID(t,e,Vr(e,t)):null}let Sd=(()=>{class e{}return e.__NG_ELEMENT_ID__=PD,e})();function PD(){return u_(Br(),Kt())}const RD=Sd,l_=class extends RD{constructor(t,n,i){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=i}get element(){return Vr(this._hostTNode,this._hostLView)}get injector(){return new Us(this._hostTNode,this._hostLView)}get parentInjector(){const t=Xo(this._hostTNode,this._hostLView);if(Ga(t)){const n=ms(t,this._hostLView),i=ro(t);return new Us(n[1].data[i+8],n)}return new Us(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=c_(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,i){let a,f;"number"==typeof i?a=i:null!=i&&(a=i.index,f=i.injector);const E=t.createEmbeddedView(n||{},f);return this.insert(E,a),E}createComponent(t,n,i,a,f){const E=t&&!function lo(e){return"function"==typeof e}(t);let R;if(E)R=n;else{const He=n||{};R=He.index,i=He.injector,a=He.projectableNodes,f=He.environmentInjector||He.ngModuleRef}const H=E?t:new Ru(On(t)),ae=i||this.parentInjector;if(!f&&null==H.ngModule){const ft=(E?ae:this.parentInjector).get(Lo,null);ft&&(f=ft)}const ye=H.create(ae,a,void 0,f);return this.insert(ye.hostView,R),ye}insert(t,n){const i=t._lView,a=i[1];if(function Kn(e){return xr(e[3])}(i)){const ye=this.indexOf(t);if(-1!==ye)this.detach(ye);else{const He=i[3],ft=new l_(He,He[6],He[3]);ft.detach(ft.indexOf(t))}}const f=this._adjustIndex(n),E=this._lContainer;!function kv(e,t,n,i){const a=10+i,f=n.length;i>0&&(n[a-1][4]=t),i<f-10?(t[4]=n[a],z(n,10+i,t)):(n.push(t),t[4]=null),t[3]=n;const E=t[17];null!==E&&n!==E&&function Uv(e,t){const n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(E,t);const R=t[19];null!==R&&R.insertView(e),t[2]|=64}(a,i,E,f);const R=zd(f,E),H=i[11],ae=Ju(H,E[7]);return null!==ae&&function xv(e,t,n,i,a,f){i[0]=a,i[6]=t,Iu(e,i,n,1,a,f)}(a,E[6],H,i,ae,R),t.attachToViewContainerRef(),z(ef(E),f,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=c_(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),i=$d(this._lContainer,n);i&&(re(ef(this._lContainer),n),zf(i[1],i))}detach(t){const n=this._adjustIndex(t,-1),i=$d(this._lContainer,n);return i&&null!=re(ef(this._lContainer),n)?new Pu(i):null}_adjustIndex(t,n=0){return t??this.length+n}};function c_(e){return e[8]}function ef(e){return e[8]||(e[8]=[])}function u_(e,t){let n;const i=t[e.index];if(xr(i))n=i;else{let a;if(8&e.type)a=or(i);else{const f=t[11];a=f.createComment("");const E=et(e,t);Gl(f,Ju(f,E),a,function $v(e,t){return e.nextSibling(t)}(f,E),!1)}t[e.index]=n=Kp(i,t,a,e),ad(t,n)}return new l_(n,e,t)}class tf{constructor(t){this.queryList=t,this.matches=null}clone(){return new tf(this.queryList)}setDirty(){this.queryList.setDirty()}}class nf{constructor(t=[]){this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const i=null!==t.contentQueries?t.contentQueries[0]:n.length,a=[];for(let f=0;f<i;f++){const E=n.getByIndex(f);a.push(this.queries[E.indexInDeclarationView].clone())}return new nf(a)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)null!==y_(t,n).matches&&this.queries[n].setDirty()}}class d_{constructor(t,n,i=null){this.predicate=t,this.flags=n,this.read=i}}class rf{constructor(t=[]){this.queries=t}elementStart(t,n){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let i=0;i<this.length;i++){const a=null!==n?n.length:0,f=this.getByIndex(i).embeddedTView(t,a);f&&(f.indexInDeclarationView=i,null!==n?n.push(f):n=[f])}return null!==n?new rf(n):null}template(t,n){for(let i=0;i<this.queries.length;i++)this.queries[i].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class sf{constructor(t,n=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new sf(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const n=this._declarationNodeIndex;let i=t.parent;for(;null!==i&&8&i.type&&i.index!==n;)i=i.parent;return n===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(t,n){const i=this.metadata.predicate;if(Array.isArray(i))for(let a=0;a<i.length;a++){const f=i[a];this.matchTNodeWithReadOption(t,n,ND(n,f)),this.matchTNodeWithReadOption(t,n,so(n,t,f,!1,!1))}else i===Vu?4&n.type&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,so(n,t,i,!1,!1))}matchTNodeWithReadOption(t,n,i){if(null!==i){const a=this.metadata.read;if(null!==a)if(a===kr||a===Sd||a===Vu&&4&n.type)this.addMatch(n.index,-2);else{const f=so(n,t,a,!1,!1);null!==f&&this.addMatch(n.index,f)}else this.addMatch(n.index,i)}}addMatch(t,n){null===this.matches?this.matches=[t,n]:this.matches.push(t,n)}}function ND(e,t){const n=e.localNames;if(null!==n)for(let i=0;i<n.length;i+=2)if(n[i]===t)return n[i+1];return null}function FD(e,t,n,i){return-1===n?function xD(e,t){return 11&e.type?Vr(e,t):4&e.type?Cd(e,t):null}(t,e):-2===n?function BD(e,t,n){return n===kr?Vr(t,e):n===Vu?Cd(t,e):n===Sd?u_(t,e):void 0}(e,t,i):ea(e,e[1],n,t)}function h_(e,t,n,i){const a=t[19].queries[i];if(null===a.matches){const f=e.data,E=n.matches,R=[];for(let H=0;H<E.length;H+=2){const ae=E[H];R.push(ae<0?null:FD(t,f[ae],E[H+1],n.metadata.read))}a.matches=R}return a.matches}function af(e,t,n,i){const a=e.queries.getByIndex(n),f=a.matches;if(null!==f){const E=h_(e,t,a,n);for(let R=0;R<f.length;R+=2){const H=f[R];if(H>0)i.push(E[R/2]);else{const ae=f[R+1],ye=t[-H];for(let He=10;He<ye.length;He++){const ft=ye[He];ft[17]===ft[3]&&af(ft[1],ft,ae,i)}if(null!==ye[9]){const He=ye[9];for(let ft=0;ft<He.length;ft++){const It=He[ft];af(It[1],It,ae,i)}}}}}return i}function f_(e){const t=Kt(),n=Wn(),i=Fs();as(i+1);const a=y_(n,i);if(e.dirty&&In(t)===(2==(2&a.metadata.flags))){if(null===a.matches)e.reset([]);else{const f=a.crossesNgTemplate?af(n,t,i,[]):h_(n,t,a,i);e.reset(f,Xs),e.notifyOnChanges()}return!0}return!1}function p_(e,t,n){const i=Wn();i.firstCreatePass&&(v_(i,new d_(e,t,n),-1),2==(2&t)&&(i.staticViewQueries=!0)),__(i,Kt(),t)}function g_(e,t,n,i){const a=Wn();if(a.firstCreatePass){const f=Br();v_(a,new d_(t,n,i),f.index),function UD(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(a,e),2==(2&n)&&(a.staticContentQueries=!0)}__(a,Kt(),n)}function m_(){return function kD(e,t){return e[19].queries[t].queryList}(Kt(),Fs())}function __(e,t,n){const i=new Ad(4==(4&n));kp(e,t,i,i.destroy),null===t[19]&&(t[19]=new nf),t[19].queries.push(new tf(i))}function v_(e,t,n){null===e.queries&&(e.queries=new rf),e.queries.track(new sf(t,n))}function y_(e,t){return e.queries.getByIndex(t)}function E_(e,t){return Cd(e,t)}const sA=Os("Input",e=>({bindingPropertyName:e})),oA=Os("Output",e=>({bindingPropertyName:e})),aA=Os("HostBinding",e=>({hostPropertyName:e})),lA=Os("HostListener",(e,t)=>({eventName:e,args:t}));function bd(...e){}const U_=new Tr("Application Initializer");let Md=(()=>{class e{constructor(n){this.appInits=n,this.resolve=bd,this.reject=bd,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,a)=>{this.resolve=i,this.reject=a})}runInitializers(){if(this.initialized)return;const n=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let a=0;a<this.appInits.length;a++){const f=this.appInits[a]();if(Oh(f))n.push(f);else if(pg(f)){const E=new Promise((R,H)=>{f.subscribe({complete:R,error:H})});n.push(E)}}Promise.all(n).then(()=>{i()}).catch(a=>{this.reject(a)}),0===n.length&&i(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(qr(U_,8))},e.\u0275prov=me({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const G_=new Tr("AppId",{providedIn:"root",factory:function V_(){return`${hf()}${hf()}${hf()}`}});function hf(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const H_=new Tr("Platform Initializer"),cA=new Tr("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),$_=new Tr("appBootstrapListener"),uA=new Tr("AnimationModuleType");let dA=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=me({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const Id=new Tr("LocaleId",{providedIn:"root",factory:()=>_l(Id,Tt.Optional|Tt.SkipSelf)||function hA(){return typeof $localize<"u"&&$localize.locale||Yc}()}),fA=new Tr("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class pA{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let gA=(()=>{class e{compileModuleSync(n){return new Xh(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const i=this.compileModuleSync(n),f=Na(jn(n).declarations).reduce((E,R)=>{const H=On(R);return H&&E.push(new Ru(H)),E},[]);return new pA(i,f)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=me({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const vA=(()=>Promise.resolve(0))();function ff(e){typeof Zone>"u"?vA.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class go{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new fa(!1),this.onMicrotaskEmpty=new fa(!1),this.onStable=new fa(!1),this.onError=new fa(!1),typeof Zone>"u")throw new B(908,!1);Zone.assertZonePatched();const a=this;if(a._nesting=0,a._outer=a._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const f=Zone.AsyncStackTaggingZoneSpec;a._inner=a._inner.fork(new f("Angular"))}Zone.TaskTrackingZoneSpec&&(a._inner=a._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(a._inner=a._inner.fork(Zone.longStackTraceZoneSpec)),a.shouldCoalesceEventChangeDetection=!i&&n,a.shouldCoalesceRunChangeDetection=i,a.lastRequestAnimationFrameId=-1,a.nativeRequestAnimationFrame=function yA(){let e=Ct.requestAnimationFrame,t=Ct.cancelAnimationFrame;if(typeof Zone<"u"&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function AA(e){const t=()=>{!function DA(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Ct,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,gf(e),e.isCheckStableRunning=!0,pf(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),gf(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,a,f,E,R)=>{try{return z_(e),n.invokeTask(a,f,E,R)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===f.type||e.shouldCoalesceRunChangeDetection)&&t(),K_(e)}},onInvoke:(n,i,a,f,E,R,H)=>{try{return z_(e),n.invoke(a,f,E,R,H)}finally{e.shouldCoalesceRunChangeDetection&&t(),K_(e)}},onHasTask:(n,i,a,f)=>{n.hasTask(a,f),i===a&&("microTask"==f.change?(e._hasPendingMicrotasks=f.microTask,gf(e),pf(e)):"macroTask"==f.change&&(e.hasPendingMacrotasks=f.macroTask))},onHandleError:(n,i,a,f)=>(n.handleError(a,f),e.runOutsideAngular(()=>e.onError.emit(f)),!1)})}(a)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!go.isInAngularZone())throw new B(909,!1)}static assertNotInAngularZone(){if(go.isInAngularZone())throw new B(909,!1)}run(t,n,i){return this._inner.run(t,n,i)}runTask(t,n,i,a){const f=this._inner,E=f.scheduleEventTask("NgZoneEvent: "+a,t,EA,bd,bd);try{return f.runTask(E,n,i)}finally{f.cancelTask(E)}}runGuarded(t,n,i){return this._inner.runGuarded(t,n,i)}runOutsideAngular(t){return this._outer.run(t)}}const EA={};function pf(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function gf(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function z_(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function K_(e){e._nesting--,pf(e)}class CA{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new fa,this.onMicrotaskEmpty=new fa,this.onStable=new fa,this.onError=new fa}run(t,n,i){return t.apply(n,i)}runGuarded(t,n,i){return t.apply(n,i)}runOutsideAngular(t){return t()}runTask(t,n,i,a){return t.apply(n,i)}}const Y_=new Tr(""),Q_=new Tr("");let mf,SA=(()=>{class e{constructor(n,i,a){this._ngZone=n,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,mf||(function TA(e){mf=e}(a),a.addToWindow(i)),this._watchAngularEvents(),n.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:()=>{go.assertNotInAngularZone(),ff(()=>{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())ff(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(n)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,i,a){let f=-1;i&&i>0&&(f=setTimeout(()=>{this._callbacks=this._callbacks.filter(E=>E.timeoutId!==f),n(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:n,timeoutId:f,updateCb:a})}whenStable(n,i,a){if(a&&!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(n,i,a),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,i,a){return[]}}return e.\u0275fac=function(n){return new(n||e)(qr(go),qr(X_),qr(Q_))},e.\u0275prov=me({token:e,factory:e.\u0275fac}),e})(),X_=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,i){this._applications.set(n,i)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,i=!0){return mf?.findTestabilityInTree(this,n,i)??null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=me({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})(),ol=null;const Z_=new Tr("AllowMultipleToken"),_f=new Tr("PlatformDestroyListeners");class IA{constructor(t,n){this.name=t,this.token=n}}function q_(e,t,n=[]){const i=`Platform: ${t}`,a=new Tr(i);return(f=[])=>{let E=vf();if(!E||E.injector.get(Z_,!1)){const R=[...n,...f,{provide:a,useValue:!0}];e?e(R):function OA(e){if(ol&&!ol.get(Z_,!1))throw new B(400,!1);ol=e;const t=e.get(tv);(function J_(e){const t=e.get(H_,null);t&&t.forEach(n=>n())})(e)}(function ev(e=[],t){return Vl.create({name:t,providers:[{provide:la,useValue:"platform"},{provide:_f,useValue:new Set([()=>ol=null])},...e]})}(R,i))}return function RA(e){const t=vf();if(!t)throw new B(401,!1);return t}()}}function vf(){return ol?.get(tv)??null}let tv=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,i){const a=function rv(e,t){let n;return n="noop"===e?new CA:("zone.js"===e?void 0:e)||new go(t),n}(i?.ngZone,function nv(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!e||!e.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!e||!e.ngZoneRunCoalescing)||!1}}(i)),f=[{provide:go,useValue:a}];return a.run(()=>{const E=Vl.create({providers:f,parent:this.injector,name:n.moduleType.name}),R=n.create(E),H=R.injector.get(Rn,null);if(!H)throw new B(402,!1);return a.runOutsideAngular(()=>{const ae=a.onError.subscribe({next:ye=>{H.handleError(ye)}});R.onDestroy(()=>{Pd(this._modules,R),ae.unsubscribe()})}),function iv(e,t,n){try{const i=n();return Oh(i)?i.catch(a=>{throw t.runOutsideAngular(()=>e.handleError(a)),a}):i}catch(i){throw t.runOutsideAngular(()=>e.handleError(i)),i}}(H,a,()=>{const ae=R.injector.get(Md);return ae.runInitializers(),ae.donePromise.then(()=>(function lm(e){$e(e,"Expected localeId to be defined"),"string"==typeof e&&(am=e.toLowerCase().replace(/_/g,"-"))}(R.injector.get(Id,Yc)||Yc),this._moduleDoBootstrap(R),R))})})}bootstrapModule(n,i=[]){const a=sv({},i);return function bA(e,t,n){const i=new Xh(n);return Promise.resolve(i)}(0,0,n).then(f=>this.bootstrapModuleFactory(f,a))}_moduleDoBootstrap(n){const i=n.injector.get(Od);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(a=>i.bootstrap(a));else{if(!n.instance.ngDoBootstrap)throw new B(403,!1);n.instance.ngDoBootstrap(i)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new B(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const n=this._injector.get(_f,null);n&&(n.forEach(i=>i()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(qr(Vl))},e.\u0275prov=me({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function sv(e,t){return Array.isArray(t)?t.reduce(sv,e):{...e,...t}}let Od=(()=>{class e{constructor(n,i,a){this._zone=n,this._injector=i,this._exceptionHandler=a,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 f=new A.y(R=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{R.next(this._stable),R.complete()})}),E=new A.y(R=>{let H;this._zone.runOutsideAngular(()=>{H=this._zone.onStable.subscribe(()=>{go.assertNotInAngularZone(),ff(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,R.next(!0))})})});const ae=this._zone.onUnstable.subscribe(()=>{go.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{R.next(!1)}))});return()=>{H.unsubscribe(),ae.unsubscribe()}});this.isStable=(0,w.T)(f,E.pipe((0,N.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,i){const a=n instanceof rn;if(!this._injector.get(Md).done)throw!a&&Tn(n),new B(405,false);let E;E=a?n:this._injector.get(Vn).resolveComponentFactory(n),this.componentTypes.push(E.componentType);const R=function MA(e){return e.isBoundToModule}(E)?void 0:this._injector.get(Xc),ae=E.create(Vl.NULL,[],i||E.selector,R),ye=ae.location.nativeElement,He=ae.injector.get(Y_,null);return He?.registerApplication(ye),ae.onDestroy(()=>{this.detachView(ae.hostView),Pd(this.components,ae),He?.unregisterApplication(ye)}),this._loadComponent(ae),ae}tick(){if(this._runningTick)throw new B(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){const i=n;Pd(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get($_,[]).concat(this._bootstrapListeners).forEach(a=>a(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Pd(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new B(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return e.\u0275fac=function(n){return new(n||e)(qr(go),qr(Lo),qr(Rn))},e.\u0275prov=me({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Pd(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let av=!0,lv=!1;function LA(){return lv=!0,av}function NA(){if(lv)throw new Error("Cannot enable prod mode after platform setup.");av=!1}let xA=(()=>{class e{}return e.__NG_ELEMENT_ID__=FA,e})();function FA(e){return function BA(e,t,n){if(ri(e)&&!n){const i=ht(e.index,t);return new Pu(i,i)}return 47&e.type?new Pu(t[16],t):null}(Br(),Kt(),16==(16&e))}class hv{constructor(){}supports(t){return wu(t)}create(t){return new $A(t)}}const HA=(e,t)=>t;class $A{constructor(t){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=t||HA}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,i=this._removalsHead,a=0,f=null;for(;n||i;){const E=!i||n&&n.currentIndex<pv(i,a,f)?n:i,R=pv(E,a,f),H=E.currentIndex;if(E===i)a--,i=i._nextRemoved;else if(n=n._next,null==E.previousIndex)a++;else{f||(f=[]);const ae=R-a,ye=H-a;if(ae!=ye){for(let ft=0;ft<ae;ft++){const It=ft<f.length?f[ft]:f[ft]=0,zt=It+ft;ye<=zt&&zt<ae&&(f[ft]=It+1)}f[E.previousIndex]=ye-ae}}R!==H&&t(E,R,H)}}forEachPreviousItem(t){let n;for(n=this._previousItHead;null!==n;n=n._nextPrevious)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachMovedItem(t){let n;for(n=this._movesHead;null!==n;n=n._nextMoved)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;null!==n;n=n._nextIdentityChange)t(n)}diff(t){if(null==t&&(t=[]),!wu(t))throw new B(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let a,f,E,n=this._itHead,i=!1;if(Array.isArray(t)){this.length=t.length;for(let R=0;R<this.length;R++)f=t[R],E=this._trackByFn(R,f),null!==n&&Object.is(n.trackById,E)?(i&&(n=this._verifyReinsertion(n,f,E,R)),Object.is(n.item,f)||this._addIdentityChange(n,f)):(n=this._mismatch(n,f,E,R),i=!0),n=n._next}else a=0,function D0(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[Hl()]();let i;for(;!(i=n.next()).done;)t(i.value)}}(t,R=>{E=this._trackByFn(a,R),null!==n&&Object.is(n.trackById,E)?(i&&(n=this._verifyReinsertion(n,R,E,a)),Object.is(n.item,R)||this._addIdentityChange(n,R)):(n=this._mismatch(n,R,E,a),i=!0),n=n._next,a++}),this.length=a;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,i,a){let f;return null===t?f=this._itTail:(f=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,f,a)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,a))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,f,a)):t=this._addAfter(new jA(n,i),f,a),t}_verifyReinsertion(t,n,i,a){let f=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==f?t=this._reinsertAfter(f,t._prev,a):t.currentIndex!=a&&(t.currentIndex=a,this._addToMoves(t,a)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}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(t,n,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const a=t._prevRemoved,f=t._nextRemoved;return null===a?this._removalsHead=f:a._nextRemoved=f,null===f?this._removalsTail=a:f._prevRemoved=a,this._insertAfter(t,n,i),this._addToMoves(t,i),t}_moveAfter(t,n,i){return this._unlink(t),this._insertAfter(t,n,i),this._addToMoves(t,i),t}_addAfter(t,n,i){return this._insertAfter(t,n,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,i){const a=null===n?this._itHead:n._next;return t._next=a,t._prev=n,null===a?this._itTail=t:a._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new fv),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,i=t._next;return null===n?this._itHead=i:n._next=i,null===i?this._itTail=n:i._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new fv),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class jA{constructor(t,n){this.item=t,this.trackById=n,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 WA{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===n||n<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const n=t._prevDup,i=t._nextDup;return null===n?this._head=i:n._nextDup=i,null===i?this._tail=n:i._prevDup=n,null===this._head}}class fv{constructor(){this.map=new Map}put(t){const n=t.trackById;let i=this.map.get(n);i||(i=new WA,this.map.set(n,i)),i.add(t)}get(t,n){const a=this.map.get(t);return a?a.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function pv(e,t,n){const i=e.previousIndex;if(null===i)return i;let a=0;return n&&i<n.length&&(a=n[i]),i+t+a}class gv{constructor(){}supports(t){return t instanceof Map||Ch(t)}create(){return new zA}}class zA{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let n;for(n=this._mapHead;null!==n;n=n._next)t(n)}forEachPreviousItem(t){let n;for(n=this._previousMapHead;null!==n;n=n._nextPrevious)t(n)}forEachChangedItem(t){let n;for(n=this._changesHead;null!==n;n=n._nextChanged)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}diff(t){if(t){if(!(t instanceof Map||Ch(t)))throw new B(900,!1)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(t,(i,a)=>{if(n&&n.key===a)this._maybeAddToChanges(n,i),this._appendAfter=n,n=n._next;else{const f=this._getOrCreateRecordForKey(a,i);n=this._insertBeforeOrAppend(n,f)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let i=n;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const i=t._prev;return n._next=t,n._prev=i,t._prev=n,i&&(i._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const a=this._records.get(t);this._maybeAddToChanges(a,n);const f=a._prev,E=a._next;return f&&(f._next=E),E&&(E._prev=f),a._next=null,a._prev=null,a}const i=new KA(t);return this._records.set(t,i),i.currentValue=n,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(i=>n(t[i],i))}}class KA{constructor(t){this.key=t,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 mv(){return new Cf([new hv])}let Cf=(()=>{class e{constructor(n){this.factories=n}static create(n,i){if(null!=i){const a=i.factories.slice();n=n.concat(a)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||mv()),deps:[[e,new Ta,new Ca]]}}find(n){const i=this.factories.find(a=>a.supports(n));if(null!=i)return i;throw new B(901,!1)}}return e.\u0275prov=me({token:e,providedIn:"root",factory:mv}),e})();function _v(){return new Sf([new gv])}let Sf=(()=>{class e{constructor(n){this.factories=n}static create(n,i){if(i){const a=i.factories.slice();n=n.concat(a)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||_v()),deps:[[e,new Ta,new Ca]]}}find(n){const i=this.factories.find(a=>a.supports(n));if(i)return i;throw new B(901,!1)}}return e.\u0275prov=me({token:e,providedIn:"root",factory:_v}),e})();const XA=q_(null,"core",[]);let ZA=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(qr(Od))},e.\u0275mod=At({type:e}),e.\u0275inj=it({}),e})();function JA(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}const qA=!0},24006:(ut,fe,d)=>{"use strict";d.d(fe,{CE:()=>Di,Cf:()=>Z,F:()=>cr,Fd:()=>or,Fj:()=>P,JJ:()=>Tt,JL:()=>Wt,JU:()=>b,Kr:()=>Ai,NI:()=>ur,On:()=>Mi,Q7:()=>Lt,QS:()=>Ns,UX:()=>Li,YN:()=>fs,Zs:()=>Ht,_:()=>Bn,_Y:()=>hi,a5:()=>Pt,gN:()=>nn,j3:()=>vo,kI:()=>Y,nD:()=>qn,oH:()=>is,qQ:()=>st,qu:()=>Wn,sg:()=>Ei,u:()=>Gi,u5:()=>wi,wV:()=>Te,x0:()=>ui});var s=d(94650),c=d(36895),A=d(50457),w=d(4128),N=d(54004);let te=(()=>{class se{constructor(j,Ee){this._renderer=j,this._elementRef=Ee,this.onChange=xt=>{},this.onTouched=()=>{}}setProperty(j,Ee){this._renderer.setProperty(this._elementRef.nativeElement,j,Ee)}registerOnTouched(j){this.onTouched=j}registerOnChange(j){this.onChange=j}setDisabledState(j){this.setProperty("disabled",j)}}return se.\u0275fac=function(j){return new(j||se)(s.Y36(s.Qsj),s.Y36(s.SBq))},se.\u0275dir=s.lG2({type:se}),se})(),I=(()=>{class se extends te{}return se.\u0275fac=function(){let q;return function(Ee){return(q||(q=s.n5z(se)))(Ee||se)}}(),se.\u0275dir=s.lG2({type:se,features:[s.qOj]}),se})();const b=new s.OlP("NgValueAccessor"),v={provide:b,useExisting:(0,s.Gpc)(()=>P),multi:!0},W=new s.OlP("CompositionEventMode");let P=(()=>{class se extends te{constructor(j,Ee,xt){super(j,Ee),this._compositionMode=xt,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function T(){const se=(0,c.q)()?(0,c.q)().getUserAgent():"";return/android (\d+)/.test(se.toLowerCase())}())}writeValue(j){this.setProperty("value",j??"")}_handleInput(j){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(j)}_compositionStart(){this._composing=!0}_compositionEnd(j){this._composing=!1,this._compositionMode&&this.onChange(j)}}return se.\u0275fac=function(j){return new(j||se)(s.Y36(s.Qsj),s.Y36(s.SBq),s.Y36(W,8))},se.\u0275dir=s.lG2({type:se,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(j,Ee){1&j&&s.NdJ("input",function(_n){return Ee._handleInput(_n.target.value)})("blur",function(){return Ee.onTouched()})("compositionstart",function(){return Ee._compositionStart()})("compositionend",function(_n){return Ee._compositionEnd(_n.target.value)})},features:[s._Bn([v]),s.qOj]}),se})();function G(se){return null==se||("string"==typeof se||Array.isArray(se))&&0===se.length}function U(se){return null!=se&&"number"==typeof se.length}const Z=new s.OlP("NgValidators"),ue=new s.OlP("NgAsyncValidators"),F=/^(?=.{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 Y{static min(q){return ee(q)}static max(q){return oe(q)}static required(q){return X(q)}static requiredTrue(q){return y(q)}static email(q){return function k(se){return G(se.value)||F.test(se.value)?null:{email:!0}}(q)}static minLength(q){return function $(se){return q=>G(q.value)||!U(q.value)?null:q.value.length<se?{minlength:{requiredLength:se,actualLength:q.value.length}}:null}(q)}static maxLength(q){return J(q)}static pattern(q){return function L(se){if(!se)return le;let q,j;return"string"==typeof se?(j="","^"!==se.charAt(0)&&(j+="^"),j+=se,"$"!==se.charAt(se.length-1)&&(j+="$"),q=new RegExp(j)):(j=se.toString(),q=se),Ee=>{if(G(Ee.value))return null;const xt=Ee.value;return q.test(xt)?null:{pattern:{requiredPattern:j,actualValue:xt}}}}(q)}static nullValidator(q){return null}static compose(q){return Et(q)}static composeAsync(q){return je(q)}}function ee(se){return q=>{if(G(q.value)||G(se))return null;const j=parseFloat(q.value);return!isNaN(j)&&j<se?{min:{min:se,actual:q.value}}:null}}function oe(se){return q=>{if(G(q.value)||G(se))return null;const j=parseFloat(q.value);return!isNaN(j)&&j>se?{max:{max:se,actual:q.value}}:null}}function X(se){return G(se.value)?{required:!0}:null}function y(se){return!0===se.value?null:{required:!0}}function J(se){return q=>U(q.value)&&q.value.length>se?{maxlength:{requiredLength:se,actualLength:q.value.length}}:null}function le(se){return null}function ce(se){return null!=se}function Se(se){return(0,s.QGY)(se)?(0,A.D)(se):se}function Qe(se){let q={};return se.forEach(j=>{q=null!=j?{...q,...j}:q}),0===Object.keys(q).length?null:q}function ct(se,q){return q.map(j=>j(se))}function $e(se){return se.map(q=>function $t(se){return!se.validate}(q)?q:j=>q.validate(j))}function Et(se){if(!se)return null;const q=se.filter(ce);return 0==q.length?null:function(j){return Qe(ct(j,q))}}function ke(se){return null!=se?Et($e(se)):null}function je(se){if(!se)return null;const q=se.filter(ce);return 0==q.length?null:function(j){const Ee=ct(j,q).map(Se);return(0,w.D)(Ee).pipe((0,N.U)(Qe))}}function de(se){return null!=se?je($e(se)):null}function me(se,q){return null===se?[q]:Array.isArray(se)?[...se,q]:[se,q]}function Ne(se){return se._rawValidators}function it(se){return se._rawAsyncValidators}function yt(se){return se?Array.isArray(se)?se:[se]:[]}function Gt(se,q){return Array.isArray(se)?se.includes(q):se===q}function Ft(se,q){const j=yt(q);return yt(se).forEach(xt=>{Gt(j,xt)||j.push(xt)}),j}function Vt(se,q){return yt(q).filter(j=>!Gt(se,j))}class sn{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(q){this._rawValidators=q||[],this._composedValidatorFn=ke(this._rawValidators)}_setAsyncValidators(q){this._rawAsyncValidators=q||[],this._composedAsyncValidatorFn=de(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(q){this._onDestroyCallbacks.push(q)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(q=>q()),this._onDestroyCallbacks=[]}reset(q){this.control&&this.control.reset(q)}hasError(q,j){return!!this.control&&this.control.hasError(q,j)}getError(q,j){return this.control?this.control.getError(q,j):null}}class nn extends sn{get formDirective(){return null}get path(){return null}}class Pt extends sn{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class wt{constructor(q){this._cd=q}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 Tt=(()=>{class se extends wt{constructor(j){super(j)}}return se.\u0275fac=function(j){return new(j||se)(s.Y36(Pt,2))},se.\u0275dir=s.lG2({type:se,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(j,Ee){2&j&&s.ekj("ng-untouched",Ee.isUntouched)("ng-touched",Ee.isTouched)("ng-pristine",Ee.isPristine)("ng-dirty",Ee.isDirty)("ng-valid",Ee.isValid)("ng-invalid",Ee.isInvalid)("ng-pending",Ee.isPending)},features:[s.qOj]}),se})(),Wt=(()=>{class se extends wt{constructor(j){super(j)}}return se.\u0275fac=function(j){return new(j||se)(s.Y36(nn,10))},se.\u0275dir=s.lG2({type:se,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(j,Ee){2&j&&s.ekj("ng-untouched",Ee.isUntouched)("ng-touched",Ee.isTouched)("ng-pristine",Ee.isPristine)("ng-dirty",Ee.isDirty)("ng-valid",Ee.isValid)("ng-invalid",Ee.isInvalid)("ng-pending",Ee.isPending)("ng-submitted",Ee.isSubmitted)},features:[s.qOj]}),se})();const dt="VALID",ze="INVALID",Ge="PENDING",Oe="DISABLED";function Ue(se){return(Yt(se)?se.validators:se)||null}function be(se){return Array.isArray(se)?ke(se):se||null}function at(se,q){return(Yt(q)?q.asyncValidators:se)||null}function At(se){return Array.isArray(se)?de(se):se||null}function Yt(se){return null!=se&&!Array.isArray(se)&&"object"==typeof se}function En(se,q,j){const Ee=se.controls;if(!(q?Object.keys(Ee):Ee).length)throw new s.vHH(1e3,"");if(!Ee[j])throw new s.vHH(1001,"")}function Ln(se,q,j){se._forEachChild((Ee,xt)=>{if(void 0===j[xt])throw new s.vHH(1002,"")})}class Hr{constructor(q,j){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=q,this._rawAsyncValidators=j,this._composedValidatorFn=be(this._rawValidators),this._composedAsyncValidatorFn=At(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(q){this._rawValidators=this._composedValidatorFn=q}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(q){this._rawAsyncValidators=this._composedAsyncValidatorFn=q}get parent(){return this._parent}get valid(){return this.status===dt}get invalid(){return this.status===ze}get pending(){return this.status==Ge}get disabled(){return this.status===Oe}get enabled(){return this.status!==Oe}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(q){this._rawValidators=q,this._composedValidatorFn=be(q)}setAsyncValidators(q){this._rawAsyncValidators=q,this._composedAsyncValidatorFn=At(q)}addValidators(q){this.setValidators(Ft(q,this._rawValidators))}addAsyncValidators(q){this.setAsyncValidators(Ft(q,this._rawAsyncValidators))}removeValidators(q){this.setValidators(Vt(q,this._rawValidators))}removeAsyncValidators(q){this.setAsyncValidators(Vt(q,this._rawAsyncValidators))}hasValidator(q){return Gt(this._rawValidators,q)}hasAsyncValidator(q){return Gt(this._rawAsyncValidators,q)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(q={}){this.touched=!0,this._parent&&!q.onlySelf&&this._parent.markAsTouched(q)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(q=>q.markAllAsTouched())}markAsUntouched(q={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(j=>{j.markAsUntouched({onlySelf:!0})}),this._parent&&!q.onlySelf&&this._parent._updateTouched(q)}markAsDirty(q={}){this.pristine=!1,this._parent&&!q.onlySelf&&this._parent.markAsDirty(q)}markAsPristine(q={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(j=>{j.markAsPristine({onlySelf:!0})}),this._parent&&!q.onlySelf&&this._parent._updatePristine(q)}markAsPending(q={}){this.status=Ge,!1!==q.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!q.onlySelf&&this._parent.markAsPending(q)}disable(q={}){const j=this._parentMarkedDirty(q.onlySelf);this.status=Oe,this.errors=null,this._forEachChild(Ee=>{Ee.disable({...q,onlySelf:!0})}),this._updateValue(),!1!==q.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...q,skipPristineCheck:j}),this._onDisabledChange.forEach(Ee=>Ee(!0))}enable(q={}){const j=this._parentMarkedDirty(q.onlySelf);this.status=dt,this._forEachChild(Ee=>{Ee.enable({...q,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:q.emitEvent}),this._updateAncestors({...q,skipPristineCheck:j}),this._onDisabledChange.forEach(Ee=>Ee(!1))}_updateAncestors(q){this._parent&&!q.onlySelf&&(this._parent.updateValueAndValidity(q),q.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(q){this._parent=q}getRawValue(){return this.value}updateValueAndValidity(q={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===dt||this.status===Ge)&&this._runAsyncValidator(q.emitEvent)),!1!==q.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!q.onlySelf&&this._parent.updateValueAndValidity(q)}_updateTreeValidity(q={emitEvent:!0}){this._forEachChild(j=>j._updateTreeValidity(q)),this.updateValueAndValidity({onlySelf:!0,emitEvent:q.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Oe:dt}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(q){if(this.asyncValidator){this.status=Ge,this._hasOwnPendingAsyncValidator=!0;const j=Se(this.asyncValidator(this));this._asyncValidationSubscription=j.subscribe(Ee=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(Ee,{emitEvent:q})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(q,j={}){this.errors=q,this._updateControlsErrors(!1!==j.emitEvent)}get(q){let j=q;return null==j||(Array.isArray(j)||(j=j.split(".")),0===j.length)?null:j.reduce((Ee,xt)=>Ee&&Ee._find(xt),this)}getError(q,j){const Ee=j?this.get(j):this;return Ee&&Ee.errors?Ee.errors[q]:null}hasError(q,j){return!!this.getError(q,j)}get root(){let q=this;for(;q._parent;)q=q._parent;return q}_updateControlsErrors(q){this.status=this._calculateStatus(),q&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(q)}_initObservables(){this.valueChanges=new s.vpe,this.statusChanges=new s.vpe}_calculateStatus(){return this._allControlsDisabled()?Oe:this.errors?ze:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ge)?Ge:this._anyControlsHaveStatus(ze)?ze:dt}_anyControlsHaveStatus(q){return this._anyControls(j=>j.status===q)}_anyControlsDirty(){return this._anyControls(q=>q.dirty)}_anyControlsTouched(){return this._anyControls(q=>q.touched)}_updatePristine(q={}){this.pristine=!this._anyControlsDirty(),this._parent&&!q.onlySelf&&this._parent._updatePristine(q)}_updateTouched(q={}){this.touched=this._anyControlsTouched(),this._parent&&!q.onlySelf&&this._parent._updateTouched(q)}_registerOnCollectionChange(q){this._onCollectionChange=q}_setUpdateStrategy(q){Yt(q)&&null!=q.updateOn&&(this._updateOn=q.updateOn)}_parentMarkedDirty(q){return!q&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(q){return null}}class On extends Hr{constructor(q,j,Ee){super(Ue(j),at(Ee,j)),this.controls=q,this._initObservables(),this._setUpdateStrategy(j),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(q,j){return this.controls[q]?this.controls[q]:(this.controls[q]=j,j.setParent(this),j._registerOnCollectionChange(this._onCollectionChange),j)}addControl(q,j,Ee={}){this.registerControl(q,j),this.updateValueAndValidity({emitEvent:Ee.emitEvent}),this._onCollectionChange()}removeControl(q,j={}){this.controls[q]&&this.controls[q]._registerOnCollectionChange(()=>{}),delete this.controls[q],this.updateValueAndValidity({emitEvent:j.emitEvent}),this._onCollectionChange()}setControl(q,j,Ee={}){this.controls[q]&&this.controls[q]._registerOnCollectionChange(()=>{}),delete this.controls[q],j&&this.registerControl(q,j),this.updateValueAndValidity({emitEvent:Ee.emitEvent}),this._onCollectionChange()}contains(q){return this.controls.hasOwnProperty(q)&&this.controls[q].enabled}setValue(q,j={}){Ln(this,0,q),Object.keys(q).forEach(Ee=>{En(this,!0,Ee),this.controls[Ee].setValue(q[Ee],{onlySelf:!0,emitEvent:j.emitEvent})}),this.updateValueAndValidity(j)}patchValue(q,j={}){null!=q&&(Object.keys(q).forEach(Ee=>{const xt=this.controls[Ee];xt&&xt.patchValue(q[Ee],{onlySelf:!0,emitEvent:j.emitEvent})}),this.updateValueAndValidity(j))}reset(q={},j={}){this._forEachChild((Ee,xt)=>{Ee.reset(q[xt],{onlySelf:!0,emitEvent:j.emitEvent})}),this._updatePristine(j),this._updateTouched(j),this.updateValueAndValidity(j)}getRawValue(){return this._reduceChildren({},(q,j,Ee)=>(q[Ee]=j.getRawValue(),q))}_syncPendingControls(){let q=this._reduceChildren(!1,(j,Ee)=>!!Ee._syncPendingControls()||j);return q&&this.updateValueAndValidity({onlySelf:!0}),q}_forEachChild(q){Object.keys(this.controls).forEach(j=>{const Ee=this.controls[j];Ee&&q(Ee,j)})}_setUpControls(){this._forEachChild(q=>{q.setParent(this),q._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(q){for(const[j,Ee]of Object.entries(this.controls))if(this.contains(j)&&q(Ee))return!0;return!1}_reduceValue(){return this._reduceChildren({},(j,Ee,xt)=>((Ee.enabled||this.disabled)&&(j[xt]=Ee.value),j))}_reduceChildren(q,j){let Ee=q;return this._forEachChild((xt,_n)=>{Ee=j(Ee,xt,_n)}),Ee}_allControlsDisabled(){for(const q of Object.keys(this.controls))if(this.controls[q].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(q){return this.controls.hasOwnProperty(q)?this.controls[q]:null}}class Tn extends On{}function nr(se,q){return[...q.path,se]}function Ke(se,q){Bt(se,q),q.valueAccessor.writeValue(se.value),se.disabled&&q.valueAccessor.setDisabledState?.(!0),function pn(se,q){q.valueAccessor.registerOnChange(j=>{se._pendingValue=j,se._pendingChange=!0,se._pendingDirty=!0,"change"===se.updateOn&&Jn(se,q)})}(se,q),function _r(se,q){const j=(Ee,xt)=>{q.valueAccessor.writeValue(Ee),xt&&q.viewToModelUpdate(Ee)};se.registerOnChange(j),q._registerOnDestroy(()=>{se._unregisterOnChange(j)})}(se,q),function gn(se,q){q.valueAccessor.registerOnTouched(()=>{se._pendingTouched=!0,"blur"===se.updateOn&&se._pendingChange&&Jn(se,q),"submit"!==se.updateOn&&se.markAsTouched()})}(se,q),function gt(se,q){if(q.valueAccessor.setDisabledState){const j=Ee=>{q.valueAccessor.setDisabledState(Ee)};se.registerOnDisabledChange(j),q._registerOnDestroy(()=>{se._unregisterOnDisabledChange(j)})}}(se,q)}function Ze(se,q,j=!0){const Ee=()=>{};q.valueAccessor&&(q.valueAccessor.registerOnChange(Ee),q.valueAccessor.registerOnTouched(Ee)),ln(se,q),se&&(q._invokeOnDestroyCallbacks(),se._registerOnCollectionChange(()=>{}))}function we(se,q){se.forEach(j=>{j.registerOnValidatorChange&&j.registerOnValidatorChange(q)})}function Bt(se,q){const j=Ne(se);null!==q.validator?se.setValidators(me(j,q.validator)):"function"==typeof j&&se.setValidators([j]);const Ee=it(se);null!==q.asyncValidator?se.setAsyncValidators(me(Ee,q.asyncValidator)):"function"==typeof Ee&&se.setAsyncValidators([Ee]);const xt=()=>se.updateValueAndValidity();we(q._rawValidators,xt),we(q._rawAsyncValidators,xt)}function ln(se,q){let j=!1;if(null!==se){if(null!==q.validator){const xt=Ne(se);if(Array.isArray(xt)&&xt.length>0){const _n=xt.filter(Yr=>Yr!==q.validator);_n.length!==xt.length&&(j=!0,se.setValidators(_n))}}if(null!==q.asyncValidator){const xt=it(se);if(Array.isArray(xt)&&xt.length>0){const _n=xt.filter(Yr=>Yr!==q.asyncValidator);_n.length!==xt.length&&(j=!0,se.setAsyncValidators(_n))}}}const Ee=()=>{};return we(q._rawValidators,Ee),we(q._rawAsyncValidators,Ee),j}function Jn(se,q){se._pendingDirty&&se.markAsDirty(),se.setValue(se._pendingValue,{emitModelToViewChange:!1}),q.viewToModelUpdate(se._pendingValue),se._pendingChange=!1}function yn(se,q){Bt(se,q)}function fr(se,q){if(!se.hasOwnProperty("model"))return!1;const j=se.model;return!!j.isFirstChange()||!Object.is(q,j.currentValue)}function rr(se,q){se._syncPendingControls(),q.forEach(j=>{const Ee=j.control;"submit"===Ee.updateOn&&Ee._pendingChange&&(j.viewToModelUpdate(Ee._pendingValue),Ee._pendingChange=!1)})}function Nr(se,q){if(!q)return null;let j,Ee,xt;return Array.isArray(q),q.forEach(_n=>{_n.constructor===P?j=_n:function pr(se){return Object.getPrototypeOf(se.constructor)===I}(_n)?Ee=_n:xt=_n}),xt||Ee||j||null}const Lr={provide:nn,useExisting:(0,s.Gpc)(()=>cr)},lr=(()=>Promise.resolve())();let cr=(()=>{class se extends nn{constructor(j,Ee){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new s.vpe,this.form=new On({},ke(j),de(Ee))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(j){lr.then(()=>{const Ee=this._findContainer(j.path);j.control=Ee.registerControl(j.name,j.control),Ke(j.control,j),j.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(j)})}getControl(j){return this.form.get(j.path)}removeControl(j){lr.then(()=>{const Ee=this._findContainer(j.path);Ee&&Ee.removeControl(j.name),this._directives.delete(j)})}addFormGroup(j){lr.then(()=>{const Ee=this._findContainer(j.path),xt=new On({});yn(xt,j),Ee.registerControl(j.name,xt),xt.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(j){lr.then(()=>{const Ee=this._findContainer(j.path);Ee&&Ee.removeControl(j.name)})}getFormGroup(j){return this.form.get(j.path)}updateModel(j,Ee){lr.then(()=>{this.form.get(j.path).setValue(Ee)})}setValue(j){this.control.setValue(j)}onSubmit(j){return this.submitted=!0,rr(this.form,this._directives),this.ngSubmit.emit(j),!1}onReset(){this.resetForm()}resetForm(j){this.form.reset(j),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(j){return j.pop(),j.length?this.form.get(j):this.form}}return se.\u0275fac=function(j){return new(j||se)(s.Y36(Z,10),s.Y36(ue,10))},se.\u0275dir=s.lG2({type:se,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(j,Ee){1&j&&s.NdJ("submit",function(_n){return Ee.onSubmit(_n)})("reset",function(){return Ee.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[s._Bn([Lr]),s.qOj]}),se})();function di(se,q){const j=se.indexOf(q);j>-1&&se.splice(j,1)}function Kr(se){return"object"==typeof se&&null!==se&&2===Object.keys(se).length&&"value"in se&&"disabled"in se}const ur=class extends Hr{constructor(q=null,j,Ee){super(Ue(j),at(Ee,j)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(q),this._setUpdateStrategy(j),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Yt(j)&&(j.nonNullable||j.initialValueIsDefault)&&(this.defaultValue=Kr(q)?q.value:q)}setValue(q,j={}){this.value=this._pendingValue=q,this._onChange.length&&!1!==j.emitModelToViewChange&&this._onChange.forEach(Ee=>Ee(this.value,!1!==j.emitViewToModelChange)),this.updateValueAndValidity(j)}patchValue(q,j={}){this.setValue(q,j)}reset(q=this.defaultValue,j={}){this._applyFormState(q),this.markAsPristine(j),this.markAsUntouched(j),this.setValue(this.value,j),this._pendingChange=!1}_updateValue(){}_anyControls(q){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(q){this._onChange.push(q)}_unregisterOnChange(q){di(this._onChange,q)}registerOnDisabledChange(q){this._onDisabledChange.push(q)}_unregisterOnDisabledChange(q){di(this._onDisabledChange,q)}_forEachChild(q){}_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(q){Kr(q)?(this.value=this._pendingValue=q.value,q.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=q}};let li=(()=>{class se extends nn{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return nr(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return se.\u0275fac=function(){let q;return function(Ee){return(q||(q=s.n5z(se)))(Ee||se)}}(),se.\u0275dir=s.lG2({type:se,features:[s.qOj]}),se})();const Yi={provide:Pt,useExisting:(0,s.Gpc)(()=>Mi)},_i=(()=>Promise.resolve())();let Mi=(()=>{class se extends Pt{constructor(j,Ee,xt,_n,Yr){super(),this._changeDetectorRef=Yr,this.control=new ur,this._registered=!1,this.update=new s.vpe,this._parent=j,this._setValidators(Ee),this._setAsyncValidators(xt),this.valueAccessor=Nr(0,_n)}ngOnChanges(j){if(this._checkForErrors(),!this._registered||"name"in j){if(this._registered&&(this._checkName(),this.formDirective)){const Ee=j.name.previousValue;this.formDirective.removeControl({name:Ee,path:this._getPath(Ee)})}this._setUpControl()}"isDisabled"in j&&this._updateDisabled(j),fr(j,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(j){this.viewModel=j,this.update.emit(j)}_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(){Ke(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(j){_i.then(()=>{this.control.setValue(j,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(j){const Ee=j.isDisabled.currentValue,xt=0!==Ee&&(0,s.D6c)(Ee);_i.then(()=>{xt&&!this.control.disabled?this.control.disable():!xt&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(j){return this._parent?nr(j,this._parent):[j]}}return se.\u0275fac=function(j){return new(j||se)(s.Y36(nn,9),s.Y36(Z,10),s.Y36(ue,10),s.Y36(b,10),s.Y36(s.sBO,8))},se.\u0275dir=s.lG2({type:se,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[s._Bn([Yi]),s.qOj,s.TTD]}),se})(),hi=(()=>{class se{}return se.\u0275fac=function(j){return new(j||se)},se.\u0275dir=s.lG2({type:se,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),se})();const ve={provide:b,useExisting:(0,s.Gpc)(()=>Te),multi:!0};let Te=(()=>{class se extends I{writeValue(j){this.setProperty("value",j??"")}registerOnChange(j){this.onChange=Ee=>{j(""==Ee?null:parseFloat(Ee))}}}return se.\u0275fac=function(){let q;return function(Ee){return(q||(q=s.n5z(se)))(Ee||se)}}(),se.\u0275dir=s.lG2({type:se,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(j,Ee){1&j&&s.NdJ("input",function(_n){return Ee.onChange(_n.target.value)})("blur",function(){return Ee.onTouched()})},features:[s._Bn([ve]),s.qOj]}),se})();const tt={provide:b,useExisting:(0,s.Gpc)(()=>Bn),multi:!0};let Qt=(()=>{class se{}return se.\u0275fac=function(j){return new(j||se)},se.\u0275mod=s.oAB({type:se}),se.\u0275inj=s.cJS({}),se})(),hn=(()=>{class se{constructor(){this._accessors=[]}add(j,Ee){this._accessors.push([j,Ee])}remove(j){for(let Ee=this._accessors.length-1;Ee>=0;--Ee)if(this._accessors[Ee][1]===j)return void this._accessors.splice(Ee,1)}select(j){this._accessors.forEach(Ee=>{this._isSameGroup(Ee,j)&&Ee[1]!==j&&Ee[1].fireUncheck(j.value)})}_isSameGroup(j,Ee){return!!j[0].control&&j[0]._parent===Ee._control._parent&&j[1].name===Ee.name}}return se.\u0275fac=function(j){return new(j||se)},se.\u0275prov=s.Yz7({token:se,factory:se.\u0275fac,providedIn:Qt}),se})(),Bn=(()=>{class se extends I{constructor(j,Ee,xt,_n){super(j,Ee),this._registry=xt,this._injector=_n,this.onChange=()=>{}}ngOnInit(){this._control=this._injector.get(Pt),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(j){this._state=j===this.value,this.setProperty("checked",this._state)}registerOnChange(j){this._fn=j,this.onChange=()=>{j(this.value),this._registry.select(this)}}fireUncheck(j){this.writeValue(j)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return se.\u0275fac=function(j){return new(j||se)(s.Y36(s.Qsj),s.Y36(s.SBq),s.Y36(hn),s.Y36(s.zs3))},se.\u0275dir=s.lG2({type:se,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(j,Ee){1&j&&s.NdJ("change",function(){return Ee.onChange()})("blur",function(){return Ee.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[s._Bn([tt]),s.qOj]}),se})();const Mn=new s.OlP("NgModelWithFormControlWarning"),Ir={provide:Pt,useExisting:(0,s.Gpc)(()=>is)};let is=(()=>{class se extends Pt{constructor(j,Ee,xt,_n){super(),this._ngModelWarningConfig=_n,this.update=new s.vpe,this._ngModelWarningSent=!1,this._setValidators(j),this._setAsyncValidators(Ee),this.valueAccessor=Nr(0,xt)}set isDisabled(j){}ngOnChanges(j){if(this._isControlChanged(j)){const Ee=j.form.previousValue;Ee&&Ze(Ee,this,!1),Ke(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}fr(j,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Ze(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(j){this.viewModel=j,this.update.emit(j)}_isControlChanged(j){return j.hasOwnProperty("form")}}return se._ngModelWarningSentOnce=!1,se.\u0275fac=function(j){return new(j||se)(s.Y36(Z,10),s.Y36(ue,10),s.Y36(b,10),s.Y36(Mn,8))},se.\u0275dir=s.lG2({type:se,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[s._Bn([Ir]),s.qOj,s.TTD]}),se})();const Ui={provide:nn,useExisting:(0,s.Gpc)(()=>Ei)};let Ei=(()=>{class se extends nn{constructor(j,Ee){super(),this.validators=j,this.asyncValidators=Ee,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new s.vpe,this._setValidators(j),this._setAsyncValidators(Ee)}ngOnChanges(j){this._checkFormPresent(),j.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(ln(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(j){const Ee=this.form.get(j.path);return Ke(Ee,j),Ee.updateValueAndValidity({emitEvent:!1}),this.directives.push(j),Ee}getControl(j){return this.form.get(j.path)}removeControl(j){Ze(j.control||null,j,!1),function zr(se,q){const j=se.indexOf(q);j>-1&&se.splice(j,1)}(this.directives,j)}addFormGroup(j){this._setUpFormContainer(j)}removeFormGroup(j){this._cleanUpFormContainer(j)}getFormGroup(j){return this.form.get(j.path)}addFormArray(j){this._setUpFormContainer(j)}removeFormArray(j){this._cleanUpFormContainer(j)}getFormArray(j){return this.form.get(j.path)}updateModel(j,Ee){this.form.get(j.path).setValue(Ee)}onSubmit(j){return this.submitted=!0,rr(this.form,this.directives),this.ngSubmit.emit(j),!1}onReset(){this.resetForm()}resetForm(j){this.form.reset(j),this.submitted=!1}_updateDomValue(){this.directives.forEach(j=>{const Ee=j.control,xt=this.form.get(j.path);Ee!==xt&&(Ze(Ee||null,j),(se=>se instanceof ur)(xt)&&(Ke(xt,j),j.control=xt))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(j){const Ee=this.form.get(j.path);yn(Ee,j),Ee.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(j){if(this.form){const Ee=this.form.get(j.path);Ee&&function $r(se,q){return ln(se,q)}(Ee,j)&&Ee.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Bt(this.form,this),this._oldForm&&ln(this._oldForm,this)}_checkFormPresent(){}}return se.\u0275fac=function(j){return new(j||se)(s.Y36(Z,10),s.Y36(ue,10))},se.\u0275dir=s.lG2({type:se,selectors:[["","formGroup",""]],hostBindings:function(j,Ee){1&j&&s.NdJ("submit",function(_n){return Ee.onSubmit(_n)})("reset",function(){return Ee.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[s._Bn([Ui]),s.qOj,s.TTD]}),se})();const ci={provide:nn,useExisting:(0,s.Gpc)(()=>ui)};let ui=(()=>{class se extends li{constructor(j,Ee,xt){super(),this._parent=j,this._setValidators(Ee),this._setAsyncValidators(xt)}_checkParentType(){Ls(this._parent)}}return se.\u0275fac=function(j){return new(j||se)(s.Y36(nn,13),s.Y36(Z,10),s.Y36(ue,10))},se.\u0275dir=s.lG2({type:se,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[s._Bn([ci]),s.qOj]}),se})();const eo={provide:nn,useExisting:(0,s.Gpc)(()=>Di)};let Di=(()=>{class se extends nn{constructor(j,Ee,xt){super(),this._parent=j,this._setValidators(Ee),this._setAsyncValidators(xt)}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 nr(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){Ls(this._parent)}}return se.\u0275fac=function(j){return new(j||se)(s.Y36(nn,13),s.Y36(Z,10),s.Y36(ue,10))},se.\u0275dir=s.lG2({type:se,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[s._Bn([eo]),s.qOj]}),se})();function Ls(se){return!(se instanceof ui||se instanceof Ei||se instanceof Di)}const Or={provide:Pt,useExisting:(0,s.Gpc)(()=>Gi)};let Gi=(()=>{class se extends Pt{constructor(j,Ee,xt,_n,Yr){super(),this._ngModelWarningConfig=Yr,this._added=!1,this.update=new s.vpe,this._ngModelWarningSent=!1,this._parent=j,this._setValidators(Ee),this._setAsyncValidators(xt),this.valueAccessor=Nr(0,_n)}set isDisabled(j){}ngOnChanges(j){this._added||this._setUpControl(),fr(j,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(j){this.viewModel=j,this.update.emit(j)}get path(){return nr(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 se._ngModelWarningSentOnce=!1,se.\u0275fac=function(j){return new(j||se)(s.Y36(nn,13),s.Y36(Z,10),s.Y36(ue,10),s.Y36(b,10),s.Y36(Mn,8))},se.\u0275dir=s.lG2({type:se,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[s._Bn([Or]),s.qOj,s.TTD]}),se})();const Vi={provide:b,useExisting:(0,s.Gpc)(()=>Xi),multi:!0};function Ri(se,q){return null==se?`${q}`:(q&&"object"==typeof q&&(q="Object"),`${se}: ${q}`.slice(0,50))}let Xi=(()=>{class se extends I{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(j){this._compareWith=j}writeValue(j){this.value=j;const xt=Ri(this._getOptionId(j),j);this.setProperty("value",xt)}registerOnChange(j){this.onChange=Ee=>{this.value=this._getOptionValue(Ee),j(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(j){for(const Ee of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(Ee),j))return Ee;return null}_getOptionValue(j){const Ee=function Qi(se){return se.split(":")[0]}(j);return this._optionMap.has(Ee)?this._optionMap.get(Ee):j}}return se.\u0275fac=function(){let q;return function(Ee){return(q||(q=s.n5z(se)))(Ee||se)}}(),se.\u0275dir=s.lG2({type:se,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(j,Ee){1&j&&s.NdJ("change",function(_n){return Ee.onChange(_n.target.value)})("blur",function(){return Ee.onTouched()})},inputs:{compareWith:"compareWith"},features:[s._Bn([Vi]),s.qOj]}),se})(),fs=(()=>{class se{constructor(j,Ee,xt){this._element=j,this._renderer=Ee,this._select=xt,this._select&&(this.id=this._select._registerOption())}set ngValue(j){null!=this._select&&(this._select._optionMap.set(this.id,j),this._setElementValue(Ri(this.id,j)),this._select.writeValue(this._select.value))}set value(j){this._setElementValue(j),this._select&&this._select.writeValue(this._select.value)}_setElementValue(j){this._renderer.setProperty(this._element.nativeElement,"value",j)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return se.\u0275fac=function(j){return new(j||se)(s.Y36(s.SBq),s.Y36(s.Qsj),s.Y36(Xi,9))},se.\u0275dir=s.lG2({type:se,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),se})();const Zi={provide:b,useExisting:(0,s.Gpc)(()=>Zr),multi:!0};function Ji(se,q){return null==se?`${q}`:("string"==typeof q&&(q=`'${q}'`),q&&"object"==typeof q&&(q="Object"),`${se}: ${q}`.slice(0,50))}let Zr=(()=>{class se extends I{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(j){this._compareWith=j}writeValue(j){let Ee;if(this.value=j,Array.isArray(j)){const xt=j.map(_n=>this._getOptionId(_n));Ee=(_n,Yr)=>{_n._setSelected(xt.indexOf(Yr.toString())>-1)}}else Ee=(xt,_n)=>{xt._setSelected(!1)};this._optionMap.forEach(Ee)}registerOnChange(j){this.onChange=Ee=>{const xt=[],_n=Ee.selectedOptions;if(void 0!==_n){const Yr=_n;for(let Ii=0;Ii<Yr.length;Ii++){const Rr=this._getOptionValue(Yr[Ii].value);xt.push(Rr)}}else{const Yr=Ee.options;for(let Ii=0;Ii<Yr.length;Ii++){const Ni=Yr[Ii];if(Ni.selected){const Rr=this._getOptionValue(Ni.value);xt.push(Rr)}}}this.value=xt,j(xt)}}_registerOption(j){const Ee=(this._idCounter++).toString();return this._optionMap.set(Ee,j),Ee}_getOptionId(j){for(const Ee of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(Ee)._value,j))return Ee;return null}_getOptionValue(j){const Ee=function qi(se){return se.split(":")[0]}(j);return this._optionMap.has(Ee)?this._optionMap.get(Ee)._value:j}}return se.\u0275fac=function(){let q;return function(Ee){return(q||(q=s.n5z(se)))(Ee||se)}}(),se.\u0275dir=s.lG2({type:se,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(j,Ee){1&j&&s.NdJ("change",function(_n){return Ee.onChange(_n.target)})("blur",function(){return Ee.onTouched()})},inputs:{compareWith:"compareWith"},features:[s._Bn([Zi]),s.qOj]}),se})(),Ai=(()=>{class se{constructor(j,Ee,xt){this._element=j,this._renderer=Ee,this._select=xt,this._select&&(this.id=this._select._registerOption(this))}set ngValue(j){null!=this._select&&(this._value=j,this._setElementValue(Ji(this.id,j)),this._select.writeValue(this._select.value))}set value(j){this._select?(this._value=j,this._setElementValue(Ji(this.id,j)),this._select.writeValue(this._select.value)):this._setElementValue(j)}_setElementValue(j){this._renderer.setProperty(this._element.nativeElement,"value",j)}_setSelected(j){this._renderer.setProperty(this._element.nativeElement,"selected",j)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return se.\u0275fac=function(j){return new(j||se)(s.Y36(s.SBq),s.Y36(s.Qsj),s.Y36(Zr,9))},se.\u0275dir=s.lG2({type:se,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),se})();function Ds(se){return"number"==typeof se?se:parseFloat(se)}let Mr=(()=>{class se{constructor(){this._validator=le}ngOnChanges(j){if(this.inputName in j){const Ee=this.normalizeInput(j[this.inputName].currentValue);this._enabled=this.enabled(Ee),this._validator=this._enabled?this.createValidator(Ee):le,this._onChange&&this._onChange()}}validate(j){return this._validator(j)}registerOnValidatorChange(j){this._onChange=j}enabled(j){return null!=j}}return se.\u0275fac=function(j){return new(j||se)},se.\u0275dir=s.lG2({type:se,features:[s.TTD]}),se})();const _o={provide:Z,useExisting:(0,s.Gpc)(()=>or),multi:!0};let or=(()=>{class se extends Mr{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=j=>Ds(j),this.createValidator=j=>oe(j)}}return se.\u0275fac=function(){let q;return function(Ee){return(q||(q=s.n5z(se)))(Ee||se)}}(),se.\u0275dir=s.lG2({type:se,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(j,Ee){2&j&&s.uIk("max",Ee._enabled?Ee.max:null)},inputs:{max:"max"},features:[s._Bn([_o]),s.qOj]}),se})();const De={provide:Z,useExisting:(0,s.Gpc)(()=>st),multi:!0};let st=(()=>{class se extends Mr{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=j=>Ds(j),this.createValidator=j=>ee(j)}}return se.\u0275fac=function(){let q;return function(Ee){return(q||(q=s.n5z(se)))(Ee||se)}}(),se.\u0275dir=s.lG2({type:se,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(j,Ee){2&j&&s.uIk("min",Ee._enabled?Ee.min:null)},inputs:{min:"min"},features:[s._Bn([De]),s.qOj]}),se})();const Ve={provide:Z,useExisting:(0,s.Gpc)(()=>Lt),multi:!0},et={provide:Z,useExisting:(0,s.Gpc)(()=>Ht),multi:!0};let Lt=(()=>{class se extends Mr{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=s.D6c,this.createValidator=j=>X}enabled(j){return j}}return se.\u0275fac=function(){let q;return function(Ee){return(q||(q=s.n5z(se)))(Ee||se)}}(),se.\u0275dir=s.lG2({type:se,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(j,Ee){2&j&&s.uIk("required",Ee._enabled?"":null)},inputs:{required:"required"},features:[s._Bn([Ve]),s.qOj]}),se})(),Ht=(()=>{class se extends Lt{constructor(){super(...arguments),this.createValidator=j=>y}}return se.\u0275fac=function(){let q;return function(Ee){return(q||(q=s.n5z(se)))(Ee||se)}}(),se.\u0275dir=s.lG2({type:se,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(j,Ee){2&j&&s.uIk("required",Ee._enabled?"":null)},features:[s._Bn([et]),s.qOj]}),se})();const Kn={provide:Z,useExisting:(0,s.Gpc)(()=>qn),multi:!0};let qn=(()=>{class se extends Mr{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=j=>function ps(se){return"number"==typeof se?se:parseInt(se,10)}(j),this.createValidator=j=>J(j)}}return se.\u0275fac=function(){let q;return function(Ee){return(q||(q=s.n5z(se)))(Ee||se)}}(),se.\u0275dir=s.lG2({type:se,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(j,Ee){2&j&&s.uIk("maxlength",Ee._enabled?Ee.maxlength:null)},inputs:{maxlength:"maxlength"},features:[s._Bn([Kn]),s.qOj]}),se})(),gs=(()=>{class se{}return se.\u0275fac=function(j){return new(j||se)},se.\u0275mod=s.oAB({type:se}),se.\u0275inj=s.cJS({imports:[Qt]}),se})(),wi=(()=>{class se{}return se.\u0275fac=function(j){return new(j||se)},se.\u0275mod=s.oAB({type:se}),se.\u0275inj=s.cJS({imports:[gs]}),se})(),Li=(()=>{class se{static withConfig(j){return{ngModule:se,providers:[{provide:Mn,useValue:j.warnOnNgModelWithFormControl}]}}}return se.\u0275fac=function(j){return new(j||se)},se.\u0275mod=s.oAB({type:se}),se.\u0275inj=s.cJS({imports:[gs]}),se})();class Ur extends Hr{constructor(q,j,Ee){super(Ue(j),at(Ee,j)),this.controls=q,this._initObservables(),this._setUpdateStrategy(j),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(q){return this.controls[this._adjustIndex(q)]}push(q,j={}){this.controls.push(q),this._registerControl(q),this.updateValueAndValidity({emitEvent:j.emitEvent}),this._onCollectionChange()}insert(q,j,Ee={}){this.controls.splice(q,0,j),this._registerControl(j),this.updateValueAndValidity({emitEvent:Ee.emitEvent})}removeAt(q,j={}){let Ee=this._adjustIndex(q);Ee<0&&(Ee=0),this.controls[Ee]&&this.controls[Ee]._registerOnCollectionChange(()=>{}),this.controls.splice(Ee,1),this.updateValueAndValidity({emitEvent:j.emitEvent})}setControl(q,j,Ee={}){let xt=this._adjustIndex(q);xt<0&&(xt=0),this.controls[xt]&&this.controls[xt]._registerOnCollectionChange(()=>{}),this.controls.splice(xt,1),j&&(this.controls.splice(xt,0,j),this._registerControl(j)),this.updateValueAndValidity({emitEvent:Ee.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(q,j={}){Ln(this,0,q),q.forEach((Ee,xt)=>{En(this,!1,xt),this.at(xt).setValue(Ee,{onlySelf:!0,emitEvent:j.emitEvent})}),this.updateValueAndValidity(j)}patchValue(q,j={}){null!=q&&(q.forEach((Ee,xt)=>{this.at(xt)&&this.at(xt).patchValue(Ee,{onlySelf:!0,emitEvent:j.emitEvent})}),this.updateValueAndValidity(j))}reset(q=[],j={}){this._forEachChild((Ee,xt)=>{Ee.reset(q[xt],{onlySelf:!0,emitEvent:j.emitEvent})}),this._updatePristine(j),this._updateTouched(j),this.updateValueAndValidity(j)}getRawValue(){return this.controls.map(q=>q.getRawValue())}clear(q={}){this.controls.length<1||(this._forEachChild(j=>j._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:q.emitEvent}))}_adjustIndex(q){return q<0?q+this.length:q}_syncPendingControls(){let q=this.controls.reduce((j,Ee)=>!!Ee._syncPendingControls()||j,!1);return q&&this.updateValueAndValidity({onlySelf:!0}),q}_forEachChild(q){this.controls.forEach((j,Ee)=>{q(j,Ee)})}_updateValue(){this.value=this.controls.filter(q=>q.enabled||this.disabled).map(q=>q.value)}_anyControls(q){return this.controls.some(j=>j.enabled&&q(j))}_setUpControls(){this._forEachChild(q=>this._registerControl(q))}_allControlsDisabled(){for(const q of this.controls)if(q.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(q){q.setParent(this),q._registerOnCollectionChange(this._onCollectionChange)}_find(q){return this.at(q)??null}}function Kt(se){return!!se&&(void 0!==se.asyncValidators||void 0!==se.validators||void 0!==se.updateOn)}let Wn=(()=>{class se{constructor(){this.useNonNullable=!1}get nonNullable(){const j=new se;return j.useNonNullable=!0,j}group(j,Ee=null){const xt=this._reduceControls(j);let _n={};return Kt(Ee)?_n=Ee:null!==Ee&&(_n.validators=Ee.validator,_n.asyncValidators=Ee.asyncValidator),new On(xt,_n)}record(j,Ee=null){const xt=this._reduceControls(j);return new Tn(xt,Ee)}control(j,Ee,xt){let _n={};return this.useNonNullable?(Kt(Ee)?_n=Ee:(_n.validators=Ee,_n.asyncValidators=xt),new ur(j,{..._n,nonNullable:!0})):new ur(j,Ee,xt)}array(j,Ee,xt){const _n=j.map(Yr=>this._createControl(Yr));return new Ur(_n,Ee,xt)}_reduceControls(j){const Ee={};return Object.keys(j).forEach(xt=>{Ee[xt]=this._createControl(j[xt])}),Ee}_createControl(j){return j instanceof ur||j instanceof Hr?j:Array.isArray(j)?this.control(j[0],j.length>1?j[1]:null,j.length>2?j[2]:null):this.control(j)}}return se.\u0275fac=function(j){return new(j||se)},se.\u0275prov=s.Yz7({token:se,factory:se.\u0275fac,providedIn:Li}),se})(),vo=(()=>{class se{}return se.\u0275fac=function(j){return new(j||se)},se.\u0275prov=s.Yz7({token:se,factory:function(){return(0,s.f3M)(Wn).nonNullable},providedIn:Li}),se})(),Ns=(()=>{class se extends Wn{group(j,Ee=null){return super.group(j,Ee)}control(j,Ee,xt){return super.control(j,Ee,xt)}array(j,Ee,xt){return super.array(j,Ee,xt)}}return se.\u0275fac=function(){let q;return function(Ee){return(q||(q=s.n5z(se)))(Ee||se)}}(),se.\u0275prov=s.Yz7({token:se,factory:se.\u0275fac,providedIn:Li}),se})()},4859:(ut,fe,d)=>{"use strict";d.d(fe,{lW:()=>_,ot:()=>T});var s=d(94650),c=d(3238),A=d(12687);const w=["mat-button",""],N=["*"],b=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],p=(0,c.pj)((0,c.Id)((0,c.Kr)(class{constructor(W){this._elementRef=W}})));let _=(()=>{class W extends p{constructor(B,G,U){super(B),this._focusMonitor=G,this._animationMode=U,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const Z of b)this._hasHostAttributes(Z)&&this._getHostElement().classList.add(Z);B.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(B,G){B?this._focusMonitor.focusVia(this._getHostElement(),B,G):this._getHostElement().focus(G)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...B){return B.some(G=>this._getHostElement().hasAttribute(G))}}return W.\u0275fac=function(B){return new(B||W)(s.Y36(s.SBq),s.Y36(A.tE),s.Y36(s.QbO,8))},W.\u0275cmp=s.Xpm({type:W,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(B,G){if(1&B&&s.Gf(c.wG,5),2&B){let U;s.iGM(U=s.CRH())&&(G.ripple=U.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(B,G){2&B&&(s.uIk("disabled",G.disabled||null),s.ekj("_mat-animation-noopable","NoopAnimations"===G._animationMode)("mat-button-disabled",G.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[s.qOj],attrs:w,ngContentSelectors:N,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(B,G){1&B&&(s.F$t(),s.TgZ(0,"span",0),s.Hsn(1),s.qZA(),s._UZ(2,"span",1)(3,"span",2)),2&B&&(s.xp6(2),s.ekj("mat-button-ripple-round",G.isRoundButton||G.isIconButton),s.Q6J("matRippleDisabled",G._isRippleDisabled())("matRippleCentered",G.isIconButton)("matRippleTrigger",G._getHostElement()))},dependencies:[c.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}),W})(),T=(()=>{class W{}return W.\u0275fac=function(B){return new(B||W)},W.\u0275mod=s.oAB({type:W}),W.\u0275inj=s.cJS({imports:[c.si,c.BQ,c.BQ]}),W})()},3238:(ut,fe,d)=>{"use strict";d.d(fe,{yN:()=>Z,mZ:()=>ue,_A:()=>ct,rD:()=>it,sG:()=>$t,Ad:()=>Se,K7:()=>Ct,HF:()=>Be,Y2:()=>Dt,BQ:()=>ee,X2:()=>yt,uc:()=>Vt,XK:()=>me,ey:()=>bt,Ng:()=>an,rN:()=>xe,nP:()=>ot,us:()=>vt,wG:()=>pe,si:()=>Pe,IR:()=>Tt,CB:()=>Mt,jH:()=>un,pj:()=>$,Kr:()=>J,Id:()=>k,FD:()=>le,dB:()=>ce,sb:()=>L,E0:()=>Gt});var s=d(94650),c=d(12687),A=d(40445),N=d(36895),te=d(83353),I=d(21281),b=d(69751),p=d(77579),_=d(68675),v=d(29521);function P(dt,ze){if(1&dt&&s._UZ(0,"mat-pseudo-checkbox",4),2&dt){const Ge=s.oxw();s.Q6J("state",Ge.selected?"checked":"unchecked")("disabled",Ge.disabled)}}function B(dt,ze){if(1&dt&&(s.TgZ(0,"span",5),s._uU(1),s.qZA()),2&dt){const Ge=s.oxw();s.xp6(1),s.hij("(",Ge.group.label,")")}}const G=["*"];let Z=(()=>{class dt{}return dt.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",dt.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",dt.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",dt.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",dt})(),ue=(()=>{class dt{}return dt.COMPLEX="375ms",dt.ENTERING="225ms",dt.EXITING="195ms",dt})();const Y=new s.OlP("mat-sanity-checks",{providedIn:"root",factory:function F(){return!0}});let ee=(()=>{class dt{constructor(Ge,Oe,Ue){this._sanityChecks=Oe,this._document=Ue,this._hasDoneGlobalChecks=!1,Ge._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(Ge){return!(0,te.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[Ge])}}return dt.\u0275fac=function(Ge){return new(Ge||dt)(s.LFG(c.qm),s.LFG(Y,8),s.LFG(N.K0))},dt.\u0275mod=s.oAB({type:dt}),dt.\u0275inj=s.cJS({imports:[A.vT,A.vT]}),dt})();function k(dt){return class extends dt{constructor(...ze){super(...ze),this._disabled=!1}get disabled(){return this._disabled}set disabled(ze){this._disabled=(0,I.Ig)(ze)}}}function $(dt,ze){return class extends dt{constructor(...Ge){super(...Ge),this.defaultColor=ze,this.color=ze}get color(){return this._color}set color(Ge){const Oe=Ge||this.defaultColor;Oe!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),Oe&&this._elementRef.nativeElement.classList.add(`mat-${Oe}`),this._color=Oe)}}}function J(dt){return class extends dt{constructor(...ze){super(...ze),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(ze){this._disableRipple=(0,I.Ig)(ze)}}}function L(dt,ze=0){return class extends dt{constructor(...Ge){super(...Ge),this._tabIndex=ze,this.defaultTabIndex=ze}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(Ge){this._tabIndex=null!=Ge?(0,I.su)(Ge):this.defaultTabIndex}}}function le(dt){return class extends dt{constructor(...ze){super(...ze),this.errorState=!1}updateErrorState(){const ze=this.errorState,be=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);be!==ze&&(this.errorState=be,this.stateChanges.next())}}}function ce(dt){return class extends dt{constructor(...ze){super(...ze),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new b.y(Ge=>{this._isInitialized?this._notifySubscriber(Ge):this._pendingSubscribers.push(Ge)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(ze){ze.next(),ze.complete()}}}const Se=new s.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function Qe(){return(0,s.f3M)(s.soG)}});class ct{constructor(){this._localeChanges=new p.x,this.localeChanges=this._localeChanges}getValidDateOrNull(ze){return this.isDateInstance(ze)&&this.isValid(ze)?ze:null}deserialize(ze){return null==ze||this.isDateInstance(ze)&&this.isValid(ze)?ze:this.invalid()}setLocale(ze){this.locale=ze,this._localeChanges.next()}compareDate(ze,Ge){return this.getYear(ze)-this.getYear(Ge)||this.getMonth(ze)-this.getMonth(Ge)||this.getDate(ze)-this.getDate(Ge)}sameDate(ze,Ge){if(ze&&Ge){let Oe=this.isValid(ze),Ue=this.isValid(Ge);return Oe&&Ue?!this.compareDate(ze,Ge):Oe==Ue}return ze==Ge}clampDate(ze,Ge,Oe){return Ge&&this.compareDate(ze,Ge)<0?Ge:Oe&&this.compareDate(ze,Oe)>0?Oe:ze}}const $t=new s.OlP("mat-date-formats"),$e=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Et(dt,ze){const Ge=Array(dt);for(let Oe=0;Oe<dt;Oe++)Ge[Oe]=ze(Oe);return Ge}let ke=(()=>{class dt extends ct{constructor(Ge,Oe){super(),this.useUtcForDisplay=!1,super.setLocale(Ge)}getYear(Ge){return Ge.getFullYear()}getMonth(Ge){return Ge.getMonth()}getDate(Ge){return Ge.getDate()}getDayOfWeek(Ge){return Ge.getDay()}getMonthNames(Ge){const Oe=new Intl.DateTimeFormat(this.locale,{month:Ge,timeZone:"utc"});return Et(12,Ue=>this._format(Oe,new Date(2017,Ue,1)))}getDateNames(){const Ge=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Et(31,Oe=>this._format(Ge,new Date(2017,0,Oe+1)))}getDayOfWeekNames(Ge){const Oe=new Intl.DateTimeFormat(this.locale,{weekday:Ge,timeZone:"utc"});return Et(7,Ue=>this._format(Oe,new Date(2017,0,Ue+1)))}getYearName(Ge){const Oe=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(Oe,Ge)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(Ge){return this.getDate(this._createDateWithOverflow(this.getYear(Ge),this.getMonth(Ge)+1,0))}clone(Ge){return new Date(Ge.getTime())}createDate(Ge,Oe,Ue){let be=this._createDateWithOverflow(Ge,Oe,Ue);return be.getMonth(),be}today(){return new Date}parse(Ge,Oe){return"number"==typeof Ge?new Date(Ge):Ge?new Date(Date.parse(Ge)):null}format(Ge,Oe){if(!this.isValid(Ge))throw Error("NativeDateAdapter: Cannot format invalid date.");const Ue=new Intl.DateTimeFormat(this.locale,{...Oe,timeZone:"utc"});return this._format(Ue,Ge)}addCalendarYears(Ge,Oe){return this.addCalendarMonths(Ge,12*Oe)}addCalendarMonths(Ge,Oe){let Ue=this._createDateWithOverflow(this.getYear(Ge),this.getMonth(Ge)+Oe,this.getDate(Ge));return this.getMonth(Ue)!=((this.getMonth(Ge)+Oe)%12+12)%12&&(Ue=this._createDateWithOverflow(this.getYear(Ue),this.getMonth(Ue),0)),Ue}addCalendarDays(Ge,Oe){return this._createDateWithOverflow(this.getYear(Ge),this.getMonth(Ge),this.getDate(Ge)+Oe)}toIso8601(Ge){return[Ge.getUTCFullYear(),this._2digit(Ge.getUTCMonth()+1),this._2digit(Ge.getUTCDate())].join("-")}deserialize(Ge){if("string"==typeof Ge){if(!Ge)return null;if($e.test(Ge)){let Oe=new Date(Ge);if(this.isValid(Oe))return Oe}}return super.deserialize(Ge)}isDateInstance(Ge){return Ge instanceof Date}isValid(Ge){return!isNaN(Ge.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(Ge,Oe,Ue){const be=new Date;return be.setFullYear(Ge,Oe,Ue),be.setHours(0,0,0,0),be}_2digit(Ge){return("00"+Ge).slice(-2)}_format(Ge,Oe){const Ue=new Date;return Ue.setUTCFullYear(Oe.getFullYear(),Oe.getMonth(),Oe.getDate()),Ue.setUTCHours(Oe.getHours(),Oe.getMinutes(),Oe.getSeconds(),Oe.getMilliseconds()),Ge.format(Ue)}}return dt.\u0275fac=function(Ge){return new(Ge||dt)(s.LFG(Se,8),s.LFG(te.t4))},dt.\u0275prov=s.Yz7({token:dt,factory:dt.\u0275fac}),dt})();const je={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 de=(()=>{class dt{}return dt.\u0275fac=function(Ge){return new(Ge||dt)},dt.\u0275mod=s.oAB({type:dt}),dt.\u0275inj=s.cJS({providers:[{provide:ct,useClass:ke}]}),dt})(),me=(()=>{class dt{}return dt.\u0275fac=function(Ge){return new(Ge||dt)},dt.\u0275mod=s.oAB({type:dt}),dt.\u0275inj=s.cJS({providers:[{provide:$t,useValue:je}],imports:[de]}),dt})(),it=(()=>{class dt{isErrorState(Ge,Oe){return!!(Ge&&Ge.invalid&&(Ge.touched||Oe&&Oe.submitted))}}return dt.\u0275fac=function(Ge){return new(Ge||dt)},dt.\u0275prov=s.Yz7({token:dt,factory:dt.\u0275fac,providedIn:"root"}),dt})(),yt=(()=>{class dt{}return dt.\u0275fac=function(Ge){return new(Ge||dt)},dt.\u0275dir=s.lG2({type:dt,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),dt})();function Gt(dt,ze,Ge="mat"){dt.changes.pipe((0,_.O)(dt)).subscribe(({length:Oe})=>{Ft(ze,`${Ge}-2-line`,!1),Ft(ze,`${Ge}-3-line`,!1),Ft(ze,`${Ge}-multi-line`,!1),2===Oe||3===Oe?Ft(ze,`${Ge}-${Oe}-line`,!0):Oe>3&&Ft(ze,`${Ge}-multi-line`,!0)})}function Ft(dt,ze,Ge){dt.nativeElement.classList.toggle(ze,Ge)}let Vt=(()=>{class dt{}return dt.\u0275fac=function(Ge){return new(Ge||dt)},dt.\u0275mod=s.oAB({type:dt}),dt.\u0275inj=s.cJS({imports:[ee,ee]}),dt})();class sn{constructor(ze,Ge,Oe,Ue=!1){this._renderer=ze,this.element=Ge,this.config=Oe,this._animationForciblyDisabledThroughCss=Ue,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const nn={enterDuration:225,exitDuration:150},wt=(0,te.i$)({passive:!0}),Je=["mousedown","touchstart"],_t=["mouseup","mouseleave","touchend","touchcancel"];class Tt{constructor(ze,Ge,Oe,Ue){this._target=ze,this._ngZone=Ge,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,Ue.isBrowser&&(this._containerElement=(0,I.fI)(Oe))}fadeInRipple(ze,Ge,Oe={}){const Ue=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),be={...nn,...Oe.animation};Oe.centered&&(ze=Ue.left+Ue.width/2,Ge=Ue.top+Ue.height/2);const at=Oe.radius||function Wt(dt,ze,Ge){const Oe=Math.max(Math.abs(dt-Ge.left),Math.abs(dt-Ge.right)),Ue=Math.max(Math.abs(ze-Ge.top),Math.abs(ze-Ge.bottom));return Math.sqrt(Oe*Oe+Ue*Ue)}(ze,Ge,Ue),At=ze-Ue.left,Yt=Ge-Ue.top,En=be.enterDuration,Ln=document.createElement("div");Ln.classList.add("mat-ripple-element"),Ln.style.left=At-at+"px",Ln.style.top=Yt-at+"px",Ln.style.height=2*at+"px",Ln.style.width=2*at+"px",null!=Oe.color&&(Ln.style.backgroundColor=Oe.color),Ln.style.transitionDuration=`${En}ms`,this._containerElement.appendChild(Ln);const Hr=window.getComputedStyle(Ln),Er=Hr.transitionDuration,zn="none"===Hr.transitionProperty||"0s"===Er||"0s, 0s"===Er,Tn=new sn(this,Ln,Oe,zn);Ln.style.transform="scale3d(1, 1, 1)",Tn.state=0,Oe.persistent||(this._mostRecentTransientRipple=Tn);let jn=null;return!zn&&(En||be.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const nr=()=>this._finishRippleTransition(Tn),Ke=()=>this._destroyRipple(Tn);Ln.addEventListener("transitionend",nr),Ln.addEventListener("transitioncancel",Ke),jn={onTransitionEnd:nr,onTransitionCancel:Ke}}),this._activeRipples.set(Tn,jn),(zn||!En)&&this._finishRippleTransition(Tn),Tn}fadeOutRipple(ze){if(2===ze.state||3===ze.state)return;const Ge=ze.element,Oe={...nn,...ze.config.animation};Ge.style.transitionDuration=`${Oe.exitDuration}ms`,Ge.style.opacity="0",ze.state=2,(ze._animationForciblyDisabledThroughCss||!Oe.exitDuration)&&this._finishRippleTransition(ze)}fadeOutAll(){this._getActiveRipples().forEach(ze=>ze.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(ze=>{ze.config.persistent||ze.fadeOut()})}setupTriggerEvents(ze){const Ge=(0,I.fI)(ze);!Ge||Ge===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=Ge,this._registerEvents(Je))}handleEvent(ze){"mousedown"===ze.type?this._onMousedown(ze):"touchstart"===ze.type?this._onTouchStart(ze):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(_t),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(ze){0===ze.state?this._startFadeOutTransition(ze):2===ze.state&&this._destroyRipple(ze)}_startFadeOutTransition(ze){const Ge=ze===this._mostRecentTransientRipple,{persistent:Oe}=ze.config;ze.state=1,!Oe&&(!Ge||!this._isPointerDown)&&ze.fadeOut()}_destroyRipple(ze){const Ge=this._activeRipples.get(ze)??null;this._activeRipples.delete(ze),this._activeRipples.size||(this._containerRect=null),ze===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),ze.state=3,null!==Ge&&(ze.element.removeEventListener("transitionend",Ge.onTransitionEnd),ze.element.removeEventListener("transitioncancel",Ge.onTransitionCancel)),ze.element.remove()}_onMousedown(ze){const Ge=(0,c.X6)(ze),Oe=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!Ge&&!Oe&&(this._isPointerDown=!0,this.fadeInRipple(ze.clientX,ze.clientY,this._target.rippleConfig))}_onTouchStart(ze){if(!this._target.rippleDisabled&&!(0,c.yG)(ze)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const Ge=ze.changedTouches;for(let Oe=0;Oe<Ge.length;Oe++)this.fadeInRipple(Ge[Oe].clientX,Ge[Oe].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._getActiveRipples().forEach(ze=>{!ze.config.persistent&&(1===ze.state||ze.config.terminateOnPointerUp&&0===ze.state)&&ze.fadeOut()}))}_registerEvents(ze){this._ngZone.runOutsideAngular(()=>{ze.forEach(Ge=>{this._triggerElement.addEventListener(Ge,this,wt)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(Je.forEach(ze=>{this._triggerElement.removeEventListener(ze,this,wt)}),this._pointerUpEventsRegistered&&_t.forEach(ze=>{this._triggerElement.removeEventListener(ze,this,wt)}))}}const Dt=new s.OlP("mat-ripple-global-options");let pe=(()=>{class dt{constructor(Ge,Oe,Ue,be,at){this._elementRef=Ge,this._animationMode=at,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=be||{},this._rippleRenderer=new Tt(this,Oe,Ge,Ue)}get disabled(){return this._disabled}set disabled(Ge){Ge&&this.fadeOutAllNonPersistent(),this._disabled=Ge,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(Ge){this._trigger=Ge,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(Ge,Oe=0,Ue){return"number"==typeof Ge?this._rippleRenderer.fadeInRipple(Ge,Oe,{...this.rippleConfig,...Ue}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...Ge})}}return dt.\u0275fac=function(Ge){return new(Ge||dt)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(te.t4),s.Y36(Dt,8),s.Y36(s.QbO,8))},dt.\u0275dir=s.lG2({type:dt,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(Ge,Oe){2&Ge&&s.ekj("mat-ripple-unbounded",Oe.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"]}),dt})(),Pe=(()=>{class dt{}return dt.\u0275fac=function(Ge){return new(Ge||dt)},dt.\u0275mod=s.oAB({type:dt}),dt.\u0275inj=s.cJS({imports:[ee,ee]}),dt})(),ot=(()=>{class dt{constructor(Ge){this._animationMode=Ge,this.state="unchecked",this.disabled=!1}}return dt.\u0275fac=function(Ge){return new(Ge||dt)(s.Y36(s.QbO,8))},dt.\u0275cmp=s.Xpm({type:dt,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(Ge,Oe){2&Ge&&s.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===Oe.state)("mat-pseudo-checkbox-checked","checked"===Oe.state)("mat-pseudo-checkbox-disabled",Oe.disabled)("_mat-animation-noopable","NoopAnimations"===Oe._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(Ge,Oe){},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}),dt})(),vt=(()=>{class dt{}return dt.\u0275fac=function(Ge){return new(Ge||dt)},dt.\u0275mod=s.oAB({type:dt}),dt.\u0275inj=s.cJS({imports:[ee]}),dt})();const Be=new s.OlP("MAT_OPTION_PARENT_COMPONENT"),Ct=new s.OlP("MatOptgroup");let qe=0;class xe{constructor(ze,Ge=!1){this.source=ze,this.isUserInput=Ge}}let Re=(()=>{class dt{constructor(Ge,Oe,Ue,be){this._element=Ge,this._changeDetectorRef=Oe,this._parent=Ue,this.group=be,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+qe++,this.onSelectionChange=new s.vpe,this._stateChanges=new p.x}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(Ge){this._disabled=(0,I.Ig)(Ge)}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(Ge,Oe){const Ue=this._getHostElement();"function"==typeof Ue.focus&&Ue.focus(Oe)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(Ge){(Ge.keyCode===v.K5||Ge.keyCode===v.L_)&&!(0,v.Vb)(Ge)&&(this._selectViaInteraction(),Ge.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 Ge=this.viewValue;Ge!==this._mostRecentViewValue&&(this._mostRecentViewValue=Ge,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(Ge=!1){this.onSelectionChange.emit(new xe(this,Ge))}}return dt.\u0275fac=function(Ge){s.$Z()},dt.\u0275dir=s.lG2({type:dt,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),dt})(),bt=(()=>{class dt extends Re{constructor(Ge,Oe,Ue,be){super(Ge,Oe,Ue,be)}}return dt.\u0275fac=function(Ge){return new(Ge||dt)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(Be,8),s.Y36(Ct,8))},dt.\u0275cmp=s.Xpm({type:dt,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(Ge,Oe){1&Ge&&s.NdJ("click",function(){return Oe._selectViaInteraction()})("keydown",function(be){return Oe._handleKeydown(be)}),2&Ge&&(s.Ikx("id",Oe.id),s.uIk("tabindex",Oe._getTabIndex())("aria-selected",Oe._getAriaSelected())("aria-disabled",Oe.disabled.toString()),s.ekj("mat-selected",Oe.selected)("mat-option-multiple",Oe.multiple)("mat-active",Oe.active)("mat-option-disabled",Oe.disabled))},exportAs:["matOption"],features:[s.qOj],ngContentSelectors:G,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(Ge,Oe){1&Ge&&(s.F$t(),s.YNc(0,P,1,2,"mat-pseudo-checkbox",0),s.TgZ(1,"span",1),s.Hsn(2),s.qZA(),s.YNc(3,B,2,1,"span",2),s._UZ(4,"div",3)),2&Ge&&(s.Q6J("ngIf",Oe.multiple),s.xp6(3),s.Q6J("ngIf",Oe.group&&Oe.group._inert),s.xp6(1),s.Q6J("matRippleTrigger",Oe._getHostElement())("matRippleDisabled",Oe.disabled||Oe.disableRipple))},dependencies:[pe,N.O5,ot],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}),dt})();function Mt(dt,ze,Ge){if(Ge.length){let Oe=ze.toArray(),Ue=Ge.toArray(),be=0;for(let at=0;at<dt+1;at++)Oe[at].group&&Oe[at].group===Ue[be]&&be++;return be}return 0}function un(dt,ze,Ge,Oe){return dt<Ge?dt:dt+ze>Ge+Oe?Math.max(0,dt-Oe+ze):Ge}let an=(()=>{class dt{}return dt.\u0275fac=function(Ge){return new(Ge||dt)},dt.\u0275mod=s.oAB({type:dt}),dt.\u0275inj=s.cJS({imports:[Pe,N.ez,ee,vt]}),dt})()},65938:(ut,fe,d)=>{"use strict";d.d(fe,{H8:()=>Et,Is:()=>je,WI:()=>X,ZT:()=>ct,so:()=>ee,uh:()=>$t,uw:()=>Se,xY:()=>$e});var s=d(97855),c=d(98184),A=d(84080),w=d(94650),N=d(3238),te=d(36895),I=d(77579),b=d(56451),p=d(49770),_=d(39300),v=d(95698),T=d(68675),W=d(37340),P=d(12687),B=d(29521);function G(de,me){}const U={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},Z={dialogContainer:(0,W.X$)("dialogContainer",[(0,W.SB)("void, exit",(0,W.oB)({opacity:0,transform:"scale(0.7)"})),(0,W.SB)("enter",(0,W.oB)({transform:"none"})),(0,W.eR)("* => enter",(0,W.ru)([(0,W.jt)("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",(0,W.oB)({transform:"none",opacity:1})),(0,W.IO)("@*",(0,W.pV)(),{optional:!0})]),U),(0,W.eR)("* => void, * => exit",(0,W.ru)([(0,W.jt)("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",(0,W.oB)({opacity:0})),(0,W.IO)("@*",(0,W.pV)(),{optional:!0})]),U)])};class ue{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.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=U.params.enterAnimationDuration,this.exitAnimationDuration=U.params.exitAnimationDuration}}let F=(()=>{class de extends s.LL{constructor(Ne,it,yt,Gt,Ft,Vt,sn,nn){super(Ne,it,yt,Gt,Ft,Vt,sn,nn),this._animationStateChanged=new w.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(Ne){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:Ne})}}return de.\u0275fac=function(Ne){return new(Ne||de)(w.Y36(w.SBq),w.Y36(P.qV),w.Y36(te.K0,8),w.Y36(ue),w.Y36(P.ic),w.Y36(w.R0b),w.Y36(c.Iu),w.Y36(P.tE))},de.\u0275cmp=w.Xpm({type:de,selectors:[["ng-component"]],features:[w.qOj],decls:0,vars:0,template:function(Ne,it){},encapsulation:2}),de})(),Y=(()=>{class de extends F{constructor(Ne,it,yt,Gt,Ft,Vt,sn,nn,Pt){super(Ne,it,yt,Gt,Ft,Vt,sn,Pt),this._changeDetectorRef=nn,this._state="enter"}_onAnimationDone({toState:Ne,totalTime:it}){"enter"===Ne?this._openAnimationDone(it):"exit"===Ne&&this._animationStateChanged.next({state:"closed",totalTime:it})}_onAnimationStart({toState:Ne,totalTime:it}){"enter"===Ne?this._animationStateChanged.next({state:"opening",totalTime:it}):("exit"===Ne||"void"===Ne)&&this._animationStateChanged.next({state:"closing",totalTime:it})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||U.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||U.params.exitAnimationDuration}}}}return de.\u0275fac=function(Ne){return new(Ne||de)(w.Y36(w.SBq),w.Y36(P.qV),w.Y36(te.K0,8),w.Y36(ue),w.Y36(P.ic),w.Y36(w.R0b),w.Y36(c.Iu),w.Y36(w.sBO),w.Y36(P.tE))},de.\u0275cmp=w.Xpm({type:de,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(Ne,it){1&Ne&&w.WFA("@dialogContainer.start",function(Gt){return it._onAnimationStart(Gt)})("@dialogContainer.done",function(Gt){return it._onAnimationDone(Gt)}),2&Ne&&(w.Ikx("id",it._config.id),w.uIk("aria-modal",it._config.ariaModal)("role",it._config.role)("aria-labelledby",it._config.ariaLabel?null:it._ariaLabelledBy)("aria-label",it._config.ariaLabel)("aria-describedby",it._config.ariaDescribedBy||null),w.d8E("@dialogContainer",it._getAnimationState()))},features:[w.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(Ne,it){1&Ne&&w.YNc(0,G,0,0,"ng-template",0)},dependencies:[A.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:[Z.dialogContainer]}}),de})();class ee{constructor(me,Ne,it){this._ref=me,this._containerInstance=it,this._afterOpened=new I.x,this._beforeClosed=new I.x,this._state=0,this.disableClose=Ne.disableClose,this.id=me.id,it._animationStateChanged.pipe((0,_.h)(yt=>"opened"===yt.state),(0,v.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),it._animationStateChanged.pipe((0,_.h)(yt=>"closed"===yt.state),(0,v.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),me.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,b.T)(this.backdropClick(),this.keydownEvents().pipe((0,_.h)(yt=>yt.keyCode===B.hY&&!this.disableClose&&!(0,B.Vb)(yt)))).subscribe(yt=>{this.disableClose||(yt.preventDefault(),oe(this,"keydown"===yt.type?"keyboard":"mouse"))})}close(me){this._result=me,this._containerInstance._animationStateChanged.pipe((0,_.h)(Ne=>"closing"===Ne.state),(0,v.q)(1)).subscribe(Ne=>{this._beforeClosed.next(me),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),Ne.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(me){let Ne=this._ref.config.positionStrategy;return me&&(me.left||me.right)?me.left?Ne.left(me.left):Ne.right(me.right):Ne.centerHorizontally(),me&&(me.top||me.bottom)?me.top?Ne.top(me.top):Ne.bottom(me.bottom):Ne.centerVertically(),this._ref.updatePosition(),this}updateSize(me="",Ne=""){return this._ref.updateSize(me,Ne),this}addPanelClass(me){return this._ref.addPanelClass(me),this}removePanelClass(me){return this._ref.removePanelClass(me),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function oe(de,me,Ne){return de._closeInteractionType=me,de.close(Ne)}const X=new w.OlP("MatDialogData"),y=new w.OlP("mat-dialog-default-options"),k=new w.OlP("mat-dialog-scroll-strategy"),L={provide:k,deps:[c.aV],useFactory:function J(de){return()=>de.scrollStrategies.block()}};let le=0,ce=(()=>{class de{constructor(Ne,it,yt,Gt,Ft,Vt,sn,nn,Pt,wt){this._overlay=Ne,this._defaultOptions=yt,this._parentDialog=Gt,this._dialogRefConstructor=sn,this._dialogContainerType=nn,this._dialogDataToken=Pt,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new I.x,this._afterOpenedAtThisLevel=new I.x,this._idPrefix="mat-dialog-",this.afterAllClosed=(0,p.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,T.O)(void 0))),this._scrollStrategy=Vt,this._dialog=it.get(s.Vq)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const Ne=this._parentDialog;return Ne?Ne._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(Ne,it){let yt;(it={...this._defaultOptions||new ue,...it}).id=it.id||`${this._idPrefix}${le++}`,it.scrollStrategy=it.scrollStrategy||this._scrollStrategy();const Gt=this._dialog.open(Ne,{...it,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:ue,useValue:it},{provide:s.ib,useValue:it}]},templateContext:()=>({dialogRef:yt}),providers:(Ft,Vt,sn)=>(yt=new this._dialogRefConstructor(Ft,it,sn),yt.updatePosition(it?.position),[{provide:this._dialogContainerType,useValue:sn},{provide:this._dialogDataToken,useValue:Vt.data},{provide:this._dialogRefConstructor,useValue:yt}])});return yt.componentInstance=Gt.componentInstance,this.openDialogs.push(yt),this.afterOpened.next(yt),yt.afterClosed().subscribe(()=>{const Ft=this.openDialogs.indexOf(yt);Ft>-1&&(this.openDialogs.splice(Ft,1),this.openDialogs.length||this._getAfterAllClosed().next())}),yt}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(Ne){return this.openDialogs.find(it=>it.id===Ne)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(Ne){let it=Ne.length;for(;it--;)Ne[it].close()}}return de.\u0275fac=function(Ne){w.$Z()},de.\u0275prov=w.Yz7({token:de,factory:de.\u0275fac}),de})(),Se=(()=>{class de extends ce{constructor(Ne,it,yt,Gt,Ft,Vt,sn,nn){super(Ne,it,Gt,Vt,sn,Ft,ee,Y,X,nn)}}return de.\u0275fac=function(Ne){return new(Ne||de)(w.LFG(c.aV),w.LFG(w.zs3),w.LFG(te.Ye,8),w.LFG(y,8),w.LFG(k),w.LFG(de,12),w.LFG(c.Xj),w.LFG(w.QbO,8))},de.\u0275prov=w.Yz7({token:de,factory:de.\u0275fac}),de})(),Qe=0,ct=(()=>{class de{constructor(Ne,it,yt){this.dialogRef=Ne,this._elementRef=it,this._dialog=yt,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=ke(this._elementRef,this._dialog.openDialogs))}ngOnChanges(Ne){const it=Ne._matDialogClose||Ne._matDialogCloseResult;it&&(this.dialogResult=it.currentValue)}_onButtonClick(Ne){oe(this.dialogRef,0===Ne.screenX&&0===Ne.screenY?"keyboard":"mouse",this.dialogResult)}}return de.\u0275fac=function(Ne){return new(Ne||de)(w.Y36(ee,8),w.Y36(w.SBq),w.Y36(Se))},de.\u0275dir=w.lG2({type:de,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(Ne,it){1&Ne&&w.NdJ("click",function(Gt){return it._onButtonClick(Gt)}),2&Ne&&w.uIk("aria-label",it.ariaLabel||null)("type",it.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[w.TTD]}),de})(),$t=(()=>{class de{constructor(Ne,it,yt){this._dialogRef=Ne,this._elementRef=it,this._dialog=yt,this.id="mat-dialog-title-"+Qe++}ngOnInit(){this._dialogRef||(this._dialogRef=ke(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const Ne=this._dialogRef._containerInstance;Ne&&!Ne._ariaLabelledBy&&(Ne._ariaLabelledBy=this.id)})}}return de.\u0275fac=function(Ne){return new(Ne||de)(w.Y36(ee,8),w.Y36(w.SBq),w.Y36(Se))},de.\u0275dir=w.lG2({type:de,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(Ne,it){2&Ne&&w.Ikx("id",it.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),de})(),$e=(()=>{class de{}return de.\u0275fac=function(Ne){return new(Ne||de)},de.\u0275dir=w.lG2({type:de,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),de})(),Et=(()=>{class de{constructor(){this.align="start"}}return de.\u0275fac=function(Ne){return new(Ne||de)},de.\u0275dir=w.lG2({type:de,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(Ne,it){2&Ne&&w.ekj("mat-dialog-actions-align-center","center"===it.align)("mat-dialog-actions-align-end","end"===it.align)},inputs:{align:"align"}}),de})();function ke(de,me){let Ne=de.nativeElement.parentElement;for(;Ne&&!Ne.classList.contains("mat-dialog-container");)Ne=Ne.parentElement;return Ne?me.find(it=>it.id===Ne.id):null}let je=(()=>{class de{}return de.\u0275fac=function(Ne){return new(Ne||de)},de.\u0275mod=w.oAB({type:de}),de.\u0275inj=w.cJS({providers:[Se,L],imports:[s.Su,c.U8,A.eL,N.BQ,N.BQ]}),de})()},11481:(ut,fe,d)=>{"use strict";d.d(fe,{Dx:()=>Be,H7:()=>zn,b2:()=>Dt,hm:()=>Hr,ok:()=>En,q6:()=>Je,se:()=>ce,t6:()=>Er});var s=d(36895),c=d(94650);class A extends s.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class w extends A{static makeCurrent(){(0,s.HT)(new w)}onAndCancel(Ze,we,gt){return Ze.addEventListener(we,gt,!1),()=>{Ze.removeEventListener(we,gt,!1)}}dispatchEvent(Ze,we){Ze.dispatchEvent(we)}remove(Ze){Ze.parentNode&&Ze.parentNode.removeChild(Ze)}createElement(Ze,we){return(we=we||this.getDefaultDocument()).createElement(Ze)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Ze){return Ze.nodeType===Node.ELEMENT_NODE}isShadowRoot(Ze){return Ze instanceof DocumentFragment}getGlobalEventTarget(Ze,we){return"window"===we?window:"document"===we?Ze:"body"===we?Ze.body:null}getBaseHref(Ze){const we=function te(){return N=N||document.querySelector("base"),N?N.getAttribute("href"):null}();return null==we?null:function b(Ke){I=I||document.createElement("a"),I.setAttribute("href",Ke);const Ze=I.pathname;return"/"===Ze.charAt(0)?Ze:`/${Ze}`}(we)}resetBaseElement(){N=null}getUserAgent(){return window.navigator.userAgent}getCookie(Ze){return(0,s.Mx)(document.cookie,Ze)}}let I,N=null;const p=new c.OlP("TRANSITION_ID"),v=[{provide:c.ip1,useFactory:function _(Ke,Ze,we){return()=>{we.get(c.CZH).donePromise.then(()=>{const gt=(0,s.q)(),Bt=Ze.querySelectorAll(`style[ng-transition="${Ke}"]`);for(let ln=0;ln<Bt.length;ln++)gt.remove(Bt[ln])})}},deps:[p,s.K0,c.zs3],multi:!0}];let W=(()=>{class Ke{build(){return new XMLHttpRequest}}return Ke.\u0275fac=function(we){return new(we||Ke)},Ke.\u0275prov=c.Yz7({token:Ke,factory:Ke.\u0275fac}),Ke})();const P=new c.OlP("EventManagerPlugins");let B=(()=>{class Ke{constructor(we,gt){this._zone=gt,this._eventNameToPlugin=new Map,we.forEach(Bt=>Bt.manager=this),this._plugins=we.slice().reverse()}addEventListener(we,gt,Bt){return this._findPluginFor(gt).addEventListener(we,gt,Bt)}addGlobalEventListener(we,gt,Bt){return this._findPluginFor(gt).addGlobalEventListener(we,gt,Bt)}getZone(){return this._zone}_findPluginFor(we){const gt=this._eventNameToPlugin.get(we);if(gt)return gt;const Bt=this._plugins;for(let ln=0;ln<Bt.length;ln++){const pn=Bt[ln];if(pn.supports(we))return this._eventNameToPlugin.set(we,pn),pn}throw new Error(`No event manager plugin found for event ${we}`)}}return Ke.\u0275fac=function(we){return new(we||Ke)(c.LFG(P),c.LFG(c.R0b))},Ke.\u0275prov=c.Yz7({token:Ke,factory:Ke.\u0275fac}),Ke})();class G{constructor(Ze){this._doc=Ze}addGlobalEventListener(Ze,we,gt){const Bt=(0,s.q)().getGlobalEventTarget(this._doc,Ze);if(!Bt)throw new Error(`Unsupported event target ${Bt} for event ${we}`);return this.addEventListener(Bt,we,gt)}}let U=(()=>{class Ke{constructor(){this._stylesSet=new Set}addStyles(we){const gt=new Set;we.forEach(Bt=>{this._stylesSet.has(Bt)||(this._stylesSet.add(Bt),gt.add(Bt))}),this.onStylesAdded(gt)}onStylesAdded(we){}getAllStyles(){return Array.from(this._stylesSet)}}return Ke.\u0275fac=function(we){return new(we||Ke)},Ke.\u0275prov=c.Yz7({token:Ke,factory:Ke.\u0275fac}),Ke})(),Z=(()=>{class Ke extends U{constructor(we){super(),this._doc=we,this._hostNodes=new Map,this._hostNodes.set(we.head,[])}_addStylesToHost(we,gt,Bt){we.forEach(ln=>{const pn=this._doc.createElement("style");pn.textContent=ln,Bt.push(gt.appendChild(pn))})}addHost(we){const gt=[];this._addStylesToHost(this._stylesSet,we,gt),this._hostNodes.set(we,gt)}removeHost(we){const gt=this._hostNodes.get(we);gt&&gt.forEach(ue),this._hostNodes.delete(we)}onStylesAdded(we){this._hostNodes.forEach((gt,Bt)=>{this._addStylesToHost(we,Bt,gt)})}ngOnDestroy(){this._hostNodes.forEach(we=>we.forEach(ue))}}return Ke.\u0275fac=function(we){return new(we||Ke)(c.LFG(s.K0))},Ke.\u0275prov=c.Yz7({token:Ke,factory:Ke.\u0275fac}),Ke})();function ue(Ke){(0,s.q)().remove(Ke)}const F={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/"},Y=/%COMP%/g;function J(Ke,Ze,we){for(let gt=0;gt<Ze.length;gt++){let Bt=Ze[gt];Array.isArray(Bt)?J(Ke,Bt,we):(Bt=Bt.replace(Y,Ke),we.push(Bt))}return we}function L(Ke){return Ze=>{if("__ngUnwrap__"===Ze)return Ke;!1===Ke(Ze)&&(Ze.preventDefault(),Ze.returnValue=!1)}}let ce=(()=>{class Ke{constructor(we,gt,Bt){this.eventManager=we,this.sharedStylesHost=gt,this.appId=Bt,this.rendererByCompId=new Map,this.defaultRenderer=new Se(we)}createRenderer(we,gt){if(!we||!gt)return this.defaultRenderer;switch(gt.encapsulation){case c.ifc.Emulated:{let Bt=this.rendererByCompId.get(gt.id);return Bt||(Bt=new $e(this.eventManager,this.sharedStylesHost,gt,this.appId),this.rendererByCompId.set(gt.id,Bt)),Bt.applyToHost(we),Bt}case 1:case c.ifc.ShadowDom:return new Et(this.eventManager,this.sharedStylesHost,we,gt);default:if(!this.rendererByCompId.has(gt.id)){const Bt=J(gt.id,gt.styles,[]);this.sharedStylesHost.addStyles(Bt),this.rendererByCompId.set(gt.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return Ke.\u0275fac=function(we){return new(we||Ke)(c.LFG(B),c.LFG(Z),c.LFG(c.AFp))},Ke.\u0275prov=c.Yz7({token:Ke,factory:Ke.\u0275fac}),Ke})();class Se{constructor(Ze){this.eventManager=Ze,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(Ze,we){return we?document.createElementNS(F[we]||we,Ze):document.createElement(Ze)}createComment(Ze){return document.createComment(Ze)}createText(Ze){return document.createTextNode(Ze)}appendChild(Ze,we){($t(Ze)?Ze.content:Ze).appendChild(we)}insertBefore(Ze,we,gt){Ze&&($t(Ze)?Ze.content:Ze).insertBefore(we,gt)}removeChild(Ze,we){Ze&&Ze.removeChild(we)}selectRootElement(Ze,we){let gt="string"==typeof Ze?document.querySelector(Ze):Ze;if(!gt)throw new Error(`The selector "${Ze}" did not match any elements`);return we||(gt.textContent=""),gt}parentNode(Ze){return Ze.parentNode}nextSibling(Ze){return Ze.nextSibling}setAttribute(Ze,we,gt,Bt){if(Bt){we=Bt+":"+we;const ln=F[Bt];ln?Ze.setAttributeNS(ln,we,gt):Ze.setAttribute(we,gt)}else Ze.setAttribute(we,gt)}removeAttribute(Ze,we,gt){if(gt){const Bt=F[gt];Bt?Ze.removeAttributeNS(Bt,we):Ze.removeAttribute(`${gt}:${we}`)}else Ze.removeAttribute(we)}addClass(Ze,we){Ze.classList.add(we)}removeClass(Ze,we){Ze.classList.remove(we)}setStyle(Ze,we,gt,Bt){Bt&(c.JOm.DashCase|c.JOm.Important)?Ze.style.setProperty(we,gt,Bt&c.JOm.Important?"important":""):Ze.style[we]=gt}removeStyle(Ze,we,gt){gt&c.JOm.DashCase?Ze.style.removeProperty(we):Ze.style[we]=""}setProperty(Ze,we,gt){Ze[we]=gt}setValue(Ze,we){Ze.nodeValue=we}listen(Ze,we,gt){return"string"==typeof Ze?this.eventManager.addGlobalEventListener(Ze,we,L(gt)):this.eventManager.addEventListener(Ze,we,L(gt))}}function $t(Ke){return"TEMPLATE"===Ke.tagName&&void 0!==Ke.content}class $e extends Se{constructor(Ze,we,gt,Bt){super(Ze),this.component=gt;const ln=J(Bt+"-"+gt.id,gt.styles,[]);we.addStyles(ln),this.contentAttr=function k(Ke){return"_ngcontent-%COMP%".replace(Y,Ke)}(Bt+"-"+gt.id),this.hostAttr=function $(Ke){return"_nghost-%COMP%".replace(Y,Ke)}(Bt+"-"+gt.id)}applyToHost(Ze){super.setAttribute(Ze,this.hostAttr,"")}createElement(Ze,we){const gt=super.createElement(Ze,we);return super.setAttribute(gt,this.contentAttr,""),gt}}class Et extends Se{constructor(Ze,we,gt,Bt){super(Ze),this.sharedStylesHost=we,this.hostEl=gt,this.shadowRoot=gt.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const ln=J(Bt.id,Bt.styles,[]);for(let pn=0;pn<ln.length;pn++){const gn=document.createElement("style");gn.textContent=ln[pn],this.shadowRoot.appendChild(gn)}}nodeOrShadowRoot(Ze){return Ze===this.hostEl?this.shadowRoot:Ze}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(Ze,we){return super.appendChild(this.nodeOrShadowRoot(Ze),we)}insertBefore(Ze,we,gt){return super.insertBefore(this.nodeOrShadowRoot(Ze),we,gt)}removeChild(Ze,we){return super.removeChild(this.nodeOrShadowRoot(Ze),we)}parentNode(Ze){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(Ze)))}}let ke=(()=>{class Ke extends G{constructor(we){super(we)}supports(we){return!0}addEventListener(we,gt,Bt){return we.addEventListener(gt,Bt,!1),()=>this.removeEventListener(we,gt,Bt)}removeEventListener(we,gt,Bt){return we.removeEventListener(gt,Bt)}}return Ke.\u0275fac=function(we){return new(we||Ke)(c.LFG(s.K0))},Ke.\u0275prov=c.Yz7({token:Ke,factory:Ke.\u0275fac}),Ke})();const je=["alt","control","meta","shift"],de={"\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"},me={alt:Ke=>Ke.altKey,control:Ke=>Ke.ctrlKey,meta:Ke=>Ke.metaKey,shift:Ke=>Ke.shiftKey};let Ne=(()=>{class Ke extends G{constructor(we){super(we)}supports(we){return null!=Ke.parseEventName(we)}addEventListener(we,gt,Bt){const ln=Ke.parseEventName(gt),pn=Ke.eventCallback(ln.fullKey,Bt,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,s.q)().onAndCancel(we,ln.domEventName,pn))}static parseEventName(we){const gt=we.toLowerCase().split("."),Bt=gt.shift();if(0===gt.length||"keydown"!==Bt&&"keyup"!==Bt)return null;const ln=Ke._normalizeKey(gt.pop());let pn="",gn=gt.indexOf("code");if(gn>-1&&(gt.splice(gn,1),pn="code."),je.forEach(_r=>{const yn=gt.indexOf(_r);yn>-1&&(gt.splice(yn,1),pn+=_r+".")}),pn+=ln,0!=gt.length||0===ln.length)return null;const Jn={};return Jn.domEventName=Bt,Jn.fullKey=pn,Jn}static matchEventFullKeyCode(we,gt){let Bt=de[we.key]||we.key,ln="";return gt.indexOf("code.")>-1&&(Bt=we.code,ln="code."),!(null==Bt||!Bt)&&(Bt=Bt.toLowerCase()," "===Bt?Bt="space":"."===Bt&&(Bt="dot"),je.forEach(pn=>{pn!==Bt&&(0,me[pn])(we)&&(ln+=pn+".")}),ln+=Bt,ln===gt)}static eventCallback(we,gt,Bt){return ln=>{Ke.matchEventFullKeyCode(ln,we)&&Bt.runGuarded(()=>gt(ln))}}static _normalizeKey(we){return"esc"===we?"escape":we}}return Ke.\u0275fac=function(we){return new(we||Ke)(c.LFG(s.K0))},Ke.\u0275prov=c.Yz7({token:Ke,factory:Ke.\u0275fac}),Ke})();const Je=(0,c.eFA)(c._c5,"browser",[{provide:c.Lbi,useValue:s.bD},{provide:c.g9A,useValue:function sn(){w.makeCurrent()},multi:!0},{provide:s.K0,useFactory:function Pt(){return(0,c.RDi)(document),document},deps:[]}]),_t=new c.OlP(""),Tt=[{provide:c.rWj,useClass:class T{addToWindow(Ze){c.dqk.getAngularTestability=(gt,Bt=!0)=>{const ln=Ze.findTestabilityInTree(gt,Bt);if(null==ln)throw new Error("Could not find testability for element.");return ln},c.dqk.getAllAngularTestabilities=()=>Ze.getAllTestabilities(),c.dqk.getAllAngularRootElements=()=>Ze.getAllRootElements(),c.dqk.frameworkStabilizers||(c.dqk.frameworkStabilizers=[]),c.dqk.frameworkStabilizers.push(gt=>{const Bt=c.dqk.getAllAngularTestabilities();let ln=Bt.length,pn=!1;const gn=function(Jn){pn=pn||Jn,ln--,0==ln&&gt(pn)};Bt.forEach(function(Jn){Jn.whenStable(gn)})})}findTestabilityInTree(Ze,we,gt){return null==we?null:Ze.getTestability(we)??(gt?(0,s.q)().isShadowRoot(we)?this.findTestabilityInTree(Ze,we.host,!0):this.findTestabilityInTree(Ze,we.parentElement,!0):null)}},deps:[]},{provide:c.lri,useClass:c.dDg,deps:[c.R0b,c.eoX,c.rWj]},{provide:c.dDg,useClass:c.dDg,deps:[c.R0b,c.eoX,c.rWj]}],Wt=[{provide:c.zSh,useValue:"root"},{provide:c.qLn,useFactory:function nn(){return new c.qLn},deps:[]},{provide:P,useClass:ke,multi:!0,deps:[s.K0,c.R0b,c.Lbi]},{provide:P,useClass:Ne,multi:!0,deps:[s.K0]},{provide:ce,useClass:ce,deps:[B,Z,c.AFp]},{provide:c.FYo,useExisting:ce},{provide:U,useExisting:Z},{provide:Z,useClass:Z,deps:[s.K0]},{provide:B,useClass:B,deps:[P,c.R0b]},{provide:s.JF,useClass:W,deps:[]},[]];let Dt=(()=>{class Ke{constructor(we){}static withServerTransition(we){return{ngModule:Ke,providers:[{provide:c.AFp,useValue:we.appId},{provide:p,useExisting:c.AFp},v]}}}return Ke.\u0275fac=function(we){return new(we||Ke)(c.LFG(_t,12))},Ke.\u0275mod=c.oAB({type:Ke}),Ke.\u0275inj=c.cJS({providers:[...Wt,...Tt],imports:[s.ez,c.hGG]}),Ke})(),Be=(()=>{class Ke{constructor(we){this._doc=we}getTitle(){return this._doc.title}setTitle(we){this._doc.title=we||""}}return Ke.\u0275fac=function(we){return new(we||Ke)(c.LFG(s.K0))},Ke.\u0275prov=c.Yz7({token:Ke,factory:function(we){let gt=null;return gt=we?new we:function vt(){return new Be((0,c.LFG)(s.K0))}(),gt},providedIn:"root"}),Ke})();typeof window<"u"&&window;const Yt={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0,doubletap:!0},En=new c.OlP("HammerGestureConfig"),Ln=new c.OlP("HammerLoader");let Hr=(()=>{class Ke{constructor(){this.events=[],this.overrides={}}buildHammer(we){const gt=new Hammer(we,this.options);gt.get("pinch").set({enable:!0}),gt.get("rotate").set({enable:!0});for(const Bt in this.overrides)gt.get(Bt).set(this.overrides[Bt]);return gt}}return Ke.\u0275fac=function(we){return new(we||Ke)},Ke.\u0275prov=c.Yz7({token:Ke,factory:Ke.\u0275fac}),Ke})(),On=(()=>{class Ke extends G{constructor(we,gt,Bt,ln){super(we),this._config=gt,this.console=Bt,this.loader=ln,this._loaderPromise=null}supports(we){return!(!Yt.hasOwnProperty(we.toLowerCase())&&!this.isCustomEvent(we)||!window.Hammer&&!this.loader)}addEventListener(we,gt,Bt){const ln=this.manager.getZone();if(gt=gt.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||ln.runOutsideAngular(()=>this.loader());let pn=!1,gn=()=>{pn=!0};return ln.runOutsideAngular(()=>this._loaderPromise.then(()=>{window.Hammer?pn||(gn=this.addEventListener(we,gt,Bt)):gn=()=>{}}).catch(()=>{gn=()=>{}})),()=>{gn()}}return ln.runOutsideAngular(()=>{const pn=this._config.buildHammer(we),gn=function(Jn){ln.runGuarded(function(){Bt(Jn)})};return pn.on(gt,gn),()=>{pn.off(gt,gn),"function"==typeof pn.destroy&&pn.destroy()}})}isCustomEvent(we){return this._config.events.indexOf(we)>-1}}return Ke.\u0275fac=function(we){return new(we||Ke)(c.LFG(s.K0),c.LFG(En),c.LFG(c.c2e),c.LFG(Ln,8))},Ke.\u0275prov=c.Yz7({token:Ke,factory:Ke.\u0275fac}),Ke})(),Er=(()=>{class Ke{}return Ke.\u0275fac=function(we){return new(we||Ke)},Ke.\u0275mod=c.oAB({type:Ke}),Ke.\u0275inj=c.cJS({providers:[{provide:P,useClass:On,multi:!0,deps:[s.K0,En,c.c2e,[new c.FiY,Ln]]},{provide:En,useClass:Hr,deps:[]}]}),Ke})(),zn=(()=>{class Ke{}return Ke.\u0275fac=function(we){return new(we||Ke)},Ke.\u0275prov=c.Yz7({token:Ke,factory:function(we){let gt=null;return gt=we?new(we||Ke):c.LFG(jn),gt},providedIn:"root"}),Ke})(),jn=(()=>{class Ke extends zn{constructor(we){super(),this._doc=we}sanitize(we,gt){if(null==gt)return null;switch(we){case c.q3G.NONE:return gt;case c.q3G.HTML:return(0,c.qzn)(gt,"HTML")?(0,c.z3N)(gt):(0,c.EiD)(this._doc,String(gt)).toString();case c.q3G.STYLE:return(0,c.qzn)(gt,"Style")?(0,c.z3N)(gt):gt;case c.q3G.SCRIPT:if((0,c.qzn)(gt,"Script"))return(0,c.z3N)(gt);throw new Error("unsafe value used in a script context");case c.q3G.URL:return(0,c.qzn)(gt,"URL")?(0,c.z3N)(gt):(0,c.mCW)(String(gt));case c.q3G.RESOURCE_URL:if((0,c.qzn)(gt,"ResourceURL"))return(0,c.z3N)(gt);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,c.JVY)(we)}bypassSecurityTrustStyle(we){return(0,c.L6k)(we)}bypassSecurityTrustScript(we){return(0,c.eBb)(we)}bypassSecurityTrustUrl(we){return(0,c.LAX)(we)}bypassSecurityTrustResourceUrl(we){return(0,c.pB0)(we)}}return Ke.\u0275fac=function(we){return new(we||Ke)(c.LFG(s.K0))},Ke.\u0275prov=c.Yz7({token:Ke,factory:function(we){let gt=null;return gt=we?new we:function Tn(Ke){return new jn(Ke.get(s.K0))}(c.LFG(c.zs3)),gt},providedIn:"root"}),Ke})()},34793:(ut,fe,d)=>{"use strict";d.d(fe,{Bz:()=>va,F0:()=>jr,OD:()=>lr,Od:()=>qo,Q3:()=>Kr,gk:()=>di,gz:()=>dr,lC:()=>qi,m2:()=>cr,rH:()=>Zo,yS:()=>Jo});var s=d(94650),c=d(50457),A=d(39646),w=d(61135),N=d(86805),te=d(39841),I=d(97272),b=d(49770),p=d(89635),_=d(62843),v=d(69751),T=d(60515),W=d(94033),P=d(77579),B=d(36895),G=d(54004),U=d(63900),Z=d(95698),ue=d(68675),F=d(39300),Y=d(95577),ee=d(50590),oe=d(24351),X=d(18505),y=d(70262),k=d(22940),$=d(13103),J=d(22529),L=d(46590),le=d(52035),ce=d(69718),Se=d(28746),Qe=d(38343),ct=d(8189),$t=d(11481);const $e="primary",Et=Symbol("RouteTitle");class ke{constructor(O){this.params=O||{}}has(O){return Object.prototype.hasOwnProperty.call(this.params,O)}get(O){if(this.has(O)){const S=this.params[O];return Array.isArray(S)?S[0]:S}return null}getAll(O){if(this.has(O)){const S=this.params[O];return Array.isArray(S)?S:[S]}return[]}get keys(){return Object.keys(this.params)}}function je(M){return new ke(M)}function de(M,O,S){const z=S.path.split("/");if(z.length>M.length||"full"===S.pathMatch&&(O.hasChildren()||z.length<M.length))return null;const re={};for(let _e=0;_e<z.length;_e++){const Ye=z[_e],Xe=M[_e];if(Ye.startsWith(":"))re[Ye.substring(1)]=Xe;else if(Ye!==Xe.path)return null}return{consumed:M.slice(0,z.length),posParams:re}}function Ne(M,O){const S=M?Object.keys(M):void 0,z=O?Object.keys(O):void 0;if(!S||!z||S.length!=z.length)return!1;let re;for(let _e=0;_e<S.length;_e++)if(re=S[_e],!it(M[re],O[re]))return!1;return!0}function it(M,O){if(Array.isArray(M)&&Array.isArray(O)){if(M.length!==O.length)return!1;const S=[...M].sort(),z=[...O].sort();return S.every((re,_e)=>z[_e]===re)}return M===O}function yt(M){return Array.prototype.concat.apply([],M)}function Gt(M){return M.length>0?M[M.length-1]:null}function Vt(M,O){for(const S in M)M.hasOwnProperty(S)&&O(M[S],S)}function sn(M){return(0,s.CqO)(M)?M:(0,s.QGY)(M)?(0,c.D)(Promise.resolve(M)):(0,A.of)(M)}const wt={exact:function Wt(M,O,S){if(!mt(M.segments,O.segments)||!ot(M.segments,O.segments,S)||M.numberOfChildren!==O.numberOfChildren)return!1;for(const z in O.children)if(!M.children[z]||!Wt(M.children[z],O.children[z],S))return!1;return!0},subset:pe},Je={exact:function Tt(M,O){return Ne(M,O)},subset:function Dt(M,O){return Object.keys(O).length<=Object.keys(M).length&&Object.keys(O).every(S=>it(M[S],O[S]))},ignored:()=>!0};function _t(M,O,S){return wt[S.paths](M.root,O.root,S.matrixParams)&&Je[S.queryParams](M.queryParams,O.queryParams)&&!("exact"===S.fragment&&M.fragment!==O.fragment)}function pe(M,O,S){return Pe(M,O,O.segments,S)}function Pe(M,O,S,z){if(M.segments.length>S.length){const re=M.segments.slice(0,S.length);return!(!mt(re,S)||O.hasChildren()||!ot(re,S,z))}if(M.segments.length===S.length){if(!mt(M.segments,S)||!ot(M.segments,S,z))return!1;for(const re in O.children)if(!M.children[re]||!pe(M.children[re],O.children[re],z))return!1;return!0}{const re=S.slice(0,M.segments.length),_e=S.slice(M.segments.length);return!!(mt(M.segments,re)&&ot(M.segments,re,z)&&M.children[$e])&&Pe(M.children[$e],O,_e,z)}}function ot(M,O,S){return O.every((z,re)=>Je[S](M[re].parameters,z.parameters))}class vt{constructor(O,S,z){this.root=O,this.queryParams=S,this.fragment=z}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=je(this.queryParams)),this._queryParamMap}toString(){return xe.serialize(this)}}class Be{constructor(O,S){this.segments=O,this.children=S,this.parent=null,Vt(S,(z,re)=>z.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Re(this)}}class Ie{constructor(O,S){this.path=O,this.parameters=S}get parameterMap(){return this._parameterMap||(this._parameterMap=je(this.parameters)),this._parameterMap}toString(){return Oe(this)}}function mt(M,O){return M.length===O.length&&M.every((S,z)=>S.path===O[z].path)}let Me=(()=>{class M{}return M.\u0275fac=function(S){return new(S||M)},M.\u0275prov=s.Yz7({token:M,factory:function(){return new qe},providedIn:"root"}),M})();class qe{parse(O){const S=new On(O);return new vt(S.parseRootSegment(),S.parseQueryParams(),S.parseFragment())}serialize(O){const S=`/${bt(O.root,!0)}`,z=function be(M){const O=Object.keys(M).map(S=>{const z=M[S];return Array.isArray(z)?z.map(re=>`${un(S)}=${un(re)}`).join("&"):`${un(S)}=${un(z)}`}).filter(S=>!!S);return O.length?`?${O.join("&")}`:""}(O.queryParams);return`${S}${z}${"string"==typeof O.fragment?`#${function an(M){return encodeURI(M)}(O.fragment)}`:""}`}}const xe=new qe;function Re(M){return M.segments.map(O=>Oe(O)).join("/")}function bt(M,O){if(!M.hasChildren())return Re(M);if(O){const S=M.children[$e]?bt(M.children[$e],!1):"",z=[];return Vt(M.children,(re,_e)=>{_e!==$e&&z.push(`${_e}:${bt(re,!1)}`)}),z.length>0?`${S}(${z.join("//")})`:S}{const S=function Ct(M,O){let S=[];return Vt(M.children,(z,re)=>{re===$e&&(S=S.concat(O(z,re)))}),Vt(M.children,(z,re)=>{re!==$e&&(S=S.concat(O(z,re)))}),S}(M,(z,re)=>re===$e?[bt(M.children[$e],!1)]:[`${re}:${bt(z,!1)}`]);return 1===Object.keys(M.children).length&&null!=M.children[$e]?`${Re(M)}/${S[0]}`:`${Re(M)}/(${S.join("//")})`}}function Mt(M){return encodeURIComponent(M).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function un(M){return Mt(M).replace(/%3B/gi,";")}function dt(M){return Mt(M).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ze(M){return decodeURIComponent(M)}function Ge(M){return ze(M.replace(/\+/g,"%20"))}function Oe(M){return`${dt(M.path)}${function Ue(M){return Object.keys(M).map(O=>`;${dt(O)}=${dt(M[O])}`).join("")}(M.parameters)}`}const at=/^[^\/()?;=#]+/;function At(M){const O=M.match(at);return O?O[0]:""}const Yt=/^[^=?&#]+/,Ln=/^[^&#]+/;class On{constructor(O){this.url=O,this.remaining=O}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Be([],{}):new Be([],this.parseChildren())}parseQueryParams(){const O={};if(this.consumeOptional("?"))do{this.parseQueryParam(O)}while(this.consumeOptional("&"));return O}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const O=[];for(this.peekStartsWith("(")||O.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),O.push(this.parseSegment());let S={};this.peekStartsWith("/(")&&(this.capture("/"),S=this.parseParens(!0));let z={};return this.peekStartsWith("(")&&(z=this.parseParens(!1)),(O.length>0||Object.keys(S).length>0)&&(z[$e]=new Be(O,S)),z}parseSegment(){const O=At(this.remaining);if(""===O&&this.peekStartsWith(";"))throw new s.vHH(4009,!1);return this.capture(O),new Ie(ze(O),this.parseMatrixParams())}parseMatrixParams(){const O={};for(;this.consumeOptional(";");)this.parseParam(O);return O}parseParam(O){const S=At(this.remaining);if(!S)return;this.capture(S);let z="";if(this.consumeOptional("=")){const re=At(this.remaining);re&&(z=re,this.capture(z))}O[ze(S)]=ze(z)}parseQueryParam(O){const S=function En(M){const O=M.match(Yt);return O?O[0]:""}(this.remaining);if(!S)return;this.capture(S);let z="";if(this.consumeOptional("=")){const Ye=function Hr(M){const O=M.match(Ln);return O?O[0]:""}(this.remaining);Ye&&(z=Ye,this.capture(z))}const re=Ge(S),_e=Ge(z);if(O.hasOwnProperty(re)){let Ye=O[re];Array.isArray(Ye)||(Ye=[Ye],O[re]=Ye),Ye.push(_e)}else O[re]=_e}parseParens(O){const S={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const z=At(this.remaining),re=this.remaining[z.length];if("/"!==re&&")"!==re&&";"!==re)throw new s.vHH(4010,!1);let _e;z.indexOf(":")>-1?(_e=z.slice(0,z.indexOf(":")),this.capture(_e),this.capture(":")):O&&(_e=$e);const Ye=this.parseChildren();S[_e]=1===Object.keys(Ye).length?Ye[$e]:new Be([],Ye),this.consumeOptional("//")}return S}peekStartsWith(O){return this.remaining.startsWith(O)}consumeOptional(O){return!!this.peekStartsWith(O)&&(this.remaining=this.remaining.substring(O.length),!0)}capture(O){if(!this.consumeOptional(O))throw new s.vHH(4011,!1)}}function Er(M){return M.segments.length>0?new Be([],{[$e]:M}):M}function zn(M){const O={};for(const z of Object.keys(M.children)){const _e=zn(M.children[z]);(_e.segments.length>0||_e.hasChildren())&&(O[z]=_e)}return function Tn(M){if(1===M.numberOfChildren&&M.children[$e]){const O=M.children[$e];return new Be(M.segments.concat(O.segments),O.children)}return M}(new Be(M.segments,O))}function jn(M){return M instanceof vt}function gt(M,O,S,z,re){if(0===S.length)return pn(O.root,O.root,O.root,z,re);const _e=function _r(M){if("string"==typeof M[0]&&1===M.length&&"/"===M[0])return new Jn(!0,0,M);let O=0,S=!1;const z=M.reduce((re,_e,Ye)=>{if("object"==typeof _e&&null!=_e){if(_e.outlets){const Xe={};return Vt(_e.outlets,(kt,dn)=>{Xe[dn]="string"==typeof kt?kt.split("/"):kt}),[...re,{outlets:Xe}]}if(_e.segmentPath)return[...re,_e.segmentPath]}return"string"!=typeof _e?[...re,_e]:0===Ye?(_e.split("/").forEach((Xe,kt)=>{0==kt&&"."===Xe||(0==kt&&""===Xe?S=!0:".."===Xe?O++:""!=Xe&&re.push(Xe))}),re):[...re,_e]},[]);return new Jn(S,O,z)}(S);return _e.toRoot()?pn(O.root,O.root,new Be([],{}),z,re):function Ye(kt){const dn=function ti(M,O,S,z){if(M.isAbsolute)return new yn(O.root,!0,0);if(-1===z)return new yn(S,S===O.root,0);return function Xr(M,O,S){let z=M,re=O,_e=S;for(;_e>re;){if(_e-=re,z=z.parent,!z)throw new s.vHH(4005,!1);re=z.segments.length}return new yn(z,!1,re-_e)}(S,z+(Bt(M.commands[0])?0:1),M.numberOfDoubleDots)}(_e,O,M.snapshot?._urlSegment,kt),Pn=dn.processChildren?fr(dn.segmentGroup,dn.index,_e.commands):Cr(dn.segmentGroup,dn.index,_e.commands);return pn(O.root,dn.segmentGroup,Pn,z,re)}(M.snapshot?._lastPathIndex)}function Bt(M){return"object"==typeof M&&null!=M&&!M.outlets&&!M.segmentPath}function ln(M){return"object"==typeof M&&null!=M&&M.outlets}function pn(M,O,S,z,re){let Ye,_e={};z&&Vt(z,(kt,dn)=>{_e[dn]=Array.isArray(kt)?kt.map(Pn=>`${Pn}`):`${kt}`}),Ye=M===O?S:gn(M,O,S);const Xe=Er(zn(Ye));return new vt(Xe,_e,re)}function gn(M,O,S){const z={};return Vt(M.children,(re,_e)=>{z[_e]=re===O?S:gn(re,O,S)}),new Be(M.segments,z)}class Jn{constructor(O,S,z){if(this.isAbsolute=O,this.numberOfDoubleDots=S,this.commands=z,O&&z.length>0&&Bt(z[0]))throw new s.vHH(4003,!1);const re=z.find(ln);if(re&&re!==Gt(z))throw new s.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class yn{constructor(O,S,z){this.segmentGroup=O,this.processChildren=S,this.index=z}}function Cr(M,O,S){if(M||(M=new Be([],{})),0===M.segments.length&&M.hasChildren())return fr(M,O,S);const z=function pr(M,O,S){let z=0,re=O;const _e={match:!1,pathIndex:0,commandIndex:0};for(;re<M.segments.length;){if(z>=S.length)return _e;const Ye=M.segments[re],Xe=S[z];if(ln(Xe))break;const kt=`${Xe}`,dn=z<S.length-1?S[z+1]:null;if(re>0&&void 0===kt)break;if(kt&&dn&&"object"==typeof dn&&void 0===dn.outlets){if(!Xn(kt,dn,Ye))return _e;z+=2}else{if(!Xn(kt,{},Ye))return _e;z++}re++}return{match:!0,pathIndex:re,commandIndex:z}}(M,O,S),re=S.slice(z.commandIndex);if(z.match&&z.pathIndex<M.segments.length){const _e=new Be(M.segments.slice(0,z.pathIndex),{});return _e.children[$e]=new Be(M.segments.slice(z.pathIndex),M.children),fr(_e,0,re)}return z.match&&0===re.length?new Be(M.segments,{}):z.match&&!M.hasChildren()?rr(M,O,S):z.match?fr(M,0,re):rr(M,O,S)}function fr(M,O,S){if(0===S.length)return new Be(M.segments,{});{const z=function tr(M){return ln(M[0])?M[0].outlets:{[$e]:M}}(S),re={};return Vt(z,(_e,Ye)=>{"string"==typeof _e&&(_e=[_e]),null!==_e&&(re[Ye]=Cr(M.children[Ye],O,_e))}),Vt(M.children,(_e,Ye)=>{void 0===z[Ye]&&(re[Ye]=_e)}),new Be(M.segments,re)}}function rr(M,O,S){const z=M.segments.slice(0,O);let re=0;for(;re<S.length;){const _e=S[re];if(ln(_e)){const kt=Nr(_e.outlets);return new Be(z,kt)}if(0===re&&Bt(S[0])){z.push(new Ie(M.segments[O].path,zr(S[0]))),re++;continue}const Ye=ln(_e)?_e.outlets[$e]:`${_e}`,Xe=re<S.length-1?S[re+1]:null;Ye&&Xe&&Bt(Xe)?(z.push(new Ie(Ye,zr(Xe))),re+=2):(z.push(new Ie(Ye,{})),re++)}return new Be(z,{})}function Nr(M){const O={};return Vt(M,(S,z)=>{"string"==typeof S&&(S=[S]),null!==S&&(O[z]=rr(new Be([],{}),0,S))}),O}function zr(M){const O={};return Vt(M,(S,z)=>O[z]=`${S}`),O}function Xn(M,O,S){return M==S.path&&Ne(O,S.parameters)}class Lr{constructor(O,S){this.id=O,this.url=S}}class lr extends Lr{constructor(O,S,z="imperative",re=null){super(O,S),this.type=0,this.navigationTrigger=z,this.restoredState=re}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class cr extends Lr{constructor(O,S,z){super(O,S),this.urlAfterRedirects=z,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class di extends Lr{constructor(O,S,z,re){super(O,S),this.reason=z,this.code=re,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Kr extends Lr{constructor(O,S,z,re){super(O,S),this.error=z,this.target=re,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class ur extends Lr{constructor(O,S,z,re){super(O,S),this.urlAfterRedirects=z,this.state=re,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class bn extends Lr{constructor(O,S,z,re){super(O,S),this.urlAfterRedirects=z,this.state=re,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ir extends Lr{constructor(O,S,z,re,_e){super(O,S),this.urlAfterRedirects=z,this.state=re,this.shouldActivate=_e,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class li extends Lr{constructor(O,S,z,re){super(O,S),this.urlAfterRedirects=z,this.state=re,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Sr extends Lr{constructor(O,S,z,re){super(O,S),this.urlAfterRedirects=z,this.state=re,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class xr{constructor(O){this.route=O,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class ni{constructor(O){this.route=O,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class ri{constructor(O){this.snapshot=O,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class bi{constructor(O){this.snapshot=O,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Fr{constructor(O){this.snapshot=O,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Yi{constructor(O){this.snapshot=O,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class _i{constructor(O,S,z){this.routerEvent=O,this.position=S,this.anchor=z,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class hi{constructor(O){this._root=O}get root(){return this._root.value}parent(O){const S=this.pathFromRoot(O);return S.length>1?S[S.length-2]:null}children(O){const S=ve(O,this._root);return S?S.children.map(z=>z.value):[]}firstChild(O){const S=ve(O,this._root);return S&&S.children.length>0?S.children[0].value:null}siblings(O){const S=Te(O,this._root);return S.length<2?[]:S[S.length-2].children.map(re=>re.value).filter(re=>re!==O)}pathFromRoot(O){return Te(O,this._root).map(S=>S.value)}}function ve(M,O){if(M===O.value)return O;for(const S of O.children){const z=ve(M,S);if(z)return z}return null}function Te(M,O){if(M===O.value)return[O];for(const S of O.children){const z=Te(M,S);if(z.length)return z.unshift(O),z}return[]}class tt{constructor(O,S){this.value=O,this.children=S}toString(){return`TreeNode(${this.value})`}}function Ot(M){const O={};return M&&M.children.forEach(S=>O[S.value.outlet]=S),O}class Qt extends hi{constructor(O,S){super(O),this.snapshot=S,Ui(this,O)}toString(){return this.snapshot.toString()}}function hn(M,O){const S=function Bn(M,O){const Ye=new Ir([],{},{},"",{},$e,O,null,M.root,-1,{});return new is("",new tt(Ye,[]))}(M,O),z=new w.X([new Ie("",{})]),re=new w.X({}),_e=new w.X({}),Ye=new w.X({}),Xe=new w.X(""),kt=new dr(z,re,Ye,Xe,_e,$e,O,S.root);return kt.snapshot=S.root,new Qt(new tt(kt,[]),S)}class dr{constructor(O,S,z,re,_e,Ye,Xe,kt){this.url=O,this.params=S,this.queryParams=z,this.fragment=re,this.data=_e,this.outlet=Ye,this.component=Xe,this.title=this.data?.pipe((0,G.U)(dn=>dn[Et]))??(0,A.of)(void 0),this._futureSnapshot=kt}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,G.U)(O=>je(O)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,G.U)(O=>je(O)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function sr(M,O="emptyOnly"){const S=M.pathFromRoot;let z=0;if("always"!==O)for(z=S.length-1;z>=1;){const re=S[z],_e=S[z-1];if(re.routeConfig&&""===re.routeConfig.path)z--;else{if(_e.component)break;z--}}return function Mn(M){return M.reduce((O,S)=>({params:{...O.params,...S.params},data:{...O.data,...S.data},resolve:{...S.data,...O.resolve,...S.routeConfig?.data,...S._resolvedData}}),{params:{},data:{},resolve:{}})}(S.slice(z))}class Ir{constructor(O,S,z,re,_e,Ye,Xe,kt,dn,Pn,vn,kn){this.url=O,this.params=S,this.queryParams=z,this.fragment=re,this.data=_e,this.outlet=Ye,this.component=Xe,this.title=this.data?.[Et],this.routeConfig=kt,this._urlSegment=dn,this._lastPathIndex=Pn,this._correctedLastPathIndex=kn??Pn,this._resolve=vn}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=je(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=je(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(z=>z.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class is extends hi{constructor(O,S){super(S),this.url=O,Ui(this,S)}toString(){return Ei(this._root)}}function Ui(M,O){O.value._routerState=M,O.children.forEach(S=>Ui(M,S))}function Ei(M){const O=M.children.length>0?` { ${M.children.map(Ei).join(", ")} } `:"";return`${M.value}${O}`}function ci(M){if(M.snapshot){const O=M.snapshot,S=M._futureSnapshot;M.snapshot=S,Ne(O.queryParams,S.queryParams)||M.queryParams.next(S.queryParams),O.fragment!==S.fragment&&M.fragment.next(S.fragment),Ne(O.params,S.params)||M.params.next(S.params),function me(M,O){if(M.length!==O.length)return!1;for(let S=0;S<M.length;++S)if(!Ne(M[S],O[S]))return!1;return!0}(O.url,S.url)||M.url.next(S.url),Ne(O.data,S.data)||M.data.next(S.data)}else M.snapshot=M._futureSnapshot,M.data.next(M._futureSnapshot.data)}function ui(M,O){const S=Ne(M.params,O.params)&&function Le(M,O){return mt(M,O)&&M.every((S,z)=>Ne(S.parameters,O[z].parameters))}(M.url,O.url);return S&&!(!M.parent!=!O.parent)&&(!M.parent||ui(M.parent,O.parent))}function Di(M,O,S){if(S&&M.shouldReuseRoute(O.value,S.value.snapshot)){const z=S.value;z._futureSnapshot=O.value;const re=function Ls(M,O,S){return O.children.map(z=>{for(const re of S.children)if(M.shouldReuseRoute(z.value,re.value.snapshot))return Di(M,z,re);return Di(M,z)})}(M,O,S);return new tt(z,re)}{if(M.shouldAttach(O.value)){const _e=M.retrieve(O.value);if(null!==_e){const Ye=_e.route;return Ye.value._futureSnapshot=O.value,Ye.children=O.children.map(Xe=>Di(M,Xe)),Ye}}const z=function Or(M){return new dr(new w.X(M.url),new w.X(M.params),new w.X(M.queryParams),new w.X(M.fragment),new w.X(M.data),M.outlet,M.component,M)}(O.value),re=O.children.map(_e=>Di(M,_e));return new tt(z,re)}}const Gi="ngNavigationCancelingError";function Vi(M,O){const{redirectTo:S,navigationBehaviorOptions:z}=jn(O)?{redirectTo:O,navigationBehaviorOptions:void 0}:O,re=Ri(!1,0,O);return re.url=S,re.navigationBehaviorOptions=z,re}function Ri(M,O,S){const z=new Error("NavigationCancelingError: "+(M||""));return z[Gi]=!0,z.cancellationCode=O,S&&(z.url=S),z}function Qi(M){return Xi(M)&&jn(M.url)}function Xi(M){return M&&M[Gi]}class fs{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Zi,this.attachRef=null}}let Zi=(()=>{class M{constructor(){this.contexts=new Map}onChildOutletCreated(S,z){const re=this.getOrCreateContext(S);re.outlet=z,this.contexts.set(S,re)}onChildOutletDestroyed(S){const z=this.getContext(S);z&&(z.outlet=null,z.attachRef=null)}onOutletDeactivated(){const S=this.contexts;return this.contexts=new Map,S}onOutletReAttached(S){this.contexts=S}getOrCreateContext(S){let z=this.getContext(S);return z||(z=new fs,this.contexts.set(S,z)),z}getContext(S){return this.contexts.get(S)||null}}return M.\u0275fac=function(S){return new(S||M)},M.\u0275prov=s.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"}),M})();const Ji=!1;let qi=(()=>{class M{constructor(S,z,re,_e,Ye){this.parentContexts=S,this.location=z,this.changeDetector=_e,this.environmentInjector=Ye,this.activated=null,this._activatedRoute=null,this.activateEvents=new s.vpe,this.deactivateEvents=new s.vpe,this.attachEvents=new s.vpe,this.detachEvents=new s.vpe,this.name=re||$e,S.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const S=this.parentContexts.getContext(this.name);S&&S.route&&(S.attachRef?this.attach(S.attachRef,S.route):this.activateWith(S.route,S.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new s.vHH(4012,Ji);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new s.vHH(4012,Ji);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new s.vHH(4012,Ji);this.location.detach();const S=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(S.instance),S}attach(S,z){this.activated=S,this._activatedRoute=z,this.location.insert(S.hostView),this.attachEvents.emit(S.instance)}deactivate(){if(this.activated){const S=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(S)}}activateWith(S,z){if(this.isActivated)throw new s.vHH(4013,Ji);this._activatedRoute=S;const re=this.location,Ye=S._futureSnapshot.component,Xe=this.parentContexts.getOrCreateContext(this.name).children,kt=new mo(S,Xe,re.injector);if(z&&function Zr(M){return!!M.resolveComponentFactory}(z)){const dn=z.resolveComponentFactory(Ye);this.activated=re.createComponent(dn,re.length,kt)}else this.activated=re.createComponent(Ye,{index:re.length,injector:kt,environmentInjector:z??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return M.\u0275fac=function(S){return new(S||M)(s.Y36(Zi),s.Y36(s.s_b),s.$8M("name"),s.Y36(s.sBO),s.Y36(s.lqb))},M.\u0275dir=s.lG2({type:M,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0}),M})();class mo{constructor(O,S,z){this.route=O,this.childContexts=S,this.parent=z}get(O,S){return O===dr?this.route:O===Zi?this.childContexts:this.parent.get(O,S)}}let Ai=(()=>{class M{}return M.\u0275fac=function(S){return new(S||M)},M.\u0275cmp=s.Xpm({type:M,selectors:[["ng-component"]],standalone:!0,features:[s.jDz],decls:1,vars:0,template:function(S,z){1&S&&s._UZ(0,"router-outlet")},dependencies:[qi],encapsulation:2}),M})();function ps(M,O){return M.providers&&!M._injector&&(M._injector=(0,s.MMx)(M.providers,O,`Route: ${M.path}`)),M._injector??O}function Lt(M){const O=M.children&&M.children.map(Lt),S=O?{...M,children:O}:{...M};return!S.component&&!S.loadComponent&&(O||S.loadChildren)&&S.outlet&&S.outlet!==$e&&(S.component=Ai),S}function Ht(M){return M.outlet||$e}function tn(M,O){const S=M.filter(z=>Ht(z)===O);return S.push(...M.filter(z=>Ht(z)!==O)),S}function ht(M){if(!M)return null;if(M.routeConfig?._injector)return M.routeConfig._injector;for(let O=M.parent;O;O=O.parent){const S=O.routeConfig;if(S?._loadedInjector)return S._loadedInjector;if(S?._injector)return S._injector}return null}class $n{constructor(O,S,z,re){this.routeReuseStrategy=O,this.futureState=S,this.currState=z,this.forwardEvent=re}activate(O){const S=this.futureState._root,z=this.currState?this.currState._root:null;this.deactivateChildRoutes(S,z,O),ci(this.futureState.root),this.activateChildRoutes(S,z,O)}deactivateChildRoutes(O,S,z){const re=Ot(S);O.children.forEach(_e=>{const Ye=_e.value.outlet;this.deactivateRoutes(_e,re[Ye],z),delete re[Ye]}),Vt(re,(_e,Ye)=>{this.deactivateRouteAndItsChildren(_e,z)})}deactivateRoutes(O,S,z){const re=O.value,_e=S?S.value:null;if(re===_e)if(re.component){const Ye=z.getContext(re.outlet);Ye&&this.deactivateChildRoutes(O,S,Ye.children)}else this.deactivateChildRoutes(O,S,z);else _e&&this.deactivateRouteAndItsChildren(S,z)}deactivateRouteAndItsChildren(O,S){O.value.component&&this.routeReuseStrategy.shouldDetach(O.value.snapshot)?this.detachAndStoreRouteSubtree(O,S):this.deactivateRouteAndOutlet(O,S)}detachAndStoreRouteSubtree(O,S){const z=S.getContext(O.value.outlet),re=z&&O.value.component?z.children:S,_e=Ot(O);for(const Ye of Object.keys(_e))this.deactivateRouteAndItsChildren(_e[Ye],re);if(z&&z.outlet){const Ye=z.outlet.detach(),Xe=z.children.onOutletDeactivated();this.routeReuseStrategy.store(O.value.snapshot,{componentRef:Ye,route:O,contexts:Xe})}}deactivateRouteAndOutlet(O,S){const z=S.getContext(O.value.outlet),re=z&&O.value.component?z.children:S,_e=Ot(O);for(const Ye of Object.keys(_e))this.deactivateRouteAndItsChildren(_e[Ye],re);z&&z.outlet&&(z.outlet.deactivate(),z.children.onOutletDeactivated(),z.attachRef=null,z.resolver=null,z.route=null)}activateChildRoutes(O,S,z){const re=Ot(S);O.children.forEach(_e=>{this.activateRoutes(_e,re[_e.value.outlet],z),this.forwardEvent(new Yi(_e.value.snapshot))}),O.children.length&&this.forwardEvent(new bi(O.value.snapshot))}activateRoutes(O,S,z){const re=O.value,_e=S?S.value:null;if(ci(re),re===_e)if(re.component){const Ye=z.getOrCreateContext(re.outlet);this.activateChildRoutes(O,S,Ye.children)}else this.activateChildRoutes(O,S,z);else if(re.component){const Ye=z.getOrCreateContext(re.outlet);if(this.routeReuseStrategy.shouldAttach(re.snapshot)){const Xe=this.routeReuseStrategy.retrieve(re.snapshot);this.routeReuseStrategy.store(re.snapshot,null),Ye.children.onOutletReAttached(Xe.contexts),Ye.attachRef=Xe.componentRef,Ye.route=Xe.route.value,Ye.outlet&&Ye.outlet.attach(Xe.componentRef,Xe.route.value),ci(Xe.route.value),this.activateChildRoutes(O,null,Ye.children)}else{const Xe=ht(re.snapshot),kt=Xe?.get(s._Vd)??null;Ye.attachRef=null,Ye.route=re,Ye.resolver=kt,Ye.injector=Xe,Ye.outlet&&Ye.outlet.activateWith(re,Ye.injector),this.activateChildRoutes(O,null,Ye.children)}}else this.activateChildRoutes(O,null,z)}}class Kn{constructor(O){this.path=O,this.route=this.path[this.path.length-1]}}class qn{constructor(O,S){this.component=O,this.route=S}}function gr(M,O,S){const z=M._root;return es(z,O?O._root:null,S,[z.value])}function Dn(M,O){const S=Symbol(),z=O.get(M,S);return z===S?"function"!=typeof M||(0,s.Z0I)(M)?O.get(M):M:z}function es(M,O,S,z,re={canDeactivateChecks:[],canActivateChecks:[]}){const _e=Ot(O);return M.children.forEach(Ye=>{(function ka(M,O,S,z,re={canDeactivateChecks:[],canActivateChecks:[]}){const _e=M.value,Ye=O?O.value:null,Xe=S?S.getContext(M.value.outlet):null;if(Ye&&_e.routeConfig===Ye.routeConfig){const kt=function gs(M,O,S){if("function"==typeof S)return S(M,O);switch(S){case"pathParamsChange":return!mt(M.url,O.url);case"pathParamsOrQueryParamsChange":return!mt(M.url,O.url)||!Ne(M.queryParams,O.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ui(M,O)||!Ne(M.queryParams,O.queryParams);default:return!ui(M,O)}}(Ye,_e,_e.routeConfig.runGuardsAndResolvers);kt?re.canActivateChecks.push(new Kn(z)):(_e.data=Ye.data,_e._resolvedData=Ye._resolvedData),es(M,O,_e.component?Xe?Xe.children:null:S,z,re),kt&&Xe&&Xe.outlet&&Xe.outlet.isActivated&&re.canDeactivateChecks.push(new qn(Xe.outlet.component,Ye))}else Ye&&wi(O,Xe,re),re.canActivateChecks.push(new Kn(z)),es(M,null,_e.component?Xe?Xe.children:null:S,z,re)})(Ye,_e[Ye.value.outlet],S,z.concat([Ye.value]),re),delete _e[Ye.value.outlet]}),Vt(_e,(Ye,Xe)=>wi(Ye,S.getContext(Xe),re)),re}function wi(M,O,S){const z=Ot(M),re=M.value;Vt(z,(_e,Ye)=>{wi(_e,re.component?O?O.children.getContext(Ye):null:O,S)}),S.canDeactivateChecks.push(new qn(re.component&&O&&O.outlet&&O.outlet.isActivated?O.outlet.component:null,re))}function Li(M){return"function"==typeof M}function se(M){return M instanceof N.K||"EmptyError"===M?.name}const q=Symbol("INITIAL_VALUE");function j(){return(0,U.w)(M=>(0,te.a)(M.map(O=>O.pipe((0,Z.q)(1),(0,ue.O)(q)))).pipe((0,G.U)(O=>{for(const S of O)if(!0!==S){if(S===q)return q;if(!1===S||S instanceof vt)return S}return!0}),(0,F.h)(O=>O!==q),(0,Z.q)(1)))}function As(M){return(0,p.z)((0,X.b)(O=>{if(jn(O))throw Vi(0,O)}),(0,G.U)(O=>!0===O))}const xs={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ts(M,O,S,z,re){const _e=Vo(M,O,S);return _e.matched?function xi(M,O,S,z){const re=O.canMatch;if(!re||0===re.length)return(0,A.of)(!0);const _e=re.map(Ye=>{const Xe=Dn(Ye,M);return sn(function vo(M){return M&&Li(M.canMatch)}(Xe)?Xe.canMatch(O,S):M.runInContext(()=>Xe(O,S)))});return(0,A.of)(_e).pipe(j(),As())}(z=ps(O,z),O,S).pipe((0,G.U)(Ye=>!0===Ye?_e:{...xs})):(0,A.of)(_e)}function Vo(M,O,S){if(""===O.path)return"full"===O.pathMatch&&(M.hasChildren()||S.length>0)?{...xs}:{matched:!0,consumedSegments:[],remainingSegments:S,parameters:{},positionalParamSegments:{}};const re=(O.matcher||de)(S,M,O);if(!re)return{...xs};const _e={};Vt(re.posParams,(Xe,kt)=>{_e[kt]=Xe.path});const Ye=re.consumed.length>0?{..._e,...re.consumed[re.consumed.length-1].parameters}:_e;return{matched:!0,consumedSegments:re.consumed,remainingSegments:S.slice(re.consumed.length),parameters:Ye,positionalParamSegments:re.posParams??{}}}function Cs(M,O,S,z,re="corrected"){if(S.length>0&&function Fs(M,O,S){return S.some(z=>Ss(M,O,z)&&Ht(z)!==$e)}(M,S,z)){const Ye=new Be(O,function to(M,O,S,z){const re={};re[$e]=z,z._sourceSegment=M,z._segmentIndexShift=O.length;for(const _e of S)if(""===_e.path&&Ht(_e)!==$e){const Ye=new Be([],{});Ye._sourceSegment=M,Ye._segmentIndexShift=O.length,re[Ht(_e)]=Ye}return re}(M,O,z,new Be(S,M.children)));return Ye._sourceSegment=M,Ye._segmentIndexShift=O.length,{segmentGroup:Ye,slicedSegments:[]}}if(0===S.length&&function as(M,O,S){return S.some(z=>Ss(M,O,z))}(M,S,z)){const Ye=new Be(M.segments,function Ho(M,O,S,z,re,_e){const Ye={};for(const Xe of z)if(Ss(M,S,Xe)&&!re[Ht(Xe)]){const kt=new Be([],{});kt._sourceSegment=M,kt._segmentIndexShift="legacy"===_e?M.segments.length:O.length,Ye[Ht(Xe)]=kt}return{...re,...Ye}}(M,O,S,z,M.children,re));return Ye._sourceSegment=M,Ye._segmentIndexShift=O.length,{segmentGroup:Ye,slicedSegments:S}}const _e=new Be(M.segments,M.children);return _e._sourceSegment=M,_e._segmentIndexShift=O.length,{segmentGroup:_e,slicedSegments:S}}function Ss(M,O,S){return(!(M.hasChildren()||O.length>0)||"full"!==S.pathMatch)&&""===S.path}function $o(M,O,S,z){return!!(Ht(M)===z||z!==$e&&Ss(O,S,M))&&("**"===M.path||Vo(O,M,S).matched)}function jo(M,O,S){return 0===O.length&&!M.children[S]}const yo=!1;class Eo{constructor(O){this.segmentGroup=O||null}}class Ts{constructor(O){this.urlTree=O}}function V(M){return(0,_._)(new Eo(M))}function he(M){return(0,_._)(new Ts(M))}class Nt{constructor(O,S,z,re,_e){this.injector=O,this.configLoader=S,this.urlSerializer=z,this.urlTree=re,this.config=_e,this.allowRedirects=!0}apply(){const O=Cs(this.urlTree.root,[],[],this.config).segmentGroup,S=new Be(O.segments,O.children);return this.expandSegmentGroup(this.injector,this.config,S,$e).pipe((0,G.U)(_e=>this.createUrlTree(zn(_e),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,y.K)(_e=>{if(_e instanceof Ts)return this.allowRedirects=!1,this.match(_e.urlTree);throw _e instanceof Eo?this.noMatchError(_e):_e}))}match(O){return this.expandSegmentGroup(this.injector,this.config,O.root,$e).pipe((0,G.U)(re=>this.createUrlTree(zn(re),O.queryParams,O.fragment))).pipe((0,y.K)(re=>{throw re instanceof Eo?this.noMatchError(re):re}))}noMatchError(O){return new s.vHH(4002,yo)}createUrlTree(O,S,z){const re=Er(O);return new vt(re,S,z)}expandSegmentGroup(O,S,z,re){return 0===z.segments.length&&z.hasChildren()?this.expandChildren(O,S,z).pipe((0,G.U)(_e=>new Be([],_e))):this.expandSegment(O,z,S,z.segments,re,!0)}expandChildren(O,S,z){const re=[];for(const _e of Object.keys(z.children))"primary"===_e?re.unshift(_e):re.push(_e);return(0,c.D)(re).pipe((0,oe.b)(_e=>{const Ye=z.children[_e],Xe=tn(S,_e);return this.expandSegmentGroup(O,Xe,Ye,_e).pipe((0,G.U)(kt=>({segment:kt,outlet:_e})))}),(0,k.R)((_e,Ye)=>(_e[Ye.outlet]=Ye.segment,_e),{}),(0,$.Z)())}expandSegment(O,S,z,re,_e,Ye){return(0,c.D)(z).pipe((0,oe.b)(Xe=>this.expandSegmentAgainstRoute(O,S,z,Xe,re,_e,Ye).pipe((0,y.K)(dn=>{if(dn instanceof Eo)return(0,A.of)(null);throw dn}))),(0,ee.P)(Xe=>!!Xe),(0,y.K)((Xe,kt)=>{if(se(Xe))return jo(S,re,_e)?(0,A.of)(new Be([],{})):V(S);throw Xe}))}expandSegmentAgainstRoute(O,S,z,re,_e,Ye,Xe){return $o(re,S,_e,Ye)?void 0===re.redirectTo?this.matchSegmentAgainstRoute(O,S,re,_e,Ye):Xe&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(O,S,z,re,_e,Ye):V(S):V(S)}expandSegmentAgainstRouteUsingRedirect(O,S,z,re,_e,Ye){return"**"===re.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(O,z,re,Ye):this.expandRegularSegmentAgainstRouteUsingRedirect(O,S,z,re,_e,Ye)}expandWildCardWithParamsAgainstRouteUsingRedirect(O,S,z,re){const _e=this.applyRedirectCommands([],z.redirectTo,{});return z.redirectTo.startsWith("/")?he(_e):this.lineralizeSegments(z,_e).pipe((0,Y.z)(Ye=>{const Xe=new Be(Ye,{});return this.expandSegment(O,Xe,S,Ye,re,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(O,S,z,re,_e,Ye){const{matched:Xe,consumedSegments:kt,remainingSegments:dn,positionalParamSegments:Pn}=Vo(S,re,_e);if(!Xe)return V(S);const vn=this.applyRedirectCommands(kt,re.redirectTo,Pn);return re.redirectTo.startsWith("/")?he(vn):this.lineralizeSegments(re,vn).pipe((0,Y.z)(kn=>this.expandSegment(O,S,z,kn.concat(dn),Ye,!1)))}matchSegmentAgainstRoute(O,S,z,re,_e){return"**"===z.path?(O=ps(z,O),z.loadChildren?(z._loadedRoutes?(0,A.of)({routes:z._loadedRoutes,injector:z._loadedInjector}):this.configLoader.loadChildren(O,z)).pipe((0,G.U)(Xe=>(z._loadedRoutes=Xe.routes,z._loadedInjector=Xe.injector,new Be(re,{})))):(0,A.of)(new Be(re,{}))):ts(S,z,re,O).pipe((0,U.w)(({matched:Ye,consumedSegments:Xe,remainingSegments:kt})=>Ye?this.getChildConfig(O=z._injector??O,z,re).pipe((0,Y.z)(Pn=>{const vn=Pn.injector??O,kn=Pn.routes,{segmentGroup:fi,slicedSegments:pi}=Cs(S,Xe,kt,kn),$s=new Be(fi.segments,fi.children);if(0===pi.length&&$s.hasChildren())return this.expandChildren(vn,kn,$s).pipe((0,G.U)(fl=>new Be(Xe,fl)));if(0===kn.length&&0===pi.length)return(0,A.of)(new Be(Xe,{}));const Jr=Ht(z)===_e;return this.expandSegment(vn,$s,kn,pi,Jr?$e:_e,!0).pipe((0,G.U)(Ps=>new Be(Xe.concat(Ps.segments),Ps.children)))})):V(S)))}getChildConfig(O,S,z){return S.children?(0,A.of)({routes:S.children,injector:O}):S.loadChildren?void 0!==S._loadedRoutes?(0,A.of)({routes:S._loadedRoutes,injector:S._loadedInjector}):function os(M,O,S,z){const re=O.canLoad;if(void 0===re||0===re.length)return(0,A.of)(!0);const _e=re.map(Ye=>{const Xe=Dn(Ye,M);return sn(function ss(M){return M&&Li(M.canLoad)}(Xe)?Xe.canLoad(O,S):M.runInContext(()=>Xe(O,S)))});return(0,A.of)(_e).pipe(j(),As())}(O,S,z).pipe((0,Y.z)(re=>re?this.configLoader.loadChildren(O,S).pipe((0,X.b)(_e=>{S._loadedRoutes=_e.routes,S._loadedInjector=_e.injector})):function ge(M){return(0,_._)(Ri(yo,3))}())):(0,A.of)({routes:[],injector:O})}lineralizeSegments(O,S){let z=[],re=S.root;for(;;){if(z=z.concat(re.segments),0===re.numberOfChildren)return(0,A.of)(z);if(re.numberOfChildren>1||!re.children[$e])return(0,_._)(new s.vHH(4e3,yo));re=re.children[$e]}}applyRedirectCommands(O,S,z){return this.applyRedirectCreateUrlTree(S,this.urlSerializer.parse(S),O,z)}applyRedirectCreateUrlTree(O,S,z,re){const _e=this.createSegmentGroup(O,S.root,z,re);return new vt(_e,this.createQueryParams(S.queryParams,this.urlTree.queryParams),S.fragment)}createQueryParams(O,S){const z={};return Vt(O,(re,_e)=>{if("string"==typeof re&&re.startsWith(":")){const Xe=re.substring(1);z[_e]=S[Xe]}else z[_e]=re}),z}createSegmentGroup(O,S,z,re){const _e=this.createSegments(O,S.segments,z,re);let Ye={};return Vt(S.children,(Xe,kt)=>{Ye[kt]=this.createSegmentGroup(O,Xe,z,re)}),new Be(_e,Ye)}createSegments(O,S,z,re){return S.map(_e=>_e.path.startsWith(":")?this.findPosParam(O,_e,re):this.findOrReturn(_e,z))}findPosParam(O,S,z){const re=z[S.path.substring(1)];if(!re)throw new s.vHH(4001,yo);return re}findOrReturn(O,S){let z=0;for(const re of S){if(re.path===O.path)return S.splice(z),re;z++}return O}}class vr{}class er{constructor(O,S,z,re,_e,Ye,Xe,kt){this.injector=O,this.rootComponentType=S,this.config=z,this.urlTree=re,this.url=_e,this.paramsInheritanceStrategy=Ye,this.relativeLinkResolution=Xe,this.urlSerializer=kt}recognize(){const O=Cs(this.urlTree.root,[],[],this.config.filter(S=>void 0===S.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,O,$e).pipe((0,G.U)(S=>{if(null===S)return null;const z=new Ir([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},$e,this.rootComponentType,null,this.urlTree.root,-1,{}),re=new tt(z,S),_e=new is(this.url,re);return this.inheritParamsAndData(_e._root),_e}))}inheritParamsAndData(O){const S=O.value,z=sr(S,this.paramsInheritanceStrategy);S.params=Object.freeze(z.params),S.data=Object.freeze(z.data),O.children.forEach(re=>this.inheritParamsAndData(re))}processSegmentGroup(O,S,z,re){return 0===z.segments.length&&z.hasChildren()?this.processChildren(O,S,z):this.processSegment(O,S,z,z.segments,re)}processChildren(O,S,z){return(0,c.D)(Object.keys(z.children)).pipe((0,oe.b)(re=>{const _e=z.children[re],Ye=tn(S,re);return this.processSegmentGroup(O,Ye,_e,re)}),(0,k.R)((re,_e)=>re&&_e?(re.push(..._e),re):null),(0,J.o)(re=>null!==re),(0,L.d)(null),(0,$.Z)(),(0,G.U)(re=>{if(null===re)return null;const _e=Fi(re);return function Wr(M){M.sort((O,S)=>O.value.outlet===$e?-1:S.value.outlet===$e?1:O.value.outlet.localeCompare(S.value.outlet))}(_e),_e}))}processSegment(O,S,z,re,_e){return(0,c.D)(S).pipe((0,oe.b)(Ye=>this.processSegmentAgainstRoute(Ye._injector??O,Ye,z,re,_e)),(0,ee.P)(Ye=>!!Ye),(0,y.K)(Ye=>{if(se(Ye))return jo(z,re,_e)?(0,A.of)([]):(0,A.of)(null);throw Ye}))}processSegmentAgainstRoute(O,S,z,re,_e){if(S.redirectTo||!$o(S,z,re,_e))return(0,A.of)(null);let Ye;if("**"===S.path){const Xe=re.length>0?Gt(re).parameters:{},kt=Hi(z)+re.length,dn=new Ir(re,Xe,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,ls(S),Ht(S),S.component??S._loadedComponent??null,S,Si(z),kt,Wo(S),kt);Ye=(0,A.of)({snapshot:dn,consumedSegments:[],remainingSegments:[]})}else Ye=ts(z,S,re,O).pipe((0,G.U)(({matched:Xe,consumedSegments:kt,remainingSegments:dn,parameters:Pn})=>{if(!Xe)return null;const vn=Hi(z)+kt.length;return{snapshot:new Ir(kt,Pn,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,ls(S),Ht(S),S.component??S._loadedComponent??null,S,Si(z),vn,Wo(S),vn),consumedSegments:kt,remainingSegments:dn}}));return Ye.pipe((0,U.w)(Xe=>{if(null===Xe)return(0,A.of)(null);const{snapshot:kt,consumedSegments:dn,remainingSegments:Pn}=Xe;O=S._injector??O;const vn=S._loadedInjector??O,kn=function yr(M){return M.children?M.children:M.loadChildren?M._loadedRoutes:[]}(S),{segmentGroup:fi,slicedSegments:pi}=Cs(z,dn,Pn,kn.filter(Jr=>void 0===Jr.redirectTo),this.relativeLinkResolution);if(0===pi.length&&fi.hasChildren())return this.processChildren(vn,kn,fi).pipe((0,G.U)(Jr=>null===Jr?null:[new tt(kt,Jr)]));if(0===kn.length&&0===pi.length)return(0,A.of)([new tt(kt,[])]);const $s=Ht(S)===_e;return this.processSegment(vn,kn,fi,pi,$s?$e:_e).pipe((0,G.U)(Jr=>null===Jr?null:[new tt(kt,Jr)]))}))}}function Gr(M){const O=M.value.routeConfig;return O&&""===O.path&&void 0===O.redirectTo}function Fi(M){const O=[],S=new Set;for(const z of M){if(!Gr(z)){O.push(z);continue}const re=O.find(_e=>z.value.routeConfig===_e.value.routeConfig);void 0!==re?(re.children.push(...z.children),S.add(re)):O.push(z)}for(const z of S){const re=Fi(z.children);O.push(new tt(z.value,re))}return O.filter(z=>!S.has(z))}function Si(M){let O=M;for(;O._sourceSegment;)O=O._sourceSegment;return O}function Hi(M){let O=M,S=O._segmentIndexShift??0;for(;O._sourceSegment;)O=O._sourceSegment,S+=O._segmentIndexShift??0;return S-1}function ls(M){return M.data||{}}function Wo(M){return M.resolve||{}}function zo(M){return"string"==typeof M.title||null===M.title}function bs(M){return(0,U.w)(O=>{const S=M(O);return S?(0,c.D)(S).pipe((0,G.U)(()=>O)):(0,A.of)(O)})}let Qr=(()=>{class M{buildTitle(S){let z,re=S.root;for(;void 0!==re;)z=this.getResolvedTitleForRoute(re)??z,re=re.children.find(_e=>_e.outlet===$e);return z}getResolvedTitleForRoute(S){return S.data[Et]}}return M.\u0275fac=function(S){return new(S||M)},M.\u0275prov=s.Yz7({token:M,factory:function(){return(0,s.f3M)(pa)},providedIn:"root"}),M})(),pa=(()=>{class M extends Qr{constructor(S){super(),this.title=S}updateTitle(S){const z=this.buildTitle(S);void 0!==z&&this.title.setTitle(z)}}return M.\u0275fac=function(S){return new(S||M)(s.LFG($t.Dx))},M.\u0275prov=s.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"}),M})();class Ko{}class ro extends class Ga{shouldDetach(O){return!1}store(O,S){}shouldAttach(O){return!1}retrieve(O){return null}shouldReuseRoute(O,S){return O.routeConfig===S.routeConfig}}{}const ms=new s.OlP("",{providedIn:"root",factory:()=>({})}),Bs=new s.OlP("ROUTES");let Va=(()=>{class M{constructor(S,z){this.injector=S,this.compiler=z,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(S){if(this.componentLoaders.get(S))return this.componentLoaders.get(S);if(S._loadedComponent)return(0,A.of)(S._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(S);const z=sn(S.loadComponent()).pipe((0,X.b)(_e=>{this.onLoadEndListener&&this.onLoadEndListener(S),S._loadedComponent=_e}),(0,Se.x)(()=>{this.componentLoaders.delete(S)})),re=new W.c(z,()=>new P.x).pipe((0,Qe.x)());return this.componentLoaders.set(S,re),re}loadChildren(S,z){if(this.childrenLoaders.get(z))return this.childrenLoaders.get(z);if(z._loadedRoutes)return(0,A.of)({routes:z._loadedRoutes,injector:z._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(z);const _e=this.loadModuleFactoryOrRoutes(z.loadChildren).pipe((0,G.U)(Xe=>{this.onLoadEndListener&&this.onLoadEndListener(z);let kt,dn,Pn=!1;Array.isArray(Xe)?dn=Xe:(kt=Xe.create(S).injector,dn=yt(kt.get(Bs,[],s.XFs.Self|s.XFs.Optional)));return{routes:dn.map(Lt),injector:kt}}),(0,Se.x)(()=>{this.childrenLoaders.delete(z)})),Ye=new W.c(_e,()=>new P.x).pipe((0,Qe.x)());return this.childrenLoaders.set(z,Ye),Ye}loadModuleFactoryOrRoutes(S){return sn(S()).pipe((0,Y.z)(z=>z instanceof s.YKP||Array.isArray(z)?(0,A.of)(z):(0,c.D)(this.compiler.compileModuleAsync(z))))}}return M.\u0275fac=function(S){return new(S||M)(s.LFG(s.zs3),s.LFG(s.Sil))},M.\u0275prov=s.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"}),M})();class Yo{}class ks{shouldProcessUrl(O){return!0}extract(O){return O}merge(O,S){return O}}function ns(M){throw M}function ga(M,O,S){return O.parse("/")}const io={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Qo={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Xo(){const M=(0,s.f3M)(Me),O=(0,s.f3M)(Zi),S=(0,s.f3M)(B.Ye),z=(0,s.f3M)(s.zs3),re=(0,s.f3M)(s.Sil),_e=(0,s.f3M)(Bs,{optional:!0})??[],Ye=(0,s.f3M)(ms,{optional:!0})??{},Xe=(0,s.f3M)(pa),kt=(0,s.f3M)(Qr,{optional:!0}),dn=(0,s.f3M)(Yo,{optional:!0}),Pn=(0,s.f3M)(Ko,{optional:!0}),vn=new jr(null,M,O,S,z,re,yt(_e));return dn&&(vn.urlHandlingStrategy=dn),Pn&&(vn.routeReuseStrategy=Pn),vn.titleStrategy=kt??Xe,function Ha(M,O){M.errorHandler&&(O.errorHandler=M.errorHandler),M.malformedUriErrorHandler&&(O.malformedUriErrorHandler=M.malformedUriErrorHandler),M.onSameUrlNavigation&&(O.onSameUrlNavigation=M.onSameUrlNavigation),M.paramsInheritanceStrategy&&(O.paramsInheritanceStrategy=M.paramsInheritanceStrategy),M.relativeLinkResolution&&(O.relativeLinkResolution=M.relativeLinkResolution),M.urlUpdateStrategy&&(O.urlUpdateStrategy=M.urlUpdateStrategy),M.canceledNavigationResolution&&(O.canceledNavigationResolution=M.canceledNavigationResolution)}(Ye,vn),vn}let jr=(()=>{class M{constructor(S,z,re,_e,Ye,Xe,kt){this.rootComponentType=S,this.urlSerializer=z,this.rootContexts=re,this.location=_e,this.config=kt,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new P.x,this.errorHandler=ns,this.malformedUriErrorHandler=ga,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,A.of)(void 0),this.urlHandlingStrategy=new ks,this.routeReuseStrategy=new ro,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=Ye.get(Va),this.configLoader.onLoadEndListener=kn=>this.triggerEvent(new ni(kn)),this.configLoader.onLoadStartListener=kn=>this.triggerEvent(new xr(kn)),this.ngModule=Ye.get(s.h0i),this.console=Ye.get(s.c2e);const vn=Ye.get(s.R0b);this.isNgZoneEnabled=vn instanceof s.R0b&&s.R0b.isInAngularZone(),this.resetConfig(kt),this.currentUrlTree=function Pt(){return new vt(new Be([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=hn(this.currentUrlTree,this.rootComponentType),this.transitions=new w.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(S){const z=this.events;return S.pipe((0,F.h)(re=>0!==re.id),(0,G.U)(re=>({...re,extractedUrl:this.urlHandlingStrategy.extract(re.rawUrl)})),(0,U.w)(re=>{let _e=!1,Ye=!1;return(0,A.of)(re).pipe((0,X.b)(Xe=>{this.currentNavigation={id:Xe.id,initialUrl:Xe.rawUrl,extractedUrl:Xe.extractedUrl,trigger:Xe.source,extras:Xe.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,U.w)(Xe=>{const kt=this.browserUrlTree.toString(),dn=!this.navigated||Xe.extractedUrl.toString()!==kt||kt!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||dn)&&this.urlHandlingStrategy.shouldProcessUrl(Xe.rawUrl))return $a(Xe.source)&&(this.browserUrlTree=Xe.extractedUrl),(0,A.of)(Xe).pipe((0,U.w)(vn=>{const kn=this.transitions.getValue();return z.next(new lr(vn.id,this.serializeUrl(vn.extractedUrl),vn.source,vn.restoredState)),kn!==this.transitions.getValue()?T.E:Promise.resolve(vn)}),function Ut(M,O,S,z){return(0,U.w)(re=>function nt(M,O,S,z,re){return new Nt(M,O,S,z,re).apply()}(M,O,S,re.extractedUrl,z).pipe((0,G.U)(_e=>({...re,urlAfterRedirects:_e}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,X.b)(vn=>{this.currentNavigation={...this.currentNavigation,finalUrl:vn.urlAfterRedirects},re.urlAfterRedirects=vn.urlAfterRedirects}),function Ua(M,O,S,z,re,_e){return(0,Y.z)(Ye=>function Dr(M,O,S,z,re,_e,Ye="emptyOnly",Xe="legacy"){return new er(M,O,S,z,re,Ye,Xe,_e).recognize().pipe((0,U.w)(kt=>null===kt?function ar(M){return new v.y(O=>O.error(M))}(new vr):(0,A.of)(kt)))}(M,O,S,Ye.urlAfterRedirects,z.serialize(Ye.urlAfterRedirects),z,re,_e).pipe((0,G.U)(Xe=>({...Ye,targetSnapshot:Xe}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,X.b)(vn=>{if(re.targetSnapshot=vn.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!vn.extras.skipLocationChange){const fi=this.urlHandlingStrategy.merge(vn.urlAfterRedirects,vn.rawUrl);this.setBrowserUrl(fi,vn)}this.browserUrlTree=vn.urlAfterRedirects}const kn=new ur(vn.id,this.serializeUrl(vn.extractedUrl),this.serializeUrl(vn.urlAfterRedirects),vn.targetSnapshot);z.next(kn)}));if(dn&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:kn,extractedUrl:fi,source:pi,restoredState:$s,extras:Jr}=Xe,ra=new lr(kn,this.serializeUrl(fi),pi,$s);z.next(ra);const Ps=hn(fi,this.rootComponentType).snapshot;return re={...Xe,targetSnapshot:Ps,urlAfterRedirects:fi,extras:{...Jr,skipLocationChange:!1,replaceUrl:!1}},(0,A.of)(re)}return this.rawUrlTree=Xe.rawUrl,Xe.resolve(null),T.E}),(0,X.b)(Xe=>{const kt=new bn(Xe.id,this.serializeUrl(Xe.extractedUrl),this.serializeUrl(Xe.urlAfterRedirects),Xe.targetSnapshot);this.triggerEvent(kt)}),(0,G.U)(Xe=>re={...Xe,guards:gr(Xe.targetSnapshot,Xe.currentSnapshot,this.rootContexts)}),function Ee(M,O){return(0,Y.z)(S=>{const{targetSnapshot:z,currentSnapshot:re,guards:{canActivateChecks:_e,canDeactivateChecks:Ye}}=S;return 0===Ye.length&&0===_e.length?(0,A.of)({...S,guardsResult:!0}):function xt(M,O,S,z){return(0,c.D)(M).pipe((0,Y.z)(re=>function Ci(M,O,S,z,re){const _e=O&&O.routeConfig?O.routeConfig.canDeactivate:null;if(!_e||0===_e.length)return(0,A.of)(!0);const Ye=_e.map(Xe=>{const kt=ht(O)??re,dn=Dn(Xe,kt);return sn(function Wn(M){return M&&Li(M.canDeactivate)}(dn)?dn.canDeactivate(M,O,S,z):kt.runInContext(()=>dn(M,O,S,z))).pipe((0,ee.P)())});return(0,A.of)(Ye).pipe(j())}(re.component,re.route,S,O,z)),(0,ee.P)(re=>!0!==re,!0))}(Ye,z,re,M).pipe((0,Y.z)(Xe=>Xe&&function Ur(M){return"boolean"==typeof M}(Xe)?function _n(M,O,S,z){return(0,c.D)(O).pipe((0,oe.b)(re=>(0,I.z)(function Ii(M,O){return null!==M&&O&&O(new ri(M)),(0,A.of)(!0)}(re.route.parent,z),function Yr(M,O){return null!==M&&O&&O(new Fr(M)),(0,A.of)(!0)}(re.route,z),function Rr(M,O,S){const z=O[O.length-1],_e=O.slice(0,O.length-1).reverse().map(Ye=>function Pr(M){const O=M.routeConfig?M.routeConfig.canActivateChild:null;return O&&0!==O.length?{node:M,guards:O}:null}(Ye)).filter(Ye=>null!==Ye).map(Ye=>(0,b.P)(()=>{const Xe=Ye.guards.map(kt=>{const dn=ht(Ye.node)??S,Pn=Dn(kt,dn);return sn(function Kt(M){return M&&Li(M.canActivateChild)}(Pn)?Pn.canActivateChild(z,M):dn.runInContext(()=>Pn(z,M))).pipe((0,ee.P)())});return(0,A.of)(Xe).pipe(j())}));return(0,A.of)(_e).pipe(j())}(M,re.path,S),function Ni(M,O,S){const z=O.routeConfig?O.routeConfig.canActivate:null;if(!z||0===z.length)return(0,A.of)(!0);const re=z.map(_e=>(0,b.P)(()=>{const Ye=ht(O)??S,Xe=Dn(_e,Ye);return sn(function Go(M){return M&&Li(M.canActivate)}(Xe)?Xe.canActivate(O,M):Ye.runInContext(()=>Xe(O,M))).pipe((0,ee.P)())}));return(0,A.of)(re).pipe(j())}(M,re.route,S))),(0,ee.P)(re=>!0!==re,!0))}(z,_e,M,O):(0,A.of)(Xe)),(0,G.U)(Xe=>({...S,guardsResult:Xe})))})}(this.ngModule.injector,Xe=>this.triggerEvent(Xe)),(0,X.b)(Xe=>{if(re.guardsResult=Xe.guardsResult,jn(Xe.guardsResult))throw Vi(0,Xe.guardsResult);const kt=new ir(Xe.id,this.serializeUrl(Xe.extractedUrl),this.serializeUrl(Xe.urlAfterRedirects),Xe.targetSnapshot,!!Xe.guardsResult);this.triggerEvent(kt)}),(0,F.h)(Xe=>!!Xe.guardsResult||(this.restoreHistory(Xe),this.cancelNavigationTransition(Xe,"",3),!1)),bs(Xe=>{if(Xe.guards.canActivateChecks.length)return(0,A.of)(Xe).pipe((0,X.b)(kt=>{const dn=new li(kt.id,this.serializeUrl(kt.extractedUrl),this.serializeUrl(kt.urlAfterRedirects),kt.targetSnapshot);this.triggerEvent(dn)}),(0,U.w)(kt=>{let dn=!1;return(0,A.of)(kt).pipe(function no(M,O){return(0,Y.z)(S=>{const{targetSnapshot:z,guards:{canActivateChecks:re}}=S;if(!re.length)return(0,A.of)(S);let _e=0;return(0,c.D)(re).pipe((0,oe.b)(Ye=>function Do(M,O,S,z){const re=M.routeConfig,_e=M._resolve;return void 0!==re?.title&&!zo(re)&&(_e[Et]=re.title),function al(M,O,S,z){const re=function ll(M){return[...Object.keys(M),...Object.getOwnPropertySymbols(M)]}(M);if(0===re.length)return(0,A.of)({});const _e={};return(0,c.D)(re).pipe((0,Y.z)(Ye=>function qc(M,O,S,z){const re=ht(O)??z,_e=Dn(M,re);return sn(_e.resolve?_e.resolve(O,S):re.runInContext(()=>_e(O,S)))}(M[Ye],O,S,z).pipe((0,ee.P)(),(0,X.b)(Xe=>{_e[Ye]=Xe}))),(0,le.h)(1),(0,ce.h)(_e),(0,y.K)(Ye=>se(Ye)?T.E:(0,_._)(Ye)))}(_e,M,O,z).pipe((0,G.U)(Ye=>(M._resolvedData=Ye,M.data=sr(M,S).resolve,re&&zo(re)&&(M.data[Et]=re.title),null)))}(Ye.route,z,M,O)),(0,X.b)(()=>_e++),(0,le.h)(1),(0,Y.z)(Ye=>_e===re.length?(0,A.of)(S):T.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,X.b)({next:()=>dn=!0,complete:()=>{dn||(this.restoreHistory(kt),this.cancelNavigationTransition(kt,"",2))}}))}),(0,X.b)(kt=>{const dn=new Sr(kt.id,this.serializeUrl(kt.extractedUrl),this.serializeUrl(kt.urlAfterRedirects),kt.targetSnapshot);this.triggerEvent(dn)}))}),bs(Xe=>{const kt=dn=>{const Pn=[];dn.routeConfig?.loadComponent&&!dn.routeConfig._loadedComponent&&Pn.push(this.configLoader.loadComponent(dn.routeConfig).pipe((0,X.b)(vn=>{dn.component=vn}),(0,G.U)(()=>{})));for(const vn of dn.children)Pn.push(...kt(vn));return Pn};return(0,te.a)(kt(Xe.targetSnapshot.root)).pipe((0,L.d)(),(0,Z.q)(1))}),bs(()=>this.afterPreactivation()),(0,G.U)(Xe=>{const kt=function eo(M,O,S){const z=Di(M,O._root,S?S._root:void 0);return new Qt(z,O)}(this.routeReuseStrategy,Xe.targetSnapshot,Xe.currentRouterState);return re={...Xe,targetRouterState:kt}}),(0,X.b)(Xe=>{this.currentUrlTree=Xe.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(Xe.urlAfterRedirects,Xe.rawUrl),this.routerState=Xe.targetRouterState,"deferred"===this.urlUpdateStrategy&&(Xe.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,Xe),this.browserUrlTree=Xe.urlAfterRedirects)}),((M,O,S)=>(0,G.U)(z=>(new $n(O,z.targetRouterState,z.currentRouterState,S).activate(M),z)))(this.rootContexts,this.routeReuseStrategy,Xe=>this.triggerEvent(Xe)),(0,X.b)({next(){_e=!0},complete(){_e=!0}}),(0,Se.x)(()=>{_e||Ye||this.cancelNavigationTransition(re,"",1),this.currentNavigation?.id===re.id&&(this.currentNavigation=null)}),(0,y.K)(Xe=>{if(Ye=!0,Xi(Xe)){Qi(Xe)||(this.navigated=!0,this.restoreHistory(re,!0));const kt=new di(re.id,this.serializeUrl(re.extractedUrl),Xe.message,Xe.cancellationCode);if(z.next(kt),Qi(Xe)){const dn=this.urlHandlingStrategy.merge(Xe.url,this.rawUrlTree),Pn={skipLocationChange:re.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||$a(re.source)};this.scheduleNavigation(dn,"imperative",null,Pn,{resolve:re.resolve,reject:re.reject,promise:re.promise})}else re.resolve(!1)}else{this.restoreHistory(re,!0);const kt=new Kr(re.id,this.serializeUrl(re.extractedUrl),Xe,re.targetSnapshot??void 0);z.next(kt);try{re.resolve(this.errorHandler(Xe))}catch(dn){re.reject(dn)}}return T.E}))}))}resetRootComponentType(S){this.rootComponentType=S,this.routerState.root.component=this.rootComponentType}setTransition(S){this.transitions.next({...this.transitions.value,...S})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(S=>{const z="popstate"===S.type?"popstate":"hashchange";"popstate"===z&&setTimeout(()=>{const re={replaceUrl:!0},_e=S.state?.navigationId?S.state:null;if(_e){const Xe={..._e};delete Xe.navigationId,delete Xe.\u0275routerPageId,0!==Object.keys(Xe).length&&(re.state=Xe)}const Ye=this.parseUrl(S.url);this.scheduleNavigation(Ye,z,_e,re)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(S){this.events.next(S)}resetConfig(S){this.config=S.map(Lt),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(S,z={}){const{relativeTo:re,queryParams:_e,fragment:Ye,queryParamsHandling:Xe,preserveFragment:kt}=z,dn=re||this.routerState.root,Pn=kt?this.currentUrlTree.fragment:Ye;let vn=null;switch(Xe){case"merge":vn={...this.currentUrlTree.queryParams,..._e};break;case"preserve":vn=this.currentUrlTree.queryParams;break;default:vn=_e||null}return null!==vn&&(vn=this.removeEmptyProps(vn)),gt(dn,this.currentUrlTree,S,vn,Pn??null)}navigateByUrl(S,z={skipLocationChange:!1}){const re=jn(S)?S:this.parseUrl(S),_e=this.urlHandlingStrategy.merge(re,this.rawUrlTree);return this.scheduleNavigation(_e,"imperative",null,z)}navigate(S,z={skipLocationChange:!1}){return function ul(M){for(let O=0;O<M.length;O++){if(null==M[O])throw new s.vHH(4008,false)}}(S),this.navigateByUrl(this.createUrlTree(S,z),z)}serializeUrl(S){return this.urlSerializer.serialize(S)}parseUrl(S){let z;try{z=this.urlSerializer.parse(S)}catch(re){z=this.malformedUriErrorHandler(re,this.urlSerializer,S)}return z}isActive(S,z){let re;if(re=!0===z?{...io}:!1===z?{...Qo}:z,jn(S))return _t(this.currentUrlTree,S,re);const _e=this.parseUrl(S);return _t(this.currentUrlTree,_e,re)}removeEmptyProps(S){return Object.keys(S).reduce((z,re)=>{const _e=S[re];return null!=_e&&(z[re]=_e),z},{})}processNavigations(){this.navigations.subscribe(S=>{this.navigated=!0,this.lastSuccessfulId=S.id,this.currentPageId=S.targetPageId,this.events.next(new cr(S.id,this.serializeUrl(S.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),S.resolve(!0)},S=>{this.console.warn(`Unhandled Navigation Error: ${S}`)})}scheduleNavigation(S,z,re,_e,Ye){if(this.disposed)return Promise.resolve(!1);let Xe,kt,dn;Ye?(Xe=Ye.resolve,kt=Ye.reject,dn=Ye.promise):dn=new Promise((kn,fi)=>{Xe=kn,kt=fi});const Pn=++this.navigationId;let vn;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(re=this.location.getState()),vn=re&&re.\u0275routerPageId?re.\u0275routerPageId:_e.replaceUrl||_e.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):vn=0,this.setTransition({id:Pn,targetPageId:vn,source:z,restoredState:re,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:S,extras:_e,resolve:Xe,reject:kt,promise:dn,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),dn.catch(kn=>Promise.reject(kn))}setBrowserUrl(S,z){const re=this.urlSerializer.serialize(S),_e={...z.extras.state,...this.generateNgRouterState(z.id,z.targetPageId)};this.location.isCurrentPathEqualTo(re)||z.extras.replaceUrl?this.location.replaceState(re,"",_e):this.location.go(re,"",_e)}restoreHistory(S,z=!1){if("computed"===this.canceledNavigationResolution){const re=this.currentPageId-S.targetPageId;"popstate"!==S.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===re?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===re&&(this.resetState(S),this.browserUrlTree=S.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(re)}else"replace"===this.canceledNavigationResolution&&(z&&this.resetState(S),this.resetUrlToCurrentUrlTree())}resetState(S){this.routerState=S.currentRouterState,this.currentUrlTree=S.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,S.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(S,z,re){const _e=new di(S.id,this.serializeUrl(S.extractedUrl),z,re);this.triggerEvent(_e),S.resolve(!1)}generateNgRouterState(S,z){return"computed"===this.canceledNavigationResolution?{navigationId:S,\u0275routerPageId:z}:{navigationId:S}}}return M.\u0275fac=function(S){s.$Z()},M.\u0275prov=s.Yz7({token:M,factory:function(){return Xo()},providedIn:"root"}),M})();function $a(M){return"imperative"!==M}let Zo=(()=>{class M{constructor(S,z,re,_e,Ye){this.router=S,this.route=z,this.tabIndexAttribute=re,this.renderer=_e,this.el=Ye,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.commands=null,this.onChanges=new P.x,this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(S){this._preserveFragment=(0,s.D6c)(S)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(S){this._skipLocationChange=(0,s.D6c)(S)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(S){this._replaceUrl=(0,s.D6c)(S)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(S){if(null!=this.tabIndexAttribute)return;const z=this.renderer,re=this.el.nativeElement;null!==S?z.setAttribute(re,"tabindex",S):z.removeAttribute(re,"tabindex")}ngOnChanges(S){this.onChanges.next(this)}set routerLink(S){null!=S?(this.commands=Array.isArray(S)?S:[S],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 M.\u0275fac=function(S){return new(S||M)(s.Y36(jr),s.Y36(dr),s.$8M("tabindex"),s.Y36(s.Qsj),s.Y36(s.SBq))},M.\u0275dir=s.lG2({type:M,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(S,z){1&S&&s.NdJ("click",function(){return z.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[s.TTD]}),M})(),Jo=(()=>{class M{constructor(S,z,re){this.router=S,this.route=z,this.locationStrategy=re,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.commands=null,this.href=null,this.onChanges=new P.x,this.subscription=S.events.subscribe(_e=>{_e instanceof cr&&this.updateTargetUrlAndHref()})}set preserveFragment(S){this._preserveFragment=(0,s.D6c)(S)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(S){this._skipLocationChange=(0,s.D6c)(S)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(S){this._replaceUrl=(0,s.D6c)(S)}get replaceUrl(){return this._replaceUrl}set routerLink(S){this.commands=null!=S?Array.isArray(S)?S:[S]:null}ngOnChanges(S){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(S,z,re,_e,Ye){return!!(0!==S||z||re||_e||Ye||"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 M.\u0275fac=function(S){return new(S||M)(s.Y36(jr),s.Y36(dr),s.Y36(B.S$))},M.\u0275dir=s.lG2({type:M,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(S,z){1&S&&s.NdJ("click",function(_e){return z.onClick(_e.button,_e.ctrlKey,_e.shiftKey,_e.altKey,_e.metaKey)}),2&S&&s.uIk("target",z.target)("href",z.href,s.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:[s.TTD]}),M})(),qo=(()=>{class M{constructor(S,z,re,_e,Ye,Xe){this.router=S,this.element=z,this.renderer=re,this.cdr=_e,this.link=Ye,this.linkWithHref=Xe,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new s.vpe,this.routerEventsSubscription=S.events.subscribe(kt=>{kt instanceof cr&&this.update()})}ngAfterContentInit(){(0,A.of)(this.links.changes,this.linksWithHrefs.changes,(0,A.of)(null)).pipe((0,ct.J)()).subscribe(S=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const S=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(z=>!!z).map(z=>z.onChanges);this.linkInputChangesSubscription=(0,c.D)(S).pipe((0,ct.J)()).subscribe(z=>{this.isActive!==this.isLinkActive(this.router)(z)&&this.update()})}set routerLinkActive(S){const z=Array.isArray(S)?S:S.split(" ");this.classes=z.filter(re=>!!re)}ngOnChanges(S){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const S=this.hasActiveLinks();this.isActive!==S&&(this.isActive=S,this.cdr.markForCheck(),this.classes.forEach(z=>{S?this.renderer.addClass(this.element.nativeElement,z):this.renderer.removeClass(this.element.nativeElement,z)}),S&&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(S))})}isLinkActive(S){const z=function Kl(M){return!!M.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return re=>!!re.urlTree&&S.isActive(re.urlTree,z)}hasActiveLinks(){const S=this.isLinkActive(this.router);return this.link&&S(this.link)||this.linkWithHref&&S(this.linkWithHref)||this.links.some(S)||this.linksWithHrefs.some(S)}}return M.\u0275fac=function(S){return new(S||M)(s.Y36(jr),s.Y36(s.SBq),s.Y36(s.Qsj),s.Y36(s.sBO),s.Y36(Zo,8),s.Y36(Jo,8))},M.\u0275dir=s.lG2({type:M,selectors:[["","routerLinkActive",""]],contentQueries:function(S,z,re){if(1&S&&(s.Suo(re,Zo,5),s.Suo(re,Jo,5)),2&S){let _e;s.iGM(_e=s.CRH())&&(z.links=_e),s.iGM(_e=s.CRH())&&(z.linksWithHrefs=_e)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[s.TTD]}),M})();class so{}let So=(()=>{class M{constructor(S,z,re,_e,Ye){this.router=S,this.injector=re,this.preloadingStrategy=_e,this.loader=Ye}setUpPreloading(){this.subscription=this.router.events.pipe((0,F.h)(S=>S instanceof cr),(0,oe.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(S,z){const re=[];for(const _e of z){_e.providers&&!_e._injector&&(_e._injector=(0,s.MMx)(_e.providers,S,`Route: ${_e.path}`));const Ye=_e._injector??S,Xe=_e._loadedInjector??Ye;_e.loadChildren&&!_e._loadedRoutes&&void 0===_e.canLoad||_e.loadComponent&&!_e._loadedComponent?re.push(this.preloadConfig(Ye,_e)):(_e.children||_e._loadedRoutes)&&re.push(this.processRoutes(Xe,_e.children??_e._loadedRoutes))}return(0,c.D)(re).pipe((0,ct.J)())}preloadConfig(S,z){return this.preloadingStrategy.preload(z,()=>{let re;re=z.loadChildren&&void 0===z.canLoad?this.loader.loadChildren(S,z):(0,A.of)(null);const _e=re.pipe((0,Y.z)(Ye=>null===Ye?(0,A.of)(void 0):(z._loadedRoutes=Ye.routes,z._loadedInjector=Ye.injector,this.processRoutes(Ye.injector??S,Ye.routes))));if(z.loadComponent&&!z._loadedComponent){const Ye=this.loader.loadComponent(z);return(0,c.D)([_e,Ye]).pipe((0,ct.J)())}return _e})}}return M.\u0275fac=function(S){return new(S||M)(s.LFG(jr),s.LFG(s.Sil),s.LFG(s.lqb),s.LFG(so),s.LFG(Va))},M.\u0275prov=s.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"}),M})();const oo=new s.OlP("");let Us=(()=>{class M{constructor(S,z,re={}){this.router=S,this.viewportScroller=z,this.options=re,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},re.scrollPositionRestoration=re.scrollPositionRestoration||"disabled",re.anchorScrolling=re.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(S=>{S instanceof lr?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=S.navigationTrigger,this.restoredId=S.restoredState?S.restoredState.navigationId:0):S instanceof cr&&(this.lastId=S.id,this.scheduleScrollEvent(S,this.router.parseUrl(S.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(S=>{S instanceof _i&&(S.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(S.position):S.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(S.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(S,z){this.router.triggerEvent(new _i(S,"popstate"===this.lastSource?this.store[this.restoredId]:null,z))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return M.\u0275fac=function(S){s.$Z()},M.\u0275prov=s.Yz7({token:M,factory:M.\u0275fac}),M})();function Is(M,O){return{\u0275kind:M,\u0275providers:O}}function Gs(M){return[{provide:Bs,multi:!0,useValue:M}]}function Vs(){const M=(0,s.f3M)(s.zs3);return O=>{const S=M.get(s.z2F);if(O!==S.components[0])return;const z=M.get(jr),re=M.get(_s);1===M.get(rs)&&z.initialNavigation(),M.get(Os,null,s.XFs.Optional)?.setUpPreloading(),M.get(oo,null,s.XFs.Optional)?.init(),z.resetRootComponentType(S.componentTypes[0]),re.next(),re.complete()}}const _s=new s.OlP("",{factory:()=>new P.x}),rs=new s.OlP("",{providedIn:"root",factory:()=>1});const Os=new s.OlP("");function hl(M){return Is(0,[{provide:Os,useExisting:So},{provide:so,useExisting:M}])}const Sn=new s.OlP("ROUTER_FORROOT_GUARD"),ja=[B.Ye,{provide:Me,useClass:qe},{provide:jr,useFactory:Xo},Zi,{provide:dr,useFactory:function ta(M){return M.routerState.root},deps:[jr]},Va];function Ql(){return new s.PXZ("Router",jr)}let va=(()=>{class M{constructor(S){}static forRoot(S,z){return{ngModule:M,providers:[ja,[],Gs(S),{provide:Sn,useFactory:Ea,deps:[[jr,new s.FiY,new s.tp0]]},{provide:ms,useValue:z||{}},z?.useHash?{provide:B.S$,useClass:B.Do}:{provide:B.S$,useClass:B.b0},{provide:oo,useFactory:()=>{const M=(0,s.f3M)(jr),O=(0,s.f3M)(B.EM),S=(0,s.f3M)(ms);return S.scrollOffset&&O.setOffset(S.scrollOffset),new Us(M,O,S)}},z?.preloadingStrategy?hl(z.preloadingStrategy).\u0275providers:[],{provide:s.PXZ,multi:!0,useFactory:Ql},z?.initialNavigation?ii(z):[],[{provide:$i,useFactory:Vs},{provide:s.tb,multi:!0,useExisting:$i}]]}}static forChild(S){return{ngModule:M,providers:[Gs(S)]}}}return M.\u0275fac=function(S){return new(S||M)(s.LFG(Sn,8))},M.\u0275mod=s.oAB({type:M}),M.\u0275inj=s.cJS({imports:[Ai]}),M})();function Ea(M){return"guarded"}function ii(M){return["disabled"===M.initialNavigation?Is(3,[{provide:s.ip1,multi:!0,useFactory:()=>{const O=(0,s.f3M)(jr);return()=>{O.setUpLocationChangeListener()}}},{provide:rs,useValue:2}]).\u0275providers:[],"enabledBlocking"===M.initialNavigation?Is(2,[{provide:rs,useValue:0},{provide:s.ip1,multi:!0,deps:[s.zs3],useFactory:O=>{const S=O.get(B.V_,Promise.resolve());let z=!1;return()=>S.then(()=>new Promise(_e=>{const Ye=O.get(jr),Xe=O.get(_s);(function re(_e){O.get(jr).events.pipe((0,F.h)(Xe=>Xe instanceof cr||Xe instanceof di||Xe instanceof Kr),(0,G.U)(Xe=>Xe instanceof cr||Xe instanceof di&&(0===Xe.code||1===Xe.code)&&null),(0,F.h)(Xe=>null!==Xe),(0,Z.q)(1)).subscribe(()=>{_e()})})(()=>{_e(!0),z=!0}),Ye.afterPreactivation=()=>(_e(!0),z||Xe.closed?(0,A.of)(void 0):Xe),Ye.initialNavigation()}))}}]).\u0275providers:[]]}const $i=new s.OlP("")},82636:(ut,fe,d)=>{"use strict";d.d(fe,{dL:()=>ue,sS:()=>ee});var s=d(94650),c=d(36895),A=d(77579),w=d(39646),N=d(5963),te=d(39841),I=d(69751),b=d(54004),p=d(95698),_=d(18505),v=d(68675),T=d(63900),W=d(34782);class U{constructor(X={}){this.config=X,this.state={action:null,value:0,initialValue:0},this.requests=null,this.disabled=!1,this.stream$=new A.x,this._value$=null,this.timer$=y=>{let k=(0,w.of)(y);switch(y.action){case"start":case"increment":case"set":"start"===y.action&&0===this.config.latencyThreshold&&0===y.value&&(y.value=y.initialValue),this.requests>0&&(k=(0,N.H)(this.config.latencyThreshold,250).pipe((0,b.U)($=>({...y,value:0===$?this.state.value||y.initialValue:this._increment()}))));break;case"complete":case"stop":k=0===y.value?(0,w.of)({...y}):(0,N.H)(0,500).pipe((0,p.q)(2),(0,b.U)($=>({value:0===$?100:0})))}return k.pipe((0,b.U)($=>({...$,action:"set"})),(0,_.b)($=>this.next($,!1)))},this.config={latencyThreshold:0,...X}}get value$(){return this._value$?this._value$:this._value$=this.stream$.pipe((0,v.O)(this.state),(0,T.w)(X=>this.timer$(X)),(0,W.d)(),(0,b.U)(X=>X.value))}start(X=2){this.disabled||this.next({action:"start",initialValue:X})}stop(){this.next({action:"stop"})}complete(){this.next({action:"complete"})}disable(){this.disabled=!0}set(X){this.next({action:"set",value:X})}increment(X=0){this.next({action:"increment",value:X})}next(X,y=!0){switch(X.action){case"start":this.requests=(this.requests||0)+1;break;case"complete":if(this.requests=(this.requests||1)-1,this.requests>0)return;break;case"stop":this.requests=0;break;case"increment":X.value=this._increment(X.value)}this.state={...this.state,action:null,...X},y&&this.stream$.next(this.state)}_increment(X=0){const y=this.state.value;return y>=99&&(X=0),0===X&&(X=y>=0&&y<25?3*Math.random()+3:y>=25&&y<65?3*Math.random():y>=65&&y<90?2*Math.random():y>=90&&y<99?.5:0),X+y}}const Z=new s.OlP("LOADING_BAR_CONFIG");let ue=(()=>{class oe{constructor(y,k={},$){this.platformId=y,this.config=k,this.zone=$,this.refs={},this.streams$=new A.x,this.value$=this.streams$.pipe((0,v.O)(null),(0,T.w)(()=>(0,te.a)(Object.keys(this.refs).map(J=>this.refs[J].value$))),function F(oe){return oe?X=>new I.y(y=>X.subscribe(k=>oe.run(()=>y.next(k)),k=>oe.run(()=>y.error(k)),()=>oe.run(()=>y.complete()))):X=>X}(this.zone),(0,b.U)(J=>Math.max(0,...J)))}get progress$(){return this.value$}start(y=2){this.useRef().start(y)}set(y){this.useRef().set(y)}increment(y){this.useRef().increment(y)}complete(){this.useRef().complete()}stop(){this.useRef().stop()}useRef(y="default"){return this.refs[y]||(this.refs[y]=new U(this.config),this.streams$.next(),(0,c.NF)(this.platformId)||this.refs[y].disable()),this.refs[y]}}return oe.\u0275fac=function(y){return new(y||oe)(s.LFG(s.Lbi),s.LFG(Z,8),s.LFG(s.R0b,8))},oe.\u0275prov=s.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})(),ee=(()=>{class oe{}return oe.\u0275fac=function(y){return new(y||oe)},oe.\u0275mod=s.oAB({type:oe}),oe.\u0275inj=s.cJS({imports:[[c.ez]]}),oe})()},93795:(ut,fe,d)=>{"use strict";d.d(fe,{x0:()=>oe});var s=d(94650),c=d(36895);const A={UKNOWN:"Unknown"},w={CHROME:"Chrome",FIREFOX:"Firefox",SAFARI:"Safari",OPERA:"Opera",IE:"IE",MS_EDGE:"MS-Edge",MS_EDGE_CHROMIUM:"MS-Edge-Chromium",FB_MESSANGER:"FB-Messanger",SAMSUNG:"Samsung",UCBROWSER:"UC-Browser",UNKNOWN:A.UKNOWN},N={HTC:/HTC|HTC.*(Sensation|Evo|Vision|Explorer|6800|8100|8900|A7272|S510e|C110e|Legend|Desire|T8282)|APX515CKT|Qtek9090|APA9292KT|HD_mini|Sensation.*Z710e|PG86100|Z715e|Desire.*(A8181|HD)|ADR6200|ADR6400L|ADR6425|001HT|Inspire 4G|Android.*\bEVO\b|T-Mobile G1|Z520m|Android [0-9.]+; Pixel/,NEXUS_PHONE:/Nexus One|Nexus S|Galaxy.*Nexus|Android.*Nexus.*Mobile|Nexus 4|Nexus 5|Nexus 6/,DELL:/Dell[;]? (Streak|Aero|Venue|Venue Pro|Flash|Smoke|Mini 3iX)|XCD28|XCD35|\b001DL\b|\b101DL\b|\bGS01\b/,MOTOROLA:new RegExp("Motorola|DROIDX|DROID BIONIC|\\bDroid\\b.*Build|Android.*Xoom|HRI39|MOT-|A1260|A1680|A555|A853|\n      A855|A953|A955|A956|Motorola.*ELECTRIFY|Motorola.*i1|i867|i940|MB200|MB300|MB501|MB502|MB508|MB511|\n      MB520|MB525|MB526|MB611|MB612|MB632|MB810|MB855|MB860|MB861|MB865|MB870|ME501|ME502|ME511|ME525|ME600|\n      ME632|ME722|ME811|ME860|ME863|ME865|MT620|MT710|MT716|MT720|MT810|MT870|MT917|Motorola.*TITANIUM|WX435|\n      WX445|XT300|XT301|XT311|XT316|XT317|XT319|XT320|XT390|XT502|XT530|XT531|XT532|XT535|XT603|XT610|XT611|\n      XT615|XT681|XT701|XT702|XT711|XT720|XT800|XT806|XT860|XT862|XT875|XT882|XT883|XT894|XT901|XT907|XT909|\n      XT910|XT912|XT928|XT926|XT915|XT919|XT925|XT1021|\\bMoto E\\b|XT1068|XT1092|XT1052"),SAMSUNG:new RegExp("\\bSamsung\\b|SM-G950F|SM-G955F|SM-G9250|GT-19300|SGH-I337|BGT-S5230|GT-B2100|GT-B2700|GT-B2710|\n      GT-B3210|GT-B3310|GT-B3410|GT-B3730|GT-B3740|GT-B5510|GT-B5512|GT-B5722|GT-B6520|GT-B7300|GT-B7320|\n      GT-B7330|GT-B7350|GT-B7510|GT-B7722|GT-B7800|GT-C3010|GT-C3011|GT-C3060|GT-C3200|GT-C3212|GT-C3212I|\n      GT-C3262|GT-C3222|GT-C3300|GT-C3300K|GT-C3303|GT-C3303K|GT-C3310|GT-C3322|GT-C3330|GT-C3350|GT-C3500|\n      GT-C3510|GT-C3530|GT-C3630|GT-C3780|GT-C5010|GT-C5212|GT-C6620|GT-C6625|GT-C6712|GT-E1050|GT-E1070|\n      GT-E1075|GT-E1080|GT-E1081|GT-E1085|GT-E1087|GT-E1100|GT-E1107|GT-E1110|GT-E1120|GT-E1125|GT-E1130|\n      GT-E1160|GT-E1170|GT-E1175|GT-E1180|GT-E1182|GT-E1200|GT-E1210|GT-E1225|GT-E1230|GT-E1390|GT-E2100|\n      GT-E2120|GT-E2121|GT-E2152|GT-E2220|GT-E2222|GT-E2230|GT-E2232|GT-E2250|GT-E2370|GT-E2550|GT-E2652|\n      GT-E3210|GT-E3213|GT-I5500|GT-I5503|GT-I5700|GT-I5800|GT-I5801|GT-I6410|GT-I6420|GT-I7110|GT-I7410|\n      GT-I7500|GT-I8000|GT-I8150|GT-I8160|GT-I8190|GT-I8320|GT-I8330|GT-I8350|GT-I8530|GT-I8700|GT-I8703|\n      GT-I8910|GT-I9000|GT-I9001|GT-I9003|GT-I9010|GT-I9020|GT-I9023|GT-I9070|GT-I9082|GT-I9100|GT-I9103|\n      GT-I9220|GT-I9250|GT-I9300|GT-I9305|GT-I9500|GT-I9505|GT-M3510|GT-M5650|GT-M7500|GT-M7600|GT-M7603|\n      GT-M8800|GT-M8910|GT-N7000|GT-S3110|GT-S3310|GT-S3350|GT-S3353|GT-S3370|GT-S3650|GT-S3653|GT-S3770|\n      GT-S3850|GT-S5210|GT-S5220|GT-S5229|GT-S5230|GT-S5233|GT-S5250|GT-S5253|GT-S5260|GT-S5263|GT-S5270|\n      GT-S5300|GT-S5330|GT-S5350|GT-S5360|GT-S5363|GT-S5369|GT-S5380|GT-S5380D|GT-S5560|GT-S5570|GT-S5600|\n      GT-S5603|GT-S5610|GT-S5620|GT-S5660|GT-S5670|GT-S5690|GT-S5750|GT-S5780|GT-S5830|GT-S5839|GT-S6102|\n      GT-S6500|GT-S7070|GT-S7200|GT-S7220|GT-S7230|GT-S7233|GT-S7250|GT-S7500|GT-S7530|GT-S7550|GT-S7562|\n      GT-S7710|GT-S8000|GT-S8003|GT-S8500|GT-S8530|GT-S8600|SCH-A310|SCH-A530|SCH-A570|SCH-A610|SCH-A630|\n      SCH-A650|SCH-A790|SCH-A795|SCH-A850|SCH-A870|SCH-A890|SCH-A930|SCH-A950|SCH-A970|SCH-A990|SCH-I100|\n      SCH-I110|SCH-I400|SCH-I405|SCH-I500|SCH-I510|SCH-I515|SCH-I600|SCH-I730|SCH-I760|SCH-I770|SCH-I830|\n      SCH-I910|SCH-I920|SCH-I959|SCH-LC11|SCH-N150|SCH-N300|SCH-R100|SCH-R300|SCH-R351|SCH-R400|SCH-R410|\n      SCH-T300|SCH-U310|SCH-U320|SCH-U350|SCH-U360|SCH-U365|SCH-U370|SCH-U380|SCH-U410|SCH-U430|SCH-U450|\n      SCH-U460|SCH-U470|SCH-U490|SCH-U540|SCH-U550|SCH-U620|SCH-U640|SCH-U650|SCH-U660|SCH-U700|SCH-U740|\n      SCH-U750|SCH-U810|SCH-U820|SCH-U900|SCH-U940|SCH-U960|SCS-26UC|SGH-A107|SGH-A117|SGH-A127|SGH-A137|\n      SGH-A157|SGH-A167|SGH-A177|SGH-A187|SGH-A197|SGH-A227|SGH-A237|SGH-A257|SGH-A437|SGH-A517|SGH-A597|\n      SGH-A637|SGH-A657|SGH-A667|SGH-A687|SGH-A697|SGH-A707|SGH-A717|SGH-A727|SGH-A737|SGH-A747|SGH-A767|\n      SGH-A777|SGH-A797|SGH-A817|SGH-A827|SGH-A837|SGH-A847|SGH-A867|SGH-A877|SGH-A887|SGH-A897|SGH-A927|\n      SGH-B100|SGH-B130|SGH-B200|SGH-B220|SGH-C100|SGH-C110|SGH-C120|SGH-C130|SGH-C140|SGH-C160|SGH-C170|\n      SGH-C180|SGH-C200|SGH-C207|SGH-C210|SGH-C225|SGH-C230|SGH-C417|SGH-C450|SGH-D307|SGH-D347|SGH-D357|\n      SGH-D407|SGH-D415|SGH-D780|SGH-D807|SGH-D980|SGH-E105|SGH-E200|SGH-E315|SGH-E316|SGH-E317|SGH-E335|\n      SGH-E590|SGH-E635|SGH-E715|SGH-E890|SGH-F300|SGH-F480|SGH-I200|SGH-I300|SGH-I320|SGH-I550|SGH-I577|\n      SGH-I600|SGH-I607|SGH-I617|SGH-I627|SGH-I637|SGH-I677|SGH-I700|SGH-I717|SGH-I727|SGH-i747M|SGH-I777|\n      SGH-I780|SGH-I827|SGH-I847|SGH-I857|SGH-I896|SGH-I897|SGH-I900|SGH-I907|SGH-I917|SGH-I927|SGH-I937|\n      SGH-I997|SGH-J150|SGH-J200|SGH-L170|SGH-L700|SGH-M110|SGH-M150|SGH-M200|SGH-N105|SGH-N500|SGH-N600|\n      SGH-N620|SGH-N625|SGH-N700|SGH-N710|SGH-P107|SGH-P207|SGH-P300|SGH-P310|SGH-P520|SGH-P735|SGH-P777|\n      SGH-Q105|SGH-R210|SGH-R220|SGH-R225|SGH-S105|SGH-S307|SGH-T109|SGH-T119|SGH-T139|SGH-T209|SGH-T219|\n      SGH-T229|SGH-T239|SGH-T249|SGH-T259|SGH-T309|SGH-T319|SGH-T329|SGH-T339|SGH-T349|SGH-T359|SGH-T369|\n      SGH-T379|SGH-T409|SGH-T429|SGH-T439|SGH-T459|SGH-T469|SGH-T479|SGH-T499|SGH-T509|SGH-T519|SGH-T539|\n      SGH-T559|SGH-T589|SGH-T609|SGH-T619|SGH-T629|SGH-T639|SGH-T659|SGH-T669|SGH-T679|SGH-T709|SGH-T719|\n      SGH-T729|SGH-T739|SGH-T746|SGH-T749|SGH-T759|SGH-T769|SGH-T809|SGH-T819|SGH-T839|SGH-T919|SGH-T929|\n      SGH-T939|SGH-T959|SGH-T989|SGH-U100|SGH-U200|SGH-U800|SGH-V205|SGH-V206|SGH-X100|SGH-X105|SGH-X120|\n      SGH-X140|SGH-X426|SGH-X427|SGH-X475|SGH-X495|SGH-X497|SGH-X507|SGH-X600|SGH-X610|SGH-X620|SGH-X630|\n      SGH-X700|SGH-X820|SGH-X890|SGH-Z130|SGH-Z150|SGH-Z170|SGH-ZX10|SGH-ZX20|SHW-M110|SPH-A120|SPH-A400|\n      SPH-A420|SPH-A460|SPH-A500|SPH-A560|SPH-A600|SPH-A620|SPH-A660|SPH-A700|SPH-A740|SPH-A760|SPH-A790|\n      SPH-A800|SPH-A820|SPH-A840|SPH-A880|SPH-A900|SPH-A940|SPH-A960|SPH-D600|SPH-D700|SPH-D710|SPH-D720|\n      SPH-I300|SPH-I325|SPH-I330|SPH-I350|SPH-I500|SPH-I600|SPH-I700|SPH-L700|SPH-M100|SPH-M220|SPH-M240|\n      SPH-M300|SPH-M305|SPH-M320|SPH-M330|SPH-M350|SPH-M360|SPH-M370|SPH-M380|SPH-M510|SPH-M540|SPH-M550|\n      SPH-M560|SPH-M570|SPH-M580|SPH-M610|SPH-M620|SPH-M630|SPH-M800|SPH-M810|SPH-M850|SPH-M900|SPH-M910|\n      SPH-M920|SPH-M930|SPH-N100|SPH-N200|SPH-N240|SPH-N300|SPH-N400|SPH-Z400|SWC-E100|SCH-i909|GT-N7100|\n      GT-N7105|SCH-I535|SM-N900A|SM-N900T|SGH-I317|SGH-T999L|GT-S5360B|GT-I8262|GT-S6802|GT-S6312|GT-S6310|GT-S5312|\n      GT-S5310|GT-I9105|GT-I8510|GT-S6790N|SM-G7105|SM-N9005|GT-S5301|GT-I9295|GT-I9195|SM-C101|GT-S7392|GT-S7560|\n      GT-B7610|GT-I5510|GT-S7582|GT-S7530E|GT-I8750|SM-G9006V|SM-G9008V|SM-G9009D|SM-G900A|SM-G900D|SM-G900F|\n      SM-G900H|SM-G900I|SM-G900J|SM-G900K|SM-G900L|SM-G900M|SM-G900P|SM-G900R4|SM-G900S|SM-G900T|SM-G900V|\n      SM-G900W8|SHV-E160K|SCH-P709|SCH-P729|SM-T2558|GT-I9205|SM-G9350|SM-J120F|SM-G920F|SM-G920V|SM-G930F|\n      SM-N910C|SM-A310F|GT-I9190|SM-J500FN|SM-G903F|SM-J330F"),LG:new RegExp("\\bLG\\b;|LG[- ]?(C800|C900|E400|E610|E900|E-900|F160|F180K|F180L|F180S|730|855|L160|LS740|LS840|LS970|\n      LU6200|MS690|MS695|MS770|MS840|MS870|MS910|P500|P700|P705|VM696|AS680|AS695|AX840|C729|E970|GS505|272|\n      C395|E739BK|E960|L55C|L75C|LS696|LS860|P769BK|P350|P500|P509|P870|UN272|US730|VS840|VS950|LN272|LN510|\n      LS670|LS855|LW690|MN270|MN510|P509|P769|P930|UN200|UN270|UN510|UN610|US670|US740|US760|UX265|UX840|VN271|\n      VN530|VS660|VS700|VS740|VS750|VS910|VS920|VS930|VX9200|VX11000|AX840A|LW770|P506|P925|P999|E612|D955|D802|\n      MS323|M257)"),SONY:/SonyST|SonyLT|SonyEricsson|SonyEricssonLT15iv|LT18i|E10i|LT28h|LT26w|SonyEricssonMT27i|C5303|C6902|C6903|C6906|C6943|D2533/,ASUS:/Asus.*Galaxy|PadFone.*Mobile/,NOKIA_LUMIA:/Lumia [0-9]{3,4}/,MICROMAX:/Micromax.*\b(A210|A92|A88|A72|A111|A110Q|A115|A116|A110|A90S|A26|A51|A35|A54|A25|A27|A89|A68|A65|A57|A90)\b/,PALM:/PalmSource|Palm/,VERTU:/Vertu|Vertu.*Ltd|Vertu.*Ascent|Vertu.*Ayxta|Vertu.*Constellation(F|Quest)?|Vertu.*Monika|Vertu.*Signature/,PANTECH:new RegExp("PANTECH|IM-A850S|IM-A840S|IM-A830L|IM-A830K|IM-A830S|IM-A820L|IM-A810K|IM-A810S|IM-A800S|IM-T100K|\n        IM-A725L|IM-A780L|IM-A775C|IM-A770K|IM-A760S|IM-A750K|IM-A740S|IM-A730S|IM-A720L|IM-A710K|IM-A690L|\n        IM-A690S|IM-A650S|IM-A630K|IM-A600S|VEGA PTL21|PT003|P8010|ADR910L|P6030|P6020|P9070|P4100|P9060|P5000|\n        CDM8992|TXT8045|ADR8995|IS11PT|P2030|P6010|P8000|PT002|IS06|CDM8999|P9050|PT001|TXT8040|P2020|P9020|\n        P2000|P7040|P7000|C790"),FLY:/IQ230|IQ444|IQ450|IQ440|IQ442|IQ441|IQ245|IQ256|IQ236|IQ255|IQ235|IQ245|IQ275|IQ240|IQ285|IQ280|IQ270|IQ260|IQ250/,WIKO:new RegExp("KITE 4G|HIGHWAY|GETAWAY|STAIRWAY|DARKSIDE|DARKFULL|DARKNIGHT|DARKMOON|SLIDE|WAX 4G|RAINBOW|BLOOM|\n        SUNSET|GOA(?!nna)|LENNY|BARRY|IGGY|OZZY|CINK FIVE|CINK PEAX|CINK PEAX 2|CINK SLIM|CINK SLIM 2|CINK +|\n        CINK KING|CINK PEAX|CINK SLIM|SUBLIM"),I_MOBILE:/i-mobile (IQ|i-STYLE|idea|ZAA|Hitz)/,SIMVALLEY:/\b(SP-80|XT-930|SX-340|XT-930|SX-310|SP-360|SP60|SPT-800|SP-120|SPT-800|SP-140|SPX-5|SPX-8|SP-100|SPX-8|SPX-12)\b/,WOLFGANG:/AT-B24D|AT-AS50HD|AT-AS40W|AT-AS55HD|AT-AS45q2|AT-B26D|AT-AS50Q/,ALCATEL:/Alcatel|Mobile; rv:49.0|Mobile; ALCATEL 4052R; rv:48.0/,NINTENDO:/Nintendo (3DS|Switch)/,AMOI:/Amoi/,INQ:/INQ/,VITA:/\bVita\b/,BLACKBERRY:/\bBlackBerry\b|\bBB10\b|rim[0-9]+/,FIREFOX_OS:/\bFirefox-OS\b/,IPHONE:/\biPhone\b/,iPod:/\biPod\b/,ANDROID:/\bAndroid\b/,WINDOWS_PHONE:/\bWindows-Phone\b/,GENERIC_PHONE:new RegExp("Tapatalk|PDA;|SAGEM|\\bmmp\\b|pocket|\\bpsp\\b|symbian|Smartphone|smartfon|treo|up.browser|\n        up.link|vodafone|\\bwap\\b|nokia|Nokia|Series40|Series60|S60|SonyEricsson|N900|MAUI.*WAP.*Browser")},te={iPad:/iPad|iPad.*Mobile/,NexusTablet:/Android.*Nexus[\s]+(7|9|10)/,GoogleTablet:/Android.*Pixel C/,SamsungTablet:new RegExp("SAMSUNG.*Tablet|Galaxy.*Tab|SC-01C|GT-P1000|GT-P1003|GT-P1010|GT-P3105|GT-P6210|\n        GT-P6800|GT-P6810|GT-P7100|GT-P7300|GT-P7310|GT-P7500|GT-P7510|SCH-I800|SCH-I815|SCH-I905|\n        SGH-I957|SGH-I987|SGH-T849|SGH-T859|SGH-T869|SPH-P100|GT-P3100|GT-P3108|GT-P3110|GT-P5100|\n        GT-P5110|GT-P6200|GT-P7320|GT-P7511|GT-N8000|GT-P8510|SGH-I497|SPH-P500|SGH-T779|SCH-I705|\n        SCH-I915|GT-N8013|GT-P3113|GT-P5113|GT-P8110|GT-N8010|GT-N8005|GT-N8020|GT-P1013|GT-P6201|\n        GT-P7501|GT-N5100|GT-N5105|GT-N5110|SHV-E140K|SHV-E140L|SHV-E140S|SHV-E150S|SHV-E230K|SHV-E230L|\n        SHV-E230S|SHW-M180K|SHW-M180L|SM-T865|SM-T290|SHW-M180S|SHW-M180W|SHW-M300W|SHW-M305W|SHW-M380K|SHW-M380S|SHW-M380W|\n        SHW-M430W|SHW-M480K|SHW-M480S|SHW-M480W|SHW-M485W|SHW-M486W|SHW-M500W|GT-I9228|SCH-P739|SCH-I925|\n        GT-I9200|GT-P5200|GT-P5210|GT-P5210X|SM-T385M|SM-P585M|SM-T311|SM-T310|SM-T310X|SM-T210|SM-T210R|SM-T211|SM-P600|\n        SM-P601|SM-P605|SM-P615|SM-P900|SM-P901|SM-T217|SM-T217A|SM-T217S|SM-P6000|SM-T3100|SGH-I467|XE500|SM-T110|\n        GT-P5220|GT-I9200X|GT-N5110X|GT-N5120|SM-P905|SM-T111|SM-T2105|SM-T315|SM-T320|SM-T320X|SM-T321|\n        SM-T510|SM-T520|SM-T525|SM-T530NU|SM-T230NU|SM-T330NU|SM-T900|XE500T1C|SM-P605V|SM-P905V|SM-T337V|SM-T537V|\n        SM-T707V|SM-T807V|SM-P600X|SM-P900X|SM-T210X|SM-T230|SM-T230X|SM-T325|GT-P7503|SM-T531|SM-T500|SM-T330|\n        SM-T530|SM-T705|SM-T705C|SM-T535|SM-T331|SM-T800|SM-T700|SM-T537|SM-T807|SM-P907A|SM-T337A|SM-T537A|\n        SM-T707A|SM-T807A|SM-T237|SM-T807P|SM-P607T|SM-T217T|SM-T337T|SM-T807T|SM-T116NQ|SM-T116BU|SM-P550|\n        SM-T350|SM-T550|SM-T9000|SM-P9000|SM-T705Y|SM-T805|GT-P3113|SM-T710|SM-T810|SM-T815|SM-T360|SM-T533|\n        SM-T113|SM-T335|SM-T715|SM-T560|SM-T670|SM-T677|SM-T377|SM-T567|SM-T357T|SM-T555|SM-T561|SM-T713|\n        SM-T719|SM-T725|SM-T813|SM-T819|SM-T580|SM-T590|SM-T355Y?|SM-T280|SM-T817A|SM-T820|SM-W700|SM-P580|SM-T587|SM-P350|\n        SM-P555M|SM-P355M|SM-T113NU|SM-T815Y|SM-T585|SM-T285|SM-T825|SM-W708|SM-T835|SM-P585Y|SM-X200"),Kindle:new RegExp("Kindle|Silk.*Accelerated|Android.*\\b(KFOT|KFTT|KFJWI|KFJWA|KFOTE|KFSOWI|KFTHWI|KFTHWA|KFAPWI|\n        KFAPWA|WFJWAE|KFSAWA|KFSAWI|KFASWI|KFARWI|KFFOWI|KFGIWI|KFMEWI)\\b|Android.*Silk/[0-9.]+ like Chrome        /[0-9.]+ (?!Mobile)"),SurfaceTablet:/Windows NT [0-9.]+; ARM;.*(Tablet|ARMBJS)/,HPTablet:/HP Slate (7|8|10)|HP ElitePad 900|hp-tablet|EliteBook.*Touch|HP 8|Slate 21|HP SlateBook 10/,AsusTablet:new RegExp("^.*PadFone((?!Mobile).)*$|Transformer|TF101|TF101G|TF300T|TF300TG|TF300TL|TF700T|TF700KL|\n        TF701T|TF810C|ME171|ME301T|ME302C|ME371MG|ME370T|ME372MG|ME172V|ME173X|ME400C|\n        Slider SL101|\\bK00F\\b|\\bK00C\\b|\\bK00E\\b|\\bK00L\\b|TX201LA|ME176C|ME102A|\\bM80TA\\b|ME372CL|\n        ME560CG|ME372CG|ME302KL| K010 | K011 | K017 | K01E |ME572C|ME103K|ME170C|ME171C|\\bME70C\\b|ME581C|\n        ME581CL|ME8510C|ME181C|P01Y|PO1MA|P01Z|\\bP027\\b|\\bP024\\b|\\bP00C\\b"),BlackBerryTablet:/PlayBook|RIM Tablet/,HTCtablet:/HTC_Flyer_P512|HTC Flyer|HTC Jetstream|HTC-P715a|HTC EVO View 4G|PG41200|PG09410/,MotorolaTablet:/xoom|sholest|MZ615|MZ605|MZ505|MZ601|MZ602|MZ603|MZ604|MZ606|MZ607|MZ608|MZ609|MZ615|MZ616|MZ617/,NookTablet:/Android.*Nook|NookColor|nook browser|BNRV200|BNRV200A|BNTV250|BNTV250A|BNTV400|BNTV600|LogicPD Zoom2/,AcerTablet:new RegExp("Android.*; \\b(A100|A101|A110|A200|A210|A211|A500|A501|A510|A511|A700|A701|W500|W500P|W501|\n        W501P|W510|W511|W700|G100|G100W|B1-A71|B1-710|B1-711|A1-810|A1-811|A1-830)\\b|W3-810|\\bA3-A10\\b|\\bA3-A11\\b|\n        \\bA3-A20\\b|\\bA3-A30"),ToshibaTablet:/Android.*(AT100|AT105|AT200|AT205|AT270|AT275|AT300|AT305|AT1S5|AT500|AT570|AT700|AT830)|TOSHIBA.*FOLIO/,LGTablet:/\bL-06C|LG-V909|LG-V900|LG-V700|LG-V510|LG-V500|LG-V410|LG-V400|LG-VK810\b/,FujitsuTablet:/Android.*\b(F-01D|F-02F|F-05E|F-10D|M532|Q572)\b/,PrestigioTablet:new RegExp("PMP3170B|PMP3270B|PMP3470B|PMP7170B|PMP3370B|PMP3570C|PMP5870C|PMP3670B|PMP5570C|\n        PMP5770D|PMP3970B|PMP3870C|PMP5580C|PMP5880D|PMP5780D|PMP5588C|PMP7280C|PMP7280C3G|PMP7280|PMP7880D|\n        PMP5597D|PMP5597|PMP7100D|PER3464|PER3274|PER3574|PER3884|PER5274|PER5474|PMP5097CPRO|PMP5097|PMP7380D|\n        PMP5297C|PMP5297C_QUAD|PMP812E|PMP812E3G|PMP812F|PMP810E|PMP880TD|PMT3017|PMT3037|PMT3047|PMT3057|PMT7008|\n        PMT5887|PMT5001|PMT5002"),LenovoTablet:new RegExp("Lenovo TAB|Idea(Tab|Pad)( A1|A10| K1|)|ThinkPad([ ]+)?Tablet|YT3-850M|YT3-X90L|YT3-X90F|\n        YT3-X90X|Lenovo.*(S2109|S2110|S5000|S6000|K3011|A3000|A3500|A1000|A2107|A2109|A1107|A5500|A7600|B6000|\n        B8000|B8080)(-|)(FL|F|HV|H|)|TB-X606F|TB-X103F|TB-X304F|TB-X304L|TB-X704F|TB-8703F|Tab2A7-10F|TB2-X30L|TB-8504F"),DellTablet:/Venue 11|Venue 8|Venue 7|Dell Streak 10|Dell Streak 7/,YarvikTablet:new RegExp("Android.*\\b(TAB210|TAB211|TAB224|TAB250|TAB260|TAB264|TAB310|TAB360|TAB364|TAB410|TAB411|\n        TAB420|TAB424|TAB450|TAB460|TAB461|TAB464|TAB465|TAB467|TAB468|TAB07-100|TAB07-101|TAB07-150|TAB07-151|\n        TAB07-152|TAB07-200|TAB07-201-3G|TAB07-210|TAB07-211|TAB07-212|TAB07-214|TAB07-220|TAB07-400|TAB07-485|\n        TAB08-150|TAB08-200|TAB08-201-3G|TAB08-201-30|TAB09-100|TAB09-211|TAB09-410|TAB10-150|TAB10-201|TAB10-211|\n        TAB10-400|TAB10-410|TAB13-201|TAB274EUK|TAB275EUK|TAB374EUK|TAB462EUK|TAB474EUK|TAB9-200)\\b"),MedionTablet:/Android.*\bOYO\b|LIFE.*(P9212|P9514|P9516|S9512)|LIFETAB/,ArnovaTablet:/97G4|AN10G2|AN7bG3|AN7fG3|AN8G3|AN8cG3|AN7G3|AN9G3|AN7dG3|AN7dG3ST|AN7dG3ChildPad|AN10bG3|AN10bG3DT|AN9G2/,IntensoTablet:/INM8002KP|INM1010FP|INM805ND|Intenso Tab|TAB1004/,IRUTablet:/M702pro/,MegafonTablet:/MegaFon V9|\bZTE V9\b|Android.*\bMT7A\b/,EbodaTablet:/E-Boda (Supreme|Impresspeed|Izzycomm|Essential)/,AllViewTablet:/Allview.*(Viva|Alldro|City|Speed|All TV|Frenzy|Quasar|Shine|TX1|AX1|AX2)/,ArchosTablet:new RegExp("\\b(101G9|80G9|A101IT)\\b|Qilive 97R|Archos5|\\bARCHOS (70|79|80|90|97|101|FAMILYPAD|)(b|c|)(G10|\n         Cobalt| TITANIUM(HD|)| Xenon| Neon|XSK| 2| XS 2| PLATINUM| CARBON|GAMEPAD)\\b"),AinolTablet:/NOVO7|NOVO8|NOVO10|Novo7Aurora|Novo7Basic|NOVO7PALADIN|novo9-Spark/,NokiaLumiaTablet:/Lumia 2520/,SonyTablet:new RegExp("Sony.*Tablet|Xperia Tablet|Sony Tablet S|SO-03E|SGPT12|SGPT13|SGPT114|SGPT121|SGPT122|SGPT123|\n        SGPT111|SGPT112|SGPT113|SGPT131|SGPT132|SGPT133|SGPT211|SGPT212|SGPT213|SGP311|SGP312|SGP321|EBRD1101|\n        EBRD1102|EBRD1201|SGP351|SGP341|SGP511|SGP512|SGP521|SGP541|SGP551|SGP621|SGP641|SGP612|SOT31|SGP771|SGP611|\n        SGP612|SGP712"),PhilipsTablet:/\b(PI2010|PI3000|PI3100|PI3105|PI3110|PI3205|PI3210|PI3900|PI4010|PI7000|PI7100)\b/,CubeTablet:/Android.*(K8GT|U9GT|U10GT|U16GT|U17GT|U18GT|U19GT|U20GT|U23GT|U30GT)|CUBE U8GT/,CobyTablet:new RegExp("MID1042|MID1045|MID1125|MID1126|MID7012|MID7014|MID7015|MID7034|MID7035|MID7036|MID7042|MID7048|\n        MID7127|MID8042|MID8048|MID8127|MID9042|MID9740|MID9742|MID7022|MID7010"),MIDTablet:new RegExp("M9701|M9000|M9100|M806|M1052|M806|T703|MID701|MID713|MID710|MID727|MID760|MID830|MID728|MID933|\n        MID125|MID810|MID732|MID120|MID930|MID800|MID731|MID900|MID100|MID820|MID735|MID980|MID130|MID833|MID737|\n        MID960|MID135|MID860|MID736|MID140|MID930|MID835|MID733|MID4X10"),MSITablet:new RegExp("MSI \\b(Primo 73K|Primo 73L|Primo 81L|Primo 77|Primo 93|Primo 75|Primo 76|Primo 73|Primo 81|\n        Primo 91|Primo 90|Enjoy 71|Enjoy 7|Enjoy 10)\\b"),SMiTTablet:/Android.*(\bMID\b|MID-560|MTV-T1200|MTV-PND531|MTV-P1101|MTV-PND530)/,RockChipTablet:/Android.*(RK2818|RK2808A|RK2918|RK3066)|RK2738|RK2808A/,FlyTablet:/IQ310|Fly Vision/,bqTablet:new RegExp("Android.*(bq)?.*(Elcano|Curie|Edison|Maxwell|Kepler|Pascal|Tesla|Hypatia|Platon|Newton|\n        Livingstone|Cervantes|Avant|Aquaris ([E|M]10|M8))|Maxwell.*Lite|Maxwell.*Plus"),HuaweiTablet:new RegExp("MediaPad|MediaPad 7 Youth|MediaPad T3 10|IDEOS S7|S7-201c|S7-202u|S7-101|S7-103|S7-104|S7-105|S7-106|\n        S7-201|S7-Slim|M2-A01L|BAH-L09|BAH-W09|AGS-W09"),NecTablet:/\bN-06D|\bN-08D/,PantechTablet:/Pantech.*P4100/,BronchoTablet:/Broncho.*(N701|N708|N802|a710)/,VersusTablet:/TOUCHPAD.*[78910]|\bTOUCHTAB\b/,ZyncTablet:/z1000|Z99 2G|z99|z930|z999|z990|z909|Z919|z900/,PositivoTablet:/TB07STA|TB10STA|TB07FTA|TB10FTA/,NabiTablet:/Android.*\bNabi/,KoboTablet:/Kobo Touch|\bK080\b|\bVox\b Build|\bArc\b Build/,DanewTablet:/DSlide.*\b(700|701R|702|703R|704|802|970|971|972|973|974|1010|1012)\b/,TexetTablet:new RegExp("NaviPad|TB-772A|TM-7045|TM-7055|TM-9750|TM-7016|TM-7024|TM-7026|TM-7041|TM-7043|TM-7047|\n        TM-8041|TM-9741|TM-9747|TM-9748|TM-9751|TM-7022|TM-7021|TM-7020|TM-7011|TM-7010|TM-7023|TM-7025|\n        TM-7037W|TM-7038W|TM-7027W|TM-9720|TM-9725|TM-9737W|TM-1020|TM-9738W|TM-9740|TM-9743W|TB-807A|TB-771A|\n        TB-727A|TB-725A|TB-719A|TB-823A|TB-805A|TB-723A|TB-715A|TB-707A|TB-705A|TB-709A|TB-711A|TB-890HD|\n        TB-880HD|TB-790HD|TB-780HD|TB-770HD|TB-721HD|TB-710HD|TB-434HD|TB-860HD|TB-840HD|TB-760HD|TB-750HD|\n        TB-740HD|TB-730HD|TB-722HD|TB-720HD|TB-700HD|TB-500HD|TB-470HD|TB-431HD|TB-430HD|TB-506|TB-504|TB-446|\n        TB-436|TB-416|TB-146SE|TB-126SE"),PlaystationTablet:/Playstation.*(Portable|Vita)/,TrekstorTablet:/ST10416-1|VT10416-1|ST70408-1|ST702xx-1|ST702xx-2|ST80208|ST97216|ST70104-2|VT10416-2|ST10216-2A|SurfTab/,PyleAudioTablet:/\b(PTBL10CEU|PTBL10C|PTBL72BC|PTBL72BCEU|PTBL7CEU|PTBL7C|PTBL92BC|PTBL92BCEU|PTBL9CEU|PTBL9CUK|PTBL9C)\b/,AdvanTablet:new RegExp("Android.* \\b(E3A|T3X|T5C|T5B|T3E|T3C|T3B|T1J|T1F|T2A|T1H|T1i|E1C|T1-E|T5-A|T4|E1-B|T2Ci|\n        T1-B|T1-D|O1-A|E1-A|T1-A|T3A|T4i)\\b"),DanyTechTablet:"Genius Tab G3|Genius Tab S2|Genius Tab Q3|Genius Tab G4|Genius Tab Q4|Genius Tab G-II|\n        Genius TAB GII|Genius TAB GIII|Genius Tab S1",GalapadTablet:/Android.*\bG1\b(?!\))/,MicromaxTablet:/Funbook|Micromax.*\b(P250|P560|P360|P362|P600|P300|P350|P500|P275)\b/,KarbonnTablet:/Android.*\b(A39|A37|A34|ST8|ST10|ST7|Smart Tab3|Smart Tab2)\b/,AllFineTablet:/Fine7 Genius|Fine7 Shine|Fine7 Air|Fine8 Style|Fine9 More|Fine10 Joy|Fine11 Wide/,PROSCANTablet:new RegExp("\\b(PEM63|PLT1023G|PLT1041|PLT1044|PLT1044G|PLT1091|PLT4311|PLT4311PL|PLT4315|PLT7030|\n        PLT7033|PLT7033D|PLT7035|PLT7035D|PLT7044K|PLT7045K|PLT7045KB|PLT7071KG|PLT7072|PLT7223G|PLT7225G|\n        PLT7777G|PLT7810K|PLT7849G|PLT7851G|PLT7852G|PLT8015|PLT8031|PLT8034|PLT8036|PLT8080K|PLT8082|PLT8088|\n        PLT8223G|PLT8234G|PLT8235G|PLT8816K|PLT9011|PLT9045K|PLT9233G|PLT9735|PLT9760G|PLT9770G)\\b"),YONESTablet:/BQ1078|BC1003|BC1077|RK9702|BC9730|BC9001|IT9001|BC7008|BC7010|BC708|BC728|BC7012|BC7030|BC7027|BC7026/,ChangJiaTablet:new RegExp("TPC7102|TPC7103|TPC7105|TPC7106|TPC7107|TPC7201|TPC7203|TPC7205|TPC7210|TPC7708|TPC7709|\n        TPC7712|TPC7110|TPC8101|TPC8103|TPC8105|TPC8106|TPC8203|TPC8205|TPC8503|TPC9106|TPC9701|TPC97101|TPC97103|\n        TPC97105|TPC97106|TPC97111|TPC97113|TPC97203|TPC97603|TPC97809|TPC97205|TPC10101|TPC10103|TPC10106|\n        TPC10111|TPC10203|TPC10205|TPC10503"),GUTablet:/TX-A1301|TX-M9002|Q702|kf026/,PointOfViewTablet:new RegExp("TAB-P506|TAB-navi-7-3G-M|TAB-P517|TAB-P-527|TAB-P701|TAB-P703|TAB-P721|TAB-P731N|\n        TAB-P741|TAB-P825|TAB-P905|TAB-P925|TAB-PR945|TAB-PL1015|TAB-P1025|TAB-PI1045|TAB-P1325|TAB-PROTAB[0-9]+|\n        TAB-PROTAB25|TAB-PROTAB26|TAB-PROTAB27|TAB-PROTAB26XL|TAB-PROTAB2-IPS9|TAB-PROTAB30-IPS9|TAB-PROTAB25XXL|\n        TAB-PROTAB26-IPS10|TAB-PROTAB30-IPS10"),OvermaxTablet:new RegExp("OV-(SteelCore|NewBase|Basecore|Baseone|Exellen|Quattor|EduTab|Solution|ACTION|BasicTab|TeddyTab|\n        MagicTab|Stream|TB-08|TB-09)|Qualcore 1027"),HCLTablet:/HCL.*Tablet|Connect-3G-2.0|Connect-2G-2.0|ME Tablet U1|ME Tablet U2|ME Tablet G1|ME Tablet X1|ME Tablet Y2|ME Tablet Sync/,DPSTablet:/DPS Dream 9|DPS Dual 7/,VistureTablet:/V97 HD|i75 3G|Visture V4( HD)?|Visture V5( HD)?|Visture V10/,CrestaTablet:/CTP(-)?810|CTP(-)?818|CTP(-)?828|CTP(-)?838|CTP(-)?888|CTP(-)?978|CTP(-)?980|CTP(-)?987|CTP(-)?988|CTP(-)?989/,MediatekTablet:/\bMT8125|MT8389|MT8135|MT8377\b/,ConcordeTablet:/Concorde([ ]+)?Tab|ConCorde ReadMan/,GoCleverTablet:new RegExp("GOCLEVER TAB|A7GOCLEVER|M1042|M7841|M742|R1042BK|R1041|TAB A975|TAB A7842|TAB A741|TAB A741L|TAB M723G|\n        TAB M721|TAB A1021|TAB I921|TAB R721|TAB I720|TAB T76|TAB R70|TAB R76.2|TAB R106|TAB R83.2|TAB M813G|TAB I721|\n        GCTA722|TAB I70|TAB I71|TAB S73|TAB R73|TAB R74|TAB R93|TAB R75|TAB R76.1|TAB A73|TAB A93|TAB A93.2|TAB T72|\n        TAB R83|TAB R974|TAB R973|TAB A101|TAB A103|TAB A104|TAB A104.2|R105BK|M713G|A972BK|TAB A971|TAB R974.2|\n        TAB R104|TAB R83.3|TAB A1042"),ModecomTablet:new RegExp("FreeTAB 9000|FreeTAB 7.4|FreeTAB 7004|FreeTAB 7800|FreeTAB 2096|FreeTAB 7.5|FreeTAB 1014|\n        FreeTAB 1001 |FreeTAB 8001|FreeTAB 9706|FreeTAB 9702|FreeTAB 7003|FreeTAB 7002|FreeTAB 1002|FreeTAB 7801|\n        FreeTAB 1331|FreeTAB 1004|FreeTAB 8002|FreeTAB 8014|FreeTAB 9704|FreeTAB 1003"),VoninoTablet:new RegExp("\\b(Argus[ _]?S|Diamond[ _]?79HD|Emerald[ _]?78E|Luna[ _]?70C|Onyx[ _]?S|Onyx[ _]?Z|\n        Orin[ _]?HD|Orin[ _]?S|Otis[ _]?S|SpeedStar[ _]?S|Magnet[ _]?M9|Primus[ _]?94[ _]?3G|Primus[ _]?94HD|\n        Primus[ _]?QS|Android.*\\bQ8\\b|Sirius[ _]?EVO[ _]?QS|Sirius[ _]?QS|Spirit[ _]?S)\\b"),ECSTablet:/V07OT2|TM105A|S10OT1|TR10CS1/,StorexTablet:/eZee[_']?(Tab|Go)[0-9]+|TabLC7|Looney Tunes Tab/,VodafoneTablet:/SmartTab([ ]+)?[0-9]+|SmartTabII10|SmartTabII7|VF-1497/,EssentielBTablet:/Smart[ ']?TAB[ ]+?[0-9]+|Family[ ']?TAB2/,RossMoorTablet:/RM-790|RM-997|RMD-878G|RMD-974R|RMT-705A|RMT-701|RME-601|RMT-501|RMT-711/,iMobileTablet:/i-mobile i-note/,TolinoTablet:/tolino tab [0-9.]+|tolino shine/,AudioSonicTablet:/\bC-22Q|T7-QC|T-17B|T-17P\b/,AMPETablet:/Android.* A78 /,SkkTablet:/Android.* (SKYPAD|PHOENIX|CYCLOPS)/,TecnoTablet:/TECNO P9|TECNO DP8D/,JXDTablet:new RegExp("Android.* \\b(F3000|A3300|JXD5000|JXD3000|JXD2000|JXD300B|JXD300|S5800|S7800|S602b|S5110b|S7300|\n        S5300|S602|S603|S5100|S5110|S601|S7100a|P3000F|P3000s|P101|P200s|P1000m|P200m|P9100|P1000s|S6600b|S908|\n        P1000|P300|S18|S6600|S9100)\\b"),iJoyTablet:new RegExp("Tablet (Spirit 7|Essentia|Galatea|Fusion|Onix 7|Landa|Titan|Scooby|Deox|Stella|Themis|Argon|\n        Unique 7|Sygnus|Hexen|Finity 7|Cream|Cream X2|Jade|Neon 7|Neron 7|Kandy|Scape|Saphyr 7|Rebel|Biox|Rebel|\n        Rebel 8GB|Myst|Draco 7|Myst|Tab7-004|Myst|Tadeo Jones|Tablet Boing|Arrow|Draco Dual Cam|Aurix|Mint|Amity|\n        Revolution|Finity 9|Neon 9|T9w|Amity 4GB Dual Cam|Stone 4GB|Stone 8GB|Andromeda|Silken|X2|Andromeda II|\n        Halley|Flame|Saphyr 9,7|Touch 8|Planet|Triton|Unique 10|Hexen 10|Memphis 4GB|Memphis 8GB|Onix 10)"),FX2Tablet:/FX2 PAD7|FX2 PAD10/,XoroTablet:new RegExp("KidsPAD 701|PAD[ ]?712|PAD[ ]?714|PAD[ ]?716|PAD[ ]?717|PAD[ ]?718|PAD[ ]?720|PAD[ ]?721|\n        PAD[ ]?722|PAD[ ]?790|PAD[ ]?792|PAD[ ]?900|PAD[ ]?9715D|PAD[ ]?9716DR|PAD[ ]?9718DR|PAD[ ]?9719QR|\n        PAD[ ]?9720QR|TelePAD1030|Telepad1032|TelePAD730|TelePAD731|TelePAD732|TelePAD735Q|TelePAD830|TelePAD9730|\n        TelePAD795|MegaPAD 1331|MegaPAD 1851|MegaPAD 2151"),ViewsonicTablet:/ViewPad 10pi|ViewPad 10e|ViewPad 10s|ViewPad E72|ViewPad7|ViewPad E100|ViewPad 7e|ViewSonic VB733|VB100a/,VerizonTablet:/QTAQZ3|QTAIR7|QTAQTZ3|QTASUN1|QTASUN2|QTAXIA1/,OdysTablet:/LOOX|XENO10|ODYS[ -](Space|EVO|Xpress|NOON)|\bXELIO\b|Xelio10Pro|XELIO7PHONETAB|XELIO10EXTREME|XELIOPT2|NEO_QUAD10/,CaptivaTablet:/CAPTIVA PAD/,IconbitTablet:new RegExp("NetTAB|NT-3702|NT-3702S|NT-3702S|NT-3603P|NT-3603P|NT-0704S|NT-0704S|NT-3805C|NT-3805C|\n        NT-0806C|NT-0806C|NT-0909T|NT-0909T|NT-0907S|NT-0907S|NT-0902S|NT-0902S"),TeclastTablet:new RegExp("T98 4G|\\bP80\\b|\\bX90HD\\b|X98 Air|X98 Air 3G|\\bX89\\b|P80 3G|\\bX80h\\b|P98 Air|\n        \\bX89HD\\b|P98 3G|\\bP90HD\\b|P89 3G|X98 3G|\\bP70h\\b|P79HD 3G|G18d 3G|\\bP79HD\\b|\\bP89s\\b|\\bA88\\b|\n        \\bP10HD\\b|\\bP19HD\\b|G18 3G|\\bP78HD\\b|\\bA78\\b|\\bP75\\b|G17s 3G|G17h 3G|\\bP85t\\b|\\bP90\\b|\n        \\bP11\\b|\\bP98t\\b|\\bP98HD\\b|\\bG18d\\b|\\bP85s\\b|\\bP11HD\\b|\\bP88s\\b|\\bA80HD\\b|\\bA80se\\b|\n        \\bA10h\\b|\\bP89\\b|\\bP78s\\b|\\bG18\\b|\\bP85\\b|\\bA70h\\b|\\bA70\\b|\\bG17\\b|\\bP18\\b|\\bA80s\\b|\n        \\bA11s\\b|\\bP88HD\\b|\\bA80h\\b|\\bP76s\\b|\\bP76h\\b|\\bP98\\b|\\bA10HD\\b|\\bP78\\b|\\bP88\\b|\\bA11\\b|\n        \\bA10t\\b|\\bP76a\\b|\\bP76t\\b|\\bP76e\\b|\\bP85HD\\b|\\bP85a\\b|\\bP86\\b|\\bP75HD\\b|\\bP76v\\b|\\bA12\\b|\n        \\bP75a\\b|\\bA15\\b|\\bP76Ti\\b|\\bP81HD\\b|\\bA10\\b|\\bT760VE\\b|\\bT720HD\\b|\\bP76\\b|\\bP73\\b|\\bP71\\b|\n        \\bP72\\b|\\bT720SE\\b|\\bC520Ti\\b|\\bT760\\b|\\bT720VE\\b|T720-3GE|T720-WiFi"),OndaTablet:new RegExp("\\b(V975i|Vi30|VX530|V701|Vi60|V701s|Vi50|V801s|V719|Vx610w|VX610W|V819i|Vi10|VX580W|Vi10|\n        V711s|V813|V811|V820w|V820|Vi20|V711|VI30W|V712|V891w|V972|V819w|V820w|Vi60|V820w|V711|V813s|V801|V819|\n        V975s|V801|V819|V819|V818|V811|V712|V975m|V101w|V961w|V812|V818|V971|V971s|V919|V989|V116w|V102w|V973|\n        Vi40)\\b[s]+|V10 \\b4G\\b"),JaytechTablet:/TPC-PA762/,BlaupunktTablet:/Endeavour 800NG|Endeavour 1010/,DigmaTablet:/\b(iDx10|iDx9|iDx8|iDx7|iDxD7|iDxD8|iDsQ8|iDsQ7|iDsQ8|iDsD10|iDnD7|3TS804H|iDsQ11|iDj7|iDs10)\b/,EvolioTablet:/ARIA_Mini_wifi|Aria[ _]Mini|Evolio X10|Evolio X7|Evolio X8|\bEvotab\b|\bNeura\b/,LavaTablet:/QPAD E704|\bIvoryS\b|E-TAB IVORY|\bE-TAB\b/,AocTablet:/MW0811|MW0812|MW0922|MTK8382|MW1031|MW0831|MW0821|MW0931|MW0712/,MpmanTablet:new RegExp("MP11 OCTA|MP10 OCTA|MPQC1114|MPQC1004|MPQC994|MPQC974|MPQC973|MPQC804|MPQC784|MPQC780|\n        \\bMPG7\\b|MPDCG75|MPDCG71|MPDC1006|MP101DC|MPDC9000|MPDC905|MPDC706HD|MPDC706|MPDC705|MPDC110|\n        MPDC100|MPDC99|MPDC97|MPDC88|MPDC8|MPDC77|MP709|MID701|MID711|MID170|MPDC703|MPQC1010"),CelkonTablet:/CT695|CT888|CT[\s]?910|CT7 Tab|CT9 Tab|CT3 Tab|CT2 Tab|CT1 Tab|C820|C720|\bCT-1\b/,WolderTablet:new RegExp("miTab \\b(DIAMOND|SPACE|BROOKLYN|NEO|FLY|MANHATTAN|FUNK|EVOLUTION|SKY|GOCAR|IRON|GENIUS|\n        POP|MINT|EPSILON|BROADWAY|JUMP|HOP|LEGEND|NEW AGE|LINE|ADVANCE|FEEL|FOLLOW|LIKE|LINK|LIVE|THINK|\n        FREEDOM|CHICAGO|CLEVELAND|BALTIMORE-GH|IOWA|BOSTON|SEATTLE|PHOENIX|DALLAS|IN 101|MasterChef)\\b"),MediacomTablet:"M-MPI10C3G|M-SP10EG|M-SP10EGP|M-SP10HXAH|M-SP7HXAH|M-SP10HXBH|M-SP8HXAH|M-SP8MXA",MiTablet:/\bMI PAD\b|\bHM NOTE 1W\b/,NibiruTablet:/Nibiru M1|Nibiru Jupiter One/,NexoTablet:/NEXO NOVA|NEXO 10|NEXO AVIO|NEXO FREE|NEXO GO|NEXO EVO|NEXO 3G|NEXO SMART|NEXO KIDDO|NEXO MOBI/,LeaderTablet:new RegExp("TBLT10Q|TBLT10I|TBL-10WDKB|TBL-10WDKBO2013|TBL-W230V2|TBL-W450|TBL-W500|SV572|TBLT7I|\n        TBA-AC7-8G|TBLT79|TBL-8W16|TBL-10W32|TBL-10WKB|TBL-W100"),UbislateTablet:/UbiSlate[\s]?7C/,PocketBookTablet:/Pocketbook/,KocasoTablet:/\b(TB-1207)\b/,HisenseTablet:/\b(F5281|E2371)\b/,Hudl:/Hudl HT7S3|Hudl 2/,TelstraTablet:/T-Hub2/,Honeywell:/RT10A/,GenericTablet:new RegExp("Android.*\\b97D\\b|Tablet(?!.*PC)|BNTV250A|MID-WCDMA|LogicPD Zoom2|\\bA7EB\\b|CatNova8|\n        A1_07|CT704|CT1002|\\bM721\\b|rk30sdk|\\bEVOTAB\\b|M758A|ET904|ALUMIUM10|Smartfren Tab|Endeavour 1010|\n        Tablet-PC-4|Tagi Tab|\\bM6pro\\b|CT1020W|arc 10HD|\\bTP750\\b|\\bQTAQZ3\\b|WVT101|TM1088|KT107")},I={BLACKBERRY:"Blackberry",FIREFOX_OS:"Firefox-OS",CHROME_BOOK:"Chrome-Book",WINDOWS_PHONE:"Windows-Phone",VITA:"Vita",PS4:"PS4",MAC:"Macintosh",CHROMECAST:"Chromecast",APPLE_TV:"Apple-TV",GOOGLE_TV:"Google-TV",ANDROID:"Android",Tesla:"Tesla",iPad:"iPad",IPHONE:"iPhone",iPod:"iPod",UNKNOWN:A.UKNOWN,HTC:"HTC",NEXUS_PHONE:"Nexus Phone",NexusTablet:"Nexus Tablet",DELL:"Dell",MOTOROLA:"Motorola",SAMSUNG:"Samsung",LG:"LG",SONY:"Sony",ASUS:"Asus",NOKIA_LUMIA:"Nokia Lumia",MICROMAX:"Micromax",PALM:"Palm",VERTU:"Vertu",PANTECH:"PANTECH",FLY:"Fly",WIKO:"WIKO",I_MOBILE:"i-mobile",SIMVALLEY:"Simvalley",WOLFGANG:"Wolfgang",ALCATEL:"Alcatel",HONEYWELL:"Honeywell",NINTENDO:"Nintendo",AMOI:"Amoi",INQ:"INQ",GENERIC_PHONE:"Generic Phone",MI_SE_9:"Mi SE 9"},b=[I.PS4,I.CHROME_BOOK,I.MAC,I.DELL,I.ASUS,I.UNKNOWN],p={WINDOWS:"Windows",MAC:"Mac",IOS:"iOS",ANDROID:"Android",LINUX:"Linux",UNIX:"Unix",FIREFOX_OS:"Firefox-OS",CHROME_OS:"Chrome-OS",WINDOWS_PHONE:"Windows-Phone",UNKNOWN:A.UKNOWN},_={WINDOWS_3_11:"windows-3-11",WINDOWS_95:"windows-95",WINDOWS_ME:"windows-me",WINDOWS_98:"windows-98",WINDOWS_CE:"windows-ce",WINDOWS_2000:"windows-2000",WINDOWS_XP:"windows-xp",WINDOWS_SERVER_2003:"windows-server-2003",WINDOWS_VISTA:"windows-vista",WINDOWS_7:"windows-7",WINDOWS_8_1:"windows-8-1",WINDOWS_8:"windows-8",WINDOWS_10:"windows-10",WINDOWS_PHONE_7_5:"windows-phone-7-5",WINDOWS_PHONE_8_1:"windows-phone-8-1",WINDOWS_PHONE_10:"windows-phone-10",WINDOWS_NT_4_0:"windows-nt-4-0",MACOSX_11_0:"mac-os-x-11-0",MACOSX_16:"mac-os-x-16",MACOSX_15:"mac-os-x-15",MACOSX_14:"mac-os-x-14",MACOSX_13:"mac-os-x-13",MACOSX_12:"mac-os-x-12",MACOSX_11:"mac-os-x-11",MACOSX_10:"mac-os-x-10",MACOSX_9:"mac-os-x-9",MACOSX_8:"mac-os-x-8",MACOSX_7:"mac-os-x-7",MACOSX_6:"mac-os-x-6",MACOSX_5:"mac-os-x-5",MACOSX_4:"mac-os-x-4",MACOSX_3:"mac-os-x-3",MACOSX_2:"mac-os-x-2",MACOSX:"mac-os-x",iOS:"iOS",ANDROID_9:"android-9",UNKNOWN:A.UKNOWN.toLowerCase()},v={WINDOWS:{and:[{or:[/\bWindows|(Win\d\d)\b/,/\bWin 9x\b/]},{not:/\bWindows Phone\b/}]},MAC:{and:[/\bMac OS\b/,{not:{or:[/\biPhone\b/,/\biPad\b/,/\biPod\b/,/\bWindows Phone\b/]}}]},IOS:{and:[{or:[/\biPad\b/,/\biPhone\b/,/\biPod\b/]},{not:/\bWindows Phone\b/}]},ANDROID:{and:[/\bAndroid\b/,{not:/\bWindows Phone\b/}]},LINUX:/\bLinux\b/,UNIX:/\bUNIX\b/,FIREFOX_OS:{and:[/\bFirefox\b/,/Mobile\b/]},CHROME_OS:/\bCrOS\b/,WINDOWS_PHONE:{or:[/\bIEMobile\b/,/\bWindows Phone\b/]},PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,VITA:/\bMozilla\/5.0 \(Play(S|s)tation Vita\b/},W={...N,...te,...v,FIREFOX_OS:{and:[/\bFirefox\b/,/\bMobile\b/]},CHROME_BOOK:/\bCrOS\b/,PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,CHROMECAST:/\bCrKey\b/,APPLE_TV:/^iTunes-AppleTV\/4.1$/,GOOGLE_TV:/\bGoogleTV\b/,Tesla:/Tesla\/([0-9]{4}.[0-9]{1,2}.?[0-9]{0,2}.?[0-9]{0,2})-(.{7})/,MI_SE_9:/\bXiaomi\b/,MAC:{and:[/\bMac OS\b/,{not:{or:[/\biPhone\b/,/\biPad\b/,/\biPod\b/,/\bWindows Phone\b/]}}]}},P={WINDOWS_3_11:/Win16/,WINDOWS_95:/(Windows 95|Win95|Windows_95)/,WINDOWS_ME:/(Win 9x 4.90|Windows ME)/,WINDOWS_98:/(Windows 98|Win98)/,WINDOWS_CE:/Windows CE/,WINDOWS_2000:/(Windows NT 5.0|Windows 2000)/,WINDOWS_XP:/(Windows NT 5.1|Windows XP)/,WINDOWS_SERVER_2003:/Windows NT 5.2/,WINDOWS_VISTA:/Windows NT 6.0/,WINDOWS_7:/(Windows 7|Windows NT 6.1)/,WINDOWS_8_1:/(Windows 8.1|Windows NT 6.3)/,WINDOWS_8:/(Windows 8|Windows NT 6.2)/,WINDOWS_10:/(Windows NT 10.0)/,WINDOWS_PHONE_7_5:/(Windows Phone OS 7.5)/,WINDOWS_PHONE_8_1:/(Windows Phone 8.1)/,WINDOWS_PHONE_10:/(Windows Phone 10)/,WINDOWS_NT_4_0:{and:[/(Windows NT 4.0|WinNT4.0|WinNT|Windows NT)/,{not:/Windows NT 10.0/}]},MACOSX:/(MAC OS X\s*[^ 0-9])/,MACOSX_3:/(Darwin 10.3|Mac OS X 10.3)/,MACOSX_4:/(Darwin 10.4|Mac OS X 10.4)/,MACOSX_5:/(Mac OS X 10.5)/,MACOSX_6:/(Mac OS X 10.6)/,MACOSX_7:/(Mac OS X 10.7)/,MACOSX_8:/(Mac OS X 10.8)/,MACOSX_9:/(Mac OS X 10.9)/,MACOSX_10:/(Mac OS X 10.10)/,MACOSX_11:/(Mac OS X 10.11)/,MACOSX_12:/(Mac OS X 10.12)/,MACOSX_13:/(Mac OS X 10.13)/,MACOSX_14:/(Mac OS X 10.14)/,MACOSX_15:/(Mac OS X 10.15)/,MACOSX_16:/(Mac OS X 10.16)/,MACOSX_11_0:{or:[/11_0 like Mac OS X/,/Mac OS X 11/]},iOS:/(iPhone OS\s*[0-9_]+)/,ANDROID_9:/(Android 9)/},B={CHROME:[/\bChrome\/([\d\.]+)\b/,/\bCriOS\/([\d\.]+)\b/,/\bHeadlessChrome\/([\d\.]+)\b/],FIREFOX:[/\bFirefox\/([\d\.]+)\b/,/\bFxiOS\/([\d\.]+)\b/],SAFARI:[/\bVersion\/([\d\.]+)\b/,/\bSafari\/([\d\.]+)\b/],OPERA:[/\bVersion\/([\d\.]+)\b/,/\bOPR\/([\d\.]+)\b/],IE:[/\bMSIE ([\d\.]+\w?)\b/,/\brv:([\d\.]+\w?)\b/],MS_EDGE:/\bEdg(?:e|A|iOS)\/([\d\.]+)\b/,MS_EDGE_CHROMIUM:/\bEdg\/([\d\.]+)\b/,SAMSUNG:/\bSamsungBrowser\/([\d\.]+)\b/,UCBROWSER:/\bUCBrowser\/([\d\.]+)\b/},G=Object.keys(P).reduce((X,y)=>(X[y]=P[y],X),{}),U=Object.keys(B).reduce((X,y)=>(X[w[y]]=B[y],X),{});var Z=Object.freeze({__proto__:null,GENERAL:A,BROWSERS:w,MOBILES_RE:N,TABLETS_RE:te,DEVICES:I,DESKTOP_DEVICES:b,OS:p,OS_VERSIONS:_,OS_RE:v,BROWSERS_RE:{CHROME:{and:[{or:[/\bChrome\b/,/\bCriOS\b/,/\bHeadlessChrome\b/]},{not:{or:[/\bOPR\b/,/\bEdg(e|A|iOS)\b/,/\bEdg\/\b/,/\bSamsungBrowser\b/,/\bUCBrowser\b/]}}]},FIREFOX:{or:[/\bFirefox\b/,/\bFxiOS\b/]},SAFARI:{and:[/^((?!CriOS).)*\Safari\b.*$/,{not:{or:[/\bOPR\b/,/\bEdg(e|A|iOS)\b/,/\bEdg\/\b/,/\bWindows Phone\b/,/\bSamsungBrowser\b/,/\bUCBrowser\b/]}}]},OPERA:{or:[/Opera\b/,/\bOPR\b/]},IE:{or:[/\bMSIE\b/,/\bTrident\b/,/^Mozilla\/5\.0 \(Windows NT 10\.0; Win64; x64\)$/]},MS_EDGE:{or:[/\bEdg(e|A|iOS)\b/]},MS_EDGE_CHROMIUM:/\bEdg\/\b/,PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,VITA:/\bMozilla\/5.0 \(Play(S|s)tation Vita\b/,FB_MESSANGER:/\bFBAN\/MessengerForiOS\b/,SAMSUNG:/\bSamsungBrowser\b/,UCBROWSER:/\bUCBrowser\b/},DEVICES_RE:W,OS_VERSIONS_RE_MAP:P,BROWSER_VERSIONS_RE_MAP:B,OS_VERSIONS_RE:G,BROWSER_VERSIONS_RE:U});class ue{constructor(){}test(y,k){return"string"==typeof k&&(k=new RegExp(k)),k instanceof RegExp?k.test(y):k&&Array.isArray(k.and)?k.and.every($=>this.test(y,$)):k&&Array.isArray(k.or)?k.or.some($=>this.test(y,$)):!(!k||!k.not||this.test(y,k.not))}exec(y,k){return"string"==typeof k&&(k=new RegExp(k)),k instanceof RegExp?k.exec(y):k&&Array.isArray(k)?k.reduce(($,J)=>$||this.exec(y,J),null):null}}var F=(()=>{return(X=F||(F={})).Mobile="mobile",X.Tablet="tablet",X.Desktop="desktop",X.Unknown="unknown",F;var X})(),Y=(()=>{return(X=Y||(Y={})).Portrait="portrait",X.Landscape="landscape",Y;var X})();const ee="iPad";let oe=(()=>{class X{constructor(k){this.platformId=k,this.ua="",this.userAgent="",this.os="",this.browser="",this.device="",this.os_version="",this.browser_version="",this.reTree=new ue,this.deviceType="",this.orientation="",(0,c.NF)(this.platformId)&&typeof window<"u"&&(this.userAgent=window.navigator.userAgent),this.setDeviceInfo(this.userAgent)}setDeviceInfo(k=this.userAgent){k!==this.userAgent&&(this.userAgent=k);const $=[{const:"OS",prop:"os"},{const:"BROWSERS",prop:"browser"},{const:"DEVICES",prop:"device"},{const:"OS_VERSIONS",prop:"os_version"}];if($.forEach(J=>{this[J.prop]=Object.keys(Z[J.const]).reduce((L,le)=>"device"===Z[J.const][le]&&(0,c.NF)(this.platformId)&&(this.reTree.test(this.userAgent,te[ee])||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)?(L[Z[J.const][le]]=ee,Object):(L[Z[J.const][le]]=this.reTree.test(k,Z[`${J.const}_RE`][le]),L),{})}),$.forEach(J=>{this[J.prop]=Object.keys(Z[J.const]).map(L=>Z[J.const][L]).reduce((L,le)=>"device"===J.prop&&L===Z[J.const].ANDROID?this[J.prop][le]?le:L:L===Z[J.const].UNKNOWN&&this[J.prop][le]?le:L,Z[J.const].UNKNOWN)}),this.browser_version="0",this.browser!==w.UNKNOWN){const L=this.reTree.exec(k,U[this.browser]);L&&(this.browser_version=L[1])}this.orientation=typeof window<"u"&&window.matchMedia?window.matchMedia("(orientation: landscape)").matches?Y.Landscape:Y.Portrait:A.UKNOWN,this.deviceType=this.isTablet()?F.Tablet:this.isMobile(this.userAgent)?F.Mobile:this.isDesktop(this.userAgent)?F.Desktop:F.Unknown}getDeviceInfo(){return{userAgent:this.userAgent,os:this.os,browser:this.browser,device:this.device,os_version:this.os_version,browser_version:this.browser_version,deviceType:this.deviceType,orientation:this.orientation}}isMobile(k=this.userAgent){return!this.isTablet(k)&&!!Object.keys(N).find(J=>this.reTree.test(k,N[J]))}isTablet(k=this.userAgent){return!(!(0,c.NF)(this.platformId)||!(this.reTree.test(this.userAgent,te[ee])||typeof navigator<"u"&&"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1))||!!Object.keys(te).find(J=>!!this.reTree.test(k,te[J]))}isDesktop(k=this.userAgent){return(this.device!==I.UNKNOWN||!this.isMobile(k)&&!this.isTablet(k))&&b.indexOf(this.device)>-1}}return X.\u0275fac=function(k){return new(k||X)(s.LFG(s.Lbi))},X.\u0275prov=s.Yz7({token:X,factory:X.\u0275fac,providedIn:"root"}),X})()},21094:(ut,fe,d)=>{"use strict";d.d(fe,{Iq:()=>P,hx:()=>W,yI:()=>G});var s=d(15861),c=d(94650),A=d(24006),w=d(36895);const N=new c.OlP("ngx-mask config"),te=new c.OlP("new ngx-mask config"),I=new c.OlP("initial ngx-mask config"),b={suffix:"",prefix:"",thousandSeparator:" ",decimalMarker:[".",","],clearIfNotMatch:!1,showTemplate:!1,showMaskTyped:!1,placeHolderCharacter:"_",dropSpecialCharacters:!0,hiddenInput:void 0,shownMaskExpression:"",separatorLimit:"",allowNegativeNumbers:!1,validation:!0,specialCharacters:["-","/","(",")",".",":"," ","+",",","@","[","]",'"',"'"],leadZeroDateTime:!1,triggerOnMaskChange:!1,maskFilled:new c.vpe,patterns:{0:{pattern:new RegExp("\\d")},9:{pattern:new RegExp("\\d"),optional:!0},X:{pattern:new RegExp("\\d"),symbol:"*"},A:{pattern:new RegExp("[a-zA-Z0-9]")},S:{pattern:new RegExp("[a-zA-Z]")},U:{pattern:new RegExp("[A-Z]")},L:{pattern:new RegExp("[a-z]")},d:{pattern:new RegExp("\\d")},m:{pattern:new RegExp("\\d")},M:{pattern:new RegExp("\\d")},H:{pattern:new RegExp("\\d")},h:{pattern:new RegExp("\\d")},s:{pattern:new RegExp("\\d")}}},p=["Hh:m0:s0","Hh:m0","m0:s0"],_=["percent","Hh","s0","m0","separator","d0/M0/0000","d0/M0","d0","M0"];let v=(()=>{class Z{constructor(F){this._config=F,this.maskExpression="",this.actualValue="",this.shownMaskExpression="",this._formatWithSeparators=(Y,ee,oe,X)=>{let y=[],k="";if(Array.isArray(oe)){const ce=new RegExp(oe.map(Se=>"[\\^$.|?*+()".indexOf(Se)>=0?`\\${Se}`:Se).join("|"));y=Y.split(ce),k=Y.match(ce)?.[0]??""}else y=Y.split(oe),k=oe;const $=y.length>1?`${k}${y[1]}`:"";let J=y[0];const L=this.separatorLimit.replace(/\s/g,"");L&&+L&&(J="-"===J[0]?`-${J.slice(1,J.length).slice(0,L.length)}`:J.slice(0,L.length));const le=/(\d+)(\d{3})/;for(;ee&&le.test(J);)J=J.replace(le,"$1"+ee+"$2");return void 0===X?J+$:0===X?J:J+$.substr(0,X+1)},this.percentage=Y=>Number(Y)>=0&&Number(Y)<=100,this.getPrecision=Y=>{const ee=Y.split(".");return ee.length>1?Number(ee[ee.length-1]):1/0},this.checkAndRemoveSuffix=Y=>{for(let ee=this.suffix?.length-1;ee>=0;ee--){const oe=this.suffix.substr(ee,this.suffix?.length);if(Y.includes(oe)&&(ee-1<0||!Y.includes(this.suffix.substr(ee-1,this.suffix?.length))))return Y.replace(oe,"")}return Y},this.checkInputPrecision=(Y,ee,oe)=>{if(ee<1/0){if(Array.isArray(oe)){const k=oe.find($=>$!==this.thousandSeparator);oe=k||oe[0]}const X=new RegExp(this._charToRegExpExpression(oe)+`\\d{${ee}}.*$`),y=Y.match(X);y&&y[0].length-1>ee&&(Y=Y.substring(0,Y.length-(y[0].length-1-ee))),0===ee&&this._compareOrIncludes(Y[Y.length-1],oe,this.thousandSeparator)&&(Y=Y.substring(0,Y.length-1))}return Y},this._shift=new Set,this.clearIfNotMatch=this._config.clearIfNotMatch,this.dropSpecialCharacters=this._config.dropSpecialCharacters,this.maskSpecialCharacters=this._config.specialCharacters,this.maskAvailablePatterns=this._config.patterns,this.prefix=this._config.prefix,this.suffix=this._config.suffix,this.thousandSeparator=this._config.thousandSeparator,this.decimalMarker=this._config.decimalMarker,this.hiddenInput=this._config.hiddenInput,this.showMaskTyped=this._config.showMaskTyped,this.placeHolderCharacter=this._config.placeHolderCharacter,this.validation=this._config.validation,this.separatorLimit=this._config.separatorLimit,this.allowNegativeNumbers=this._config.allowNegativeNumbers,this.leadZeroDateTime=this._config.leadZeroDateTime}applyMaskWithPattern(F,Y){const[ee,oe]=Y;return this.customPattern=oe,this.applyMask(F,ee)}applyMask(F,Y,ee=0,oe=!1,X=!1,y=(()=>{})){if(!Y||"string"!=typeof F)return"";let k=0,$="",J=!1,L=!1,le=1,ce=!1;F.slice(0,this.prefix.length)===this.prefix&&(F=F.slice(this.prefix.length,F.length)),this.suffix&&F?.length>0&&(F=this.checkAndRemoveSuffix(F));const Se=F.toString().split("");"IP"===Y&&(this.ipError=Se.filter(ke=>"."===ke).length<3&&Se.length<7,Y="099.099.099.099");const Qe=[];for(let ke=0;ke<F.length;ke++)F[ke]?.match("\\d")&&Qe.push(F[ke]);if("CPF_CNPJ"===Y&&(this.cpfCnpjError=11!==Qe.length&&14!==Qe.length,Y=Qe.length>11?"00.000.000/0000-00":"000.000.000-00"),Y.startsWith("percent")){if(F.match("[a-z]|[A-Z]")||F.match(/[-!$%^&*()_+|~=`{}\[\]:";'<>?,\/.]/)){F=this._stripToDecimal(F);const ke=this.getPrecision(Y);F=this.checkInputPrecision(F,ke,this.decimalMarker)}F.indexOf(".")>0&&!this.percentage(F.substring(0,F.indexOf(".")))&&(F=`${F.substring(0,F.indexOf(".")-1)}${F.substring(F.indexOf("."),F.length)}`),$=this.percentage(F)?F:F.substring(0,F.length-1)}else if(Y.startsWith("separator")){(F.match("[w\u0430-\u044f\u0410-\u042f]")||F.match("[\u0401\u0451\u0410-\u044f]")||F.match("[a-z]|[A-Z]")||F.match(/[-@#!$%\\^&*()_\xa3\xac'+|~=`{}\[\]:";<>.?\/]/)||F.match("[^A-Za-z0-9,]"))&&(F=this._stripToDecimal(F)),F=F.length>1&&"0"===F[0]&&!this._compareOrIncludes(F[1],this.decimalMarker,this.thousandSeparator)&&!X?F.slice(1,F.length):F,X&&(F=this._compareOrIncludes(F[F.length-1],this.decimalMarker,this.thousandSeparator)?F.slice(0,F.length-1):F);const ke=this._charToRegExpExpression(this.thousandSeparator);let je='@#!$%^&*()_+|~=`{}\\[\\]:\\s,\\.";<>?\\/'.replace(ke,"");if(Array.isArray(this.decimalMarker))for(const Gt of this.decimalMarker)je=je.replace(this._charToRegExpExpression(Gt),"");else je=je.replace(this._charToRegExpExpression(this.decimalMarker),"");const de=new RegExp("["+je+"]");(F.match(de)||1===F.length&&this._compareOrIncludes(F,this.decimalMarker,this.thousandSeparator))&&(F=F.substring(0,F.length-1));const me=this.getPrecision(Y),Ne=(F=this.checkInputPrecision(F,me,this.decimalMarker)).replace(new RegExp(ke,"g"),"");$=this._formatWithSeparators(Ne,this.thousandSeparator,this.decimalMarker,me);const it=$.indexOf(",")-F.indexOf(","),yt=$.length-F.length;if(yt>0&&","!==$[ee]){L=!0;let Gt=0;do{this._shift.add(ee+Gt),Gt++}while(Gt<yt)}else 0!==it&&ee>0&&!($.indexOf(",")>=ee&&ee>3)||!($.indexOf(".")>=ee&&ee>3)&&yt<=0?(this._shift.clear(),L=!0,le=yt,this._shift.add(ee+=yt)):this._shift.clear()}else for(let ke=0,je=Se[0];ke<Se.length&&k!==Y.length;ke++,je=Se[ke])if(this._checkSymbolMask(je,Y[k])&&"?"===Y[k+1])$+=je,k+=2;else if("*"===Y[k+1]&&J&&this._checkSymbolMask(je,Y[k+2]))$+=je,k+=3,J=!1;else if(this._checkSymbolMask(je,Y[k])&&"*"===Y[k+1])$+=je,J=!0;else if("?"===Y[k+1]&&this._checkSymbolMask(je,Y[k+2]))$+=je,k+=3;else if(this._checkSymbolMask(je,Y[k])){if("H"===Y[k]&&Number(je)>2){k+=1,this._shiftStep(Y,k,Se.length),ke--,this.leadZeroDateTime&&($+="0");continue}if("h"===Y[k]&&"2"===$&&Number(je)>3){k+=1,ke--;continue}if("m"===Y[k]&&Number(je)>5){k+=1,this._shiftStep(Y,k,Se.length),ke--,this.leadZeroDateTime&&($+="0");continue}if("s"===Y[k]&&Number(je)>5){k+=1,this._shiftStep(Y,k,Se.length),ke--,this.leadZeroDateTime&&($+="0");continue}const de=31;if("d"===Y[k]&&(Number(je)>3&&this.leadZeroDateTime||Number(F.slice(k,k+2))>de||"/"===F[k+1])){k+=1,this._shiftStep(Y,k,Se.length),ke--,this.leadZeroDateTime&&($+="0");continue}if("M"===Y[k]){const Ne=0===k&&(Number(je)>2||Number(F.slice(k,k+2))>12||"/"===F[k+1]),it=F.slice(k-3,k-1).includes("/")&&("/"===F[k-2]&&Number(F.slice(k-1,k+1))>12&&"/"!==F[k]||"/"===F[k]||"/"===F[k-3]&&Number(F.slice(k-2,k))>12&&"/"!==F[k-1]||"/"===F[k-1]),yt=Number(F.slice(k-3,k-1))<=de&&!F.slice(k-3,k-1).includes("/")&&"/"===F[k-1]&&(Number(F.slice(k,k+2))>12||"/"===F[k+1]),Gt=Number(F.slice(k-3,k-1))>de&&!F.slice(k-3,k-1).includes("/")&&!F.slice(k-2,k).includes("/")&&Number(F.slice(k-2,k))>12,Ft=Number(F.slice(k-3,k-1))<=de&&!F.slice(k-3,k-1).includes("/")&&"/"!==F[k-1]&&Number(F.slice(k-1,k+1))>12;if(Number(je)>1&&this.leadZeroDateTime||Ne||it||yt||Gt||Ft){k+=1,this._shiftStep(Y,k,Se.length),ke--,this.leadZeroDateTime&&($+="0");continue}}$+=je,k++}else" "===je&&" "===Y[k]?($+=je,k++):-1!==this.maskSpecialCharacters.indexOf(Y[k])?($+=Y[k],k++,this._shiftStep(Y,k,Se.length),ke--):this.maskSpecialCharacters.indexOf(je)>-1&&this.maskAvailablePatterns[Y[k]]&&this.maskAvailablePatterns[Y[k]]?.optional?(!!Se[k]&&"099.099.099.099"!==Y&&"000.000.000-00"!==Y&&"00.000.000/0000-00"!==Y&&!Y.match(/^9+\.0+$/)&&($+=Se[k]),k++,ke--):"*"===this.maskExpression[k+1]&&this._findSpecialChar(this.maskExpression[k+2])&&this._findSpecialChar(je)===this.maskExpression[k+2]&&J||"?"===this.maskExpression[k+1]&&this._findSpecialChar(this.maskExpression[k+2])&&this._findSpecialChar(je)===this.maskExpression[k+2]&&J?(k+=3,$+=je):this.showMaskTyped&&this.maskSpecialCharacters.indexOf(je)<0&&je!==this.placeHolderCharacter&&(ce=!0);$.length+1===Y.length&&-1!==this.maskSpecialCharacters.indexOf(Y[Y.length-1])&&($+=Y[Y.length-1]);let ct=ee+1;for(;this._shift.has(ct);)le++,ct++;let $t=oe&&!Y.startsWith("separator")?k:this._shift.has(ee)?le:0;ce&&$t--,y($t,L),le<0&&this._shift.clear();let $e=!1;X&&($e=Se.every(ke=>this.maskSpecialCharacters.includes(ke)));let Et=`${this.prefix}${$e?"":$}${this.suffix}`;return 0===$.length&&(Et=`${this.prefix}${$}`),Et}_findSpecialChar(F){return this.maskSpecialCharacters.find(Y=>Y===F)}_checkSymbolMask(F,Y){return this.maskAvailablePatterns=this.customPattern?this.customPattern:this.maskAvailablePatterns,this.maskAvailablePatterns[Y]&&this.maskAvailablePatterns[Y].pattern&&this.maskAvailablePatterns[Y].pattern.test(F)}_stripToDecimal(F){return F.split("").filter((Y,ee)=>Y.match("^-?\\d")||Y.match("\\s")||"."===Y||","===Y||"-"===Y&&0===ee&&this.allowNegativeNumbers).join("")}_charToRegExpExpression(F){return F&&(" "===F?"\\s":"[\\^$.|?*+()".indexOf(F)>=0?`\\${F}`:F)}_shiftStep(F,Y,ee){const oe=/[*?]/g.test(F.slice(0,Y))?ee:Y;this._shift.add(oe+this.prefix.length||0)}_compareOrIncludes(F,Y,ee){return Array.isArray(Y)?Y.filter(oe=>oe!==ee).includes(F):F===Y}}return Z.\u0275fac=function(F){return new(F||Z)(c.LFG(N))},Z.\u0275prov=c.Yz7({token:Z,factory:Z.\u0275fac}),Z})(),T=(()=>{class Z extends v{constructor(F,Y,ee,oe){super(Y),this.document=F,this._config=Y,this._elementRef=ee,this._renderer=oe,this.maskExpression="",this.isNumberValue=!1,this.placeHolderCharacter="_",this.maskIsShown="",this.selStart=null,this.selEnd=null,this.writingValue=!1,this.maskChanged=!1,this.triggerOnMaskChange=!1,this.onChange=X=>{}}applyMask(F,Y,ee=0,oe=!1,X=!1,y=(()=>{})){if(!Y)return F!==this.actualValue?this.actualValue:F;if(this.maskIsShown=this.showMaskTyped?this.showMaskInInput():"","IP"===this.maskExpression&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(F||"#")),"CPF_CNPJ"===this.maskExpression&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(F||"#")),!F&&this.showMaskTyped)return this.formControlResult(this.prefix),this.prefix+this.maskIsShown;const k=F&&"number"==typeof this.selStart?F[this.selStart]:"";let $="";if(this.hiddenInput&&!this.writingValue){let ce=this.actualValue.split("");""!==F&&ce.length?"number"==typeof this.selStart&&"number"==typeof this.selEnd&&(F.length>ce.length?ce.splice(this.selStart,0,k):F.length<ce.length&&(ce.length-F.length==1?ce.splice(this.selStart-1,1):ce.splice(this.selStart,this.selEnd-this.selStart))):ce=[],this.showMaskTyped&&(F=this.removeMask(F)),$=this.actualValue.length&&ce.length<=F.length?this.shiftTypedSymbols(ce.join("")):F}$=Boolean($)&&$.length?$:F;const J=super.applyMask($,Y,ee,oe,X,y);if(this.actualValue=this.getActualValue(J),"."===this.thousandSeparator&&"."===this.decimalMarker&&(this.decimalMarker=","),this.maskExpression.startsWith("separator")&&!0===this.dropSpecialCharacters&&(this.maskSpecialCharacters=this.maskSpecialCharacters.filter(ce=>!this._compareOrIncludes(ce,this.decimalMarker,this.thousandSeparator))),this.formControlResult(J),!this.showMaskTyped)return this.hiddenInput&&J&&J.length?this.hideInput(J,this.maskExpression):J;const L=J.length,le=this.prefix+this.maskIsShown;if(this.maskExpression.includes("H")){const ce=this._numberSkipedSymbols(J);return J+le.slice(L+ce)}return"IP"===this.maskExpression||"CPF_CNPJ"===this.maskExpression?J+le:J+le.slice(L)}_numberSkipedSymbols(F){const Y=/(^|\D)(\d\D)/g;let ee=Y.exec(F),oe=0;for(;null!=ee;)oe+=1,ee=Y.exec(F);return oe}applyValueChanges(F,Y,ee,oe=(()=>{})){const X=this._elementRef.nativeElement;X.value=this.applyMask(X.value,this.maskExpression,F,Y,ee,oe),X!==this._getActiveElement()&&this.clearIfNotMatchFn()}hideInput(F,Y){return F.split("").map((ee,oe)=>this.maskAvailablePatterns&&this.maskAvailablePatterns[Y[oe]]&&this.maskAvailablePatterns[Y[oe]]?.symbol?this.maskAvailablePatterns[Y[oe]]?.symbol:ee).join("")}getActualValue(F){const Y=F.split("").filter((ee,oe)=>this._checkSymbolMask(ee,this.maskExpression[oe])||this.maskSpecialCharacters.includes(this.maskExpression[oe])&&ee===this.maskExpression[oe]);return Y.join("")===F?Y.join(""):F}shiftTypedSymbols(F){let Y="";return(F&&F.split("").map((oe,X)=>{if(this.maskSpecialCharacters.includes(F[X+1])&&F[X+1]!==this.maskExpression[X+1])return Y=oe,F[X+1];if(Y.length){const y=Y;return Y="",y}return oe})||[]).join("")}numberToString(F){return F||0===F?Number(F).toLocaleString("fullwide",{useGrouping:!1,maximumFractionDigits:20}):String(F)}showMaskInInput(F){if(this.showMaskTyped&&this.shownMaskExpression){if(this.maskExpression.length!==this.shownMaskExpression.length)throw new Error("Mask expression must match mask placeholder length");return this.shownMaskExpression}if(this.showMaskTyped){if(F){if("IP"===this.maskExpression)return this._checkForIp(F);if("CPF_CNPJ"===this.maskExpression)return this._checkForCpfCnpj(F)}return this.maskExpression.replace(/\w/g,this.placeHolderCharacter)}return""}clearIfNotMatchFn(){const F=this._elementRef.nativeElement;this.clearIfNotMatch&&this.prefix.length+this.maskExpression.length+this.suffix.length!==F.value.replace(/_/g,"").length&&(this.formElementProperty=["value",""],this.applyMask(F.value,this.maskExpression))}set formElementProperty([F,Y]){Promise.resolve().then(()=>this._renderer.setProperty(this._elementRef.nativeElement,F,Y))}checkSpecialCharAmount(F){return F.split("").filter(ee=>this._findSpecialChar(ee)).length}removeMask(F){return this._removeMask(this._removeSuffix(this._removePrefix(F)),this.maskSpecialCharacters.concat("_").concat(this.placeHolderCharacter))}_checkForIp(F){if("#"===F)return`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`;const Y=[];for(let ee=0;ee<F.length;ee++)F[ee]?.match("\\d")&&Y.push(F[ee]);return Y.length<=3?`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`:Y.length>3&&Y.length<=6?`${this.placeHolderCharacter}.${this.placeHolderCharacter}`:Y.length>6&&Y.length<=9?this.placeHolderCharacter:""}_checkForCpfCnpj(F){const Y=`${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`,ee=`${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}/${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`;if("#"===F)return Y;const oe=[];for(let X=0;X<F.length;X++)F[X]?.match("\\d")&&oe.push(F[X]);return oe.length<=3?Y.slice(oe.length,Y.length):oe.length>3&&oe.length<=6?Y.slice(oe.length+1,Y.length):oe.length>6&&oe.length<=9?Y.slice(oe.length+2,Y.length):oe.length>9&&oe.length<11?Y.slice(oe.length+3,Y.length):11===oe.length?"":12===oe.length?ee.slice(17===F.length?16:15,ee.length):oe.length>12&&oe.length<=14?ee.slice(oe.length+4,ee.length):""}_getActiveElement(F=this.document){const Y=F?.activeElement?.shadowRoot;return Y?.activeElement?this._getActiveElement(Y):F.activeElement}formControlResult(F){this.writingValue||!this.triggerOnMaskChange&&this.maskChanged?this.maskChanged=!1:Array.isArray(this.dropSpecialCharacters)?this.onChange(this._toNumber(this._removeMask(this._removeSuffix(this._removePrefix(F)),this.dropSpecialCharacters))):this.onChange(this.dropSpecialCharacters?this._toNumber(this._checkSymbols(F)):this._removeSuffix(F))}_toNumber(F){if(!this.isNumberValue||""===F)return F;const Y=Number(F);return Number.isNaN(Y)?F:Y}_removeMask(F,Y){return F&&F.replace(this._regExpForRemove(Y),"")}_removePrefix(F){return this.prefix?F&&F.replace(this.prefix,""):F}_removeSuffix(F){return this.suffix?F&&F.replace(this.suffix,""):F}_retrieveSeparatorValue(F){return this._removeMask(this._removeSuffix(this._removePrefix(F)),this.maskSpecialCharacters)}_regExpForRemove(F){return new RegExp(F.map(Y=>`\\${Y}`).join("|"),"gi")}_checkSymbols(F){if(""===F)return F;const Y=this._retrieveSeparatorPrecision(this.maskExpression);let ee=this._retrieveSeparatorValue(F);return"."!==this.decimalMarker&&!Array.isArray(this.decimalMarker)&&(ee=ee.replace(this.decimalMarker,".")),this.isNumberValue?Y?F===this.decimalMarker?null:this._checkPrecision(this.maskExpression,ee):Number(ee):ee}_retrieveSeparatorPrecision(F){const Y=F.match(new RegExp("^separator\\.([^d]*)"));return Y?Number(Y[1]):null}_checkPrecision(F,Y){return F.indexOf("2")>0?Number(Y).toFixed(2):Number(Y)}}return Z.\u0275fac=function(F){return new(F||Z)(c.LFG(w.K0),c.LFG(N),c.LFG(c.SBq),c.LFG(c.Qsj))},Z.\u0275prov=c.Yz7({token:Z,factory:Z.\u0275fac}),Z})(),W=(()=>{class Z{constructor(F,Y,ee){this.document=F,this._maskService=Y,this._config=ee,this.maskExpression="",this.specialCharacters=[],this.patterns={},this.prefix="",this.suffix="",this.thousandSeparator=" ",this.decimalMarker=".",this.dropSpecialCharacters=null,this.hiddenInput=null,this.showMaskTyped=null,this.placeHolderCharacter=null,this.shownMaskExpression=null,this.showTemplate=null,this.clearIfNotMatch=null,this.validation=null,this.separatorLimit=null,this.allowNegativeNumbers=null,this.leadZeroDateTime=null,this.triggerOnMaskChange=null,this.maskFilled=new c.vpe,this._maskValue="",this._position=null,this._maskExpressionArray=[],this._justPasted=!1,this.onChange=oe=>{},this.onTouch=()=>{}}ngOnChanges(F){const{maskExpression:Y,specialCharacters:ee,patterns:oe,prefix:X,suffix:y,thousandSeparator:k,decimalMarker:$,dropSpecialCharacters:J,hiddenInput:L,showMaskTyped:le,placeHolderCharacter:ce,shownMaskExpression:Se,showTemplate:Qe,clearIfNotMatch:ct,validation:$t,separatorLimit:$e,allowNegativeNumbers:Et,leadZeroDateTime:ke,triggerOnMaskChange:je}=F;if(Y&&(Y.currentValue!==Y.previousValue&&!Y.firstChange&&(this._maskService.maskChanged=!0),Y.currentValue&&Y.currentValue.split("||").length>1?(this._maskExpressionArray=Y.currentValue.split("||").sort((de,me)=>de.length-me.length),this._setMask()):(this._maskExpressionArray=[],this._maskValue=Y.currentValue||"",this._maskService.maskExpression=this._maskValue)),ee){if(!ee.currentValue||!Array.isArray(ee.currentValue))return;this._maskService.maskSpecialCharacters=ee.currentValue||[]}oe&&oe.currentValue&&(this._maskService.maskAvailablePatterns=oe.currentValue),X&&(this._maskService.prefix=X.currentValue),y&&(this._maskService.suffix=y.currentValue),k&&(this._maskService.thousandSeparator=k.currentValue),$&&(this._maskService.decimalMarker=$.currentValue),J&&(this._maskService.dropSpecialCharacters=J.currentValue),L&&(this._maskService.hiddenInput=L.currentValue),le&&(this._maskService.showMaskTyped=le.currentValue),ce&&(this._maskService.placeHolderCharacter=ce.currentValue),Se&&(this._maskService.shownMaskExpression=Se.currentValue),Qe&&(this._maskService.showTemplate=Qe.currentValue),ct&&(this._maskService.clearIfNotMatch=ct.currentValue),$t&&(this._maskService.validation=$t.currentValue),$e&&(this._maskService.separatorLimit=$e.currentValue),Et&&(this._maskService.allowNegativeNumbers=Et.currentValue,this._maskService.allowNegativeNumbers&&(this._maskService.maskSpecialCharacters=this._maskService.maskSpecialCharacters.filter(de=>"-"!==de))),ke&&(this._maskService.leadZeroDateTime=ke.currentValue),je&&(this._maskService.triggerOnMaskChange=je.currentValue),this._applyMask()}validate({value:F}){if(!this._maskService.validation||!this._maskValue)return null;if(this._maskService.ipError)return this._createValidationError(F);if(this._maskService.cpfCnpjError)return this._createValidationError(F);if(this._maskValue.startsWith("separator")||_.includes(this._maskValue)||this._maskService.clearIfNotMatch)return null;if(p.includes(this._maskValue))return this._validateTime(F);if(F&&F.toString().length>=1){let Y=0;for(const ee in this._maskService.maskAvailablePatterns)if(this._maskService.maskAvailablePatterns[ee].optional&&(this._maskValue.indexOf(ee)!==this._maskValue.lastIndexOf(ee)?Y+=this._maskValue.split("").filter(X=>X===ee).join("").length:-1!==this._maskValue.indexOf(ee)&&Y++,-1!==this._maskValue.indexOf(ee)&&F.toString().length>=this._maskValue.indexOf(ee)||Y===this._maskValue.length))return null;if(1===this._maskValue.indexOf("{")&&F.toString().length===this._maskValue.length+Number(this._maskValue.split("{")[1].split("}")[0])-4||1===this._maskValue.indexOf("*")||1===this._maskValue.indexOf("?"))return null;if(this._maskValue.indexOf("*")>1&&F.toString().length<this._maskValue.indexOf("*")||this._maskValue.indexOf("?")>1&&F.toString().length<this._maskValue.indexOf("?")||1===this._maskValue.indexOf("{"))return this._createValidationError(F);if(-1===this._maskValue.indexOf("*")||-1===this._maskValue.indexOf("?")){const ee=this._maskService.dropSpecialCharacters?this._maskValue.length-this._maskService.checkSpecialCharAmount(this._maskValue)-Y:this._maskValue.length-Y;if(F.toString().length<ee)return this._createValidationError(F)}}return F&&this.maskFilled.emit(),null}onPaste(){this._justPasted=!0}onModelChange(F){(""===F||null==F)&&this._maskService.actualValue&&(this._maskService.actualValue=this._maskService.getActualValue(""))}onInput(F){const Y=F.target;if(this._inputValue=Y.value,this._setMask(),!this._maskValue)return void this.onChange(Y.value);const ee=1===Y.selectionStart?Y.selectionStart+this._maskService.prefix.length:Y.selectionStart;let oe=0,X=!1;if(this._maskService.applyValueChanges(ee,this._justPasted,"Backspace"===this._code||"Delete"===this._code,(k,$)=>{this._justPasted=!1,oe=k,X=$}),this._getActiveElement()!==Y)return;this._position=1===this._position&&1===this._inputValue.length?null:this._position;let y=this._position?this._inputValue.length+ee+oe:ee+("Backspace"!==this._code||X?oe:0);y>this._getActualInputLength()&&(y=this._getActualInputLength()),y<0&&(y=0),Y.setSelectionRange(y,y),this._position=null}onBlur(){this._maskValue&&this._maskService.clearIfNotMatchFn(),this.onTouch()}onClick(F){if(!this._maskValue)return;const Y=F.target;null!==Y&&null!==Y.selectionStart&&Y.selectionStart===Y.selectionEnd&&Y.selectionStart>this._maskService.prefix.length&&38!==F.keyCode&&this._maskService.showMaskTyped&&(this._maskService.maskIsShown=this._maskService.showMaskInInput(),Y.setSelectionRange&&this._maskService.prefix+this._maskService.maskIsShown===Y.value?(Y.focus(),Y.setSelectionRange(0,0)):Y.selectionStart>this._maskService.actualValue.length&&Y.setSelectionRange(this._maskService.actualValue.length,this._maskService.actualValue.length));const X=Y.value&&Y.value!==this._maskService.prefix?Y.value:this._maskService.prefix+this._maskService.maskIsShown;Y.value!==X&&(Y.value=X),(Y.selectionStart||Y.selectionEnd)<=this._maskService.prefix.length?Y.selectionStart=this._maskService.prefix.length:Y.selectionEnd>this._getActualInputLength()&&(Y.selectionEnd=this._getActualInputLength())}onKeyDown(F){if(!this._maskValue)return;this._code=F.code?F.code:F.key;const Y=F.target;if(this._inputValue=Y.value,this._setMask(),38===F.keyCode&&F.preventDefault(),37===F.keyCode||8===F.keyCode||46===F.keyCode){if(8===F.keyCode&&0===Y.value.length&&(Y.selectionStart=Y.selectionEnd),8===F.keyCode&&0!==Y.selectionStart)if(this.specialCharacters=this.specialCharacters?.length?this.specialCharacters:this._config.specialCharacters,this.prefix.length>1&&Y.selectionStart<=this.prefix.length)Y.setSelectionRange(this.prefix.length,Y.selectionEnd);else if(this._inputValue.length!==Y.selectionStart&&1!==Y.selectionStart)for(;this.specialCharacters.includes(this._inputValue[Y.selectionStart-1].toString())&&(this.prefix.length>=1&&Y.selectionStart>this.prefix.length||0===this.prefix.length);)Y.setSelectionRange(Y.selectionStart-1,Y.selectionEnd);this.checkSelectionOnDeletion(Y),this._maskService.prefix.length&&Y.selectionStart<=this._maskService.prefix.length&&Y.selectionEnd<=this._maskService.prefix.length&&F.preventDefault();const ee=Y.selectionStart;8===F.keyCode&&!Y.readOnly&&0===ee&&Y.selectionEnd===Y.value.length&&0!==Y.value.length&&(this._position=this._maskService.prefix?this._maskService.prefix.length:0,this._maskService.applyMask(this._maskService.prefix,this._maskService.maskExpression,this._position))}this.suffix&&this.suffix.length>1&&this._inputValue.length-this.suffix.length<Y.selectionStart?Y.setSelectionRange(this._inputValue.length-this.suffix.length,this._inputValue.length):(65===F.keyCode&&F.ctrlKey||65===F.keyCode&&F.metaKey)&&(Y.setSelectionRange(0,this._getActualInputLength()),F.preventDefault()),this._maskService.selStart=Y.selectionStart,this._maskService.selEnd=Y.selectionEnd}writeValue(F){var Y=this;return(0,s.Z)(function*(){"object"==typeof F&&null!==F&&"value"in F&&("disable"in F&&Y.setDisabledState(Boolean(F.disable)),F=F.value),("number"==typeof F||Y._maskValue.startsWith("separator"))&&(F=Y._maskService.numberToString(F),Array.isArray(Y.decimalMarker)||(F="."!==Y.decimalMarker?F.replace(".",Y.decimalMarker):F),Y._maskService.isNumberValue=!0),"string"!=typeof F&&(F=""),Y._inputValue=F,Y._setMask(),F&&Y._maskService.maskExpression||Y._maskService.maskExpression&&(Y._maskService.prefix||Y._maskService.showMaskTyped)?(Y._maskService.writingValue=!0,Y._maskService.formElementProperty=["value",Y._maskService.applyMask(F,Y._maskService.maskExpression)],Y._maskService.writingValue=!1):Y._maskService.formElementProperty=["value",F],Y._inputValue=F})()}registerOnChange(F){this.onChange=F,this._maskService.onChange=this.onChange}registerOnTouched(F){this.onTouch=F}_getActiveElement(F=this.document){const Y=F?.activeElement?.shadowRoot;return Y?.activeElement?this._getActiveElement(Y):F.activeElement}checkSelectionOnDeletion(F){F.selectionStart=Math.min(Math.max(this.prefix.length,F.selectionStart),this._inputValue.length-this.suffix.length),F.selectionEnd=Math.min(Math.max(this.prefix.length,F.selectionEnd),this._inputValue.length-this.suffix.length)}setDisabledState(F){this._maskService.formElementProperty=["disabled",F]}_repeatPatternSymbols(F){return F.match(/{[0-9]+}/)&&F.split("").reduce((Y,ee,oe)=>{if(this._start="{"===ee?oe:this._start,"}"!==ee)return this._maskService._findSpecialChar(ee)?Y+ee:Y;this._end=oe;const X=Number(F.slice(this._start+1,this._end));return Y+new Array(X+1).join(F[this._start-1])},"")||F}_applyMask(){this._maskService.maskExpression=this._repeatPatternSymbols(this._maskValue||""),this._maskService.formElementProperty=["value",this._maskService.applyMask(this._inputValue,this._maskService.maskExpression)]}_validateTime(F){const Y=this._maskValue.split("").filter(ee=>":"!==ee).length;return F&&(0==+F[F.length-1]&&F.length<Y||F.length<=Y-2)?this._createValidationError(F):null}_getActualInputLength(){return this._maskService.actualValue.length||this._maskService.actualValue.length+this._maskService.prefix.length}_createValidationError(F){return{mask:{requiredMask:this._maskValue,actualValue:F}}}_setMask(){this._maskExpressionArray.length>0&&this._maskExpressionArray.some(F=>{const Y=this._maskService.removeMask(this._inputValue)?.length<=this._maskService.removeMask(F)?.length;if(this._inputValue&&Y)return this._maskValue=F,this.maskExpression=F,this._maskService.maskExpression=F,Y;this._maskValue=this._maskExpressionArray[this._maskExpressionArray.length-1],this.maskExpression=this._maskExpressionArray[this._maskExpressionArray.length-1],this._maskService.maskExpression=this._maskExpressionArray[this._maskExpressionArray.length-1]})}}return Z.\u0275fac=function(F){return new(F||Z)(c.Y36(w.K0),c.Y36(T),c.Y36(N))},Z.\u0275dir=c.lG2({type:Z,selectors:[["input","mask",""],["textarea","mask",""]],hostBindings:function(F,Y){1&F&&c.NdJ("paste",function(){return Y.onPaste()})("ngModelChange",function(oe){return Y.onModelChange(oe)})("input",function(oe){return Y.onInput(oe)})("blur",function(){return Y.onBlur()})("click",function(oe){return Y.onClick(oe)})("keydown",function(oe){return Y.onKeyDown(oe)})},inputs:{maskExpression:["mask","maskExpression"],specialCharacters:"specialCharacters",patterns:"patterns",prefix:"prefix",suffix:"suffix",thousandSeparator:"thousandSeparator",decimalMarker:"decimalMarker",dropSpecialCharacters:"dropSpecialCharacters",hiddenInput:"hiddenInput",showMaskTyped:"showMaskTyped",placeHolderCharacter:"placeHolderCharacter",shownMaskExpression:"shownMaskExpression",showTemplate:"showTemplate",clearIfNotMatch:"clearIfNotMatch",validation:"validation",separatorLimit:"separatorLimit",allowNegativeNumbers:"allowNegativeNumbers",leadZeroDateTime:"leadZeroDateTime",triggerOnMaskChange:"triggerOnMaskChange"},outputs:{maskFilled:"maskFilled"},exportAs:["mask","ngxMask"],features:[c._Bn([{provide:A.JU,useExisting:(0,c.Gpc)(()=>Z),multi:!0},{provide:A.Cf,useExisting:(0,c.Gpc)(()=>Z),multi:!0},T]),c.TTD]}),Z})(),P=(()=>{class Z{constructor(F){this._maskService=F}transform(F,Y,ee=null){return F||"number"==typeof F?(ee&&(this._maskService.thousandSeparator=ee),"string"==typeof Y?this._maskService.applyMask(`${F}`,Y):this._maskService.applyMaskWithPattern(`${F}`,Y)):""}}return Z.\u0275fac=function(F){return new(F||Z)(c.Y36(v,16))},Z.\u0275pipe=c.Yjl({name:"mask",type:Z,pure:!0}),Z})();function B(Z,ue){return ue instanceof Function?{...Z,...ue()}:{...Z,...ue}}let G=(()=>{class Z{static forRoot(F){return{ngModule:Z,providers:[{provide:te,useValue:F},{provide:I,useValue:b},{provide:N,useFactory:B,deps:[I,te]},v]}}static forChild(){return{ngModule:Z}}}return Z.\u0275fac=function(F){return new(F||Z)},Z.\u0275mod=c.oAB({type:Z}),Z.\u0275inj=c.cJS({}),Z})();const U=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};U.KeyboardEvent||(U.KeyboardEvent=function(Z,ue){})},71661:(ut,fe,d)=>{"use strict";d.d(fe,{Vl:()=>I,i_:()=>b,vl:()=>G});var s=d(94650),c=d(89867),A=d(95698);function w(){return()=>{}}let N=(()=>{class U{}return U.\u0275fac=function(ue){return new(ue||U)},U.\u0275prov=s.Yz7({token:U,factory:U.\u0275fac}),U})(),te=(()=>{class U{constructor(ue,F,Y){this.actions$=ue,this.store=F,this.resetService=Y,this.actions$.pipe((0,c.nW)(c.XP),(0,A.q)(1)).subscribe(()=>this.resetService.initialState=this.store.snapshot()),this.actions$.pipe((0,c.nW)(c.JL)).subscribe(({addedStates:ee})=>this.resetService.initialState={...this.resetService.initialState,...ee})}}return U.\u0275fac=function(ue){return new(ue||U)(s.LFG(c.eX),s.LFG(c.yh),s.LFG(N))},U.\u0275prov=s.Yz7({token:U,factory:U.\u0275fac}),U})(),I=(()=>{class U{constructor(...ue){const F=T((0,s.X6Q)());this.statesToKeep=ue.reduce(F,[])}}return U.type="@@CLEAR_STATE",U})(),b=(()=>{class U{constructor(...ue){const F=T((0,s.X6Q)());this.statesToReset=ue.reduce(F,[])}}return U.type="@@RESET_STATE",U})(),p=(()=>{class U{constructor(...ue){const F=T((0,s.X6Q)());this.statesToKeep=ue.reduce(F,[])}}return U.type="@@RESET_STATE_ALL",U})(),_=(()=>{class U{constructor(...ue){const F=function W(U){return(Z,[ue,F])=>{const Y=v(ue,~U);return Y?[Z[0].concat(Y),Z[1].concat(F)]:Z}}((0,s.X6Q)()),[Y,ee]=ue.reduce(F,[[],[]]);this.statesToOverwrite=Y,this.values=ee}}return U.type="@@OVERWRITE_STATE",U})();function v(U,Z){const ue=new Object((0,c.C$)(U));return ue.name&&"defaults"in ue||-2!==Z?ue:(console.warn(`Reset Plugin Warning: ${ue.name} is not a state class.`),null)}function T(U){return(Z,ue)=>{const F=v(ue,~U);return F?Z.concat(F):Z}}let P=(()=>{class U{constructor(ue){this.resetService=ue}clearStates(ue,F){return F.reduce((Y,ee)=>{const oe=B(ee);if(!oe)return Y;const X=oe.split("."),y=(0,c.NA)(ue,oe);return X.reduceRight((k,$)=>$ in Y?{[$]:{...Y[$],...k}}:{[$]:k},y)},{})}overwriteStates(ue,F,Y){return F.forEach((ee,oe)=>{const X=B(ee);!X||(ue=(0,c.sO)(ue,X,Y[oe]))}),ue}resetStates(ue,F){return F.forEach(Y=>{const ee=B(Y);!ee||(ue=(0,c.sO)(ue,ee,typeof Y.defaults>"u"?{}:Y.defaults),Y.children&&(ue=this.resetStates(ue,Y.children.map(v))))}),ue}resetStatesAll(ue,F){const[Y,ee]=F.reduce((oe,X)=>{const y=B(X);return y&&(oe[0].push(X),oe[1].push((0,c.NA)(ue,y))),oe},[[],[]]);return this.overwriteStates(this.resetService.initialState,Y,ee)}handle(ue,F,Y){switch((0,c.f4)(F)){case I.type:ue=this.clearStates(ue,F.statesToKeep);break;case b.type:ue=this.resetStates(ue,F.statesToReset);break;case p.type:ue=this.resetStatesAll(ue,F.statesToKeep);break;case _.type:const{statesToOverwrite:oe,values:X}=F;ue=this.overwriteStates(ue,oe,X)}return Y(ue,F)}}return U.\u0275fac=function(ue){return new(ue||U)(s.LFG(N))},U.\u0275prov=s.Yz7({token:U,factory:U.\u0275fac}),U})();function B(U){return U.path}let G=(()=>{class U{static forRoot(){return{ngModule:U,providers:[N,te,{provide:s.ip1,useFactory:w,deps:[te],multi:!0},{provide:c.fN,useClass:P,multi:!0}]}}}return U.\u0275fac=function(ue){return new(ue||U)},U.\u0275mod=s.oAB({type:U}),U.\u0275inj=s.cJS({}),U})()},15861:(ut,fe,d)=>{"use strict";function s(A,w,N,te,I,b,p){try{var _=A[b](p),v=_.value}catch(T){return void N(T)}_.done?w(v):Promise.resolve(v).then(te,I)}function c(A){return function(){var w=this,N=arguments;return new Promise(function(te,I){var b=A.apply(w,N);function p(v){s(b,te,I,p,_,"next",v)}function _(v){s(b,te,I,p,_,"throw",v)}p(void 0)})}}d.d(fe,{Z:()=>c})}},ut=>{ut(ut.s=27810)}]);