marketplacepos 2.3.5 → 2.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Marketplace/146.e83dc5a5498a6408.js +1 -0
- package/Marketplace/{285.49b2ba063d4b00ee.js → 285.1f547ef81e91fc15.js} +1 -1
- package/Marketplace/288.9b236c96f7411cc2.js +1 -0
- package/Marketplace/327.36b24b9d7be528d8.js +1 -0
- package/Marketplace/402.76aaae9b8dfdc4fd.js +1 -0
- package/Marketplace/{458.3603afc9ee837d89.js → 458.455af1a928a7caa9.js} +1 -1
- package/Marketplace/466.02b13502d80588a2.js +1 -0
- package/Marketplace/472.2a25cc631023dd9d.js +1 -0
- package/Marketplace/512.84e77b4b4a7a1db7.js +1 -0
- package/Marketplace/717.5259a4803cce95ab.js +1 -0
- package/Marketplace/767.297995f3aba0da57.js +1 -0
- package/Marketplace/970.3f4eb2182e0ed6ff.js +1 -0
- package/Marketplace/index.html +2 -2
- package/Marketplace/{runtime.adca969740a88181.js → runtime.60ce88a49d8b2bf5.js} +1 -1
- package/package.json +1 -1
- package/Marketplace/146.0e22010167a973df.js +0 -1
- package/Marketplace/288.5eb0dd00192969d5.js +0 -1
- package/Marketplace/402.3008c738fd4e670a.js +0 -1
- package/Marketplace/466.e994f4030f9e75d8.js +0 -1
- package/Marketplace/472.ea26e5c662f8b122.js +0 -1
- package/Marketplace/512.eddb4675a9016de6.js +0 -1
- package/Marketplace/717.62ca448a74adc1c2.js +0 -1
- package/Marketplace/767.0ce42314dea8dfea.js +0 -1
- package/Marketplace/832.eff65819ccdc6213.js +0 -1
- package/Marketplace/970.71d78813a1237611.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkpos_marketplace=self.webpackChunkpos_marketplace||[]).push([[466],{7481:(ze,Me,a)=>{a.d(Me,{R:()=>q,p:()=>L});var r=a(4650),l=a(6895),t=a(4006),M=a(8252),ne=a(1589);function O(_,R){if(1&_){const B=r.EpF();r.ynx(0),r.TgZ(1,"div",18)(2,"input",19),r.NdJ("ngModelChange",function(z){r.CHM(B);const K=r.oxw();return r.KtG(K.text=z)})("keyup",function(){r.CHM(B);const z=r.oxw();return r.KtG(z.onTextChange())})("keyup.enter",function(){r.CHM(B);const z=r.oxw();return r.KtG(z.submit())}),r.qZA(),r.TgZ(3,"div")(4,"button",20),r.NdJ("click",function(){r.CHM(B);const z=r.oxw();return r.KtG(z.submit())}),r._UZ(5,"i",21),r.qZA()()(),r.BQk()}if(2&_){const B=r.oxw();r.xp6(2),r.Q6J("ngModel",B.text)("placeholder",B.searchBoxPlaceHolder)}}function _e(_,R){if(1&_){const B=r.EpF();r.TgZ(0,"div",22)(1,"a",23)(2,"i",24),r._UZ(3,"i",25),r.qZA()(),r.TgZ(4,"form",26),r.Hsn(5,2),r.TgZ(6,"button",27),r.NdJ("click",function(){r.CHM(B);const z=r.oxw();return r.KtG(z.submit())}),r._UZ(7,"i",28),r._uU(8,"Search "),r.qZA()()()}}const re=[[["actions"]],[["content"]],[["filters"]]],G=["actions","content","filters"];let L=(()=>{class _{constructor(B){this.sidebarService=B,this.onSubmit=new r.vpe,this.textChange=new r.vpe,this.searchBoxPlaceHolder=this.searchBoxPlaceHolder||"Search.."}submit(){this.inputText=this.text,this.onSubmit.emit(this.inputText)}onTextChange(){this.textChange.emit(this.text)}IsActive(B){return this.getMenuNameByUrl(window.location.href)==this.getMenuNameByUrl(B)}toggledropdown(B){B.stopPropagation()}getMenuNameByUrl(B){var j=B.split("#");if(j.length>1){var K=j[1].split("/");return""!=K[0]?K[0]:K[1]}return B}toggleMenu(){this.sidebarService.toggleSidebar()}}return _.\u0275fac=function(B){return new(B||_)(r.Y36(ne.g))},_.\u0275cmp=r.Xpm({type:_,selectors:[["mainpanel"]],inputs:{text:"text",Title:"Title",textButton:"textButton",hideSearchBox:"hideSearchBox",hideSearchDropdown:"hideSearchDropdown",searchBoxPlaceHolder:"searchBoxPlaceHolder",showBeside:"showBeside"},outputs:{onSubmit:"onSubmit",textChange:"textChange"},ngContentSelectors:G,decls:26,vars:4,consts:[[1,"navbar","navbar-default","fixed-top","navbar-expand-lg","fixed-top","d-block","d-print-none","bg-white"],[1,"row","px-7",2,"margin-top","9px"],[1,"col-auto","pe-0","order-0","g-0","ms-6"],[1,"navbar-brand","me-5","float-start","my-1",3,"title"],["id","action-filter",1,"col-lg-auto","col-12","d-lg-flex","collapse","order-lg-1","ps-0","order-2","gx-0"],[1,"search-box"],[1,"d-flex","h-100","align-items-center","justify-content-lg-start","justify-content-end"],[4,"ngIf"],["class","dropdown text-secondary ps-5",4,"ngIf"],[1,"col","d-lg-none","d-flex","justify-content-end","align-items-center","order-lg-2","order-1"],["type","button","data-bs-toggle","collapse","data-bs-target","#action-button","aria-expanded","false","aria-controls","collapseExample",1,"btn","btn-lg","btn-outline-secondary","d-lg-none","me-2"],["aria-hidden","true",1,"fa","fa-sort-down"],["type","button","data-bs-toggle","collapse","data-bs-target","#action-filter","aria-expanded","false","aria-controls","collapseExample",1,"btn","btn-lg","btn-outline-secondary","d-lg-none","me-2"],["aria-hidden","true",1,"fa","fa-search"],["type","button","aria-controls","navigation-index","aria-expanded","false","aria-label","Toggle navigation",1,"navbar-toggler","navbar-toggler-right","float-end","toggle-menu","ps-2","pe-0",2,"width","max-content","height","max-content",3,"click"],[1,"navbar-toggler-bar","burger-lines"],["id","action-button",1,"col-lg","col-12","d-lg-flex","justify-content-end","collapse","order-3"],[1,"main-panel-content"],[1,"input-group",2,"width","13.375rem"],["type","text",1,"form-control",2,"font-size","1rem",3,"ngModel","placeholder","ngModelChange","keyup","keyup.enter"],["type","button",1,"btn","btn-outline-secondary","fw-bold","rounded-0","border-start-0",3,"click"],[1,"fa","fa-search"],[1,"dropdown","text-secondary","ps-5"],["id","dropdown-filter","role","button","data-bs-toggle","dropdown","data-bs-auto-close","outside","aria-expanded","false",1,"text-muted","h5"],[1,"fa","fa-filter"],[1,"fa-solid","fa-caret-down"],[1,"dropdown-menu",2,"left","auto !important"],["title","Click to filter!",1,"btn","btn-outline-secondary",3,"click"],[1,"fa","fa-search","pointer","me-1"]],template:function(B,j){1&B&&(r.F$t(re),r.TgZ(0,"nav",0)(1,"div",1)(2,"div",2)(3,"h1",3),r._uU(4),r.qZA()(),r.TgZ(5,"div",4)(6,"div",5)(7,"div",6)(8,"div")(9,"div"),r.YNc(10,O,6,2,"ng-container",7),r.qZA()(),r.YNc(11,_e,9,0,"div",8),r.qZA()()(),r.TgZ(12,"div",9)(13,"button",10),r._UZ(14,"i",11),r.qZA(),r.TgZ(15,"button",12),r._UZ(16,"i",13),r.qZA(),r.TgZ(17,"button",14),r.NdJ("click",function(){return j.toggleMenu()}),r._UZ(18,"span",15)(19,"span",15)(20,"span",15),r.qZA()(),r.TgZ(21,"div",16),r.Hsn(22),r.qZA()()(),r.TgZ(23,"div",17)(24,"div"),r.Hsn(25,1),r.qZA()()),2&B&&(r.xp6(3),r.s9C("title",j.Title),r.xp6(1),r.hij(" ",j.Title," "),r.xp6(6),r.Q6J("ngIf",!j.hideSearchBox),r.xp6(1),r.Q6J("ngIf",!j.hideSearchDropdown))},dependencies:[l.O5,t._Y,t.Fj,t.JJ,t.JL,t.On,t.F],styles:[".dropdown .dropdown-menu.show{top:100%!important;transform:none!important;z-index:10000;cursor:pointer}.search-box .dropdown-menu{border-radius:4px!important;margin:-5px 0 0!important;padding:10px}.search-box .dropdown-menu div.d-flex>div:not(:last-child){margin-right:10px}.search-box .dropdown-menu div[container]{width:200px}.search-box .dropdown-menu div[container]>div{margin:0 0 12px}.search-box .dropdown-menu div[container]>div>h6{margin-bottom:5px}.search-box .dropdown-menu div[container]>div>input,.search-box .dropdown-menu div[container]>div>select{width:100%;padding:7px 5px 6px;border:solid 1px #ddd}.search-box .dropdown-menu div[container]>div>input[datepicker]{width:95px}.search-box .dropdown-menu div[container]>div radioyesnob ul{margin:10px 0 0}.search-box .dropdown-menu .more{background-color:#fff;position:absolute;bottom:-15px;width:5rem}.search-box .dropdown-menu div[container]>div>h6{font-size:12px}.search-box .form-control{height:auto}.navbar .navbar-brand{white-space:nowrap;max-width:24.75rem;overflow:hidden;text-overflow:ellipsis;text-transform:capitalize}@media (max-width: 468px){.navbar .navbar-brand{white-space:nowrap;max-width:7em;overflow:hidden;text-overflow:ellipsis}}@media (max-width: 480px){.navbar.page-nav{height:auto}}@media (min-width: 1366px){.navbar.page-nav{height:44px}}\n"],encapsulation:2}),_})(),q=(()=>{class _{}return _.\u0275fac=function(B){return new(B||_)},_.\u0275mod=r.oAB({type:_}),_.\u0275inj=r.cJS({imports:[l.ez,t.u5,M.Bz]}),_})()},3466:(ze,Me,a)=>{a.r(Me),a.d(Me,{MenuModule:()=>dt});var c,r=a(6895),l=a(4006),t=a(8252),M=a(8063),ne=(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var h in n)n.hasOwnProperty(h)&&(o[h]=n[h])},function(o,n){function h(){this.constructor=o}c(o,n),o.prototype=null===n?Object.create(n):(h.prototype=n.prototype,new h)}),O=function(c){function o(n,h){var u=this,N=this.constructor.prototype;return(u=c.call(this,n)||this).statusCode=h,u.__proto__=N,u}return ne(o,c),o}(Error),_e=function(c){function o(n){void 0===n&&(n="A timeout occurred.");var m=this,u=this.constructor.prototype;return(m=c.call(this,n)||this).__proto__=u,m}return ne(o,c),o}(Error),re=function(c){function o(n){void 0===n&&(n="An abort occurred.");var m=this,u=this.constructor.prototype;return(m=c.call(this,n)||this).__proto__=u,m}return ne(o,c),o}(Error),G=Object.assign||function(c){for(var o,n=1,h=arguments.length;n<h;n++)for(var m in o=arguments[n])Object.prototype.hasOwnProperty.call(o,m)&&(c[m]=o[m]);return c},L=function c(o,n,h){this.statusCode=o,this.statusText=n,this.content=h},q=function(){function c(){}return c.prototype.get=function(o,n){return this.send(G({},n,{method:"GET",url:o}))},c.prototype.post=function(o,n){return this.send(G({},n,{method:"POST",url:o}))},c.prototype.delete=function(o,n){return this.send(G({},n,{method:"DELETE",url:o}))},c.prototype.getCookieString=function(o){return""},c}(),_=(()=>(function(c){c[c.Trace=0]="Trace",c[c.Debug=1]="Debug",c[c.Information=2]="Information",c[c.Warning=3]="Warning",c[c.Error=4]="Error",c[c.Critical=5]="Critical",c[c.None=6]="None"}(_||(_={})),_))(),R=function(){function c(){}return c.prototype.log=function(o,n){},c.instance=new c,c}(),z=function(){function c(){}return c.isRequired=function(o,n){if(null==o)throw new Error("The '"+n+"' argument is required.")},c.isIn=function(o,n,h){if(!(o in n))throw new Error("Unknown "+h+" value: "+o+".")},c}(),K=function(){function c(){}return Object.defineProperty(c,"isBrowser",{get:function(){return"object"==typeof window},enumerable:!0,configurable:!0}),Object.defineProperty(c,"isWebWorker",{get:function(){return"object"==typeof self&&"importScripts"in self},enumerable:!0,configurable:!0}),Object.defineProperty(c,"isNode",{get:function(){return!this.isBrowser&&!this.isWebWorker},enumerable:!0,configurable:!0}),c}();function ge(c,o){var n="";return xe(c)?(n="Binary data of length "+c.byteLength,o&&(n+=". Content: '"+function ke(c){var o=new Uint8Array(c),n="";return o.forEach(function(h){n+="0x"+(h<16?"0":"")+h.toString(16)+" "}),n.substr(0,n.length-1)}(c)+"'")):"string"==typeof c&&(n="String data of length "+c.length,o&&(n+=". Content: '"+c+"'")),n}function xe(c){return c&&typeof ArrayBuffer<"u"&&(c instanceof ArrayBuffer||c.constructor&&"ArrayBuffer"===c.constructor.name)}function de(c,o,n,h,m,u,N){return function(c,o,n,h){return new(n||(n=Promise))(function(m,u){function N(g){try{$(h.next(g))}catch(ue){u(ue)}}function J(g){try{$(h.throw(g))}catch(ue){u(ue)}}function $(g){g.done?m(g.value):new n(function(ue){ue(g.value)}).then(N,J)}$((h=h.apply(c,[])).next())})}(this,0,void 0,function(){var J,$,g,ue,He;return function(c,o){var h,m,u,N,n={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]};return N={next:J(0),throw:J(1),return:J(2)},"function"==typeof Symbol&&(N[Symbol.iterator]=function(){return this}),N;function J(g){return function(ue){return function $(g){if(h)throw new TypeError("Generator is already executing.");for(;n;)try{if(h=1,m&&(u=2&g[0]?m.return:g[0]?m.throw||((u=m.return)&&u.call(m),0):m.next)&&!(u=u.call(m,g[1])).done)return u;switch(m=0,u&&(g=[2&g[0],u.value]),g[0]){case 0:case 1:u=g;break;case 4:return n.label++,{value:g[1],done:!1};case 5:n.label++,m=g[1],g=[0];continue;case 7:g=n.ops.pop(),n.trys.pop();continue;default:if(!(u=(u=n.trys).length>0&&u[u.length-1])&&(6===g[0]||2===g[0])){n=0;continue}if(3===g[0]&&(!u||g[1]>u[0]&&g[1]<u[3])){n.label=g[1];break}if(6===g[0]&&n.label<u[1]){n.label=u[1],u=g;break}if(u&&n.label<u[2]){n.label=u[2],n.ops.push(g);break}u[2]&&n.ops.pop(),n.trys.pop();continue}g=o.call(c,n)}catch(ue){g=[6,ue],m=0}finally{h=u=0}if(5&g[0])throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}([g,ue])}}}(this,function(Ye){switch(Ye.label){case 0:return m?[4,m()]:[3,2];case 1:(g=Ye.sent())&&((J={}).Authorization="Bearer "+g,$=J),Ye.label=2;case 2:return c.log(_.Trace,"("+o+" transport) sending data. "+ge(u,N)+"."),ue=xe(u)?"arraybuffer":"text",[4,n.post(h,{content:u,headers:$,responseType:ue})];case 3:return He=Ye.sent(),c.log(_.Trace,"("+o+" transport) request complete. Response status: "+He.statusCode+"."),[2]}})})}var ae,b=function(){function c(o,n){this.subject=o,this.observer=n}return c.prototype.dispose=function(){var o=this.subject.observers.indexOf(this.observer);o>-1&&this.subject.observers.splice(o,1),0===this.subject.observers.length&&this.subject.cancelCallback&&this.subject.cancelCallback().catch(function(n){})},c}(),x=function(){function c(o){this.minimumLogLevel=o,this.outputConsole=console}return c.prototype.log=function(o,n){if(o>=this.minimumLogLevel)switch(o){case _.Critical:case _.Error:this.outputConsole.error("["+(new Date).toISOString()+"] "+_[o]+": "+n);break;case _.Warning:this.outputConsole.warn("["+(new Date).toISOString()+"] "+_[o]+": "+n);break;case _.Information:this.outputConsole.info("["+(new Date).toISOString()+"] "+_[o]+": "+n);break;default:this.outputConsole.log("["+(new Date).toISOString()+"] "+_[o]+": "+n)}},c}(),v=function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var h in n)n.hasOwnProperty(h)&&(o[h]=n[h])};return function(o,n){function h(){this.constructor=o}c(o,n),o.prototype=null===n?Object.create(n):(h.prototype=n.prototype,new h)}}(),D=Object.assign||function(c){for(var o,n=1,h=arguments.length;n<h;n++)for(var m in o=arguments[n])Object.prototype.hasOwnProperty.call(o,m)&&(c[m]=o[m]);return c};if(typeof XMLHttpRequest>"u"){var Se=require;ae=Se("request")}var Ce=function(c){function o(n){var h=c.call(this)||this;if(typeof ae>"u")throw new Error("The 'request' module could not be loaded.");return h.logger=n,h.cookieJar=ae.jar(),h.request=ae.defaults({jar:h.cookieJar}),h}return v(o,c),o.prototype.send=function(n){var h=this;return n.abortSignal&&n.abortSignal.aborted?Promise.reject(new re):new Promise(function(m,u){var N;N=xe(n.content)?Buffer.from(n.content):n.content||"";var J=h.request(n.url,{body:N,encoding:"arraybuffer"===n.responseType?null:"utf8",headers:D({"X-Requested-With":"XMLHttpRequest"},n.headers),method:n.method,timeout:n.timeout},function($,g,ue){if(n.abortSignal&&(n.abortSignal.onabort=null),$)return"ETIMEDOUT"===$.code&&(h.logger.log(_.Warning,"Timeout from HTTP request."),u(new _e)),h.logger.log(_.Warning,"Error from HTTP request. "+$),void u($);g.statusCode>=200&&g.statusCode<300?m(new L(g.statusCode,g.statusMessage||"",ue)):u(new O(g.statusMessage||"",g.statusCode||0))});n.abortSignal&&(n.abortSignal.onabort=function(){J.abort(),u(new re)})})},o.prototype.getCookieString=function(n){return this.cookieJar.getCookieString(n)},o}(q),Ae=function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var h in n)n.hasOwnProperty(h)&&(o[h]=n[h])};return function(o,n){function h(){this.constructor=o}c(o,n),o.prototype=null===n?Object.create(n):(h.prototype=n.prototype,new h)}}(),Oe=function(c){function o(n){var h=c.call(this)||this;return h.logger=n,h}return Ae(o,c),o.prototype.send=function(n){var h=this;return n.abortSignal&&n.abortSignal.aborted?Promise.reject(new re):n.method?n.url?new Promise(function(m,u){var N=new XMLHttpRequest;N.open(n.method,n.url,!0),N.withCredentials=!0,N.setRequestHeader("X-Requested-With","XMLHttpRequest"),N.setRequestHeader("Content-Type","text/plain;charset=UTF-8");var J=n.headers;J&&Object.keys(J).forEach(function($){N.setRequestHeader($,J[$])}),n.responseType&&(N.responseType=n.responseType),n.abortSignal&&(n.abortSignal.onabort=function(){N.abort(),u(new re)}),n.timeout&&(N.timeout=n.timeout),N.onload=function(){n.abortSignal&&(n.abortSignal.onabort=null),N.status>=200&&N.status<300?m(new L(N.status,N.statusText,N.response||N.responseText)):u(new O(N.statusText,N.status))},N.onerror=function(){h.logger.log(_.Warning,"Error from HTTP request. "+N.status+": "+N.statusText+"."),u(new O(N.statusText,N.status))},N.ontimeout=function(){h.logger.log(_.Warning,"Timeout from HTTP request."),u(new _e)},N.send(n.content||"")}):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))},o}(q),ye=function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var h in n)n.hasOwnProperty(h)&&(o[h]=n[h])};return function(o,n){function h(){this.constructor=o}c(o,n),o.prototype=null===n?Object.create(n):(h.prototype=n.prototype,new h)}}(),Ee=function(c){function o(n){var h=c.call(this)||this;return h.httpClient=typeof XMLHttpRequest<"u"?new Oe(n):new Ce(n),h}return ye(o,c),o.prototype.send=function(n){return n.abortSignal&&n.abortSignal.aborted?Promise.reject(new re):n.method?n.url?this.httpClient.send(n):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))},o.prototype.getCookieString=function(n){return this.httpClient.getCookieString(n)},o}(q),H=function(){function c(){}return c.write=function(o){return""+o+c.RecordSeparator},c.parse=function(o){if(o[o.length-1]!==c.RecordSeparator)throw new Error("Message is incomplete.");var n=o.split(c.RecordSeparator);return n.pop(),n},c.RecordSeparatorCode=30,c.RecordSeparator=String.fromCharCode(c.RecordSeparatorCode),c}(),X=function(){function c(){}return c.prototype.writeHandshakeRequest=function(o){return H.write(JSON.stringify(o))},c.prototype.parseHandshakeResponse=function(o){var h,m;if(xe(o)||typeof Buffer<"u"&&o instanceof Buffer){var u=new Uint8Array(o);if(-1===(N=u.indexOf(H.RecordSeparatorCode)))throw new Error("Message is incomplete.");var J=N+1;h=String.fromCharCode.apply(null,u.slice(0,J)),m=u.byteLength>J?u.slice(J).buffer:null}else{var N,$=o;if(-1===(N=$.indexOf(H.RecordSeparator)))throw new Error("Message is incomplete.");h=$.substring(0,J=N+1),m=$.length>J?$.substring(J):null}var g=H.parse(h),ue=JSON.parse(g[0]);if(ue.type)throw new Error("Expected a handshake response from the server.");return[m,ue]},c}(),oe=(()=>(function(c){c[c.Invocation=1]="Invocation",c[c.StreamItem=2]="StreamItem",c[c.Completion=3]="Completion",c[c.StreamInvocation=4]="StreamInvocation",c[c.CancelInvocation=5]="CancelInvocation",c[c.Ping=6]="Ping",c[c.Close=7]="Close"}(oe||(oe={})),oe))(),F=function(){function c(){this.observers=[]}return c.prototype.next=function(o){for(var n=0,h=this.observers;n<h.length;n++)h[n].next(o)},c.prototype.error=function(o){for(var n=0,h=this.observers;n<h.length;n++){var m=h[n];m.error&&m.error(o)}},c.prototype.complete=function(){for(var o=0,n=this.observers;o<n.length;o++){var h=n[o];h.complete&&h.complete()}},c.prototype.subscribe=function(o){return this.observers.push(o),new b(this,o)},c}(),Z=function(c,o,n,h){return new(n||(n=Promise))(function(m,u){function N(g){try{$(h.next(g))}catch(ue){u(ue)}}function J(g){try{$(h.throw(g))}catch(ue){u(ue)}}function $(g){g.done?m(g.value):new n(function(ue){ue(g.value)}).then(N,J)}$((h=h.apply(c,o||[])).next())})},ie=function(c,o){var h,m,u,N,n={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]};return N={next:J(0),throw:J(1),return:J(2)},"function"==typeof Symbol&&(N[Symbol.iterator]=function(){return this}),N;function J(g){return function(ue){return function $(g){if(h)throw new TypeError("Generator is already executing.");for(;n;)try{if(h=1,m&&(u=2&g[0]?m.return:g[0]?m.throw||((u=m.return)&&u.call(m),0):m.next)&&!(u=u.call(m,g[1])).done)return u;switch(m=0,u&&(g=[2&g[0],u.value]),g[0]){case 0:case 1:u=g;break;case 4:return n.label++,{value:g[1],done:!1};case 5:n.label++,m=g[1],g=[0];continue;case 7:g=n.ops.pop(),n.trys.pop();continue;default:if(!(u=(u=n.trys).length>0&&u[u.length-1])&&(6===g[0]||2===g[0])){n=0;continue}if(3===g[0]&&(!u||g[1]>u[0]&&g[1]<u[3])){n.label=g[1];break}if(6===g[0]&&n.label<u[1]){n.label=u[1],u=g;break}if(u&&n.label<u[2]){n.label=u[2],n.ops.push(g);break}u[2]&&n.ops.pop(),n.trys.pop();continue}g=o.call(c,n)}catch(ue){g=[6,ue],m=0}finally{h=u=0}if(5&g[0])throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}([g,ue])}}},ve=(()=>(function(c){c.Disconnected="Disconnected",c.Connecting="Connecting",c.Connected="Connected",c.Disconnecting="Disconnecting",c.Reconnecting="Reconnecting"}(ve||(ve={})),ve))(),P=function(){function c(o,n,h,m){var u=this;this.nextKeepAlive=0,z.isRequired(o,"connection"),z.isRequired(n,"logger"),z.isRequired(h,"protocol"),this.serverTimeoutInMilliseconds=3e4,this.keepAliveIntervalInMilliseconds=15e3,this.logger=n,this.protocol=h,this.connection=o,this.reconnectPolicy=m,this.handshakeProtocol=new X,this.connection.onreceive=function(N){return u.processIncomingData(N)},this.connection.onclose=function(N){return u.connectionClosed(N)},this.callbacks={},this.methods={},this.closedCallbacks=[],this.reconnectingCallbacks=[],this.reconnectedCallbacks=[],this.invocationId=0,this.receivedHandshakeResponse=!1,this.connectionState=ve.Disconnected,this.connectionStarted=!1,this.cachedPingMessage=this.protocol.writeMessage({type:oe.Ping})}return c.create=function(o,n,h,m){return new c(o,n,h,m)},Object.defineProperty(c.prototype,"state",{get:function(){return this.connectionState},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"connectionId",{get:function(){return this.connection&&this.connection.connectionId||null},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"baseUrl",{get:function(){return this.connection.baseUrl||""},set:function(o){if(this.connectionState!==ve.Disconnected&&this.connectionState!==ve.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!o)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=o},enumerable:!0,configurable:!0}),c.prototype.start=function(){return this.startPromise=this.startWithStateTransitions(),this.startPromise},c.prototype.startWithStateTransitions=function(){return Z(this,void 0,void 0,function(){var o;return ie(this,function(n){switch(n.label){case 0:if(this.connectionState!==ve.Disconnected)return[2,Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."))];this.connectionState=ve.Connecting,this.logger.log(_.Debug,"Starting HubConnection."),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.startInternal()];case 2:return n.sent(),this.connectionState=ve.Connected,this.connectionStarted=!0,this.logger.log(_.Debug,"HubConnection connected successfully."),[3,4];case 3:return o=n.sent(),this.connectionState=ve.Disconnected,this.logger.log(_.Debug,"HubConnection failed to start successfully because of error '"+o+"'."),[2,Promise.reject(o)];case 4:return[2]}})})},c.prototype.startInternal=function(){return Z(this,void 0,void 0,function(){var o,n,h,m=this;return ie(this,function(u){switch(u.label){case 0:return this.stopDuringStartError=void 0,this.receivedHandshakeResponse=!1,o=new Promise(function(N,J){m.handshakeResolver=N,m.handshakeRejecter=J}),[4,this.connection.start(this.protocol.transferFormat)];case 1:u.sent(),u.label=2;case 2:return u.trys.push([2,5,,7]),n={protocol:this.protocol.name,version:this.protocol.version},this.logger.log(_.Debug,"Sending handshake request."),[4,this.sendMessage(this.handshakeProtocol.writeHandshakeRequest(n))];case 3:return u.sent(),this.logger.log(_.Information,"Using HubProtocol '"+this.protocol.name+"'."),this.cleanupTimeout(),this.resetTimeoutPeriod(),this.resetKeepAliveInterval(),[4,o];case 4:if(u.sent(),this.stopDuringStartError)throw this.stopDuringStartError;return[3,7];case 5:return h=u.sent(),this.logger.log(_.Debug,"Hub handshake failed with error '"+h+"' during start(). Stopping HubConnection."),this.cleanupTimeout(),this.cleanupPingTimer(),[4,this.connection.stop(h)];case 6:throw u.sent(),h;case 7:return[2]}})})},c.prototype.stop=function(){return Z(this,void 0,void 0,function(){var o;return ie(this,function(h){switch(h.label){case 0:return o=this.startPromise,this.stopPromise=this.stopInternal(),[4,this.stopPromise];case 1:h.sent(),h.label=2;case 2:return h.trys.push([2,4,,5]),[4,o];case 3:case 4:return h.sent(),[3,5];case 5:return[2]}})})},c.prototype.stopInternal=function(o){return this.connectionState===ve.Disconnected?(this.logger.log(_.Debug,"Call to HubConnection.stop("+o+") ignored because it is already in the disconnected state."),Promise.resolve()):this.connectionState===ve.Disconnecting?(this.logger.log(_.Debug,"Call to HttpConnection.stop("+o+") ignored because the connection is already in the disconnecting state."),this.stopPromise):(this.connectionState=ve.Disconnecting,this.logger.log(_.Debug,"Stopping HubConnection."),this.reconnectDelayHandle?(this.logger.log(_.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this.reconnectDelayHandle),this.reconnectDelayHandle=void 0,this.completeClose(),Promise.resolve()):(this.cleanupTimeout(),this.cleanupPingTimer(),this.stopDuringStartError=o||new Error("The connection was stopped before the hub handshake could complete."),this.connection.stop(o)))},c.prototype.stream=function(o){for(var n=this,h=[],m=1;m<arguments.length;m++)h[m-1]=arguments[m];var g,u=this.replaceStreamingParams(h),N=u[0],J=u[1],$=this.createStreamInvocation(o,h,J),ue=new F;return ue.cancelCallback=function(){var He=n.createCancelInvocation($.invocationId);return delete n.callbacks[$.invocationId],g.then(function(){return n.sendWithProtocol(He)})},this.callbacks[$.invocationId]=function(He,Ye){Ye?ue.error(Ye):He&&(He.type===oe.Completion?He.error?ue.error(new Error(He.error)):ue.complete():ue.next(He.item))},g=this.sendWithProtocol($).catch(function(He){ue.error(He),delete n.callbacks[$.invocationId]}),this.launchStreams(N,g),ue},c.prototype.sendMessage=function(o){return this.resetKeepAliveInterval(),this.connection.send(o)},c.prototype.sendWithProtocol=function(o){return this.sendMessage(this.protocol.writeMessage(o))},c.prototype.send=function(o){for(var n=[],h=1;h<arguments.length;h++)n[h-1]=arguments[h];var m=this.replaceStreamingParams(n),u=m[0],N=m[1],J=this.sendWithProtocol(this.createInvocation(o,n,!0,N));return this.launchStreams(u,J),J},c.prototype.invoke=function(o){for(var n=this,h=[],m=1;m<arguments.length;m++)h[m-1]=arguments[m];var u=this.replaceStreamingParams(h),N=u[0],J=u[1],$=this.createInvocation(o,h,!1,J),g=new Promise(function(ue,He){n.callbacks[$.invocationId]=function(tt,ot){ot?He(ot):tt&&(tt.type===oe.Completion?tt.error?He(new Error(tt.error)):ue(tt.result):He(new Error("Unexpected message type: "+tt.type)))};var Ye=n.sendWithProtocol($).catch(function(tt){He(tt),delete n.callbacks[$.invocationId]});n.launchStreams(N,Ye)});return g},c.prototype.on=function(o,n){!o||!n||(o=o.toLowerCase(),this.methods[o]||(this.methods[o]=[]),-1===this.methods[o].indexOf(n)&&this.methods[o].push(n))},c.prototype.off=function(o,n){if(o){o=o.toLowerCase();var h=this.methods[o];if(h)if(n){var m=h.indexOf(n);-1!==m&&(h.splice(m,1),0===h.length&&delete this.methods[o])}else delete this.methods[o]}},c.prototype.onclose=function(o){o&&this.closedCallbacks.push(o)},c.prototype.onreconnecting=function(o){o&&this.reconnectingCallbacks.push(o)},c.prototype.onreconnected=function(o){o&&this.reconnectedCallbacks.push(o)},c.prototype.processIncomingData=function(o){if(this.cleanupTimeout(),this.receivedHandshakeResponse||(o=this.processHandshakeResponse(o),this.receivedHandshakeResponse=!0),o)for(var h=0,m=this.protocol.parseMessages(o,this.logger);h<m.length;h++){var u=m[h];switch(u.type){case oe.Invocation:this.invokeClientMethod(u);break;case oe.StreamItem:case oe.Completion:var N=this.callbacks[u.invocationId];N&&(u.type===oe.Completion&&delete this.callbacks[u.invocationId],N(u));break;case oe.Ping:break;case oe.Close:this.logger.log(_.Information,"Close message received from server.");var J=u.error?new Error("Server returned an error on close: "+u.error):void 0;!0===u.allowReconnect?this.connection.stop(J):this.stopPromise=this.stopInternal(J);break;default:this.logger.log(_.Warning,"Invalid message type: "+u.type+".")}}this.resetTimeoutPeriod()},c.prototype.processHandshakeResponse=function(o){var n,h,m,u;try{m=(n=this.handshakeProtocol.parseHandshakeResponse(o))[0],h=n[1]}catch(J){this.logger.log(_.Error,u="Error parsing handshake response: "+J);var N=new Error(u);throw this.handshakeRejecter(N),N}if(h.error)throw this.logger.log(_.Error,u="Server returned handshake error: "+h.error),N=new Error(u),this.handshakeRejecter(N),N;return this.logger.log(_.Debug,"Server handshake complete."),this.handshakeResolver(),m},c.prototype.resetKeepAliveInterval=function(){this.connection.features.inherentKeepAlive||(this.nextKeepAlive=(new Date).getTime()+this.keepAliveIntervalInMilliseconds,this.cleanupPingTimer())},c.prototype.resetTimeoutPeriod=function(){var o=this;if(!(this.connection.features&&this.connection.features.inherentKeepAlive||(this.timeoutHandle=setTimeout(function(){return o.serverTimeout()},this.serverTimeoutInMilliseconds),void 0!==this.pingServerHandle))){var n=this.nextKeepAlive-(new Date).getTime();n<0&&(n=0),this.pingServerHandle=setTimeout(function(){return Z(o,void 0,void 0,function(){return ie(this,function(m){switch(m.label){case 0:if(this.connectionState!==ve.Connected)return[3,4];m.label=1;case 1:return m.trys.push([1,3,,4]),[4,this.sendMessage(this.cachedPingMessage)];case 2:return m.sent(),[3,4];case 3:return m.sent(),this.cleanupPingTimer(),[3,4];case 4:return[2]}})})},n)}},c.prototype.serverTimeout=function(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))},c.prototype.invokeClientMethod=function(o){var n=this,h=this.methods[o.target.toLowerCase()];if(h){try{h.forEach(function(u){return u.apply(n,o.arguments)})}catch(u){this.logger.log(_.Error,"A callback for the method "+o.target.toLowerCase()+" threw error '"+u+"'.")}if(o.invocationId){var m="Server requested a response, which is not supported in this version of the client.";this.logger.log(_.Error,m),this.stopPromise=this.stopInternal(new Error(m))}}else this.logger.log(_.Warning,"No client method with the name '"+o.target+"' found.")},c.prototype.connectionClosed=function(o){this.logger.log(_.Debug,"HubConnection.connectionClosed("+o+") called while in state "+this.connectionState+"."),this.stopDuringStartError=this.stopDuringStartError||o||new Error("The underlying connection was closed before the hub handshake could complete."),this.handshakeResolver&&this.handshakeResolver(),this.cancelCallbacksWithError(o||new Error("Invocation canceled due to the underlying connection being closed.")),this.cleanupTimeout(),this.cleanupPingTimer(),this.connectionState===ve.Disconnecting?this.completeClose(o):this.connectionState===ve.Connected&&this.reconnectPolicy?this.reconnect(o):this.connectionState===ve.Connected&&this.completeClose(o)},c.prototype.completeClose=function(o){var n=this;if(this.connectionStarted){this.connectionState=ve.Disconnected,this.connectionStarted=!1;try{this.closedCallbacks.forEach(function(h){return h.apply(n,[o])})}catch(h){this.logger.log(_.Error,"An onclose callback called with error '"+o+"' threw error '"+h+"'.")}}},c.prototype.reconnect=function(o){return Z(this,void 0,void 0,function(){var n,h,m,u,N,J=this;return ie(this,function($){switch($.label){case 0:if(n=Date.now(),h=0,m=void 0!==o?o:new Error("Attempting to reconnect due to a unknown error."),null===(u=this.getNextRetryDelay(h++,0,m)))return this.logger.log(_.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),this.completeClose(o),[2];if(this.connectionState=ve.Reconnecting,this.logger.log(_.Information,o?"Connection reconnecting because of error '"+o+"'.":"Connection reconnecting."),this.onreconnecting){try{this.reconnectingCallbacks.forEach(function(g){return g.apply(J,[o])})}catch(g){this.logger.log(_.Error,"An onreconnecting callback called with error '"+o+"' threw error '"+g+"'.")}if(this.connectionState!==ve.Reconnecting)return this.logger.log(_.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting."),[2]}$.label=1;case 1:return null===u?[3,7]:(this.logger.log(_.Information,"Reconnect attempt number "+h+" will start in "+u+" ms."),[4,new Promise(function(g){J.reconnectDelayHandle=setTimeout(g,u)})]);case 2:if($.sent(),this.reconnectDelayHandle=void 0,this.connectionState!==ve.Reconnecting)return this.logger.log(_.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting."),[2];$.label=3;case 3:return $.trys.push([3,5,,6]),[4,this.startInternal()];case 4:if($.sent(),this.connectionState=ve.Connected,this.logger.log(_.Information,"HubConnection reconnected successfully."),this.onreconnected)try{this.reconnectedCallbacks.forEach(function(g){return g.apply(J,[J.connection.connectionId])})}catch(g){this.logger.log(_.Error,"An onreconnected callback called with connectionId '"+this.connection.connectionId+"; threw error '"+g+"'.")}return[2];case 5:return N=$.sent(),this.logger.log(_.Information,"Reconnect attempt failed because of error '"+N+"'."),this.connectionState!==ve.Reconnecting?(this.logger.log(_.Debug,"Connection moved to the '"+this.connectionState+"' from the reconnecting state during reconnect attempt. Done reconnecting."),this.connectionState===ve.Disconnecting&&this.completeClose(),[2]):(m=N instanceof Error?N:new Error(N.toString()),u=this.getNextRetryDelay(h++,Date.now()-n,m),[3,6]);case 6:return[3,1];case 7:return this.logger.log(_.Information,"Reconnect retries have been exhausted after "+(Date.now()-n)+" ms and "+h+" failed attempts. Connection disconnecting."),this.completeClose(),[2]}})})},c.prototype.getNextRetryDelay=function(o,n,h){try{return this.reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:n,previousRetryCount:o,retryReason:h})}catch(m){return this.logger.log(_.Error,"IRetryPolicy.nextRetryDelayInMilliseconds("+o+", "+n+") threw error '"+m+"'."),null}},c.prototype.cancelCallbacksWithError=function(o){var n=this.callbacks;this.callbacks={},Object.keys(n).forEach(function(h){(0,n[h])(null,o)})},c.prototype.cleanupPingTimer=function(){this.pingServerHandle&&(clearTimeout(this.pingServerHandle),this.pingServerHandle=void 0)},c.prototype.cleanupTimeout=function(){this.timeoutHandle&&clearTimeout(this.timeoutHandle)},c.prototype.createInvocation=function(o,n,h,m){if(h)return{arguments:n,streamIds:m,target:o,type:oe.Invocation};var u=this.invocationId;return this.invocationId++,{arguments:n,invocationId:u.toString(),streamIds:m,target:o,type:oe.Invocation}},c.prototype.launchStreams=function(o,n){var h=this;if(0!==o.length){n||(n=Promise.resolve());var m=function(N){o[N].subscribe({complete:function(){n=n.then(function(){return h.sendWithProtocol(h.createCompletionMessage(N))})},error:function(J){var $;$=J instanceof Error?J.message:J&&J.toString?J.toString():"Unknown error",n=n.then(function(){return h.sendWithProtocol(h.createCompletionMessage(N,$))})},next:function(J){n=n.then(function(){return h.sendWithProtocol(h.createStreamItemMessage(N,J))})}})};for(var u in o)m(u)}},c.prototype.replaceStreamingParams=function(o){for(var n=[],h=[],m=0;m<o.length;m++){var u=o[m];if(this.isObservable(u)){var N=this.invocationId;this.invocationId++,n[N]=u,h.push(N.toString()),o.splice(m,1)}}return[n,h]},c.prototype.isObservable=function(o){return o&&o.subscribe&&"function"==typeof o.subscribe},c.prototype.createStreamInvocation=function(o,n,h){var m=this.invocationId;return this.invocationId++,{arguments:n,invocationId:m.toString(),streamIds:h,target:o,type:oe.StreamInvocation}},c.prototype.createCancelInvocation=function(o){return{invocationId:o,type:oe.CancelInvocation}},c.prototype.createStreamItemMessage=function(o,n){return{invocationId:o,item:n,type:oe.StreamItem}},c.prototype.createCompletionMessage=function(o,n,h){return n?{error:n,invocationId:o,type:oe.Completion}:{invocationId:o,result:h,type:oe.Completion}},c}(),W=[0,2e3,1e4,3e4,null],le=function(){function c(o){this.retryDelays=void 0!==o?o.concat([null]):W}return c.prototype.nextRetryDelayInMilliseconds=function(o){return this.retryDelays[o.previousRetryCount]},c}(),ce=(()=>(function(c){c[c.None=0]="None",c[c.WebSockets=1]="WebSockets",c[c.ServerSentEvents=2]="ServerSentEvents",c[c.LongPolling=4]="LongPolling"}(ce||(ce={})),ce))(),fe=(()=>(function(c){c[c.Text=1]="Text",c[c.Binary=2]="Binary"}(fe||(fe={})),fe))(),Be=function(){function c(){this.isAborted=!1,this.onabort=null}return c.prototype.abort=function(){this.isAborted||(this.isAborted=!0,this.onabort&&this.onabort())},Object.defineProperty(c.prototype,"signal",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"aborted",{get:function(){return this.isAborted},enumerable:!0,configurable:!0}),c}(),Ue=function(c,o,n,h){return new(n||(n=Promise))(function(m,u){function N(g){try{$(h.next(g))}catch(ue){u(ue)}}function J(g){try{$(h.throw(g))}catch(ue){u(ue)}}function $(g){g.done?m(g.value):new n(function(ue){ue(g.value)}).then(N,J)}$((h=h.apply(c,o||[])).next())})},We=function(c,o){var h,m,u,N,n={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]};return N={next:J(0),throw:J(1),return:J(2)},"function"==typeof Symbol&&(N[Symbol.iterator]=function(){return this}),N;function J(g){return function(ue){return function $(g){if(h)throw new TypeError("Generator is already executing.");for(;n;)try{if(h=1,m&&(u=2&g[0]?m.return:g[0]?m.throw||((u=m.return)&&u.call(m),0):m.next)&&!(u=u.call(m,g[1])).done)return u;switch(m=0,u&&(g=[2&g[0],u.value]),g[0]){case 0:case 1:u=g;break;case 4:return n.label++,{value:g[1],done:!1};case 5:n.label++,m=g[1],g=[0];continue;case 7:g=n.ops.pop(),n.trys.pop();continue;default:if(!(u=(u=n.trys).length>0&&u[u.length-1])&&(6===g[0]||2===g[0])){n=0;continue}if(3===g[0]&&(!u||g[1]>u[0]&&g[1]<u[3])){n.label=g[1];break}if(6===g[0]&&n.label<u[1]){n.label=u[1],u=g;break}if(u&&n.label<u[2]){n.label=u[2],n.ops.push(g);break}u[2]&&n.ops.pop(),n.trys.pop();continue}g=o.call(c,n)}catch(ue){g=[6,ue],m=0}finally{h=u=0}if(5&g[0])throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}([g,ue])}}},$e=function(){function c(o,n,h,m){this.httpClient=o,this.accessTokenFactory=n,this.logger=h,this.pollAbort=new Be,this.logMessageContent=m,this.running=!1,this.onreceive=null,this.onclose=null}return Object.defineProperty(c.prototype,"pollAborted",{get:function(){return this.pollAbort.aborted},enumerable:!0,configurable:!0}),c.prototype.connect=function(o,n){return Ue(this,void 0,void 0,function(){var h,m,u,N;return We(this,function(J){switch(J.label){case 0:if(z.isRequired(o,"url"),z.isRequired(n,"transferFormat"),z.isIn(n,fe,"transferFormat"),this.url=o,this.logger.log(_.Trace,"(LongPolling transport) Connecting."),n===fe.Binary&&typeof XMLHttpRequest<"u"&&"string"!=typeof(new XMLHttpRequest).responseType)throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");return h={abortSignal:this.pollAbort.signal,headers:{},timeout:1e5},n===fe.Binary&&(h.responseType="arraybuffer"),[4,this.getAccessToken()];case 1:return m=J.sent(),this.updateHeaderToken(h,m),u=o+"&_="+Date.now(),this.logger.log(_.Trace,"(LongPolling transport) polling: "+u+"."),[4,this.httpClient.get(u,h)];case 2:return 200!==(N=J.sent()).statusCode?(this.logger.log(_.Error,"(LongPolling transport) Unexpected response code: "+N.statusCode+"."),this.closeError=new O(N.statusText||"",N.statusCode),this.running=!1):this.running=!0,this.receiving=this.poll(this.url,h),[2]}})})},c.prototype.getAccessToken=function(){return Ue(this,void 0,void 0,function(){return We(this,function(o){switch(o.label){case 0:return this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:return[2,o.sent()];case 2:return[2,null]}})})},c.prototype.updateHeaderToken=function(o,n){o.headers||(o.headers={}),n?o.headers.Authorization="Bearer "+n:o.headers.Authorization&&delete o.headers.Authorization},c.prototype.poll=function(o,n){return Ue(this,void 0,void 0,function(){var h,m,u,N;return We(this,function(J){switch(J.label){case 0:J.trys.push([0,,8,9]),J.label=1;case 1:return this.running?[4,this.getAccessToken()]:[3,7];case 2:h=J.sent(),this.updateHeaderToken(n,h),J.label=3;case 3:return J.trys.push([3,5,,6]),m=o+"&_="+Date.now(),this.logger.log(_.Trace,"(LongPolling transport) polling: "+m+"."),[4,this.httpClient.get(m,n)];case 4:return 204===(u=J.sent()).statusCode?(this.logger.log(_.Information,"(LongPolling transport) Poll terminated by server."),this.running=!1):200!==u.statusCode?(this.logger.log(_.Error,"(LongPolling transport) Unexpected response code: "+u.statusCode+"."),this.closeError=new O(u.statusText||"",u.statusCode),this.running=!1):u.content?(this.logger.log(_.Trace,"(LongPolling transport) data received. "+ge(u.content,this.logMessageContent)+"."),this.onreceive&&this.onreceive(u.content)):this.logger.log(_.Trace,"(LongPolling transport) Poll timed out, reissuing."),[3,6];case 5:return N=J.sent(),this.running?N instanceof _e?this.logger.log(_.Trace,"(LongPolling transport) Poll timed out, reissuing."):(this.closeError=N,this.running=!1):this.logger.log(_.Trace,"(LongPolling transport) Poll errored after shutdown: "+N.message),[3,6];case 6:return[3,1];case 7:return[3,9];case 8:return this.logger.log(_.Trace,"(LongPolling transport) Polling complete."),this.pollAborted||this.raiseOnClose(),[7];case 9:return[2]}})})},c.prototype.send=function(o){return Ue(this,void 0,void 0,function(){return We(this,function(n){return this.running?[2,de(this.logger,"LongPolling",this.httpClient,this.url,this.accessTokenFactory,o,this.logMessageContent)]:[2,Promise.reject(new Error("Cannot send until the transport is connected"))]})})},c.prototype.stop=function(){return Ue(this,void 0,void 0,function(){var o,n;return We(this,function(h){switch(h.label){case 0:this.logger.log(_.Trace,"(LongPolling transport) Stopping polling."),this.running=!1,this.pollAbort.abort(),h.label=1;case 1:return h.trys.push([1,,5,6]),[4,this.receiving];case 2:return h.sent(),this.logger.log(_.Trace,"(LongPolling transport) sending DELETE request to "+this.url+"."),o={headers:{}},[4,this.getAccessToken()];case 3:return n=h.sent(),this.updateHeaderToken(o,n),[4,this.httpClient.delete(this.url,o)];case 4:return h.sent(),this.logger.log(_.Trace,"(LongPolling transport) DELETE request sent."),[3,6];case 5:return this.logger.log(_.Trace,"(LongPolling transport) Stop finished."),this.raiseOnClose(),[7];case 6:return[2]}})})},c.prototype.raiseOnClose=function(){if(this.onclose){var o="(LongPolling transport) Firing onclose event.";this.closeError&&(o+=" Error: "+this.closeError),this.logger.log(_.Trace,o),this.onclose(this.closeError)}},c}(),Xe=function(c,o,n,h){return new(n||(n=Promise))(function(m,u){function N(g){try{$(h.next(g))}catch(ue){u(ue)}}function J(g){try{$(h.throw(g))}catch(ue){u(ue)}}function $(g){g.done?m(g.value):new n(function(ue){ue(g.value)}).then(N,J)}$((h=h.apply(c,o||[])).next())})},Je=function(c,o){var h,m,u,N,n={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]};return N={next:J(0),throw:J(1),return:J(2)},"function"==typeof Symbol&&(N[Symbol.iterator]=function(){return this}),N;function J(g){return function(ue){return function $(g){if(h)throw new TypeError("Generator is already executing.");for(;n;)try{if(h=1,m&&(u=2&g[0]?m.return:g[0]?m.throw||((u=m.return)&&u.call(m),0):m.next)&&!(u=u.call(m,g[1])).done)return u;switch(m=0,u&&(g=[2&g[0],u.value]),g[0]){case 0:case 1:u=g;break;case 4:return n.label++,{value:g[1],done:!1};case 5:n.label++,m=g[1],g=[0];continue;case 7:g=n.ops.pop(),n.trys.pop();continue;default:if(!(u=(u=n.trys).length>0&&u[u.length-1])&&(6===g[0]||2===g[0])){n=0;continue}if(3===g[0]&&(!u||g[1]>u[0]&&g[1]<u[3])){n.label=g[1];break}if(6===g[0]&&n.label<u[1]){n.label=u[1],u=g;break}if(u&&n.label<u[2]){n.label=u[2],n.ops.push(g);break}u[2]&&n.ops.pop(),n.trys.pop();continue}g=o.call(c,n)}catch(ue){g=[6,ue],m=0}finally{h=u=0}if(5&g[0])throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}([g,ue])}}},qe=function(){function c(o,n,h,m,u){this.httpClient=o,this.accessTokenFactory=n,this.logger=h,this.logMessageContent=m,this.eventSourceConstructor=u,this.onreceive=null,this.onclose=null}return c.prototype.connect=function(o,n){return Xe(this,void 0,void 0,function(){var h,m=this;return Je(this,function(u){switch(u.label){case 0:return z.isRequired(o,"url"),z.isRequired(n,"transferFormat"),z.isIn(n,fe,"transferFormat"),this.logger.log(_.Trace,"(SSE transport) Connecting."),this.url=o,this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:(h=u.sent())&&(o+=(o.indexOf("?")<0?"?":"&")+"access_token="+encodeURIComponent(h)),u.label=2;case 2:return[2,new Promise(function(N,J){var $=!1;if(n===fe.Text){var g;if(K.isBrowser||K.isWebWorker)g=new m.eventSourceConstructor(o,{withCredentials:!0});else{var ue=m.httpClient.getCookieString(o);g=new m.eventSourceConstructor(o,{withCredentials:!0,headers:{Cookie:ue}})}try{g.onmessage=function(He){if(m.onreceive)try{m.logger.log(_.Trace,"(SSE transport) data received. "+ge(He.data,m.logMessageContent)+"."),m.onreceive(He.data)}catch(Ye){return void m.close(Ye)}},g.onerror=function(He){var Ye=new Error(He.data||"Error occurred");$?m.close(Ye):J(Ye)},g.onopen=function(){m.logger.log(_.Information,"SSE connected to "+m.url),m.eventSource=g,$=!0,N()}}catch(He){return void J(He)}}else J(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"))})]}})})},c.prototype.send=function(o){return Xe(this,void 0,void 0,function(){return Je(this,function(n){return this.eventSource?[2,de(this.logger,"SSE",this.httpClient,this.url,this.accessTokenFactory,o,this.logMessageContent)]:[2,Promise.reject(new Error("Cannot send until the transport is connected"))]})})},c.prototype.stop=function(){return this.close(),Promise.resolve()},c.prototype.close=function(o){this.eventSource&&(this.eventSource.close(),this.eventSource=void 0,this.onclose&&this.onclose(o))},c}(),p=function(){function c(o,n,h,m,u){this.logger=h,this.accessTokenFactory=n,this.logMessageContent=m,this.webSocketConstructor=u,this.httpClient=o,this.onreceive=null,this.onclose=null}return c.prototype.connect=function(o,n){return function(c,o,n,h){return new(n||(n=Promise))(function(m,u){function N(g){try{$(h.next(g))}catch(ue){u(ue)}}function J(g){try{$(h.throw(g))}catch(ue){u(ue)}}function $(g){g.done?m(g.value):new n(function(ue){ue(g.value)}).then(N,J)}$((h=h.apply(c,[])).next())})}(this,0,void 0,function(){var h,m=this;return function(c,o){var h,m,u,N,n={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]};return N={next:J(0),throw:J(1),return:J(2)},"function"==typeof Symbol&&(N[Symbol.iterator]=function(){return this}),N;function J(g){return function(ue){return function $(g){if(h)throw new TypeError("Generator is already executing.");for(;n;)try{if(h=1,m&&(u=2&g[0]?m.return:g[0]?m.throw||((u=m.return)&&u.call(m),0):m.next)&&!(u=u.call(m,g[1])).done)return u;switch(m=0,u&&(g=[2&g[0],u.value]),g[0]){case 0:case 1:u=g;break;case 4:return n.label++,{value:g[1],done:!1};case 5:n.label++,m=g[1],g=[0];continue;case 7:g=n.ops.pop(),n.trys.pop();continue;default:if(!(u=(u=n.trys).length>0&&u[u.length-1])&&(6===g[0]||2===g[0])){n=0;continue}if(3===g[0]&&(!u||g[1]>u[0]&&g[1]<u[3])){n.label=g[1];break}if(6===g[0]&&n.label<u[1]){n.label=u[1],u=g;break}if(u&&n.label<u[2]){n.label=u[2],n.ops.push(g);break}u[2]&&n.ops.pop(),n.trys.pop();continue}g=o.call(c,n)}catch(ue){g=[6,ue],m=0}finally{h=u=0}if(5&g[0])throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}([g,ue])}}}(this,function(u){switch(u.label){case 0:return z.isRequired(o,"url"),z.isRequired(n,"transferFormat"),z.isIn(n,fe,"transferFormat"),this.logger.log(_.Trace,"(WebSockets transport) Connecting."),this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:(h=u.sent())&&(o+=(o.indexOf("?")<0?"?":"&")+"access_token="+encodeURIComponent(h)),u.label=2;case 2:return[2,new Promise(function(N,J){o=o.replace(/^http/,"ws");var $,g=m.httpClient.getCookieString(o),ue=!1;K.isNode&&g&&($=new m.webSocketConstructor(o,void 0,{headers:{Cookie:""+g}})),$||($=new m.webSocketConstructor(o)),n===fe.Binary&&($.binaryType="arraybuffer"),$.onopen=function(He){m.logger.log(_.Information,"WebSocket connected to "+o+"."),m.webSocket=$,ue=!0,N()},$.onerror=function(He){var Ye;Ye=typeof ErrorEvent<"u"&&He instanceof ErrorEvent?He.error:new Error("There was an error with the transport."),J(Ye)},$.onmessage=function(He){m.logger.log(_.Trace,"(WebSockets transport) data received. "+ge(He.data,m.logMessageContent)+"."),m.onreceive&&m.onreceive(He.data)},$.onclose=function(He){if(ue)m.close(He);else{var Ye;Ye=typeof ErrorEvent<"u"&&He instanceof ErrorEvent?He.error:new Error("There was an error with the transport."),J(Ye)}}})]}})})},c.prototype.send=function(o){return this.webSocket&&this.webSocket.readyState===this.webSocketConstructor.OPEN?(this.logger.log(_.Trace,"(WebSockets transport) sending data. "+ge(o,this.logMessageContent)+"."),this.webSocket.send(o),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")},c.prototype.stop=function(){return this.webSocket&&this.close(void 0),Promise.resolve()},c.prototype.close=function(o){this.webSocket&&(this.webSocket.onclose=function(){},this.webSocket.onmessage=function(){},this.webSocket.onerror=function(){},this.webSocket.close(),this.webSocket=void 0),this.logger.log(_.Trace,"(WebSockets transport) socket closed."),this.onclose&&(!o||!1!==o.wasClean&&1e3===o.code?this.onclose():this.onclose(new Error("WebSocket closed with status code: "+o.code+" ("+o.reason+").")))},c}(),i=function(c,o,n,h){return new(n||(n=Promise))(function(m,u){function N(g){try{$(h.next(g))}catch(ue){u(ue)}}function J(g){try{$(h.throw(g))}catch(ue){u(ue)}}function $(g){g.done?m(g.value):new n(function(ue){ue(g.value)}).then(N,J)}$((h=h.apply(c,o||[])).next())})},e=function(c,o){var h,m,u,N,n={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]};return N={next:J(0),throw:J(1),return:J(2)},"function"==typeof Symbol&&(N[Symbol.iterator]=function(){return this}),N;function J(g){return function(ue){return function $(g){if(h)throw new TypeError("Generator is already executing.");for(;n;)try{if(h=1,m&&(u=2&g[0]?m.return:g[0]?m.throw||((u=m.return)&&u.call(m),0):m.next)&&!(u=u.call(m,g[1])).done)return u;switch(m=0,u&&(g=[2&g[0],u.value]),g[0]){case 0:case 1:u=g;break;case 4:return n.label++,{value:g[1],done:!1};case 5:n.label++,m=g[1],g=[0];continue;case 7:g=n.ops.pop(),n.trys.pop();continue;default:if(!(u=(u=n.trys).length>0&&u[u.length-1])&&(6===g[0]||2===g[0])){n=0;continue}if(3===g[0]&&(!u||g[1]>u[0]&&g[1]<u[3])){n.label=g[1];break}if(6===g[0]&&n.label<u[1]){n.label=u[1],u=g;break}if(u&&n.label<u[2]){n.label=u[2],n.ops.push(g);break}u[2]&&n.ops.pop(),n.trys.pop();continue}g=o.call(c,n)}catch(ue){g=[6,ue],m=0}finally{h=u=0}if(5&g[0])throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}([g,ue])}}},f=null,S=null;if(K.isNode){var I=require;f=I("ws"),S=I("eventsource")}var Q=function(){function c(o,n){void 0===n&&(n={}),this.stopPromiseResolver=function(){},this.features={},this.negotiateVersion=1,z.isRequired(o,"url"),this.logger=function te(c){return void 0===c?new x(_.Information):null===c?R.instance:c.log?c:new x(c)}(n.logger),this.baseUrl=this.resolveUrl(o),(n=n||{}).logMessageContent=n.logMessageContent||!1,!K.isNode&&typeof WebSocket<"u"&&!n.WebSocket?n.WebSocket=WebSocket:K.isNode&&!n.WebSocket&&f&&(n.WebSocket=f),!K.isNode&&typeof EventSource<"u"&&!n.EventSource?n.EventSource=EventSource:K.isNode&&!n.EventSource&&typeof S<"u"&&(n.EventSource=S),this.httpClient=n.httpClient||new Ee(this.logger),this.connectionState="Disconnected",this.connectionStarted=!1,this.options=n,this.onreceive=null,this.onclose=null}return c.prototype.start=function(o){return i(this,void 0,void 0,function(){var n;return e(this,function(h){switch(h.label){case 0:return z.isIn(o=o||fe.Binary,fe,"transferFormat"),this.logger.log(_.Debug,"Starting connection with transfer format '"+fe[o]+"'."),"Disconnected"!==this.connectionState?[2,Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."))]:(this.connectionState="Connecting ",this.startInternalPromise=this.startInternal(o),[4,this.startInternalPromise]);case 1:return h.sent(),"Disconnecting"!==this.connectionState?[3,3]:(this.logger.log(_.Error,n="Failed to start the HttpConnection before stop() was called."),[4,this.stopPromise]);case 2:return h.sent(),[2,Promise.reject(new Error(n))];case 3:if("Connected"!==this.connectionState)return this.logger.log(_.Error,n="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!"),[2,Promise.reject(new Error(n))];h.label=4;case 4:return this.connectionStarted=!0,[2]}})})},c.prototype.send=function(o){return"Connected"!==this.connectionState?Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")):(this.sendQueue||(this.sendQueue=new we(this.transport)),this.sendQueue.send(o))},c.prototype.stop=function(o){return i(this,void 0,void 0,function(){var n=this;return e(this,function(h){switch(h.label){case 0:return"Disconnected"===this.connectionState?(this.logger.log(_.Debug,"Call to HttpConnection.stop("+o+") ignored because the connection is already in the disconnected state."),[2,Promise.resolve()]):"Disconnecting"===this.connectionState?(this.logger.log(_.Debug,"Call to HttpConnection.stop("+o+") ignored because the connection is already in the disconnecting state."),[2,this.stopPromise]):(this.connectionState="Disconnecting",this.stopPromise=new Promise(function(m){n.stopPromiseResolver=m}),[4,this.stopInternal(o)]);case 1:return h.sent(),[4,this.stopPromise];case 2:return h.sent(),[2]}})})},c.prototype.stopInternal=function(o){return i(this,void 0,void 0,function(){var h;return e(this,function(m){switch(m.label){case 0:this.stopError=o,m.label=1;case 1:return m.trys.push([1,3,,4]),[4,this.startInternalPromise];case 2:case 3:return m.sent(),[3,4];case 4:if(!this.transport)return[3,9];m.label=5;case 5:return m.trys.push([5,7,,8]),[4,this.transport.stop()];case 6:return m.sent(),[3,8];case 7:return h=m.sent(),this.logger.log(_.Error,"HttpConnection.transport.stop() threw error '"+h+"'."),this.stopConnection(),[3,8];case 8:return this.transport=void 0,[3,10];case 9:this.logger.log(_.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed."),m.label=10;case 10:return[2]}})})},c.prototype.startInternal=function(o){return i(this,void 0,void 0,function(){var n,h,m,u,N,J;return e(this,function($){switch($.label){case 0:n=this.baseUrl,this.accessTokenFactory=this.options.accessTokenFactory,$.label=1;case 1:return $.trys.push([1,12,,13]),this.options.skipNegotiation?this.options.transport!==ce.WebSockets?[3,3]:(this.transport=this.constructTransport(ce.WebSockets),[4,this.startTransport(n,o)]):[3,5];case 2:return $.sent(),[3,4];case 3:throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");case 4:return[3,11];case 5:h=null,m=0,u=function(){var g;return e(this,function(ue){switch(ue.label){case 0:return[4,N.getNegotiationResponse(n)];case 1:if(h=ue.sent(),"Disconnecting"===N.connectionState||"Disconnected"===N.connectionState)throw new Error("The connection was stopped during negotiation.");if(h.error)throw new Error(h.error);if(h.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");return h.url&&(n=h.url),h.accessToken&&(g=h.accessToken,N.accessTokenFactory=function(){return g}),m++,[2]}})},N=this,$.label=6;case 6:return[5,u()];case 7:$.sent(),$.label=8;case 8:if(h.url&&m<100)return[3,6];$.label=9;case 9:if(100===m&&h.url)throw new Error("Negotiate redirection limit exceeded.");return[4,this.createTransport(n,this.options.transport,h,o)];case 10:$.sent(),$.label=11;case 11:return this.transport instanceof $e&&(this.features.inherentKeepAlive=!0),"Connecting "===this.connectionState&&(this.logger.log(_.Debug,"The HttpConnection connected successfully."),this.connectionState="Connected"),[3,13];case 12:return J=$.sent(),this.logger.log(_.Error,"Failed to start the connection: "+J),this.connectionState="Disconnected",this.transport=void 0,this.stopPromiseResolver(),[2,Promise.reject(J)];case 13:return[2]}})})},c.prototype.getNegotiationResponse=function(o){return i(this,void 0,void 0,function(){var n,h,m,u,N,J,$;return e(this,function(g){switch(g.label){case 0:return this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:(m=g.sent())&&((n={}).Authorization="Bearer "+m,h=n),g.label=2;case 2:u=this.resolveNegotiateUrl(o),this.logger.log(_.Debug,"Sending negotiation request: "+u+"."),g.label=3;case 3:return g.trys.push([3,5,,6]),[4,this.httpClient.post(u,{content:"",headers:h})];case 4:return 200!==(N=g.sent()).statusCode?[2,Promise.reject(new Error("Unexpected status code returned from negotiate "+N.statusCode))]:((!(J=JSON.parse(N.content)).negotiateVersion||J.negotiateVersion<1)&&(J.connectionToken=J.connectionId),[2,J]);case 5:return $=g.sent(),this.logger.log(_.Error,"Failed to complete negotiation with the server: "+$),[2,Promise.reject($)];case 6:return[2]}})})},c.prototype.createConnectUrl=function(o,n){return n?o+(-1===o.indexOf("?")?"?":"&")+"id="+n:o},c.prototype.createTransport=function(o,n,h,m){return i(this,void 0,void 0,function(){var u,N,$,g,ue,He,Ye,tt,ot;return e(this,function(it){switch(it.label){case 0:return u=this.createConnectUrl(o,h.connectionToken),this.isITransport(n)?(this.logger.log(_.Debug,"Connection was provided an instance of ITransport, using that directly."),this.transport=n,[4,this.startTransport(u,m)]):[3,2];case 1:return it.sent(),this.connectionId=h.connectionId,[2];case 2:N=[],$=h,g=0,ue=h.availableTransports||[],it.label=3;case 3:return g<ue.length?(Ye=this.resolveTransportOrError(He=ue[g],n,m))instanceof Error?(N.push(He.transport+" failed: "+Ye),[3,12]):[3,4]:[3,13];case 4:if(!this.isITransport(Ye))return[3,12];if(this.transport=Ye,$)return[3,9];it.label=5;case 5:return it.trys.push([5,7,,8]),[4,this.getNegotiationResponse(o)];case 6:return $=it.sent(),[3,8];case 7:return tt=it.sent(),[2,Promise.reject(tt)];case 8:u=this.createConnectUrl(o,$.connectionToken),it.label=9;case 9:return it.trys.push([9,11,,12]),[4,this.startTransport(u,m)];case 10:return it.sent(),this.connectionId=$.connectionId,[2];case 11:return ot=it.sent(),this.logger.log(_.Error,"Failed to start the transport '"+He.transport+"': "+ot),$=void 0,N.push(He.transport+" failed: "+ot),"Connecting "!==this.connectionState?(this.logger.log(_.Debug,"Failed to select transport before stop() was called."),[2,Promise.reject(new Error("Failed to select transport before stop() was called."))]):[3,12];case 12:return g++,[3,3];case 13:return N.length>0?[2,Promise.reject(new Error("Unable to connect to the server with any of the available transports. "+N.join(" ")))]:[2,Promise.reject(new Error("None of the transports supported by the client are supported by the server."))]}})})},c.prototype.constructTransport=function(o){switch(o){case ce.WebSockets:if(!this.options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new p(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent||!1,this.options.WebSocket);case ce.ServerSentEvents:if(!this.options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new qe(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent||!1,this.options.EventSource);case ce.LongPolling:return new $e(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent||!1);default:throw new Error("Unknown transport: "+o+".")}},c.prototype.startTransport=function(o,n){var h=this;return this.transport.onreceive=this.onreceive,this.transport.onclose=function(m){return h.stopConnection(m)},this.transport.connect(o,n)},c.prototype.resolveTransportOrError=function(o,n,h){var m=ce[o.transport];if(null==m)return this.logger.log(_.Debug,"Skipping transport '"+o.transport+"' because it is not supported by this client."),new Error("Skipping transport '"+o.transport+"' because it is not supported by this client.");if(!function be(c,o){return!c||0!=(o&c)}(n,m))return this.logger.log(_.Debug,"Skipping transport '"+ce[m]+"' because it was disabled by the client."),new Error("'"+ce[m]+"' is disabled by the client.");if(!(o.transferFormats.map(function(N){return fe[N]}).indexOf(h)>=0))return this.logger.log(_.Debug,"Skipping transport '"+ce[m]+"' because it does not support the requested transfer format '"+fe[h]+"'."),new Error("'"+ce[m]+"' does not support "+fe[h]+".");if(m===ce.WebSockets&&!this.options.WebSocket||m===ce.ServerSentEvents&&!this.options.EventSource)return this.logger.log(_.Debug,"Skipping transport '"+ce[m]+"' because it is not supported in your environment.'"),new Error("'"+ce[m]+"' is not supported in your environment.");this.logger.log(_.Debug,"Selecting transport '"+ce[m]+"'.");try{return this.constructTransport(m)}catch(N){return N}},c.prototype.isITransport=function(o){return o&&"object"==typeof o&&"connect"in o},c.prototype.stopConnection=function(o){var n=this;if(this.logger.log(_.Debug,"HttpConnection.stopConnection("+o+") called while in state "+this.connectionState+"."),this.transport=void 0,o=this.stopError||o,this.stopError=void 0,"Disconnected"!==this.connectionState)if("Connecting "!==this.connectionState){if("Disconnecting"===this.connectionState&&this.stopPromiseResolver(),o?this.logger.log(_.Error,"Connection disconnected with error '"+o+"'."):this.logger.log(_.Information,"Connection disconnected."),this.sendQueue&&(this.sendQueue.stop().catch(function(h){n.logger.log(_.Error,"TransportSendQueue.stop() threw error '"+h+"'.")}),this.sendQueue=void 0),this.connectionId=void 0,this.connectionState="Disconnected",this.connectionStarted){this.connectionStarted=!1;try{this.onclose&&this.onclose(o)}catch(h){this.logger.log(_.Error,"HttpConnection.onclose("+o+") threw error '"+h+"'.")}}}else this.logger.log(_.Warning,"Call to HttpConnection.stopConnection("+o+") was ignored because the connection hasn't yet left the in the connecting state.");else this.logger.log(_.Debug,"Call to HttpConnection.stopConnection("+o+") was ignored because the connection is already in the disconnected state.")},c.prototype.resolveUrl=function(o){if(0===o.lastIndexOf("https://",0)||0===o.lastIndexOf("http://",0))return o;if(!K.isBrowser||!window.document)throw new Error("Cannot resolve '"+o+"'.");var n=window.document.createElement("a");return n.href=o,this.logger.log(_.Information,"Normalizing '"+o+"' to '"+n.href+"'."),n.href},c.prototype.resolveNegotiateUrl=function(o){var n=o.indexOf("?"),h=o.substring(0,-1===n?o.length:n);return"/"!==h[h.length-1]&&(h+="/"),h+="negotiate",-1===(h+=-1===n?"":o.substring(n)).indexOf("negotiateVersion")&&(h+=-1===n?"?":"&",h+="negotiateVersion="+this.negotiateVersion),h},c}(),we=function(){function c(o){this.transport=o,this.buffer=[],this.executing=!0,this.sendBufferedData=new Le,this.transportResult=new Le,this.sendLoopPromise=this.sendLoop()}return c.prototype.send=function(o){return this.bufferData(o),this.transportResult||(this.transportResult=new Le),this.transportResult.promise},c.prototype.stop=function(){return this.executing=!1,this.sendBufferedData.resolve(),this.sendLoopPromise},c.prototype.bufferData=function(o){if(this.buffer.length&&typeof this.buffer[0]!=typeof o)throw new Error("Expected data to be of type "+typeof this.buffer+" but was of type "+typeof o);this.buffer.push(o),this.sendBufferedData.resolve()},c.prototype.sendLoop=function(){return i(this,void 0,void 0,function(){var o,n,h;return e(this,function(m){switch(m.label){case 0:return[4,this.sendBufferedData.promise];case 1:if(m.sent(),!this.executing)return this.transportResult&&this.transportResult.reject("Connection stopped."),[3,6];this.sendBufferedData=new Le,o=this.transportResult,this.transportResult=void 0,n="string"==typeof this.buffer[0]?this.buffer.join(""):c.concatBuffers(this.buffer),this.buffer.length=0,m.label=2;case 2:return m.trys.push([2,4,,5]),[4,this.transport.send(n)];case 3:return m.sent(),o.resolve(),[3,5];case 4:return h=m.sent(),o.reject(h),[3,5];case 5:return[3,0];case 6:return[2]}})})},c.concatBuffers=function(o){for(var n=o.map(function($){return $.byteLength}).reduce(function($,g){return $+g}),h=new Uint8Array(n),m=0,u=0,N=o;u<N.length;u++){var J=N[u];h.set(new Uint8Array(J),m),m+=J.byteLength}return h},c}(),Le=function(){function c(){var o=this;this.promise=new Promise(function(n,h){var m;return o.resolver=(m=[n,h])[0],o.rejecter=m[1],m})}return c.prototype.resolve=function(){this.resolver()},c.prototype.reject=function(o){this.rejecter(o)},c}(),Ne=function(){function c(){this.name="json",this.version=1,this.transferFormat=fe.Text}return c.prototype.parseMessages=function(o,n){if("string"!=typeof o)throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!o)return[];null===n&&(n=R.instance);for(var m=[],u=0,N=H.parse(o);u<N.length;u++){var $=JSON.parse(N[u]);if("number"!=typeof $.type)throw new Error("Invalid payload.");switch($.type){case oe.Invocation:this.isInvocationMessage($);break;case oe.StreamItem:this.isStreamItemMessage($);break;case oe.Completion:this.isCompletionMessage($);break;case oe.Ping:case oe.Close:break;default:n.log(_.Information,"Unknown message type '"+$.type+"' ignored.");continue}m.push($)}return m},c.prototype.writeMessage=function(o){return H.write(JSON.stringify(o))},c.prototype.isInvocationMessage=function(o){this.assertNotEmptyString(o.target,"Invalid payload for Invocation message."),void 0!==o.invocationId&&this.assertNotEmptyString(o.invocationId,"Invalid payload for Invocation message.")},c.prototype.isStreamItemMessage=function(o){if(this.assertNotEmptyString(o.invocationId,"Invalid payload for StreamItem message."),void 0===o.item)throw new Error("Invalid payload for StreamItem message.")},c.prototype.isCompletionMessage=function(o){if(o.result&&o.error)throw new Error("Invalid payload for Completion message.");!o.result&&o.error&&this.assertNotEmptyString(o.error,"Invalid payload for Completion message."),this.assertNotEmptyString(o.invocationId,"Invalid payload for Completion message.")},c.prototype.assertNotEmptyString=function(o,n){if("string"!=typeof o||""===o)throw new Error(n)},c}(),je=Object.assign||function(c){for(var o,n=1,h=arguments.length;n<h;n++)for(var m in o=arguments[n])Object.prototype.hasOwnProperty.call(o,m)&&(c[m]=o[m]);return c},Ve={trace:_.Trace,debug:_.Debug,info:_.Information,information:_.Information,warn:_.Warning,warning:_.Warning,error:_.Error,critical:_.Critical,none:_.None},U=function(){function c(){}return c.prototype.configureLogging=function(o){if(z.isRequired(o,"logging"),function T(c){return void 0!==c.log}(o))this.logger=o;else if("string"==typeof o){var n=function Ge(c){var o=Ve[c.toLowerCase()];if(typeof o<"u")return o;throw new Error("Unknown log level: "+c)}(o);this.logger=new x(n)}else this.logger=new x(o);return this},c.prototype.withUrl=function(o,n){return z.isRequired(o,"url"),this.url=o,this.httpConnectionOptions=je({},this.httpConnectionOptions,"object"==typeof n?n:{transport:n}),this},c.prototype.withHubProtocol=function(o){return z.isRequired(o,"protocol"),this.protocol=o,this},c.prototype.withAutomaticReconnect=function(o){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return this.reconnectPolicy=o?Array.isArray(o)?new le(o):o:new le,this},c.prototype.build=function(){var o=this.httpConnectionOptions||{};if(void 0===o.logger&&(o.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");var n=new Q(this.url,o);return P.create(n,this.logger||R.instance,this.protocol||new Ne,this.reconnectPolicy)},c}(),Y=a(2722),w=a(7579);class C{constructor(){this.menus=[{Icon:"fas fa-tag",Title:"Products",Url:"/menu/products"},{Icon:"fas fa-archive",Title:"Inventory",Url:"/menu/inventory"},{Icon:"fas fa-money-bill-alt",Title:"Price",Url:"/menu/price"},{Icon:"fas fa-shopping-cart",Title:"Order",Url:"/menu/Order"},{Icon:"fas fa-clipboard-list",Title:"Report",Url:"/menu/report"},{Icon:"fas fa-dolly",Title:"Logistic",Url:"/menu/Logistic"},{Icon:"fas fa-cog",Title:"Channel",Url:"/menu/channel"},{Icon:"fas fa-file-alt",Title:"Logs",Url:"/menu/log"},{Icon:"fas fa-bell",Title:"Notification",Url:"/menu/Notification"}]}get getMenu(){return this.menus}}var d=a(4650),A=a(8002),V=a(7185),me=a(3841),Pe=a(1589),Ke=a(266);function ee(c,o){if(1&c&&(d.TgZ(0,"li",17)(1,"a",18),d._UZ(2,"i"),d.TgZ(3,"p"),d._uU(4),d.qZA()()()),2&c){const n=o.$implicit,h=d.oxw();d.xp6(1),d.Q6J("matTooltip",h.isCollapseSidebar?n.Title:"")("routerLink",n.Url),d.xp6(1),d.Tol(n.Icon),d.xp6(2),d.Oqu(n.Title)}}function pe(c,o){if(1&c){const n=d.EpF();d.TgZ(0,"div",19)(1,"span"),d._uU(2),d.TgZ(3,"a",20),d._uU(4,"this Article"),d.qZA(),d._uU(5," to renew your ShopID! "),d.qZA(),d.TgZ(6,"a",21),d.NdJ("click",function(){d.CHM(n);const m=d.oxw();return d.KtG(m.CloseWarning())}),d._UZ(7,"i",22),d.qZA()()}if(2&c){const n=d.oxw();d.xp6(2),d.AsE(" Your Shopee Channel ShopID ",n.ShopID," is expired in (",n.Difference_In_Days,") days, please refer to ")}}const se=[{path:"",component:(()=>{class c{constructor(n,h,m,u,N){this._router=n,this.tokendecode=h,this.toastr=m,this.LocalData=u,this.toggleSidebarService=N,this.Menu={},this.connection=!1,this.Difference_In_Days=0,this.IsExpired=!1,this.destroy$=new w.x,this.isCollapseSidebar=!1,this.initIntercom(),this.token=h.GetNamePOS(),this.storeName=this.token.StoreName,this.Menu=(new C).getMenu,this.CheckExpired()}ngOnInit(){this.startConnection(),this.subscribeToSidebarChange()}initIntercom(){var n=localStorage.getItem("Intercom"),h=JSON.parse(n);null==h?window.Intercom("boot",{app_id:"xv1oomgl"}):window.Intercom("boot",{app_id:"xv1oomgl",name:h.Name,email:h.Email,created_at:h.Created,user_hash:h.Hash})}subscribeToSidebarChange(){this.toggleSidebarService.toggleState$.pipe((0,Y.R)(this.destroy$)).subscribe(n=>{this.isNavOpen=n})}CloseWarning(){localStorage.removeItem("channel"),this.IsExpired=!1}CheckExpired(){let n=JSON.parse(window.localStorage.getItem("user"));if(n)if(null!=n.expiredAt)this.LogOut();else{let m=n.Channel;if(m.length>0)for(let u of m)if(null!=u.ExpiredTime&&0==u.TypeID){let N=new Date(u.ExpiredTime),J=new Date;var h=N.getTime()-J.getTime();this.Difference_In_Days=Math.round(h/864e5),this.Difference_In_Days<=10&&(this.IsExpired=!0,this.ShopID=u.ShopID)}}}user(){this._router.navigate(["/menu/users"])}LogOut(){window.Intercom("shutdown"),window.localStorage.removeItem("user"),window.localStorage.removeItem("Intercom"),window.localStorage.removeItem("channel"),this.LocalData.Remove(),this._router.navigate([""])}startConnection(){this.hubConnection=(new U).withUrl("/MarketplaceHub").withAutomaticReconnect([0,1e4,1e4,1e4,1e4,null]).configureLogging(_.Information).build(),this.hubConnection.start().then(()=>{this.connection=!0,this.connectToRegister()}).catch(n=>console.log("Error while starting connection: "+n)),this.hubConnection.onclose(()=>{this.startConnection(),this.connection=!1}),this.hubConnection.on("Notification",n=>{let h=JSON.parse(n);h.ID==this.token.POSAccountID&&(200!=h.StatusCode?this.toastr.error(h.Message,h.Title,{enableHtml:!0}):this.toastr.success(h.Message,h.Title,{enableHtml:!0}))})}connectToRegister(){this.hubConnection.invoke("SubscribeGroup",this.token.POSAccountID)}onCallapseSidebar(){this.isCollapseSidebar=!this.isCollapseSidebar,this.storeName=this.token.StoreName,this.isCollapseSidebar&&(this.storeName=this.getInitialTitle(this.token.StoreName))}getInitialTitle(n){if(n){let h;const m=n.split(" ");return h=1==m.length?m[0].substring(0,2):m.shift().charAt(0)+m.pop().charAt(0),h}}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}}return c.\u0275fac=function(n){return new(n||c)(d.Y36(t.F0),d.Y36(A.e),d.Y36(V._W),d.Y36(me.F),d.Y36(Pe.g))},c.\u0275cmp=d.Xpm({type:c,selectors:[["app-menu"]],decls:23,vars:8,consts:[[1,"wrapper"],["data-color","green",1,"sidebar",3,"ngClass"],[1,"btn-minimize","d-md-block","d-none","p-0","border-0","bg-white",3,"click"],[1,"fas","cursor",3,"ngClass"],[1,"logo"],[1,"navbar","dropdown","bg-transparent","border-0"],["data-bs-toggle","dropdown","aria-expanded","false",1,"simple-text","text-start","dropdown-toggle","d-flex","align-items-center","justify-content-center",3,"title"],[1,"dropdown-menu"],[1,"dropdown-header","text-dark","border-bottom"],[1,"divider","m-0"],[1,"dropdown-item","h5",2,"cursor","pointer",3,"click"],["aria-hidden","true",1,"fas","fa-sign-out-alt"],[1,"sidebar-wrapper"],[1,"nav"],["routerLinkActive","active",4,"ngFor","ngForOf"],[1,"main-panel"],["class","alert alert-warning d-flex justify-content-between text-dark","role","alert",4,"ngIf"],["routerLinkActive","active"],["matTooltipPosition","right",1,"nav-link","position-relative","d-block",3,"matTooltip","routerLink"],["role","alert",1,"alert","alert-warning","d-flex","justify-content-between","text-dark"],["target","_blank","href","https://support.dealpos.com/en/articles/5334947-renew-shopee-authorization"],[1,"alert-link","text-danger",2,"cursor","pointer",3,"click"],[1,"far","fa-times-circle","fa-lg"]],template:function(n,h){1&n&&(d.TgZ(0,"div",0)(1,"div",1)(2,"button",2),d.NdJ("click",function(){return h.onCallapseSidebar()}),d._UZ(3,"i",3),d.qZA(),d.TgZ(4,"div",4)(5,"div",5)(6,"a",6),d._uU(7),d.qZA(),d.TgZ(8,"div",7)(9,"div",8),d._uU(10,"Admin "),d.qZA(),d._UZ(11,"div",9),d.TgZ(12,"a",10),d.NdJ("click",function(){return h.LogOut()}),d._UZ(13,"i",11),d._uU(14,"\xa0 "),d.TgZ(15,"span"),d._uU(16," Log Out"),d.qZA()()()()(),d.TgZ(17,"div",12)(18,"ul",13),d.YNc(19,ee,5,5,"li",14),d.qZA()()(),d.TgZ(20,"div",15),d.YNc(21,pe,8,2,"div",16),d._UZ(22,"router-outlet"),d.qZA()()),2&n&&(d.ekj("nav-open",h.isNavOpen),d.xp6(1),d.Q6J("ngClass",h.isCollapseSidebar?"collapses":""),d.xp6(2),d.Q6J("ngClass",h.isCollapseSidebar?"fa-angle-left":"fa-angle-right"),d.xp6(3),d.s9C("title",h.token.StoreName),d.xp6(1),d.hij(" ",h.storeName," "),d.xp6(12),d.Q6J("ngForOf",h.Menu),d.xp6(2),d.Q6J("ngIf",h.IsExpired))},dependencies:[r.mk,r.sg,r.O5,t.lC,t.yS,t.Od,Ke.gM],styles:[".top-initial[_ngcontent-%COMP%] .dropdown-menu.show[_ngcontent-%COMP%]{top:initial!important}@media (max-width: 468px){.navbar[_ngcontent-%COMP%] .navbar-brand[_ngcontent-%COMP%]{white-space:nowrap;max-width:7em;overflow:hidden;text-overflow:ellipsis}}@media only screen and (min-width: 992px){.sidebar[_ngcontent-%COMP%]{z-index:1050!important;transition:all .3s}.sidebar[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%]{transition:all .3s}.sidebar[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%]{transition:all .3s}.sidebar[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%] .navbar.fixed-top[_ngcontent-%COMP%]{transition:all .3s}.sidebar.collapses[_ngcontent-%COMP%], .sidebar.collapses[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%]{width:70px;transition:all .3s}.sidebar.collapses[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] .simple-text[_ngcontent-%COMP%]{background-color:#ffffff3b;border-radius:20px;height:40px;width:40px}.sidebar.collapses[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{padding:10px 0 10px 10px!important;height:50px;text-align:center;margin:10px}.sidebar.collapses[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:none}.sidebar.collapses[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%]{padding-left:70px}.sidebar.collapses[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%] .navbar.fixed-top[_ngcontent-%COMP%]{left:70px!important;transition:all .3s}.sidebar[_ngcontent-%COMP%] .btn-minimize[_ngcontent-%COMP%]{position:absolute;top:17px;right:-20px;z-index:7;transform:rotate(180deg);border-radius:50%;box-shadow:0 0 0 1px #091e4214,0 2px 4px 1px #091e4214;color:#000;cursor:pointer;height:24px;opacity:0;outline:0;width:24px;transform-origin:7px;transition:opacity .5s;-webkit-transition:opacity .5s}.sidebar[_ngcontent-%COMP%] .btn-minimize[_ngcontent-%COMP%]:hover{color:#2996cc}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%]{opacity:1;background-color:#fff;position:absolute;top:17px;right:-20px;z-index:7;transform:rotate(180deg);border:0;border-radius:50%;box-shadow:0 0 0 1px #091e4214,0 2px 4px 1px #091e4214;color:#000;cursor:pointer;height:24px;opacity:0;outline:0;padding:0;width:24px;transform-origin:7px;transition:opacity .5s;-webkit-transition:opacity .5s}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{cursor:pointer}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%]:hover{color:#2996cc}.sidebar[_ngcontent-%COMP%]:hover:hover .btn-minimize[_ngcontent-%COMP%]{opacity:1}.full-container[_ngcontent-%COMP%]{padding-top:0!important}}"]}),c})(),children:[{path:"",redirectTo:"products",pathMatch:"full"},{path:"products",loadChildren:()=>Promise.all([a.e(796),a.e(739),a.e(592),a.e(832)]).then(a.bind(a,832)).then(c=>c.ProductModule),canActivate:[M.a],data:{title:"Products"}},{path:"inventory",loadChildren:()=>Promise.all([a.e(796),a.e(61),a.e(146),a.e(472)]).then(a.bind(a,1472)).then(c=>c.InventoryModule),canActivate:[M.a],data:{title:"Inventory"}},{path:"price",loadChildren:()=>Promise.all([a.e(796),a.e(61),a.e(146),a.e(970)]).then(a.bind(a,7970)).then(c=>c.PriceModule),canActivate:[M.a],data:{title:"Price"}},{path:"Order",loadChildren:()=>Promise.all([a.e(796),a.e(616),a.e(739),a.e(592),a.e(402)]).then(a.bind(a,5402)).then(c=>c.OrdersModule),canActivate:[M.a],data:{title:"Order"}},{path:"report",loadChildren:()=>Promise.all([a.e(616),a.e(585),a.e(285)]).then(a.bind(a,4285)).then(c=>c.ReportModule),canActivate:[M.a],data:{title:"Report"}},{path:"Logistic",loadChildren:()=>a.e(512).then(a.bind(a,5512)).then(c=>c.LogisticModule),canActivate:[M.a],data:{title:"Logistic"}},{path:"channel",loadChildren:()=>Promise.all([a.e(796),a.e(61),a.e(592),a.e(288)]).then(a.bind(a,1288)).then(c=>c.ChannelsModule),canActivate:[M.a],data:{title:"Marketplace"}},{path:"log",loadChildren:()=>Promise.all([a.e(796),a.e(616),a.e(739),a.e(585),a.e(767)]).then(a.bind(a,6767)).then(c=>c.LogsModule),canActivate:[M.a],data:{title:"Orders"}},{path:"Notification",loadChildren:()=>Promise.all([a.e(796),a.e(717)]).then(a.bind(a,6717)).then(c=>c.NotificationModule),canActivate:[M.a],data:{title:"Push Notification"}}]}];let Re=(()=>{class c{}return c.\u0275fac=function(n){return new(n||c)},c.\u0275mod=d.oAB({type:c}),c.\u0275inj=d.cJS({imports:[t.Bz.forChild(se),t.Bz]}),c})();var Fe=a(7481),Ze=a(5412),et=a(1948),nt=a(4144),Qe=a(9549),rt=a(4385),lt=a(8966),ct=a(6709);let dt=(()=>{class c{}return c.\u0275fac=function(n){return new(n||c)},c.\u0275mod=d.oAB({type:c}),c.\u0275inj=d.cJS({providers:[r.uU],imports:[r.ez,l.u5,Re,Fe.R,Ze.Is,et.Fk,nt.c,Qe.lN,rt.LD,lt.n,ct.p9,Ke.AV]}),c})()},8063:(ze,Me,a)=>{a.d(Me,{a:()=>t});var r=a(4650),l=a(8252);let t=(()=>{class M{constructor(O){this.router=O}canActivate(O,_e){let re=JSON.parse(window.localStorage.getItem("user")),G=new Date;return null!=re&&G<new Date(re.Token.expiredAt)||(this.router.navigate([""]),!1)}}return M.\u0275fac=function(O){return new(O||M)(r.LFG(l.F0))},M.\u0275prov=r.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"}),M})()},3841:(ze,Me,a)=>{a.d(Me,{F:()=>t});var r=a(4650),l=a(3131);let t=(()=>{class M{constructor(O){this.db=O,this.DATABASE="Categories"}saveList(O,_e){return new Promise(re=>{let G="";0==_e&&(G="Shopee"),1==_e&&(G="Tokopedia"),this.db.add(this.DATABASE,O,G).subscribe(()=>{re("Success!")})})}getListByKey(O){return new Promise((_e,re)=>{let G="";0==O&&(G="Shopee"),1==O&&(G="Tokopedia"),this.db.getByKey(this.DATABASE,G).subscribe(L=>{_e(L)},L=>{re(L)})})}Remove(){this.db.clear(this.DATABASE)}}return M.\u0275fac=function(O){return new(O||M)(r.LFG(l.ys))},M.\u0275prov=r.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"}),M})()},1589:(ze,Me,a)=>{a.d(Me,{g:()=>t});var r=a(1135),l=a(4650);let t=(()=>{class M{constructor(){this._toggleState=new r.X(!1),this.toggleState$=this._toggleState.asObservable()}toggleSidebar(){this._toggleState.next(!this._toggleState.value)}}return M.\u0275fac=function(O){return new(O||M)},M.\u0275prov=l.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"}),M})()},8966:(ze,Me,a)=>{a.d(Me,{h:()=>Pe,n:()=>Ke});var r=a(6895),l=a(4650),t=a(4006),M=a(9549),ne=a(4385),O=a(2722),_e=a(8372),re=a(8505),G=a(7579),L=a(4968);let _=(()=>{class ee{constructor(k,se){this.matSelect=k,this.ngZone=se,this.threshold="15%",this.debounceTime=150,this.infiniteScroll=new l.vpe,this.thrPx=0,this.thrPc=0,this.singleOptionHeight=3,this.destroyed$=new G.x}ngOnInit(){this.evaluateThreshold()}ngAfterViewInit(){this.matSelect.openedChange.pipe((0,O.R)(this.destroyed$)).subscribe(k=>{k&&(this.panel=this.matSelect.panel.nativeElement,this.singleOptionHeight=this.getSelectItemHeightPx(),this.registerScrollListener())})}ngOnDestroy(){this.destroyed$.next(!0),this.destroyed$.complete()}evaluateThreshold(){this.threshold.lastIndexOf("%")>-1?(this.thrPx=0,this.thrPc=parseFloat(this.threshold)/100):(this.thrPx=parseFloat(this.threshold),this.thrPc=0)}registerScrollListener(){(0,L.R)(this.panel,"scroll").pipe((0,O.R)(this.destroyed$),(0,_e.b)(this.debounceTime),(0,re.b)(k=>{this.handleScrollEvent(k)})).subscribe()}handleScrollEvent(k){this.ngZone.runOutsideAngular(()=>{if(this.complete)return;const Re=this.singleOptionHeight*this.matSelect.options.length;this.panel.clientHeight+k.target.scrollTop+(0!==this.thrPc?Re*this.thrPc:this.thrPx)>=Re&&this.ngZone.run(()=>this.infiniteScroll.emit())})}getSelectItemHeightPx(){return 3*parseFloat(getComputedStyle(this.panel).fontSize)}}return ee.\u0275fac=function(k){return new(k||ee)(l.Y36(ne.gD),l.Y36(l.R0b))},ee.\u0275dir=l.lG2({type:ee,selectors:[["","msInfiniteScroll",""]],inputs:{threshold:"threshold",debounceTime:"debounceTime",complete:"complete"},outputs:{infiniteScroll:"infiniteScroll"}}),ee})(),R=(()=>{class ee{}return ee.\u0275fac=function(k){return new(k||ee)},ee.\u0275mod=l.oAB({type:ee}),ee.\u0275inj=l.cJS({imports:[[ne.LD]]}),ee})();var B=a(9521),j=a(3238),z=a(1135),K=a(9646),ge=a(9841),ke=a(3900),xe=a(4004),de=a(8675),te=a(4986),b=a(7272),x=a(5698),v=a(4482),D=a(5403),ae=a(5032),Ce=a(9718),Ae=a(5577);function Oe(ee,pe){return pe?k=>(0,b.z)(pe.pipe((0,x.q)(1),function Se(){return(0,v.e)((ee,pe)=>{ee.subscribe((0,D.x)(pe,ae.Z))})}()),k.pipe(Oe(ee))):(0,Ae.z)((k,se)=>ee(k,se).pipe((0,x.q)(1),(0,Ce.h)(k)))}var ye=a(2805),H=a(9300),X=a(7376),oe=a(2687),F=a(6709),Z=a(1281),ie=a(3353),De=a(727);function he(ee,pe){if(1&ee&&(l.O4$(),l._UZ(0,"circle",4)),2&ee){const k=l.oxw(),se=l.MAs(1);l.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+k._spinnerAnimationLabel)("stroke-dashoffset",k._getStrokeDashOffset(),"px")("stroke-dasharray",k._getStrokeCircumference(),"px")("stroke-width",k._getCircleStrokeWidth(),"%")("transform-origin",k._getCircleTransformOrigin(se)),l.uIk("r",k._getCircleRadius())}}function ve(ee,pe){if(1&ee&&(l.O4$(),l._UZ(0,"circle",4)),2&ee){const k=l.oxw(),se=l.MAs(1);l.Udp("stroke-dashoffset",k._getStrokeDashOffset(),"px")("stroke-dasharray",k._getStrokeCircumference(),"px")("stroke-width",k._getCircleStrokeWidth(),"%")("transform-origin",k._getCircleTransformOrigin(se)),l.uIk("r",k._getCircleRadius())}}const le=(0,j.pj)(class{constructor(ee){this._elementRef=ee}},"primary"),ce=new l.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function fe(){return{diameter:100}}});class Ue extends le{constructor(pe,k,se,Re,Fe,Ze,et,nt){super(pe),this._document=se,this._diameter=100,this._value=0,this._resizeSubscription=De.w0.EMPTY,this.mode="determinate";const Qe=Ue._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),Qe.has(se.head)||Qe.set(se.head,new Set([100])),this._noopAnimations="NoopAnimations"===Re&&!!Fe&&!Fe._forceAnimations,"mat-spinner"===pe.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),Fe&&(Fe.color&&(this.color=this.defaultColor=Fe.color),Fe.diameter&&(this.diameter=Fe.diameter),Fe.strokeWidth&&(this.strokeWidth=Fe.strokeWidth)),k.isBrowser&&k.SAFARI&&et&&Ze&&nt&&(this._resizeSubscription=et.change(150).subscribe(()=>{"indeterminate"===this.mode&&nt.run(()=>Ze.markForCheck())}))}get diameter(){return this._diameter}set diameter(pe){this._diameter=(0,Z.su)(pe),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(pe){this._strokeWidth=(0,Z.su)(pe)}get value(){return"determinate"===this.mode?this._value:0}set value(pe){this._value=Math.max(0,Math.min(100,(0,Z.su)(pe)))}ngOnInit(){const pe=this._elementRef.nativeElement;this._styleRoot=(0,ie.kV)(pe)||this._document.head,this._attachStyleNode(),pe.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const pe=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${pe} ${pe}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(pe){const k=50*(pe.currentScale??1);return`${k}% ${k}%`}_attachStyleNode(){const pe=this._styleRoot,k=this._diameter,se=Ue._diameters;let Re=se.get(pe);if(!Re||!Re.has(k)){const Fe=this._document.createElement("style");Fe.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),Fe.textContent=this._getAnimationText(),pe.appendChild(Fe),Re||(Re=new Set,se.set(pe,Re)),Re.add(k)}}_getAnimationText(){const pe=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*pe).replace(/END_VALUE/g,""+.2*pe).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Ue._diameters=new WeakMap,Ue.\u0275fac=function(pe){return new(pe||Ue)(l.Y36(l.SBq),l.Y36(ie.t4),l.Y36(r.K0,8),l.Y36(l.QbO,8),l.Y36(ce),l.Y36(l.sBO),l.Y36(X.rL),l.Y36(l.R0b))},Ue.\u0275cmp=l.Xpm({type:Ue,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(pe,k){2&pe&&(l.uIk("aria-valuemin","determinate"===k.mode?0:null)("aria-valuemax","determinate"===k.mode?100:null)("aria-valuenow","determinate"===k.mode?k.value:null)("mode",k.mode),l.Udp("width",k.diameter,"px")("height",k.diameter,"px"),l.ekj("_mat-animation-noopable",k._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[l.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(pe,k){1&pe&&(l.O4$(),l.TgZ(0,"svg",0,1),l.YNc(2,he,1,11,"circle",2),l.YNc(3,ve,1,9,"circle",3),l.qZA()),2&pe&&(l.Udp("width",k.diameter,"px")("height",k.diameter,"px"),l.Q6J("ngSwitch","indeterminate"===k.mode),l.uIk("viewBox",k._getViewBox()),l.xp6(2),l.Q6J("ngSwitchCase",!0),l.xp6(1),l.Q6J("ngSwitchCase",!1))},dependencies:[r.RF,r.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0});let We=(()=>{class ee{}return ee.\u0275fac=function(k){return new(k||ee)},ee.\u0275mod=l.oAB({type:ee}),ee.\u0275inj=l.cJS({imports:[j.BQ,r.ez,j.BQ]}),ee})();var Xe=a(4859),Je=a(7392),qe=a(266);const Ie=["searchSelectInput"],E=["innerSelectSearch"];function p(ee,pe){if(1&ee){const k=l.EpF();l.TgZ(0,"mat-checkbox",9),l.NdJ("change",function(Re){l.CHM(k);const Fe=l.oxw();return l.KtG(Fe._emitSelectAllBooleanToParent(Re.checked))}),l.qZA()}if(2&ee){const k=l.oxw();l.Q6J("color",null==k.matFormField?null:k.matFormField.color)("checked",k.toggleAllCheckboxChecked)("indeterminate",k.toggleAllCheckboxIndeterminate)("matTooltip",k.toggleAllCheckboxTooltipMessage)("matTooltipPosition",k.toogleAllCheckboxTooltipPosition)}}function i(ee,pe){1&ee&&l._UZ(0,"mat-spinner",10)}function e(ee,pe){1&ee&&l.Hsn(0,1,["*ngIf","clearIcon; else defaultIcon"])}function s(ee,pe){if(1&ee&&(l.TgZ(0,"mat-icon",14),l._uU(1),l.qZA()),2&ee){const k=l.oxw(2);l.Q6J("svgIcon",k.closeSvgIcon),l.xp6(1),l.hij(" ",k.closeSvgIcon?null:k.closeIcon," ")}}function f(ee,pe){if(1&ee){const k=l.EpF();l.TgZ(0,"button",11),l.NdJ("click",function(){l.CHM(k);const Re=l.oxw();return l.KtG(Re._reset(!0))}),l.YNc(1,e,1,0,"ng-content",12),l.YNc(2,s,2,2,"ng-template",null,13,l.W1O),l.qZA()}if(2&ee){const k=l.MAs(3),se=l.oxw();l.xp6(1),l.Q6J("ngIf",se.clearIcon)("ngIfElse",k)}}function S(ee,pe){1&ee&&l.Hsn(0,2,["*ngIf","noEntriesFound; else defaultNoEntriesFound"])}function I(ee,pe){if(1&ee&&l._uU(0),2&ee){const k=l.oxw(2);l.Oqu(k.noEntriesFoundLabel)}}function Q(ee,pe){if(1&ee&&(l.TgZ(0,"div",15),l.YNc(1,S,1,0,"ng-content",12),l.YNc(2,I,1,1,"ng-template",null,16,l.W1O),l.qZA()),2&ee){const k=l.MAs(3),se=l.oxw();l.xp6(1),l.Q6J("ngIf",se.noEntriesFound)("ngIfElse",k)}}const be=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],we=function(ee,pe){return{"mat-select-search-inner-multiple":ee,"mat-select-search-inner-toggle-all":pe}},Le=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"];let Te=(()=>{class ee{}return ee.\u0275fac=function(k){return new(k||ee)},ee.\u0275dir=l.lG2({type:ee,selectors:[["","ngxMatSelectSearchClear",""]]}),ee})();const Ne=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","indexAndLengthScreenReaderText","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],je=new l.OlP("mat-selectsearch-default-options");let U=(()=>{class ee{}return ee.\u0275fac=function(k){return new(k||ee)},ee.\u0275dir=l.lG2({type:ee,selectors:[["","ngxMatSelectNoEntriesFound",""]]}),ee})(),y=(()=>{class ee{constructor(k,se,Re,Fe=null,Ze,et=null,nt){this.matSelect=k,this.changeDetectorRef=se,this._viewportRuler=Re,this.matOption=Fe,this.liveAnnouncer=Ze,this.matFormField=et,this.placeholderLabel="Suche",this.type="text",this.closeIcon="close",this.noEntriesFoundLabel="Keine Optionen gefunden",this.indexAndLengthScreenReaderText=" of ",this.clearSearchInput=!0,this.searching=!1,this.disableInitialFocus=!1,this.enableClearOnEscapePressed=!1,this.preventHomeEndKeyPropagation=!1,this.disableScrollToActiveOnOptionsChanged=!1,this.ariaLabel="dropdown search",this.showToggleAllCheckbox=!1,this.toggleAllCheckboxChecked=!1,this.toggleAllCheckboxIndeterminate=!1,this.toggleAllCheckboxTooltipMessage="",this.toogleAllCheckboxTooltipPosition="below",this.hideClearSearchButton=!1,this.alwaysRestoreSelectedOptionsMulti=!1,this.toggleAll=new l.vpe,this.onTouched=Qe=>{},this._options$=new z.X(null),this.optionsList$=this._options$.pipe((0,ke.w)(Qe=>Qe?Qe.changes.pipe((0,xe.U)(rt=>rt.toArray()),(0,de.O)(Qe.toArray())):(0,K.of)(null))),this.optionsLength$=this.optionsList$.pipe((0,xe.U)(Qe=>Qe?Qe.length:0)),this._formControl=new t.NI(""),this._showNoEntriesFound$=(0,ge.a)([this._formControl.valueChanges,this.optionsLength$]).pipe((0,xe.U)(([Qe,rt])=>this.noEntriesFoundLabel&&Qe&&rt===this.getOptionsLengthOffset())),this._onDestroy=new G.x,this.applyDefaultOptions(nt)}get isInsideMatOption(){return!!this.matOption}get value(){return this._formControl.value}set _options(k){this._options$.next(k)}get _options(){return this._options$.getValue()}applyDefaultOptions(k){if(k)for(const se of Ne)k.hasOwnProperty(se)&&(this[se]=k[se])}ngOnInit(){const k="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(k):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,k]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[k]=!0):this.matSelect.panelClass=k,this.matOption?(this.matOption.disabled=!0,this.matOption._getHostElement().classList.add("contains-mat-select-search")):console.error("<ngx-mat-select-search> must be placed inside a <mat-option> element"),this.matSelect.openedChange.pipe(function Ee(ee,pe=te.z){const k=(0,ye.H)(ee,pe);return Oe(()=>k)}(1),(0,O.R)(this._onDestroy)).subscribe(se=>{se?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe((0,x.q)(1)).pipe((0,O.R)(this._onDestroy)).subscribe(()=>{this.matSelect._keyManager?this.matSelect._keyManager.change.pipe((0,O.R)(this._onDestroy)).subscribe(()=>this.adjustScrollTopToFitActiveOptionIntoView()):console.log("_keyManager was not initialized."),this._options=this.matSelect.options;let se=this._options.toArray()[this.getOptionsLengthOffset()];this._options.changes.pipe((0,O.R)(this._onDestroy)).subscribe(()=>{setTimeout(()=>{const Re=this._options.toArray(),Fe=Re[this.getOptionsLengthOffset()],Ze=this.matSelect._keyManager;Ze&&this.matSelect.panelOpen&&((!this.matSelect.compareWith(se,Fe)||!Ze.activeItem||!Re.find(nt=>this.matSelect.compareWith(nt,Ze.activeItem)))&&Ze.setFirstItemActive(),setTimeout(()=>{this.updateInputWidth()}),this.disableScrollToActiveOnOptionsChanged||this.adjustScrollTopToFitActiveOptionIntoView()),se=Fe})})}),this._showNoEntriesFound$.pipe((0,O.R)(this._onDestroy)).subscribe(se=>{this.matOption&&(se?this.matOption._getHostElement().classList.add("mat-select-search-no-entries-found"):this.matOption._getHostElement().classList.remove("mat-select-search-no-entries-found"))}),this._viewportRuler.change().pipe((0,O.R)(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe((0,O.R)(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(k){this.toggleAll.emit(k)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(k){(k.key&&1===k.key.length||k.keyCode>=B.A&&k.keyCode<=B.Z||k.keyCode>=B.xE&&k.keyCode<=B.aO||k.keyCode===B.L_||this.preventHomeEndKeyPropagation&&(k.keyCode===B.Sd||k.keyCode===B.uR))&&k.stopPropagation(),this.matSelect.multiple&&k.key&&k.keyCode===B.K5&&setTimeout(()=>this._focus()),!0===this.enableClearOnEscapePressed&&k.keyCode===B.hY&&this.value&&(this._reset(!0),k.stopPropagation())}_handleKeyup(k){if(k.keyCode===B.LH||k.keyCode===B.JH){const se=this.matSelect._getAriaActiveDescendant(),Re=this._options.toArray().findIndex(Fe=>Fe.id===se);if(-1!==Re){const Fe=this._options.toArray()[Re];this.liveAnnouncer.announce(Fe.viewValue+" "+this.getAriaIndex(Re)+this.indexAndLengthScreenReaderText+this.getAriaLength())}}}getAriaIndex(k){return 0===this.getOptionsLengthOffset()?k+1:k}getAriaLength(){return this._options.toArray().length-this.getOptionsLengthOffset()}writeValue(k){this._lastExternalInputValue=k,this._formControl.setValue(k),this.changeDetectorRef.markForCheck()}onBlur(){this.onTouched()}registerOnChange(k){this._formControl.valueChanges.pipe((0,H.h)(se=>se!==this._lastExternalInputValue),(0,re.b)(()=>this._lastExternalInputValue=void 0),(0,O.R)(this._onDestroy)).subscribe(k)}registerOnTouched(k){this.onTouched=k}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;const k=this.matSelect.panel.nativeElement,se=k.scrollTop;this.searchSelectInput.nativeElement.focus(),k.scrollTop=se}_reset(k){this._formControl.setValue(""),k&&this._focus()}initMultipleHandling(){this.matSelect.ngControl?(this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges.pipe((0,O.R)(this._onDestroy)).subscribe(k=>{let se=!1;const Re=k&&Array.isArray(k)?[...k]:[];if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){const Fe=this.matSelect.options.map(Ze=>Ze.value);this.previousSelectedValues.forEach(Ze=>{!Re.some(et=>this.matSelect.compareWith(et,Ze))&&!Fe.some(et=>this.matSelect.compareWith(et,Ze))&&(Re.push(Ze),se=!0)})}this.previousSelectedValues=Re,se&&this.matSelect._onChange(Re)})):this.matSelect.multiple&&console.error("the mat-select containing ngx-mat-select-search must have a ngModel or formControl directive when multiple=true")}adjustScrollTopToFitActiveOptionIntoView(){if(this.matSelect.panel&&this.matSelect.options.length>0){const k=this.getMatOptionHeight(),se=this.matSelect._keyManager.activeItemIndex||0,Re=(0,j.CB)(se,this.matSelect.options,this.matSelect.optionGroups),Fe=(this.matOption?-1:0)+Re+se,Ze=this.matSelect.panel.nativeElement.scrollTop,et=this.innerSelectSearch.nativeElement.offsetHeight,nt=Math.floor((256-et)/k),Qe=Math.round((Ze+et)/k)-1;Qe>=Fe?this.matSelect.panel.nativeElement.scrollTop=Fe*k:Qe+nt<=Fe&&(this.matSelect.panel.nativeElement.scrollTop=(Fe+1)*k-(256-et))}}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let se,k=this.innerSelectSearch.nativeElement;for(;k=k.parentElement;)if(k.classList.contains("mat-select-panel")){se=k;break}se&&(this.innerSelectSearch.nativeElement.style.width=se.clientWidth+"px")}getMatOptionHeight(){return this.matSelect.options.length>0?this.matSelect.options.first._getHostElement().getBoundingClientRect().height:0}getOptionsLengthOffset(){return this.matOption?1:0}}return ee.\u0275fac=function(k){return new(k||ee)(l.Y36(ne.gD),l.Y36(l.sBO),l.Y36(X.rL),l.Y36(j.ey,8),l.Y36(oe.Kd),l.Y36(M.KE,8),l.Y36(je,8))},ee.\u0275cmp=l.Xpm({type:ee,selectors:[["ngx-mat-select-search"]],contentQueries:function(k,se,Re){if(1&k&&(l.Suo(Re,Te,5),l.Suo(Re,U,5)),2&k){let Fe;l.iGM(Fe=l.CRH())&&(se.clearIcon=Fe.first),l.iGM(Fe=l.CRH())&&(se.noEntriesFound=Fe.first)}},viewQuery:function(k,se){if(1&k&&(l.Gf(Ie,7,l.SBq),l.Gf(E,7,l.SBq)),2&k){let Re;l.iGM(Re=l.CRH())&&(se.searchSelectInput=Re.first),l.iGM(Re=l.CRH())&&(se.innerSelectSearch=Re.first)}},hostVars:2,hostBindings:function(k,se){2&k&&l.ekj("mat-select-search-inside-mat-option",se.isInsideMatOption)},inputs:{placeholderLabel:"placeholderLabel",type:"type",closeIcon:"closeIcon",closeSvgIcon:"closeSvgIcon",noEntriesFoundLabel:"noEntriesFoundLabel",indexAndLengthScreenReaderText:"indexAndLengthScreenReaderText",clearSearchInput:"clearSearchInput",searching:"searching",disableInitialFocus:"disableInitialFocus",enableClearOnEscapePressed:"enableClearOnEscapePressed",preventHomeEndKeyPropagation:"preventHomeEndKeyPropagation",disableScrollToActiveOnOptionsChanged:"disableScrollToActiveOnOptionsChanged",ariaLabel:"ariaLabel",showToggleAllCheckbox:"showToggleAllCheckbox",toggleAllCheckboxChecked:"toggleAllCheckboxChecked",toggleAllCheckboxIndeterminate:"toggleAllCheckboxIndeterminate",toggleAllCheckboxTooltipMessage:"toggleAllCheckboxTooltipMessage",toogleAllCheckboxTooltipPosition:"toogleAllCheckboxTooltipPosition",hideClearSearchButton:"hideClearSearchButton",alwaysRestoreSelectedOptionsMulti:"alwaysRestoreSelectedOptionsMulti"},outputs:{toggleAll:"toggleAll"},features:[l._Bn([{provide:t.JU,useExisting:(0,l.Gpc)(()=>ee),multi:!0}])],ngContentSelectors:Le,decls:11,vars:14,consts:[["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header",3,"ngClass"],["innerSelectSearch",""],["class","mat-select-search-toggle-all-checkbox","matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change",4,"ngIf"],["autocomplete","off",1,"mat-select-search-input","mat-input-element",3,"type","formControl","placeholder","keydown","keyup","blur"],["searchSelectInput",""],["class","mat-select-search-spinner","diameter","16",4,"ngIf"],["mat-button","","mat-icon-button","","aria-label","Clear","class","mat-select-search-clear",3,"click",4,"ngIf"],["class","mat-select-search-no-entries-found",4,"ngIf"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change"],["diameter","16",1,"mat-select-search-spinner"],["mat-button","","mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[4,"ngIf","ngIfElse"],["defaultIcon",""],[3,"svgIcon"],[1,"mat-select-search-no-entries-found"],["defaultNoEntriesFound",""]],template:function(k,se){1&k&&(l.F$t(be),l._UZ(0,"input",0),l.TgZ(1,"div",1,2),l.YNc(3,p,1,5,"mat-checkbox",3),l.TgZ(4,"input",4,5),l.NdJ("keydown",function(Fe){return se._handleKeydown(Fe)})("keyup",function(Fe){return se._handleKeyup(Fe)})("blur",function(){return se.onBlur()}),l.qZA(),l.YNc(6,i,1,0,"mat-spinner",6),l.YNc(7,f,4,2,"button",7),l.Hsn(8),l.qZA(),l.YNc(9,Q,4,2,"div",8),l.ALo(10,"async")),2&k&&(l.xp6(1),l.Q6J("ngClass",l.WLB(11,we,se.matSelect.multiple,se._isToggleAllCheckboxVisible())),l.xp6(2),l.Q6J("ngIf",se._isToggleAllCheckboxVisible()),l.xp6(1),l.Q6J("type",se.type)("formControl",se._formControl)("placeholder",se.placeholderLabel),l.uIk("aria-label",se.ariaLabel),l.xp6(2),l.Q6J("ngIf",se.searching),l.xp6(1),l.Q6J("ngIf",!se.hideClearSearchButton&&se.value&&!se.searching),l.xp6(2),l.Q6J("ngIf",l.lcZ(10,9,se._showNoEntriesFound$)))},dependencies:[F.oG,Ue,Xe.lW,Je.Hw,r.mk,r.O5,qe.gM,t.Fj,t.JJ,t.oH,r.Ov],styles:[".mat-select-search-hidden[_ngcontent-%COMP%]{visibility:hidden}.mat-select-search-inner[_ngcontent-%COMP%]{position:absolute;top:0;width:100%;border-bottom-width:1px;border-bottom-style:solid;z-index:100;font-size:inherit;box-shadow:none;border-radius:4px 4px 0 0;-webkit-transform:translate3d(0,0,0)}.mat-select-search-inner.mat-select-search-inner-multiple[_ngcontent-%COMP%]{width:100%}.mat-select-search-inner.mat-select-search-inner-multiple.mat-select-search-inner-toggle-all[_ngcontent-%COMP%]{display:flex;align-items:center}.mat-select-search-inner[_ngcontent-%COMP%] .mat-input-element[_ngcontent-%COMP%]{flex-basis:auto}.mat-select-search-inner[_ngcontent-%COMP%] .mat-input-element[_ngcontent-%COMP%]:-ms-input-placeholder{-ms-user-select:text} .mat-select-search-panel{transform:none!important;overflow-x:hidden}.mat-select-search-input[_ngcontent-%COMP%]{padding:16px 44px 16px 16px;box-sizing:border-box;width:100%}[dir=rtl][_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-right:16px;padding-left:44px}.mat-select-search-no-entries-found[_ngcontent-%COMP%]{padding:16px}.mat-select-search-clear[_ngcontent-%COMP%]{position:absolute;right:4px;top:5px}[dir=rtl][_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{right:auto;left:4px}.mat-select-search-spinner[_ngcontent-%COMP%]{position:absolute;right:16px;top:calc(50% - 8px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%]{right:auto;left:16px}.mat-select-search-inside-mat-option[_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0;height:3em;line-height:3em}.mat-select-search-inside-mat-option[_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{top:3px} .mat-option[aria-disabled=true].contains-mat-select-search{position:static;padding:0} .mat-option[aria-disabled=true].contains-mat-select-search .mat-icon{margin-right:0;margin-left:0} .mat-option[aria-disabled=true].contains-mat-select-search .mat-option-pseudo-checkbox{display:none} .mat-option[aria-disabled=true].contains-mat-select-search.mat-select-search-no-entries-found{height:6em}.mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:16px;padding-bottom:2px}[dir=rtl][_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:0;padding-right:16px}"],changeDetection:0}),ee})(),w=(()=>{class ee{}return ee.\u0275fac=function(k){return new(k||ee)},ee.\u0275mod=l.oAB({type:ee}),ee.\u0275inj=l.cJS({imports:[[r.ez,t.UX,Xe.ot,F.p9,Je.Ps,We,qe.AV]]}),ee})();var C=a(6451),d=a(5026);const A=["matSelectInfiniteScroll"];function V(ee,pe){if(1&ee&&(l.ynx(0),l._UZ(1,"img",7),l.BQk()),2&ee){const k=l.oxw().$implicit;l.xp6(1),l.Q6J("src",k.Img,l.LSH)}}function me(ee,pe){if(1&ee&&(l.TgZ(0,"mat-option",5),l.YNc(1,V,2,1,"ng-container",6),l._uU(2),l.qZA()),2&ee){const k=pe.$implicit,se=l.oxw();l.Q6J("value",k[se.bindValue]),l.xp6(1),l.Q6J("ngIf",null==k?null:k.Img),l.xp6(1),l.hij(" ",k[se.bindLabel]," ")}}let Pe=(()=>{class ee{constructor(){this.batchSize=50,this.optionCtrl=new t.p4,this.searchCtrl=new t.p4,this.filteredData$=this.searchCtrl.valueChanges.pipe((0,de.O)(""),(0,xe.U)(k=>k?this.data.filter(se=>se[this.bindLabel].toLowerCase().indexOf(k.toLowerCase())>-1):this.data)),this.incrementBatchOffset$=new G.x,this.resetBatchOffset$=new G.x,this.minimumBatchOffset$=(0,ge.a)([this.filteredData$,this.searchCtrl.valueChanges]).pipe((0,xe.U)(([k,se])=>!this.searchCtrl.value&&this.optionCtrl.value?k.findIndex(Fe=>Fe[this.bindValue]===this.optionCtrl.value)+this.batchSize:0),(0,de.O)(0)),this.batchOffset$=(0,ge.a)([(0,C.T)(this.incrementBatchOffset$.pipe((0,Ce.h)(!0)),this.resetBatchOffset$.pipe((0,Ce.h)(!1))),this.minimumBatchOffset$]).pipe((0,d.R)((k,[se,Re])=>se?Math.max(k+this.batchSize,Re+this.batchSize):Math.max(Re,this.batchSize),this.batchSize)),this.filteredBatchedData$=(0,ge.a)([this.filteredData$,this.batchOffset$]).pipe((0,xe.U)(([k,se])=>k.slice(0,se))),this.destroy$=new G.x,this.data=[],this.onSelect=new l.vpe}ngOnInit(){this.infiniteScrollSelect.openedChange.pipe((0,O.R)(this.destroy$)).subscribe(k=>{k&&this.resetBatchOffset$.next()}),this.onSelectData()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onSelectData(){this.optionCtrl.valueChanges.subscribe(k=>{k&&this.onSelect.emit(k)})}getNextBatch(){this.incrementBatchOffset$.next()}}return ee.\u0275fac=function(k){return new(k||ee)},ee.\u0275cmp=l.Xpm({type:ee,selectors:[["app-select-search"]],viewQuery:function(k,se){if(1&k&&l.Gf(A,7),2&k){let Re;l.iGM(Re=l.CRH())&&(se.infiniteScrollSelect=Re.first)}},inputs:{appearance:"appearance",data:"data",bindValue:"bindValue",bindLabel:"bindLabel",placeholder:"placeholder",batchSize:"batchSize"},outputs:{onSelect:"onSelect"},decls:7,vars:8,consts:[[3,"appearance"],["msInfiniteScroll","",3,"formControl","placeholder","infiniteScroll"],["matSelectInfiniteScroll",""],["placeholderLabel","search","noEntriesFoundLabel","No entry matches",3,"formControl","disableScrollToActiveOnOptionsChanged"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[4,"ngIf"],["alt","",2,"width","18px","margin-right","10px",3,"src"]],template:function(k,se){1&k&&(l.TgZ(0,"mat-form-field",0)(1,"mat-select",1,2),l.NdJ("infiniteScroll",function(){return se.getNextBatch()}),l.TgZ(3,"mat-option"),l._UZ(4,"ngx-mat-select-search",3),l.qZA(),l.YNc(5,me,3,3,"mat-option",4),l.ALo(6,"async"),l.qZA()()),2&k&&(l.Q6J("appearance",se.appearance),l.xp6(1),l.Q6J("formControl",se.optionCtrl)("placeholder",se.placeholder),l.xp6(3),l.Q6J("formControl",se.searchCtrl)("disableScrollToActiveOnOptionsChanged",!0),l.xp6(1),l.Q6J("ngForOf",l.lcZ(6,6,se.filteredBatchedData$)))},dependencies:[r.sg,r.O5,t.JJ,t.oH,M.KE,ne.gD,j.ey,y,_,r.Ov],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),ee})(),Ke=(()=>{class ee{}return ee.\u0275fac=function(k){return new(k||ee)},ee.\u0275mod=l.oAB({type:ee}),ee.\u0275inj=l.cJS({imports:[r.ez,t.UX,ne.LD,M.lN,w,R]}),ee})()},4968:(ze,Me,a)=>{a.d(Me,{R:()=>L});var r=a(8421),l=a(8306),t=a(5577),M=a(1144),ne=a(576),O=a(3268);const _e=["addListener","removeListener"],re=["addEventListener","removeEventListener"],G=["on","off"];function L(j,z,K,ge){if((0,ne.m)(K)&&(ge=K,K=void 0),ge)return L(j,z,K).pipe((0,O.Z)(ge));const[ke,xe]=function B(j){return(0,ne.m)(j.addEventListener)&&(0,ne.m)(j.removeEventListener)}(j)?re.map(de=>te=>j[de](z,te,K)):function _(j){return(0,ne.m)(j.addListener)&&(0,ne.m)(j.removeListener)}(j)?_e.map(q(j,z)):function R(j){return(0,ne.m)(j.on)&&(0,ne.m)(j.off)}(j)?G.map(q(j,z)):[];if(!ke&&(0,M.z)(j))return(0,t.z)(de=>L(de,z,K))((0,r.Xf)(j));if(!ke)throw new TypeError("Invalid event target");return new l.y(de=>{const te=(...b)=>de.next(1<b.length?b:b[0]);return ke(te),()=>xe(te)})}function q(j,z){return K=>ge=>j[K](z,ge)}},3601:(ze,Me,a)=>{a.d(Me,{e:()=>_e});var r=a(4986),l=a(4482),t=a(8421),M=a(5403),O=a(2805);function _e(re,G=r.z){return function ne(re){return(0,l.e)((G,L)=>{let q=!1,_=null,R=null,B=!1;const j=()=>{if(R?.unsubscribe(),R=null,q){q=!1;const K=_;_=null,L.next(K)}B&&L.complete()},z=()=>{R=null,B&&L.complete()};G.subscribe((0,M.x)(L,K=>{q=!0,_=K,R||(0,t.Xf)(re(K)).subscribe(R=(0,M.x)(L,j,z))},()=>{B=!0,(!q||!R||R.closed)&&L.complete()}))})}(()=>(0,O.H)(re,G))}},8372:(ze,Me,a)=>{a.d(Me,{b:()=>M});var r=a(4986),l=a(4482),t=a(5403);function M(ne,O=r.z){return(0,l.e)((_e,re)=>{let G=null,L=null,q=null;const _=()=>{if(G){G.unsubscribe(),G=null;const B=L;L=null,re.next(B)}};function R(){const B=q+ne,j=O.now();if(j<B)return G=this.schedule(void 0,B-j),void re.add(G);_()}_e.subscribe((0,t.x)(re,B=>{L=B,q=O.now(),G||(G=O.schedule(R,ne),re.add(G))},()=>{_(),re.complete()},void 0,()=>{L=G=null}))})}},5684:(ze,Me,a)=>{a.d(Me,{T:()=>l});var r=a(9300);function l(t){return(0,r.h)((M,ne)=>t<=ne)}},2722:(ze,Me,a)=>{a.d(Me,{R:()=>ne});var r=a(4482),l=a(5403),t=a(8421),M=a(5032);function ne(O){return(0,r.e)((_e,re)=>{(0,t.Xf)(O).subscribe((0,l.x)(re,()=>re.complete(),M.Z)),!re.closed&&_e.subscribe(re)})}},6406:(ze,Me,a)=>{a.d(Me,{Z:()=>_e});var r=a(4408),l=a(727);const t={schedule(G){let L=requestAnimationFrame,q=cancelAnimationFrame;const{delegate:_}=t;_&&(L=_.requestAnimationFrame,q=_.cancelAnimationFrame);const R=L(B=>{q=void 0,G(B)});return new l.w0(()=>q?.(R))},requestAnimationFrame(...G){const{delegate:L}=t;return(L?.requestAnimationFrame||requestAnimationFrame)(...G)},cancelAnimationFrame(...G){const{delegate:L}=t;return(L?.cancelAnimationFrame||cancelAnimationFrame)(...G)},delegate:void 0};var ne=a(7565);const _e=new class O extends ne.v{flush(L){this._active=!0;const q=this._scheduled;this._scheduled=void 0;const{actions:_}=this;let R;L=L||_.shift();do{if(R=L.execute(L.state,L.delay))break}while((L=_[0])&&L.id===q&&_.shift());if(this._active=!1,R){for(;(L=_[0])&&L.id===q&&_.shift();)L.unsubscribe();throw R}}}(class M extends r.o{constructor(L,q){super(L,q),this.scheduler=L,this.work=q}requestAsyncId(L,q,_=0){return null!==_&&_>0?super.requestAsyncId(L,q,_):(L.actions.push(this),L._scheduled||(L._scheduled=t.requestAnimationFrame(()=>L.flush(void 0))))}recycleAsyncId(L,q,_=0){if(null!=_&&_>0||null==_&&this.delay>0)return super.recycleAsyncId(L,q,_);L.actions.some(R=>R.id===q)||(t.cancelAnimationFrame(q),L._scheduled=void 0)}})},3101:(ze,Me,a)=>{a.d(Me,{E:()=>B});var r=a(4408);let t,l=1;const M={};function ne(z){return z in M&&(delete M[z],!0)}const O={setImmediate(z){const K=l++;return M[K]=!0,t||(t=Promise.resolve()),t.then(()=>ne(K)&&z()),K},clearImmediate(z){ne(z)}},{setImmediate:re,clearImmediate:G}=O,L={setImmediate(...z){const{delegate:K}=L;return(K?.setImmediate||re)(...z)},clearImmediate(z){const{delegate:K}=L;return(K?.clearImmediate||G)(z)},delegate:void 0};var _=a(7565);const B=new class R extends _.v{flush(K){this._active=!0;const ge=this._scheduled;this._scheduled=void 0;const{actions:ke}=this;let xe;K=K||ke.shift();do{if(xe=K.execute(K.state,K.delay))break}while((K=ke[0])&&K.id===ge&&ke.shift());if(this._active=!1,xe){for(;(K=ke[0])&&K.id===ge&&ke.shift();)K.unsubscribe();throw xe}}}(class q extends r.o{constructor(K,ge){super(K,ge),this.scheduler=K,this.work=ge}requestAsyncId(K,ge,ke=0){return null!==ke&&ke>0?super.requestAsyncId(K,ge,ke):(K.actions.push(this),K._scheduled||(K._scheduled=L.setImmediate(K.flush.bind(K,void 0))))}recycleAsyncId(K,ge,ke=0){if(null!=ke&&ke>0||null==ke&&this.delay>0)return super.recycleAsyncId(K,ge,ke);K.actions.some(xe=>xe.id===ge)||(L.clearImmediate(ge),K._scheduled=void 0)}})},2687:(ze,Me,a)=>{a.d(Me,{$s:()=>Se,Em:()=>Ee,Kd:()=>we,X6:()=>E,ic:()=>X,kH:()=>Ve,mK:()=>We,qV:()=>Ue,qm:()=>y,rt:()=>Y,s1:()=>ye,tE:()=>je,yG:()=>p});var r=a(6895),l=a(4650),t=a(3353),M=a(7579),ne=a(727),O=a(1135),_e=a(9646),re=a(9521),G=a(8505),L=a(8372),q=a(9300),_=a(4004),R=a(5698),B=a(5684),j=a(1884),z=a(2722),K=a(1281),ge=a(9643),ke=a(2289);function b(w,C){return(w.getAttribute(C)||"").match(/\S+/g)||[]}const v="cdk-describedby-message",D="cdk-describedby-host";let ae=0,Se=(()=>{class w{constructor(d,A){this._platform=A,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+ae++,this._document=d,this._id=(0,l.f3M)(l.AFp)+"-"+ae++}describe(d,A,V){if(!this._canBeDescribed(d,A))return;const me=Ce(A,V);"string"!=typeof A?(Ae(A,this._id),this._messageRegistry.set(me,{messageElement:A,referenceCount:0})):this._messageRegistry.has(me)||this._createMessageElement(A,V),this._isElementDescribedByMessage(d,me)||this._addMessageReference(d,me)}removeDescription(d,A,V){if(!A||!this._isElementNode(d))return;const me=Ce(A,V);if(this._isElementDescribedByMessage(d,me)&&this._removeMessageReference(d,me),"string"==typeof A){const Pe=this._messageRegistry.get(me);Pe&&0===Pe.referenceCount&&this._deleteMessageElement(me)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const d=this._document.querySelectorAll(`[${D}="${this._id}"]`);for(let A=0;A<d.length;A++)this._removeCdkDescribedByReferenceIds(d[A]),d[A].removeAttribute(D);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(d,A){const V=this._document.createElement("div");Ae(V,this._id),V.textContent=d,A&&V.setAttribute("role",A),this._createMessagesContainer(),this._messagesContainer.appendChild(V),this._messageRegistry.set(Ce(d,A),{messageElement:V,referenceCount:0})}_deleteMessageElement(d){this._messageRegistry.get(d)?.messageElement?.remove(),this._messageRegistry.delete(d)}_createMessagesContainer(){if(this._messagesContainer)return;const d="cdk-describedby-message-container",A=this._document.querySelectorAll(`.${d}[platform="server"]`);for(let me=0;me<A.length;me++)A[me].remove();const V=this._document.createElement("div");V.style.visibility="hidden",V.classList.add(d),V.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&V.setAttribute("platform","server"),this._document.body.appendChild(V),this._messagesContainer=V}_removeCdkDescribedByReferenceIds(d){const A=b(d,"aria-describedby").filter(V=>0!=V.indexOf(v));d.setAttribute("aria-describedby",A.join(" "))}_addMessageReference(d,A){const V=this._messageRegistry.get(A);(function de(w,C,d){const A=b(w,C);A.some(V=>V.trim()==d.trim())||(A.push(d.trim()),w.setAttribute(C,A.join(" ")))})(d,"aria-describedby",V.messageElement.id),d.setAttribute(D,this._id),V.referenceCount++}_removeMessageReference(d,A){const V=this._messageRegistry.get(A);V.referenceCount--,function te(w,C,d){const V=b(w,C).filter(me=>me!=d.trim());V.length?w.setAttribute(C,V.join(" ")):w.removeAttribute(C)}(d,"aria-describedby",V.messageElement.id),d.removeAttribute(D)}_isElementDescribedByMessage(d,A){const V=b(d,"aria-describedby"),me=this._messageRegistry.get(A),Pe=me&&me.messageElement.id;return!!Pe&&-1!=V.indexOf(Pe)}_canBeDescribed(d,A){if(!this._isElementNode(d))return!1;if(A&&"object"==typeof A)return!0;const V=null==A?"":`${A}`.trim(),me=d.getAttribute("aria-label");return!(!V||me&&me.trim()===V)}_isElementNode(d){return d.nodeType===this._document.ELEMENT_NODE}}return w.\u0275fac=function(d){return new(d||w)(l.LFG(r.K0),l.LFG(t.t4))},w.\u0275prov=l.Yz7({token:w,factory:w.\u0275fac,providedIn:"root"}),w})();function Ce(w,C){return"string"==typeof w?`${C||""}/${w}`:w}function Ae(w,C){w.id||(w.id=`${v}-${C}-${ae++}`)}class Oe{constructor(C){this._items=C,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new M.x,this._typeaheadSubscription=ne.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=d=>d.disabled,this._pressedLetters=[],this.tabOut=new M.x,this.change=new M.x,C instanceof l.n_E&&C.changes.subscribe(d=>{if(this._activeItem){const V=d.toArray().indexOf(this._activeItem);V>-1&&V!==this._activeItemIndex&&(this._activeItemIndex=V)}})}skipPredicate(C){return this._skipPredicateFn=C,this}withWrap(C=!0){return this._wrap=C,this}withVerticalOrientation(C=!0){return this._vertical=C,this}withHorizontalOrientation(C){return this._horizontal=C,this}withAllowedModifierKeys(C){return this._allowedModifierKeys=C,this}withTypeAhead(C=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,G.b)(d=>this._pressedLetters.push(d)),(0,L.b)(C),(0,q.h)(()=>this._pressedLetters.length>0),(0,_.U)(()=>this._pressedLetters.join(""))).subscribe(d=>{const A=this._getItemsArray();for(let V=1;V<A.length+1;V++){const me=(this._activeItemIndex+V)%A.length,Pe=A[me];if(!this._skipPredicateFn(Pe)&&0===Pe.getLabel().toUpperCase().trim().indexOf(d)){this.setActiveItem(me);break}}this._pressedLetters=[]}),this}withHomeAndEnd(C=!0){return this._homeAndEnd=C,this}setActiveItem(C){const d=this._activeItem;this.updateActiveItem(C),this._activeItem!==d&&this.change.next(this._activeItemIndex)}onKeydown(C){const d=C.keyCode,V=["altKey","ctrlKey","metaKey","shiftKey"].every(me=>!C[me]||this._allowedModifierKeys.indexOf(me)>-1);switch(d){case re.Mf:return void this.tabOut.next();case re.JH:if(this._vertical&&V){this.setNextItemActive();break}return;case re.LH:if(this._vertical&&V){this.setPreviousItemActive();break}return;case re.SV:if(this._horizontal&&V){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case re.oh:if(this._horizontal&&V){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case re.Sd:if(this._homeAndEnd&&V){this.setFirstItemActive();break}return;case re.uR:if(this._homeAndEnd&&V){this.setLastItemActive();break}return;default:return void((V||(0,re.Vb)(C,"shiftKey"))&&(C.key&&1===C.key.length?this._letterKeyStream.next(C.key.toLocaleUpperCase()):(d>=re.A&&d<=re.Z||d>=re.xE&&d<=re.aO)&&this._letterKeyStream.next(String.fromCharCode(d))))}this._pressedLetters=[],C.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(C){const d=this._getItemsArray(),A="number"==typeof C?C:d.indexOf(C);this._activeItem=d[A]??null,this._activeItemIndex=A}_setActiveItemByDelta(C){this._wrap?this._setActiveInWrapMode(C):this._setActiveInDefaultMode(C)}_setActiveInWrapMode(C){const d=this._getItemsArray();for(let A=1;A<=d.length;A++){const V=(this._activeItemIndex+C*A+d.length)%d.length;if(!this._skipPredicateFn(d[V]))return void this.setActiveItem(V)}}_setActiveInDefaultMode(C){this._setActiveItemByIndex(this._activeItemIndex+C,C)}_setActiveItemByIndex(C,d){const A=this._getItemsArray();if(A[C]){for(;this._skipPredicateFn(A[C]);)if(!A[C+=d])return;this.setActiveItem(C)}}_getItemsArray(){return this._items instanceof l.n_E?this._items.toArray():this._items}}class ye extends Oe{setActiveItem(C){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(C),this.activeItem&&this.activeItem.setActiveStyles()}}class Ee extends Oe{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(C){return this._origin=C,this}setActiveItem(C){super.setActiveItem(C),this.activeItem&&this.activeItem.focus(this._origin)}}let X=(()=>{class w{constructor(d){this._platform=d}isDisabled(d){return d.hasAttribute("disabled")}isVisible(d){return function F(w){return!!(w.offsetWidth||w.offsetHeight||"function"==typeof w.getClientRects&&w.getClientRects().length)}(d)&&"visible"===getComputedStyle(d).visibility}isTabbable(d){if(!this._platform.isBrowser)return!1;const A=function oe(w){try{return w.frameElement}catch{return null}}(function fe(w){return w.ownerDocument&&w.ownerDocument.defaultView||window}(d));if(A&&(-1===W(A)||!this.isVisible(A)))return!1;let V=d.nodeName.toLowerCase(),me=W(d);return d.hasAttribute("contenteditable")?-1!==me:!("iframe"===V||"object"===V||this._platform.WEBKIT&&this._platform.IOS&&!function le(w){let C=w.nodeName.toLowerCase(),d="input"===C&&w.type;return"text"===d||"password"===d||"select"===C||"textarea"===C}(d))&&("audio"===V?!!d.hasAttribute("controls")&&-1!==me:"video"===V?-1!==me&&(null!==me||this._platform.FIREFOX||d.hasAttribute("controls")):d.tabIndex>=0)}isFocusable(d,A){return function ce(w){return!function ie(w){return function he(w){return"input"==w.nodeName.toLowerCase()}(w)&&"hidden"==w.type}(w)&&(function Z(w){let C=w.nodeName.toLowerCase();return"input"===C||"select"===C||"button"===C||"textarea"===C}(w)||function De(w){return function ve(w){return"a"==w.nodeName.toLowerCase()}(w)&&w.hasAttribute("href")}(w)||w.hasAttribute("contenteditable")||P(w))}(d)&&!this.isDisabled(d)&&(A?.ignoreVisibility||this.isVisible(d))}}return w.\u0275fac=function(d){return new(d||w)(l.LFG(t.t4))},w.\u0275prov=l.Yz7({token:w,factory:w.\u0275fac,providedIn:"root"}),w})();function P(w){if(!w.hasAttribute("tabindex")||void 0===w.tabIndex)return!1;let C=w.getAttribute("tabindex");return!(!C||isNaN(parseInt(C,10)))}function W(w){if(!P(w))return null;const C=parseInt(w.getAttribute("tabindex")||"",10);return isNaN(C)?-1:C}class Be{constructor(C,d,A,V,me=!1){this._element=C,this._checker=d,this._ngZone=A,this._document=V,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,me||this.attachAnchors()}get enabled(){return this._enabled}set enabled(C){this._enabled=C,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(C,this._startAnchor),this._toggleAnchorTabIndex(C,this._endAnchor))}destroy(){const C=this._startAnchor,d=this._endAnchor;C&&(C.removeEventListener("focus",this.startAnchorListener),C.remove()),d&&(d.removeEventListener("focus",this.endAnchorListener),d.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(C){return new Promise(d=>{this._executeOnStable(()=>d(this.focusInitialElement(C)))})}focusFirstTabbableElementWhenReady(C){return new Promise(d=>{this._executeOnStable(()=>d(this.focusFirstTabbableElement(C)))})}focusLastTabbableElementWhenReady(C){return new Promise(d=>{this._executeOnStable(()=>d(this.focusLastTabbableElement(C)))})}_getRegionBoundary(C){const d=this._element.querySelectorAll(`[cdk-focus-region-${C}], [cdkFocusRegion${C}], [cdk-focus-${C}]`);return"start"==C?d.length?d[0]:this._getFirstTabbableElement(this._element):d.length?d[d.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(C){const d=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(d){if(!this._checker.isFocusable(d)){const A=this._getFirstTabbableElement(d);return A?.focus(C),!!A}return d.focus(C),!0}return this.focusFirstTabbableElement(C)}focusFirstTabbableElement(C){const d=this._getRegionBoundary("start");return d&&d.focus(C),!!d}focusLastTabbableElement(C){const d=this._getRegionBoundary("end");return d&&d.focus(C),!!d}hasAttached(){return this._hasAttached}_getFirstTabbableElement(C){if(this._checker.isFocusable(C)&&this._checker.isTabbable(C))return C;const d=C.children;for(let A=0;A<d.length;A++){const V=d[A].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(d[A]):null;if(V)return V}return null}_getLastTabbableElement(C){if(this._checker.isFocusable(C)&&this._checker.isTabbable(C))return C;const d=C.children;for(let A=d.length-1;A>=0;A--){const V=d[A].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(d[A]):null;if(V)return V}return null}_createAnchor(){const C=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,C),C.classList.add("cdk-visually-hidden"),C.classList.add("cdk-focus-trap-anchor"),C.setAttribute("aria-hidden","true"),C}_toggleAnchorTabIndex(C,d){C?d.setAttribute("tabindex","0"):d.removeAttribute("tabindex")}toggleAnchors(C){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(C,this._startAnchor),this._toggleAnchorTabIndex(C,this._endAnchor))}_executeOnStable(C){this._ngZone.isStable?C():this._ngZone.onStable.pipe((0,R.q)(1)).subscribe(C)}}let Ue=(()=>{class w{constructor(d,A,V){this._checker=d,this._ngZone=A,this._document=V}create(d,A=!1){return new Be(d,this._checker,this._ngZone,this._document,A)}}return w.\u0275fac=function(d){return new(d||w)(l.LFG(X),l.LFG(l.R0b),l.LFG(r.K0))},w.\u0275prov=l.Yz7({token:w,factory:w.\u0275fac,providedIn:"root"}),w})(),We=(()=>{class w{constructor(d,A,V){this._elementRef=d,this._focusTrapFactory=A,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(d){this.focusTrap.enabled=(0,K.Ig)(d)}get autoCapture(){return this._autoCapture}set autoCapture(d){this._autoCapture=(0,K.Ig)(d)}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(d){const A=d.autoCapture;A&&!A.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,t.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return w.\u0275fac=function(d){return new(d||w)(l.Y36(l.SBq),l.Y36(Ue),l.Y36(r.K0))},w.\u0275dir=l.lG2({type:w,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[l.TTD]}),w})();function E(w){return 0===w.buttons||0===w.offsetX&&0===w.offsetY}function p(w){const C=w.touches&&w.touches[0]||w.changedTouches&&w.changedTouches[0];return!(!C||-1!==C.identifier||null!=C.radiusX&&1!==C.radiusX||null!=C.radiusY&&1!==C.radiusY)}const i=new l.OlP("cdk-input-modality-detector-options"),e={ignoreKeys:[re.zL,re.jx,re.b2,re.MW,re.JU]},f=(0,t.i$)({passive:!0,capture:!0});let S=(()=>{class w{constructor(d,A,V,me){this._platform=d,this._mostRecentTarget=null,this._modality=new O.X(null),this._lastTouchMs=0,this._onKeydown=Pe=>{this._options?.ignoreKeys?.some(Ke=>Ke===Pe.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,t.sA)(Pe))},this._onMousedown=Pe=>{Date.now()-this._lastTouchMs<650||(this._modality.next(E(Pe)?"keyboard":"mouse"),this._mostRecentTarget=(0,t.sA)(Pe))},this._onTouchstart=Pe=>{p(Pe)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,t.sA)(Pe))},this._options={...e,...me},this.modalityDetected=this._modality.pipe((0,B.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,j.x)()),d.isBrowser&&A.runOutsideAngular(()=>{V.addEventListener("keydown",this._onKeydown,f),V.addEventListener("mousedown",this._onMousedown,f),V.addEventListener("touchstart",this._onTouchstart,f)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,f),document.removeEventListener("mousedown",this._onMousedown,f),document.removeEventListener("touchstart",this._onTouchstart,f))}}return w.\u0275fac=function(d){return new(d||w)(l.LFG(t.t4),l.LFG(l.R0b),l.LFG(r.K0),l.LFG(i,8))},w.\u0275prov=l.Yz7({token:w,factory:w.\u0275fac,providedIn:"root"}),w})();const I=new l.OlP("liveAnnouncerElement",{providedIn:"root",factory:function Q(){return null}}),be=new l.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let we=(()=>{class w{constructor(d,A,V,me){this._ngZone=A,this._defaultOptions=me,this._document=V,this._liveElement=d||this._createLiveElement()}announce(d,...A){const V=this._defaultOptions;let me,Pe;return 1===A.length&&"number"==typeof A[0]?Pe=A[0]:[me,Pe]=A,this.clear(),clearTimeout(this._previousTimeout),me||(me=V&&V.politeness?V.politeness:"polite"),null==Pe&&V&&(Pe=V.duration),this._liveElement.setAttribute("aria-live",me),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(Ke=>this._currentResolve=Ke)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=d,"number"==typeof Pe&&(this._previousTimeout=setTimeout(()=>this.clear(),Pe)),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 d="cdk-live-announcer-element",A=this._document.getElementsByClassName(d),V=this._document.createElement("div");for(let me=0;me<A.length;me++)A[me].remove();return V.classList.add(d),V.classList.add("cdk-visually-hidden"),V.setAttribute("aria-atomic","true"),V.setAttribute("aria-live","polite"),this._document.body.appendChild(V),V}}return w.\u0275fac=function(d){return new(d||w)(l.LFG(I,8),l.LFG(l.R0b),l.LFG(r.K0),l.LFG(be,8))},w.\u0275prov=l.Yz7({token:w,factory:w.\u0275fac,providedIn:"root"}),w})();const Te=new l.OlP("cdk-focus-monitor-default-options"),Ne=(0,t.i$)({passive:!0,capture:!0});let je=(()=>{class w{constructor(d,A,V,me,Pe){this._ngZone=d,this._platform=A,this._inputModalityDetector=V,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 M.x,this._rootNodeFocusAndBlurListener=Ke=>{const ee=(0,t.sA)(Ke),pe="focus"===Ke.type?this._onFocus:this._onBlur;for(let k=ee;k;k=k.parentElement)pe.call(this,Ke,k)},this._document=me,this._detectionMode=Pe?.detectionMode||0}monitor(d,A=!1){const V=(0,K.fI)(d);if(!this._platform.isBrowser||1!==V.nodeType)return(0,_e.of)(null);const me=(0,t.kV)(V)||this._getDocument(),Pe=this._elementInfo.get(V);if(Pe)return A&&(Pe.checkChildren=!0),Pe.subject;const Ke={checkChildren:A,subject:new M.x,rootNode:me};return this._elementInfo.set(V,Ke),this._registerGlobalListeners(Ke),Ke.subject}stopMonitoring(d){const A=(0,K.fI)(d),V=this._elementInfo.get(A);V&&(V.subject.complete(),this._setClasses(A),this._elementInfo.delete(A),this._removeGlobalListeners(V))}focusVia(d,A,V){const me=(0,K.fI)(d);me===this._getDocument().activeElement?this._getClosestElementsInfo(me).forEach(([Ke,ee])=>this._originChanged(Ke,A,ee)):(this._setOrigin(A),"function"==typeof me.focus&&me.focus(V))}ngOnDestroy(){this._elementInfo.forEach((d,A)=>this.stopMonitoring(A))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(d){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(d)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(d){return 1===this._detectionMode||!!d?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(d,A){d.classList.toggle("cdk-focused",!!A),d.classList.toggle("cdk-touch-focused","touch"===A),d.classList.toggle("cdk-keyboard-focused","keyboard"===A),d.classList.toggle("cdk-mouse-focused","mouse"===A),d.classList.toggle("cdk-program-focused","program"===A)}_setOrigin(d,A=!1){this._ngZone.runOutsideAngular(()=>{this._origin=d,this._originFromTouchInteraction="touch"===d&&A,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(d,A){const V=this._elementInfo.get(A),me=(0,t.sA)(d);!V||!V.checkChildren&&A!==me||this._originChanged(A,this._getFocusOrigin(me),V)}_onBlur(d,A){const V=this._elementInfo.get(A);!V||V.checkChildren&&d.relatedTarget instanceof Node&&A.contains(d.relatedTarget)||(this._setClasses(A),this._emitOrigin(V,null))}_emitOrigin(d,A){d.subject.observers.length&&this._ngZone.run(()=>d.subject.next(A))}_registerGlobalListeners(d){if(!this._platform.isBrowser)return;const A=d.rootNode,V=this._rootNodeFocusListenerCount.get(A)||0;V||this._ngZone.runOutsideAngular(()=>{A.addEventListener("focus",this._rootNodeFocusAndBlurListener,Ne),A.addEventListener("blur",this._rootNodeFocusAndBlurListener,Ne)}),this._rootNodeFocusListenerCount.set(A,V+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,z.R)(this._stopInputModalityDetector)).subscribe(me=>{this._setOrigin(me,!0)}))}_removeGlobalListeners(d){const A=d.rootNode;if(this._rootNodeFocusListenerCount.has(A)){const V=this._rootNodeFocusListenerCount.get(A);V>1?this._rootNodeFocusListenerCount.set(A,V-1):(A.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Ne),A.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Ne),this._rootNodeFocusListenerCount.delete(A))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(d,A,V){this._setClasses(d,A),this._emitOrigin(V,A),this._lastFocusOrigin=A}_getClosestElementsInfo(d){const A=[];return this._elementInfo.forEach((V,me)=>{(me===d||V.checkChildren&&me.contains(d))&&A.push([me,V])}),A}}return w.\u0275fac=function(d){return new(d||w)(l.LFG(l.R0b),l.LFG(t.t4),l.LFG(S),l.LFG(r.K0,8),l.LFG(Te,8))},w.\u0275prov=l.Yz7({token:w,factory:w.\u0275fac,providedIn:"root"}),w})(),Ve=(()=>{class w{constructor(d,A){this._elementRef=d,this._focusMonitor=A,this.cdkFocusChange=new l.vpe}ngAfterViewInit(){const d=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(d,1===d.nodeType&&d.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(A=>this.cdkFocusChange.emit(A))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return w.\u0275fac=function(d){return new(d||w)(l.Y36(l.SBq),l.Y36(je))},w.\u0275dir=l.lG2({type:w,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),w})();const Ge="cdk-high-contrast-black-on-white",U="cdk-high-contrast-white-on-black",T="cdk-high-contrast-active";let y=(()=>{class w{constructor(d,A){this._platform=d,this._document=A,this._breakpointSubscription=(0,l.f3M)(ke.Yg).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const d=this._document.createElement("div");d.style.backgroundColor="rgb(1,2,3)",d.style.position="absolute",this._document.body.appendChild(d);const A=this._document.defaultView||window,V=A&&A.getComputedStyle?A.getComputedStyle(d):null,me=(V&&V.backgroundColor||"").replace(/ /g,"");switch(d.remove(),me){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 d=this._document.body.classList;d.remove(T,Ge,U),this._hasCheckedHighContrastMode=!0;const A=this.getHighContrastMode();1===A?d.add(T,Ge):2===A&&d.add(T,U)}}}return w.\u0275fac=function(d){return new(d||w)(l.LFG(t.t4),l.LFG(r.K0))},w.\u0275prov=l.Yz7({token:w,factory:w.\u0275fac,providedIn:"root"}),w})(),Y=(()=>{class w{constructor(d){d._applyBodyHighContrastModeCssClasses()}}return w.\u0275fac=function(d){return new(d||w)(l.LFG(y))},w.\u0275mod=l.oAB({type:w}),w.\u0275inj=l.cJS({imports:[ge.Q8]}),w})()},445:(ze,Me,a)=>{a.d(Me,{Is:()=>_e,vT:()=>G});var r=a(4650),l=a(6895);const t=new r.OlP("cdk-dir-doc",{providedIn:"root",factory:function M(){return(0,r.f3M)(l.K0)}}),ne=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let _e=(()=>{class L{constructor(_){if(this.value="ltr",this.change=new r.vpe,_){const B=_.documentElement?_.documentElement.dir:null;this.value=function O(L){const q=L?.toLowerCase()||"";return"auto"===q&&typeof navigator<"u"&&navigator?.language?ne.test(navigator.language)?"rtl":"ltr":"rtl"===q?"rtl":"ltr"}((_.body?_.body.dir:null)||B||"ltr")}}ngOnDestroy(){this.change.complete()}}return L.\u0275fac=function(_){return new(_||L)(r.LFG(t,8))},L.\u0275prov=r.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})(),G=(()=>{class L{}return L.\u0275fac=function(_){return new(_||L)},L.\u0275mod=r.oAB({type:L}),L.\u0275inj=r.cJS({}),L})()},1281:(ze,Me,a)=>{a.d(Me,{Eq:()=>ne,HM:()=>O,Ig:()=>l,du:()=>re,fI:()=>_e,su:()=>t});var r=a(4650);function l(G){return null!=G&&"false"!=`${G}`}function t(G,L=0){return function M(G){return!isNaN(parseFloat(G))&&!isNaN(Number(G))}(G)?Number(G):L}function ne(G){return Array.isArray(G)?G:[G]}function O(G){return null==G?"":"string"==typeof G?G:`${G}px`}function _e(G){return G instanceof r.SBq?G.nativeElement:G}function re(G,L=/\s+/){const q=[];if(null!=G){const _=Array.isArray(G)?G:`${G}`.split(L);for(const R of _){const B=`${R}`.trim();B&&q.push(B)}}return q}},5017:(ze,Me,a)=>{a.d(Me,{A8:()=>L,Ov:()=>re});var r=a(7579),l=a(4650);class re{constructor(R=!1,B,j=!0){this._multiple=R,this._emitChanges=j,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new r.x,B&&B.length&&(R?B.forEach(z=>this._markSelected(z)):this._markSelected(B[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...R){this._verifyValueAssignment(R),R.forEach(B=>this._markSelected(B)),this._emitChangeEvent()}deselect(...R){this._verifyValueAssignment(R),R.forEach(B=>this._unmarkSelected(B)),this._emitChangeEvent()}toggle(R){this.isSelected(R)?this.deselect(R):this.select(R)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(R){return this._selection.has(R)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(R){this._multiple&&this.selected&&this._selected.sort(R)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(R){this.isSelected(R)||(this._multiple||this._unmarkAll(),this._selection.add(R),this._emitChanges&&this._selectedToEmit.push(R))}_unmarkSelected(R){this.isSelected(R)&&(this._selection.delete(R),this._emitChanges&&this._deselectedToEmit.push(R))}_unmarkAll(){this.isEmpty()||this._selection.forEach(R=>this._unmarkSelected(R))}_verifyValueAssignment(R){}}let L=(()=>{class _{constructor(){this._listeners=[]}notify(B,j){for(let z of this._listeners)z(B,j)}listen(B){return this._listeners.push(B),()=>{this._listeners=this._listeners.filter(j=>B!==j)}}ngOnDestroy(){this._listeners=[]}}return _.\u0275fac=function(B){return new(B||_)},_.\u0275prov=l.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_})()},9521:(ze,Me,a)=>{a.d(Me,{A:()=>ie,JH:()=>xe,JU:()=>O,K5:()=>ne,Ku:()=>R,LH:()=>ge,L_:()=>_,MW:()=>be,Mf:()=>t,SV:()=>ke,Sd:()=>z,VM:()=>B,Vb:()=>ft,Z:()=>Q,ZH:()=>l,aO:()=>H,b2:()=>ut,hY:()=>q,jx:()=>_e,oh:()=>K,uR:()=>j,xE:()=>v,yY:()=>x,zL:()=>re});const l=8,t=9,ne=13,O=16,_e=17,re=18,q=27,_=32,R=33,B=34,j=35,z=36,K=37,ge=38,ke=39,xe=40,x=46,v=48,H=57,ie=65,Q=90,be=91,ut=224;function ft(st,...ht){return ht.length?ht.some(pt=>st[pt]):st.altKey||st.shiftKey||st.ctrlKey||st.metaKey}},2289:(ze,Me,a)=>{a.d(Me,{Yg:()=>xe,u3:()=>te});var r=a(4650),l=a(1281),t=a(7579),M=a(9841),ne=a(7272),O=a(8306),_e=a(5698),re=a(5684),G=a(8372),L=a(4004),q=a(8675),_=a(2722),R=a(3353);const j=new Set;let z,K=(()=>{class b{constructor(v){this._platform=v,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):ke}matchMedia(v){return(this._platform.WEBKIT||this._platform.BLINK)&&function ge(b){if(!j.has(b))try{z||(z=document.createElement("style"),z.setAttribute("type","text/css"),document.head.appendChild(z)),z.sheet&&(z.sheet.insertRule(`@media ${b} {body{ }}`,0),j.add(b))}catch(x){console.error(x)}}(v),this._matchMedia(v)}}return b.\u0275fac=function(v){return new(v||b)(r.LFG(R.t4))},b.\u0275prov=r.Yz7({token:b,factory:b.\u0275fac,providedIn:"root"}),b})();function ke(b){return{matches:"all"===b||""===b,media:b,addListener:()=>{},removeListener:()=>{}}}let xe=(()=>{class b{constructor(v,D){this._mediaMatcher=v,this._zone=D,this._queries=new Map,this._destroySubject=new t.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(v){return de((0,l.Eq)(v)).some(ae=>this._registerQuery(ae).mql.matches)}observe(v){const ae=de((0,l.Eq)(v)).map(Ce=>this._registerQuery(Ce).observable);let Se=(0,M.a)(ae);return Se=(0,ne.z)(Se.pipe((0,_e.q)(1)),Se.pipe((0,re.T)(1),(0,G.b)(0))),Se.pipe((0,L.U)(Ce=>{const Ae={matches:!1,breakpoints:{}};return Ce.forEach(({matches:Oe,query:ye})=>{Ae.matches=Ae.matches||Oe,Ae.breakpoints[ye]=Oe}),Ae}))}_registerQuery(v){if(this._queries.has(v))return this._queries.get(v);const D=this._mediaMatcher.matchMedia(v),Se={observable:new O.y(Ce=>{const Ae=Oe=>this._zone.run(()=>Ce.next(Oe));return D.addListener(Ae),()=>{D.removeListener(Ae)}}).pipe((0,q.O)(D),(0,L.U)(({matches:Ce})=>({query:v,matches:Ce})),(0,_.R)(this._destroySubject)),mql:D};return this._queries.set(v,Se),Se}}return b.\u0275fac=function(v){return new(v||b)(r.LFG(K),r.LFG(r.R0b))},b.\u0275prov=r.Yz7({token:b,factory:b.\u0275fac,providedIn:"root"}),b})();function de(b){return b.map(x=>x.split(",")).reduce((x,v)=>x.concat(v)).map(x=>x.trim())}const te={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)"}},9643:(ze,Me,a)=>{a.d(Me,{Q8:()=>G,wD:()=>re});var r=a(1281),l=a(4650),t=a(8306),M=a(7579),ne=a(8372);let O=(()=>{class L{create(_){return typeof MutationObserver>"u"?null:new MutationObserver(_)}}return L.\u0275fac=function(_){return new(_||L)},L.\u0275prov=l.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})(),_e=(()=>{class L{constructor(_){this._mutationObserverFactory=_,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((_,R)=>this._cleanupObserver(R))}observe(_){const R=(0,r.fI)(_);return new t.y(B=>{const z=this._observeElement(R).subscribe(B);return()=>{z.unsubscribe(),this._unobserveElement(R)}})}_observeElement(_){if(this._observedElements.has(_))this._observedElements.get(_).count++;else{const R=new M.x,B=this._mutationObserverFactory.create(j=>R.next(j));B&&B.observe(_,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(_,{observer:B,stream:R,count:1})}return this._observedElements.get(_).stream}_unobserveElement(_){this._observedElements.has(_)&&(this._observedElements.get(_).count--,this._observedElements.get(_).count||this._cleanupObserver(_))}_cleanupObserver(_){if(this._observedElements.has(_)){const{observer:R,stream:B}=this._observedElements.get(_);R&&R.disconnect(),B.complete(),this._observedElements.delete(_)}}}return L.\u0275fac=function(_){return new(_||L)(l.LFG(O))},L.\u0275prov=l.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})(),re=(()=>{class L{constructor(_,R,B){this._contentObserver=_,this._elementRef=R,this._ngZone=B,this.event=new l.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(_){this._disabled=(0,r.Ig)(_),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(_){this._debounce=(0,r.su)(_),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const _=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?_.pipe((0,ne.b)(this.debounce)):_).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return L.\u0275fac=function(_){return new(_||L)(l.Y36(_e),l.Y36(l.SBq),l.Y36(l.R0b))},L.\u0275dir=l.lG2({type:L,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),L})(),G=(()=>{class L{}return L.\u0275fac=function(_){return new(_||L)},L.\u0275mod=l.oAB({type:L}),L.\u0275inj=l.cJS({providers:[O]}),L})()},2561:(ze,Me,a)=>{a.d(Me,{pI:()=>Je,xu:()=>Xe,_G:()=>ie,aV:()=>Ue,X_:()=>D,Xj:()=>X,U8:()=>E,Iu:()=>oe});var r=a(7376),l=a(6895),t=a(4650),M=a(1281),ne=a(3353),O=a(445),_e=a(4080),re=a(7579),G=a(727),L=a(6451),q=a(4482),_=a(5403),B=a(5698),j=a(2722),z=a(9521);const K=(0,ne.Mq)();class ge{constructor(e,s){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=s}attach(){}enable(){if(this._canBeEnabled()){const e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=(0,M.HM)(-this._previousScrollPosition.left),e.style.top=(0,M.HM)(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const e=this._document.documentElement,f=e.style,S=this._document.body.style,I=f.scrollBehavior||"",Q=S.scrollBehavior||"";this._isEnabled=!1,f.left=this._previousHTMLStyles.left,f.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),K&&(f.scrollBehavior=S.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),K&&(f.scrollBehavior=I,S.scrollBehavior=Q)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const s=this._document.body,f=this._viewportRuler.getViewportSize();return s.scrollHeight>f.height||s.scrollWidth>f.width}}class xe{constructor(e,s,f,S){this._scrollDispatcher=e,this._ngZone=s,this._viewportRuler=f,this._config=S,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){this._overlayRef=e}enable(){if(this._scrollSubscription)return;const e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{const s=this._viewportRuler.getViewportScrollPosition().top;Math.abs(s-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class de{enable(){}disable(){}attach(){}}function te(i,e){return e.some(s=>i.bottom<s.top||i.top>s.bottom||i.right<s.left||i.left>s.right)}function b(i,e){return e.some(s=>i.top<s.top||i.bottom>s.bottom||i.left<s.left||i.right>s.right)}class x{constructor(e,s,f,S){this._scrollDispatcher=e,this._viewportRuler=s,this._ngZone=f,this._config=S,this._scrollSubscription=null}attach(e){this._overlayRef=e}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 s=this._overlayRef.overlayElement.getBoundingClientRect(),{width:f,height:S}=this._viewportRuler.getViewportSize();te(s,[{width:f,height:S,bottom:S,right:f,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 v=(()=>{class i{constructor(s,f,S,I){this._scrollDispatcher=s,this._viewportRuler=f,this._ngZone=S,this.noop=()=>new de,this.close=Q=>new xe(this._scrollDispatcher,this._ngZone,this._viewportRuler,Q),this.block=()=>new ge(this._viewportRuler,this._document),this.reposition=Q=>new x(this._scrollDispatcher,this._viewportRuler,this._ngZone,Q),this._document=I}}return i.\u0275fac=function(s){return new(s||i)(t.LFG(r.mF),t.LFG(r.rL),t.LFG(t.R0b),t.LFG(l.K0))},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();class D{constructor(e){if(this.scrollStrategy=new de,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){const s=Object.keys(e);for(const f of s)void 0!==e[f]&&(this[f]=e[f])}}}class Ce{constructor(e,s){this.connectionPair=e,this.scrollableViewProperties=s}}let ye=(()=>{class i{constructor(s){this._attachedOverlays=[],this._document=s}ngOnDestroy(){this.detach()}add(s){this.remove(s),this._attachedOverlays.push(s)}remove(s){const f=this._attachedOverlays.indexOf(s);f>-1&&this._attachedOverlays.splice(f,1),0===this._attachedOverlays.length&&this.detach()}}return i.\u0275fac=function(s){return new(s||i)(t.LFG(l.K0))},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Ee=(()=>{class i extends ye{constructor(s,f){super(s),this._ngZone=f,this._keydownListener=S=>{const I=this._attachedOverlays;for(let Q=I.length-1;Q>-1;Q--)if(I[Q]._keydownEvents.observers.length>0){const be=I[Q]._keydownEvents;this._ngZone?this._ngZone.run(()=>be.next(S)):be.next(S);break}}}add(s){super.add(s),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 i.\u0275fac=function(s){return new(s||i)(t.LFG(l.K0),t.LFG(t.R0b,8))},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),H=(()=>{class i extends ye{constructor(s,f,S){super(s),this._platform=f,this._ngZone=S,this._cursorStyleIsSet=!1,this._pointerDownListener=I=>{this._pointerDownEventTarget=(0,ne.sA)(I)},this._clickListener=I=>{const Q=(0,ne.sA)(I),be="click"===I.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:Q;this._pointerDownEventTarget=null;const we=this._attachedOverlays.slice();for(let Le=we.length-1;Le>-1;Le--){const Te=we[Le];if(Te._outsidePointerEvents.observers.length<1||!Te.hasAttached())continue;if(Te.overlayElement.contains(Q)||Te.overlayElement.contains(be))break;const Ne=Te._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>Ne.next(I)):Ne.next(I)}}}add(s){if(super.add(s),!this._isAttached){const f=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(f)):this._addEventListeners(f),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=f.style.cursor,f.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const s=this._document.body;s.removeEventListener("pointerdown",this._pointerDownListener,!0),s.removeEventListener("click",this._clickListener,!0),s.removeEventListener("auxclick",this._clickListener,!0),s.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(s.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(s){s.addEventListener("pointerdown",this._pointerDownListener,!0),s.addEventListener("click",this._clickListener,!0),s.addEventListener("auxclick",this._clickListener,!0),s.addEventListener("contextmenu",this._clickListener,!0)}}return i.\u0275fac=function(s){return new(s||i)(t.LFG(l.K0),t.LFG(ne.t4),t.LFG(t.R0b,8))},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),X=(()=>{class i{constructor(s,f){this._platform=f,this._document=s}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const s="cdk-overlay-container";if(this._platform.isBrowser||(0,ne.Oy)()){const S=this._document.querySelectorAll(`.${s}[platform="server"], .${s}[platform="test"]`);for(let I=0;I<S.length;I++)S[I].remove()}const f=this._document.createElement("div");f.classList.add(s),(0,ne.Oy)()?f.setAttribute("platform","test"):this._platform.isBrowser||f.setAttribute("platform","server"),this._document.body.appendChild(f),this._containerElement=f}}return i.\u0275fac=function(s){return new(s||i)(t.LFG(l.K0),t.LFG(ne.t4))},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();class oe{constructor(e,s,f,S,I,Q,be,we,Le,Te=!1){this._portalOutlet=e,this._host=s,this._pane=f,this._config=S,this._ngZone=I,this._keyboardDispatcher=Q,this._document=be,this._location=we,this._outsideClickDispatcher=Le,this._animationsDisabled=Te,this._backdropElement=null,this._backdropClick=new re.x,this._attachments=new re.x,this._detachments=new re.x,this._locationChanges=G.w0.EMPTY,this._backdropClickHandler=Ne=>this._backdropClick.next(Ne),this._backdropTransitionendHandler=Ne=>{this._disposeBackdrop(Ne.target)},this._keydownEvents=new re.x,this._outsidePointerEvents=new re.x,S.scrollStrategy&&(this._scrollStrategy=S.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=S.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const s=this._portalOutlet.attach(e);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,B.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),s}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){const e=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,e&&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(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config={...this._config,...e},this._updateElementSize()}setDirection(e){this._config={...this._config,direction:e},this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){const e=this._config.direction;return e?"string"==typeof e?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const e=this._pane.style;e.width=(0,M.HM)(this._config.width),e.height=(0,M.HM)(this._config.height),e.minWidth=(0,M.HM)(this._config.minWidth),e.minHeight=(0,M.HM)(this._config.minHeight),e.maxWidth=(0,M.HM)(this._config.maxWidth),e.maxHeight=(0,M.HM)(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){const e="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(e)})}):this._backdropElement.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const e=this._backdropElement;if(e){if(this._animationsDisabled)return void this._disposeBackdrop(e);e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",this._backdropTransitionendHandler)}),e.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(e)},500))}}_toggleClasses(e,s,f){const S=(0,M.Eq)(s||[]).filter(I=>!!I);S.length&&(f?e.classList.add(...S):e.classList.remove(...S))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const e=this._ngZone.onStable.pipe((0,j.R)((0,L.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()),e.unsubscribe())})})}_disposeScrollStrategy(){const e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}_disposeBackdrop(e){e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",this._backdropTransitionendHandler),e.remove(),this._backdropElement===e&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const F="cdk-overlay-connected-position-bounding-box",Z=/([A-Za-z%]+)$/;class ie{constructor(e,s,f,S,I){this._viewportRuler=s,this._document=f,this._platform=S,this._overlayContainer=I,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 re.x,this._resizeSubscription=G.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}get positions(){return this._preferredPositions}attach(e){this._validatePositions(),e.hostElement.classList.add(F),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.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 e=this._originRect,s=this._overlayRect,f=this._viewportRect,S=this._containerRect,I=[];let Q;for(let be of this._preferredPositions){let we=this._getOriginPoint(e,S,be),Le=this._getOverlayPoint(we,s,be),Te=this._getOverlayFit(Le,s,f,be);if(Te.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(be,we);this._canFitWithFlexibleDimensions(Te,Le,f)?I.push({position:be,origin:we,overlayRect:s,boundingBoxRect:this._calculateBoundingBoxRect(we,be)}):(!Q||Q.overlayFit.visibleArea<Te.visibleArea)&&(Q={overlayFit:Te,overlayPoint:Le,originPoint:we,position:be,overlayRect:s})}if(I.length){let be=null,we=-1;for(const Le of I){const Te=Le.boundingBoxRect.width*Le.boundingBoxRect.height*(Le.position.weight||1);Te>we&&(we=Te,be=Le)}return this._isPushed=!1,void this._applyPosition(be.position,be.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(Q.position,Q.originPoint);this._applyPosition(Q.position,Q.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&De(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(F),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const e=this._lastPosition;if(e){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const s=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,s)}else this.apply()}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,s,f){let S,I;if("center"==f.originX)S=e.left+e.width/2;else{const Q=this._isRtl()?e.right:e.left,be=this._isRtl()?e.left:e.right;S="start"==f.originX?Q:be}return s.left<0&&(S-=s.left),I="center"==f.originY?e.top+e.height/2:"top"==f.originY?e.top:e.bottom,s.top<0&&(I-=s.top),{x:S,y:I}}_getOverlayPoint(e,s,f){let S,I;return S="center"==f.overlayX?-s.width/2:"start"===f.overlayX?this._isRtl()?-s.width:0:this._isRtl()?0:-s.width,I="center"==f.overlayY?-s.height/2:"top"==f.overlayY?0:-s.height,{x:e.x+S,y:e.y+I}}_getOverlayFit(e,s,f,S){const I=ve(s);let{x:Q,y:be}=e,we=this._getOffset(S,"x"),Le=this._getOffset(S,"y");we&&(Q+=we),Le&&(be+=Le);let je=0-be,Ve=be+I.height-f.height,Ge=this._subtractOverflows(I.width,0-Q,Q+I.width-f.width),U=this._subtractOverflows(I.height,je,Ve),T=Ge*U;return{visibleArea:T,isCompletelyWithinViewport:I.width*I.height===T,fitsInViewportVertically:U===I.height,fitsInViewportHorizontally:Ge==I.width}}_canFitWithFlexibleDimensions(e,s,f){if(this._hasFlexibleDimensions){const S=f.bottom-s.y,I=f.right-s.x,Q=he(this._overlayRef.getConfig().minHeight),be=he(this._overlayRef.getConfig().minWidth),Le=e.fitsInViewportHorizontally||null!=be&&be<=I;return(e.fitsInViewportVertically||null!=Q&&Q<=S)&&Le}return!1}_pushOverlayOnScreen(e,s,f){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};const S=ve(s),I=this._viewportRect,Q=Math.max(e.x+S.width-I.width,0),be=Math.max(e.y+S.height-I.height,0),we=Math.max(I.top-f.top-e.y,0),Le=Math.max(I.left-f.left-e.x,0);let Te=0,Ne=0;return Te=S.width<=I.width?Le||-Q:e.x<this._viewportMargin?I.left-f.left-e.x:0,Ne=S.height<=I.height?we||-be:e.y<this._viewportMargin?I.top-f.top-e.y:0,this._previousPushAmount={x:Te,y:Ne},{x:e.x+Te,y:e.y+Ne}}_applyPosition(e,s){if(this._setTransformOrigin(e),this._setOverlayElementStyles(s,e),this._setBoundingBoxStyles(s,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._lastPosition=e,this._positionChanges.observers.length){const f=this._getScrollVisibility(),S=new Ce(e,f);this._positionChanges.next(S)}this._isInitialRender=!1}_setTransformOrigin(e){if(!this._transformOriginSelector)return;const s=this._boundingBox.querySelectorAll(this._transformOriginSelector);let f,S=e.overlayY;f="center"===e.overlayX?"center":this._isRtl()?"start"===e.overlayX?"right":"left":"start"===e.overlayX?"left":"right";for(let I=0;I<s.length;I++)s[I].style.transformOrigin=`${f} ${S}`}_calculateBoundingBoxRect(e,s){const f=this._viewportRect,S=this._isRtl();let I,Q,be,Te,Ne,je;if("top"===s.overlayY)Q=e.y,I=f.height-Q+this._viewportMargin;else if("bottom"===s.overlayY)be=f.height-e.y+2*this._viewportMargin,I=f.height-be+this._viewportMargin;else{const Ve=Math.min(f.bottom-e.y+f.top,e.y),Ge=this._lastBoundingBoxSize.height;I=2*Ve,Q=e.y-Ve,I>Ge&&!this._isInitialRender&&!this._growAfterOpen&&(Q=e.y-Ge/2)}if("end"===s.overlayX&&!S||"start"===s.overlayX&&S)je=f.width-e.x+this._viewportMargin,Te=e.x-this._viewportMargin;else if("start"===s.overlayX&&!S||"end"===s.overlayX&&S)Ne=e.x,Te=f.right-e.x;else{const Ve=Math.min(f.right-e.x+f.left,e.x),Ge=this._lastBoundingBoxSize.width;Te=2*Ve,Ne=e.x-Ve,Te>Ge&&!this._isInitialRender&&!this._growAfterOpen&&(Ne=e.x-Ge/2)}return{top:Q,left:Ne,bottom:be,right:je,width:Te,height:I}}_setBoundingBoxStyles(e,s){const f=this._calculateBoundingBoxRect(e,s);!this._isInitialRender&&!this._growAfterOpen&&(f.height=Math.min(f.height,this._lastBoundingBoxSize.height),f.width=Math.min(f.width,this._lastBoundingBoxSize.width));const S={};if(this._hasExactPosition())S.top=S.left="0",S.bottom=S.right=S.maxHeight=S.maxWidth="",S.width=S.height="100%";else{const I=this._overlayRef.getConfig().maxHeight,Q=this._overlayRef.getConfig().maxWidth;S.height=(0,M.HM)(f.height),S.top=(0,M.HM)(f.top),S.bottom=(0,M.HM)(f.bottom),S.width=(0,M.HM)(f.width),S.left=(0,M.HM)(f.left),S.right=(0,M.HM)(f.right),S.alignItems="center"===s.overlayX?"center":"end"===s.overlayX?"flex-end":"flex-start",S.justifyContent="center"===s.overlayY?"center":"bottom"===s.overlayY?"flex-end":"flex-start",I&&(S.maxHeight=(0,M.HM)(I)),Q&&(S.maxWidth=(0,M.HM)(Q))}this._lastBoundingBoxSize=f,De(this._boundingBox.style,S)}_resetBoundingBoxStyles(){De(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){De(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,s){const f={},S=this._hasExactPosition(),I=this._hasFlexibleDimensions,Q=this._overlayRef.getConfig();if(S){const Te=this._viewportRuler.getViewportScrollPosition();De(f,this._getExactOverlayY(s,e,Te)),De(f,this._getExactOverlayX(s,e,Te))}else f.position="static";let be="",we=this._getOffset(s,"x"),Le=this._getOffset(s,"y");we&&(be+=`translateX(${we}px) `),Le&&(be+=`translateY(${Le}px)`),f.transform=be.trim(),Q.maxHeight&&(S?f.maxHeight=(0,M.HM)(Q.maxHeight):I&&(f.maxHeight="")),Q.maxWidth&&(S?f.maxWidth=(0,M.HM)(Q.maxWidth):I&&(f.maxWidth="")),De(this._pane.style,f)}_getExactOverlayY(e,s,f){let S={top:"",bottom:""},I=this._getOverlayPoint(s,this._overlayRect,e);return this._isPushed&&(I=this._pushOverlayOnScreen(I,this._overlayRect,f)),"bottom"===e.overlayY?S.bottom=this._document.documentElement.clientHeight-(I.y+this._overlayRect.height)+"px":S.top=(0,M.HM)(I.y),S}_getExactOverlayX(e,s,f){let Q,S={left:"",right:""},I=this._getOverlayPoint(s,this._overlayRect,e);return this._isPushed&&(I=this._pushOverlayOnScreen(I,this._overlayRect,f)),Q=this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left","right"===Q?S.right=this._document.documentElement.clientWidth-(I.x+this._overlayRect.width)+"px":S.left=(0,M.HM)(I.x),S}_getScrollVisibility(){const e=this._getOriginRect(),s=this._pane.getBoundingClientRect(),f=this._scrollables.map(S=>S.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:b(e,f),isOriginOutsideView:te(e,f),isOverlayClipped:b(s,f),isOverlayOutsideView:te(s,f)}}_subtractOverflows(e,...s){return s.reduce((f,S)=>f-Math.max(S,0),e)}_getNarrowedViewportRect(){const e=this._document.documentElement.clientWidth,s=this._document.documentElement.clientHeight,f=this._viewportRuler.getViewportScrollPosition();return{top:f.top+this._viewportMargin,left:f.left+this._viewportMargin,right:f.left+e-this._viewportMargin,bottom:f.top+s-this._viewportMargin,width:e-2*this._viewportMargin,height:s-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,s){return"x"===s?e.offsetX??this._offsetX:e.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&(0,M.Eq)(e).forEach(s=>{""!==s&&-1===this._appliedPanelClasses.indexOf(s)&&(this._appliedPanelClasses.push(s),this._pane.classList.add(s))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){const e=this._origin;if(e instanceof t.SBq)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();const s=e.width||0,f=e.height||0;return{top:e.y,bottom:e.y+f,left:e.x,right:e.x+s,height:f,width:s}}}function De(i,e){for(let s in e)e.hasOwnProperty(s)&&(i[s]=e[s]);return i}function he(i){if("number"!=typeof i&&null!=i){const[e,s]=i.split(Z);return s&&"px"!==s?null:parseFloat(e)}return i||null}function ve(i){return{top:Math.floor(i.top),right:Math.floor(i.right),bottom:Math.floor(i.bottom),left:Math.floor(i.left),width:Math.floor(i.width),height:Math.floor(i.height)}}const le="cdk-global-overlay-wrapper";class ce{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(e){const s=e.getConfig();this._overlayRef=e,this._width&&!s.width&&e.updateSize({width:this._width}),this._height&&!s.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(le),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._xOffset=e,this._xPosition="left",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._xOffset=e,this._xPosition="right",this}start(e=""){return this._xOffset=e,this._xPosition="start",this}end(e=""){return this._xOffset=e,this._xPosition="end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._xPosition="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const e=this._overlayRef.overlayElement.style,s=this._overlayRef.hostElement.style,f=this._overlayRef.getConfig(),{width:S,height:I,maxWidth:Q,maxHeight:be}=f,we=!("100%"!==S&&"100vw"!==S||Q&&"100%"!==Q&&"100vw"!==Q),Le=!("100%"!==I&&"100vh"!==I||be&&"100%"!==be&&"100vh"!==be),Te=this._xPosition,Ne=this._xOffset,je="rtl"===this._overlayRef.getConfig().direction;let Ve="",Ge="",U="";we?U="flex-start":"center"===Te?(U="center",je?Ge=Ne:Ve=Ne):je?"left"===Te||"end"===Te?(U="flex-end",Ve=Ne):("right"===Te||"start"===Te)&&(U="flex-start",Ge=Ne):"left"===Te||"start"===Te?(U="flex-start",Ve=Ne):("right"===Te||"end"===Te)&&(U="flex-end",Ge=Ne),e.position=this._cssPosition,e.marginLeft=we?"0":Ve,e.marginTop=Le?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=we?"0":Ge,s.justifyContent=U,s.alignItems=Le?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const e=this._overlayRef.overlayElement.style,s=this._overlayRef.hostElement,f=s.style;s.classList.remove(le),f.justifyContent=f.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}let fe=(()=>{class i{constructor(s,f,S,I){this._viewportRuler=s,this._document=f,this._platform=S,this._overlayContainer=I}global(){return new ce}flexibleConnectedTo(s){return new ie(s,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return i.\u0275fac=function(s){return new(s||i)(t.LFG(r.rL),t.LFG(l.K0),t.LFG(ne.t4),t.LFG(X))},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Be=0,Ue=(()=>{class i{constructor(s,f,S,I,Q,be,we,Le,Te,Ne,je,Ve){this.scrollStrategies=s,this._overlayContainer=f,this._componentFactoryResolver=S,this._positionBuilder=I,this._keyboardDispatcher=Q,this._injector=be,this._ngZone=we,this._document=Le,this._directionality=Te,this._location=Ne,this._outsideClickDispatcher=je,this._animationsModuleType=Ve}create(s){const f=this._createHostElement(),S=this._createPaneElement(f),I=this._createPortalOutlet(S),Q=new D(s);return Q.direction=Q.direction||this._directionality.value,new oe(I,f,S,Q,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(s){const f=this._document.createElement("div");return f.id="cdk-overlay-"+Be++,f.classList.add("cdk-overlay-pane"),s.appendChild(f),f}_createHostElement(){const s=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(s),s}_createPortalOutlet(s){return this._appRef||(this._appRef=this._injector.get(t.z2F)),new _e.u0(s,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return i.\u0275fac=function(s){return new(s||i)(t.LFG(v),t.LFG(X),t.LFG(t._Vd),t.LFG(fe),t.LFG(Ee),t.LFG(t.zs3),t.LFG(t.R0b),t.LFG(l.K0),t.LFG(O.Is),t.LFG(l.Ye),t.LFG(H),t.LFG(t.QbO,8))},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac}),i})();const We=[{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"}],$e=new t.OlP("cdk-connected-overlay-scroll-strategy");let Xe=(()=>{class i{constructor(s){this.elementRef=s}}return i.\u0275fac=function(s){return new(s||i)(t.Y36(t.SBq))},i.\u0275dir=t.lG2({type:i,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),i})(),Je=(()=>{class i{constructor(s,f,S,I,Q){this._overlay=s,this._dir=Q,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=G.w0.EMPTY,this._attachSubscription=G.w0.EMPTY,this._detachSubscription=G.w0.EMPTY,this._positionSubscription=G.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new t.vpe,this.positionChange=new t.vpe,this.attach=new t.vpe,this.detach=new t.vpe,this.overlayKeydown=new t.vpe,this.overlayOutsideClick=new t.vpe,this._templatePortal=new _e.UE(f,S),this._scrollStrategyFactory=I,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(s){this._offsetX=s,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(s){this._offsetY=s,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(s){this._hasBackdrop=(0,M.Ig)(s)}get lockPosition(){return this._lockPosition}set lockPosition(s){this._lockPosition=(0,M.Ig)(s)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(s){this._flexibleDimensions=(0,M.Ig)(s)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(s){this._growAfterOpen=(0,M.Ig)(s)}get push(){return this._push}set push(s){this._push=(0,M.Ig)(s)}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(s){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),s.origin&&this.open&&this._position.apply()),s.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=We);const s=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=s.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=s.detachments().subscribe(()=>this.detach.emit()),s.keydownEvents().subscribe(f=>{this.overlayKeydown.next(f),f.keyCode===z.hY&&!this.disableClose&&!(0,z.Vb)(f)&&(f.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(f=>{this.overlayOutsideClick.next(f)})}_buildConfig(){const s=this._position=this.positionStrategy||this._createPositionStrategy(),f=new D({direction:this._dir,positionStrategy:s,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(f.width=this.width),(this.height||0===this.height)&&(f.height=this.height),(this.minWidth||0===this.minWidth)&&(f.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(f.minHeight=this.minHeight),this.backdropClass&&(f.backdropClass=this.backdropClass),this.panelClass&&(f.panelClass=this.panelClass),f}_updatePositionStrategy(s){const f=this.positions.map(S=>({originX:S.originX,originY:S.originY,overlayX:S.overlayX,overlayY:S.overlayY,offsetX:S.offsetX||this.offsetX,offsetY:S.offsetY||this.offsetY,panelClass:S.panelClass||void 0}));return s.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(f).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const s=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(s),s}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof Xe?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(s=>{this.backdropClick.emit(s)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function R(i,e=!1){return(0,q.e)((s,f)=>{let S=0;s.subscribe((0,_.x)(f,I=>{const Q=i(I,S++);(Q||e)&&f.next(I),!Q&&f.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(s=>{this.positionChange.emit(s),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return i.\u0275fac=function(s){return new(s||i)(t.Y36(Ue),t.Y36(t.Rgc),t.Y36(t.s_b),t.Y36($e),t.Y36(O.Is,8))},i.\u0275dir=t.lG2({type:i,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:[t.TTD]}),i})();const Ie={provide:$e,deps:[Ue],useFactory:function qe(i){return()=>i.scrollStrategies.reposition()}};let E=(()=>{class i{}return i.\u0275fac=function(s){return new(s||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({providers:[Ue,Ie],imports:[O.vT,_e.eL,r.Cl,r.Cl]}),i})()},3353:(ze,Me,a)=>{a.d(Me,{Mq:()=>B,Oy:()=>de,ht:()=>ke,i$:()=>q,kV:()=>ge,qK:()=>re,sA:()=>xe,t4:()=>M});var r=a(4650),l=a(6895);let t;try{t=typeof Intl<"u"&&Intl.v8BreakIterator}catch{t=!1}let O,M=(()=>{class te{constructor(x){this._platformId=x,this.isBrowser=this._platformId?(0,l.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&&!t)&&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 te.\u0275fac=function(x){return new(x||te)(r.LFG(r.Lbi))},te.\u0275prov=r.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})();const _e=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function re(){if(O)return O;if("object"!=typeof document||!document)return O=new Set(_e),O;let te=document.createElement("input");return O=new Set(_e.filter(b=>(te.setAttribute("type",b),te.type===b))),O}let G,R,z;function q(te){return function L(){if(null==G&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>G=!0}))}finally{G=G||!1}return G}()?te:!!te.capture}function B(){if(null==R){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return R=!1,R;if("scrollBehavior"in document.documentElement.style)R=!0;else{const te=Element.prototype.scrollTo;R=!!te&&!/\{\s*\[native code\]\s*\}/.test(te.toString())}}return R}function ge(te){if(function K(){if(null==z){const te=typeof document<"u"?document.head:null;z=!(!te||!te.createShadowRoot&&!te.attachShadow)}return z}()){const b=te.getRootNode?te.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&b instanceof ShadowRoot)return b}return null}function ke(){let te=typeof document<"u"&&document?document.activeElement:null;for(;te&&te.shadowRoot;){const b=te.shadowRoot.activeElement;if(b===te)break;te=b}return te}function xe(te){return te.composedPath?te.composedPath()[0]:te.target}function de(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},4080:(ze,Me,a)=>{a.d(Me,{C5:()=>L,Pl:()=>ke,UE:()=>q,eL:()=>de,en:()=>R,u0:()=>j});var r=a(4650),l=a(6895);class G{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 L extends G{constructor(x,v,D,ae){super(),this.component=x,this.viewContainerRef=v,this.injector=D,this.componentFactoryResolver=ae}}class q extends G{constructor(x,v,D,ae){super(),this.templateRef=x,this.viewContainerRef=v,this.context=D,this.injector=ae}get origin(){return this.templateRef.elementRef}attach(x,v=this.context){return this.context=v,super.attach(x)}detach(){return this.context=void 0,super.detach()}}class _ extends G{constructor(x){super(),this.element=x instanceof r.SBq?x.nativeElement:x}}class R{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(x){return x instanceof L?(this._attachedPortal=x,this.attachComponentPortal(x)):x instanceof q?(this._attachedPortal=x,this.attachTemplatePortal(x)):this.attachDomPortal&&x instanceof _?(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 j extends R{constructor(x,v,D,ae,Se){super(),this.outletElement=x,this._componentFactoryResolver=v,this._appRef=D,this._defaultInjector=ae,this.attachDomPortal=Ce=>{const Ae=Ce.element,Oe=this._document.createComment("dom-portal");Ae.parentNode.insertBefore(Oe,Ae),this.outletElement.appendChild(Ae),this._attachedPortal=Ce,super.setDisposeFn(()=>{Oe.parentNode&&Oe.parentNode.replaceChild(Ae,Oe)})},this._document=Se}attachComponentPortal(x){const D=(x.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(x.component);let ae;return x.viewContainerRef?(ae=x.viewContainerRef.createComponent(D,x.viewContainerRef.length,x.injector||x.viewContainerRef.injector),this.setDisposeFn(()=>ae.destroy())):(ae=D.create(x.injector||this._defaultInjector||r.zs3.NULL),this._appRef.attachView(ae.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(ae.hostView),ae.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(ae)),this._attachedPortal=x,ae}attachTemplatePortal(x){let v=x.viewContainerRef,D=v.createEmbeddedView(x.templateRef,x.context,{injector:x.injector});return D.rootNodes.forEach(ae=>this.outletElement.appendChild(ae)),D.detectChanges(),this.setDisposeFn(()=>{let ae=v.indexOf(D);-1!==ae&&v.remove(ae)}),this._attachedPortal=x,D}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(x){return x.hostView.rootNodes[0]}}let ke=(()=>{class b extends R{constructor(v,D,ae){super(),this._componentFactoryResolver=v,this._viewContainerRef=D,this._isInitialized=!1,this.attached=new r.vpe,this.attachDomPortal=Se=>{const Ce=Se.element,Ae=this._document.createComment("dom-portal");Se.setAttachedHost(this),Ce.parentNode.insertBefore(Ae,Ce),this._getRootNode().appendChild(Ce),this._attachedPortal=Se,super.setDisposeFn(()=>{Ae.parentNode&&Ae.parentNode.replaceChild(Ce,Ae)})},this._document=ae}get portal(){return this._attachedPortal}set portal(v){this.hasAttached()&&!v&&!this._isInitialized||(this.hasAttached()&&super.detach(),v&&super.attach(v),this._attachedPortal=v||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(v){v.setAttachedHost(this);const D=null!=v.viewContainerRef?v.viewContainerRef:this._viewContainerRef,Se=(v.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(v.component),Ce=D.createComponent(Se,D.length,v.injector||D.injector);return D!==this._viewContainerRef&&this._getRootNode().appendChild(Ce.hostView.rootNodes[0]),super.setDisposeFn(()=>Ce.destroy()),this._attachedPortal=v,this._attachedRef=Ce,this.attached.emit(Ce),Ce}attachTemplatePortal(v){v.setAttachedHost(this);const D=this._viewContainerRef.createEmbeddedView(v.templateRef,v.context,{injector:v.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=v,this._attachedRef=D,this.attached.emit(D),D}_getRootNode(){const v=this._viewContainerRef.element.nativeElement;return v.nodeType===v.ELEMENT_NODE?v:v.parentNode}}return b.\u0275fac=function(v){return new(v||b)(r.Y36(r._Vd),r.Y36(r.s_b),r.Y36(l.K0))},b.\u0275dir=r.lG2({type:b,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[r.qOj]}),b})(),de=(()=>{class b{}return b.\u0275fac=function(v){return new(v||b)},b.\u0275mod=r.oAB({type:b}),b.\u0275inj=r.cJS({}),b})()},7376:(ze,Me,a)=>{a.d(Me,{Cl:()=>Oe,ZD:()=>Ae,mF:()=>de,rL:()=>x});var r=a(1281),l=a(4650),t=a(7579),M=a(9646),ne=a(8306),O=a(4968),G=(a(6406),a(3101),a(3601)),L=a(9300),q=a(3353),_=a(6895),R=a(445);let de=(()=>{class ye{constructor(H,X,oe){this._ngZone=H,this._platform=X,this._scrolled=new t.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=oe}register(H){this.scrollContainers.has(H)||this.scrollContainers.set(H,H.elementScrolled().subscribe(()=>this._scrolled.next(H)))}deregister(H){const X=this.scrollContainers.get(H);X&&(X.unsubscribe(),this.scrollContainers.delete(H))}scrolled(H=20){return this._platform.isBrowser?new ne.y(X=>{this._globalSubscription||this._addGlobalListener();const oe=H>0?this._scrolled.pipe((0,G.e)(H)).subscribe(X):this._scrolled.subscribe(X);return this._scrolledCount++,()=>{oe.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,M.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((H,X)=>this.deregister(X)),this._scrolled.complete()}ancestorScrolled(H,X){const oe=this.getAncestorScrollContainers(H);return this.scrolled(X).pipe((0,L.h)(F=>!F||oe.indexOf(F)>-1))}getAncestorScrollContainers(H){const X=[];return this.scrollContainers.forEach((oe,F)=>{this._scrollableContainsElement(F,H)&&X.push(F)}),X}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(H,X){let oe=(0,r.fI)(X),F=H.getElementRef().nativeElement;do{if(oe==F)return!0}while(oe=oe.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const H=this._getWindow();return(0,O.R)(H.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return ye.\u0275fac=function(H){return new(H||ye)(l.LFG(l.R0b),l.LFG(q.t4),l.LFG(_.K0,8))},ye.\u0275prov=l.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})(),x=(()=>{class ye{constructor(H,X,oe){this._platform=H,this._change=new t.x,this._changeListener=F=>{this._change.next(F)},this._document=oe,X.runOutsideAngular(()=>{if(H.isBrowser){const F=this._getWindow();F.addEventListener("resize",this._changeListener),F.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const H=this._getWindow();H.removeEventListener("resize",this._changeListener),H.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const H={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),H}getViewportRect(){const H=this.getViewportScrollPosition(),{width:X,height:oe}=this.getViewportSize();return{top:H.top,left:H.left,bottom:H.top+oe,right:H.left+X,height:oe,width:X}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const H=this._document,X=this._getWindow(),oe=H.documentElement,F=oe.getBoundingClientRect();return{top:-F.top||H.body.scrollTop||X.scrollY||oe.scrollTop||0,left:-F.left||H.body.scrollLeft||X.scrollX||oe.scrollLeft||0}}change(H=20){return H>0?this._change.pipe((0,G.e)(H)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const H=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:H.innerWidth,height:H.innerHeight}:{width:0,height:0}}}return ye.\u0275fac=function(H){return new(H||ye)(l.LFG(q.t4),l.LFG(l.R0b),l.LFG(_.K0,8))},ye.\u0275prov=l.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})(),Ae=(()=>{class ye{}return ye.\u0275fac=function(H){return new(H||ye)},ye.\u0275mod=l.oAB({type:ye}),ye.\u0275inj=l.cJS({}),ye})(),Oe=(()=>{class ye{}return ye.\u0275fac=function(H){return new(H||ye)},ye.\u0275mod=l.oAB({type:ye}),ye.\u0275inj=l.cJS({imports:[R.vT,Ae,R.vT,Ae]}),ye})()},4859:(ze,Me,a)=>{a.d(Me,{lW:()=>L,ot:()=>_});var r=a(4650),l=a(3238),t=a(2687);const M=["mat-button",""],ne=["*"],re=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],G=(0,l.pj)((0,l.Id)((0,l.Kr)(class{constructor(R){this._elementRef=R}})));let L=(()=>{class R extends G{constructor(j,z,K){super(j),this._focusMonitor=z,this._animationMode=K,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const ge of re)this._hasHostAttributes(ge)&&this._getHostElement().classList.add(ge);j.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(j,z){j?this._focusMonitor.focusVia(this._getHostElement(),j,z):this._getHostElement().focus(z)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...j){return j.some(z=>this._getHostElement().hasAttribute(z))}}return R.\u0275fac=function(j){return new(j||R)(r.Y36(r.SBq),r.Y36(t.tE),r.Y36(r.QbO,8))},R.\u0275cmp=r.Xpm({type:R,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(j,z){if(1&j&&r.Gf(l.wG,5),2&j){let K;r.iGM(K=r.CRH())&&(z.ripple=K.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(j,z){2&j&&(r.uIk("disabled",z.disabled||null),r.ekj("_mat-animation-noopable","NoopAnimations"===z._animationMode)("mat-button-disabled",z.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[r.qOj],attrs:M,ngContentSelectors:ne,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(j,z){1&j&&(r.F$t(),r.TgZ(0,"span",0),r.Hsn(1),r.qZA(),r._UZ(2,"span",1)(3,"span",2)),2&j&&(r.xp6(2),r.ekj("mat-button-ripple-round",z.isRoundButton||z.isIconButton),r.Q6J("matRippleDisabled",z._isRippleDisabled())("matRippleCentered",z.isIconButton)("matRippleTrigger",z._getHostElement()))},dependencies:[l.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}.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}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}"],encapsulation:2,changeDetection:0}),R})(),_=(()=>{class R{}return R.\u0275fac=function(j){return new(j||R)},R.\u0275mod=r.oAB({type:R}),R.\u0275inj=r.cJS({imports:[l.si,l.BQ,l.BQ]}),R})()},6709:(ze,Me,a)=>{a.d(Me,{oG:()=>ge,p9:()=>te});var r=a(2687),l=a(1281),t=a(4650),M=a(4006),ne=a(3238),O=a(9643);const _e=["input"],re=function(b){return{enterDuration:b}},G=["*"],L=new t.OlP("mat-checkbox-default-options",{providedIn:"root",factory:q});function q(){return{color:"accent",clickAction:"check-indeterminate"}}let _=0;const R=q(),B={provide:M.JU,useExisting:(0,t.Gpc)(()=>ge),multi:!0};class j{}const z=(0,ne.sb)((0,ne.pj)((0,ne.Kr)((0,ne.Id)(class{constructor(b){this._elementRef=b}}))));let K=(()=>{class b extends z{constructor(v,D,ae,Se,Ce,Ae,Oe){super(D),this._changeDetectorRef=ae,this._ngZone=Se,this._animationMode=Ae,this._options=Oe,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new t.vpe,this.indeterminateChange=new t.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||R,this.color=this.defaultColor=this._options.color||R.color,this.tabIndex=parseInt(Ce)||0,this.id=this._uniqueId=`${v}${++_}`}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(v){this._required=(0,l.Ig)(v)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(v){const D=(0,l.Ig)(v);D!=this.checked&&(this._checked=D,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(v){const D=(0,l.Ig)(v);D!==this.disabled&&(this._disabled=D,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(v){const D=v!=this._indeterminate;this._indeterminate=(0,l.Ig)(v),D&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(v){this.checked=!!v}registerOnChange(v){this._controlValueAccessorChangeFn=v}registerOnTouched(v){this._onTouched=v}setDisabledState(v){this.disabled=v}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(v){let D=this._currentCheckState,ae=this._getAnimationTargetElement();if(D!==v&&ae&&(this._currentAnimationClass.length>0&&ae.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(D,v),this._currentCheckState=v,this._currentAnimationClass.length>0)){ae.classList.add(this._currentAnimationClass);const Se=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{ae.classList.remove(Se)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const v=this._options?.clickAction;this.disabled||"noop"===v?!this.disabled&&"noop"===v&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==v&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(v){v.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(v,D){if("NoopAnimations"===this._animationMode)return"";switch(v){case 0:if(1===D)return this._animationClasses.uncheckedToChecked;if(3==D)return this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===D?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===D?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===D?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(v){const D=this._inputElement;D&&(D.nativeElement.indeterminate=v)}}return b.\u0275fac=function(v){t.$Z()},b.\u0275dir=t.lG2({type:b,viewQuery:function(v,D){if(1&v&&(t.Gf(_e,5),t.Gf(ne.wG,5)),2&v){let ae;t.iGM(ae=t.CRH())&&(D._inputElement=ae.first),t.iGM(ae=t.CRH())&&(D.ripple=ae.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[t.qOj]}),b})(),ge=(()=>{class b extends K{constructor(v,D,ae,Se,Ce,Ae,Oe){super("mat-checkbox-",v,D,Se,Ce,Ae,Oe),this._focusMonitor=ae,this._animationClasses={uncheckedToChecked:"mat-checkbox-anim-unchecked-checked",uncheckedToIndeterminate:"mat-checkbox-anim-unchecked-indeterminate",checkedToUnchecked:"mat-checkbox-anim-checked-unchecked",checkedToIndeterminate:"mat-checkbox-anim-checked-indeterminate",indeterminateToChecked:"mat-checkbox-anim-indeterminate-checked",indeterminateToUnchecked:"mat-checkbox-anim-indeterminate-unchecked"}}_createChangeEvent(v){const D=new j;return D.source=this,D.checked=v,D}_getAnimationTargetElement(){return this._elementRef.nativeElement}ngAfterViewInit(){super.ngAfterViewInit(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(v=>{v||this._onBlur()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onInputClick(v){v.stopPropagation(),super._handleInputClick()}focus(v,D){v?this._focusMonitor.focusVia(this._inputElement,v,D):this._inputElement.nativeElement.focus(D)}}return b.\u0275fac=function(v){return new(v||b)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(r.tE),t.Y36(t.R0b),t.$8M("tabindex"),t.Y36(t.QbO,8),t.Y36(L,8))},b.\u0275cmp=t.Xpm({type:b,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(v,D){2&v&&(t.Ikx("id",D.id),t.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),t.ekj("mat-checkbox-indeterminate",D.indeterminate)("mat-checkbox-checked",D.checked)("mat-checkbox-disabled",D.disabled)("mat-checkbox-label-before","before"==D.labelPosition)("_mat-animation-noopable","NoopAnimations"===D._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[t._Bn([B]),t.qOj],ngContentSelectors:G,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(v,D){if(1&v&&(t.F$t(),t.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),t.NdJ("change",function(Se){return D._onInteractionEvent(Se)})("click",function(Se){return D._onInputClick(Se)}),t.qZA(),t.TgZ(5,"span",5),t._UZ(6,"span",6),t.qZA(),t._UZ(7,"span",7),t.TgZ(8,"span",8),t.O4$(),t.TgZ(9,"svg",9),t._UZ(10,"path",10),t.qZA(),t.kcU(),t._UZ(11,"span",11),t.qZA()(),t.TgZ(12,"span",12,13),t.NdJ("cdkObserveContent",function(){return D._onLabelTextChange()}),t.TgZ(14,"span",14),t._uU(15,"\xa0"),t.qZA(),t.Hsn(16),t.qZA()()),2&v){const ae=t.MAs(1),Se=t.MAs(13);t.uIk("for",D.inputId),t.xp6(2),t.ekj("mat-checkbox-inner-container-no-side-margin",!Se.textContent||!Se.textContent.trim()),t.xp6(1),t.Q6J("id",D.inputId)("required",D.required)("checked",D.checked)("disabled",D.disabled)("tabIndex",D.tabIndex),t.uIk("value",D.value)("name",D.name)("aria-label",D.ariaLabel||null)("aria-labelledby",D.ariaLabelledby)("aria-checked",D._getAriaChecked())("aria-describedby",D.ariaDescribedby),t.xp6(2),t.Q6J("matRippleTrigger",ae)("matRippleDisabled",D._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",t.VKq(19,re,"NoopAnimations"===D._animationMode?0:150))}},dependencies:[ne.wG,O.wD],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:rgba(0,0,0,0);transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:rgba(0,0,0,0)}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}"],encapsulation:2,changeDetection:0}),b})(),de=(()=>{class b{}return b.\u0275fac=function(v){return new(v||b)},b.\u0275mod=t.oAB({type:b}),b.\u0275inj=t.cJS({}),b})(),te=(()=>{class b{}return b.\u0275fac=function(v){return new(v||b)},b.\u0275mod=t.oAB({type:b}),b.\u0275inj=t.cJS({imports:[ne.si,ne.BQ,O.Q8,de,ne.BQ,de]}),b})()},3238:(ze,Me,a)=>{a.d(Me,{_A:()=>Ee,rD:()=>ve,sG:()=>H,Ad:()=>Oe,K7:()=>Q,HF:()=>s,Y2:()=>Ie,BQ:()=>de,XK:()=>De,ey:()=>Ne,Ng:()=>Ge,wG:()=>E,si:()=>p,IR:()=>Je,CB:()=>je,jH:()=>Ve,pj:()=>D,Kr:()=>ae,Id:()=>v,FD:()=>Ce,dB:()=>Ae,sb:()=>Se});var r=a(4650),l=a(2687),t=a(445),ne=a(6895),O=a(3353),_e=a(1281),re=a(8306),G=a(7579),L=a(9521);function R(U,T){if(1&U&&r._UZ(0,"mat-pseudo-checkbox",4),2&U){const y=r.oxw();r.Q6J("state",y.selected?"checked":"unchecked")("disabled",y.disabled)}}function B(U,T){if(1&U&&(r.TgZ(0,"span",5),r._uU(1),r.qZA()),2&U){const y=r.oxw();r.xp6(1),r.hij("(",y.group.label,")")}}const j=["*"],xe=new r.OlP("mat-sanity-checks",{providedIn:"root",factory:function ke(){return!0}});let de=(()=>{class U{constructor(y,Y,w){this._sanityChecks=Y,this._document=w,this._hasDoneGlobalChecks=!1,y._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(y){return!(0,O.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[y])}}return U.\u0275fac=function(y){return new(y||U)(r.LFG(l.qm),r.LFG(xe,8),r.LFG(ne.K0))},U.\u0275mod=r.oAB({type:U}),U.\u0275inj=r.cJS({imports:[t.vT,t.vT]}),U})();function v(U){return class extends U{constructor(...T){super(...T),this._disabled=!1}get disabled(){return this._disabled}set disabled(T){this._disabled=(0,_e.Ig)(T)}}}function D(U,T){return class extends U{constructor(...y){super(...y),this.defaultColor=T,this.color=T}get color(){return this._color}set color(y){const Y=y||this.defaultColor;Y!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),Y&&this._elementRef.nativeElement.classList.add(`mat-${Y}`),this._color=Y)}}}function ae(U){return class extends U{constructor(...T){super(...T),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(T){this._disableRipple=(0,_e.Ig)(T)}}}function Se(U,T=0){return class extends U{constructor(...y){super(...y),this._tabIndex=T,this.defaultTabIndex=T}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(y){this._tabIndex=null!=y?(0,_e.su)(y):this.defaultTabIndex}}}function Ce(U){return class extends U{constructor(...T){super(...T),this.errorState=!1}updateErrorState(){const T=this.errorState,C=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);C!==T&&(this.errorState=C,this.stateChanges.next())}}}function Ae(U){return class extends U{constructor(...T){super(...T),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new re.y(y=>{this._isInitialized?this._notifySubscriber(y):this._pendingSubscribers.push(y)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(T){T.next(),T.complete()}}}const Oe=new r.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function ye(){return(0,r.f3M)(r.soG)}});class Ee{constructor(){this._localeChanges=new G.x,this.localeChanges=this._localeChanges}getValidDateOrNull(T){return this.isDateInstance(T)&&this.isValid(T)?T:null}deserialize(T){return null==T||this.isDateInstance(T)&&this.isValid(T)?T:this.invalid()}setLocale(T){this.locale=T,this._localeChanges.next()}compareDate(T,y){return this.getYear(T)-this.getYear(y)||this.getMonth(T)-this.getMonth(y)||this.getDate(T)-this.getDate(y)}sameDate(T,y){if(T&&y){let Y=this.isValid(T),w=this.isValid(y);return Y&&w?!this.compareDate(T,y):Y==w}return T==y}clampDate(T,y,Y){return y&&this.compareDate(T,y)<0?y:Y&&this.compareDate(T,Y)>0?Y:T}}const H=new r.OlP("mat-date-formats"),X=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function oe(U,T){const y=Array(U);for(let Y=0;Y<U;Y++)y[Y]=T(Y);return y}let F=(()=>{class U extends Ee{constructor(y,Y){super(),this.useUtcForDisplay=!1,super.setLocale(y)}getYear(y){return y.getFullYear()}getMonth(y){return y.getMonth()}getDate(y){return y.getDate()}getDayOfWeek(y){return y.getDay()}getMonthNames(y){const Y=new Intl.DateTimeFormat(this.locale,{month:y,timeZone:"utc"});return oe(12,w=>this._format(Y,new Date(2017,w,1)))}getDateNames(){const y=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return oe(31,Y=>this._format(y,new Date(2017,0,Y+1)))}getDayOfWeekNames(y){const Y=new Intl.DateTimeFormat(this.locale,{weekday:y,timeZone:"utc"});return oe(7,w=>this._format(Y,new Date(2017,0,w+1)))}getYearName(y){const Y=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(Y,y)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(y){return this.getDate(this._createDateWithOverflow(this.getYear(y),this.getMonth(y)+1,0))}clone(y){return new Date(y.getTime())}createDate(y,Y,w){let C=this._createDateWithOverflow(y,Y,w);return C.getMonth(),C}today(){return new Date}parse(y){return"number"==typeof y?new Date(y):y?new Date(Date.parse(y)):null}format(y,Y){if(!this.isValid(y))throw Error("NativeDateAdapter: Cannot format invalid date.");const w=new Intl.DateTimeFormat(this.locale,{...Y,timeZone:"utc"});return this._format(w,y)}addCalendarYears(y,Y){return this.addCalendarMonths(y,12*Y)}addCalendarMonths(y,Y){let w=this._createDateWithOverflow(this.getYear(y),this.getMonth(y)+Y,this.getDate(y));return this.getMonth(w)!=((this.getMonth(y)+Y)%12+12)%12&&(w=this._createDateWithOverflow(this.getYear(w),this.getMonth(w),0)),w}addCalendarDays(y,Y){return this._createDateWithOverflow(this.getYear(y),this.getMonth(y),this.getDate(y)+Y)}toIso8601(y){return[y.getUTCFullYear(),this._2digit(y.getUTCMonth()+1),this._2digit(y.getUTCDate())].join("-")}deserialize(y){if("string"==typeof y){if(!y)return null;if(X.test(y)){let Y=new Date(y);if(this.isValid(Y))return Y}}return super.deserialize(y)}isDateInstance(y){return y instanceof Date}isValid(y){return!isNaN(y.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(y,Y,w){const C=new Date;return C.setFullYear(y,Y,w),C.setHours(0,0,0,0),C}_2digit(y){return("00"+y).slice(-2)}_format(y,Y){const w=new Date;return w.setUTCFullYear(Y.getFullYear(),Y.getMonth(),Y.getDate()),w.setUTCHours(Y.getHours(),Y.getMinutes(),Y.getSeconds(),Y.getMilliseconds()),y.format(w)}}return U.\u0275fac=function(y){return new(y||U)(r.LFG(Oe,8),r.LFG(O.t4))},U.\u0275prov=r.Yz7({token:U,factory:U.\u0275fac}),U})();const Z={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 ie=(()=>{class U{}return U.\u0275fac=function(y){return new(y||U)},U.\u0275mod=r.oAB({type:U}),U.\u0275inj=r.cJS({providers:[{provide:Ee,useClass:F}]}),U})(),De=(()=>{class U{}return U.\u0275fac=function(y){return new(y||U)},U.\u0275mod=r.oAB({type:U}),U.\u0275inj=r.cJS({providers:[{provide:H,useValue:Z}],imports:[ie]}),U})(),ve=(()=>{class U{isErrorState(y,Y){return!!(y&&y.invalid&&(y.touched||Y&&Y.submitted))}}return U.\u0275fac=function(y){return new(y||U)},U.\u0275prov=r.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),U})();class fe{constructor(T,y,Y,w=!1){this._renderer=T,this.element=y,this.config=Y,this._animationForciblyDisabledThroughCss=w,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Be={enterDuration:225,exitDuration:150},We=(0,O.i$)({passive:!0}),$e=["mousedown","touchstart"],Xe=["mouseup","mouseleave","touchend","touchcancel"];class Je{constructor(T,y,Y,w){this._target=T,this._ngZone=y,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,w.isBrowser&&(this._containerElement=(0,_e.fI)(Y))}fadeInRipple(T,y,Y={}){const w=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),C={...Be,...Y.animation};Y.centered&&(T=w.left+w.width/2,y=w.top+w.height/2);const d=Y.radius||function qe(U,T,y){const Y=Math.max(Math.abs(U-y.left),Math.abs(U-y.right)),w=Math.max(Math.abs(T-y.top),Math.abs(T-y.bottom));return Math.sqrt(Y*Y+w*w)}(T,y,w),A=T-w.left,V=y-w.top,me=C.enterDuration,Pe=document.createElement("div");Pe.classList.add("mat-ripple-element"),Pe.style.left=A-d+"px",Pe.style.top=V-d+"px",Pe.style.height=2*d+"px",Pe.style.width=2*d+"px",null!=Y.color&&(Pe.style.backgroundColor=Y.color),Pe.style.transitionDuration=`${me}ms`,this._containerElement.appendChild(Pe);const Ke=window.getComputedStyle(Pe),pe=Ke.transitionDuration,k="none"===Ke.transitionProperty||"0s"===pe||"0s, 0s"===pe,se=new fe(this,Pe,Y,k);Pe.style.transform="scale3d(1, 1, 1)",se.state=0,Y.persistent||(this._mostRecentTransientRipple=se);let Re=null;return!k&&(me||C.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const Fe=()=>this._finishRippleTransition(se),Ze=()=>this._destroyRipple(se);Pe.addEventListener("transitionend",Fe),Pe.addEventListener("transitioncancel",Ze),Re={onTransitionEnd:Fe,onTransitionCancel:Ze}}),this._activeRipples.set(se,Re),(k||!me)&&this._finishRippleTransition(se),se}fadeOutRipple(T){if(2===T.state||3===T.state)return;const y=T.element,Y={...Be,...T.config.animation};y.style.transitionDuration=`${Y.exitDuration}ms`,y.style.opacity="0",T.state=2,(T._animationForciblyDisabledThroughCss||!Y.exitDuration)&&this._finishRippleTransition(T)}fadeOutAll(){this._getActiveRipples().forEach(T=>T.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(T=>{T.config.persistent||T.fadeOut()})}setupTriggerEvents(T){const y=(0,_e.fI)(T);!y||y===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=y,this._registerEvents($e))}handleEvent(T){"mousedown"===T.type?this._onMousedown(T):"touchstart"===T.type?this._onTouchStart(T):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Xe),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(T){0===T.state?this._startFadeOutTransition(T):2===T.state&&this._destroyRipple(T)}_startFadeOutTransition(T){const y=T===this._mostRecentTransientRipple,{persistent:Y}=T.config;T.state=1,!Y&&(!y||!this._isPointerDown)&&T.fadeOut()}_destroyRipple(T){const y=this._activeRipples.get(T)??null;this._activeRipples.delete(T),this._activeRipples.size||(this._containerRect=null),T===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),T.state=3,null!==y&&(T.element.removeEventListener("transitionend",y.onTransitionEnd),T.element.removeEventListener("transitioncancel",y.onTransitionCancel)),T.element.remove()}_onMousedown(T){const y=(0,l.X6)(T),Y=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!y&&!Y&&(this._isPointerDown=!0,this.fadeInRipple(T.clientX,T.clientY,this._target.rippleConfig))}_onTouchStart(T){if(!this._target.rippleDisabled&&!(0,l.yG)(T)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const y=T.changedTouches;for(let Y=0;Y<y.length;Y++)this.fadeInRipple(y[Y].clientX,y[Y].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._getActiveRipples().forEach(T=>{!T.config.persistent&&(1===T.state||T.config.terminateOnPointerUp&&0===T.state)&&T.fadeOut()}))}_registerEvents(T){this._ngZone.runOutsideAngular(()=>{T.forEach(y=>{this._triggerElement.addEventListener(y,this,We)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&($e.forEach(T=>{this._triggerElement.removeEventListener(T,this,We)}),this._pointerUpEventsRegistered&&Xe.forEach(T=>{this._triggerElement.removeEventListener(T,this,We)}))}}const Ie=new r.OlP("mat-ripple-global-options");let E=(()=>{class U{constructor(y,Y,w,C,d){this._elementRef=y,this._animationMode=d,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=C||{},this._rippleRenderer=new Je(this,Y,y,w)}get disabled(){return this._disabled}set disabled(y){y&&this.fadeOutAllNonPersistent(),this._disabled=y,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(y){this._trigger=y,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(y,Y=0,w){return"number"==typeof y?this._rippleRenderer.fadeInRipple(y,Y,{...this.rippleConfig,...w}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...y})}}return U.\u0275fac=function(y){return new(y||U)(r.Y36(r.SBq),r.Y36(r.R0b),r.Y36(O.t4),r.Y36(Ie,8),r.Y36(r.QbO,8))},U.\u0275dir=r.lG2({type:U,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(y,Y){2&y&&r.ekj("mat-ripple-unbounded",Y.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"]}),U})(),p=(()=>{class U{}return U.\u0275fac=function(y){return new(y||U)},U.\u0275mod=r.oAB({type:U}),U.\u0275inj=r.cJS({imports:[de,de]}),U})(),i=(()=>{class U{constructor(y){this._animationMode=y,this.state="unchecked",this.disabled=!1}}return U.\u0275fac=function(y){return new(y||U)(r.Y36(r.QbO,8))},U.\u0275cmp=r.Xpm({type:U,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(y,Y){2&y&&r.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===Y.state)("mat-pseudo-checkbox-checked","checked"===Y.state)("mat-pseudo-checkbox-disabled",Y.disabled)("_mat-animation-noopable","NoopAnimations"===Y._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(y,Y){},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}),U})(),e=(()=>{class U{}return U.\u0275fac=function(y){return new(y||U)},U.\u0275mod=r.oAB({type:U}),U.\u0275inj=r.cJS({imports:[de]}),U})();const s=new r.OlP("MAT_OPTION_PARENT_COMPONENT"),Q=new r.OlP("MatOptgroup");let we=0;class Le{constructor(T,y=!1){this.source=T,this.isUserInput=y}}let Te=(()=>{class U{constructor(y,Y,w,C){this._element=y,this._changeDetectorRef=Y,this._parent=w,this.group=C,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+we++,this.onSelectionChange=new r.vpe,this._stateChanges=new G.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(y){this._disabled=(0,_e.Ig)(y)}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(y,Y){const w=this._getHostElement();"function"==typeof w.focus&&w.focus(Y)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(y){(y.keyCode===L.K5||y.keyCode===L.L_)&&!(0,L.Vb)(y)&&(this._selectViaInteraction(),y.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 y=this.viewValue;y!==this._mostRecentViewValue&&(this._mostRecentViewValue=y,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(y=!1){this.onSelectionChange.emit(new Le(this,y))}}return U.\u0275fac=function(y){r.$Z()},U.\u0275dir=r.lG2({type:U,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),U})(),Ne=(()=>{class U extends Te{constructor(y,Y,w,C){super(y,Y,w,C)}}return U.\u0275fac=function(y){return new(y||U)(r.Y36(r.SBq),r.Y36(r.sBO),r.Y36(s,8),r.Y36(Q,8))},U.\u0275cmp=r.Xpm({type:U,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(y,Y){1&y&&r.NdJ("click",function(){return Y._selectViaInteraction()})("keydown",function(C){return Y._handleKeydown(C)}),2&y&&(r.Ikx("id",Y.id),r.uIk("tabindex",Y._getTabIndex())("aria-selected",Y._getAriaSelected())("aria-disabled",Y.disabled.toString()),r.ekj("mat-selected",Y.selected)("mat-option-multiple",Y.multiple)("mat-active",Y.active)("mat-option-disabled",Y.disabled))},exportAs:["matOption"],features:[r.qOj],ngContentSelectors:j,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(y,Y){1&y&&(r.F$t(),r.YNc(0,R,1,2,"mat-pseudo-checkbox",0),r.TgZ(1,"span",1),r.Hsn(2),r.qZA(),r.YNc(3,B,2,1,"span",2),r._UZ(4,"div",3)),2&y&&(r.Q6J("ngIf",Y.multiple),r.xp6(3),r.Q6J("ngIf",Y.group&&Y.group._inert),r.xp6(1),r.Q6J("matRippleTrigger",Y._getHostElement())("matRippleDisabled",Y.disabled||Y.disableRipple))},dependencies:[E,ne.O5,i],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}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.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}),U})();function je(U,T,y){if(y.length){let Y=T.toArray(),w=y.toArray(),C=0;for(let d=0;d<U+1;d++)Y[d].group&&Y[d].group===w[C]&&C++;return C}return 0}function Ve(U,T,y,Y){return U<y?U:U+T>y+Y?Math.max(0,U-Y+T):y}let Ge=(()=>{class U{}return U.\u0275fac=function(y){return new(y||U)},U.\u0275mod=r.oAB({type:U}),U.\u0275inj=r.cJS({imports:[p,ne.ez,de,e]}),U})()},5412:(ze,Me,a)=>{a.d(Me,{WI:()=>De,uw:()=>Be,H8:()=>Je,xY:()=>Xe,Is:()=>Ie,so:()=>Z,uh:()=>$e});var r=a(2687),l=a(2561),t=a(3353),M=a(4080),ne=a(6895),O=a(4650),_e=a(9521),re=a(7579),G=a(9770),L=a(9646),q=a(445),_=a(8675);function R(E,p){}class B{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 z=(()=>{class E extends M.en{constructor(i,e,s,f,S,I,Q,be){super(),this._elementRef=i,this._focusTrapFactory=e,this._config=f,this._interactivityChecker=S,this._ngZone=I,this._overlayRef=Q,this._focusMonitor=be,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=we=>{this._portalOutlet.hasAttached();const Le=this._portalOutlet.attachDomPortal(we);return this._contentAttached(),Le},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=s}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(i){this._portalOutlet.hasAttached();const e=this._portalOutlet.attachComponentPortal(i);return this._contentAttached(),e}attachTemplatePortal(i){this._portalOutlet.hasAttached();const e=this._portalOutlet.attachTemplatePortal(i);return this._contentAttached(),e}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(i,e){this._interactivityChecker.isFocusable(i)||(i.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const s=()=>{i.removeEventListener("blur",s),i.removeEventListener("mousedown",s),i.removeAttribute("tabindex")};i.addEventListener("blur",s),i.addEventListener("mousedown",s)})),i.focus(e)}_focusByCssSelector(i,e){let s=this._elementRef.nativeElement.querySelector(i);s&&this._forceFocus(s,e)}_trapFocus(){const i=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||i.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(e=>{e||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 i=this._config.restoreFocus;let e=null;if("string"==typeof i?e=this._document.querySelector(i):"boolean"==typeof i?e=i?this._elementFocusedBeforeDialogWasOpened:null:i&&(e=i),this._config.restoreFocus&&e&&"function"==typeof e.focus){const s=(0,t.ht)(),f=this._elementRef.nativeElement;(!s||s===this._document.body||s===f||f.contains(s))&&(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const i=this._elementRef.nativeElement,e=(0,t.ht)();return i===e||i.contains(e)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,t.ht)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return E.\u0275fac=function(i){return new(i||E)(O.Y36(O.SBq),O.Y36(r.qV),O.Y36(ne.K0,8),O.Y36(B),O.Y36(r.ic),O.Y36(O.R0b),O.Y36(l.Iu),O.Y36(r.tE))},E.\u0275cmp=O.Xpm({type:E,selectors:[["cdk-dialog-container"]],viewQuery:function(i,e){if(1&i&&O.Gf(M.Pl,7),2&i){let s;O.iGM(s=O.CRH())&&(e._portalOutlet=s.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(i,e){2&i&&O.uIk("id",e._config.id||null)("role",e._config.role)("aria-modal",e._config.ariaModal)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null)},features:[O.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(i,e){1&i&&O.YNc(0,R,0,0,"ng-template",0)},dependencies:[M.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),E})();class K{constructor(p,i){this.overlayRef=p,this.config=i,this.closed=new re.x,this.disableClose=i.disableClose,this.backdropClick=p.backdropClick(),this.keydownEvents=p.keydownEvents(),this.outsidePointerEvents=p.outsidePointerEvents(),this.id=i.id,this.keydownEvents.subscribe(e=>{e.keyCode===_e.hY&&!this.disableClose&&!(0,_e.Vb)(e)&&(e.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(p,i){if(this.containerInstance){const e=this.closed;this.containerInstance._closeInteractionType=i?.focusOrigin||"program",this.overlayRef.dispose(),e.next(p),e.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(p="",i=""){return this.overlayRef.updateSize({width:p,height:i}),this}addPanelClass(p){return this.overlayRef.addPanelClass(p),this}removePanelClass(p){return this.overlayRef.removePanelClass(p),this}}const ge=new O.OlP("DialogScrollStrategy"),ke=new O.OlP("DialogData"),xe=new O.OlP("DefaultDialogConfig"),te={provide:ge,deps:[l.aV],useFactory:function de(E){return()=>E.scrollStrategies.block()}};let b=0,x=(()=>{class E{constructor(i,e,s,f,S,I){this._overlay=i,this._injector=e,this._defaultOptions=s,this._parentDialog=f,this._overlayContainer=S,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new re.x,this._afterOpenedAtThisLevel=new re.x,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,G.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,_.O)(void 0))),this._scrollStrategy=I}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(i,e){(e={...this._defaultOptions||new B,...e}).id=e.id||"cdk-dialog-"+b++,e.id&&this.getDialogById(e.id);const f=this._getOverlayConfig(e),S=this._overlay.create(f),I=new K(S,e),Q=this._attachContainer(S,I,e);return I.containerInstance=Q,this._attachDialogContent(i,I,Q,e),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(I),I.closed.subscribe(()=>this._removeOpenDialog(I,!0)),this.afterOpened.next(I),I}closeAll(){v(this.openDialogs,i=>i.close())}getDialogById(i){return this.openDialogs.find(e=>e.id===i)}ngOnDestroy(){v(this._openDialogsAtThisLevel,i=>{!1===i.config.closeOnDestroy&&this._removeOpenDialog(i,!1)}),v(this._openDialogsAtThisLevel,i=>i.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(i){const e=new l.X_({positionStrategy:i.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:i.scrollStrategy||this._scrollStrategy(),panelClass:i.panelClass,hasBackdrop:i.hasBackdrop,direction:i.direction,minWidth:i.minWidth,minHeight:i.minHeight,maxWidth:i.maxWidth,maxHeight:i.maxHeight,width:i.width,height:i.height,disposeOnNavigation:i.closeOnNavigation});return i.backdropClass&&(e.backdropClass=i.backdropClass),e}_attachContainer(i,e,s){const f=s.injector??s.viewContainerRef?.injector,S=[{provide:B,useValue:s},{provide:K,useValue:e},{provide:l.Iu,useValue:i}];let I;s.container?"function"==typeof s.container?I=s.container:(I=s.container.type,S.push(...s.container.providers(s))):I=z;const Q=new M.C5(I,s.viewContainerRef,O.zs3.create({parent:f||this._injector,providers:S}),s.componentFactoryResolver);return i.attach(Q).instance}_attachDialogContent(i,e,s,f){const S=this._createInjector(f,e,s);if(i instanceof O.Rgc){let I={$implicit:f.data,dialogRef:e};f.templateContext&&(I={...I,..."function"==typeof f.templateContext?f.templateContext():f.templateContext}),s.attachTemplatePortal(new M.UE(i,null,I,S))}else{const I=s.attachComponentPortal(new M.C5(i,f.viewContainerRef,S,f.componentFactoryResolver));e.componentInstance=I.instance}}_createInjector(i,e,s){const f=i&&i.viewContainerRef&&i.viewContainerRef.injector,S=[{provide:ke,useValue:i.data},{provide:K,useValue:e}];return i.providers&&("function"==typeof i.providers?S.push(...i.providers(e,i,s)):S.push(...i.providers)),i.direction&&(!f||!f.get(q.Is,null,O.XFs.Optional))&&S.push({provide:q.Is,useValue:{value:i.direction,change:(0,L.of)()}}),O.zs3.create({parent:f||this._injector,providers:S})}_removeOpenDialog(i,e){const s=this.openDialogs.indexOf(i);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((f,S)=>{f?S.setAttribute("aria-hidden",f):S.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),e&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const i=this._overlayContainer.getContainerElement();if(i.parentElement){const e=i.parentElement.children;for(let s=e.length-1;s>-1;s--){const f=e[s];f!==i&&"SCRIPT"!==f.nodeName&&"STYLE"!==f.nodeName&&!f.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(f,f.getAttribute("aria-hidden")),f.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const i=this._parentDialog;return i?i._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return E.\u0275fac=function(i){return new(i||E)(O.LFG(l.aV),O.LFG(O.zs3),O.LFG(xe,8),O.LFG(E,12),O.LFG(l.Xj),O.LFG(ge))},E.\u0275prov=O.Yz7({token:E,factory:E.\u0275fac}),E})();function v(E,p){let i=E.length;for(;i--;)p(E[i])}let D=(()=>{class E{}return E.\u0275fac=function(i){return new(i||E)},E.\u0275mod=O.oAB({type:E}),E.\u0275inj=O.cJS({providers:[x,te],imports:[l.U8,M.eL,r.rt,M.eL]}),E})();var ae=a(3238),Se=a(6451),Ce=a(9300),Ae=a(5698),Oe=a(7340);function ye(E,p){}const Ee={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},H={dialogContainer:(0,Oe.X$)("dialogContainer",[(0,Oe.SB)("void, exit",(0,Oe.oB)({opacity:0,transform:"scale(0.7)"})),(0,Oe.SB)("enter",(0,Oe.oB)({transform:"none"})),(0,Oe.eR)("* => enter",(0,Oe.ru)([(0,Oe.jt)("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",(0,Oe.oB)({transform:"none",opacity:1})),(0,Oe.IO)("@*",(0,Oe.pV)(),{optional:!0})]),Ee),(0,Oe.eR)("* => void, * => exit",(0,Oe.ru)([(0,Oe.jt)("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",(0,Oe.oB)({opacity:0})),(0,Oe.IO)("@*",(0,Oe.pV)(),{optional:!0})]),Ee)])};class X{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=Ee.params.enterAnimationDuration,this.exitAnimationDuration=Ee.params.exitAnimationDuration}}let oe=(()=>{class E extends z{constructor(i,e,s,f,S,I,Q,be){super(i,e,s,f,S,I,Q,be),this._animationStateChanged=new O.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(i){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:i})}}return E.\u0275fac=function(i){return new(i||E)(O.Y36(O.SBq),O.Y36(r.qV),O.Y36(ne.K0,8),O.Y36(X),O.Y36(r.ic),O.Y36(O.R0b),O.Y36(l.Iu),O.Y36(r.tE))},E.\u0275cmp=O.Xpm({type:E,selectors:[["ng-component"]],features:[O.qOj],decls:0,vars:0,template:function(i,e){},encapsulation:2}),E})(),F=(()=>{class E extends oe{constructor(i,e,s,f,S,I,Q,be,we){super(i,e,s,f,S,I,Q,we),this._changeDetectorRef=be,this._state="enter"}_onAnimationDone({toState:i,totalTime:e}){"enter"===i?this._openAnimationDone(e):"exit"===i&&this._animationStateChanged.next({state:"closed",totalTime:e})}_onAnimationStart({toState:i,totalTime:e}){"enter"===i?this._animationStateChanged.next({state:"opening",totalTime:e}):("exit"===i||"void"===i)&&this._animationStateChanged.next({state:"closing",totalTime:e})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||Ee.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||Ee.params.exitAnimationDuration}}}}return E.\u0275fac=function(i){return new(i||E)(O.Y36(O.SBq),O.Y36(r.qV),O.Y36(ne.K0,8),O.Y36(X),O.Y36(r.ic),O.Y36(O.R0b),O.Y36(l.Iu),O.Y36(O.sBO),O.Y36(r.tE))},E.\u0275cmp=O.Xpm({type:E,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(i,e){1&i&&O.WFA("@dialogContainer.start",function(f){return e._onAnimationStart(f)})("@dialogContainer.done",function(f){return e._onAnimationDone(f)}),2&i&&(O.Ikx("id",e._config.id),O.uIk("aria-modal",e._config.ariaModal)("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),O.d8E("@dialogContainer",e._getAnimationState()))},features:[O.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(i,e){1&i&&O.YNc(0,ye,0,0,"ng-template",0)},dependencies:[M.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:[H.dialogContainer]}}),E})();class Z{constructor(p,i,e){this._ref=p,this._containerInstance=e,this._afterOpened=new re.x,this._beforeClosed=new re.x,this._state=0,this.disableClose=i.disableClose,this.id=p.id,e._animationStateChanged.pipe((0,Ce.h)(s=>"opened"===s.state),(0,Ae.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe((0,Ce.h)(s=>"closed"===s.state),(0,Ae.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),p.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,Se.T)(this.backdropClick(),this.keydownEvents().pipe((0,Ce.h)(s=>s.keyCode===_e.hY&&!this.disableClose&&!(0,_e.Vb)(s)))).subscribe(s=>{this.disableClose||(s.preventDefault(),function ie(E,p,i){E._closeInteractionType=p,E.close(i)}(this,"keydown"===s.type?"keyboard":"mouse"))})}close(p){this._result=p,this._containerInstance._animationStateChanged.pipe((0,Ce.h)(i=>"closing"===i.state),(0,Ae.q)(1)).subscribe(i=>{this._beforeClosed.next(p),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),i.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(p){let i=this._ref.config.positionStrategy;return p&&(p.left||p.right)?p.left?i.left(p.left):i.right(p.right):i.centerHorizontally(),p&&(p.top||p.bottom)?p.top?i.top(p.top):i.bottom(p.bottom):i.centerVertically(),this._ref.updatePosition(),this}updateSize(p="",i=""){return this._ref.updateSize(p,i),this}addPanelClass(p){return this._ref.addPanelClass(p),this}removePanelClass(p){return this._ref.removePanelClass(p),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const De=new O.OlP("MatDialogData"),he=new O.OlP("mat-dialog-default-options"),ve=new O.OlP("mat-dialog-scroll-strategy"),le={provide:ve,deps:[l.aV],useFactory:function W(E){return()=>E.scrollStrategies.block()}};let ce=0,fe=(()=>{class E{constructor(i,e,s,f,S,I,Q,be,we,Le){this._overlay=i,this._defaultOptions=s,this._parentDialog=f,this._dialogRefConstructor=Q,this._dialogContainerType=be,this._dialogDataToken=we,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new re.x,this._afterOpenedAtThisLevel=new re.x,this._idPrefix="mat-dialog-",this.afterAllClosed=(0,G.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,_.O)(void 0))),this._scrollStrategy=I,this._dialog=e.get(x)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const i=this._parentDialog;return i?i._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(i,e){let s;(e={...this._defaultOptions||new X,...e}).id=e.id||`${this._idPrefix}${ce++}`,e.scrollStrategy=e.scrollStrategy||this._scrollStrategy();const f=this._dialog.open(i,{...e,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:X,useValue:e},{provide:B,useValue:e}]},templateContext:()=>({dialogRef:s}),providers:(S,I,Q)=>(s=new this._dialogRefConstructor(S,e,Q),s.updatePosition(e?.position),[{provide:this._dialogContainerType,useValue:Q},{provide:this._dialogDataToken,useValue:I.data},{provide:this._dialogRefConstructor,useValue:s}])});return s.componentInstance=f.componentInstance,this.openDialogs.push(s),this.afterOpened.next(s),s.afterClosed().subscribe(()=>{const S=this.openDialogs.indexOf(s);S>-1&&(this.openDialogs.splice(S,1),this.openDialogs.length||this._getAfterAllClosed().next())}),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(i){return this.openDialogs.find(e=>e.id===i)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(i){let e=i.length;for(;e--;)i[e].close()}}return E.\u0275fac=function(i){O.$Z()},E.\u0275prov=O.Yz7({token:E,factory:E.\u0275fac}),E})(),Be=(()=>{class E extends fe{constructor(i,e,s,f,S,I,Q,be){super(i,e,f,I,Q,S,Z,F,De,be)}}return E.\u0275fac=function(i){return new(i||E)(O.LFG(l.aV),O.LFG(O.zs3),O.LFG(ne.Ye,8),O.LFG(he,8),O.LFG(ve),O.LFG(E,12),O.LFG(l.Xj),O.LFG(O.QbO,8))},E.\u0275prov=O.Yz7({token:E,factory:E.\u0275fac}),E})(),Ue=0,$e=(()=>{class E{constructor(i,e,s){this._dialogRef=i,this._elementRef=e,this._dialog=s,this.id="mat-dialog-title-"+Ue++}ngOnInit(){this._dialogRef||(this._dialogRef=function qe(E,p){let i=E.nativeElement.parentElement;for(;i&&!i.classList.contains("mat-dialog-container");)i=i.parentElement;return i?p.find(e=>e.id===i.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const i=this._dialogRef._containerInstance;i&&!i._ariaLabelledBy&&(i._ariaLabelledBy=this.id)})}}return E.\u0275fac=function(i){return new(i||E)(O.Y36(Z,8),O.Y36(O.SBq),O.Y36(Be))},E.\u0275dir=O.lG2({type:E,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(i,e){2&i&&O.Ikx("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),E})(),Xe=(()=>{class E{}return E.\u0275fac=function(i){return new(i||E)},E.\u0275dir=O.lG2({type:E,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),E})(),Je=(()=>{class E{constructor(){this.align="start"}}return E.\u0275fac=function(i){return new(i||E)},E.\u0275dir=O.lG2({type:E,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(i,e){2&i&&O.ekj("mat-dialog-actions-align-center","center"===e.align)("mat-dialog-actions-align-end","end"===e.align)},inputs:{align:"align"}}),E})(),Ie=(()=>{class E{}return E.\u0275fac=function(i){return new(i||E)},E.\u0275mod=O.oAB({type:E}),E.\u0275inj=O.cJS({providers:[Be,le],imports:[D,l.U8,M.eL,ae.BQ,ae.BQ]}),E})()},9549:(ze,Me,a)=>{a.d(Me,{Eo:()=>X,G_:()=>Je,KE:()=>qe,R9:()=>fe,hX:()=>ve,lN:()=>Ie,qo:()=>le});var r=a(9643),l=a(6895),t=a(4650),M=a(3238),ne=a(445),O=a(1281),_e=a(7579),re=a(6451),G=a(4968),L=a(8675),q=a(2722),_=a(5698),R=a(7340),B=a(3353);const j=["connectionContainer"],z=["inputContainer"],K=["label"];function ge(E,p){1&E&&(t.ynx(0),t.TgZ(1,"div",14),t._UZ(2,"div",15)(3,"div",16)(4,"div",17),t.qZA(),t.TgZ(5,"div",18),t._UZ(6,"div",15)(7,"div",16)(8,"div",17),t.qZA(),t.BQk())}function ke(E,p){if(1&E){const i=t.EpF();t.TgZ(0,"div",19),t.NdJ("cdkObserveContent",function(){t.CHM(i);const s=t.oxw();return t.KtG(s.updateOutlineGap())}),t.Hsn(1,1),t.qZA()}if(2&E){const i=t.oxw();t.Q6J("cdkObserveContentDisabled","outline"!=i.appearance)}}function xe(E,p){if(1&E&&(t.ynx(0),t.Hsn(1,2),t.TgZ(2,"span"),t._uU(3),t.qZA(),t.BQk()),2&E){const i=t.oxw(2);t.xp6(3),t.Oqu(i._control.placeholder)}}function de(E,p){1&E&&t.Hsn(0,3,["*ngSwitchCase","true"])}function te(E,p){1&E&&(t.TgZ(0,"span",23),t._uU(1," *"),t.qZA())}function b(E,p){if(1&E){const i=t.EpF();t.TgZ(0,"label",20,21),t.NdJ("cdkObserveContent",function(){t.CHM(i);const s=t.oxw();return t.KtG(s.updateOutlineGap())}),t.YNc(2,xe,4,1,"ng-container",12),t.YNc(3,de,1,0,"ng-content",12),t.YNc(4,te,2,0,"span",22),t.qZA()}if(2&E){const i=t.oxw();t.ekj("mat-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-form-field-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-accent","accent"==i.color)("mat-warn","warn"==i.color),t.Q6J("cdkObserveContentDisabled","outline"!=i.appearance)("id",i._labelId)("ngSwitch",i._hasLabel()),t.uIk("for",i._control.id)("aria-owns",i._control.id),t.xp6(2),t.Q6J("ngSwitchCase",!1),t.xp6(1),t.Q6J("ngSwitchCase",!0),t.xp6(1),t.Q6J("ngIf",!i.hideRequiredMarker&&i._control.required&&!i._control.disabled)}}function x(E,p){1&E&&(t.TgZ(0,"div",24),t.Hsn(1,4),t.qZA())}function v(E,p){if(1&E&&(t.TgZ(0,"div",25),t._UZ(1,"span",26),t.qZA()),2&E){const i=t.oxw();t.xp6(1),t.ekj("mat-accent","accent"==i.color)("mat-warn","warn"==i.color)}}function D(E,p){if(1&E&&(t.TgZ(0,"div"),t.Hsn(1,5),t.qZA()),2&E){const i=t.oxw();t.Q6J("@transitionMessages",i._subscriptAnimationState)}}function ae(E,p){if(1&E&&(t.TgZ(0,"div",30),t._uU(1),t.qZA()),2&E){const i=t.oxw(2);t.Q6J("id",i._hintLabelId),t.xp6(1),t.Oqu(i.hintLabel)}}function Se(E,p){if(1&E&&(t.TgZ(0,"div",27),t.YNc(1,ae,2,2,"div",28),t.Hsn(2,6),t._UZ(3,"div",29),t.Hsn(4,7),t.qZA()),2&E){const i=t.oxw();t.Q6J("@transitionMessages",i._subscriptAnimationState),t.xp6(1),t.Q6J("ngIf",i.hintLabel)}}const Ce=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Ae=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],ye=new t.OlP("MatError"),H={transitionMessages:(0,R.X$)("transitionMessages",[(0,R.SB)("enter",(0,R.oB)({opacity:1,transform:"translateY(0%)"})),(0,R.eR)("void => enter",[(0,R.oB)({opacity:0,transform:"translateY(-5px)"}),(0,R.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let X=(()=>{class E{}return E.\u0275fac=function(i){return new(i||E)},E.\u0275dir=t.lG2({type:E}),E})();const De=new t.OlP("MatHint");let ve=(()=>{class E{}return E.\u0275fac=function(i){return new(i||E)},E.\u0275dir=t.lG2({type:E,selectors:[["mat-label"]]}),E})(),P=(()=>{class E{}return E.\u0275fac=function(i){return new(i||E)},E.\u0275dir=t.lG2({type:E,selectors:[["mat-placeholder"]]}),E})();const W=new t.OlP("MatPrefix");let le=(()=>{class E{}return E.\u0275fac=function(i){return new(i||E)},E.\u0275dir=t.lG2({type:E,selectors:[["","matPrefix",""]],features:[t._Bn([{provide:W,useExisting:E}])]}),E})();const ce=new t.OlP("MatSuffix");let fe=(()=>{class E{}return E.\u0275fac=function(i){return new(i||E)},E.\u0275dir=t.lG2({type:E,selectors:[["","matSuffix",""]],features:[t._Bn([{provide:ce,useExisting:E}])]}),E})(),Be=0;const $e=(0,M.pj)(class{constructor(E){this._elementRef=E}},"primary"),Xe=new t.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Je=new t.OlP("MatFormField");let qe=(()=>{class E extends $e{constructor(i,e,s,f,S,I,Q){super(i),this._changeDetectorRef=e,this._dir=s,this._defaults=f,this._platform=S,this._ngZone=I,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new _e.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+Be++,this._labelId="mat-form-field-label-"+Be++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==Q,this.appearance=f?.appearance||"legacy",f&&(this._hideRequiredMarker=Boolean(f.hideRequiredMarker),f.color&&(this.color=this.defaultColor=f.color))}get appearance(){return this._appearance}set appearance(i){const e=this._appearance;this._appearance=i||this._defaults?.appearance||"legacy","outline"===this._appearance&&e!==i&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(i){this._hideRequiredMarker=(0,O.Ig)(i)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(i){this._hintLabel=i,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(i){i!==this._floatLabel&&(this._floatLabel=i||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(i){this._explicitFormFieldControl=i}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const i=this._control;i.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${i.controlType}`),i.stateChanges.pipe((0,L.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),i.ngControl&&i.ngControl.valueChanges&&i.ngControl.valueChanges.pipe((0,q.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,q.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,re.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,L.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,L.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,q.R)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(i){const e=this._control?this._control.ngControl:null;return e&&e[i]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,G.R)(this._label.nativeElement,"transitionend").pipe((0,_.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let i=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&i.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const e=this._hintChildren?this._hintChildren.find(f=>"start"===f.align):null,s=this._hintChildren?this._hintChildren.find(f=>"end"===f.align):null;e?i.push(e.id):this._hintLabel&&i.push(this._hintLabelId),s&&i.push(s.id)}else this._errorChildren&&i.push(...this._errorChildren.map(e=>e.id));this._control.setDescribedByIds(i)}}_validateControlChild(){}updateOutlineGap(){const i=this._label?this._label.nativeElement:null,e=this._connectionContainerRef.nativeElement,s=".mat-form-field-outline-start",f=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!i||!i.children.length||!i.textContent.trim()){const we=e.querySelectorAll(`${s}, ${f}`);for(let Le=0;Le<we.length;Le++)we[Le].style.width="0";return}if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let S=0,I=0;const Q=e.querySelectorAll(s),be=e.querySelectorAll(f);if(this._label&&this._label.nativeElement.children.length){const we=e.getBoundingClientRect();if(0===we.width&&0===we.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const Le=this._getStartEnd(we),Te=i.children,Ne=this._getStartEnd(Te[0].getBoundingClientRect());let je=0;for(let Ve=0;Ve<Te.length;Ve++)je+=Te[Ve].offsetWidth;S=Math.abs(Ne-Le)-5,I=je>0?.75*je+10:0}for(let we=0;we<Q.length;we++)Q[we].style.width=`${S}px`;for(let we=0;we<be.length;we++)be[we].style.width=`${I}px`;this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}_getStartEnd(i){return this._dir&&"rtl"===this._dir.value?i.right:i.left}_isAttachedToDOM(){const i=this._elementRef.nativeElement;if(i.getRootNode){const e=i.getRootNode();return e&&e!==i}return document.documentElement.contains(i)}}return E.\u0275fac=function(i){return new(i||E)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(ne.Is,8),t.Y36(Xe,8),t.Y36(B.t4),t.Y36(t.R0b),t.Y36(t.QbO,8))},E.\u0275cmp=t.Xpm({type:E,selectors:[["mat-form-field"]],contentQueries:function(i,e,s){if(1&i&&(t.Suo(s,X,5),t.Suo(s,X,7),t.Suo(s,ve,5),t.Suo(s,ve,7),t.Suo(s,P,5),t.Suo(s,ye,5),t.Suo(s,De,5),t.Suo(s,W,5),t.Suo(s,ce,5)),2&i){let f;t.iGM(f=t.CRH())&&(e._controlNonStatic=f.first),t.iGM(f=t.CRH())&&(e._controlStatic=f.first),t.iGM(f=t.CRH())&&(e._labelChildNonStatic=f.first),t.iGM(f=t.CRH())&&(e._labelChildStatic=f.first),t.iGM(f=t.CRH())&&(e._placeholderChild=f.first),t.iGM(f=t.CRH())&&(e._errorChildren=f),t.iGM(f=t.CRH())&&(e._hintChildren=f),t.iGM(f=t.CRH())&&(e._prefixChildren=f),t.iGM(f=t.CRH())&&(e._suffixChildren=f)}},viewQuery:function(i,e){if(1&i&&(t.Gf(j,7),t.Gf(z,5),t.Gf(K,5)),2&i){let s;t.iGM(s=t.CRH())&&(e._connectionContainerRef=s.first),t.iGM(s=t.CRH())&&(e._inputContainerRef=s.first),t.iGM(s=t.CRH())&&(e._label=s.first)}},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(i,e){2&i&&t.ekj("mat-form-field-appearance-standard","standard"==e.appearance)("mat-form-field-appearance-fill","fill"==e.appearance)("mat-form-field-appearance-outline","outline"==e.appearance)("mat-form-field-appearance-legacy","legacy"==e.appearance)("mat-form-field-invalid",e._control.errorState)("mat-form-field-can-float",e._canLabelFloat())("mat-form-field-should-float",e._shouldLabelFloat())("mat-form-field-has-label",e._hasFloatingLabel())("mat-form-field-hide-placeholder",e._hideControlPlaceholder())("mat-form-field-disabled",e._control.disabled)("mat-form-field-autofilled",e._control.autofilled)("mat-focused",e._control.focused)("ng-untouched",e._shouldForward("untouched"))("ng-touched",e._shouldForward("touched"))("ng-pristine",e._shouldForward("pristine"))("ng-dirty",e._shouldForward("dirty"))("ng-valid",e._shouldForward("valid"))("ng-invalid",e._shouldForward("invalid"))("ng-pending",e._shouldForward("pending"))("_mat-animation-noopable",!e._animationsEnabled)},inputs:{color:"color",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel",floatLabel:"floatLabel"},exportAs:["matFormField"],features:[t._Bn([{provide:Je,useExisting:E}]),t.qOj],ngContentSelectors:Ae,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(i,e){1&i&&(t.F$t(Ce),t.TgZ(0,"div",0)(1,"div",1,2),t.NdJ("click",function(f){return e._control.onContainerClick&&e._control.onContainerClick(f)}),t.YNc(3,ge,9,0,"ng-container",3),t.YNc(4,ke,2,1,"div",4),t.TgZ(5,"div",5,6),t.Hsn(7),t.TgZ(8,"span",7),t.YNc(9,b,5,16,"label",8),t.qZA()(),t.YNc(10,x,2,0,"div",9),t.qZA(),t.YNc(11,v,2,4,"div",10),t.TgZ(12,"div",11),t.YNc(13,D,2,1,"div",12),t.YNc(14,Se,5,2,"div",13),t.qZA()()),2&i&&(t.xp6(3),t.Q6J("ngIf","outline"==e.appearance),t.xp6(1),t.Q6J("ngIf",e._prefixChildren.length),t.xp6(5),t.Q6J("ngIf",e._hasFloatingLabel()),t.xp6(1),t.Q6J("ngIf",e._suffixChildren.length),t.xp6(1),t.Q6J("ngIf","outline"!=e.appearance),t.xp6(1),t.Q6J("ngSwitch",e._getDisplayedMessages()),t.xp6(1),t.Q6J("ngSwitchCase","error"),t.xp6(1),t.Q6J("ngSwitchCase","hint"))},dependencies:[l.O5,l.RF,l.n9,r.wD],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.cdk-high-contrast-active .mat-form-field-disabled .mat-form-field-label{color:GrayText}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-flex{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-form-field-flex{outline:dashed 3px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}','.mat-input-element{font:inherit;background:rgba(0,0,0,0);color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element:not([type=password])::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{opacity:0}._mat-animation-noopable .mat-input-element::placeholder{transition:none}._mat-animation-noopable .mat-input-element::-moz-placeholder{transition:none}._mat-animation-noopable .mat-input-element::-webkit-input-placeholder{transition:none}._mat-animation-noopable .mat-input-element:-ms-input-placeholder{transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px)}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px;border-top-color:GrayText}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:rgba(0,0,0,0)}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{border:3px dashed}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-outline{color:GrayText}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}"],encapsulation:2,data:{animation:[H.transitionMessages]},changeDetection:0}),E})(),Ie=(()=>{class E{}return E.\u0275fac=function(i){return new(i||E)},E.\u0275mod=t.oAB({type:E}),E.\u0275inj=t.cJS({imports:[l.ez,M.BQ,r.Q8,M.BQ]}),E})()},7392:(ze,Me,a)=>{a.d(Me,{Hw:()=>ie,Ps:()=>De});var r=a(4650),l=a(3238),t=a(1281),M=a(6895),ne=a(9646),O=a(2843),_e=a(4128),re=a(727),G=a(8505),L=a(4004),q=a(262),_=a(8746),R=a(3099),B=a(5698),j=a(529),z=a(1481);const K=["*"];let ge;function xe(he){return function ke(){if(void 0===ge&&(ge=null,typeof window<"u")){const he=window;void 0!==he.trustedTypes&&(ge=he.trustedTypes.createPolicy("angular#components",{createHTML:ve=>ve}))}return ge}()?.createHTML(he)||he}function de(he){return Error(`Unable to find icon with the name "${he}"`)}function b(he){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${he}".`)}function x(he){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${he}".`)}class v{constructor(ve,P,W){this.url=ve,this.svgText=P,this.options=W}}let D=(()=>{class he{constructor(P,W,le,ce){this._httpClient=P,this._sanitizer=W,this._errorHandler=ce,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons"],this._document=le}addSvgIcon(P,W,le){return this.addSvgIconInNamespace("",P,W,le)}addSvgIconLiteral(P,W,le){return this.addSvgIconLiteralInNamespace("",P,W,le)}addSvgIconInNamespace(P,W,le,ce){return this._addSvgIconConfig(P,W,new v(le,null,ce))}addSvgIconResolver(P){return this._resolvers.push(P),this}addSvgIconLiteralInNamespace(P,W,le,ce){const fe=this._sanitizer.sanitize(r.q3G.HTML,le);if(!fe)throw x(le);const Be=xe(fe);return this._addSvgIconConfig(P,W,new v("",Be,ce))}addSvgIconSet(P,W){return this.addSvgIconSetInNamespace("",P,W)}addSvgIconSetLiteral(P,W){return this.addSvgIconSetLiteralInNamespace("",P,W)}addSvgIconSetInNamespace(P,W,le){return this._addSvgIconSetConfig(P,new v(W,null,le))}addSvgIconSetLiteralInNamespace(P,W,le){const ce=this._sanitizer.sanitize(r.q3G.HTML,W);if(!ce)throw x(W);const fe=xe(ce);return this._addSvgIconSetConfig(P,new v("",fe,le))}registerFontClassAlias(P,W=P){return this._fontCssClassesByAlias.set(P,W),this}classNameForFontAlias(P){return this._fontCssClassesByAlias.get(P)||P}setDefaultFontSetClass(...P){return this._defaultFontSetClass=P,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(P){const W=this._sanitizer.sanitize(r.q3G.RESOURCE_URL,P);if(!W)throw b(P);const le=this._cachedIconsByUrl.get(W);return le?(0,ne.of)(Ce(le)):this._loadSvgIconFromConfig(new v(P,null)).pipe((0,G.b)(ce=>this._cachedIconsByUrl.set(W,ce)),(0,L.U)(ce=>Ce(ce)))}getNamedSvgIcon(P,W=""){const le=Ae(W,P);let ce=this._svgIconConfigs.get(le);if(ce)return this._getSvgFromConfig(ce);if(ce=this._getIconConfigFromResolvers(W,P),ce)return this._svgIconConfigs.set(le,ce),this._getSvgFromConfig(ce);const fe=this._iconSetConfigs.get(W);return fe?this._getSvgFromIconSetConfigs(P,fe):(0,O._)(de(le))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(P){return P.svgText?(0,ne.of)(Ce(this._svgElementFromConfig(P))):this._loadSvgIconFromConfig(P).pipe((0,L.U)(W=>Ce(W)))}_getSvgFromIconSetConfigs(P,W){const le=this._extractIconWithNameFromAnySet(P,W);if(le)return(0,ne.of)(le);const ce=W.filter(fe=>!fe.svgText).map(fe=>this._loadSvgIconSetFromConfig(fe).pipe((0,q.K)(Be=>{const We=`Loading icon set URL: ${this._sanitizer.sanitize(r.q3G.RESOURCE_URL,fe.url)} failed: ${Be.message}`;return this._errorHandler.handleError(new Error(We)),(0,ne.of)(null)})));return(0,_e.D)(ce).pipe((0,L.U)(()=>{const fe=this._extractIconWithNameFromAnySet(P,W);if(!fe)throw de(P);return fe}))}_extractIconWithNameFromAnySet(P,W){for(let le=W.length-1;le>=0;le--){const ce=W[le];if(ce.svgText&&ce.svgText.toString().indexOf(P)>-1){const fe=this._svgElementFromConfig(ce),Be=this._extractSvgIconFromSet(fe,P,ce.options);if(Be)return Be}}return null}_loadSvgIconFromConfig(P){return this._fetchIcon(P).pipe((0,G.b)(W=>P.svgText=W),(0,L.U)(()=>this._svgElementFromConfig(P)))}_loadSvgIconSetFromConfig(P){return P.svgText?(0,ne.of)(null):this._fetchIcon(P).pipe((0,G.b)(W=>P.svgText=W))}_extractSvgIconFromSet(P,W,le){const ce=P.querySelector(`[id="${W}"]`);if(!ce)return null;const fe=ce.cloneNode(!0);if(fe.removeAttribute("id"),"svg"===fe.nodeName.toLowerCase())return this._setSvgAttributes(fe,le);if("symbol"===fe.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(fe),le);const Be=this._svgElementFromString(xe("<svg></svg>"));return Be.appendChild(fe),this._setSvgAttributes(Be,le)}_svgElementFromString(P){const W=this._document.createElement("DIV");W.innerHTML=P;const le=W.querySelector("svg");if(!le)throw Error("<svg> tag not found");return le}_toSvgElement(P){const W=this._svgElementFromString(xe("<svg></svg>")),le=P.attributes;for(let ce=0;ce<le.length;ce++){const{name:fe,value:Be}=le[ce];"id"!==fe&&W.setAttribute(fe,Be)}for(let ce=0;ce<P.childNodes.length;ce++)P.childNodes[ce].nodeType===this._document.ELEMENT_NODE&&W.appendChild(P.childNodes[ce].cloneNode(!0));return W}_setSvgAttributes(P,W){return P.setAttribute("fit",""),P.setAttribute("height","100%"),P.setAttribute("width","100%"),P.setAttribute("preserveAspectRatio","xMidYMid meet"),P.setAttribute("focusable","false"),W&&W.viewBox&&P.setAttribute("viewBox",W.viewBox),P}_fetchIcon(P){const{url:W,options:le}=P,ce=le?.withCredentials??!1;if(!this._httpClient)throw function te(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}();if(null==W)throw Error(`Cannot fetch icon from URL "${W}".`);const fe=this._sanitizer.sanitize(r.q3G.RESOURCE_URL,W);if(!fe)throw b(W);const Be=this._inProgressUrlFetches.get(fe);if(Be)return Be;const Ue=this._httpClient.get(fe,{responseType:"text",withCredentials:ce}).pipe((0,L.U)(We=>xe(We)),(0,_.x)(()=>this._inProgressUrlFetches.delete(fe)),(0,R.B)());return this._inProgressUrlFetches.set(fe,Ue),Ue}_addSvgIconConfig(P,W,le){return this._svgIconConfigs.set(Ae(P,W),le),this}_addSvgIconSetConfig(P,W){const le=this._iconSetConfigs.get(P);return le?le.push(W):this._iconSetConfigs.set(P,[W]),this}_svgElementFromConfig(P){if(!P.svgElement){const W=this._svgElementFromString(P.svgText);this._setSvgAttributes(W,P.options),P.svgElement=W}return P.svgElement}_getIconConfigFromResolvers(P,W){for(let le=0;le<this._resolvers.length;le++){const ce=this._resolvers[le](W,P);if(ce)return Oe(ce)?new v(ce.url,null,ce.options):new v(ce,null)}}}return he.\u0275fac=function(P){return new(P||he)(r.LFG(j.eN,8),r.LFG(z.H7),r.LFG(M.K0,8),r.LFG(r.qLn))},he.\u0275prov=r.Yz7({token:he,factory:he.\u0275fac,providedIn:"root"}),he})();function Ce(he){return he.cloneNode(!0)}function Ae(he,ve){return he+":"+ve}function Oe(he){return!(!he.url||!he.options)}const ye=(0,l.pj)(class{constructor(he){this._elementRef=he}}),Ee=new r.OlP("MAT_ICON_DEFAULT_OPTIONS"),H=new r.OlP("mat-icon-location",{providedIn:"root",factory:function X(){const he=(0,r.f3M)(M.K0),ve=he?he.location:null;return{getPathname:()=>ve?ve.pathname+ve.search:""}}}),oe=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],F=oe.map(he=>`[${he}]`).join(", "),Z=/^url\(['"]?#(.*?)['"]?\)$/;let ie=(()=>{class he extends ye{constructor(P,W,le,ce,fe,Be){super(P),this._iconRegistry=W,this._location=ce,this._errorHandler=fe,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=re.w0.EMPTY,Be&&(Be.color&&(this.color=this.defaultColor=Be.color),Be.fontSet&&(this.fontSet=Be.fontSet)),le||P.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(P){this._inline=(0,t.Ig)(P)}get svgIcon(){return this._svgIcon}set svgIcon(P){P!==this._svgIcon&&(P?this._updateSvgIcon(P):this._svgIcon&&this._clearSvgElement(),this._svgIcon=P)}get fontSet(){return this._fontSet}set fontSet(P){const W=this._cleanupFontValue(P);W!==this._fontSet&&(this._fontSet=W,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(P){const W=this._cleanupFontValue(P);W!==this._fontIcon&&(this._fontIcon=W,this._updateFontIconClasses())}_splitIconName(P){if(!P)return["",""];const W=P.split(":");switch(W.length){case 1:return["",W[0]];case 2:return W;default:throw Error(`Invalid icon name: "${P}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const P=this._elementsWithExternalReferences;if(P&&P.size){const W=this._location.getPathname();W!==this._previousPath&&(this._previousPath=W,this._prependPathToReferences(W))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(P){this._clearSvgElement();const W=this._location.getPathname();this._previousPath=W,this._cacheChildrenWithExternalReferences(P),this._prependPathToReferences(W),this._elementRef.nativeElement.appendChild(P)}_clearSvgElement(){const P=this._elementRef.nativeElement;let W=P.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();W--;){const le=P.childNodes[W];(1!==le.nodeType||"svg"===le.nodeName.toLowerCase())&&le.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const P=this._elementRef.nativeElement,W=(this.fontSet?[this._iconRegistry.classNameForFontAlias(this.fontSet)]:this._iconRegistry.getDefaultFontSetClass()).filter(le=>le.length>0);this._previousFontSetClass.forEach(le=>P.classList.remove(le)),W.forEach(le=>P.classList.add(le)),this._previousFontSetClass=W,this.fontIcon!==this._previousFontIconClass&&(this._previousFontIconClass&&P.classList.remove(this._previousFontIconClass),this.fontIcon&&P.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(P){return"string"==typeof P?P.trim().split(" ")[0]:P}_prependPathToReferences(P){const W=this._elementsWithExternalReferences;W&&W.forEach((le,ce)=>{le.forEach(fe=>{ce.setAttribute(fe.name,`url('${P}#${fe.value}')`)})})}_cacheChildrenWithExternalReferences(P){const W=P.querySelectorAll(F),le=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let ce=0;ce<W.length;ce++)oe.forEach(fe=>{const Be=W[ce],Ue=Be.getAttribute(fe),We=Ue?Ue.match(Z):null;if(We){let $e=le.get(Be);$e||($e=[],le.set(Be,$e)),$e.push({name:fe,value:We[1]})}})}_updateSvgIcon(P){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),P){const[W,le]=this._splitIconName(P);W&&(this._svgNamespace=W),le&&(this._svgName=le),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(le,W).pipe((0,B.q)(1)).subscribe(ce=>this._setSvgElement(ce),ce=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${W}:${le}! ${ce.message}`))})}}}return he.\u0275fac=function(P){return new(P||he)(r.Y36(r.SBq),r.Y36(D),r.$8M("aria-hidden"),r.Y36(H),r.Y36(r.qLn),r.Y36(Ee,8))},he.\u0275cmp=r.Xpm({type:he,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(P,W){2&P&&(r.uIk("data-mat-icon-type",W._usingFontIcon()?"font":"svg")("data-mat-icon-name",W._svgName||W.fontIcon)("data-mat-icon-namespace",W._svgNamespace||W.fontSet),r.ekj("mat-icon-inline",W.inline)("mat-icon-no-color","primary"!==W.color&&"accent"!==W.color&&"warn"!==W.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[r.qOj],ngContentSelectors:K,decls:1,vars:0,template:function(P,W){1&P&&(r.F$t(),r.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),he})(),De=(()=>{class he{}return he.\u0275fac=function(P){return new(P||he)},he.\u0275mod=r.oAB({type:he}),he.\u0275inj=r.cJS({imports:[l.BQ,l.BQ]}),he})()},4144:(ze,Me,a)=>{a.d(Me,{Jk:()=>j,Nt:()=>ke,c:()=>xe});var r=a(1281),l=a(3353),t=a(4650),M=a(515),ne=a(7579);const O=(0,l.i$)({passive:!0});let _e=(()=>{class de{constructor(b,x){this._platform=b,this._ngZone=x,this._monitoredElements=new Map}monitor(b){if(!this._platform.isBrowser)return M.E;const x=(0,r.fI)(b),v=this._monitoredElements.get(x);if(v)return v.subject;const D=new ne.x,ae="cdk-text-field-autofilled",Se=Ce=>{"cdk-text-field-autofill-start"!==Ce.animationName||x.classList.contains(ae)?"cdk-text-field-autofill-end"===Ce.animationName&&x.classList.contains(ae)&&(x.classList.remove(ae),this._ngZone.run(()=>D.next({target:Ce.target,isAutofilled:!1}))):(x.classList.add(ae),this._ngZone.run(()=>D.next({target:Ce.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{x.addEventListener("animationstart",Se,O),x.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(x,{subject:D,unlisten:()=>{x.removeEventListener("animationstart",Se,O)}}),D}stopMonitoring(b){const x=(0,r.fI)(b),v=this._monitoredElements.get(x);v&&(v.unlisten(),v.subject.complete(),x.classList.remove("cdk-text-field-autofill-monitored"),x.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(x))}ngOnDestroy(){this._monitoredElements.forEach((b,x)=>this.stopMonitoring(x))}}return de.\u0275fac=function(b){return new(b||de)(t.LFG(l.t4),t.LFG(t.R0b))},de.\u0275prov=t.Yz7({token:de,factory:de.\u0275fac,providedIn:"root"}),de})(),L=(()=>{class de{}return de.\u0275fac=function(b){return new(b||de)},de.\u0275mod=t.oAB({type:de}),de.\u0275inj=t.cJS({}),de})();var q=a(4006),_=a(3238),R=a(9549);const j=new t.OlP("MAT_INPUT_VALUE_ACCESSOR"),z=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let K=0;const ge=(0,_.FD)(class{constructor(de,te,b,x){this._defaultErrorStateMatcher=de,this._parentForm=te,this._parentFormGroup=b,this.ngControl=x,this.stateChanges=new ne.x}});let ke=(()=>{class de extends ge{constructor(b,x,v,D,ae,Se,Ce,Ae,Oe,ye){super(Se,D,ae,v),this._elementRef=b,this._platform=x,this._autofillMonitor=Ae,this._formField=ye,this._uid="mat-input-"+K++,this.focused=!1,this.stateChanges=new ne.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(X=>(0,l.qK)().has(X)),this._iOSKeyupListener=X=>{const oe=X.target;!oe.value&&0===oe.selectionStart&&0===oe.selectionEnd&&(oe.setSelectionRange(1,1),oe.setSelectionRange(0,0))};const Ee=this._elementRef.nativeElement,H=Ee.nodeName.toLowerCase();this._inputValueAccessor=Ce||Ee,this._previousNativeValue=this.value,this.id=this.id,x.IOS&&Oe.runOutsideAngular(()=>{b.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===H,this._isTextarea="textarea"===H,this._isInFormField=!!ye,this._isNativeSelect&&(this.controlType=Ee.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(b){this._disabled=(0,r.Ig)(b),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(b){this._id=b||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(q.kI.required)??!1}set required(b){this._required=(0,r.Ig)(b)}get type(){return this._type}set type(b){this._type=b||"text",this._validateType(),!this._isTextarea&&(0,l.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(b){b!==this.value&&(this._inputValueAccessor.value=b,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(b){this._readonly=(0,r.Ig)(b)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(b=>{this.autofilled=b.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(b){this._elementRef.nativeElement.focus(b)}_focusChanged(b){b!==this.focused&&(this.focused=b,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const b=this._formField,x=b&&"legacy"===b.appearance&&!b._hasLabel?.()?null:this.placeholder;if(x!==this._previousPlaceholder){const v=this._elementRef.nativeElement;this._previousPlaceholder=x,x?v.setAttribute("placeholder",x):v.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const b=this._elementRef.nativeElement.value;this._previousNativeValue!==b&&(this._previousNativeValue=b,this.stateChanges.next())}_validateType(){z.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let b=this._elementRef.nativeElement.validity;return b&&b.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const b=this._elementRef.nativeElement,x=b.options[0];return this.focused||b.multiple||!this.empty||!!(b.selectedIndex>-1&&x&&x.label)}return this.focused||!this.empty}setDescribedByIds(b){b.length?this._elementRef.nativeElement.setAttribute("aria-describedby",b.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const b=this._elementRef.nativeElement;return this._isNativeSelect&&(b.multiple||b.size>1)}}return de.\u0275fac=function(b){return new(b||de)(t.Y36(t.SBq),t.Y36(l.t4),t.Y36(q.a5,10),t.Y36(q.F,8),t.Y36(q.sg,8),t.Y36(_.rD),t.Y36(j,10),t.Y36(_e),t.Y36(t.R0b),t.Y36(R.G_,8))},de.\u0275dir=t.lG2({type:de,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(b,x){1&b&&t.NdJ("focus",function(){return x._focusChanged(!0)})("blur",function(){return x._focusChanged(!1)})("input",function(){return x._onInput()}),2&b&&(t.Ikx("disabled",x.disabled)("required",x.required),t.uIk("id",x.id)("data-placeholder",x.placeholder)("name",x.name||null)("readonly",x.readonly&&!x._isNativeSelect||null)("aria-invalid",x.empty&&x.required?null:x.errorState)("aria-required",x.required),t.ekj("mat-input-server",x._isServer)("mat-native-select-inline",x._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[t._Bn([{provide:R.Eo,useExisting:de}]),t.qOj,t.TTD]}),de})(),xe=(()=>{class de{}return de.\u0275fac=function(b){return new(b||de)},de.\u0275mod=t.oAB({type:de}),de.\u0275inj=t.cJS({providers:[_.rD],imports:[L,R.lN,_.BQ,L,R.lN]}),de})()},1948:(ze,Me,a)=>{a.d(Me,{Fk:()=>te,U0:()=>de,VQ:()=>K});var r=a(4650),l=a(3238),t=a(2687),M=a(1281),ne=a(5017),O=a(4006);const _e=["input"],re=function(b){return{enterDuration:b}},G=["*"],L=new r.OlP("mat-radio-default-options",{providedIn:"root",factory:function q(){return{color:"accent"}}});let _=0;const R={provide:O.JU,useExisting:(0,r.Gpc)(()=>K),multi:!0};class B{constructor(x,v){this.source=x,this.value=v}}const j=new r.OlP("MatRadioGroup");let z=(()=>{class b{constructor(v){this._changeDetector=v,this._value=null,this._name="mat-radio-group-"+_++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new r.vpe}get name(){return this._name}set name(v){this._name=v,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(v){this._labelPosition="before"===v?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(v){this._value!==v&&(this._value=v,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(v){this._selected=v,this.value=v?v.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(v){this._disabled=(0,M.Ig)(v),this._markRadiosForCheck()}get required(){return this._required}set required(v){this._required=(0,M.Ig)(v),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(v=>{v.name=this.name,v._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(D=>{D.checked=this.value===D.value,D.checked&&(this._selected=D)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new B(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(v=>v._markForCheck())}writeValue(v){this.value=v,this._changeDetector.markForCheck()}registerOnChange(v){this._controlValueAccessorChangeFn=v}registerOnTouched(v){this.onTouched=v}setDisabledState(v){this.disabled=v,this._changeDetector.markForCheck()}}return b.\u0275fac=function(v){return new(v||b)(r.Y36(r.sBO))},b.\u0275dir=r.lG2({type:b,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),b})(),K=(()=>{class b extends z{}return b.\u0275fac=function(){let x;return function(D){return(x||(x=r.n5z(b)))(D||b)}}(),b.\u0275dir=r.lG2({type:b,selectors:[["mat-radio-group"]],contentQueries:function(v,D,ae){if(1&v&&r.Suo(ae,de,5),2&v){let Se;r.iGM(Se=r.CRH())&&(D._radios=Se)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[r._Bn([R,{provide:j,useExisting:b}]),r.qOj]}),b})();class ge{constructor(x){this._elementRef=x}}const ke=(0,l.Kr)((0,l.sb)(ge));let xe=(()=>{class b extends ke{constructor(v,D,ae,Se,Ce,Ae,Oe,ye){super(D),this._changeDetector=ae,this._focusMonitor=Se,this._radioDispatcher=Ce,this._providerOverride=Oe,this._uniqueId="mat-radio-"+ ++_,this.id=this._uniqueId,this.change=new r.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=v,this._noopAnimations="NoopAnimations"===Ae,ye&&(this.tabIndex=(0,M.su)(ye,0)),this._removeUniqueSelectionListener=Ce.listen((Ee,H)=>{Ee!==this.id&&H===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(v){const D=(0,M.Ig)(v);this._checked!==D&&(this._checked=D,D&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!D&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),D&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(v){this._value!==v&&(this._value=v,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===v),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(v){this._labelPosition=v}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(v){this._setDisabled((0,M.Ig)(v))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(v){this._required=(0,M.Ig)(v)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(v){this._color=v}get inputId(){return`${this.id||this._uniqueId}-input`}focus(v,D){D?this._focusMonitor.focusVia(this._inputElement,D,v):this._inputElement.nativeElement.focus(v)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(v=>{!v&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new B(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(v){v.stopPropagation()}_onInputInteraction(v){if(v.stopPropagation(),!this.checked&&!this.disabled){const D=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),D&&this.radioGroup._emitChangeEvent())}}_setDisabled(v){this._disabled!==v&&(this._disabled=v,this._changeDetector.markForCheck())}_updateTabIndex(){const v=this.radioGroup;let D;if(D=v&&v.selected&&!this.disabled?v.selected===this?this.tabIndex:-1:this.tabIndex,D!==this._previousTabIndex){const ae=this._inputElement?.nativeElement;ae&&(ae.setAttribute("tabindex",D+""),this._previousTabIndex=D)}}}return b.\u0275fac=function(v){r.$Z()},b.\u0275dir=r.lG2({type:b,viewQuery:function(v,D){if(1&v&&r.Gf(_e,5),2&v){let ae;r.iGM(ae=r.CRH())&&(D._inputElement=ae.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[r.qOj]}),b})(),de=(()=>{class b extends xe{constructor(v,D,ae,Se,Ce,Ae,Oe,ye){super(v,D,ae,Se,Ce,Ae,Oe,ye)}}return b.\u0275fac=function(v){return new(v||b)(r.Y36(j,8),r.Y36(r.SBq),r.Y36(r.sBO),r.Y36(t.tE),r.Y36(ne.A8),r.Y36(r.QbO,8),r.Y36(L,8),r.$8M("tabindex"))},b.\u0275cmp=r.Xpm({type:b,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(v,D){1&v&&r.NdJ("focus",function(){return D._inputElement.nativeElement.focus()}),2&v&&(r.uIk("tabindex",null)("id",D.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),r.ekj("mat-radio-checked",D.checked)("mat-radio-disabled",D.disabled)("_mat-animation-noopable",D._noopAnimations)("mat-primary","primary"===D.color)("mat-accent","accent"===D.color)("mat-warn","warn"===D.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[r.qOj],ngContentSelectors:G,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input",3,"id","checked","disabled","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(v,D){if(1&v&&(r.F$t(),r.TgZ(0,"label",0,1)(2,"span",2),r._UZ(3,"span",3)(4,"span",4),r.TgZ(5,"input",5,6),r.NdJ("change",function(Se){return D._onInputInteraction(Se)})("click",function(Se){return D._onInputClick(Se)}),r.qZA(),r.TgZ(7,"span",7),r._UZ(8,"span",8),r.qZA()(),r.TgZ(9,"span",9)(10,"span",10),r._uU(11,"\xa0"),r.qZA(),r.Hsn(12),r.qZA()()),2&v){const ae=r.MAs(1);r.uIk("for",D.inputId),r.xp6(5),r.Q6J("id",D.inputId)("checked",D.checked)("disabled",D.disabled)("required",D.required),r.uIk("name",D.name)("value",D.value)("aria-label",D.ariaLabel)("aria-labelledby",D.ariaLabelledby)("aria-describedby",D.ariaDescribedby),r.xp6(2),r.Q6J("matRippleTrigger",ae)("matRippleDisabled",D._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",r.VKq(17,re,D._noopAnimations?0:150)),r.xp6(2),r.ekj("mat-radio-label-before","before"==D.labelPosition)}},dependencies:[l.wG],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-radio-label{-webkit-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{opacity:0;position:absolute;top:0;left:0;margin:0;width:100%;height:100%;cursor:inherit;z-index:-1}.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}"],encapsulation:2,changeDetection:0}),b})(),te=(()=>{class b{}return b.\u0275fac=function(v){return new(v||b)},b.\u0275mod=r.oAB({type:b}),b.\u0275inj=r.cJS({imports:[l.si,l.BQ,l.BQ]}),b})()},4385:(ze,Me,a)=>{a.d(Me,{LD:()=>qe,gD:()=>Je});var r=a(2561),l=a(6895),t=a(4650),M=a(3238),ne=a(9549),O=a(7376),_e=a(2687),re=a(445),G=a(1281),L=a(5017),q=a(9521),_=a(4006),R=a(7579),B=a(9770),j=a(6451),z=a(8675),K=a(3900),ge=a(5698),ke=a(9300),xe=a(4004),de=a(1884),te=a(2722),b=a(7340);const x=["trigger"],v=["panel"];function D(Ie,E){if(1&Ie&&(t.TgZ(0,"span",8),t._uU(1),t.qZA()),2&Ie){const p=t.oxw();t.xp6(1),t.Oqu(p.placeholder)}}function ae(Ie,E){if(1&Ie&&(t.TgZ(0,"span",12),t._uU(1),t.qZA()),2&Ie){const p=t.oxw(2);t.xp6(1),t.Oqu(p.triggerValue)}}function Se(Ie,E){1&Ie&&t.Hsn(0,0,["*ngSwitchCase","true"])}function Ce(Ie,E){if(1&Ie&&(t.TgZ(0,"span",9),t.YNc(1,ae,2,1,"span",10),t.YNc(2,Se,1,0,"ng-content",11),t.qZA()),2&Ie){const p=t.oxw();t.Q6J("ngSwitch",!!p.customTrigger),t.xp6(2),t.Q6J("ngSwitchCase",!0)}}function Ae(Ie,E){if(1&Ie){const p=t.EpF();t.TgZ(0,"div",13)(1,"div",14,15),t.NdJ("@transformPanel.done",function(e){t.CHM(p);const s=t.oxw();return t.KtG(s._panelDoneAnimatingStream.next(e.toState))})("keydown",function(e){t.CHM(p);const s=t.oxw();return t.KtG(s._handleKeydown(e))}),t.Hsn(3,1),t.qZA()()}if(2&Ie){const p=t.oxw();t.Q6J("@transformPanelWrap",void 0),t.xp6(1),t.Gre("mat-select-panel ",p._getPanelTheme(),""),t.Udp("transform-origin",p._transformOrigin)("font-size",p._triggerFontSize,"px"),t.Q6J("ngClass",p.panelClass)("@transformPanel",p.multiple?"showing-multiple":"showing"),t.uIk("id",p.id+"-panel")("aria-multiselectable",p.multiple)("aria-label",p.ariaLabel||null)("aria-labelledby",p._getPanelAriaLabelledby())}}const Oe=[[["mat-select-trigger"]],"*"],ye=["mat-select-trigger","*"],Ee={transformPanelWrap:(0,b.X$)("transformPanelWrap",[(0,b.eR)("* => void",(0,b.IO)("@transformPanel",[(0,b.pV)()],{optional:!0}))]),transformPanel:(0,b.X$)("transformPanel",[(0,b.SB)("void",(0,b.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,b.SB)("showing",(0,b.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,b.SB)("showing-multiple",(0,b.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,b.eR)("void => *",(0,b.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,b.eR)("* => void",(0,b.jt)("100ms 25ms linear",(0,b.oB)({opacity:0})))])};let F=0;const Z=256,W=new t.OlP("mat-select-scroll-strategy"),ce=new t.OlP("MAT_SELECT_CONFIG"),fe={provide:W,deps:[r.aV],useFactory:function le(Ie){return()=>Ie.scrollStrategies.reposition()}};class Be{constructor(E,p){this.source=E,this.value=p}}const Ue=(0,M.Kr)((0,M.sb)((0,M.Id)((0,M.FD)(class{constructor(Ie,E,p,i,e){this._elementRef=Ie,this._defaultErrorStateMatcher=E,this._parentForm=p,this._parentFormGroup=i,this.ngControl=e,this.stateChanges=new R.x}})))),We=new t.OlP("MatSelectTrigger");let Xe=(()=>{class Ie extends Ue{constructor(p,i,e,s,f,S,I,Q,be,we,Le,Te,Ne,je){super(f,s,I,Q,we),this._viewportRuler=p,this._changeDetectorRef=i,this._ngZone=e,this._dir=S,this._parentFormField=be,this._liveAnnouncer=Ne,this._defaultOptions=je,this._panelOpen=!1,this._compareWith=(Ve,Ge)=>Ve===Ge,this._uid="mat-select-"+F++,this._triggerAriaLabelledBy=null,this._destroy=new R.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+F++,this._panelDoneAnimatingStream=new R.x,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=(0,B.P)(()=>{const Ve=this.options;return Ve?Ve.changes.pipe((0,z.O)(Ve),(0,K.w)(()=>(0,j.T)(...Ve.map(Ge=>Ge.onSelectionChange)))):this._ngZone.onStable.pipe((0,ge.q)(1),(0,K.w)(()=>this.optionSelectionChanges))}),this.openedChange=new t.vpe,this._openedStream=this.openedChange.pipe((0,ke.h)(Ve=>Ve),(0,xe.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,ke.h)(Ve=>!Ve),(0,xe.U)(()=>{})),this.selectionChange=new t.vpe,this.valueChange=new t.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=je?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=je.typeaheadDebounceInterval),this._scrollStrategyFactory=Te,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(Le)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(p){this._placeholder=p,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(_.kI.required)??!1}set required(p){this._required=(0,G.Ig)(p),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(p){this._multiple=(0,G.Ig)(p)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(p){this._disableOptionCentering=(0,G.Ig)(p)}get compareWith(){return this._compareWith}set compareWith(p){this._compareWith=p,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(p){this._assignValue(p)&&this._onChange(p)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(p){this._typeaheadDebounceInterval=(0,G.su)(p)}get id(){return this._id}set id(p){this._id=p||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new L.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,de.x)(),(0,te.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,te.R)(this._destroy)).subscribe(p=>{p.added.forEach(i=>i.select()),p.removed.forEach(i=>i.deselect())}),this.options.changes.pipe((0,z.O)(null),(0,te.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const p=this._getTriggerAriaLabelledby(),i=this.ngControl;if(p!==this._triggerAriaLabelledBy){const e=this._elementRef.nativeElement;this._triggerAriaLabelledBy=p,p?e.setAttribute("aria-labelledby",p):e.removeAttribute("aria-labelledby")}i&&(this._previousControl!==i.control&&(void 0!==this._previousControl&&null!==i.disabled&&i.disabled!==this.disabled&&(this.disabled=i.disabled),this._previousControl=i.control),this.updateErrorState())}ngOnChanges(p){(p.disabled||p.userAriaDescribedBy)&&this.stateChanges.next(),p.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(p){this._assignValue(p)}registerOnChange(p){this._onChange=p}registerOnTouched(p){this._onTouched=p}setDisabledState(p){this.disabled=p,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const p=this._selectionModel.selected.map(i=>i.viewValue);return this._isRtl()&&p.reverse(),p.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(p){this.disabled||(this.panelOpen?this._handleOpenKeydown(p):this._handleClosedKeydown(p))}_handleClosedKeydown(p){const i=p.keyCode,e=i===q.JH||i===q.LH||i===q.oh||i===q.SV,s=i===q.K5||i===q.L_,f=this._keyManager;if(!f.isTyping()&&s&&!(0,q.Vb)(p)||(this.multiple||p.altKey)&&e)p.preventDefault(),this.open();else if(!this.multiple){const S=this.selected;f.onKeydown(p);const I=this.selected;I&&S!==I&&this._liveAnnouncer.announce(I.viewValue,1e4)}}_handleOpenKeydown(p){const i=this._keyManager,e=p.keyCode,s=e===q.JH||e===q.LH,f=i.isTyping();if(s&&p.altKey)p.preventDefault(),this.close();else if(f||e!==q.K5&&e!==q.L_||!i.activeItem||(0,q.Vb)(p))if(!f&&this._multiple&&e===q.A&&p.ctrlKey){p.preventDefault();const S=this.options.some(I=>!I.disabled&&!I.selected);this.options.forEach(I=>{I.disabled||(S?I.select():I.deselect())})}else{const S=i.activeItemIndex;i.onKeydown(p),this._multiple&&s&&p.shiftKey&&i.activeItem&&i.activeItemIndex!==S&&i.activeItem._selectViaInteraction()}else p.preventDefault(),i.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,ge.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(p){if(this._selectionModel.selected.forEach(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&p)Array.isArray(p),p.forEach(i=>this._selectOptionByValue(i)),this._sortValues();else{const i=this._selectOptionByValue(p);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(p){const i=this.options.find(e=>{if(this._selectionModel.isSelected(e))return!1;try{return null!=e.value&&this._compareWith(e.value,p)}catch{return!1}});return i&&this._selectionModel.select(i),i}_assignValue(p){return!!(p!==this._value||this._multiple&&Array.isArray(p))&&(this.options&&this._setSelectionByValue(p),this._value=p,!0)}_initKeyManager(){this._keyManager=new _e.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,te.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,te.R)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const p=(0,j.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,te.R)(p)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,j.T)(...this.options.map(i=>i._stateChanges)).pipe((0,te.R)(p)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(p,i){const e=this._selectionModel.isSelected(p);null!=p.value||this._multiple?(e!==p.selected&&(p.selected?this._selectionModel.select(p):this._selectionModel.deselect(p)),i&&this._keyManager.setActiveItem(p),this.multiple&&(this._sortValues(),i&&this.focus())):(p.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(p.value)),e!==this._selectionModel.isSelected(p)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const p=this.options.toArray();this._selectionModel.sort((i,e)=>this.sortComparator?this.sortComparator(i,e,p):p.indexOf(i)-p.indexOf(e)),this.stateChanges.next()}}_propagateChanges(p){let i=null;i=this.multiple?this.selected.map(e=>e.value):this.selected?this.selected.value:p,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(p){this._elementRef.nativeElement.focus(p)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const p=this._parentFormField?.getLabelId();return this.ariaLabelledby?(p?p+" ":"")+this.ariaLabelledby:p}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const p=this._parentFormField?.getLabelId();let i=(p?p+" ":"")+this._valueId;return this.ariaLabelledby&&(i+=" "+this.ariaLabelledby),i}_panelDoneAnimating(p){this.openedChange.emit(p)}setDescribedByIds(p){p.length?this._elementRef.nativeElement.setAttribute("aria-describedby",p.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return Ie.\u0275fac=function(p){return new(p||Ie)(t.Y36(O.rL),t.Y36(t.sBO),t.Y36(t.R0b),t.Y36(M.rD),t.Y36(t.SBq),t.Y36(re.Is,8),t.Y36(_.F,8),t.Y36(_.sg,8),t.Y36(ne.G_,8),t.Y36(_.a5,10),t.$8M("tabindex"),t.Y36(W),t.Y36(_e.Kd),t.Y36(ce,8))},Ie.\u0275dir=t.lG2({type:Ie,viewQuery:function(p,i){if(1&p&&(t.Gf(x,5),t.Gf(v,5),t.Gf(r.pI,5)),2&p){let e;t.iGM(e=t.CRH())&&(i.trigger=e.first),t.iGM(e=t.CRH())&&(i.panel=e.first),t.iGM(e=t.CRH())&&(i._overlayDir=e.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[t.qOj,t.TTD]}),Ie})(),Je=(()=>{class Ie extends Xe{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(p,i,e){const s=this._getItemHeight();return Math.min(Math.max(0,s*p-i+s/2),e)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,te.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,ge.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(p){const i=(0,M.CB)(p,this.options,this.optionGroups),e=this._getItemHeight();this.panel.nativeElement.scrollTop=0===p&&1===i?0:(0,M.jH)((p+i)*e,e,this.panel.nativeElement.scrollTop,Z)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(p){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(p)}_getChangeEvent(p){return new Be(this,p)}_calculateOverlayOffsetX(){const p=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),i=this._viewportRuler.getViewportSize(),e=this._isRtl(),s=this.multiple?56:32;let f;if(this.multiple)f=40;else if(this.disableOptionCentering)f=16;else{let Q=this._selectionModel.selected[0]||this.options.first;f=Q&&Q.group?32:16}e||(f*=-1);const S=0-(p.left+f-(e?s:0)),I=p.right+f-i.width+(e?0:s);S>0?f+=S+8:I>0&&(f-=I+8),this._overlayDir.offsetX=Math.round(f),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(p,i,e){const s=this._getItemHeight(),f=(s-this._triggerRect.height)/2,S=Math.floor(Z/s);let I;return this.disableOptionCentering?0:(I=0===this._scrollTop?p*s:this._scrollTop===e?(p-(this._getItemCount()-S))*s+(s-(this._getItemCount()*s-Z)%s):i-s/2,Math.round(-1*I-f))}_checkOverlayWithinViewport(p){const i=this._getItemHeight(),e=this._viewportRuler.getViewportSize(),s=this._triggerRect.top-8,f=e.height-this._triggerRect.bottom-8,S=Math.abs(this._offsetY),Q=Math.min(this._getItemCount()*i,Z)-S-this._triggerRect.height;Q>f?this._adjustPanelUp(Q,f):S>s?this._adjustPanelDown(S,s,p):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(p,i){const e=Math.round(p-i);this._scrollTop-=e,this._offsetY-=e,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(p,i,e){const s=Math.round(p-i);if(this._scrollTop+=s,this._offsetY+=s,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=e)return this._scrollTop=e,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const p=this._getItemHeight(),i=this._getItemCount(),e=Math.min(i*p,Z),f=i*p-e;let S;S=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),S+=(0,M.CB)(S,this.options,this.optionGroups);const I=e/2;this._scrollTop=this._calculateOverlayScroll(S,I,f),this._offsetY=this._calculateOverlayOffsetY(S,I,f),this._checkOverlayWithinViewport(f)}_getOriginBasedOnOption(){const p=this._getItemHeight(),i=(p-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-i+p/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return Ie.\u0275fac=function(){let E;return function(i){return(E||(E=t.n5z(Ie)))(i||Ie)}}(),Ie.\u0275cmp=t.Xpm({type:Ie,selectors:[["mat-select"]],contentQueries:function(p,i,e){if(1&p&&(t.Suo(e,We,5),t.Suo(e,M.ey,5),t.Suo(e,M.K7,5)),2&p){let s;t.iGM(s=t.CRH())&&(i.customTrigger=s.first),t.iGM(s=t.CRH())&&(i.options=s),t.iGM(s=t.CRH())&&(i.optionGroups=s)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(p,i){1&p&&t.NdJ("keydown",function(s){return i._handleKeydown(s)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),2&p&&(t.uIk("id",i.id)("tabindex",i.tabIndex)("aria-controls",i.panelOpen?i.id+"-panel":null)("aria-expanded",i.panelOpen)("aria-label",i.ariaLabel||null)("aria-required",i.required.toString())("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-activedescendant",i._getAriaActiveDescendant()),t.ekj("mat-select-disabled",i.disabled)("mat-select-invalid",i.errorState)("mat-select-required",i.required)("mat-select-empty",i.empty)("mat-select-multiple",i.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[t._Bn([{provide:ne.Eo,useExisting:Ie},{provide:M.HF,useExisting:Ie}]),t.qOj],ngContentSelectors:ye,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(p,i){if(1&p&&(t.F$t(Oe),t.TgZ(0,"div",0,1),t.NdJ("click",function(){return i.toggle()}),t.TgZ(3,"div",2),t.YNc(4,D,2,1,"span",3),t.YNc(5,Ce,3,2,"span",4),t.qZA(),t.TgZ(6,"div",5),t._UZ(7,"div",6),t.qZA()(),t.YNc(8,Ae,4,14,"ng-template",7),t.NdJ("backdropClick",function(){return i.close()})("attach",function(){return i._onAttached()})("detach",function(){return i.close()})),2&p){const e=t.MAs(1);t.uIk("aria-owns",i.panelOpen?i.id+"-panel":null),t.xp6(3),t.Q6J("ngSwitch",i.empty),t.uIk("id",i._valueId),t.xp6(1),t.Q6J("ngSwitchCase",!0),t.xp6(1),t.Q6J("ngSwitchCase",!1),t.xp6(3),t.Q6J("cdkConnectedOverlayPanelClass",i._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",i._scrollStrategy)("cdkConnectedOverlayOrigin",e)("cdkConnectedOverlayOpen",i.panelOpen)("cdkConnectedOverlayPositions",i._positions)("cdkConnectedOverlayMinWidth",null==i._triggerRect?null:i._triggerRect.width)("cdkConnectedOverlayOffsetY",i._offsetY)}},dependencies:[l.mk,l.RF,l.n9,l.ED,r.pI,r.xu],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[Ee.transformPanelWrap,Ee.transformPanel]},changeDetection:0}),Ie})(),qe=(()=>{class Ie{}return Ie.\u0275fac=function(p){return new(p||Ie)},Ie.\u0275mod=t.oAB({type:Ie}),Ie.\u0275inj=t.cJS({providers:[fe],imports:[l.ez,r.U8,M.Ng,M.BQ,O.ZD,ne.lN,M.Ng,M.BQ]}),Ie})()},266:(ze,Me,a)=>{a.d(Me,{AV:()=>Ee,gM:()=>Ae});var r=a(2561),l=a(2687),t=a(6895),M=a(4650),ne=a(3238),O=a(7376),_e=a(445),re=a(1281),G=a(9521),L=a(2289),q=a(3353),_=a(4080),R=a(7579),B=a(2722),j=a(5698);a(7340);const K=["tooltip"],xe="tooltip-panel",de=(0,q.i$)({passive:!0}),x=new M.OlP("mat-tooltip-scroll-strategy"),D={provide:x,deps:[r.aV],useFactory:function v(X){return()=>X.scrollStrategies.reposition({scrollThrottle:20})}},ae=new M.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function Se(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let Ce=(()=>{class X{constructor(F,Z,ie,De,he,ve,P,W,le,ce,fe,Be){this._overlay=F,this._elementRef=Z,this._scrollDispatcher=ie,this._viewContainerRef=De,this._ngZone=he,this._platform=ve,this._ariaDescriber=P,this._focusMonitor=W,this._dir=ce,this._defaultOptions=fe,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new R.x,this._scrollStrategy=le,this._document=Be,fe&&(fe.position&&(this.position=fe.position),fe.touchGestures&&(this.touchGestures=fe.touchGestures)),ce.change.pipe((0,B.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(F){F!==this._position&&(this._position=F,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(F){this._disabled=(0,re.Ig)(F),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(F){this._showDelay=(0,re.su)(F)}get hideDelay(){return this._hideDelay}set hideDelay(F){this._hideDelay=(0,re.su)(F),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(F){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=F?String(F).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(F){this._tooltipClass=F,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,B.R)(this._destroyed)).subscribe(F=>{F?"keyboard"===F&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const F=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([Z,ie])=>{F.removeEventListener(Z,ie,de)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(F,this.message,"tooltip"),this._focusMonitor.stopMonitoring(F)}show(F=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const Z=this._createOverlay();this._detach(),this._portal=this._portal||new _.C5(this._tooltipComponent,this._viewContainerRef);const ie=this._tooltipInstance=Z.attach(this._portal).instance;ie._triggerElement=this._elementRef.nativeElement,ie._mouseLeaveHideDelay=this._hideDelay,ie.afterHidden().pipe((0,B.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),ie.show(F)}hide(F=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(F)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const F=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),Z=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(F);return Z.positionChanges.pipe((0,B.R)(this._destroyed)).subscribe(ie=>{this._updateCurrentPositionClass(ie.connectionPair),this._tooltipInstance&&ie.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:Z,panelClass:`${this._cssClassPrefix}-${xe}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,B.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,B.R)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,B.R)(this._destroyed)).subscribe(ie=>{this._isTooltipVisible()&&ie.keyCode===G.hY&&!(0,G.Vb)(ie)&&(ie.preventDefault(),ie.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(F){const Z=F.getConfig().positionStrategy,ie=this._getOrigin(),De=this._getOverlayPosition();Z.withPositions([this._addOffset({...ie.main,...De.main}),this._addOffset({...ie.fallback,...De.fallback})])}_addOffset(F){return F}_getOrigin(){const F=!this._dir||"ltr"==this._dir.value,Z=this.position;let ie;"above"==Z||"below"==Z?ie={originX:"center",originY:"above"==Z?"top":"bottom"}:"before"==Z||"left"==Z&&F||"right"==Z&&!F?ie={originX:"start",originY:"center"}:("after"==Z||"right"==Z&&F||"left"==Z&&!F)&&(ie={originX:"end",originY:"center"});const{x:De,y:he}=this._invertPosition(ie.originX,ie.originY);return{main:ie,fallback:{originX:De,originY:he}}}_getOverlayPosition(){const F=!this._dir||"ltr"==this._dir.value,Z=this.position;let ie;"above"==Z?ie={overlayX:"center",overlayY:"bottom"}:"below"==Z?ie={overlayX:"center",overlayY:"top"}:"before"==Z||"left"==Z&&F||"right"==Z&&!F?ie={overlayX:"end",overlayY:"center"}:("after"==Z||"right"==Z&&F||"left"==Z&&!F)&&(ie={overlayX:"start",overlayY:"center"});const{x:De,y:he}=this._invertPosition(ie.overlayX,ie.overlayY);return{main:ie,fallback:{overlayX:De,overlayY:he}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,j.q)(1),(0,B.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(F){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=F,this._tooltipInstance._markForCheck())}_invertPosition(F,Z){return"above"===this.position||"below"===this.position?"top"===Z?Z="bottom":"bottom"===Z&&(Z="top"):"end"===F?F="start":"start"===F&&(F="end"),{x:F,y:Z}}_updateCurrentPositionClass(F){const{overlayY:Z,originX:ie,originY:De}=F;let he;if(he="center"===Z?this._dir&&"rtl"===this._dir.value?"end"===ie?"left":"right":"start"===ie?"left":"right":"bottom"===Z&&"top"===De?"above":"below",he!==this._currentPosition){const ve=this._overlayRef;if(ve){const P=`${this._cssClassPrefix}-${xe}-`;ve.removePanelClass(P+this._currentPosition),ve.addPanelClass(P+he)}this._currentPosition=he}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const F=[];if(this._platformSupportsMouseEvents())F.push(["mouseleave",Z=>{const ie=Z.relatedTarget;(!ie||!this._overlayRef?.overlayElement.contains(ie))&&this.hide()}],["wheel",Z=>this._wheelListener(Z)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const Z=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};F.push(["touchend",Z],["touchcancel",Z])}this._addListeners(F),this._passiveListeners.push(...F)}_addListeners(F){F.forEach(([Z,ie])=>{this._elementRef.nativeElement.addEventListener(Z,ie,de)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(F){if(this._isTooltipVisible()){const Z=this._document.elementFromPoint(F.clientX,F.clientY),ie=this._elementRef.nativeElement;Z!==ie&&!ie.contains(Z)&&this.hide()}}_disableNativeGesturesIfNecessary(){const F=this.touchGestures;if("off"!==F){const Z=this._elementRef.nativeElement,ie=Z.style;("on"===F||"INPUT"!==Z.nodeName&&"TEXTAREA"!==Z.nodeName)&&(ie.userSelect=ie.msUserSelect=ie.webkitUserSelect=ie.MozUserSelect="none"),("on"===F||!Z.draggable)&&(ie.webkitUserDrag="none"),ie.touchAction="none",ie.webkitTapHighlightColor="transparent"}}}return X.\u0275fac=function(F){M.$Z()},X.\u0275dir=M.lG2({type:X,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),X})(),Ae=(()=>{class X extends Ce{constructor(F,Z,ie,De,he,ve,P,W,le,ce,fe,Be){super(F,Z,ie,De,he,ve,P,W,le,ce,fe,Be),this._tooltipComponent=ye}}return X.\u0275fac=function(F){return new(F||X)(M.Y36(r.aV),M.Y36(M.SBq),M.Y36(O.mF),M.Y36(M.s_b),M.Y36(M.R0b),M.Y36(q.t4),M.Y36(l.$s),M.Y36(l.tE),M.Y36(x),M.Y36(_e.Is,8),M.Y36(ae,8),M.Y36(t.K0))},X.\u0275dir=M.lG2({type:X,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[M.qOj]}),X})(),Oe=(()=>{class X{constructor(F,Z){this._changeDetectorRef=F,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new R.x,this._animationsDisabled="NoopAnimations"===Z}show(F){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},F)}hide(F){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},F)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:F}){(!F||!this._triggerElement.contains(F))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:F}){(F===this._showAnimation||F===this._hideAnimation)&&this._finalizeAnimation(F===this._showAnimation)}_finalizeAnimation(F){F?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(F){const Z=this._tooltip.nativeElement,ie=this._showAnimation,De=this._hideAnimation;if(Z.classList.remove(F?De:ie),Z.classList.add(F?ie:De),this._isVisible=F,F&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const he=getComputedStyle(Z);("0s"===he.getPropertyValue("animation-duration")||"none"===he.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}F&&this._onShow(),this._animationsDisabled&&(Z.classList.add("_mat-animation-noopable"),this._finalizeAnimation(F))}}return X.\u0275fac=function(F){return new(F||X)(M.Y36(M.sBO),M.Y36(M.QbO,8))},X.\u0275dir=M.lG2({type:X}),X})(),ye=(()=>{class X extends Oe{constructor(F,Z,ie){super(F,ie),this._breakpointObserver=Z,this._isHandset=this._breakpointObserver.observe(L.u3.Handset),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return X.\u0275fac=function(F){return new(F||X)(M.Y36(M.sBO),M.Y36(L.Yg),M.Y36(M.QbO,8))},X.\u0275cmp=M.Xpm({type:X,selectors:[["mat-tooltip-component"]],viewQuery:function(F,Z){if(1&F&&M.Gf(K,7),2&F){let ie;M.iGM(ie=M.CRH())&&(Z._tooltip=ie.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(F,Z){1&F&&M.NdJ("mouseleave",function(De){return Z._handleMouseLeave(De)}),2&F&&M.Udp("zoom",Z.isVisible()?1:null)},features:[M.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(F,Z){if(1&F&&(M.TgZ(0,"div",0,1),M.NdJ("animationend",function(De){return Z._handleAnimationEnd(De)}),M.ALo(2,"async"),M._uU(3),M.qZA()),2&F){let ie;M.ekj("mat-tooltip-handset",null==(ie=M.lcZ(2,4,Z._isHandset))?null:ie.matches),M.Q6J("ngClass",Z.tooltipClass),M.xp6(3),M.Oqu(Z.message)}},dependencies:[t.mk,t.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0}),X})(),Ee=(()=>{class X{}return X.\u0275fac=function(F){return new(F||X)},X.\u0275mod=M.oAB({type:X}),X.\u0275inj=M.cJS({providers:[D],imports:[l.rt,t.ez,r.U8,ne.BQ,ne.BQ,O.ZD]}),X})()}}]);
|