(self.webpackChunkangular=self.webpackChunkangular||[]).push([[179],{553:(xt,Ke,p)=>{"use strict";p.d(Ke,{N:()=>i});const i={production:!0,SSOAuth:!0}},9600:(xt,Ke,p)=>{"use strict";p.d(Ke,{T:()=>re});var i=p(6222),s=p(2792),m=p(3843),L=p(5879),f=p(2425),W=p(9515);let re=(()=>{var q;class ae{constructor(ne,he){this.toastrService=ne,this.translateService=he;let U=this.translateService.instant(m.h.PLEASE_TRY_AGAIN_LATER);this.defaultErrorMessage=this.translateService.instant(m.h.SOMETHING_WENT_WRONG)+" "+U,this.documentServiceUnavailableErrorMessage=this.translateService.instant(m.h.DOCUMENT_SERVICE_UNAVAILABLE)+" "+U}logAndReturnObservableErrorResponse(ne,he){return console.error(he+" error",ne),(0,i._)(ne||{error:{errors:[{errorMessage:this.defaultErrorMessage}]}})}hasError(ne,he){var U;return!(null==ne||null===(U=ne.error)||void 0===U||null===(U=U.errors)||void 0===U||!U.length)&&ne.error.errors.some($e=>(null==$e?void 0:$e.errorCode)===he)}getErrors(ne){let he=this.getErrorDetails(ne);return ae.getJoinedErrors(he)}handleErrorsAndToastr(ne,he){let U=this.getErrorDetails(ne);U=this.excludeErrors(U,he);let $e=ae.getJoinedErrors(U);this.toastrErrorMessage($e)}handleFormErrorsAndToastr(ne,he,U){let $e=this.handleFormErrorsAndReturn(ne,he,U);return this.toastrErrorMessage($e)}handleFormErrorsAndReturn(ne,he,U){if(ne.status===s.mm)return this.documentServiceUnavailableErrorMessage;let $e=this.getErrorDetails(ne);return $e=this.excludeErrors($e,U),$e.filter($=>he.controls[$.errorField]).forEach($=>he.controls[$.errorField].setErrors({invalid:$.errorMessage})),$e=$e.filter($=>!he.controls[$.errorField]),ae.getJoinedErrors($e)}excludeErrors(ne,he){return null!=he&&he.length?ne.filter(U=>U.errorCode&&!he.some($e=>$e===U.errorCode)):ne}toastrErrorMessage(ne){return ne?this.toastrService.error(ne,"",{enableHtml:!0}):null}getErrorDetails(ne){var he;const U=ne.error;let $e=[{errorMessage:this.defaultErrorMessage}];return null!=U&&null!==(he=U.errors)&&void 0!==he&&he.length&&($e=U.errors),$e}static getJoinedErrors(ne){return ne.filter(he=>he.errorMessage).map(he=>he.errorMessage).join(ae.ERROR_SEPARATOR)}checkOpenedBy(ne){ne&&this.toastrService.warning("Request is being worked on by "+ne)}}return(q=ae).ERROR_SEPARATOR="
",q.\u0275fac=function(ne){return new(ne||q)(L.LFG(f._W),L.LFG(W.sK))},q.\u0275prov=L.Yz7({token:q,factory:q.\u0275fac}),ae})()},5133:(xt,Ke,p)=>{"use strict";p.d(Ke,{B:()=>ae});var i=p(5125),s=p(6680),m=p(3778),L=p(2420),f=p(2413),W=p(5879),re=p(9862),q=p(9600);let ae=(()=>{var K;class ne{constructor(U,$e){this.http=U,this.errorService=$e,this.featuresSubject=new i.X(new Map),this.features$=this.featuresSubject.asObservable()}getFeatures(){return this.http.get(s.B.ROOT_FEATURE,m.bL).pipe((0,L.b)(U=>{this.featuresSubject.next(new Map(Object.entries(U)))}),(0,f.K)(this.handleError.bind(this)))}handleError(U){return this.errorService.logAndReturnObservableErrorResponse(U,ne.name)}}return(K=ne).FEATURE_CANCEL_ARCHIVED="CANCEL_ARCHIVED",K.FEATURE_USER_MANAGEMENT_INTEGRATION="USER_MANAGEMENT_INTEGRATION",K.FEATURE_CTC_SYNC_PARTY="CTC_SYNC_PARTY",K.FEATURE_DATA_PRODUCTS_ORDER="DATA_PRODUCTS_ORDER",K.FEATURE_DATA_PRODUCTS_SHIPMENT_MOVEMENT="DATA_PRODUCTS_SHIPMENT_MOVEMENT",K.\u0275fac=function(U){return new(U||K)(W.LFG(re.eN),W.LFG(q.T))},K.\u0275prov=W.Yz7({token:K,factory:K.\u0275fac,providedIn:"root"}),ne})()},421:(xt,Ke,p)=>{"use strict";p.d(Ke,{i:()=>ne});var i=p(9862),s=p(2079),m=p(2413),L=p(2561),f=p(6342),W=p(21),re=p(6680),q=p(3778),ae=p(5879),K=p(9600);let ne=(()=>{var he;class U{constructor($,ge){this.http=$,this.errorService=ge,this.inboxFilterSource=new s.xQ,this.inboxFilter$=this.inboxFilterSource.asObservable(),this.requestsPageSource=new s.xQ,this.requestsPageFilter$=this.requestsPageSource.asObservable(),this.archivePageSource=new s.xQ,this.archivePageFilter$=this.archivePageSource.asObservable(),this.automatedPageSource=new s.xQ,this.automatedPageFilter$=this.automatedPageSource.asObservable(),this.customerChangedSource=new s.xQ,this.customerChanged$=this.customerChangedSource.asObservable()}static showFilter($,ge){return this.shouldShowFilterForUrl($,ge)}static shouldShowFilterForUrl($,ge){const Ne=ge.endsWith(f.g.INBOX)||ge.includes(f.g.REQUESTS)||ge.endsWith(f.g.ARCHIVE)||ge.includes(f.g.AUTOMATED),ie=!ge.includes(f.g.DETAILS);return $===f.g.OPERATOR&&Ne&&ie}getFilter($,ge){const Ne=W.V.getFilter($,ge);return Ne?{...new L.w(ge),...Ne}:new L.w(ge)}getFilterValues($){const ge=(new i.LE).set("menuRequestContext",$);return this.http.get(re.B.ROOT_FILTER+"/getFilterData",{...q.bL,params:ge}).pipe((0,m.K)(this.handleError.bind(this)))}filterList($,ge,Ne){if(Ne&&W.V.setFilter($,ge,Ne),$===f.g.OPERATOR)switch(ge){case f.g.INBOX:this.inboxFilterSource.next(Ne||this.getFilter($,ge));break;case f.g.REQUESTS:this.requestsPageSource.next(Ne||this.getFilter($,ge));break;case f.g.ARCHIVE:this.archivePageSource.next(Ne||this.getFilter($,ge));break;case f.g.AUTOMATED:this.automatedPageSource.next(Ne||this.getFilter($,ge))}}customerChanged($,ge){this.customerChangedSource.next(this.getFilter($,ge))}applyFeedbackFiltering($,ge){const Ne=new L.w(ge,!1);Ne.feedback=!0,this.filterList($,ge,Ne)}isFiltered($){return""!==$.searchString||null!=$.dateFrom||null!=$.dateTo||$.extendedRequestKeys.length>0||$.stepNames.length>0||$.priorities.length>0||$.requestTypes.length>0||$.reasonCodesL1.length>0||$.requesters.length>0||$.involvedParties.length>0||$.requestingParties.length>0||$.handlerGroups.length>0||$.handlerFullNames.length>0||$.qualifiers.length>0||$.references.length>0||$.modesOfTransport.length>0||!0===$.overdue||!0===$.ok||!0===$.feedback||!0===$.hasEscalation||!0===$.due||!0===$.updated||$.originsList.length>0||$.destinationsList.length>0||$.lcc.length>0||!0===$.canceled||!0===$.closed||!0===$.open||$.requesterOrganization.length>0}saveUserFilter($){return this.http.post(re.B.ROOT_FILTER,$,q.bL).pipe((0,m.K)(this.handleError.bind(this)))}getUserFilterNames(){return this.http.get(re.B.ROOT_FILTER,q.bL).pipe((0,m.K)(this.handleError.bind(this)))}getOrderData($,ge){const Ne=(new i.LE).set("searchText",String($)).set("field",String(ge));return this.http.get(re.B.ROOT_FILTER+"/getOrderData",{...q.bL,params:Ne}).pipe((0,m.K)(this.handleError.bind(this)))}getRequestKeys($,ge){const Ne=(new i.LE).set("searchText",String($)).set("inbox",String(ge));return this.http.get(re.B.ROOT_FILTER+"/getRequestKeys",{...q.bL,params:Ne}).pipe((0,m.K)(this.handleError.bind(this)))}getQualifiers($,ge){const Ne=(new i.LE).set("searchText",String($)).set("inbox",String(ge));return this.http.get(re.B.ROOT_FILTER+"/getQualifiers",{...q.bL,params:Ne}).pipe((0,m.K)(this.handleError.bind(this)))}getUserFilterByName($,ge){return this.http.post(re.B.ROOT_FILTER+"/get",{filterName:$,menuRequestContext:ge},q.bL).pipe((0,m.K)(this.handleError.bind(this)))}deleteUserFilterByName($){return this.http.post(re.B.ROOT_FILTER+"/delete",$,q.bL).pipe((0,m.K)(this.handleError.bind(this)))}updateFilterByName($){return this.http.post(re.B.ROOT_FILTER+"/update",$,q.bL).pipe((0,m.K)(this.handleError.bind(this)))}handleError($){return this.errorService.logAndReturnObservableErrorResponse($,U.name)}}return(he=U).\u0275fac=function($){return new($||he)(ae.LFG(i.eN),ae.LFG(K.T))},he.\u0275prov=ae.Yz7({token:he,factory:he.\u0275fac}),U})()},2561:(xt,Ke,p)=>{"use strict";p.d(Ke,{w:()=>m});var i=p(6342),s=p(7567);let m=(()=>{var L;class f{constructor(re,q){this.searchString="",this.sortingParameter=i.g.CREATION_DATE,this.dateType=i.g.CREATION_DATE,this.extendedRequestKeys=[],this.stepNames=[],this.priorities=[],this.requestTypes=[],this.reasonCodesL1=[],this.requesters=[],this.involvedParties=[],this.requestingParties=[],this.handlerGroups=[],this.handlerFullNames=[],this.qualifiers=[],this.references=[],this.modesOfTransport=[],this.originsList=[],this.destinationsList=[],this.lcc=[],this.requesterOrganization=[],this.menuRequestContext=s.V[re.toUpperCase()],this.menuRequestContext===s.V.REQUESTS?(this.sortingParameter=i.g.DUE_TIME,this.open=null==q||q):(this.menuRequestContext===s.V.INBOX||this.menuRequestContext===s.V.AUTOMATED)&&(this.sortingParameter=i.g.CREATION_DATE,this.open=null==q||q)}}return(L=f).DUE="due",L.OVERDUE="overdue",L.UPDATED="updated",L.OK="ok",f})()},2615:(xt,Ke,p)=>{"use strict";var i;p.d(Ke,{V:()=>s});class s{}(i=s).ROOT="/api/",i.OPERATOR_ROOT=i.ROOT+"operator",i.ADMIN_ROOT=i.ROOT+"admin",i.AUTH_ROOT=i.ROOT+"auth",i.CURRENT_USER_DETAILS=i.AUTH_ROOT+"/currentUserDetails",i.SSO_LOGIN=i.AUTH_ROOT+"/saml/login",i.SSO_LOGOUT=i.AUTH_ROOT+"/saml/logout",i.LOCAL_LOGIN=i.ROOT+"login",i.LOCAL_LOGOUT=i.AUTH_ROOT+"/logout",i.ROOT_CONF=i.OPERATOR_ROOT+"/conf",i.OPERATORS_ADD=i.ADMIN_ROOT+"/operators/add",i.OPERATORS_DELETE=i.ADMIN_ROOT+"/operators/delete",i.OPERATION_GROUP_ADD=i.ADMIN_ROOT+"/operationGroup/add",i.REPORTING=i.ADMIN_ROOT+"/reporting",i.CTCSYNC_CTC_SYNC_TYPES=i.ADMIN_ROOT+"/ctcSyncTypes",i.CTCSYNC_TRIGGER_FULL_SYNC=i.ADMIN_ROOT+"/triggerFullSync",i.ADMINS_ADD=i.ADMIN_ROOT+"/admins/add"},6342:(xt,Ke,p)=>{"use strict";var i;p.d(Ke,{g:()=>s});class s{}(i=s).ENVIRONMENT_PRODUCTION="production",i.DOCUMENT_STATUS_VERIFIED="VERIFIED",i.STATUS_OPEN="OPEN",i.STATUS_CLOSED="CLOSED",i.STATUS_CANCELED="CANCELED",i.MESSAGE_TYPE_SENT="SENT",i.MESSAGE_TYPE_SENT_QM="SENT_QM",i.MESSAGE_TYPE_REMIND="REMIND",i.MESSAGE_TYPE_ESCALATE="ESCALATE",i.MESSAGE_TYPE_RECEIVED="RECEIVED",i.MESSAGE_TYPE_FILE_UPLOAD="FILE_UPLOAD",i.MESSAGE_TYPE_NOTIFICATION="NOTIFICATION",i.CREATION_DATE="creationDate",i.DUE_TIME="dueTime",i.SORTING_LABEL={[i.CREATION_DATE]:"Creation date:",[i.DUE_TIME]:"Due date:"},i.PRIORITIES={LO:"LOW",MED:"MEDIUM",HI:"HIGH"},i.CUSTOMER_CODE="customerCode",i.OPERATOR="operator",i.PUBLIC="public",i.LOGIN="login",i.NOTFOUND="notfound",i.ADMIN="admin",i.DEFAULT="",i.CREATE="create",i.ARCHIVE="archive",i.INBOX="inbox",i.REQUESTS="requests",i.AUTOMATED="automated",i.UPDATE="update",i.DETAILS="details",i.OPEN="open",i.CSV="csv",i.CREATE_MULTIPLE="createMultiple",i.DASHBOARD="dashboard",i.ADMIN_BOARD="board",i.CONF="conf",i.OPERATORS="operators",i.ADMINS="admins",i.REPORTING="reporting",i.CTC_SYNC="ctcsync",i.EXPORT_ALL="all",i.EXPORT_OPEN="open",i.EXPORT_ARCHIVED="archived",i.SOURCE_SYSTEM_OTM="OTM",i.SOURCE_SYSTEM_LOCAL_DATA_GENERATOR="LOCAL_DATA_GENERATOR",i.NO_LCC_ASSIGNED="NO LCC ASSIGNED",i.STEP_INBOX="Inbox",i.CANCEL_REQUEST="CANCEL",i.CLOSE_REQUEST="CLOSE",i.REMARK_LENGTH=1e3,i.REASON_CLOSED="CLOSED",i.REASON_CANCELED="CANCELED",i.CST_USER="cstUser",i.FILTER="Filter",i.AUTOCLOSE_MESSAGE_REQUIRED="Autoclose message is required",i.ROLE_CODE_OPERATOR="OPERATOR",i.TL="TL",i.LTL="LTL",i.AIR="AIR",i.VESSEL_CO="VESSEL-CO",i.VESSEL_CH="VESSEL-CH",i.AIR_MD="AIR_MD",i.FCL="FCL",i.LCL="LCL",i.INTRMDL="INTRMDL",i.VESSEL_NO="VESSEL-NO",i.DRAYAGE="DRAYAGE",i.EXPRESS="EXPRESS",i.BARGE="BARGE",i.RAIL="RAIL",i.PARCEL="PARCEL",i.DESCRIPTION_MAX_LENGTH=2e3,i.SIDEBAR_REQUEST_INFO="requestInfo",i.SIDEBAR_DOCUMENTS="documents",i.SIDEBAR_QUALIFIERS="qualifiers",i.EXTERNAL_PARTY_COMMENTS="externalPartyComments",i.MANUALLY_LINKED="MANUALLY LINKED",i.REQUIRED="REQUIRED",i.FEEDBACK_RATING={1:"Excellent",2:"Good",3:"Poor",4:"Terrible"},i.FEEDBACK_COLOR={1:"#07B383",2:"#83CD5D",3:"#FF922A",4:"#FC5358"},i.PUBLIC_FEEDBACK_LENGTH=4e3,i.RATING_LIST=[4,3,2,1],i.REASON_CODE_L1="Reason code",i.REQUEST_TYPE="Request Type",i.MULTIPLE="Multiple",i.PIPE_DELIMITER=" | ",i.ARROW_DELIMITER=" > ",i.NO_LOCATION_DATA="NO LOCATION INFO",i.MISSING="missing",i.FULL_SCREEN_TOAST="toast-top-full-width",i.DELETED_TRANSPORT_ORDER="(DELETED!)",i.REQUEST_HAS_DELETED_TRANSPORT_ORDERS="ORDER(S) AND/OR SHIPMENT(S) DELETED",i.SEND_MAIL="sendMail",i.REQUEST_SEARCH="requestSearch",i.ROLES="roles",i.CONFIRM="confirm",i.COPY="copy",i.EXPORT="export",i.CONFIRM_SAVE_AND_PROCEED="confirmSaveAndProceed",i.MULTIPLE_REQUEST_UPDATE_PREFIX="multipleUpdateModal_",i.SPINNER_GLOBAL="global",i.SPINNER_PERIOD="period",i.SPINNER_MULTIPLE="multiple",i.SPINNER_LIST="list",i.EXTERNAL_PARTY_COMMENT_TYPE={UPDATE:"Updated by",CANCEL:"Canceled by"},i.MARKED_AS_READ="Comment marked as read",i.INTERNAL_CONTACT_EMAIL_SUFFIX="@kuehne-nagel.com",i.DROPDOWN_TRUE={label:"Yes",value:!0},i.DROPDOWN_FALSE={label:"No",value:!1},i.CSV_TYPE_CREATE="CREATE",i.CSV_TYPE_UPDATE="UPDATE",i.SUBMIT="Submit",i.PROCESSING="Processing file(s)...",i.ADD_FILE="Add file",i.NO_VALUE_SELECTED="no value selected",i.EMPTY_TEAM="Empty team",i.EMPTY_LCC="Empty LCC",i.ZERO_WIDTH_SPACE="\u200b"},3778:(xt,Ke,p)=>{"use strict";p.d(Ke,{QO:()=>L,YS:()=>s,bL:()=>m});const s=new(p(9862).WM);s.append("Accept","application/json"),s.append("Content-Type","application/json");const m={headers:s},L={headers:s,responseType:"text"}},7479:(xt,Ke,p)=>{"use strict";p.d(Ke,{Z:()=>m});var i=p(6342),s=p(7700);class m{static nvls(f){return null==f?"":f}static compareByLocaleString(f,W){const re=m.nvls(f).toLocaleLowerCase(),q=m.nvls(W).toLocaleLowerCase();return re.localeCompare(q,void 0,{ignorePunctuation:!0})}static compareQualifierValues(f,W){return f.orderNo===W.orderNo?m.compareByLocaleString(f.name,W.name):f.orderNo?W.orderNo?f.orderNo-W.orderNo:-1:1}static isShipment(f){return"SH"===f.type}static showFeedbackMessageWithNewLineBreaks(f){return f?f.replace(/\n/g,"
"):""}static getEntitiesListWithMissingCurrentValue(f,W){if(null!=f&&f.length){const re=f.map(q=>q.name.toUpperCase());return W&&W.code&&-1===re.indexOf(W.name.toUpperCase())?f.concat(W):f}return W?[W]:[]}static autoFillIfSingleValue(f){return 1===f.length?f[0]:null}static getTextFromHtmlString(f){return(new DOMParser).parseFromString(f,"text/html").documentElement.innerText}static isOTMOrLocalDataGenerator(f){return f.sourceSystem==i.g.SOURCE_SYSTEM_OTM||f.sourceSystem==i.g.SOURCE_SYSTEM_LOCAL_DATA_GENERATOR}static unique(f){return f.filter((W,re,q)=>(null==W?void 0:W.trim())&&q.indexOf(W)===re)}static listOfRecipients(f){return[...new Set(f.map(W=>W.recipientEmailList.map(re=>re.email)).flat())]}static listOfActiveRecipients(f){return[...new Set(f.map(W=>W.recipientEmailList.filter(re=>!re.deleted).map(re=>re.email)).flat())]}static listOfRecipientsForInfoHover(f){const W=f.filter(ae=>ae.stepCode===s.u.STEP_CUSTOMER_REPLY).length>0,re=f.filter(ae=>this.isQMMessage(ae)).length>0;let q=f.reduce((ae,K)=>{let ne=W?s.u.STEP_CUSTOMER_REPLY:this.messageType(K);ae[ne]=ae[ne]||[];const he=K.recipientEmailList.map(U=>U.email);return ae[ne].push(...he),ae},Object.create(null));return this.buildInfoHover(q,W,re)}static isQMMessage(f){return f.stepCode===s.u.STEP_QM_SEND||f.stepCode===s.u.STEP_QM_REPLY}static buildInfoHover(f,W,re){return W?"Recipients: "+this.getRecipientsMessagesBasedOnKey(f,s.u.STEP_CUSTOMER_REPLY):(re?"Quality Approval: ":"Involved parties: ")+this.getRecipientsMessagesBasedOnKey(f,i.g.MESSAGE_TYPE_SENT)+"; Escalations: "+this.getRecipientsMessagesBasedOnKey(f,i.g.MESSAGE_TYPE_ESCALATE)}static messageType(f){return f.messageType==i.g.MESSAGE_TYPE_ESCALATE?i.g.MESSAGE_TYPE_ESCALATE:i.g.MESSAGE_TYPE_SENT}static getRecipientsMessagesBasedOnKey(f,W){return[...new Set(f[W])].join(",")}static splitToNewLines(f){return null==f?void 0:f.split("\n")}static calculateQualifierRow(f){let W=this.splitToNewLines(f);return W?W.length:1}static getRequesterFullNames(f,W,re){return[f].concat(W).filter(q=>q).map(q=>this.getRequesterDisplayName(q,re)).join(", ")}static getRequesterDisplayName(f,W){var re;const q=null===(re=f.email)||void 0===re?void 0:re.endsWith(i.g.INTERNAL_CONTACT_EMAIL_SUFFIX);return q&&!W||!q&&W?f.fullName:f.email}static getRequesterArchiveDisplayName(f,W){return(null==f?void 0:f.endsWith(i.g.INTERNAL_CONTACT_EMAIL_SUFFIX))?W:f}static selectText(f){if(f&&window.getSelection&&document.createRange){const W=window.getSelection(),re=document.createRange();re.selectNodeContents(f),W.removeAllRanges(),W.addRange(re)}}static showShortInfo(f){return f&&f.length?f.length>20?f.substr(0,20)+"...":f:""}static listNameCodesByName(f){return f?f.map(W=>W.name).join(", "):i.g.ZERO_WIDTH_SPACE}}},7567:(xt,Ke,p)=>{"use strict";p.d(Ke,{V:()=>i});var i=function(s){return s.INBOX="INBOX",s.REQUESTS="REQUESTS",s.AUTOMATED="AUTOMATED",s.ARCHIVE="ARCHIVE",s}(i||{})},2763:(xt,Ke,p)=>{"use strict";p.d(Ke,{l:()=>i});class i{constructor(m){this.name=m}}},7700:(xt,Ke,p)=>{"use strict";p.d(Ke,{u:()=>i});var i=function(s){return s.STEP_REQUEST_UPDATE="REQUEST_UPDATE",s.STEP_INVOLVED_PARTY="INVOLVED_PARTY",s.STEP_INVOLVED_PARTY_REPLY="INVOLVED_PARTY_REPLY",s.STEP_CUSTOMER_REPLY="CUSTOMER_REPLY",s.STEP_CUSTOMER_FEEDBACK="CUSTOMER_FEEDBACK",s.STEP_QM_REPLY="QM_REPLY",s.STEP_QM_SEND="QM_SEND",s}(i||{})},3843:(xt,Ke,p)=>{"use strict";p.d(Ke,{h:()=>i});let i=(()=>{var s;class m{}return(s=m).ARCHIVED_REQUEST_DATA_CANNOT_BE_READ="ARCHIVED_REQUEST_DATA_CANNOT_BE_READ",s.ARCHIVED_REQUEST_DATA_CANNOT_BE_WRITTEN="ARCHIVED_REQUEST_DATA_CANNOT_BE_WRITTEN",s.ARCHIVED_REQUEST_NOT_FOUND="ARCHIVED_REQUEST_NOT_FOUND",s.ARCHIVED_REQUEST_UPDATE_FAILED="ARCHIVED_REQUEST_UPDATE_FAILED",s.ARCHIVE_DATE_RANGE_EXCEEDED="ARCHIVE_DATE_RANGE_EXCEEDED",s.ARCHIVE_EXPORT_PERIOD_EXCEEDED="ARCHIVE_EXPORT_PERIOD_EXCEEDED",s.CAPA_DESCRIPTION_LENGTH_OUT_OF_RANGE="CAPA_DESCRIPTION_LENGTH_OUT_OF_RANGE",s.CLOSED_REQUEST_UPDATE_FAILED="CLOSED_REQUEST_UPDATE_FAILED",s.CONTACT_CREATION_FAIL_WITH_MISSING_INFORMATION="CONTACT_CREATION_FAIL_WITH_MISSING_INFORMATION",s.CONTACT_CREATION_WITH_EMAIL_FAIL_WITH_MISSING_INFORMATION="CONTACT_CREATION_WITH_EMAIL_FAIL_WITH_MISSING_INFORMATION",s.CONTACT_CREATION_WITH_USERNAME_FAIL_WITH_MISSING_INFORMATION="CONTACT_CREATION_WITH_USERNAME_FAIL_WITH_MISSING_INFORMATION",s.CONTACT_WITH_EMAIL_NOT_FOUND="CONTACT_WITH_EMAIL_NOT_FOUND",s.CONTACT_WITH_USERNAME_NOT_FOUND="CONTACT_WITH_USERNAME_NOT_FOUND",s.CSV_AUTO_DOC_UPLOAD_ENABLED="CSV_AUTO_DOC_UPLOAD_ENABLED",s.CSV_BOTH_AUTOCLOSE_CLOSE_NOT_ALLOWED="CSV_BOTH_AUTOCLOSE_CLOSE_NOT_ALLOWED",s.CSV_CONVERT_RESULT_FAILED="CSV_CONVERT_RESULT_FAILED",s.CSV_COULD_NOT_BE_CANCELLED="CSV_COULD_NOT_BE_CANCELLED",s.CSV_COULD_NOT_BE_CLOSED="CSV_COULD_NOT_BE_CLOSED",s.CSV_CREATE_FAILED="CSV_CREATE_FAILED",s.CSV_DESCRIPTION_UPDATE_NOT_ALLOWED="CSV_DESCRIPTION_UPDATE_NOT_ALLOWED",s.CSV_HANDLER_CANNOT_BE_FOUND="CSV_HANDLER_CANNOT_BE_FOUND",s.CSV_HANDLER_UPDATE_NOT_ALLOWED="CSV_HANDLER_UPDATE_NOT_ALLOWED",s.CSV_INCORRECT_FILE="CSV_INCORRECT_FILE",s.CSV_INVALID_REQUEST_CODE="CSV_INVALID_REQUEST_CODE",s.CSV_INVOLVED_PARTY_UPDATE_NOT_ALLOWED="CSV_INVOLVED_PARTY_UPDATE_NOT_ALLOWED",s.CSV_LCC_CANNOT_BE_FOUND="CSV_LCC_CANNOT_BE_FOUND",s.CSV_LCC_UPDATE_NOT_ALLOWED="CSV_LCC_UPDATE_NOT_ALLOWED",s.CSV_PROACTIVE_UPDATE_NOT_ALLOWED="CSV_PROACTIVE_UPDATE_NOT_ALLOWED",s.CSV_REASON_CODE_CANNOT_BE_FOUND="CSV_REASON_CODE_CANNOT_BE_FOUND",s.CSV_REFERENCES_CANNOT_BE_UPDATED="CSV_REFERENCES_CANNOT_BE_UPDATED",s.CSV_REQUESTING_PARTY_CANNOT_BE_FOUND="CSV_REQUESTING_PARTY_CANNOT_BE_FOUND",s.CSV_REQUESTING_PARTY_UPDATE_NOT_ALLOWED="CSV_REQUESTING_PARTY_UPDATE_NOT_ALLOWED",s.CSV_ROW_UPDATE_FAILED="CSV_ROW_UPDATE_FAILED",s.CSV_SEND_TO_INVOLVED_PARTIES_NOT_ALLOWED="CSV_SEND_TO_INVOLVED_PARTIES_NOT_ALLOWED",s.CSV_UNKNOWN_OPERATION="CSV_UNKNOWN_OPERATION",s.CSV_UPDATE_FAILED="CSV_UPDATE_FAILED",s.CSV_UPLOAD_EMPTY_FILE="CSV_UPLOAD_EMPTY_FILE",s.CSV_UPLOAD_MAX_REQUESTS_EXCEEDED="CSV_UPLOAD_MAX_REQUESTS_EXCEEDED",s.DATE_FROM_AFTER_DATE_TO="DATE_FROM_AFTER_DATE_TO",s.DATE_SELECT_BOTH="DATE_SELECT_BOTH",s.DOCUMENTS_STILL_IN_PROGRESS_REQUEST_SAVING_FAILED="DOCUMENTS_STILL_IN_PROGRESS_REQUEST_SAVING_FAILED",s.DOCUMENTS_UPLOADED_TO_ORDERS_SHIPMENTS="DOCUMENTS_UPLOADED_TO_ORDERS_SHIPMENTS",s.DOCUMENT_INFORMATION_NOT_AVAILABLE="DOCUMENT_INFORMATION_NOT_AVAILABLE",s.DOCUMENT_MERGE_UNSUPPORTED_EXTENSION="DOCUMENT_MERGE_UNSUPPORTED_EXTENSION",s.DOCUMENT_NOT_FOUND="DOCUMENT_NOT_FOUND",s.DOCUMENT_NOT_SELECTED="DOCUMENT_NOT_SELECTED",s.DOCUMENT_SELECT_AT_LEAST_TWO="DOCUMENT_SELECT_AT_LEAST_TWO",s.DOCUMENT_SERVICE_UNAVAILABLE="DOCUMENT_SERVICE_UNAVAILABLE",s.DOCUMENT_UPLOAD_MAX_NUMBER_OF_FILES_EXCEEDED="DOCUMENT_UPLOAD_MAX_NUMBER_OF_FILES_EXCEEDED",s.DOCUMENT_VERIFY_ERROR="DOCUMENT_VERIFY_ERROR",s.EMAIL_ADDRESS_EMPTY="EMAIL_ADDRESS_EMPTY",s.EMAIL_ADDRESS_INVALID="EMAIL_ADDRESS_INVALID",s.EMAIL_BODY_EMPTY="EMAIL_BODY_EMPTY",s.EMAIL_BODY_MAX_LENGTH_EXCEEDED="EMAIL_BODY_MAX_LENGTH_EXCEEDED",s.EMAIL_INVALID_EMAIL_FIELDS="EMAIL_INVALID_EMAIL_FIELDS",s.EMAIL_NO_MESSAGES="EMAIL_NO_MESSAGES",s.EMAIL_REPLY_THANK_YOU="EMAIL_REPLY_THANK_YOU",s.EMAIL_SUBJECT_EMPTY="EMAIL_SUBJECT_EMPTY",s.EXPORT_UNKNOWN_TYPE="EXPORT_UNKNOWN_TYPE",s.FEEDBACK_ALREADY_GIVEN="FEEDBACK_ALREADY_GIVEN",s.FEEDBACK_CANNOT_BE_PROVIDED="FEEDBACK_CANNOT_BE_PROVIDED",s.FEEDBACK_EMAIL_EMPTY="FEEDBACK_EMAIL_EMPTY",s.FEEDBACK_MESSAGE_MAX_LENGTH_EXCEEDED="FEEDBACK_MESSAGE_MAX_LENGTH_EXCEEDED",s.FEEDBACK_RATING_EMPTY="FEEDBACK_RATING_EMPTY",s.FEEDBACK_RATING_INVALID="FEEDBACK_RATING_INVALID",s.FEEDBACK_STATUS_CANNOT_BE_CHANGED="FEEDBACK_STATUS_CANNOT_BE_CHANGED",s.FEEDBACK_STATUS_CHANGED="FEEDBACK_STATUS_CHANGED",s.FEEDBACK_THANK_YOU="FEEDBACK_THANK_YOU",s.FLOW_CONFIGURATION_MISSING="FLOW_CONFIGURATION_MISSING",s.FLOW_MISSING_FOR_CUSTOMER="FLOW_MISSING_FOR_CUSTOMER",s.GET_QUALIFIER_VALUES_FAILED="GET_QUALIFIER_VALUES_FAILED",s.JSON_PROCESSING_FAILED="JSON_PROCESSING_FAILED",s.LCC_MANAGER_EMAIL_MISSING="LCC_MANAGER_EMAIL_MISSING",s.MULTIPLE_REQUEST_UPLOAD_CREATED_REQUEST="MULTIPLE_REQUEST_UPLOAD_CREATED_REQUEST",s.MULTIPLE_REQUEST_UPLOAD_DESCRIPTION_NOT_FOUND="MULTIPLE_REQUEST_UPLOAD_DESCRIPTION_NOT_FOUND",s.MULTIPLE_REQUEST_UPLOAD_NUMBER_OF_REFERENCES_EMPTY="MULTIPLE_REQUEST_UPLOAD_NUMBER_OF_REFERENCES_EMPTY",s.MULTIPLE_REQUEST_UPLOAD_NUMBER_OF_REQUESTS_EMPTY="MULTIPLE_REQUEST_UPLOAD_NUMBER_OF_REQUESTS_EMPTY",s.MULTIPLE_REQUEST_UPLOAD_PRIORITY_NOT_FOUND="MULTIPLE_REQUEST_UPLOAD_PRIORITY_NOT_FOUND",s.MULTIPLE_REQUEST_UPLOAD_REFERENCES_PROCESSED="MULTIPLE_REQUEST_UPLOAD_REFERENCES_PROCESSED",s.MULTIPLE_REQUEST_UPLOAD_REQUEST_TYPE_NOT_FOUND="MULTIPLE_REQUEST_UPLOAD_REQUEST_TYPE_NOT_FOUND",s.NEXT_STEP_NOT_FOUND="NEXT_STEP_NOT_FOUND",s.PDF_GENERATION_FAILED="PDF_GENERATION_FAILED",s.PLEASE_TRY_AGAIN_LATER="PLEASE_TRY_AGAIN_LATER",s.PRIORITY_CONFIGURATION_MISSING="PRIORITY_CONFIGURATION_MISSING",s.PUBLIC_HASH_INVALID="PUBLIC_HASH_INVALID",s.PUBLIC_LINK_DATA_NOT_AVAILABLE="PUBLIC_LINK_DATA_NOT_AVAILABLE",s.PUBLIC_LINK_INVALID="PUBLIC_LINK_INVALID",s.PUBLIC_LINK_INVALID_PARENT_MESSAGE_NULL="PUBLIC_LINK_INVALID_PARENT_MESSAGE_NULL",s.PUBLIC_LINK_INVALID_REQUEST_CUSTOMER_CODE_NULL="PUBLIC_LINK_INVALID_REQUEST_CUSTOMER_CODE_NULL",s.QUALIFIERS_REQUIRED_MISSING="QUALIFIERS_REQUIRED_MISSING",s.QUALIFIERS_SAVED_SUCCESSFULLY="QUALIFIERS_SAVED_SUCCESSFULLY",s.QUALIFIERS_UNKNOWN="QUALIFIERS_UNKNOWN",s.QUALIFIER_IS_REQUIRED="QUALIFIER_IS_REQUIRED",s.REASON_CODES_MISSING_FOR_CUSTOMER="REASON_CODES_MISSING_FOR_CUSTOMER",s.REPORTING_CORRECTIVE_ACTION_LENGTH_EXCEEDED="REPORTING_CORRECTIVE_ACTION_LENGTH_EXCEEDED",s.REPORTING_FAILED="REPORTING_FAILED",s.REPORTING_REPLY_LENGTH_EXCEEDED="REPORTING_REPLY_LENGTH_EXCEEDED",s.REQUEST_ALREADY_CANCELED="REQUEST_ALREADY_CANCELED",s.REQUEST_ALREADY_CLOSED_OR_CANCELED="REQUEST_ALREADY_CLOSED_OR_CANCELED",s.REQUEST_ARCHIVING_FAILED="REQUEST_ARCHIVING_FAILED",s.REQUEST_ASSIGN_LCC_FAILED="REQUEST_ASSIGN_LCC_FAILED",s.REQUEST_AUTOCLOSE_MESSAGE_EMPTY="REQUEST_AUTOCLOSE_MESSAGE_EMPTY",s.REQUEST_AUTOCLOSE_NOT_ALLOWED="REQUEST_AUTOCLOSE_NOT_ALLOWED",s.REQUEST_CALCULATE_END_DATE_FAILED="REQUEST_CALCULATE_END_DATE_FAILED",s.REQUEST_CANCELLING_FAILED="REQUEST_CANCELLING_FAILED",s.REQUEST_CANNOT_BE_AUTOCLOSED="REQUEST_CANNOT_BE_AUTOCLOSED",s.REQUEST_DESCRIPTION_EMPTY="REQUEST_DESCRIPTION_EMPTY",s.REQUEST_DESCRIPTION_LENGTH_OUT_OF_RANGE="REQUEST_DESCRIPTION_LENGTH_OUT_OF_RANGE",s.REQUEST_DESCRIPTION_MAX_LENGTH_EXCEEDED="REQUEST_DESCRIPTION_MAX_LENGTH_EXCEEDED",s.REQUEST_DESCRIPTION_PATTERN="REQUEST_DESCRIPTION_PATTERN",s.REQUEST_DIRTY="REQUEST_DIRTY",s.REQUEST_DUPLICATE="REQUEST_DUPLICATE",s.REQUEST_GET_REQUEST_HISTORY_FAILED="REQUEST_GET_REQUEST_HISTORY_FAILED",s.REQUEST_HANDLER_EMAIL_INCORRECT="REQUEST_HANDLER_EMAIL_INCORRECT",s.REQUEST_HANDLER_EMPTY="REQUEST_HANDLER_EMPTY",s.REQUEST_HANDLER_GROUP_INCORRECT="REQUEST_HANDLER_GROUP_INCORRECT",s.REQUEST_INVOLVED_PARTIES_DUPLICATED="REQUEST_INVOLVED_PARTIES_DUPLICATED",s.REQUEST_INVOLVED_PARTIES_INVALID="REQUEST_INVOLVED_PARTIES_INVALID",s.REQUEST_INVOLVED_PARTY_EMPTY="REQUEST_INVOLVED_PARTY_EMPTY",s.REQUEST_IS_ARCHIVED="REQUEST_IS_ARCHIVED",s.REQUEST_IS_CANCELLED="REQUEST_IS_CANCELLED",s.REQUEST_IS_CLOSED="REQUEST_IS_CLOSED",s.REQUEST_LCC_EMPTY="REQUEST_LCC_EMPTY",s.REQUEST_LCC_INCORRECT="REQUEST_LCC_INCORRECT",s.REQUEST_NOT_FOUND="REQUEST_NOT_FOUND",s.REQUEST_PRIORITY_EMPTY="REQUEST_PRIORITY_EMPTY",s.REQUEST_PRIORITY_INCORRECT="REQUEST_PRIORITY_INCORRECT",s.REQUEST_PROACTIVE_EMPTY="REQUEST_PROACTIVE_EMPTY",s.REQUEST_REASON_CODES_INCORRECT="REQUEST_REASON_CODES_INCORRECT",s.REQUEST_REASON_CODE_EMPTY="REQUEST_REASON_CODE_EMPTY",s.REQUEST_REFERENCES_INVALID="REQUEST_REFERENCES_INVALID",s.REQUEST_REFERENCES_TOO_MANY="REQUEST_REFERENCES_TOO_MANY",s.REQUEST_REQUESTING_PARTY_DUPLICATED="REQUEST_REQUESTING_PARTY_DUPLICATED",s.REQUEST_REQUESTING_PARTY_EMPTY="REQUEST_REQUESTING_PARTY_EMPTY",s.REQUEST_REQUESTING_PARTY_INCORRECT="REQUEST_REQUESTING_PARTY_INCORRECT",s.REQUEST_REQUEST_TYPE_EMPTY="REQUEST_REQUEST_TYPE_EMPTY",s.REQUEST_REQUEST_TYPE_INCORRECT="REQUEST_REQUEST_TYPE_INCORRECT",s.REQUEST_ROOT_CAUSE_CATEGORY_EMPTY="REQUEST_ROOT_CAUSE_CATEGORY_EMPTY",s.REQUEST_ROOT_CAUSE_CATEGORY_INCORRECT="REQUEST_ROOT_CAUSE_CATEGORY_INCORRECT",s.REQUEST_ROOT_CAUSE_EMPTY="REQUEST_ROOT_CAUSE_EMPTY",s.REQUEST_ROOT_CAUSE_PARTY_INCORRECT="REQUEST_ROOT_CAUSE_PARTY_INCORRECT",s.REQUEST_UPDATED="REQUEST_UPDATED",s.REQUEST_WITH_REPLIES_CANNOT_BE_AUTOCLOSED="REQUEST_WITH_REPLIES_CANNOT_BE_AUTOCLOSED",s.RESPONSIBLE_INVOLVED_PARTY_NOT_FOUND="RESPONSIBLE_INVOLVED_PARTY_NOT_FOUND",s.ROOT_CAUSE_DESCRIPTION_LENGTH_OUT_OF_RANGE="ROOT_CAUSE_DESCRIPTION_LENGTH_OUT_OF_RANGE",s.SAVE_QUALIFIER_VALUES_FAILED="SAVE_QUALIFIER_VALUES_FAILED",s.SEND_MAIL_ERROR_PLEASE_TRY_AGAIN_LATER="SEND_MAIL_ERROR_PLEASE_TRY_AGAIN_LATER",s.SOMETHING_WENT_WRONG="SOMETHING_WENT_WRONG",s.TEMPLATE_ERROR="TEMPLATE_ERROR",s.TEMPLATE_NOT_FOUND="TEMPLATE_NOT_FOUND",s.UNSUPPORTED_RECIPIENT_TYPE="UNSUPPORTED_RECIPIENT_TYPE",s.WORKDAY_CONFIGURATION_MISSING="WORKDAY_CONFIGURATION_MISSING",s.WRONG_INVOLVED_PARTIES="WRONG_INVOLVED_PARTIES",m})()},5701:(xt,Ke,p)=>{"use strict";var i=p(6593),s=p(5879),m=p(553),L=p(6825);function W(C){return new s.vHH(3e3,!1)}function ye(C){switch(C.length){case 0:return new L.ZN;case 1:return C[0];default:return new L.ZE(C)}}function Fe(C,c,u=new Map,d=new Map){const h=[],Y=[];let pe=-1,Pe=null;if(c.forEach(ct=>{const Tt=ct.get("offset"),dn=Tt==pe,rn=dn&&Pe||new Map;ct.forEach((In,Mn)=>{let Sn=Mn,jn=In;if("offset"!==Mn)switch(Sn=C.normalizePropertyName(Sn,h),jn){case L.k1:jn=u.get(Mn);break;case L.l3:jn=d.get(Mn);break;default:jn=C.normalizeStyleValue(Mn,Sn,jn,h)}rn.set(Sn,jn)}),dn||Y.push(rn),Pe=rn,pe=Tt}),h.length)throw function _t(C){return new s.vHH(3502,!1)}();return Y}function Je(C,c,u,d){switch(c){case"start":C.onStart(()=>d(u&&ht(u,"start",C)));break;case"done":C.onDone(()=>d(u&&ht(u,"done",C)));break;case"destroy":C.onDestroy(()=>d(u&&ht(u,"destroy",C)))}}function ht(C,c,u){const d=u.totalTime,Y=vt(C.element,C.triggerName,C.fromState,C.toState,c||C.phaseName,null==d?C.totalTime:d,!!u.disabled),pe=C._data;return null!=pe&&(Y._data=pe),Y}function vt(C,c,u,d,h="",Y=0,pe){return{element:C,triggerName:c,fromState:u,toState:d,phaseName:h,totalTime:Y,disabled:!!pe}}function At(C,c,u){let d=C.get(c);return d||C.set(c,d=u),d}function Yt(C){const c=C.indexOf(":");return[C.substring(1,c),C.slice(c+1)]}const on=(()=>typeof document>"u"?null:document.documentElement)();function nn(C){const c=C.parentNode||C.host||null;return c===on?null:c}let Ut=null,Rn=!1;function z(C,c){for(;c;){if(c===C)return!0;c=nn(c)}return!1}function Ae(C,c,u){if(u)return Array.from(C.querySelectorAll(c));const d=C.querySelector(c);return d?[d]:[]}let me=(()=>{var C;class c{validateStyleProperty(d){return function Pn(C){Ut||(Ut=function tt(){return typeof document<"u"?document.body:null}()||{},Rn=!!Ut.style&&"WebkitAppearance"in Ut.style);let c=!0;return Ut.style&&!function gn(C){return"ebkit"==C.substring(1,6)}(C)&&(c=C in Ut.style,!c&&Rn&&(c="Webkit"+C.charAt(0).toUpperCase()+C.slice(1)in Ut.style)),c}(d)}matchesElement(d,h){return!1}containsElement(d,h){return z(d,h)}getParentElement(d){return nn(d)}query(d,h,Y){return Ae(d,h,Y)}computeStyle(d,h,Y){return Y||""}animate(d,h,Y,pe,Pe,ct=[],Tt){return new L.ZN(Y,pe)}}return(C=c).\u0275fac=function(d){return new(d||C)},C.\u0275prov=s.Yz7({token:C,factory:C.\u0275fac}),c})(),Ye=(()=>{class c{}return c.NOOP=new me,c})();const St=1e3,Wt="ng-enter",Xt="ng-leave",Mt="ng-trigger",vn=".ng-trigger",fn="ng-animating",pn=".ng-animating";function En(C){if("number"==typeof C)return C;const c=C.match(/^(-?[\.\d]+)(m?s)/);return!c||c.length<2?0:un(parseFloat(c[1]),c[2])}function un(C,c){return"s"===c?C*St:C}function Kn(C,c,u){return C.hasOwnProperty("duration")?C:function mt(C,c,u){let h,Y=0,pe="";if("string"==typeof C){const Pe=C.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Pe)return c.push(W()),{duration:0,delay:0,easing:""};h=un(parseFloat(Pe[1]),Pe[2]);const ct=Pe[3];null!=ct&&(Y=un(parseFloat(ct),Pe[4]));const Tt=Pe[5];Tt&&(pe=Tt)}else h=C;if(!u){let Pe=!1,ct=c.length;h<0&&(c.push(function re(){return new s.vHH(3100,!1)}()),Pe=!0),Y<0&&(c.push(function q(){return new s.vHH(3101,!1)}()),Pe=!0),Pe&&c.splice(ct,0,W())}return{duration:h,delay:Y,easing:pe}}(C,c,u)}function Nt(C,c={}){return Object.keys(C).forEach(u=>{c[u]=C[u]}),c}function kt(C){const c=new Map;return Object.keys(C).forEach(u=>{c.set(u,C[u])}),c}function en(C,c=new Map,u){if(u)for(let[d,h]of u)c.set(d,h);for(let[d,h]of C)c.set(d,h);return c}function mn(C,c,u){c.forEach((d,h)=>{const Y=le(h);u&&!u.has(h)&&u.set(h,C.style[Y]),C.style[Y]=d})}function Xn(C,c){c.forEach((u,d)=>{const h=le(d);C.style[h]=""})}function Bn(C){return Array.isArray(C)?1==C.length?C[0]:(0,L.vP)(C):C}const ve=new RegExp("{{\\s*(.+?)\\s*}}","g");function Ee(C){let c=[];if("string"==typeof C){let u;for(;u=ve.exec(C);)c.push(u[1]);ve.lastIndex=0}return c}function de(C,c,u){const d=C.toString(),h=d.replace(ve,(Y,pe)=>{let Pe=c[pe];return null==Pe&&(u.push(function K(C){return new s.vHH(3003,!1)}()),Pe=""),Pe.toString()});return h==d?C:h}function G(C){const c=[];let u=C.next();for(;!u.done;)c.push(u.value),u=C.next();return c}const We=/-+([a-z0-9])/g;function le(C){return C.replace(We,(...c)=>c[1].toUpperCase())}function H(C,c,u){switch(c.type){case 7:return C.visitTrigger(c,u);case 0:return C.visitState(c,u);case 1:return C.visitTransition(c,u);case 2:return C.visitSequence(c,u);case 3:return C.visitGroup(c,u);case 4:return C.visitAnimate(c,u);case 5:return C.visitKeyframes(c,u);case 6:return C.visitStyle(c,u);case 8:return C.visitReference(c,u);case 9:return C.visitAnimateChild(c,u);case 10:return C.visitAnimateRef(c,u);case 11:return C.visitQuery(c,u);case 12:return C.visitStagger(c,u);default:throw function ne(C){return new s.vHH(3004,!1)}()}}function Be(C,c){return window.getComputedStyle(C)[c]}const Gt="*";function Pt(C,c){const u=[];return"string"==typeof C?C.split(/\s*,\s*/).forEach(d=>function Vn(C,c,u){if(":"==C[0]){const ct=function Tn(C,c){switch(C){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(u,d)=>parseFloat(d)>parseFloat(u);case":decrement":return(u,d)=>parseFloat(d) *"}}(C,u);if("function"==typeof ct)return void c.push(ct);C=ct}const d=C.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==d||d.length<4)return u.push(function te(C){return new s.vHH(3015,!1)}()),c;const h=d[1],Y=d[2],pe=d[3];c.push(ri(h,pe));"<"==Y[0]&&!(h==Gt&&pe==Gt)&&c.push(ri(pe,h))}(d,u,c)):u.push(C),u}const Qn=new Set(["true","1"]),xi=new Set(["false","0"]);function ri(C,c){const u=Qn.has(C)||xi.has(C),d=Qn.has(c)||xi.has(c);return(h,Y)=>{let pe=C==Gt||C==h,Pe=c==Gt||c==Y;return!pe&&u&&"boolean"==typeof h&&(pe=h?Qn.has(C):xi.has(C)),!Pe&&d&&"boolean"==typeof Y&&(Pe=Y?Qn.has(c):xi.has(c)),pe&&Pe}}const $i=new RegExp("s*:selfs*,?","g");function Ii(C,c,u,d){return new di(C).build(c,u,d)}class di{constructor(c){this._driver=c}build(c,u,d){const h=new Ze(u);return this._resetContextStyleTimingState(h),H(this,Bn(c),h)}_resetContextStyleTimingState(c){c.currentQuerySelector="",c.collectedStyles=new Map,c.collectedStyles.set("",new Map),c.currentTime=0}visitTrigger(c,u){let d=u.queryCount=0,h=u.depCount=0;const Y=[],pe=[];return"@"==c.name.charAt(0)&&u.errors.push(function U(){return new s.vHH(3006,!1)}()),c.definitions.forEach(Pe=>{if(this._resetContextStyleTimingState(u),0==Pe.type){const ct=Pe,Tt=ct.name;Tt.toString().split(/\s*,\s*/).forEach(dn=>{ct.name=dn,Y.push(this.visitState(ct,u))}),ct.name=Tt}else if(1==Pe.type){const ct=this.visitTransition(Pe,u);d+=ct.queryCount,h+=ct.depCount,pe.push(ct)}else u.errors.push(function $e(){return new s.vHH(3007,!1)}())}),{type:7,name:c.name,states:Y,transitions:pe,queryCount:d,depCount:h,options:null}}visitState(c,u){const d=this.visitStyle(c.styles,u),h=c.options&&c.options.params||null;if(d.containsDynamicStyles){const Y=new Set,pe=h||{};d.styles.forEach(Pe=>{Pe instanceof Map&&Pe.forEach(ct=>{Ee(ct).forEach(Tt=>{pe.hasOwnProperty(Tt)||Y.add(Tt)})})}),Y.size&&(G(Y.values()),u.errors.push(function $(C,c){return new s.vHH(3008,!1)}()))}return{type:0,name:c.name,style:d,options:h?{params:h}:null}}visitTransition(c,u){u.queryCount=0,u.depCount=0;const d=H(this,Bn(c.animation),u);return{type:1,matchers:Pt(c.expr,u.errors),animation:d,queryCount:u.queryCount,depCount:u.depCount,options:E(c.options)}}visitSequence(c,u){return{type:2,steps:c.steps.map(d=>H(this,d,u)),options:E(c.options)}}visitGroup(c,u){const d=u.currentTime;let h=0;const Y=c.steps.map(pe=>{u.currentTime=d;const Pe=H(this,pe,u);return h=Math.max(h,u.currentTime),Pe});return u.currentTime=h,{type:3,steps:Y,options:E(c.options)}}visitAnimate(c,u){const d=function it(C,c){if(C.hasOwnProperty("duration"))return C;if("number"==typeof C)return j(Kn(C,c).duration,0,"");const u=C;if(u.split(/\s+/).some(Y=>"{"==Y.charAt(0)&&"{"==Y.charAt(1))){const Y=j(0,0,"");return Y.dynamic=!0,Y.strValue=u,Y}const h=Kn(u,c);return j(h.duration,h.delay,h.easing)}(c.timings,u.errors);u.currentAnimateTimings=d;let h,Y=c.styles?c.styles:(0,L.oB)({});if(5==Y.type)h=this.visitKeyframes(Y,u);else{let pe=c.styles,Pe=!1;if(!pe){Pe=!0;const Tt={};d.easing&&(Tt.easing=d.easing),pe=(0,L.oB)(Tt)}u.currentTime+=d.duration+d.delay;const ct=this.visitStyle(pe,u);ct.isEmptyStep=Pe,h=ct}return u.currentAnimateTimings=null,{type:4,timings:d,style:h,options:null}}visitStyle(c,u){const d=this._makeStyleAst(c,u);return this._validateStyleAst(d,u),d}_makeStyleAst(c,u){const d=[],h=Array.isArray(c.styles)?c.styles:[c.styles];for(let Pe of h)"string"==typeof Pe?Pe===L.l3?d.push(Pe):u.errors.push(new s.vHH(3002,!1)):d.push(kt(Pe));let Y=!1,pe=null;return d.forEach(Pe=>{if(Pe instanceof Map&&(Pe.has("easing")&&(pe=Pe.get("easing"),Pe.delete("easing")),!Y))for(let ct of Pe.values())if(ct.toString().indexOf("{{")>=0){Y=!0;break}}),{type:6,styles:d,easing:pe,offset:c.offset,containsDynamicStyles:Y,options:null}}_validateStyleAst(c,u){const d=u.currentAnimateTimings;let h=u.currentTime,Y=u.currentTime;d&&Y>0&&(Y-=d.duration+d.delay),c.styles.forEach(pe=>{"string"!=typeof pe&&pe.forEach((Pe,ct)=>{const Tt=u.collectedStyles.get(u.currentQuerySelector),dn=Tt.get(ct);let rn=!0;dn&&(Y!=h&&Y>=dn.startTime&&h<=dn.endTime&&(u.errors.push(function ie(C,c,u,d,h){return new s.vHH(3010,!1)}()),rn=!1),Y=dn.startTime),rn&&Tt.set(ct,{startTime:Y,endTime:h}),u.options&&function gt(C,c,u){const d=c.params||{},h=Ee(C);h.length&&h.forEach(Y=>{d.hasOwnProperty(Y)||u.push(function ae(C){return new s.vHH(3001,!1)}())})}(Pe,u.options,u.errors)})})}visitKeyframes(c,u){const d={type:5,styles:[],options:null};if(!u.currentAnimateTimings)return u.errors.push(function ee(){return new s.vHH(3011,!1)}()),d;let Y=0;const pe=[];let Pe=!1,ct=!1,Tt=0;const dn=c.steps.map(Ni=>{const Li=this._makeStyleAst(Ni,u);let Rr=null!=Li.offset?Li.offset:function Dt(C){if("string"==typeof C)return null;let c=null;if(Array.isArray(C))C.forEach(u=>{if(u instanceof Map&&u.has("offset")){const d=u;c=parseFloat(d.get("offset")),d.delete("offset")}});else if(C instanceof Map&&C.has("offset")){const u=C;c=parseFloat(u.get("offset")),u.delete("offset")}return c}(Li.styles),tr=0;return null!=Rr&&(Y++,tr=Li.offset=Rr),ct=ct||tr<0||tr>1,Pe=Pe||tr0&&Y{const Rr=In>0?Li==Mn?1:In*Li:pe[Li],tr=Rr*Fi;u.currentTime=Sn+jn.delay+tr,jn.duration=tr,this._validateStyleAst(Ni,u),Ni.offset=Rr,d.styles.push(Ni)}),d}visitReference(c,u){return{type:8,animation:H(this,Bn(c.animation),u),options:E(c.options)}}visitAnimateChild(c,u){return u.depCount++,{type:9,options:E(c.options)}}visitAnimateRef(c,u){return{type:10,animation:this.visitReference(c.animation,u),options:E(c.options)}}visitQuery(c,u){const d=u.currentQuerySelector,h=c.options||{};u.queryCount++,u.currentQuery=c;const[Y,pe]=function Oi(C){const c=!!C.split(/\s*,\s*/).find(u=>":self"==u);return c&&(C=C.replace($i,"")),C=C.replace(/@\*/g,vn).replace(/@\w+/g,u=>vn+"-"+u.slice(1)).replace(/:animating/g,pn),[C,c]}(c.selector);u.currentQuerySelector=d.length?d+" "+Y:Y,At(u.collectedStyles,u.currentQuerySelector,new Map);const Pe=H(this,Bn(c.animation),u);return u.currentQuery=null,u.currentQuerySelector=d,{type:11,selector:Y,limit:h.limit||0,optional:!!h.optional,includeSelf:pe,animation:Pe,originalSelector:c.selector,options:E(c.options)}}visitStagger(c,u){u.currentQuery||u.errors.push(function we(){return new s.vHH(3013,!1)}());const d="full"===c.timings?{duration:0,delay:0,easing:"full"}:Kn(c.timings,u.errors,!0);return{type:12,animation:H(this,Bn(c.animation),u),timings:d,options:null}}}class Ze{constructor(c){this.errors=c,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function E(C){return C?(C=Nt(C)).params&&(C.params=function Wi(C){return C?Nt(C):null}(C.params)):C={},C}function j(C,c,u){return{duration:C,delay:c,easing:u}}function fe(C,c,u,d,h,Y,pe=null,Pe=!1){return{type:1,element:C,keyframes:c,preStyleProps:u,postStyleProps:d,duration:h,delay:Y,totalTime:h+Y,easing:pe,subTimeline:Pe}}class Ge{constructor(){this._map=new Map}get(c){return this._map.get(c)||[]}append(c,u){let d=this._map.get(c);d||this._map.set(c,d=[]),d.push(...u)}has(c){return this._map.has(c)}clear(){this._map.clear()}}const ai=new RegExp(":enter","g"),qt=new RegExp(":leave","g");function at(C,c,u,d,h,Y=new Map,pe=new Map,Pe,ct,Tt=[]){return(new S).buildKeyframes(C,c,u,d,h,Y,pe,Pe,ct,Tt)}class S{buildKeyframes(c,u,d,h,Y,pe,Pe,ct,Tt,dn=[]){Tt=Tt||new Ge;const rn=new ze(c,u,Tt,h,Y,dn,[]);rn.options=ct;const In=ct.delay?En(ct.delay):0;rn.currentTimeline.delayNextStep(In),rn.currentTimeline.setStyles([pe],null,rn.errors,ct),H(this,d,rn);const Mn=rn.timelines.filter(Sn=>Sn.containsAnimation());if(Mn.length&&Pe.size){let Sn;for(let jn=Mn.length-1;jn>=0;jn--){const Fi=Mn[jn];if(Fi.element===u){Sn=Fi;break}}Sn&&!Sn.allowOnlyTimelineStyles()&&Sn.setStyles([Pe],null,rn.errors,ct)}return Mn.length?Mn.map(Sn=>Sn.buildKeyframes()):[fe(u,[],[],[],0,In,"",!1)]}visitTrigger(c,u){}visitState(c,u){}visitTransition(c,u){}visitAnimateChild(c,u){const d=u.subInstructions.get(u.element);if(d){const h=u.createSubContext(c.options),Y=u.currentTimeline.currentTime,pe=this._visitSubInstructions(d,h,h.options);Y!=pe&&u.transformIntoNewTimeline(pe)}u.previousNode=c}visitAnimateRef(c,u){const d=u.createSubContext(c.options);d.transformIntoNewTimeline(),this._applyAnimationRefDelays([c.options,c.animation.options],u,d),this.visitReference(c.animation,d),u.transformIntoNewTimeline(d.currentTimeline.currentTime),u.previousNode=c}_applyAnimationRefDelays(c,u,d){for(const Y of c){const pe=null==Y?void 0:Y.delay;if(pe){var h;const Pe="number"==typeof pe?pe:En(de(pe,null!==(h=null==Y?void 0:Y.params)&&void 0!==h?h:{},u.errors));d.delayNextStep(Pe)}}}_visitSubInstructions(c,u,d){let Y=u.currentTimeline.currentTime;const pe=null!=d.duration?En(d.duration):null,Pe=null!=d.delay?En(d.delay):null;return 0!==pe&&c.forEach(ct=>{const Tt=u.appendInstructionToTimeline(ct,pe,Pe);Y=Math.max(Y,Tt.duration+Tt.delay)}),Y}visitReference(c,u){u.updateOptions(c.options,!0),H(this,c.animation,u),u.previousNode=c}visitSequence(c,u){const d=u.subContextCount;let h=u;const Y=c.options;if(Y&&(Y.params||Y.delay)&&(h=u.createSubContext(Y),h.transformIntoNewTimeline(),null!=Y.delay)){6==h.previousNode.type&&(h.currentTimeline.snapshotCurrentStyles(),h.previousNode=Z);const pe=En(Y.delay);h.delayNextStep(pe)}c.steps.length&&(c.steps.forEach(pe=>H(this,pe,h)),h.currentTimeline.applyStylesToKeyframe(),h.subContextCount>d&&h.transformIntoNewTimeline()),u.previousNode=c}visitGroup(c,u){const d=[];let h=u.currentTimeline.currentTime;const Y=c.options&&c.options.delay?En(c.options.delay):0;c.steps.forEach(pe=>{const Pe=u.createSubContext(c.options);Y&&Pe.delayNextStep(Y),H(this,pe,Pe),h=Math.max(h,Pe.currentTimeline.currentTime),d.push(Pe.currentTimeline)}),d.forEach(pe=>u.currentTimeline.mergeTimelineCollectedStyles(pe)),u.transformIntoNewTimeline(h),u.previousNode=c}_visitTiming(c,u){if(c.dynamic){const d=c.strValue;return Kn(u.params?de(d,u.params,u.errors):d,u.errors)}return{duration:c.duration,delay:c.delay,easing:c.easing}}visitAnimate(c,u){const d=u.currentAnimateTimings=this._visitTiming(c.timings,u),h=u.currentTimeline;d.delay&&(u.incrementTime(d.delay),h.snapshotCurrentStyles());const Y=c.style;5==Y.type?this.visitKeyframes(Y,u):(u.incrementTime(d.duration),this.visitStyle(Y,u),h.applyStylesToKeyframe()),u.currentAnimateTimings=null,u.previousNode=c}visitStyle(c,u){const d=u.currentTimeline,h=u.currentAnimateTimings;!h&&d.hasCurrentStyleProperties()&&d.forwardFrame();const Y=h&&h.easing||c.easing;c.isEmptyStep?d.applyEmptyStep(Y):d.setStyles(c.styles,Y,u.errors,u.options),u.previousNode=c}visitKeyframes(c,u){const d=u.currentAnimateTimings,h=u.currentTimeline.duration,Y=d.duration,Pe=u.createSubContext().currentTimeline;Pe.easing=d.easing,c.styles.forEach(ct=>{Pe.forwardTime((ct.offset||0)*Y),Pe.setStyles(ct.styles,ct.easing,u.errors,u.options),Pe.applyStylesToKeyframe()}),u.currentTimeline.mergeTimelineCollectedStyles(Pe),u.transformIntoNewTimeline(h+Y),u.previousNode=c}visitQuery(c,u){const d=u.currentTimeline.currentTime,h=c.options||{},Y=h.delay?En(h.delay):0;Y&&(6===u.previousNode.type||0==d&&u.currentTimeline.hasCurrentStyleProperties())&&(u.currentTimeline.snapshotCurrentStyles(),u.previousNode=Z);let pe=d;const Pe=u.invokeQuery(c.selector,c.originalSelector,c.limit,c.includeSelf,!!h.optional,u.errors);u.currentQueryTotal=Pe.length;let ct=null;Pe.forEach((Tt,dn)=>{u.currentQueryIndex=dn;const rn=u.createSubContext(c.options,Tt);Y&&rn.delayNextStep(Y),Tt===u.element&&(ct=rn.currentTimeline),H(this,c.animation,rn),rn.currentTimeline.applyStylesToKeyframe(),pe=Math.max(pe,rn.currentTimeline.currentTime)}),u.currentQueryIndex=0,u.currentQueryTotal=0,u.transformIntoNewTimeline(pe),ct&&(u.currentTimeline.mergeTimelineCollectedStyles(ct),u.currentTimeline.snapshotCurrentStyles()),u.previousNode=c}visitStagger(c,u){const d=u.parentContext,h=u.currentTimeline,Y=c.timings,pe=Math.abs(Y.duration),Pe=pe*(u.currentQueryTotal-1);let ct=pe*u.currentQueryIndex;switch(Y.duration<0?"reverse":Y.easing){case"reverse":ct=Pe-ct;break;case"full":ct=d.currentStaggerTime}const dn=u.currentTimeline;ct&&dn.delayNextStep(ct);const rn=dn.currentTime;H(this,c.animation,u),u.previousNode=c,d.currentStaggerTime=h.currentTime-rn+(h.startTime-d.currentTimeline.startTime)}}const Z={};class ze{constructor(c,u,d,h,Y,pe,Pe,ct){this._driver=c,this.element=u,this.subInstructions=d,this._enterClassName=h,this._leaveClassName=Y,this.errors=pe,this.timelines=Pe,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Z,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=ct||new rt(this._driver,u,0),Pe.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(c,u){if(!c)return;const d=c;let h=this.options;null!=d.duration&&(h.duration=En(d.duration)),null!=d.delay&&(h.delay=En(d.delay));const Y=d.params;if(Y){let pe=h.params;pe||(pe=this.options.params={}),Object.keys(Y).forEach(Pe=>{(!u||!pe.hasOwnProperty(Pe))&&(pe[Pe]=de(Y[Pe],pe,this.errors))})}}_copyOptions(){const c={};if(this.options){const u=this.options.params;if(u){const d=c.params={};Object.keys(u).forEach(h=>{d[h]=u[h]})}}return c}createSubContext(c=null,u,d){const h=u||this.element,Y=new ze(this._driver,h,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(h,d||0));return Y.previousNode=this.previousNode,Y.currentAnimateTimings=this.currentAnimateTimings,Y.options=this._copyOptions(),Y.updateOptions(c),Y.currentQueryIndex=this.currentQueryIndex,Y.currentQueryTotal=this.currentQueryTotal,Y.parentContext=this,this.subContextCount++,Y}transformIntoNewTimeline(c){return this.previousNode=Z,this.currentTimeline=this.currentTimeline.fork(this.element,c),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(c,u,d){const h={duration:null!=u?u:c.duration,delay:this.currentTimeline.currentTime+(null!=d?d:0)+c.delay,easing:""},Y=new Rt(this._driver,c.element,c.keyframes,c.preStyleProps,c.postStyleProps,h,c.stretchStartingKeyframe);return this.timelines.push(Y),h}incrementTime(c){this.currentTimeline.forwardTime(this.currentTimeline.duration+c)}delayNextStep(c){c>0&&this.currentTimeline.delayNextStep(c)}invokeQuery(c,u,d,h,Y,pe){let Pe=[];if(h&&Pe.push(this.element),c.length>0){c=(c=c.replace(ai,"."+this._enterClassName)).replace(qt,"."+this._leaveClassName);let Tt=this._driver.query(this.element,c,1!=d);0!==d&&(Tt=d<0?Tt.slice(Tt.length+d,Tt.length):Tt.slice(0,d)),Pe.push(...Tt)}return!Y&&0==Pe.length&&pe.push(function Ie(C){return new s.vHH(3014,!1)}()),Pe}}class rt{constructor(c,u,d,h){this._driver=c,this.element=u,this.startTime=d,this._elementTimelineStylesLookup=h,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(u),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(u,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(c){const u=1===this._keyframes.size&&this._pendingStyles.size;this.duration||u?(this.forwardTime(this.currentTime+c),u&&this.snapshotCurrentStyles()):this.startTime+=c}fork(c,u){return this.applyStylesToKeyframe(),new rt(this._driver,c,u||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(c){this.applyStylesToKeyframe(),this.duration=c,this._loadKeyframe()}_updateStyle(c,u){this._localTimelineStyles.set(c,u),this._globalTimelineStyles.set(c,u),this._styleSummary.set(c,{time:this.currentTime,value:u})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(c){c&&this._previousKeyframe.set("easing",c);for(let[u,d]of this._globalTimelineStyles)this._backFill.set(u,d||L.l3),this._currentKeyframe.set(u,L.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(c,u,d,h){u&&this._previousKeyframe.set("easing",u);const Y=h&&h.params||{},pe=function Kt(C,c){const u=new Map;let d;return C.forEach(h=>{if("*"===h){d=d||c.keys();for(let Y of d)u.set(Y,L.l3)}else en(h,u)}),u}(c,this._globalTimelineStyles);for(let[ct,Tt]of pe){const dn=de(Tt,Y,d);var Pe;this._pendingStyles.set(ct,dn),this._localTimelineStyles.has(ct)||this._backFill.set(ct,null!==(Pe=this._globalTimelineStyles.get(ct))&&void 0!==Pe?Pe:L.l3),this._updateStyle(ct,dn)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((c,u)=>{this._currentKeyframe.set(u,c)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((c,u)=>{this._currentKeyframe.has(u)||this._currentKeyframe.set(u,c)}))}snapshotCurrentStyles(){for(let[c,u]of this._localTimelineStyles)this._pendingStyles.set(c,u),this._updateStyle(c,u)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const c=[];for(let u in this._currentKeyframe)c.push(u);return c}mergeTimelineCollectedStyles(c){c._styleSummary.forEach((u,d)=>{const h=this._styleSummary.get(d);(!h||u.time>h.time)&&this._updateStyle(d,u.value)})}buildKeyframes(){this.applyStylesToKeyframe();const c=new Set,u=new Set,d=1===this._keyframes.size&&0===this.duration;let h=[];this._keyframes.forEach((Pe,ct)=>{const Tt=en(Pe,new Map,this._backFill);Tt.forEach((dn,rn)=>{dn===L.k1?c.add(rn):dn===L.l3&&u.add(rn)}),d||Tt.set("offset",ct/this.duration),h.push(Tt)});const Y=c.size?G(c.values()):[],pe=u.size?G(u.values()):[];if(d){const Pe=h[0],ct=new Map(Pe);Pe.set("offset",0),ct.set("offset",1),h=[Pe,ct]}return fe(this.element,h,Y,pe,this.duration,this.startTime,this.easing,!1)}}class Rt extends rt{constructor(c,u,d,h,Y,pe,Pe=!1){super(c,u,pe.delay),this.keyframes=d,this.preStyleProps=h,this.postStyleProps=Y,this._stretchStartingKeyframe=Pe,this.timings={duration:pe.duration,delay:pe.delay,easing:pe.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let c=this.keyframes,{delay:u,duration:d,easing:h}=this.timings;if(this._stretchStartingKeyframe&&u){const Y=[],pe=d+u,Pe=u/pe,ct=en(c[0]);ct.set("offset",0),Y.push(ct);const Tt=en(c[0]);Tt.set("offset",tn(Pe)),Y.push(Tt);const dn=c.length-1;for(let rn=1;rn<=dn;rn++){let In=en(c[rn]);const Mn=In.get("offset");In.set("offset",tn((u+Mn*d)/pe)),Y.push(In)}d=pe,u=0,h="",c=Y}return fe(this.element,c,this.preStyleProps,this.postStyleProps,d,u,h,!0)}}function tn(C,c=3){const u=Math.pow(10,c-1);return Math.round(C*u)/u}class Ht{}const xn=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class si extends Ht{normalizePropertyName(c,u){return le(c)}normalizeStyleValue(c,u,d,h){let Y="";const pe=d.toString().trim();if(xn.has(u)&&0!==d&&"0"!==d)if("number"==typeof d)Y="px";else{const Pe=d.match(/^[+-]?[\d\.]+([a-z]*)$/);Pe&&0==Pe[1].length&&h.push(function he(C,c){return new s.vHH(3005,!1)}())}return pe+Y}}function zn(C,c,u,d,h,Y,pe,Pe,ct,Tt,dn,rn,In){return{type:0,element:C,triggerName:c,isRemovalTransition:h,fromState:u,fromStyles:Y,toState:d,toStyles:pe,timelines:Pe,queriedElements:ct,preStyleProps:Tt,postStyleProps:dn,totalTime:rn,errors:In}}const cn={};class bn{constructor(c,u,d){this._triggerName=c,this.ast=u,this._stateStyles=d}match(c,u,d,h){return function Si(C,c,u,d,h){return C.some(Y=>Y(c,u,d,h))}(this.ast.matchers,c,u,d,h)}buildStyles(c,u,d){let h=this._stateStyles.get("*");return void 0!==c&&(h=this._stateStyles.get(null==c?void 0:c.toString())||h),h?h.buildStyles(u,d):new Map}build(c,u,d,h,Y,pe,Pe,ct,Tt,dn){var rn;const In=[],Mn=this.ast.options&&this.ast.options.params||cn,jn=this.buildStyles(d,Pe&&Pe.params||cn,In),Fi=ct&&ct.params||cn,Ni=this.buildStyles(h,Fi,In),Li=new Set,Rr=new Map,tr=new Map,Ks="void"===h,ss={params:Di(Fi,Mn),delay:null===(rn=this.ast.options)||void 0===rn?void 0:rn.delay},Ur=dn?[]:at(c,u,this.ast.animation,Y,pe,jn,Ni,ss,Tt,In);let Mi=0;if(Ur.forEach(os=>{Mi=Math.max(os.duration+os.delay,Mi)}),In.length)return zn(u,this._triggerName,d,h,Ks,jn,Ni,[],[],Rr,tr,Mi,In);Ur.forEach(os=>{const ho=os.element,$o=At(Rr,ho,new Set);os.preStyleProps.forEach(Qs=>$o.add(Qs));const xo=At(tr,ho,new Set);os.postStyleProps.forEach(Qs=>xo.add(Qs)),ho!==u&&Li.add(ho)});const Aa=G(Li.values());return zn(u,this._triggerName,d,h,Ks,jn,Ni,Ur,Aa,Rr,tr,Mi)}}function Di(C,c){const u=Nt(c);for(const d in C)C.hasOwnProperty(d)&&null!=C[d]&&(u[d]=C[d]);return u}class ui{constructor(c,u,d){this.styles=c,this.defaultParams=u,this.normalizer=d}buildStyles(c,u){const d=new Map,h=Nt(this.defaultParams);return Object.keys(c).forEach(Y=>{const pe=c[Y];null!==pe&&(h[Y]=pe)}),this.styles.styles.forEach(Y=>{"string"!=typeof Y&&Y.forEach((pe,Pe)=>{pe&&(pe=de(pe,h,u));const ct=this.normalizer.normalizePropertyName(Pe,u);pe=this.normalizer.normalizeStyleValue(Pe,ct,pe,u),d.set(Pe,pe)})}),d}}class Ci{constructor(c,u,d){this.name=c,this.ast=u,this._normalizer=d,this.transitionFactories=[],this.states=new Map,u.states.forEach(h=>{this.states.set(h.name,new ui(h.style,h.options&&h.options.params||{},d))}),Cr(this.states,"true","1"),Cr(this.states,"false","0"),u.transitions.forEach(h=>{this.transitionFactories.push(new bn(c,h,this.states))}),this.fallbackTransition=function ds(C,c,u){return new bn(C,{type:1,animation:{type:2,steps:[],options:null},matchers:[(pe,Pe)=>!0],options:null,queryCount:0,depCount:0},c)}(c,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(c,u,d,h){return this.transitionFactories.find(pe=>pe.match(c,u,d,h))||null}matchStyles(c,u,d){return this.fallbackTransition.buildStyles(c,u,d)}}function Cr(C,c,u){C.has(c)?C.has(u)||C.set(u,C.get(c)):C.has(u)&&C.set(c,C.get(u))}const ti=new Ge;class sn{constructor(c,u,d){this.bodyNode=c,this._driver=u,this._normalizer=d,this._animations=new Map,this._playersById=new Map,this.players=[]}register(c,u){const d=[],Y=Ii(this._driver,u,d,[]);if(d.length)throw function dt(C){return new s.vHH(3503,!1)}();this._animations.set(c,Y)}_buildPlayer(c,u,d){const h=c.element,Y=Fe(this._normalizer,c.keyframes,u,d);return this._driver.animate(h,Y,c.duration,c.delay,c.easing,[],!0)}create(c,u,d={}){const h=[],Y=this._animations.get(c);let pe;const Pe=new Map;if(Y?(pe=at(this._driver,u,Y,Wt,Xt,new Map,new Map,d,ti,h),pe.forEach(dn=>{const rn=At(Pe,dn.element,new Map);dn.postStyleProps.forEach(In=>rn.set(In,null))})):(h.push(function yt(){return new s.vHH(3300,!1)}()),pe=[]),h.length)throw function ot(C){return new s.vHH(3504,!1)}();Pe.forEach((dn,rn)=>{dn.forEach((In,Mn)=>{dn.set(Mn,this._driver.computeStyle(rn,Mn,L.l3))})});const Tt=ye(pe.map(dn=>{const rn=Pe.get(dn.element);return this._buildPlayer(dn,new Map,rn)}));return this._playersById.set(c,Tt),Tt.onDestroy(()=>this.destroy(c)),this.players.push(Tt),Tt}destroy(c){const u=this._getPlayer(c);u.destroy(),this._playersById.delete(c);const d=this.players.indexOf(u);d>=0&&this.players.splice(d,1)}_getPlayer(c){const u=this._playersById.get(c);if(!u)throw function st(C){return new s.vHH(3301,!1)}();return u}listen(c,u,d,h){const Y=vt(u,"","","");return Je(this._getPlayer(c),d,Y,h),()=>{}}command(c,u,d,h){if("register"==d)return void this.register(c,h[0]);if("create"==d)return void this.create(c,u,h[0]||{});const Y=this._getPlayer(c);switch(d){case"play":Y.play();break;case"pause":Y.pause();break;case"reset":Y.reset();break;case"restart":Y.restart();break;case"finish":Y.finish();break;case"init":Y.init();break;case"setPosition":Y.setPosition(parseFloat(h[0]));break;case"destroy":this.destroy(c)}}}const Nn="ng-animate-queued",ki="ng-animate-disabled",vi=[],nr={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Fr={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Dn="__ng_removed";class ur{get params(){return this.options.params}constructor(c,u=""){this.namespaceId=u;const d=c&&c.hasOwnProperty("value");if(this.value=function Tr(C){return null!=C?C:null}(d?c.value:c),d){const Y=Nt(c);delete Y.value,this.options=Y}else this.options={};this.options.params||(this.options.params={})}absorbOptions(c){const u=c.params;if(u){const d=this.options.params;Object.keys(u).forEach(h=>{null==d[h]&&(d[h]=u[h])})}}}const Nr="void",hr=new ur(Nr);class Ti{constructor(c,u,d){this.id=c,this.hostElement=u,this._engine=d,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+c,Fn(u,this._hostClassName)}listen(c,u,d,h){if(!this._triggers.has(u))throw function _e(C,c){return new s.vHH(3302,!1)}();if(null==d||0==d.length)throw function Q(C){return new s.vHH(3303,!1)}();if(!function Yr(C){return"start"==C||"done"==C}(d))throw function qe(C,c){return new s.vHH(3400,!1)}();const Y=At(this._elementListeners,c,[]),pe={name:u,phase:d,callback:h};Y.push(pe);const Pe=At(this._engine.statesByElement,c,new Map);return Pe.has(u)||(Fn(c,Mt),Fn(c,Mt+"-"+u),Pe.set(u,hr)),()=>{this._engine.afterFlush(()=>{const ct=Y.indexOf(pe);ct>=0&&Y.splice(ct,1),this._triggers.has(u)||Pe.delete(u)})}}register(c,u){return!this._triggers.has(c)&&(this._triggers.set(c,u),!0)}_getTrigger(c){const u=this._triggers.get(c);if(!u)throw function Te(C){return new s.vHH(3401,!1)}();return u}trigger(c,u,d,h=!0){const Y=this._getTrigger(u),pe=new Lr(this.id,u,c);let Pe=this._engine.statesByElement.get(c);Pe||(Fn(c,Mt),Fn(c,Mt+"-"+u),this._engine.statesByElement.set(c,Pe=new Map));let ct=Pe.get(u);const Tt=new ur(d,this.id);if(!(d&&d.hasOwnProperty("value"))&&ct&&Tt.absorbOptions(ct.options),Pe.set(u,Tt),ct||(ct=hr),Tt.value!==Nr&&ct.value===Tt.value){if(!function hs(C,c){const u=Object.keys(C),d=Object.keys(c);if(u.length!=d.length)return!1;for(let h=0;h{Xn(c,Fi),mn(c,Ni)})}return}const In=At(this._engine.playersByElement,c,[]);In.forEach(jn=>{jn.namespaceId==this.id&&jn.triggerName==u&&jn.queued&&jn.destroy()});let Mn=Y.matchTransition(ct.value,Tt.value,c,Tt.params),Sn=!1;if(!Mn){if(!h)return;Mn=Y.fallbackTransition,Sn=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:c,triggerName:u,transition:Mn,fromState:ct,toState:Tt,player:pe,isFallbackTransition:Sn}),Sn||(Fn(c,Nn),pe.onStart(()=>{zr(c,Nn)})),pe.onDone(()=>{let jn=this.players.indexOf(pe);jn>=0&&this.players.splice(jn,1);const Fi=this._engine.playersByElement.get(c);if(Fi){let Ni=Fi.indexOf(pe);Ni>=0&&Fi.splice(Ni,1)}}),this.players.push(pe),In.push(pe),pe}deregister(c){this._triggers.delete(c),this._engine.statesByElement.forEach(u=>u.delete(c)),this._elementListeners.forEach((u,d)=>{this._elementListeners.set(d,u.filter(h=>h.name!=c))})}clearElementCache(c){this._engine.statesByElement.delete(c),this._elementListeners.delete(c);const u=this._engine.playersByElement.get(c);u&&(u.forEach(d=>d.destroy()),this._engine.playersByElement.delete(c))}_signalRemovalForInnerTriggers(c,u){const d=this._engine.driver.query(c,vn,!0);d.forEach(h=>{if(h[Dn])return;const Y=this._engine.fetchNamespacesByElement(h);Y.size?Y.forEach(pe=>pe.triggerLeaveAnimation(h,u,!1,!0)):this.clearElementCache(h)}),this._engine.afterFlushAnimationsDone(()=>d.forEach(h=>this.clearElementCache(h)))}triggerLeaveAnimation(c,u,d,h){const Y=this._engine.statesByElement.get(c),pe=new Map;if(Y){const Pe=[];if(Y.forEach((ct,Tt)=>{if(pe.set(Tt,ct.value),this._triggers.has(Tt)){const dn=this.trigger(c,Tt,Nr,h);dn&&Pe.push(dn)}}),Pe.length)return this._engine.markElementAsRemoved(this.id,c,!0,u,pe),d&&ye(Pe).onDone(()=>this._engine.processLeaveNode(c)),!0}return!1}prepareLeaveAnimationListeners(c){const u=this._elementListeners.get(c),d=this._engine.statesByElement.get(c);if(u&&d){const h=new Set;u.forEach(Y=>{const pe=Y.name;if(h.has(pe))return;h.add(pe);const ct=this._triggers.get(pe).fallbackTransition,Tt=d.get(pe)||hr,dn=new ur(Nr),rn=new Lr(this.id,pe,c);this._engine.totalQueuedPlayers++,this._queue.push({element:c,triggerName:pe,transition:ct,fromState:Tt,toState:dn,player:rn,isFallbackTransition:!0})})}}removeNode(c,u){const d=this._engine;if(c.childElementCount&&this._signalRemovalForInnerTriggers(c,u),this.triggerLeaveAnimation(c,u,!0))return;let h=!1;if(d.totalAnimations){const Y=d.players.length?d.playersByQueriedElement.get(c):[];if(Y&&Y.length)h=!0;else{let pe=c;for(;pe=pe.parentNode;)if(d.statesByElement.get(pe)){h=!0;break}}}if(this.prepareLeaveAnimationListeners(c),h)d.markElementAsRemoved(this.id,c,!1,u);else{const Y=c[Dn];(!Y||Y===nr)&&(d.afterFlush(()=>this.clearElementCache(c)),d.destroyInnerAnimations(c),d._onRemovalComplete(c,u))}}insertNode(c,u){Fn(c,this._hostClassName)}drainQueuedTransitions(c){const u=[];return this._queue.forEach(d=>{const h=d.player;if(h.destroyed)return;const Y=d.element,pe=this._elementListeners.get(Y);pe&&pe.forEach(Pe=>{if(Pe.name==d.triggerName){const ct=vt(Y,d.triggerName,d.fromState.value,d.toState.value);ct._data=c,Je(d.player,Pe.phase,ct,Pe.callback)}}),h.markedForDestroy?this._engine.afterFlush(()=>{h.destroy()}):u.push(d)}),this._queue=[],u.sort((d,h)=>{const Y=d.transition.ast.depCount,pe=h.transition.ast.depCount;return 0==Y||0==pe?Y-pe:this._engine.driver.containsElement(d.element,h.element)?1:-1})}destroy(c){this.players.forEach(u=>u.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,c)}}class qi{_onRemovalComplete(c,u){this.onRemovalComplete(c,u)}constructor(c,u,d){this.bodyNode=c,this.driver=u,this._normalizer=d,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(h,Y)=>{}}get queuedPlayers(){const c=[];return this._namespaceList.forEach(u=>{u.players.forEach(d=>{d.queued&&c.push(d)})}),c}createNamespace(c,u){const d=new Ti(c,u,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,u)?this._balanceNamespaceList(d,u):(this.newHostElements.set(u,d),this.collectEnterElement(u)),this._namespaceLookup[c]=d}_balanceNamespaceList(c,u){const d=this._namespaceList,h=this.namespacesByHostElement;if(d.length-1>=0){let pe=!1,Pe=this.driver.getParentElement(u);for(;Pe;){const ct=h.get(Pe);if(ct){const Tt=d.indexOf(ct);d.splice(Tt+1,0,c),pe=!0;break}Pe=this.driver.getParentElement(Pe)}pe||d.unshift(c)}else d.push(c);return h.set(u,c),c}register(c,u){let d=this._namespaceLookup[c];return d||(d=this.createNamespace(c,u)),d}registerTrigger(c,u,d){let h=this._namespaceLookup[c];h&&h.register(u,d)&&this.totalAnimations++}destroy(c,u){c&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const d=this._fetchNamespace(c);this.namespacesByHostElement.delete(d.hostElement);const h=this._namespaceList.indexOf(d);h>=0&&this._namespaceList.splice(h,1),d.destroy(u),delete this._namespaceLookup[c]}))}_fetchNamespace(c){return this._namespaceLookup[c]}fetchNamespacesByElement(c){const u=new Set,d=this.statesByElement.get(c);if(d)for(let h of d.values())if(h.namespaceId){const Y=this._fetchNamespace(h.namespaceId);Y&&u.add(Y)}return u}trigger(c,u,d,h){if(Qr(u)){const Y=this._fetchNamespace(c);if(Y)return Y.trigger(u,d,h),!0}return!1}insertNode(c,u,d,h){if(!Qr(u))return;const Y=u[Dn];if(Y&&Y.setForRemoval){Y.setForRemoval=!1,Y.setForMove=!0;const pe=this.collectedLeaveElements.indexOf(u);pe>=0&&this.collectedLeaveElements.splice(pe,1)}if(c){const pe=this._fetchNamespace(c);pe&&pe.insertNode(u,d)}h&&this.collectEnterElement(u)}collectEnterElement(c){this.collectedEnterElements.push(c)}markElementAsDisabled(c,u){u?this.disabledNodes.has(c)||(this.disabledNodes.add(c),Fn(c,ki)):this.disabledNodes.has(c)&&(this.disabledNodes.delete(c),zr(c,ki))}removeNode(c,u,d){if(Qr(u)){const h=c?this._fetchNamespace(c):null;h?h.removeNode(u,d):this.markElementAsRemoved(c,u,!1,d);const Y=this.namespacesByHostElement.get(u);Y&&Y.id!==c&&Y.removeNode(u,d)}else this._onRemovalComplete(u,d)}markElementAsRemoved(c,u,d,h,Y){this.collectedLeaveElements.push(u),u[Dn]={namespaceId:c,setForRemoval:h,hasAnimation:d,removedBeforeQueried:!1,previousTriggersValues:Y}}listen(c,u,d,h,Y){return Qr(u)?this._fetchNamespace(c).listen(u,d,h,Y):()=>{}}_buildInstruction(c,u,d,h,Y){return c.transition.build(this.driver,c.element,c.fromState.value,c.toState.value,d,h,c.fromState.options,c.toState.options,u,Y)}destroyInnerAnimations(c){let u=this.driver.query(c,vn,!0);u.forEach(d=>this.destroyActiveAnimationsForElement(d)),0!=this.playersByQueriedElement.size&&(u=this.driver.query(c,pn,!0),u.forEach(d=>this.finishActiveQueriedAnimationOnElement(d)))}destroyActiveAnimationsForElement(c){const u=this.playersByElement.get(c);u&&u.forEach(d=>{d.queued?d.markedForDestroy=!0:d.destroy()})}finishActiveQueriedAnimationOnElement(c){const u=this.playersByQueriedElement.get(c);u&&u.forEach(d=>d.finish())}whenRenderingDone(){return new Promise(c=>{if(this.players.length)return ye(this.players).onDone(()=>c());c()})}processLeaveNode(c){var u;const d=c[Dn];if(d&&d.setForRemoval){if(c[Dn]=nr,d.namespaceId){this.destroyInnerAnimations(c);const h=this._fetchNamespace(d.namespaceId);h&&h.clearElementCache(c)}this._onRemovalComplete(c,d.setForRemoval)}null!==(u=c.classList)&&void 0!==u&&u.contains(ki)&&this.markElementAsDisabled(c,!1),this.driver.query(c,".ng-animate-disabled",!0).forEach(h=>{this.markElementAsDisabled(h,!1)})}flush(c=-1){let u=[];if(this.newHostElements.size&&(this.newHostElements.forEach((d,h)=>this._balanceNamespaceList(d,h)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let d=0;dd()),this._flushFns=[],this._whenQuietFns.length){const d=this._whenQuietFns;this._whenQuietFns=[],u.length?ye(u).onDone(()=>{d.forEach(h=>h())}):d.forEach(h=>h())}}reportError(c){throw function se(C){return new s.vHH(3402,!1)}()}_flushAnimations(c,u){const d=new Ge,h=[],Y=new Map,pe=[],Pe=new Map,ct=new Map,Tt=new Map,dn=new Set;this.disabledNodes.forEach(_n=>{dn.add(_n);const An=this.driver.query(_n,".ng-animate-queued",!0);for(let Ln=0;Ln{const Ln=Wt+jn++;Sn.set(An,Ln),_n.forEach(ii=>Fn(ii,Ln))});const Fi=[],Ni=new Set,Li=new Set;for(let _n=0;_nNi.add(ii)):Li.add(An))}const Rr=new Map,tr=pr(In,Array.from(Ni));tr.forEach((_n,An)=>{const Ln=Xt+jn++;Rr.set(An,Ln),_n.forEach(ii=>Fn(ii,Ln))}),c.push(()=>{Mn.forEach((_n,An)=>{const Ln=Sn.get(An);_n.forEach(ii=>zr(ii,Ln))}),tr.forEach((_n,An)=>{const Ln=Rr.get(An);_n.forEach(ii=>zr(ii,Ln))}),Fi.forEach(_n=>{this.processLeaveNode(_n)})});const Ks=[],ss=[];for(let _n=this._namespaceList.length-1;_n>=0;_n--)this._namespaceList[_n].drainQueuedTransitions(u).forEach(Ln=>{const ii=Ln.player,Ai=Ln.element;if(Ks.push(ii),this.collectedEnterElements.length){const Pr=Ai[Dn];if(Pr&&Pr.setForMove){if(Pr.previousTriggersValues&&Pr.previousTriggersValues.has(Ln.triggerName)){const Oo=Pr.previousTriggersValues.get(Ln.triggerName),_r=this.statesByElement.get(Ln.element);if(_r&&_r.has(Ln.triggerName)){const Sa=_r.get(Ln.triggerName);Sa.value=Oo,_r.set(Ln.triggerName,Sa)}}return void ii.destroy()}}const ks=!rn||!this.driver.containsElement(rn,Ai),Wr=Rr.get(Ai),po=Sn.get(Ai),zi=this._buildInstruction(Ln,d,po,Wr,ks);if(zi.errors&&zi.errors.length)return void ss.push(zi);if(ks)return ii.onStart(()=>Xn(Ai,zi.fromStyles)),ii.onDestroy(()=>mn(Ai,zi.toStyles)),void h.push(ii);if(Ln.isFallbackTransition)return ii.onStart(()=>Xn(Ai,zi.fromStyles)),ii.onDestroy(()=>mn(Ai,zi.toStyles)),void h.push(ii);const Od=[];zi.timelines.forEach(Pr=>{Pr.stretchStartingKeyframe=!0,this.disabledNodes.has(Pr.element)||Od.push(Pr)}),zi.timelines=Od,d.append(Ai,zi.timelines),pe.push({instruction:zi,player:ii,element:Ai}),zi.queriedElements.forEach(Pr=>At(Pe,Pr,[]).push(ii)),zi.preStyleProps.forEach((Pr,Oo)=>{if(Pr.size){let _r=ct.get(Oo);_r||ct.set(Oo,_r=new Set),Pr.forEach((Sa,Cl)=>_r.add(Cl))}}),zi.postStyleProps.forEach((Pr,Oo)=>{let _r=Tt.get(Oo);_r||Tt.set(Oo,_r=new Set),Pr.forEach((Sa,Cl)=>_r.add(Cl))})});if(ss.length){const _n=[];ss.forEach(An=>{_n.push(function N(C,c){return new s.vHH(3505,!1)}())}),Ks.forEach(An=>An.destroy()),this.reportError(_n)}const Ur=new Map,Mi=new Map;pe.forEach(_n=>{const An=_n.element;d.has(An)&&(Mi.set(An,An),this._beforeAnimationBuild(_n.player.namespaceId,_n.instruction,Ur))}),h.forEach(_n=>{const An=_n.element;this._getPreviousPlayers(An,!1,_n.namespaceId,_n.triggerName,null).forEach(ii=>{At(Ur,An,[]).push(ii),ii.destroy()})});const Aa=Fi.filter(_n=>fs(_n,ct,Tt)),os=new Map;Ar(os,this.driver,Li,Tt,L.l3).forEach(_n=>{fs(_n,ct,Tt)&&Aa.push(_n)});const $o=new Map;Mn.forEach((_n,An)=>{Ar($o,this.driver,new Set(_n),ct,L.k1)}),Aa.forEach(_n=>{var An,Ln;const ii=os.get(_n),Ai=$o.get(_n);os.set(_n,new Map([...null!==(An=null==ii?void 0:ii.entries())&&void 0!==An?An:[],...null!==(Ln=null==Ai?void 0:Ai.entries())&&void 0!==Ln?Ln:[]]))});const xo=[],Qs=[],fo={};pe.forEach(_n=>{const{element:An,player:Ln,instruction:ii}=_n;if(d.has(An)){if(dn.has(An))return Ln.onDestroy(()=>mn(An,ii.toStyles)),Ln.disabled=!0,Ln.overrideTotalTime(ii.totalTime),void h.push(Ln);let Ai=fo;if(Mi.size>1){let Wr=An;const po=[];for(;Wr=Wr.parentNode;){const zi=Mi.get(Wr);if(zi){Ai=zi;break}po.push(Wr)}po.forEach(zi=>Mi.set(zi,Ai))}const ks=this._buildAnimation(Ln.namespaceId,ii,Ur,Y,$o,os);if(Ln.setRealPlayer(ks),Ai===fo)xo.push(Ln);else{const Wr=this.playersByElement.get(Ai);Wr&&Wr.length&&(Ln.parentPlayer=ye(Wr)),h.push(Ln)}}else Xn(An,ii.fromStyles),Ln.onDestroy(()=>mn(An,ii.toStyles)),Qs.push(Ln),dn.has(An)&&h.push(Ln)}),Qs.forEach(_n=>{const An=Y.get(_n.element);if(An&&An.length){const Ln=ye(An);_n.setRealPlayer(Ln)}}),h.forEach(_n=>{_n.parentPlayer?_n.syncPlayerEvents(_n.parentPlayer):_n.destroy()});for(let _n=0;_n!ks.destroyed);Ai.length?bs(this,An,Ai):this.processLeaveNode(An)}return Fi.length=0,xo.forEach(_n=>{this.players.push(_n),_n.onDone(()=>{_n.destroy();const An=this.players.indexOf(_n);this.players.splice(An,1)}),_n.play()}),xo}afterFlush(c){this._flushFns.push(c)}afterFlushAnimationsDone(c){this._whenQuietFns.push(c)}_getPreviousPlayers(c,u,d,h,Y){let pe=[];if(u){const Pe=this.playersByQueriedElement.get(c);Pe&&(pe=Pe)}else{const Pe=this.playersByElement.get(c);if(Pe){const ct=!Y||Y==Nr;Pe.forEach(Tt=>{Tt.queued||!ct&&Tt.triggerName!=h||pe.push(Tt)})}}return(d||h)&&(pe=pe.filter(Pe=>!(d&&d!=Pe.namespaceId||h&&h!=Pe.triggerName))),pe}_beforeAnimationBuild(c,u,d){const Y=u.element,pe=u.isRemovalTransition?void 0:c,Pe=u.isRemovalTransition?void 0:u.triggerName;for(const ct of u.timelines){const Tt=ct.element,dn=Tt!==Y,rn=At(d,Tt,[]);this._getPreviousPlayers(Tt,dn,pe,Pe,u.toState).forEach(Mn=>{const Sn=Mn.getRealPlayer();Sn.beforeDestroy&&Sn.beforeDestroy(),Mn.destroy(),rn.push(Mn)})}Xn(Y,u.fromStyles)}_buildAnimation(c,u,d,h,Y,pe){const Pe=u.triggerName,ct=u.element,Tt=[],dn=new Set,rn=new Set,In=u.timelines.map(Sn=>{const jn=Sn.element;dn.add(jn);const Fi=jn[Dn];if(Fi&&Fi.removedBeforeQueried)return new L.ZN(Sn.duration,Sn.delay);const Ni=jn!==ct,Li=function xs(C){const c=[];return Ji(C,c),c}((d.get(jn)||vi).map(Ur=>Ur.getRealPlayer())).filter(Ur=>!!Ur.element&&Ur.element===jn),Rr=Y.get(jn),tr=pe.get(jn),Ks=Fe(this._normalizer,Sn.keyframes,Rr,tr),ss=this._buildPlayer(Sn,Ks,Li);if(Sn.subTimeline&&h&&rn.add(jn),Ni){const Ur=new Lr(c,Pe,jn);Ur.setRealPlayer(ss),Tt.push(Ur)}return ss});Tt.forEach(Sn=>{At(this.playersByQueriedElement,Sn.element,[]).push(Sn),Sn.onDone(()=>function fr(C,c,u){let d=C.get(c);if(d){if(d.length){const h=d.indexOf(u);d.splice(h,1)}0==d.length&&C.delete(c)}return d}(this.playersByQueriedElement,Sn.element,Sn))}),dn.forEach(Sn=>Fn(Sn,fn));const Mn=ye(In);return Mn.onDestroy(()=>{dn.forEach(Sn=>zr(Sn,fn)),mn(ct,u.toStyles)}),rn.forEach(Sn=>{At(h,Sn,[]).push(Mn)}),Mn}_buildPlayer(c,u,d){return u.length>0?this.driver.animate(c.element,u,c.duration,c.delay,c.easing,d):new L.ZN(c.duration,c.delay)}}class Lr{constructor(c,u,d){this.namespaceId=c,this.triggerName=u,this.element=d,this._player=new L.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(c){this._containsRealPlayer||(this._player=c,this._queuedCallbacks.forEach((u,d)=>{u.forEach(h=>Je(c,d,void 0,h))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(c.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(c){this.totalTime=c}syncPlayerEvents(c){const u=this._player;u.triggerCallback&&c.onStart(()=>u.triggerCallback("start")),c.onDone(()=>this.finish()),c.onDestroy(()=>this.destroy())}_queueEvent(c,u){At(this._queuedCallbacks,c,[]).push(u)}onDone(c){this.queued&&this._queueEvent("done",c),this._player.onDone(c)}onStart(c){this.queued&&this._queueEvent("start",c),this._player.onStart(c)}onDestroy(c){this.queued&&this._queueEvent("destroy",c),this._player.onDestroy(c)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(c){this.queued||this._player.setPosition(c)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(c){const u=this._player;u.triggerCallback&&u.triggerCallback(c)}}function Qr(C){return C&&1===C.nodeType}function ir(C,c){const u=C.style.display;return C.style.display=null!=c?c:"none",u}function Ar(C,c,u,d,h){const Y=[];u.forEach(ct=>Y.push(ir(ct)));const pe=[];d.forEach((ct,Tt)=>{const dn=new Map;ct.forEach(rn=>{const In=c.computeStyle(Tt,rn,h);dn.set(rn,In),(!In||0==In.length)&&(Tt[Dn]=Fr,pe.push(Tt))}),C.set(Tt,dn)});let Pe=0;return u.forEach(ct=>ir(ct,Y[Pe++])),pe}function pr(C,c){const u=new Map;if(C.forEach(Pe=>u.set(Pe,[])),0==c.length)return u;const h=new Set(c),Y=new Map;function pe(Pe){if(!Pe)return 1;let ct=Y.get(Pe);if(ct)return ct;const Tt=Pe.parentNode;return ct=u.has(Tt)?Tt:h.has(Tt)?1:pe(Tt),Y.set(Pe,ct),ct}return c.forEach(Pe=>{const ct=pe(Pe);1!==ct&&u.get(ct).push(Pe)}),u}function Fn(C,c){var u;null===(u=C.classList)||void 0===u||u.add(c)}function zr(C,c){var u;null===(u=C.classList)||void 0===u||u.remove(c)}function bs(C,c,u){ye(u).onDone(()=>C.processLeaveNode(c))}function Ji(C,c){for(let u=0;uh.add(Y)):c.set(C,d),u.delete(C),!0}class Sr{constructor(c,u,d){this.bodyNode=c,this._driver=u,this._normalizer=d,this._triggerCache={},this.onRemovalComplete=(h,Y)=>{},this._transitionEngine=new qi(c,u,d),this._timelineEngine=new sn(c,u,d),this._transitionEngine.onRemovalComplete=(h,Y)=>this.onRemovalComplete(h,Y)}registerTrigger(c,u,d,h,Y){const pe=c+"-"+h;let Pe=this._triggerCache[pe];if(!Pe){const ct=[],dn=Ii(this._driver,Y,ct,[]);if(ct.length)throw function nt(C,c){return new s.vHH(3404,!1)}();Pe=function Ri(C,c,u){return new Ci(C,c,u)}(h,dn,this._normalizer),this._triggerCache[pe]=Pe}this._transitionEngine.registerTrigger(u,h,Pe)}register(c,u){this._transitionEngine.register(c,u)}destroy(c,u){this._transitionEngine.destroy(c,u)}onInsert(c,u,d,h){this._transitionEngine.insertNode(c,u,d,h)}onRemove(c,u,d){this._transitionEngine.removeNode(c,u,d)}disableAnimations(c,u){this._transitionEngine.markElementAsDisabled(c,u)}process(c,u,d,h){if("@"==d.charAt(0)){const[Y,pe]=Yt(d);this._timelineEngine.command(Y,u,pe,h)}else this._transitionEngine.trigger(c,u,d,h)}listen(c,u,d,h,Y){if("@"==d.charAt(0)){const[pe,Pe]=Yt(d);return this._timelineEngine.listen(pe,u,Pe,Y)}return this._transitionEngine.listen(c,u,d,h,Y)}flush(c=-1){this._transitionEngine.flush(c)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(c){this._transitionEngine.afterFlushAnimationsDone(c)}}let al=(()=>{class c{constructor(d,h,Y){this._element=d,this._startStyles=h,this._endStyles=Y,this._state=0;let pe=c.initialStylesByElement.get(d);pe||c.initialStylesByElement.set(d,pe=new Map),this._initialStyles=pe}start(){this._state<1&&(this._startStyles&&mn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(mn(this._element,this._initialStyles),this._endStyles&&(mn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(c.initialStylesByElement.delete(this._element),this._startStyles&&(Xn(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Xn(this._element,this._endStyles),this._endStyles=null),mn(this._element,this._initialStyles),this._state=3)}}return c.initialStylesByElement=new WeakMap,c})();function Ki(C){let c=null;return C.forEach((u,d)=>{(function Vi(C){return"display"===C||"position"===C})(d)&&(c=c||new Map,c.set(d,u))}),c}class Zr{constructor(c,u,d,h){this.element=c,this.keyframes=u,this.options=d,this._specialStyles=h,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=d.duration,this._delay=d.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(c=>c()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const c=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,c,this.options),this._finalKeyframe=c.length?c[c.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(c){const u=[];return c.forEach(d=>{u.push(Object.fromEntries(d))}),u}_triggerWebAnimation(c,u,d){return c.animate(this._convertKeyframesToObject(u),d)}onStart(c){this._originalOnStartFns.push(c),this._onStartFns.push(c)}onDone(c){this._originalOnDoneFns.push(c),this._onDoneFns.push(c)}onDestroy(c){this._onDestroyFns.push(c)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(c=>c()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(c=>c()),this._onDestroyFns=[])}setPosition(c){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=c*this.time}getPosition(){var c;return+(null!==(c=this.domPlayer.currentTime)&&void 0!==c?c:0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const c=new Map;this.hasStarted()&&this._finalKeyframe.forEach((d,h)=>{"offset"!==h&&c.set(h,this._finished?d:Be(this.element,h))}),this.currentSnapshot=c}triggerCallback(c){const u="start"===c?this._onStartFns:this._onDoneFns;u.forEach(d=>d()),u.length=0}}class Ui{validateStyleProperty(c){return!0}validateAnimatableStyleProperty(c){return!0}matchesElement(c,u){return!1}containsElement(c,u){return z(c,u)}getParentElement(c){return nn(c)}query(c,u,d){return Ae(c,u,d)}computeStyle(c,u,d){return window.getComputedStyle(c)[u]}animate(c,u,d,h,Y,pe=[]){const ct={duration:d,delay:h,fill:0==h?"both":"forwards"};Y&&(ct.easing=Y);const Tt=new Map,dn=pe.filter(Mn=>Mn instanceof Zr);(function Le(C,c){return 0===C||0===c})(d,h)&&dn.forEach(Mn=>{Mn.currentSnapshot.forEach((Sn,jn)=>Tt.set(jn,Sn))});let rn=function ut(C){return C.length?C[0]instanceof Map?C:C.map(c=>kt(c)):[]}(u).map(Mn=>en(Mn));rn=function A(C,c,u){if(u.size&&c.length){let d=c[0],h=[];if(u.forEach((Y,pe)=>{d.has(pe)||h.push(pe),d.set(pe,Y)}),h.length)for(let Y=1;Ype.set(Pe,Be(C,Pe)))}}return c}(c,rn,Tt);const In=function Bi(C,c){let u=null,d=null;return Array.isArray(c)&&c.length?(u=Ki(c[0]),c.length>1&&(d=Ki(c[c.length-1]))):c instanceof Map&&(u=Ki(c)),u||d?new al(C,u,d):null}(c,rn);return new Zr(c,rn,ct,In)}}var yi=p(6814);let Xi=(()=>{var C;class c extends L._j{constructor(d,h){super(),this._nextAnimationId=0,this._renderer=d.createRenderer(h.body,{id:"0",encapsulation:s.ifc.None,styles:[],data:{animation:[]}})}build(d){const h=this._nextAnimationId.toString();this._nextAnimationId++;const Y=Array.isArray(d)?(0,L.vP)(d):d;return io(this._renderer,null,h,"register",[Y]),new no(h,this._renderer)}}return(C=c).\u0275fac=function(d){return new(d||C)(s.LFG(s.FYo),s.LFG(yi.K0))},C.\u0275prov=s.Yz7({token:C,factory:C.\u0275fac}),c})();class no extends L.LC{constructor(c,u){super(),this._id=c,this._renderer=u}create(c,u){return new bo(this._id,c,u||{},this._renderer)}}class bo{constructor(c,u,d,h){this.id=c,this.element=u,this._renderer=h,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",d)}_listen(c,u){return this._renderer.listen(this.element,`@@${this.id}:${c}`,u)}_command(c,...u){return io(this._renderer,this.element,this.id,c,u)}onDone(c){this._listen("done",c)}onStart(c){this._listen("start",c)}onDestroy(c){this._listen("destroy",c)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(c){this._command("setPosition",c)}getPosition(){var c,u;return null!==(c=null===(u=this._renderer.engine.players[+this.id])||void 0===u?void 0:u.getPosition())&&void 0!==c?c:0}}function io(C,c,u,d,h){return C.setProperty(c,`@@${u}:${d}`,h)}const ys="@.disabled";let ro=(()=>{var C;class c{constructor(d,h,Y){this.delegate=d,this.engine=h,this._zone=Y,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,h.onRemovalComplete=(pe,Pe)=>{const ct=null==Pe?void 0:Pe.parentNode(pe);ct&&Pe.removeChild(ct,pe)}}createRenderer(d,h){const pe=this.delegate.createRenderer(d,h);if(!(d&&h&&h.data&&h.data.animation)){let rn=this._rendererCache.get(pe);return rn||(rn=new B("",pe,this.engine,()=>this._rendererCache.delete(pe)),this._rendererCache.set(pe,rn)),rn}const Pe=h.id,ct=h.id+"-"+this._currentId;this._currentId++,this.engine.register(ct,d);const Tt=rn=>{Array.isArray(rn)?rn.forEach(Tt):this.engine.registerTrigger(Pe,ct,d,rn.name,rn)};return h.data.animation.forEach(Tt),new w(this,ct,pe,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(d,h,Y){d>=0&&dh(Y)):(0==this._animationCallbacksBuffer.length&&queueMicrotask(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(pe=>{const[Pe,ct]=pe;Pe(ct)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([h,Y]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return(C=c).\u0275fac=function(d){return new(d||C)(s.LFG(s.FYo),s.LFG(Sr),s.LFG(s.R0b))},C.\u0275prov=s.Yz7({token:C,factory:C.\u0275fac}),c})();class B{constructor(c,u,d,h){this.namespaceId=c,this.delegate=u,this.engine=d,this._onDestroy=h}get data(){return this.delegate.data}destroyNode(c){var u,d;null===(u=(d=this.delegate).destroyNode)||void 0===u||u.call(d,c)}destroy(){var c;this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),null===(c=this._onDestroy)||void 0===c||c.call(this)}createElement(c,u){return this.delegate.createElement(c,u)}createComment(c){return this.delegate.createComment(c)}createText(c){return this.delegate.createText(c)}appendChild(c,u){this.delegate.appendChild(c,u),this.engine.onInsert(this.namespaceId,u,c,!1)}insertBefore(c,u,d,h=!0){this.delegate.insertBefore(c,u,d),this.engine.onInsert(this.namespaceId,u,c,h)}removeChild(c,u,d){this.engine.onRemove(this.namespaceId,u,this.delegate)}selectRootElement(c,u){return this.delegate.selectRootElement(c,u)}parentNode(c){return this.delegate.parentNode(c)}nextSibling(c){return this.delegate.nextSibling(c)}setAttribute(c,u,d,h){this.delegate.setAttribute(c,u,d,h)}removeAttribute(c,u,d){this.delegate.removeAttribute(c,u,d)}addClass(c,u){this.delegate.addClass(c,u)}removeClass(c,u){this.delegate.removeClass(c,u)}setStyle(c,u,d,h){this.delegate.setStyle(c,u,d,h)}removeStyle(c,u,d){this.delegate.removeStyle(c,u,d)}setProperty(c,u,d){"@"==u.charAt(0)&&u==ys?this.disableAnimations(c,!!d):this.delegate.setProperty(c,u,d)}setValue(c,u){this.delegate.setValue(c,u)}listen(c,u,d){return this.delegate.listen(c,u,d)}disableAnimations(c,u){this.engine.disableAnimations(c,u)}}class w extends B{constructor(c,u,d,h,Y){super(u,d,h,Y),this.factory=c,this.namespaceId=u}setProperty(c,u,d){"@"==u.charAt(0)?"."==u.charAt(1)&&u==ys?this.disableAnimations(c,d=void 0===d||!!d):this.engine.process(this.namespaceId,c,u.slice(1),d):this.delegate.setProperty(c,u,d)}listen(c,u,d){if("@"==u.charAt(0)){const h=function Ce(C){switch(C){case"body":return document.body;case"document":return document;case"window":return window;default:return C}}(c);let Y=u.slice(1),pe="";return"@"!=Y.charAt(0)&&([Y,pe]=function V(C){const c=C.indexOf(".");return[C.substring(0,c),C.slice(c+1)]}(Y)),this.engine.listen(this.namespaceId,h,Y,pe,Pe=>{this.factory.scheduleListenerCallback(Pe._data||-1,d,Pe)})}return this.delegate.listen(c,u,d)}}const Pi=[{provide:L._j,useClass:Xi},{provide:Ht,useFactory:function jt(){return new si}},{provide:Sr,useClass:(()=>{var C;class c extends Sr{constructor(d,h,Y,pe){super(d.body,h,Y)}ngOnDestroy(){this.flush()}}return(C=c).\u0275fac=function(d){return new(d||C)(s.LFG(yi.K0),s.LFG(Ye),s.LFG(Ht),s.LFG(s.z2F))},C.\u0275prov=s.Yz7({token:C,factory:C.\u0275fac}),c})()},{provide:s.FYo,useFactory:function On(C,c,u){return new ro(C,c,u)},deps:[i.se,Sr,s.R0b]}],wr=[{provide:Ye,useFactory:()=>new Ui},{provide:s.QbO,useValue:"BrowserAnimations"},...Pi],Os=[{provide:Ye,useClass:me},{provide:s.QbO,useValue:"NoopAnimations"},...Pi];let so=(()=>{var C;class c{static withConfig(d){return{ngModule:c,providers:d.disableAnimations?Os:wr}}}return(C=c).\u0275fac=function(d){return new(d||C)},C.\u0275mod=s.oAB({type:C}),C.\u0275inj=s.cJS({providers:wr,imports:[i.b2]}),c})();var _i=p(6223),Is=p(9862),qr=p(6599),mr=p(2495),Gi=p(6028),Es=p(2079),Gr=p(7354),Hi=p(7902),js=p(9193),rr=p(7024),ps=p(3075),yo=p(5222),oo=p(1418),Rs=p(9352),$r=p(7734),Ps=p(9384),Mr=p(3680),kr=p(8484),Eo=p(9388),Ys=p(9594),Lo=p(2831),ao=p(6672);const Ds=["mat-menu-item",""];function Cs(C,c){1&C&&(s.O4$(),s.TgZ(0,"svg",3),s._UZ(1,"polygon",4),s.qZA())}const lo=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],ko=["mat-icon, [matMenuItemIcon]","*"];function co(C,c){if(1&C){const u=s.EpF();s.TgZ(0,"div",0),s.NdJ("keydown",function(h){s.CHM(u);const Y=s.oxw();return s.KtG(Y._handleKeydown(h))})("click",function(){s.CHM(u);const h=s.oxw();return s.KtG(h.closed.emit("click"))})("@transformMenu.start",function(h){s.CHM(u);const Y=s.oxw();return s.KtG(Y._onAnimationStart(h))})("@transformMenu.done",function(h){s.CHM(u);const Y=s.oxw();return s.KtG(Y._onAnimationDone(h))}),s.TgZ(1,"div",1),s.Hsn(2),s.qZA()()}if(2&C){const u=s.oxw();s.Q6J("id",u.panelId)("ngClass",u._classList)("@transformMenu",u._panelAnimationState),s.uIk("aria-label",u.ariaLabel||null)("aria-labelledby",u.ariaLabelledby||null)("aria-describedby",u.ariaDescribedby||null)}}const Do=["*"],Fs=new s.OlP("MAT_MENU_PANEL"),na=(0,Mr.Kr)((0,Mr.Id)(class{}));let Ts=(()=>{var C;class c extends na{constructor(d,h,Y,pe,Pe){var ct;super(),this._elementRef=d,this._document=h,this._focusMonitor=Y,this._parentMenu=pe,this._changeDetectorRef=Pe,this.role="menuitem",this._hovered=new Es.xQ,this._focused=new Es.xQ,this._highlighted=!1,this._triggersSubmenu=!1,null==pe||null===(ct=pe.addItem)||void 0===ct||ct.call(pe,this)}focus(d,h){this._focusMonitor&&d?this._focusMonitor.focusVia(this._getHostElement(),d,h):this._getHostElement().focus(h),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(d){this.disabled&&(d.preventDefault(),d.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var d;const h=this._elementRef.nativeElement.cloneNode(!0),Y=h.querySelectorAll("mat-icon, .material-icons");for(let pe=0;pe{var C;class c{constructor(d,h,Y,pe,Pe,ct,Tt){this._template=d,this._componentFactoryResolver=h,this._appRef=Y,this._injector=pe,this._viewContainerRef=Pe,this._document=ct,this._changeDetectorRef=Tt,this._attached=new Es.xQ}attach(d={}){var h;this._portal||(this._portal=new kr.UE(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new kr.u0(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));const Y=this._template.elementRef.nativeElement;Y.parentNode.insertBefore(this._outlet.outletElement,Y),null===(h=this._changeDetectorRef)||void 0===h||h.markForCheck(),this._portal.attach(this._outlet,d),this._attached.next()}detach(){this._portal.isAttached&&this._portal.detach()}ngOnDestroy(){this._outlet&&this._outlet.dispose()}}return(C=c).\u0275fac=function(d){return new(d||C)(s.Y36(s.Rgc),s.Y36(s._Vd),s.Y36(s.z2F),s.Y36(s.zs3),s.Y36(s.s_b),s.Y36(yi.K0),s.Y36(s.sBO))},C.\u0275dir=s.lG2({type:C}),c})(),ra=(()=>{var C;class c extends dl{}return(C=c).\u0275fac=function(){let u;return function(h){return(u||(u=s.n5z(C)))(h||C)}}(),C.\u0275dir=s.lG2({type:C,selectors:[["ng-template","matMenuContent",""]],features:[s._Bn([{provide:uo,useExisting:C}]),s.qOj]}),c})();const Jr={transformMenu:(0,L.X$)("transformMenu",[(0,L.SB)("void",(0,L.oB)({opacity:0,transform:"scale(0.8)"})),(0,L.eR)("void => enter",(0,L.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,L.oB)({opacity:1,transform:"scale(1)"}))),(0,L.eR)("* => void",(0,L.jt)("100ms 25ms linear",(0,L.oB)({opacity:0})))]),fadeInItems:(0,L.X$)("fadeInItems",[(0,L.SB)("showing",(0,L.oB)({opacity:1})),(0,L.eR)("void => *",[(0,L.oB)({opacity:0}),(0,L.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let P=0;const Ue=new s.OlP("mat-menu-default-options",{providedIn:"root",factory:function O(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let De=(()=>{var C;class c{get xPosition(){return this._xPosition}set xPosition(d){this._xPosition=d,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(d){this._yPosition=d,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(d){this._overlapTrigger=(0,mr.Ig)(d)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(d){this._hasBackdrop=(0,mr.Ig)(d)}set panelClass(d){const h=this._previousPanelClass;h&&h.length&&h.split(" ").forEach(Y=>{this._classList[Y]=!1}),this._previousPanelClass=d,d&&d.length&&(d.split(" ").forEach(Y=>{this._classList[Y]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(d){this.panelClass=d}constructor(d,h,Y,pe){this._elementRef=d,this._ngZone=h,this._changeDetectorRef=pe,this._directDescendantItems=new s.n_E,this._classList={},this._panelAnimationState="void",this._animationDone=new Es.xQ,this.closed=new s.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+P++,this.overlayPanelClass=Y.overlayPanelClass||"",this._xPosition=Y.xPosition,this._yPosition=Y.yPosition,this.backdropClass=Y.backdropClass,this._overlapTrigger=Y.overlapTrigger,this._hasBackdrop=Y.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new qr.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,ps.O)(this._directDescendantItems),(0,yo.w)(d=>(0,Gr.T)(...d.map(h=>h._focused)))).subscribe(d=>this._keyManager.updateActiveItem(d)),this._directDescendantItems.changes.subscribe(d=>{var h;const Y=this._keyManager;if("enter"===this._panelAnimationState&&null!==(h=Y.activeItem)&&void 0!==h&&h._hasFocus()){const pe=d.toArray(),Pe=Math.max(0,Math.min(pe.length-1,Y.activeItemIndex||0));pe[Pe]&&!pe[Pe].disabled?Y.setActiveItem(Pe):Y.setNextItemActive()}})}ngOnDestroy(){var d,h;null===(d=this._keyManager)||void 0===d||d.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),null===(h=this._firstItemFocusSubscription)||void 0===h||h.unsubscribe()}_hovered(){return this._directDescendantItems.changes.pipe((0,ps.O)(this._directDescendantItems),(0,yo.w)(h=>(0,Gr.T)(...h.map(Y=>Y._hovered))))}addItem(d){}removeItem(d){}_handleKeydown(d){const h=d.keyCode,Y=this._keyManager;switch(h){case Gi.hY:(0,Gi.Vb)(d)||(d.preventDefault(),this.closed.emit("keydown"));break;case Gi.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case Gi.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(h===Gi.LH||h===Gi.JH)&&Y.setFocusOrigin("keyboard"),void Y.onKeydown(d)}d.stopPropagation()}focusFirstItem(d="program"){var h;null===(h=this._firstItemFocusSubscription)||void 0===h||h.unsubscribe(),this._firstItemFocusSubscription=this._ngZone.onStable.pipe((0,oo.q)(1)).subscribe(()=>{let Y=null;if(this._directDescendantItems.length&&(Y=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!Y||!Y.contains(document.activeElement)){const pe=this._keyManager;pe.setFocusOrigin(d).setFirstItemActive(),!pe.activeItem&&Y&&Y.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(d){const h=Math.min(this._baseElevation+d,24),Y=`${this._elevationPrefix}${h}`,pe=Object.keys(this._classList).find(Pe=>Pe.startsWith(this._elevationPrefix));(!pe||pe===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[Y]=!0,this._previousElevation=Y)}setPositionClasses(d=this.xPosition,h=this.yPosition){var Y;const pe=this._classList;pe["mat-menu-before"]="before"===d,pe["mat-menu-after"]="after"===d,pe["mat-menu-above"]="above"===h,pe["mat-menu-below"]="below"===h,null===(Y=this._changeDetectorRef)||void 0===Y||Y.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(d){this._animationDone.next(d),this._isAnimating=!1}_onAnimationStart(d){this._isAnimating=!0,"enter"===d.toState&&0===this._keyManager.activeItemIndex&&(d.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,ps.O)(this._allItems)).subscribe(d=>{this._directDescendantItems.reset(d.filter(h=>h._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return(C=c).\u0275fac=function(d){return new(d||C)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(Ue),s.Y36(s.sBO))},C.\u0275dir=s.lG2({type:C,contentQueries:function(d,h,Y){if(1&d&&(s.Suo(Y,uo,5),s.Suo(Y,Ts,5),s.Suo(Y,Ts,4)),2&d){let pe;s.iGM(pe=s.CRH())&&(h.lazyContent=pe.first),s.iGM(pe=s.CRH())&&(h._allItems=pe),s.iGM(pe=s.CRH())&&(h.items=pe)}},viewQuery:function(d,h){if(1&d&&s.Gf(s.Rgc,5),2&d){let Y;s.iGM(Y=s.CRH())&&(h.templateRef=Y.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),c})(),et=(()=>{var C;class c extends De{constructor(d,h,Y,pe){super(d,h,Y,pe),this._elevationPrefix="mat-elevation-z",this._baseElevation=8}}return(C=c).\u0275fac=function(d){return new(d||C)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(Ue),s.Y36(s.sBO))},C.\u0275cmp=s.Xpm({type:C,selectors:[["mat-menu"]],hostAttrs:["ngSkipHydration",""],hostVars:3,hostBindings:function(d,h){2&d&&s.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[s._Bn([{provide:Fs,useExisting:C}]),s.qOj],ngContentSelectors:Do,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mat-mdc-elevation-specific",3,"id","ngClass","keydown","click"],[1,"mat-mdc-menu-content"]],template:function(d,h){1&d&&(s.F$t(),s.YNc(0,co,3,6,"ng-template"))},dependencies:[yi.mk],styles:['mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;list-style-type:none}.mat-mdc-menu-content:focus{outline:none}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;white-space:normal;font-family:var(--mat-menu-item-label-text-font);line-height:var(--mat-menu-item-label-text-line-height);font-size:var(--mat-menu-item-label-text-size);letter-spacing:var(--mat-menu-item-label-text-tracking);font-weight:var(--mat-menu-item-label-text-weight)}.mat-mdc-menu-panel{--mat-menu-container-shape:4px;min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box;outline:0;border-radius:var(--mat-menu-container-shape);background-color:var(--mat-menu-container-color);will-change:transform,opacity}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;align-items:center;min-height:48px}.mat-mdc-menu-item:focus{outline:none}[dir=rtl] .mat-mdc-menu-item,.mat-mdc-menu-item[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color)}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color)}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item .mat-icon{margin-right:16px}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:16px}.mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color)}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color)}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-mdc-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-mdc-menu-submenu-icon{fill:CanvasText}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[Jr.transformMenu,Jr.fadeInItems]},changeDetection:0}),c})();const wt=new s.OlP("mat-menu-scroll-strategy"),Wn={provide:wt,deps:[Ys.aV],useFactory:function Qt(C){return()=>C.scrollStrategies.reposition()}},Zn=(0,Lo.i$)({passive:!0});let Hn=(()=>{var C;class c{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(d){this.menu=d}get menu(){return this._menu}set menu(d){var h;d!==this._menu&&(this._menu=d,this._menuCloseSubscription.unsubscribe(),d&&(this._menuCloseSubscription=d.close.subscribe(Y=>{this._destroyMenu(Y),("click"===Y||"tab"===Y)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(Y)})),null===(h=this._menuItemInstance)||void 0===h||h._setTriggersSubmenu(this.triggersSubmenu()))}constructor(d,h,Y,pe,Pe,ct,Tt,dn,rn){this._overlay=d,this._element=h,this._viewContainerRef=Y,this._menuItemInstance=ct,this._dir=Tt,this._focusMonitor=dn,this._ngZone=rn,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Hi.w.EMPTY,this._hoverSubscription=Hi.w.EMPTY,this._menuCloseSubscription=Hi.w.EMPTY,this._changeDetectorRef=(0,s.f3M)(s.sBO),this._handleTouchStart=In=>{(0,qr.yG)(In)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new s.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new s.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=pe,this._parentMaterialMenu=Pe instanceof De?Pe:void 0,h.nativeElement.addEventListener("touchstart",this._handleTouchStart,Zn)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Zn),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const d=this.menu;if(this._menuOpen||!d)return;const h=this._createOverlay(d),Y=h.getConfig(),pe=Y.positionStrategy;this._setPosition(d,pe),Y.hasBackdrop=null==d.hasBackdrop?!this.triggersSubmenu():d.hasBackdrop,h.attach(this._getPortal(d)),d.lazyContent&&d.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(d),d instanceof De&&(d._startAnimation(),d._directDescendantItems.changes.pipe((0,Rs.R)(d.close)).subscribe(()=>{pe.withLockedPosition(!1).reapplyLastPosition(),pe.withLockedPosition(!0)}))}closeMenu(){var d;null===(d=this.menu)||void 0===d||d.close.emit()}focus(d,h){this._focusMonitor&&d?this._focusMonitor.focusVia(this._element,d,h):this._element.nativeElement.focus(h)}updatePosition(){var d;null===(d=this._overlayRef)||void 0===d||d.updatePosition()}_destroyMenu(d){if(!this._overlayRef||!this.menuOpen)return;const h=this.menu;var Y;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===d||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,h instanceof De?(h._resetAnimation(),h.lazyContent?h._animationDone.pipe((0,$r.h)(pe=>"void"===pe.toState),(0,oo.q)(1),(0,Rs.R)(h.lazyContent._attached)).subscribe({next:()=>h.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),null==h||null===(Y=h.lazyContent)||void 0===Y||Y.detach())}_initMenu(d){d.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,d.direction=this.dir,this._setMenuElevation(d),d.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(d){if(d.setElevation){let h=0,Y=d.parentMenu;for(;Y;)h++,Y=Y.parentMenu;d.setElevation(h)}}_setIsMenuOpen(d){d!==this._menuOpen&&(this._menuOpen=d,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(d),this._changeDetectorRef.markForCheck())}_createOverlay(d){if(!this._overlayRef){const h=this._getOverlayConfig(d);this._subscribeToPositions(d,h.positionStrategy),this._overlayRef=this._overlay.create(h),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(d){return new Ys.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:d.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:d.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(d,h){d.setPositionClasses&&h.positionChanges.subscribe(Y=>{const pe="start"===Y.connectionPair.overlayX?"after":"before",Pe="top"===Y.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>d.setPositionClasses(pe,Pe)):d.setPositionClasses(pe,Pe)})}_setPosition(d,h){let[Y,pe]="before"===d.xPosition?["end","start"]:["start","end"],[Pe,ct]="above"===d.yPosition?["bottom","top"]:["top","bottom"],[Tt,dn]=[Pe,ct],[rn,In]=[Y,pe],Mn=0;if(this.triggersSubmenu()){if(In=Y="before"===d.xPosition?"start":"end",pe=rn="end"===Y?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const Sn=this._parentMaterialMenu.items.first;this._parentInnerPadding=Sn?Sn._getHostElement().offsetTop:0}Mn="bottom"===Pe?this._parentInnerPadding:-this._parentInnerPadding}}else d.overlapTrigger||(Tt="top"===Pe?"bottom":"top",dn="top"===ct?"bottom":"top");h.withPositions([{originX:Y,originY:Tt,overlayX:rn,overlayY:Pe,offsetY:Mn},{originX:pe,originY:Tt,overlayX:In,overlayY:Pe,offsetY:Mn},{originX:Y,originY:dn,overlayX:rn,overlayY:ct,offsetY:-Mn},{originX:pe,originY:dn,overlayX:In,overlayY:ct,offsetY:-Mn}])}_menuClosingActions(){const d=this._overlayRef.backdropClick(),h=this._overlayRef.detachments(),Y=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,js.of)(),pe=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,$r.h)(Pe=>Pe!==this._menuItemInstance),(0,$r.h)(()=>this._menuOpen)):(0,js.of)();return(0,Gr.T)(d,Y,pe,h)}_handleMousedown(d){(0,qr.X6)(d)||(this._openedBy=0===d.button?"mouse":void 0,this.triggersSubmenu()&&d.preventDefault())}_handleKeydown(d){const h=d.keyCode;(h===Gi.K5||h===Gi.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(h===Gi.SV&&"ltr"===this.dir||h===Gi.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(d){this.triggersSubmenu()?(d.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,$r.h)(d=>d===this._menuItemInstance&&!d.disabled),(0,Ps.g)(0,rr.e)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof De&&this.menu._isAnimating?this.menu._animationDone.pipe((0,oo.q)(1),(0,Ps.g)(0,rr.e),(0,Rs.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(d){return(!this._portal||this._portal.templateRef!==d.templateRef)&&(this._portal=new kr.UE(d.templateRef,this._viewContainerRef)),this._portal}}return(C=c).\u0275fac=function(d){return new(d||C)(s.Y36(Ys.aV),s.Y36(s.SBq),s.Y36(s.s_b),s.Y36(wt),s.Y36(Fs,8),s.Y36(Ts,10),s.Y36(Eo.Is,8),s.Y36(qr.tE),s.Y36(s.R0b))},C.\u0275dir=s.lG2({type:C,hostVars:3,hostBindings:function(d,h){1&d&&s.NdJ("click",function(pe){return h._handleClick(pe)})("mousedown",function(pe){return h._handleMousedown(pe)})("keydown",function(pe){return h._handleKeydown(pe)}),2&d&&s.uIk("aria-haspopup",h.menu?"menu":null)("aria-expanded",h.menuOpen)("aria-controls",h.menuOpen?h.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),c})(),bi=(()=>{var C;class c extends Hn{}return(C=c).\u0275fac=function(){let u;return function(h){return(u||(u=s.n5z(C)))(h||C)}}(),C.\u0275dir=s.lG2({type:C,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],exportAs:["matMenuTrigger"],features:[s.qOj]}),c})(),hi=(()=>{var C;class c{}return(C=c).\u0275fac=function(d){return new(d||C)},C.\u0275mod=s.oAB({type:C}),C.\u0275inj=s.cJS({providers:[Wn],imports:[yi.ez,Mr.si,Mr.BQ,Ys.U8,ao.ZD,Mr.BQ]}),c})();var li=p(4170),sr=p(4516),Br=p(4913);class Xr{constructor(c,u="/assets/i18n/",d=".json"){this.http=c,this.prefix=u,this.suffix=d}getTranslation(c){return this.http.get(`${this.prefix}${c}${this.suffix}`)}}var or=p(9515),ji=p(4807),Vr=p(2425),ar=p(5529),Gn=p(1488),Yi=p(21),lr=p(5295);let cr=(()=>{var C;class c{constructor(d){this.authService=d}canActivate(){let d;return d=Yi.V.getCstUser(),!!d.admin||(this.authService.navigateUserToFirstCustomerFirstPage(),!1)}}return(C=c).\u0275fac=function(d){return new(d||C)(s.LFG(lr.e))},C.\u0275prov=s.Yz7({token:C,factory:C.\u0275fac}),c})(),Vo=(()=>{var C;class c{constructor(d){this.authService=d}canActivate(){return!m.N.SSOAuth&&!this.authService.userLoggedIn()||(this.authService.navigateUserToFirstCustomerFirstPage(),!1)}}return(C=c).\u0275fac=function(d){return new(d||C)(s.LFG(lr.e))},C.\u0275prov=s.Yz7({token:C,factory:C.\u0275fac}),c})();var ni=p(6342),Ns=p(1406);let yr=(()=>{var C;class c{constructor(d){this.authService=d}submit(){this.authService.localLogin(this.username,this.password).subscribe(()=>this.authService.getCurrentUserDetails(()=>{this.authService.userLoggedIn()&&!this.authService.isCustomerPage()&&this.authService.navigateUserToFirstCustomerFirstPage()}))}}return(C=c).\u0275fac=function(d){return new(d||C)(s.Y36(lr.e))},C.\u0275cmp=s.Xpm({type:C,selectors:[["login"]],decls:12,vars:2,consts:[[1,"dialog"],["role","form"],["id","username","matInput","","name","username","placeholder","Username","type","text",1,"form-control",3,"ngModel","ngModelChange"],["id","password","matInput","","name","password","placeholder","Password","type","password",1,"form-control",3,"ngModel","ngModelChange"],["type","submit","id","logIn",1,"btn","btn-primary",3,"click"]],template:function(d,h){1&d&&(s.TgZ(0,"div",0)(1,"h2"),s._uU(2,"Login"),s.qZA(),s.TgZ(3,"form",1)(4,"div")(5,"mat-form-field")(6,"input",2),s.NdJ("ngModelChange",function(pe){return h.username=pe}),s.qZA()()(),s.TgZ(7,"div")(8,"mat-form-field")(9,"input",3),s.NdJ("ngModelChange",function(pe){return h.password=pe}),s.qZA()()(),s.TgZ(10,"button",4),s.NdJ("click",function(){return h.submit()}),s._uU(11,"Submit"),s.qZA()()()),2&d&&(s.xp6(6),s.Q6J("ngModel",h.username),s.xp6(3),s.Q6J("ngModel",h.password))},dependencies:[_i._Y,_i.Fj,_i.JJ,_i.JL,_i.On,_i.F,li.KE,sr.Nt],encapsulation:2}),c})();const hl=[{path:ni.g.LOGIN,component:yr,canActivate:[Vo]},{path:ni.g.PUBLIC,loadChildren:()=>Promise.all([p.e(265),p.e(441),p.e(493)]).then(p.bind(p,493)).then(C=>C.PublicModule)},{path:ni.g.DEFAULT,component:yr,canActivate:[Vo]},{matcher:function xr(C){const c=Yi.V.getCstUser(),u=null==c?void 0:c.customers.map(d=>d.customerCode);return C.length&&null!=u&&u.includes(C[0].path)?{consumed:[C[0]],posParams:{customerCode:new Gn.bq(C[0].path,{})}}:null},children:[{path:ni.g.OPERATOR,loadChildren:()=>Promise.all([p.e(265),p.e(441),p.e(592),p.e(563)]).then(p.bind(p,563)).then(C=>C.OperatorModule)},{path:"**",component:Ns.r}]},{path:ni.g.ADMIN,loadChildren:()=>Promise.all([p.e(265),p.e(592),p.e(319)]).then(p.bind(p,8319)).then(C=>C.AdminModule),canActivate:[cr]},{path:"**",component:Ns.r}];let sa=(()=>{var C;class c{}return(C=c).\u0275fac=function(d){return new(d||C)},C.\u0275mod=s.oAB({type:C}),C.\u0275inj=s.cJS({imports:[Gn.Bz.forRoot(hl,{onSameUrlNavigation:"reload"}),Gn.Bz]}),c})();var Er=p(6124),oa=p(6743),aa=p(2763),Ls=p(2561),la=p(6168),zs=p(421),ca=p(9604),wn=p(9600),Uo=p(5133),fl=p(2420),Ho=p(6776),es=p(2068),ts=function(C){return C.ORDER_REFERENCE="ORDER_REF",C.ORIGIN_CITY="ORIGIN_CITY",C.ORIGIN_COUNTRY="ORIGIN_COUNTRY",C.ORIGIN_LOCATION_NAME="ORIGIN_LOCATION_NAME",C.ORIGIN_LOCATION_CODE="ORIGIN_LOCATION_CODE",C.DESTINATION_CITY="DESTINATION_CITY",C.DESTINATION_COUNTRY="DESTINATION_COUNTRY",C.DESTINATION_LOCATION_NAME="DESTINATION_LOCATION_NAME",C.DESTINATION_LOCATION_CODE="DESTINATION_LOCATION_CODE",C}(ts||{});class pl{constructor(){this.priorities=Object.keys(ni.g.PRIORITIES),this.markedForAutoClose=["No","Yes"],this.createdBy=["External","LCC"],this.locationType=[{label:"City",code:"city"},{label:"Country",code:"country"},{label:"Location name",code:"name"},{label:"Location code",code:"code"}],this.dateTypes=[{label:"Creation date",code:"creationDate"},{label:"Due date",code:"dueTime"}]}}var Or=p(7567),da=p(4793);const ua=["count",""];let jo=(()=>{var C;class c{constructor(d,h,Y,pe){this.router=d,this.countService=h,this.filterService=Y,this.authService=pe,this.constants=ni.g}ngOnInit(){this.updateCount$&&this.updateCount$.subscribe(()=>{this.updateCounts()}),this.updateCounts()}updateCounts(){this.countService.getCounts().subscribe(d=>{this.countService.setTotalCounts(d),this.countInbox=this.countService.inboxCountText(),this.countRequests=this.countService.requestsCountText(),this.feedbackTotalCount=this.countService.feedbackCountTotalText(),this.feedbackCountTooltip=this.countService.feedbackCountTooltipText()})}ngOnDestroy(){var d;null===(d=this.navigationEnd$)||void 0===d||d.unsubscribe()}}return(C=c).\u0275fac=function(d){return new(d||C)(s.Y36(Gn.F0),s.Y36(da.w),s.Y36(zs.i),s.Y36(lr.e))},C.\u0275cmp=s.Xpm({type:C,selectors:[["","count",""]],inputs:{updateCount$:"updateCount$"},attrs:ua,decls:13,vars:6,consts:[[1,"filter__request_count"],[1,"filter__count",3,"click"],[1,"filter__count_limit",3,"title"],[1,"filter__count","feedbacks",3,"title","click"],[1,"filter__count_limit"]],template:function(d,h){1&d&&(s.TgZ(0,"div",0)(1,"span",1),s.NdJ("click",function(){return h.authService.navigateToSelectedCustomerAndRolePage([h.constants.INBOX])}),s.TgZ(2,"p",2),s._uU(3),s.qZA()(),s._uU(4," inbox "),s.TgZ(5,"span",1),s.NdJ("click",function(){return h.authService.navigateToSelectedCustomerAndRolePage([h.constants.REQUESTS])}),s.TgZ(6,"p",2),s._uU(7),s.qZA()(),s._uU(8," requests "),s.TgZ(9,"span",3),s.NdJ("click",function(){return h.filterService.applyFeedbackFiltering(h.constants.OPERATOR,h.constants.REQUESTS),h.authService.navigateToSelectedCustomerAndRolePageWithFeedbacks([h.constants.REQUESTS])}),s.TgZ(10,"p",4),s._uU(11),s.qZA()(),s._uU(12," feedbacks\n"),s.qZA()),2&d&&(s.xp6(2),s.s9C("title",h.countInbox),s.xp6(1),s.Oqu(h.countInbox),s.xp6(3),s.s9C("title",h.countRequests),s.xp6(1),s.Oqu(h.countRequests),s.xp6(2),s.s9C("title",h.feedbackCountTooltip),s.xp6(2),s.Oqu(h.feedbackTotalCount))},encapsulation:2}),c})();var ms=p(8034),ha=p(2596);function Vt(C,c){if(1&C){const u=s.EpF();s.TgZ(0,"span",72),s.NdJ("click",function(){s.CHM(u);const h=s.oxw();return s.KtG(h.switchSorting())}),s._uU(1),s.qZA()}if(2&C){const u=s.oxw();s.xp6(1),s.Oqu(u.constants.SORTING_LABEL[u.filter.sortingParameter])}}function ci(C,c){if(1&C&&(s.TgZ(0,"span"),s._uU(1),s.qZA()),2&C){const u=s.oxw();s.xp6(1),s.Oqu(u.constants.SORTING_LABEL[u.constants.CREATION_DATE])}}function Yo(C,c){if(1&C&&(s.TgZ(0,"button",73),s._uU(1,"Saved filters"),s.qZA()),2&C){s.oxw();const u=s.MAs(123);s.Q6J("matMenuTriggerFor",u)}}function fa(C,c){if(1&C){const u=s.EpF();s.TgZ(0,"ng-select",74),s.NdJ("ngModelChange",function(h){s.CHM(u);const Y=s.oxw();return s.KtG(Y.filter.dateType=h)}),s.qZA()}if(2&C){const u=s.oxw();s.Q6J("items",null==u.filterValuesStatic?null:u.filterValuesStatic.dateTypes)("searchable",!1)("clearable",!1)("ngModel",u.filter.dateType)}}function dr(C,c){1&C&&(s.TgZ(0,"span")(1,"b",75),s._uU(2,"Creation date"),s.qZA()())}function ml(C,c){1&C&&(s.TgZ(0,"div",16),s._UZ(1,"span",55),s.TgZ(2,"span"),s._uU(3,"Status"),s.qZA()())}function Co(C,c){if(1&C){const u=s.EpF();s.ynx(0),s.TgZ(1,"button",81),s.NdJ("click",function(){s.CHM(u);const h=s.oxw(2);return s.KtG(h.filter.feedback=!h.filter.feedback)}),s._uU(2,"FDB "),s.qZA(),s.BQk()}if(2&C){const u=s.oxw(2);s.xp6(1),s.Tol(u.filter.feedback?"button normal blue-dark sel":"button normal blue-dark")}}function ns(C,c){if(1&C){const u=s.EpF();s.TgZ(0,"div",56)(1,"div",57)(2,"button",76),s.NdJ("click",function(){s.CHM(u);const h=s.oxw();return s.KtG(h.filter.hasEscalation=!h.filter.hasEscalation)}),s._uU(3,"ESC "),s.qZA(),s.TgZ(4,"button",77),s.NdJ("click",function(){s.CHM(u);const h=s.oxw();return s.KtG(h.filter.overdue=!h.filter.overdue)}),s._uU(5,"OVD "),s.qZA(),s.TgZ(6,"button",78),s.NdJ("click",function(){s.CHM(u);const h=s.oxw();return s.KtG(h.filter.due=!h.filter.due)}),s._uU(7,"DUE "),s.qZA(),s.TgZ(8,"button",79),s.NdJ("click",function(){s.CHM(u);const h=s.oxw();return s.KtG(h.filter.updated=!h.filter.updated)}),s._uU(9,"UPD "),s.qZA(),s.TgZ(10,"button",80),s.NdJ("click",function(){s.CHM(u);const h=s.oxw();return s.KtG(h.filter.ok=!h.filter.ok)}),s._uU(11,"OK "),s.qZA(),s.YNc(12,Co,3,2,"ng-container",9),s.qZA()()}if(2&C){const u=s.oxw();s.xp6(2),s.Tol(u.filter.hasEscalation?"button filter":"button normal"),s.xp6(2),s.Tol(u.filter.overdue?"button filter":"button normal"),s.xp6(2),s.Tol(u.filter.due?"button filter":"button normal"),s.xp6(2),s.Tol(u.filter.updated?"button normal blue-dark sel":"button normal blue-dark"),s.xp6(2),s.Tol(u.filter.ok?"button normal ok sel":"button normal ok"),s.xp6(2),s.Q6J("ngIf",u.menuRequestContext===u.menuRequestContextEnum.REQUESTS)}}function pa(C,c){if(1&C&&(s.TgZ(0,"mat-hint",82),s._uU(1),s.qZA()),2&C){const u=s.oxw(),d=s.MAs(110);s.xp6(1),s.Oqu(u.filterNameValid(d.value))}}function To(C,c){if(1&C){const u=s.EpF();s.TgZ(0,"div",83)(1,"button",65),s.NdJ("click",function(){s.CHM(u);const h=s.oxw();return s.KtG(h.updateFilter(h.filter))}),s._uU(2),s.qZA()()}if(2&C){const u=s.oxw();s.xp6(2),s.hij("Update filter: ",u.filter.filterName,"")}}function gl(C,c){if(1&C){const u=s.EpF();s.TgZ(0,"ul")(1,"li")(2,"button",84),s.NdJ("click",function(){const Y=s.CHM(u).$implicit,pe=s.oxw();return s.KtG(pe.getSavedFilterAndApply(Y))}),s._uU(3),s.qZA(),s.TgZ(4,"span",85),s.NdJ("click",function(){const Y=s.CHM(u).$implicit,pe=s.oxw();return s.KtG(pe.deleteUserFilterByName(Y))}),s._uU(5,"\xd7"),s.qZA()()()}if(2&C){const u=c.$implicit;s.xp6(3),s.Oqu(u)}}function lc(C,c){if(1&C){const u=s.EpF();s.TgZ(0,"div",87)(1,"button",84),s.NdJ("click",function(){const Y=s.CHM(u).$implicit,pe=s.oxw(2);return s.KtG(pe.getSavedFilterAndApply(Y))}),s._uU(2),s.qZA(),s.TgZ(3,"span",88),s.NdJ("click",function(){const Y=s.CHM(u).$implicit,pe=s.oxw(2);return s.KtG(pe.deleteUserFilterByName(Y))}),s._uU(4,"\xd7"),s.qZA()()}if(2&C){const u=c.$implicit;s.xp6(2),s.Oqu(u)}}function ma(C,c){if(1&C&&s.YNc(0,lc,5,1,"div",86),2&C){const u=s.oxw();s.Q6J("ngForOf",u.savedFilterNames)}}const gr=function(C,c){return{"sort-amount-asc":C,"sort-amount-desc":c}},gs=function(C,c){return{sel:C,filtered:c}};let ga=(()=>{var C;class c{set page(d){this._page=d,this.setMenuRequestContextForPage(d),this.clearFilterValues()}get page(){return this._page}constructor(d,h,Y,pe,Pe){this.filterService=d,this.countService=h,this.router=Y,this.authService=pe,this.errorService=Pe,this.updateCountSource=new Es.xQ,this.startDate=new _i.NI,this.endDate=new _i.NI,this.searchControl=new _i.NI,this.filterValuesStatic=new pl,this.constants=ni.g,this.role=ni.g.OPERATOR,this.savedFilterNames=[],this.origin="origin",this.destination="destination",this.reference="reference",this.menuRequestContextEnum=Or.V,this.filterListener=(0,Gr.T)(this.filterService.inboxFilter$,this.filterService.requestsPageFilter$,this.filterService.automatedPageFilter$),this.debounceTime=1e3,this.startDateFilter=ct=>this.filter.dateType!==ni.g.CREATION_DATE||(ct||new Date)<=new Date,this.endDateFilter=ct=>{const Tt=ct||new Date;return this.filter.dateType===ni.g.CREATION_DATE?!!this.filter.dateFrom&&Tt<=new Date&&Tt>=new Date(this.filter.dateFrom):Tt>=new Date(this.filter.dateFrom)}}ngOnInit(){this.filter=this.filterService.getFilter(this.role,this.page),this.initFilterMenu(),this.filter$=this.filterListener.subscribe(d=>{this.filter=d}),this.updateCount$=this.countService.updateCount$.subscribe(()=>{this.updateCountSource.next(void 0)}),this.customerChanged$=this.filterService.customerChanged$.subscribe(()=>{this.clearFilterValues(),this.getUserFilterNames()})}ngOnDestroy(){var d,h,Y;null===(d=this.filter$)||void 0===d||d.unsubscribe(),null===(h=this.updateCount$)||void 0===h||h.unsubscribe(),null===(Y=this.customerChanged$)||void 0===Y||Y.unsubscribe()}getFilterValues(){this.extendedFilterOpened=!this.extendedFilterOpened,this.filterValues||(this.loadingFilterValues=!0,this.filterService.getFilterValues(this.menuRequestContext).subscribe(d=>{this.filterValues=d,this.menuRequestContext===Or.V.INBOX&&(this.filterValues.lcc=this.filterValues.lcc.concat([this.constants.NO_LCC_ASSIGNED]).sort((h,Y)=>h.localeCompare(Y))),this.menuRequestContext===Or.V.AUTOMATED&&(this.filterValues.stepNames=this.filterValues.stepNames.concat([this.constants.STEP_INBOX]).sort((h,Y)=>h.localeCompare(Y))),this.loadingFilterValues=!1},d=>{this.errorService.handleErrorsAndToastr(d),this.extendedFilterOpened=!1,this.loadingFilterValues=!1}))}search(){this.extendedFilterOpened=!1,this.filter.filterName=null,this.filterService.filterList(this.role,this.page,this.filter),this.updateCountSource.next(void 0)}onGetFilterRequestSearchChange(d){var h;(null==d||null===(h=d.term)||void 0===h?void 0:h.length)>=c.minCharacterLength?(this.loadingRequestSearch=!0,this.filterService.getRequestKeys(d.term,this.menuRequestContext===Or.V.INBOX).pipe((0,fl.b)(()=>this.loadingRequestSearch=!1)).subscribe(Y=>{this.filterValues.extendedRequestKeys=Y})):this.filterValues.extendedRequestKeys.length>0&&(this.filterValues.extendedRequestKeys=[])}onGetFilterQualifierChange(d){var h;(null==d||null===(h=d.term)||void 0===h?void 0:h.length)>=c.minCharacterLengthQualifiers?(this.loadingQualifiers=!0,this.filterService.getQualifiers(d.term,this.menuRequestContext===Or.V.INBOX).pipe((0,fl.b)(()=>this.loadingQualifiers=!1)).subscribe(Y=>{this.filterValues.qualifiers=Y})):this.filterValues.qualifiers=[]}onFilterSearchChange(d,h){var Y;if((null==d||null===(Y=d.term)||void 0===Y?void 0:Y.length)>=c.minCharacterLength){this.changeLoadingStateTo(!0,h);const pe=this.getFilterField(h);this.filterService.getOrderData(d.term,pe).pipe((0,fl.b)(()=>this.changeLoadingStateTo(!1,h))).subscribe(Pe=>{this.assignValue(h,Pe)},Pe=>{this.errorService.handleErrorsAndToastr(Pe),this.loadingOrderSearch=!1,this.loadingOriginSearch=!1,this.loadingDestination=!1})}else h===this.reference&&this.filterValues.references.length>0?this.filterValues.references=[]:h===this.origin&&this.filterValues.origins.length>0?this.filterValues.origins=[]:h===this.destination&&this.filterValues.destinations.length>0&&(this.filterValues.destinations=[])}onLocationTypeChange(){this.filter.originsList=[],this.filter.destinationsList=[],this.filterValues.destinations=[],this.filterValues.origins=[]}toggleSort(){this.filter.sortAscending=!this.filter.sortAscending,this.filterService.filterList(this.role,this.page,this.filter),this.updateCountSource.next(void 0)}resetFilter(){this.extendedFilterOpened=!1,this.resetFormControlValues(),this.filterService.filterList(this.role,this.page,new Ls.w(this.page)),this.authService.navigateToSelectedCustomerAndRolePage([this.page]),this.updateCountSource.next(void 0)}switchSorting(){this.filter.sortingParameter=this.filter.sortingParameter===ni.g.CREATION_DATE?ni.g.DUE_TIME:ni.g.CREATION_DATE,this.filterService.filterList(this.role,this.page,this.filter),this.updateCountSource.next(void 0)}getSavedFilterAndApply(d){this.filterService.getUserFilterByName(d,this.menuRequestContext).subscribe(h=>{h.sortingParameter=this.menuRequestContext!==Or.V.REQUESTS?ni.g.CREATION_DATE:ni.g.DUE_TIME,this.startDate.setValue(h.dateFrom),this.endDate.setValue(h.dateTo),this.filterService.filterList(this.role,this.page,h),this.updateCountSource.next(void 0),this.extendedFilterOpened=!1},h=>{this.errorService.handleErrorsAndToastr(h)})}saveUserFilter(d){this.filterService.saveUserFilter(d).subscribe(()=>{this.resetFilter(),this.getUserFilterNames()},h=>{this.errorService.handleErrorsAndToastr(h)})}getUserFilterNames(){this.filterService.getUserFilterNames().subscribe(d=>{this.savedFilterNames=d},d=>{this.errorService.handleErrorsAndToastr(d)})}updateFilter(d){this.filter.dateFrom=this.startDate.value,this.filter.dateTo=this.endDate.value,this.filterService.updateFilterByName(d).subscribe(()=>{this.resetFilter(),this.getUserFilterNames()},h=>{this.errorService.handleErrorsAndToastr(h)})}deleteUserFilterByName(d){this.filterService.deleteUserFilterByName(d).subscribe(()=>{this.resetFilter(),this.getUserFilterNames()})}filterNameValid(d){return!this.savedFilterNames.length&&d.trim().length<=50&&d.trim().length>2?"":this.savedFilterNames.includes(d)?"Please pick unique filter name to save new filter, or update existing below":d.trim().length>50?"Please pick shorter name":d.trim().length<2?"Please pick longer name":""}setStartDate(d){this.filter.dateFrom=d,this.endDate.setValue(void 0)}setEndDate(d){this.filter.dateTo=d}assignValue(d,h){d===this.origin?this.filterValues.origins=h:d===this.destination?this.filterValues.destinations=h:this.filterValues.references=h}setMenuRequestContextForPage(d){switch(d){case ni.g.INBOX:this.menuRequestContext=Or.V.INBOX;break;case ni.g.AUTOMATED:this.menuRequestContext=Or.V.AUTOMATED;break;case ni.g.REQUESTS:this.menuRequestContext=Or.V.REQUESTS}}applyFilter(d){this.filter.searchString=d,this.filterService.filterList(this.role,this.page,this.filter),this.updateCountSource.next(void 0)}getFilterField(d){const h=this.filter.locationType;if(d===this.origin){if("code"===h)return ts.ORIGIN_LOCATION_CODE;if("country"===h)return ts.ORIGIN_COUNTRY;if("city"===h)return ts.ORIGIN_CITY;if("name"===h)return ts.ORIGIN_LOCATION_NAME}if(d===this.destination){if("code"===h)return ts.DESTINATION_LOCATION_CODE;if("country"===h)return ts.DESTINATION_COUNTRY;if("city"===h)return ts.DESTINATION_CITY;if("name"===h)return ts.DESTINATION_LOCATION_NAME}return ts.ORDER_REFERENCE}changeLoadingStateTo(d,h){h===this.origin?this.loadingOriginSearch=d:h===this.destination?this.loadingDestination=d:this.loadingOrderSearch=d}initFilterMenu(){this.initFormControls(),this.getUserFilterNames()}initFormControls(){this.startDate.setValue(this.filter.dateFrom),this.endDate.setValue(this.filter.dateTo),this.searchControl.setValue(this.filter.searchString),this.searchControl.valueChanges.pipe((0,Ho.b)(this.debounceTime),(0,es.x)()).subscribe(d=>this.applyFilter(d))}resetFormControlValues(){this.startDate.setValue(void 0),this.endDate.setValue(void 0),this.searchControl.setValue(void 0,{emitEvent:!1})}clearFilterValues(){this.filterValues&&(this.extendedFilterOpened=!1,this.filterValues=void 0)}}return(C=c).minCharacterLength=3,C.minCharacterLengthQualifiers=1,C.\u0275fac=function(d){return new(d||C)(s.Y36(zs.i),s.Y36(da.w),s.Y36(Gn.F0),s.Y36(lr.e),s.Y36(wn.T))},C.\u0275cmp=s.Xpm({type:C,selectors:[["request-filter"]],inputs:{page:"page"},decls:125,vars:125,consts:[[1,"filer__search_count_section"],[1,"filter__fill"],[1,"fas","fa-search","filter-icon"],["placeholder","Enter search term to filter requests","type","text",3,"formControl"],["count","",1,"count__align",3,"updateCount$"],[1,"filter__upload","threecol"],["id","csvUpload",1,"filter__upload-btn",3,"click"],[1,"threecol"],["style","cursor: pointer;",3,"click",4,"ngIf"],[4,"ngIf"],[1,"icon",3,"ngClass","click"],[3,"ngClass","click"],["class","saved-filters",3,"matMenuTriggerFor",4,"ngIf"],[1,"dialog","filter","extended"],[1,"filter__wrapper"],[1,"filter__layout","general"],[1,"filter__legend"],[1,"icon","settings"],[1,"filter__fields"],[1,"filter__input","general"],["placeholder","Request ID","name","extendedRequestKey","id","extendedRequestKey",3,"items","multiple","loading","ngModel","search","blur","ngModelChange"],["placeholder","Current step","name","status","id","status",3,"items","disabled","multiple","loading","ngModel","ngModelChange"],["placeholder","Priority","name","priority","id","priority",3,"items","multiple","ngModel","ngModelChange"],["placeholder","Request type","name","requestType","id","requestType",3,"items","multiple","loading","ngModel","ngModelChange"],["placeholder","Reason code","name","reasonCodeL1","id","reasonCodeL1",3,"items","multiple","loading","ngModel","ngModelChange"],["placeholder","Requester","name","requester","id","requester",3,"items","multiple","loading","ngModel","ngModelChange"],["placeholder","Involved party","name","involvedParty","id","involvedParty",3,"items","multiple","loading","ngModel","ngModelChange"],["placeholder","Handled by group","name","handlerGroup","id","handlerGroup",3,"items","multiple","loading","ngModel","ngModelChange"],["placeholder","Requesting party","name","requestingParty","id","requestingParty",3,"items","multiple","loading","ngModel","ngModelChange"],["placeholder","Handled by","name","handledBy","id","handledBy",3,"items","multiple","loading","ngModel","ngModelChange"],["placeholder","LCC","name","lcc","id","lcc",3,"items","multiple","loading","ngModel","ngModelChange"],["placeholder","Created by","name","requesterOrganization","id","requesterOrganization",3,"items","multiple","ngModel","ngModelChange"],["placeholder","Marked for auto close","name","markedForAutoClose","id","markedForAutoClose",3,"items","disabled","searchable","ngModel","ngModelChange"],["placeholder","Qualifier","name","qualifiers","id","qualifiers",3,"items","multiple","loading","ngModel","blur","search","ngModelChange"],[1,"filter__layout","shipments"],[1,"icon","truck"],[1,"filter__input","shipments"],["placeholder","Shipment/order ID","name","shipmentId","id","shipmentId",3,"items","multiple","addTag","loading","ngModel","search","blur","ngModelChange"],["placeholder","Mode of transport","name","modeOfTransport","id","modeOfTransport",3,"items","multiple","loading","ngModel","ngModelChange"],["bindValue","code","placeholder","Location type","name","locationType","id","locationType",3,"items","searchable","clearable","ngModel","change","ngModelChange"],["placeholder","Origin","name","origin","id","origin",3,"items","disabled","multiple","loading","ngModel","search","blur","ngModelChange"],["placeholder","Destination","name","destination","id","destination",3,"items","disabled","multiple","loading","ngModel","search","blur","ngModelChange"],[1,"filter__layout","date"],[1,"icon","calendar"],[1,"filter__fields","date"],["placeholder","Date type","bindValue","code","name","dateType","id","dateType",3,"items","searchable","clearable","ngModel","ngModelChange",4,"ngIf"],["appearance","fill",3,"click"],["disabled","","matInput","",3,"formControl","matDatepickerFilter","matDatepicker","ngModel","dateChange","ngModelChange"],["matSuffix","",3,"for"],["disabled","false"],["picker1",""],["disabled","","matInput","",3,"formControl","matDatepickerFilter","matDatepicker","dateChange"],["picker2",""],["class","filter__legend",4,"ngIf"],["class","filter__input quick",4,"ngIf"],[1,"icon","params"],[1,"filter__input","quick"],[1,"filter__status"],["id","openButton","matTooltip","Open","matTooltipPosition","below",3,"click"],["matTooltip","Closed","matTooltipPosition","below",3,"click"],["matTooltip","Canceled","matTooltipPosition","below",3,"click"],[1,"filter__footer"],["matInput","","name","filterName","placeholder","Enter filter name to save",3,"disabled","ngModel","maxLength","ngModelChange"],["filterName",""],["style","color: red",4,"ngIf"],[1,"button",3,"click"],[1,"button",3,"disabled","click"],["class","filter__footer update_filter",4,"ngIf"],["identifier","userFilters",3,"customClass"],[4,"ngFor","ngForOf"],["menu","matMenu"],["matMenuContent",""],[2,"cursor","pointer",3,"click"],[1,"saved-filters",3,"matMenuTriggerFor"],["placeholder","Date type","bindValue","code","name","dateType","id","dateType",3,"items","searchable","clearable","ngModel","ngModelChange"],[2,"color","#002b55"],["matTooltip","Escalated","matTooltipPosition","below",3,"click"],["matTooltip","Overdue","matTooltipPosition","below",3,"click"],["matTooltip","Due","matTooltipPosition","below",3,"click"],["matTooltip","Updated","matTooltipPosition","below",3,"click"],["matTooltip","Ok","matTooltipPosition","below",3,"click"],["matTooltip","Feedback","matTooltipPosition","below",3,"click"],[2,"color","red"],[1,"filter__footer","update_filter"],[3,"click"],[1,"delete-button",2,"color","red","margin-right","1em","cursor","pointer",3,"click"],["class","saved__filters","mat-menu-item","",4,"ngFor","ngForOf"],["mat-menu-item","",1,"saved__filters"],[1,"delete-button",3,"click"]],template:function(d,h){if(1&d){const Y=s.EpF();s.ynx(0),s.TgZ(1,"div",0)(2,"span",1),s._UZ(3,"span",2)(4,"input",3),s.qZA(),s._UZ(5,"div",4),s.qZA(),s.TgZ(6,"div",5)(7,"button",6),s.NdJ("click",function(){return h.authService.navigateToSelectedCustomerAndRolePage([h.constants.CSV])}),s._uU(8,"Upload CSV "),s.qZA()(),s.TgZ(9,"div",7),s.YNc(10,Vt,2,1,"span",8),s.YNc(11,ci,2,1,"span",9),s.TgZ(12,"div",10),s.NdJ("click",function(){return h.toggleSort()}),s.qZA(),s.TgZ(13,"button",11),s.NdJ("click",function(){return h.getFilterValues()}),s._uU(14,"Filter "),s.qZA(),s.YNc(15,Yo,2,1,"button",12),s.qZA(),s.TgZ(16,"div",13)(17,"form",14)(18,"div",15)(19,"div",16),s._UZ(20,"span",17),s.TgZ(21,"span"),s._uU(22,"General details"),s.qZA()(),s.TgZ(23,"ul",18)(24,"li",19)(25,"ng-select",20),s.NdJ("search",function(Pe){return h.onGetFilterRequestSearchChange(Pe)})("blur",function(){return h.filterValues.extendedRequestKeys=[]})("ngModelChange",function(Pe){return h.filter.extendedRequestKeys=Pe}),s.qZA()(),s.TgZ(26,"li",19)(27,"ng-select",21),s.NdJ("ngModelChange",function(Pe){return h.filter.stepNames=Pe}),s.qZA()(),s.TgZ(28,"li",19)(29,"ng-select",22),s.NdJ("ngModelChange",function(Pe){return h.filter.priorities=Pe}),s.qZA()(),s.TgZ(30,"li",19)(31,"ng-select",23),s.NdJ("ngModelChange",function(Pe){return h.filter.requestTypes=Pe}),s.qZA()(),s.TgZ(32,"li",19)(33,"ng-select",24),s.NdJ("ngModelChange",function(Pe){return h.filter.reasonCodesL1=Pe}),s.qZA()(),s.TgZ(34,"li",19)(35,"ng-select",25),s.NdJ("ngModelChange",function(Pe){return h.filter.requesters=Pe}),s.qZA()(),s.TgZ(36,"li",19)(37,"ng-select",26),s.NdJ("ngModelChange",function(Pe){return h.filter.involvedParties=Pe}),s.qZA()(),s.TgZ(38,"li",19)(39,"ng-select",27),s.NdJ("ngModelChange",function(Pe){return h.filter.handlerGroups=Pe}),s.qZA()(),s.TgZ(40,"li",19)(41,"ng-select",28),s.NdJ("ngModelChange",function(Pe){return h.filter.requestingParties=Pe}),s.qZA()(),s.TgZ(42,"li",19)(43,"ng-select",29),s.NdJ("ngModelChange",function(Pe){return h.filter.handlerFullNames=Pe}),s.qZA()(),s.TgZ(44,"li",19)(45,"ng-select",30),s.NdJ("ngModelChange",function(Pe){return h.filter.lcc=Pe}),s.qZA()(),s.TgZ(46,"li",19)(47,"ng-select",31),s.NdJ("ngModelChange",function(Pe){return h.filter.requesterOrganization=Pe}),s.qZA()(),s.TgZ(48,"li",19)(49,"ng-select",32),s.NdJ("ngModelChange",function(Pe){return h.filter.markedForAutoClose=Pe}),s.qZA()(),s.TgZ(50,"li",19)(51,"ng-select",33),s.NdJ("blur",function(){return h.filterValues.qualifiers=[]})("search",function(Pe){return h.onGetFilterQualifierChange(Pe)})("ngModelChange",function(Pe){return h.filter.qualifiers=Pe}),s.qZA()()()(),s.TgZ(52,"div",34)(53,"div",16),s._UZ(54,"span",35),s.TgZ(55,"span"),s._uU(56,"Shipments / Orders"),s.qZA()(),s.TgZ(57,"ul",18)(58,"li",36)(59,"ng-select",37),s.NdJ("search",function(Pe){return h.onFilterSearchChange(Pe,h.reference)})("blur",function(){return h.filterValues.references=[]})("ngModelChange",function(Pe){return h.filter.references=Pe}),s.qZA()(),s.TgZ(60,"li",36)(61,"ng-select",38),s.NdJ("ngModelChange",function(Pe){return h.filter.modesOfTransport=Pe}),s.qZA()(),s.TgZ(62,"li",36)(63,"ng-select",39),s.NdJ("change",function(){return h.onLocationTypeChange()})("ngModelChange",function(Pe){return h.filter.locationType=Pe}),s.qZA()(),s.TgZ(64,"li",36)(65,"ng-select",40),s.NdJ("search",function(Pe){return h.onFilterSearchChange(Pe,h.origin)})("blur",function(){return h.filterValues.origins=[]})("ngModelChange",function(Pe){return h.filter.originsList=Pe}),s.qZA()(),s.TgZ(66,"li",36)(67,"ng-select",41),s.NdJ("search",function(Pe){return h.onFilterSearchChange(Pe,h.destination)})("blur",function(){return h.filterValues.destinations=[]})("ngModelChange",function(Pe){return h.filter.destinationsList=Pe}),s.qZA()()()(),s.TgZ(68,"div",42)(69,"div",16),s._UZ(70,"span",43),s.TgZ(71,"span"),s._uU(72,"Date search"),s.qZA()(),s.TgZ(73,"ul",44)(74,"li",36),s.YNc(75,fa,1,4,"ng-select",45),s.YNc(76,dr,3,0,"span",9),s.qZA(),s.TgZ(77,"mat-form-field",46),s.NdJ("click",function(){s.CHM(Y);const Pe=s.MAs(83);return s.KtG(Pe.open())}),s.TgZ(78,"mat-label"),s._uU(79,"Start date"),s.qZA(),s.TgZ(80,"input",47),s.NdJ("dateChange",function(){return h.setStartDate(h.startDate.value)})("ngModelChange",function(Pe){return h.filter.dateFrom=Pe}),s.qZA(),s._UZ(81,"mat-datepicker-toggle",48)(82,"mat-datepicker",49,50),s.qZA(),s.TgZ(84,"mat-form-field",46),s.NdJ("click",function(){s.CHM(Y);const Pe=s.MAs(90);return s.KtG(Pe.open())}),s.TgZ(85,"mat-label"),s._uU(86,"End date"),s.qZA(),s.TgZ(87,"input",51),s.NdJ("dateChange",function(){return h.setEndDate(h.endDate.value)}),s.qZA(),s._UZ(88,"mat-datepicker-toggle",48)(89,"mat-datepicker",49,52),s.qZA()(),s.YNc(91,ml,4,0,"div",53),s.YNc(92,ns,13,11,"div",54),s.TgZ(93,"div",16),s._UZ(94,"span",55),s.TgZ(95,"span"),s._uU(96,"Request Status"),s.qZA()(),s.TgZ(97,"div",56)(98,"div",57)(99,"button",58),s.NdJ("click",function(){return h.filter.open=!h.filter.open}),s._uU(100,"OPEN "),s.qZA(),s.TgZ(101,"button",59),s.NdJ("click",function(){return h.filter.closed=!h.filter.closed}),s._uU(102,"CLOSED "),s.qZA(),s.TgZ(103,"button",60),s.NdJ("click",function(){return h.filter.canceled=!h.filter.canceled}),s._uU(104,"CANCELED "),s.qZA()()(),s.TgZ(105,"div",61)(106,"mat-form-field")(107,"mat-label"),s._uU(108),s.qZA(),s.TgZ(109,"textarea",62,63),s.NdJ("ngModelChange",function(Pe){return h.filter.filterName=Pe}),s.qZA(),s.YNc(111,pa,2,1,"mat-hint",64),s.qZA()(),s.TgZ(112,"div",61)(113,"button",65),s.NdJ("click",function(){return h.resetFilter()}),s._uU(114,"Reset filter"),s.qZA(),s.TgZ(115,"button",65),s.NdJ("click",function(){return h.search()}),s._uU(116,"Perform search"),s.qZA(),s.TgZ(117,"button",66),s.NdJ("click",function(){return h.saveUserFilter(h.filter)}),s._uU(118,"Save filter "),s.qZA()(),s.YNc(119,To,3,1,"div",67),s.qZA()()(),s.BQk(),s.TgZ(120,"ngx-smart-modal",68),s.YNc(121,gl,6,1,"ul",69),s.qZA(),s.TgZ(122,"mat-menu",null,70),s.YNc(124,ma,1,1,"ng-template",71),s.qZA()}if(2&d){const Y=s.MAs(83),pe=s.MAs(90),Pe=s.MAs(110);s.xp6(4),s.Q6J("formControl",h.searchControl),s.xp6(1),s.Q6J("updateCount$",h.updateCountSource.asObservable()),s.xp6(5),s.Q6J("ngIf",h.menuRequestContext===h.menuRequestContextEnum.REQUESTS),s.xp6(1),s.Q6J("ngIf",h.menuRequestContext===h.menuRequestContextEnum.INBOX||h.menuRequestContext===h.menuRequestContextEnum.AUTOMATED),s.xp6(1),s.Q6J("ngClass",s.WLB(119,gr,h.filter.sortAscending,!h.filter.sortAscending)),s.xp6(1),s.Q6J("ngClass",s.WLB(122,gs,h.extendedFilterOpened,h.filterService.isFiltered(h.filter))),s.xp6(2),s.Q6J("ngIf",h.savedFilterNames.length),s.xp6(1),s.Udp("display",h.extendedFilterOpened?"inline":"none"),s.xp6(9),s.Q6J("items",null==h.filterValues?null:h.filterValues.extendedRequestKeys)("multiple",!0)("loading",h.loadingRequestSearch)("ngModel",h.filter.extendedRequestKeys),s.xp6(2),s.Q6J("items",null==h.filterValues?null:h.filterValues.stepNames)("disabled",h.menuRequestContext===h.menuRequestContextEnum.INBOX)("multiple",!0)("loading",h.loadingFilterValues)("ngModel",h.filter.stepNames),s.xp6(2),s.Q6J("items",null==h.filterValuesStatic?null:h.filterValuesStatic.priorities)("multiple",!0)("ngModel",h.filter.priorities),s.xp6(2),s.Q6J("items",null==h.filterValues?null:h.filterValues.requestTypes)("multiple",!0)("loading",h.loadingFilterValues)("ngModel",h.filter.requestTypes),s.xp6(2),s.Q6J("items",null==h.filterValues?null:h.filterValues.reasonCodesL1)("multiple",!0)("loading",h.loadingFilterValues)("ngModel",h.filter.reasonCodesL1),s.xp6(2),s.Q6J("items",null==h.filterValues?null:h.filterValues.requesters)("multiple",!0)("loading",h.loadingFilterValues)("ngModel",h.filter.requesters),s.xp6(2),s.Q6J("items",null==h.filterValues?null:h.filterValues.involvedParties)("multiple",!0)("loading",h.loadingFilterValues)("ngModel",h.filter.involvedParties),s.xp6(2),s.Q6J("items",null==h.filterValues?null:h.filterValues.handlerGroups)("multiple",!0)("loading",h.loadingFilterValues)("ngModel",h.filter.handlerGroups),s.xp6(2),s.Q6J("items",null==h.filterValues?null:h.filterValues.requestingParties)("multiple",!0)("loading",h.loadingFilterValues)("ngModel",h.filter.requestingParties),s.xp6(2),s.Q6J("items",null==h.filterValues?null:h.filterValues.handlerFullNames)("multiple",!0)("loading",h.loadingFilterValues)("ngModel",h.filter.handlerFullNames),s.xp6(2),s.Q6J("items",null==h.filterValues?null:h.filterValues.lcc)("multiple",!0)("loading",h.loadingFilterValues)("ngModel",h.filter.lcc),s.xp6(2),s.Q6J("items",null==h.filterValuesStatic?null:h.filterValuesStatic.createdBy)("multiple",!0)("ngModel",h.filter.requesterOrganization),s.xp6(2),s.Q6J("items",null==h.filterValuesStatic?null:h.filterValuesStatic.markedForAutoClose)("disabled",h.menuRequestContext===h.menuRequestContextEnum.INBOX)("searchable",!1)("ngModel",h.filter.markedForAutoClose),s.xp6(2),s.Q6J("items",null==h.filterValues?null:h.filterValues.qualifiers)("multiple",!0)("loading",h.loadingQualifiers)("ngModel",h.filter.qualifiers),s.xp6(8),s.Q6J("items",null==h.filterValues?null:h.filterValues.references)("multiple",!0)("addTag",!0)("loading",h.loadingOrderSearch)("ngModel",h.filter.references),s.xp6(2),s.Q6J("items",null==h.filterValues?null:h.filterValues.modesOfTransport)("multiple",!0)("loading",h.loadingFilterValues)("ngModel",h.filter.modesOfTransport),s.xp6(2),s.Q6J("items",null==h.filterValuesStatic?null:h.filterValuesStatic.locationType)("searchable",!1)("clearable",!1)("ngModel",h.filter.locationType),s.xp6(2),s.Q6J("items",null==h.filterValues?null:h.filterValues.origins)("disabled",!h.filter.locationType)("multiple",!0)("loading",h.loadingOriginSearch)("ngModel",h.filter.originsList),s.xp6(2),s.Q6J("items",null==h.filterValues?null:h.filterValues.destinations)("disabled",!h.filter.locationType)("multiple",!0)("loading",h.loadingDestination)("ngModel",h.filter.destinationsList),s.xp6(8),s.Q6J("ngIf",h.menuRequestContext!==h.menuRequestContextEnum.INBOX),s.xp6(1),s.Q6J("ngIf",h.menuRequestContext===h.menuRequestContextEnum.INBOX),s.xp6(1),s.Tol(h.menuRequestContext===h.menuRequestContextEnum.INBOX?"filter__input date inbox":"filter__input date"),s.xp6(3),s.Q6J("formControl",h.startDate)("matDatepickerFilter",h.startDateFilter)("matDatepicker",Y)("ngModel",h.filter.dateFrom),s.xp6(1),s.Q6J("for",Y),s.xp6(3),s.Tol(h.menuRequestContext===h.menuRequestContextEnum.INBOX?"filter__input date inbox":"filter__input date"),s.xp6(3),s.Q6J("formControl",h.endDate)("matDatepickerFilter",h.endDateFilter)("matDatepicker",pe),s.xp6(1),s.Q6J("for",pe),s.xp6(3),s.Q6J("ngIf",h.menuRequestContext!==h.menuRequestContextEnum.INBOX),s.xp6(1),s.Q6J("ngIf",h.menuRequestContext!==h.menuRequestContextEnum.INBOX),s.xp6(7),s.Tol(h.filter.open?"button normal ok sel requestStatus":"button normal ok requestStatus"),s.xp6(2),s.Tol(h.filter.closed?"button filter requestStatus":"button normal requestStatus"),s.xp6(2),s.Tol(h.filter.canceled?"button normal blue-dark sel requestStatus ":"button normal blue-dark requestStatus"),s.xp6(5),s.Oqu(h.savedFilterNames.length>14?"Delete older filters to save new":h.filter.filterName?"Applied filter":"Filter name"),s.xp6(1),s.Q6J("disabled",h.savedFilterNames.length>14)("ngModel",h.filter.filterName)("maxLength",50),s.xp6(2),s.Q6J("ngIf",Pe.value.length>0),s.xp6(6),s.Q6J("disabled",!h.filter.filterName||h.filterNameValid(h.filter.filterName).length>0),s.xp6(2),s.Q6J("ngIf",h.savedFilterNames.includes(h.filter.filterName)),s.xp6(1),s.Q6J("customClass","nsm-dialog-export"),s.xp6(1),s.Q6J("ngForOf",h.savedFilterNames)}},dependencies:[yi.mk,yi.sg,yi.O5,_i._Y,_i.Fj,_i.JJ,_i.JL,_i.oH,ji.w9,ar.Q3,_i.On,_i.F,jo,sr.Nt,li.KE,li.hX,li.bx,li.R9,ms.Mq,ms.hl,ms.nW,et,Ts,ra,bi,ha.gM],encapsulation:2}),c})();var Gs=p(3843),is=p(6680),_a=p(3778),va=p(2413);let _l=(()=>{var C;class c{constructor(d,h,Y){this.http=d,this.router=h,this.errorService=Y}getExportUrl(d,h,Y){return is.B.EXPORT+"/"+Y+"?from="+d+"&to="+h+"&customerCode="+Yi.V.getSelectedCustomerCode(this.router)}validateDates(d,h){const Y=(new Is.LE).set("from",String(d)).set("to",String(h));return this.http.get(is.B.ROOT_EXPORT_VALIDATE,{..._a.bL,params:Y}).pipe((0,Er.U)(pe=>pe),(0,va.K)(this.handleError.bind(this)))}handleError(d){return this.errorService.logAndReturnObservableErrorResponse(d,c.name)}}return(C=c).\u0275fac=function(d){return new(d||C)(s.LFG(Is.eN),s.LFG(Gn.F0),s.LFG(wn.T))},C.\u0275prov=s.Yz7({token:C,factory:C.\u0275fac}),c})();var cc=p(4376);function ba(C,c){1&C&&s._UZ(0,"div",20)}function ya(C,c){if(1&C){const u=s.EpF();s.TgZ(0,"button",21),s.NdJ("click",function(){s.CHM(u);const h=s.oxw();return s.KtG(h.authService.navigateToSelectedCustomerAndRolePage([h.constants.CSV]))}),s._uU(1,"Upload CSV "),s.qZA()}}let vl=(()=>{var C;class c{constructor(d,h,Y,pe,Pe,ct,Tt,dn,rn){this.filterService=d,this.router=h,this.route=Y,this.exportService=pe,this.toastrService=Pe,this.authService=ct,this.errorService=Tt,this.translateService=dn,this.modalManageService=rn,this.constants=ni.g,this.startDate=new _i.NI,this.endDate=new _i.NI,this.filter=new Ls.w(ni.g.ARCHIVE),this.debounceTime=1e3,this.initialArchiveStartDate=new Date(Date.now()-2592e6),this.initialArchiveEndDate=new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()),this.startDateFilter=In=>(In||new Date)<=new Date,this.endDateFilter=In=>{var Mn;const Sn=In||new Date;return null!==(Mn=this.startDate)&&void 0!==Mn&&Mn.value?Sn<=new Date&&Sn>=this.startDate.value:null}}ngOnInit(){this.onNavigationEnd()}ngOnDestroy(){var d,h;null===(d=this.requestsUpdated$)||void 0===d||d.unsubscribe(),null===(h=this.filter$)||void 0===h||h.unsubscribe()}onArchiveBeginDateChanged(d){this.filter.dateFrom=d.value,this.endDateFilter=h=>{const Y=h||new Date;return Y<=new Date&&Y>=this.startDate.value},this.onArchiveDateChanged()}onArchiveEndDateChanged(d){this.filter.dateTo=d.value,this.onArchiveDateChanged()}openExportSelection(){var d,h;null!==(d=this.startDate)&&void 0!==d&&d.value&&null!==(h=this.endDate)&&void 0!==h&&h.value?this.modalManageService.openModal(ni.g.EXPORT):this.toastrService.error(this.translateService.instant(Gs.h.DATE_SELECT_BOTH))}onArchiveDateChanged(){this.filterService.filterList(this.role,this.page,this.filter)}exportRequests(d){var h,Y;if(null!==(h=this.startDate)&&void 0!==h&&h.value&&null!==(Y=this.endDate)&&void 0!==Y&&Y.value){const pe=this.startDate.value.getTime(),Pe=this.endDate.value.getTime()+864e5;this.exportService.validateDates(pe,Pe).subscribe(()=>{this.modalManageService.closeModal(ni.g.EXPORT),window.open(this.exportService.getExportUrl(pe,Pe,d))},ct=>this.errorService.handleErrorsAndToastr(ct))}}onNavigationEnd(){this.startDate.reset(),this.endDate.reset(),Yi.V.getSelectedCustomerCode(this.router)&&(this.role=Yi.V.getSelectedRoleCode(this.router),this.page=Yi.V.getSelectedPage(this.router),zs.i.showFilter(this.role,this.router.url)&&(this.filter=this.filterService.getFilter(this.role,this.page),this.filter.dateFrom&&this.startDate.setValue(this.filter.dateFrom),this.filter.dateTo&&this.endDate.setValue(this.filter.dateTo),this.searchControl?this.searchControl.setValue(this.filter.searchString||""):(this.searchControl=new _i.NI(this.filter.searchString||""),this.searchControl.valueChanges.pipe((0,Ho.b)(this.debounceTime),(0,es.x)()).subscribe(h=>this.applyFilter(h)))),this.filter.dateFrom=this.filter.dateFrom||this.initialArchiveStartDate.toISOString(),this.filter.dateTo=this.filter.dateTo||this.initialArchiveEndDate.toISOString(),this.startDate.setValue(new Date(this.filter.dateFrom)),this.endDate.setValue(new Date(this.filter.dateTo)),Yi.V.setFilter(this.role,this.page,this.filter),this.showUploadCsvButton=this.role===ni.g.OPERATOR)}applyFilter(d){this.filter.searchString=d,this.filterService.filterList(this.role,this.page,this.filter)}}return(C=c).\u0275fac=function(d){return new(d||C)(s.Y36(zs.i),s.Y36(Gn.F0),s.Y36(Gn.gz),s.Y36(_l),s.Y36(Vr._W),s.Y36(lr.e),s.Y36(wn.T),s.Y36(or.sK),s.Y36(cc.d))},C.\u0275cmp=s.Xpm({type:C,selectors:[["archive-filter"]],inputs:{page:"page"},decls:34,vars:13,consts:[[1,"filer__search_count_section"],[1,"filter__fill"],[1,"fas","fa-search","filter-icon"],["placeholder","Enter search term to filter requests","type","text",1,"archive__search_input",3,"formControl"],["class","count__align","count","",4,"ngIf"],[1,"filter__upload","threecol"],["id","csvUpload","class","filter__upload-btn",3,"click",4,"ngIf"],[1,"threecol"],[1,"twocol","align-items-center"],[1,"archive__date"],["appearance","fill",3,"click"],[2,"color","white"],["disabled","","matInput","",2,"color","white",3,"formControl","matDatepickerFilter","matDatepicker","dateChange"],["matSuffix","",2,"color","white",3,"for"],["disabled","false"],["picker1",""],["picker2",""],["id","buttonExport",1,"button","export",3,"click"],[3,"identifier","customClass"],[1,"button","export",3,"click"],["count","",1,"count__align"],["id","csvUpload",1,"filter__upload-btn",3,"click"]],template:function(d,h){if(1&d){const Y=s.EpF();s.ynx(0),s.TgZ(1,"div",0)(2,"span",1),s._UZ(3,"span",2)(4,"input",3),s.qZA(),s.YNc(5,ba,1,0,"div",4),s.qZA(),s.TgZ(6,"div",5),s.YNc(7,ya,2,0,"button",6),s.qZA(),s.TgZ(8,"div",7)(9,"div",8)(10,"div",9)(11,"mat-form-field",10),s.NdJ("click",function(){s.CHM(Y);const Pe=s.MAs(17);return s.KtG(Pe.open())}),s.TgZ(12,"mat-label",11),s._uU(13,"Archive start date"),s.qZA(),s.TgZ(14,"input",12),s.NdJ("dateChange",function(){return h.onArchiveBeginDateChanged(h.startDate)}),s.qZA(),s._UZ(15,"mat-datepicker-toggle",13)(16,"mat-datepicker",14,15),s.qZA(),s.TgZ(18,"mat-form-field",10),s.NdJ("click",function(){s.CHM(Y);const Pe=s.MAs(24);return s.KtG(Pe.open())}),s.TgZ(19,"mat-label",11),s._uU(20,"Archive end date"),s.qZA(),s.TgZ(21,"input",12),s.NdJ("dateChange",function(){return h.onArchiveEndDateChanged(h.endDate)}),s.qZA(),s._UZ(22,"mat-datepicker-toggle",13)(23,"mat-datepicker",14,16),s.qZA()(),s.TgZ(25,"button",17),s.NdJ("click",function(){return h.openExportSelection()}),s._uU(26,"Export"),s.qZA()()(),s.BQk(),s.TgZ(27,"ngx-smart-modal",18)(28,"button",19),s.NdJ("click",function(){return h.exportRequests(h.constants.EXPORT_ALL)}),s._uU(29,"Export all"),s.qZA(),s.TgZ(30,"button",19),s.NdJ("click",function(){return h.exportRequests(h.constants.EXPORT_ARCHIVED)}),s._uU(31,"Export archived"),s.qZA(),s.TgZ(32,"button",19),s.NdJ("click",function(){return h.exportRequests(h.constants.EXPORT_OPEN)}),s._uU(33,"Export opened"),s.qZA()()}if(2&d){const Y=s.MAs(17),pe=s.MAs(24);s.xp6(4),s.Q6J("formControl",h.searchControl),s.xp6(1),s.Q6J("ngIf",h.role===h.constants.OPERATOR),s.xp6(2),s.Q6J("ngIf",h.showUploadCsvButton),s.xp6(7),s.Q6J("formControl",h.startDate)("matDatepickerFilter",h.startDateFilter)("matDatepicker",Y),s.xp6(1),s.Q6J("for",Y),s.xp6(6),s.Q6J("formControl",h.endDate)("matDatepickerFilter",h.endDateFilter)("matDatepicker",pe),s.xp6(1),s.Q6J("for",pe),s.xp6(5),s.s9C("identifier",h.constants.EXPORT),s.Q6J("customClass","nsm-dialog-export")}},dependencies:[yi.O5,_i.Fj,_i.JJ,_i.oH,ar.Q3,jo,sr.Nt,li.KE,li.hX,li.R9,ms.Mq,ms.hl,ms.nW],encapsulation:2}),c})(),Ao=(()=>{var C;class c{constructor(d){this.router=d,this.breadcrumbs$=new s.vpe,this.breadcrumbs=[],this.router.events.pipe((0,$r.h)(h=>h instanceof Gn.m2)).subscribe(()=>this.onRouteEvent())}onRouteEvent(){let d=this.router.routerState.root.snapshot;this.breadcrumbs=[],d=d.firstChild;let h="/"+(Yi.V.getSelectedCustomerCode(this.router)||ni.g.ADMIN);for(;null!=d.firstChild;)d=d.firstChild,d.routeConfig&&d.routeConfig.path&&(h=h+"/"+this.createUrl(d),this.breadcrumbs.push(this.createBreadcrumb(d,h)));this.breadcrumbs$.emit(this.breadcrumbs.filter(Y=>Y.label))}createBreadcrumb(d,h){return{label:d.params.requestKey||d.data.breadcrumb,terminal:this.isTerminal(d),url:h}}isTerminal(d){return null===d.firstChild||null===d.firstChild.routeConfig||!d.firstChild.routeConfig.path}createUrl(d){return d.url.map(h=>h.toString()).join("/")}}return(C=c).\u0275fac=function(d){return new(d||C)(s.LFG(Gn.F0))},C.\u0275prov=s.Yz7({token:C,factory:C.\u0275fac}),c})();const _=["breadcrumb",""];function b(C,c){1&C&&s._UZ(0,"i",6)}const T=function(C){return{last:C}},v=function(C){return[C]},M=function(){return[]};function ue(C,c){if(1&C&&(s.TgZ(0,"li",3)(1,"span",4),s.YNc(2,b,1,0,"i",5),s._uU(3),s.qZA()()),2&C){const u=c.$implicit,d=c.index;s.Q6J("ngClass",s.VKq(4,T,u.terminal))("routerLink",u.terminal?s.DdM(8,M):s.VKq(6,v,u.url)),s.xp6(2),s.Q6J("ngIf",d>0),s.xp6(1),s.hij(" ",u.label," ")}}let ke=(()=>{var C;class c{constructor(d,h){this.breadcrumbService=d,this.authService=h,this.headerTitle="Customer Service Tool",this.setPageHeader()}setPageHeader(){this.authService.isPublic()&&(this.headerTitle="ControLOG")}}return(C=c).\u0275fac=function(d){return new(d||C)(s.Y36(Ao),s.Y36(lr.e))},C.\u0275cmp=s.Xpm({type:C,selectors:[["","breadcrumb",""]],attrs:_,decls:5,vars:4,consts:[[1,"header-app-name"],[1,"breadcrumb__container"],["class","breadcrumb__label-container",3,"ngClass","routerLink",4,"ngFor","ngForOf"],[1,"breadcrumb__label-container",3,"ngClass","routerLink"],[1,"breadcrumb__label"],["class","fas fa-chevron-right breadcrumb__divider",4,"ngIf"],[1,"fas","fa-chevron-right","breadcrumb__divider"]],template:function(d,h){1&d&&(s.TgZ(0,"span",0),s._uU(1),s.qZA(),s.TgZ(2,"ul",1),s.YNc(3,ue,4,9,"li",2),s.ALo(4,"async"),s.qZA()),2&d&&(s.xp6(1),s.Oqu(h.headerTitle),s.xp6(2),s.Q6J("ngForOf",s.lcZ(4,2,h.breadcrumbService.breadcrumbs$)))},dependencies:[yi.mk,yi.sg,yi.O5,Gn.rH,yi.Ov],encapsulation:2}),c})(),ft=(()=>{var C;class c{}return(C=c).\u0275fac=function(d){return new(d||C)},C.\u0275cmp=s.Xpm({type:C,selectors:[["gdpr"]],decls:8,vars:0,consts:[[1,"vertical-left-bottom"],["href","https://www.kn-portal.com/legal_notice/privacy_policy/","target","_blank"],["href","https://app-de.onetrust.com/app/#/webform/0a22d30e-5874-4513-953f-3079967f561b","target","_blank"]],template:function(d,h){1&d&&(s.TgZ(0,"div",0)(1,"div")(2,"span")(3,"a",1),s._uU(4,"Privacy Policy"),s.qZA()(),s.TgZ(5,"span")(6,"a",2),s._uU(7,"Contact Us"),s.qZA()()()())},styles:[".vertical-left-bottom[_ngcontent-%COMP%]{position:fixed;writing-mode:vertical-lr;transform:rotate(180deg);bottom:0;left:0;background-color:#fff;font-size:.75em;font-weight:600;display:flex;flex:0;padding-top:.5em}.vertical-left-bottom[_ngcontent-%COMP%] span[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{margin-bottom:.5em}"]}),c})(),$t=(()=>{var C;class c{transform(d,h,Y){return Y?(d||[]).filter(pe=>h.split(",").some(Pe=>pe.hasOwnProperty(Pe)&&new RegExp(Y,"gi").test(pe[Pe]))):d}}return(C=c).\u0275fac=function(d){return new(d||C)},C.\u0275pipe=s.Yjl({name:"search",type:C,pure:!0}),c})();const bt=["appRoot",""],Zt=function(){return["/"]};function Cn(C,c){if(1&C&&(s.TgZ(0,"a",14),s._UZ(1,"img",15),s.ALo(2,"async"),s.qZA()),2&C){const u=s.oxw();s.Q6J("routerLink",s.DdM(4,Zt)),s.xp6(1),s.s9C("title",s.lcZ(2,2,u.version$))}}function Un(C,c){if(1&C&&(s._UZ(0,"img",15),s.ALo(1,"async")),2&C){const u=s.oxw();s.s9C("title",s.lcZ(1,1,u.version$))}}function er(C,c){if(1&C&&(s.TgZ(0,"div",16),s._uU(1),s.qZA()),2&C){const u=s.oxw();s.xp6(1),s.Oqu(u.environment)}}const fi=function(C){return[C]};function Qi(C,c){if(1&C&&(s.TgZ(0,"li")(1,"span")(2,"a",14),s._uU(3,"Admin"),s.qZA()()()),2&C){const u=s.oxw(2);s.xp6(2),s.Q6J("routerLink",s.VKq(1,fi,u.constants.ADMIN))}}const Ir=function(C,c,u){return[C,c,u]};function $s(C,c){if(1&C&&(s.TgZ(0,"li")(1,"span")(2,"a",14),s._uU(3,"Create"),s.qZA()()()),2&C){const u=s.oxw(2);s.xp6(2),s.Q6J("routerLink",s.kEZ(1,Ir,u.selectedCustomer.customerCode,u.constants.OPERATOR,u.constants.CREATE))}}function Ws(C,c){if(1&C){const u=s.EpF();s.TgZ(0,"ul",17)(1,"li")(2,"span")(3,"a",14),s._uU(4,"Dashboard"),s.qZA()()(),s.YNc(5,Qi,4,3,"li",13),s.YNc(6,$s,4,5,"li",13),s.TgZ(7,"li")(8,"span")(9,"a",18),s.NdJ("click",function(){s.CHM(u);const h=s.oxw();return s.KtG(h.onPageChange(h.constants.INBOX))}),s._uU(10,"Inbox"),s.qZA()()(),s.TgZ(11,"li")(12,"span")(13,"a",18),s.NdJ("click",function(){s.CHM(u);const h=s.oxw();return s.KtG(h.onPageChange(h.constants.REQUESTS))}),s._uU(14,"Requests"),s.qZA()()(),s.TgZ(15,"li")(16,"span")(17,"a",18),s.NdJ("click",function(){s.CHM(u);const h=s.oxw();return s.KtG(h.onPageChange(h.constants.AUTOMATED))}),s._uU(18,"Automated"),s.qZA()()(),s.TgZ(19,"li")(20,"span")(21,"a",18),s.NdJ("click",function(){s.CHM(u);const h=s.oxw();return s.KtG(h.onPageChange(h.constants.ARCHIVE))}),s._uU(22,"Archive"),s.qZA()()()()}if(2&C){const u=s.oxw();s.xp6(3),s.Q6J("routerLink",s.kEZ(7,Ir,u.selectedCustomer.customerCode,u.constants.OPERATOR,u.constants.DASHBOARD)),s.xp6(2),s.Q6J("ngIf",u.cstUser.admin),s.xp6(1),s.Q6J("ngIf",!1===u.selectedCustomer.deleted),s.xp6(3),s.Q6J("routerLink",s.kEZ(11,Ir,u.selectedCustomer.customerCode,u.constants.OPERATOR,u.constants.INBOX)),s.xp6(4),s.Q6J("routerLink",s.kEZ(15,Ir,u.selectedCustomer.customerCode,u.constants.OPERATOR,u.constants.REQUESTS)),s.xp6(4),s.Q6J("routerLink",s.kEZ(19,Ir,u.selectedCustomer.customerCode,u.constants.OPERATOR,u.constants.AUTOMATED)),s.xp6(4),s.Q6J("routerLink",s.kEZ(23,Ir,u.selectedCustomer.customerCode,u.constants.OPERATOR,u.constants.ARCHIVE))}}function As(C,c){1&C&&(s.TgZ(0,"span"),s._uU(1,"Please select customer"),s.qZA())}function rs(C,c){if(1&C&&(s.TgZ(0,"span"),s._uU(1),s.qZA()),2&C){const u=s.oxw(3);s.xp6(1),s.Oqu(u.selectedCustomer.name)}}function So(C,c){if(1&C&&(s.TgZ(0,"div",25),s.YNc(1,As,2,0,"span",13),s.YNc(2,rs,2,1,"span",13),s._UZ(3,"span",26),s.qZA()),2&C){const u=s.oxw(2),d=s.MAs(14);s.Q6J("matMenuTriggerFor",d),s.xp6(1),s.Q6J("ngIf",!u.selectedCustomer||!u.selectedRole),s.xp6(1),s.Q6J("ngIf",u.selectedCustomer&&u.selectedRole)}}function Ea(C,c){if(1&C){const u=s.EpF();s.TgZ(0,"div",19),s.YNc(1,So,4,3,"div",20),s.TgZ(2,"div",21),s._UZ(3,"span",22),s.TgZ(4,"span",23),s._uU(5),s.qZA()(),s.TgZ(6,"div",21)(7,"span")(8,"a",24),s.NdJ("click",function(){s.CHM(u);const h=s.oxw();return s.KtG(h.logout())}),s._uU(9,"Logout"),s.qZA()()()()}if(2&C){const u=s.oxw();s.xp6(1),s.Q6J("ngIf",null==u.cstUser.customers?null:u.cstUser.customers.length),s.xp6(4),s.Oqu(u.cstUser.name)}}function Da(C,c){1&C&&s._UZ(0,"div",27)}function Ca(C,c){if(1&C&&s._UZ(0,"request-filter",28),2&C){const u=s.oxw();s.Q6J("page",u.page)}}function bl(C,c){if(1&C&&s._UZ(0,"archive-filter",28),2&C){const u=s.oxw();s.Q6J("page",u.page)}}function dc(C,c){if(1&C){const u=s.EpF();s.TgZ(0,"a",31),s.NdJ("click",function(h){const pe=s.CHM(u).$implicit,Pe=s.oxw(2);return s.KtG(Pe.selectCustomer(h,pe))}),s._uU(1),s.qZA()}if(2&C){const u=c.$implicit;s.xp6(1),s.hij(" ",u.customerCode+" - "+u.name," ")}}function uc(C,c){if(1&C){const u=s.EpF();s.TgZ(0,"input",29),s.NdJ("click",function(h){s.CHM(u);const Y=s.oxw();return s.KtG(Y.stopPropagation(h))})("ngModelChange",function(h){s.CHM(u);const Y=s.oxw();return s.KtG(Y.searchString=h)}),s.qZA(),s.YNc(1,dc,2,1,"a",30),s.ALo(2,"search")}if(2&C){const u=s.oxw();s.Q6J("ngModel",u.searchString),s.xp6(1),s.Q6J("ngForOf",s.Dn7(2,2,u.cstUser.customers,"customerCode,name",u.searchString))}}function Td(C,c){1&C&&s._UZ(0,"gdpr")}const wo=function(C,c){return{"default-background":C,"public-background":c}};let zo=(()=>{var C;class c{constructor(d,h,Y,pe,Pe,ct,Tt,dn,rn,In,Mn){this.authService=d,this.commonService=h,this.filterService=Y,this.publicService=pe,this.modalService=Pe,this.router=ct,this.route=Tt,this.toastrService=dn,this.translateService=rn,this.errorService=In,this.featureService=Mn,this.version$=this.publicService.getVersion(),this.constants=ni.g,this.archive="archive",this.blank="",this.setupShowSidebar(Tt),this.sideBarSubscribe(),this.setupTranslateService(),this.getEnvironment(),this.getFeatures()}selectCustomer(d,h){this.selectedRole=new aa.l(ni.g.ROLE_CODE_OPERATOR),this.selectedCustomer=h,Yi.V.setFilter(ni.g.OPERATOR,ni.g.REQUESTS,new Ls.w(ni.g.REQUESTS)),Yi.V.setFilter(ni.g.OPERATOR,ni.g.INBOX,new Ls.w(ni.g.INBOX)),Yi.V.setFilter(ni.g.OPERATOR,ni.g.AUTOMATED,new Ls.w(ni.g.AUTOMATED)),this.authService.navigateUserToDefaultPage(this.selectedCustomer.customerCode,this.selectedRole.name),Yi.V.setCustomerCode(this.selectedCustomer.customerCode),this.filterService.customerChanged(this.selectedRole.name,this.page),this.searchString="",Yi.V.clearSavedMultipleRequests()}onPageChange(d){this.page=d}drawHeader(){if(this.authService.userLoggedIn()){this.cstUser=Yi.V.getCstUser();let d=this.cstUser.customers.find(h=>h.customerCode==Yi.V.getSelectedCustomerCode(this.router));if(d){this.validateCustomer(),this.selectedCustomer=d,Yi.V.setCustomerCode(this.selectedCustomer.customerCode);let h=Yi.V.getSelectedRoleCode(this.router).toUpperCase();this.selectedRole=new aa.l,this.selectedRole.code=h.toString()}}}isPublic(){return this.authService.isPublic()}logout(){m.N.SSOAuth?this.authService.ssoLogout():this.authService.localLogout()}stopPropagation(d){d.stopPropagation()}validateCustomer(){this.commonService.customerSetupValid().subscribe(()=>{},d=>this.errorService.handleErrorsAndToastr(d))}getEnvironment(){this.publicService.getEnvironment().subscribe(d=>{this.environment=d})}getFeatures(){this.authService.userLoggedIn()&&this.featureService.getFeatures().subscribe()}setupTranslateService(){this.translateService.setDefaultLang("en"),this.translateService.use("en")}sideBarSubscribe(){this.showSidebar$.subscribe(d=>{this.drawHeader(),!1===d?(this.showFilter=!1,this.page=this.blank):(this.isArchive=d===this.archive,this.page=d,this.showFilter=!0)})}setupShowSidebar(d){this.showSidebar$=this.router.events.pipe((0,$r.h)(h=>h instanceof Gn.m2),(0,Er.U)(()=>d),(0,Er.U)(h=>{for(;h.firstChild;)h=h.firstChild;return h}),(0,oa.zg)(h=>h.data),(0,Er.U)(h=>!!h.hasOwnProperty("showFilter")&&h.showFilter))}}return(C=c).\u0275fac=function(d){return new(d||C)(s.Y36(lr.e),s.Y36(la.v),s.Y36(zs.i),s.Y36(ca.h),s.Y36(ar.lu),s.Y36(Gn.F0),s.Y36(Gn.gz),s.Y36(Vr._W),s.Y36(or.sK),s.Y36(wn.T),s.Y36(Uo.B))},C.\u0275cmp=s.Xpm({type:C,selectors:[["","appRoot",""]],attrs:bt,decls:19,vars:13,consts:[[1,"left"],[1,"logo-container"],[3,"routerLink",4,"ngIf"],["class","kn-logo","src","../assets/gfx/logo_kn.svg","alt","Customer Service Tool",3,"title",4,"ngIf"],["class","env-info",4,"ngIf"],["breadcrumb",""],["class","center",4,"ngIf"],["class","right",4,"ngIf"],["class","filter",4,"ngIf"],["class","filter",3,"page",4,"ngIf"],["menu","matMenu"],["matMenuContent",""],[1,"content",3,"ngClass"],[4,"ngIf"],[3,"routerLink"],["src","../assets/gfx/logo_kn.svg","alt","Customer Service Tool",1,"kn-logo",3,"title"],[1,"env-info"],[1,"center"],[3,"routerLink","click"],[1,"right"],["class","roles clickable",3,"matMenuTriggerFor",4,"ngIf"],[1,"profile"],[1,"icon","person"],[1,"header-username"],[3,"click"],[1,"roles","clickable",3,"matMenuTriggerFor"],[1,"fas","fa-chevron-down","header-dropdown-arrow"],[1,"filter"],[1,"filter",3,"page"],["mat-menu-item","","placeholder","\uf3ee",2,"font-family","'Font Awesome\\ 5 Brands', Roboto, 'Helvetica Neue', sans-serif","color","#7E9DBB","font-size","0.8em",3,"ngModel","click","ngModelChange"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click"]],template:function(d,h){1&d&&(s.TgZ(0,"header")(1,"nav")(2,"div",0)(3,"div",1),s.YNc(4,Cn,3,5,"a",2),s.YNc(5,Un,2,3,"img",3),s.YNc(6,er,2,1,"div",4),s.qZA(),s._UZ(7,"div",5),s.qZA(),s.YNc(8,Ws,23,27,"ul",6),s.YNc(9,Ea,10,2,"div",7),s.qZA()(),s.YNc(10,Da,1,0,"div",8),s.YNc(11,Ca,1,1,"request-filter",9),s.YNc(12,bl,1,1,"archive-filter",9),s.TgZ(13,"mat-menu",null,10),s.YNc(15,uc,3,6,"ng-template",11),s.qZA(),s.TgZ(16,"div",12),s._UZ(17,"router-outlet"),s.YNc(18,Td,1,0,"gdpr",13),s.qZA()),2&d&&(s.xp6(4),s.Q6J("ngIf",!h.isPublic()),s.xp6(1),s.Q6J("ngIf",h.isPublic()),s.xp6(1),s.Q6J("ngIf",h.environment!==h.constants.ENVIRONMENT_PRODUCTION),s.xp6(2),s.Q6J("ngIf",(null==h.selectedRole?null:h.selectedRole.code)==h.constants.ROLE_CODE_OPERATOR),s.xp6(1),s.Q6J("ngIf",h.cstUser),s.xp6(1),s.Q6J("ngIf",!h.showFilter&&!h.isPublic()),s.xp6(1),s.Q6J("ngIf",!h.isArchive&&h.showFilter),s.xp6(1),s.Q6J("ngIf",h.isArchive&&h.showFilter),s.xp6(4),s.Q6J("ngClass",s.WLB(10,wo,!h.isPublic(),h.isPublic())),s.xp6(2),s.Q6J("ngIf",!h.isPublic()))},dependencies:[yi.mk,yi.sg,yi.O5,_i.Fj,_i.JJ,_i.On,Gn.lC,Gn.rH,ga,vl,ke,et,Ts,ra,bi,ft,yi.Ov,$t],styles:[".logo-container[_ngcontent-%COMP%]{margin:0;border:none}.env-info[_ngcontent-%COMP%]{font-size:smaller;font-weight:bolder;text-transform:uppercase;color:#ff7575;position:absolute;padding-top:20px;bottom:4px}.kn-logo[_ngcontent-%COMP%]{height:30px;margin-bottom:10px}"]}),c})();var Ad=p(6915),hc=p(2442),yl=p(2296),$h=p(617),Sd=p(1231),wd=p(5157);let Md=(()=>{var C;class c{}return(C=c).\u0275fac=function(d){return new(d||C)},C.\u0275mod=s.oAB({type:C}),C.\u0275inj=s.cJS({providers:[da.w],imports:[yi.ez]}),c})(),Wh=(()=>{var C;class c{}return(C=c).\u0275fac=function(d){return new(d||C)},C.\u0275mod=s.oAB({type:C}),C.\u0275inj=s.cJS({providers:[wd.v,_l,{provide:zs.i}],imports:[yi.ez,Gn.Bz,_i.UX,ji.A0,ar.Hd.forRoot(),_i.u5,Md,Sd._7,sr.c,ms.FA,li.lN,Mr.XK,Is.JF,hi,yl.ot,$h.Ps,ha.AV]}),c})();function El(C){return new Ao(C)}let Go=(()=>{var C;class c{}return(C=c).\u0275fac=function(d){return new(d||C)},C.\u0275mod=s.oAB({type:C}),C.\u0275inj=s.cJS({providers:[{provide:Ao,useFactory:El,deps:[Gn.F0]}],imports:[yi.ez,Gn.Bz]}),c})();var xd=p(5883),Mo=p(8672);function Dl(C){return new Xr(C,"./assets/i18n/",".json")}let Ta=(()=>{var C;class c{}return(C=c).\u0275fac=function(d){return new(d||C)},C.\u0275mod=s.oAB({type:C,bootstrap:[zo]}),C.\u0275inj=s.cJS({providers:[Vo,cr,hc.V,hc.V,lr.e,la.v,ca.h,Yi.V,wn.T,{provide:Is.TP,useClass:Ad.S,multi:!0},{provide:s.ip1,useFactory:u=>()=>u.checkUserBeforeAppLoad(),deps:[hc.V],multi:!0},{provide:Mr.Ad,useValue:"en-GB"}],imports:[i.b2,so,_i.u5,_i.UX,Is.JF,ji.A0,sa,Wh,Mo.ef,Md,Go,ar.Hd.forRoot(),Vr.Rh.forRoot({disableTimeOut:!0,positionClass:"toast-top-right",preventDuplicates:!0}),xd.n,or.aw.forRoot({loader:{provide:or.Zw,useFactory:Dl,deps:[Is.eN]}}),hi,li.lN,sr.c,Br.LD,Mo.ef]}),c})();m.N.production&&(0,s.G48)(),i.q6().bootstrapModule(Ta).catch(C=>console.log(C))},6680:(xt,Ke,p)=>{"use strict";p.d(Ke,{B:()=>m});var s,i=p(2615);class m{}(s=m).ROOT_CONF=i.V.OPERATOR_ROOT+"/conf",s.CONF_REQUEST_TYPES_BY_CUSTOMER=i.V.ROOT_CONF+"/customerRequestTypes",s.CONF_REQUEST_AUTO_DOC_UPLOAD_TO_SHIPMENTS=i.V.ROOT_CONF+"/autoDocUploadToShipments",s.CONF_REQUEST_PRIORITIES=i.V.ROOT_CONF+"/priorities",s.CONF_REQUEST_PROACTIVE=i.V.ROOT_CONF+"/proactive",s.CONF_REQUEST_ISVALID=i.V.ROOT_CONF+"/isValid",s.CONF_REQUEST_REQUESTING_PARTIES=i.V.ROOT_CONF+"/requestingParties",s.CONF_REQUEST_TYPE_CONFIG=i.V.ROOT_CONF+"/requestTypePartiesConfig",s.CONF_CUSTOMER_LCC=i.V.ROOT_CONF+"/customerLcc",s.CONF_CUSTOMER_LCC_WITH_REQUEST_LCC=i.V.ROOT_CONF+"/customerLccWithRequestLcc",s.CONF_REQUESTERS=i.V.ROOT_CONF+"/requesters",s.CONF_HANDLER_GROUPS=i.V.ROOT_CONF+"/handlerGroups",s.CONF_HANDLERS=i.V.ROOT_CONF+"/handlersOfRequest",s.CONF_REQUESTING_PARTIES=i.V.ROOT_CONF+"/requestingParties",s.CONF_INVOLVED_PARTIES=i.V.ROOT_CONF+"/involvedParties",s.CONF_ROOT_CAUSE_CONFIG=i.V.ROOT_CONF+"/rootCauseConfig",s.CONF_ROOT_CAUSE_CATEGORIES=i.V.ROOT_CONF+"/rootCauseCategories",s.CONF_ROOT_CAUSE_PARTIES=i.V.ROOT_CONF+"/rootCauseParties",s.CONF_MESSAGE_TEMPLATE=i.V.ROOT_CONF+"/messageTemplate",s.CONF_CUSTOMER_REASON_CODE=i.V.ROOT_CONF+"/customerReasonCode",s.REQUEST_TYPE_QUALIFIERS=i.V.ROOT_CONF+"/requestTypeQualifiers",s.CONF_CUSTOMER_SETUP_VALID=i.V.ROOT_CONF+"/customerSetupValid",s.CONF_RECIPIENT_EMAILS=i.V.ROOT_CONF+"/recipientsEmails",s.ROOT_REQUEST=i.V.OPERATOR_ROOT+"/request",s.ROOT_FILTER=i.V.OPERATOR_ROOT+"/filter",s.ROOT_REQUEST_INBOX=s.ROOT_REQUEST+"/inbox",s.ROOT_REQUEST_AUTOMATED=s.ROOT_REQUEST+"/automated",s.SAVE_AND_PROCEED=s.ROOT_REQUEST+"/saveAndProceed",s.UPDATE_REQUEST_DATA=s.ROOT_REQUEST+"/updateRequestData",s.GET_REQUEST_REQUESTS=s.ROOT_REQUEST+"/requests",s.VALIDATE_ROOT_CAUSES=s.ROOT_REQUEST+"/validateRootCauses",s.MARK_COMMENT_READ=s.ROOT_REQUEST+"/markCommentRead",s.MARK_AUTO_CLOSE=s.ROOT_REQUEST+"/markAutoClose",s.UPDATE_AUTO_CLOSE_INFORMATION=s.ROOT_REQUEST+"/autoCloseUpdateInformation",s.UNMARK_AUTO_CLOSE=s.ROOT_REQUEST+"/unmarkAutoClose",s.UPDATE_AUTOMATIC_PROCESSING=s.ROOT_REQUEST+"/updateAutomaticProcessing",s.SAVE_REQUEST_QUALIFIER_VALUES=s.ROOT_REQUEST+"/saveRequestQualifierValues",s.REQUEST_QUALIFIER_VALUES=s.ROOT_REQUEST+"/requestQualifierValues",s.VALIDATE_REQUEST_QUALIFIER_VALUES=s.ROOT_REQUEST+"/validateRequestQualifierValues",s.REQUEST_QUALIFIER_VALUES_FOR_MESSAGE=s.ROOT_REQUEST+"/requestQualifierValuesForMessage",s.VALIDATE_REQUEST_QUALIFIER_VALUES_FOR_MANUAL_CLOSE=s.ROOT_REQUEST+"/validateRequestQualifierValuesForManualClose",s.SAVE_MULTIPLE=s.ROOT_REQUEST+"/saveMultiple",s.COPY_REQUEST=s.ROOT_REQUEST+"/copyRequest",s.REQUEST_COPY=s.ROOT_REQUEST+"/requestCopy",s.DELETE_LINKED_REQUEST=s.ROOT_REQUEST+"/deleteLinkedRequest",s.SEARCH_LINKED_REQUESTS=s.ROOT_REQUEST+"/searchLinkedRequests",s.SAVE_LINKED_REQUESTS=s.ROOT_REQUEST+"/saveLinkedRequests",s.GET_LINKED_REQUESTS=s.ROOT_REQUEST+"/getLinkedRequests",s.GET_REQUEST_HISTORY=s.ROOT_REQUEST+"/getRequestHistory",s.ROOT_REQUEST_FEEDBACK=s.ROOT_REQUEST+"/feedback",s.ROOT_DASHBOARD=i.V.OPERATOR_ROOT+"/dashboard",s.GET_GLOBAL_DATA_FOR_DASHBOARD=s.ROOT_DASHBOARD+"/getGlobalData",s.GET_PERIODIC_DATA_FOR_DASHBOARD=s.ROOT_DASHBOARD+"/getData",s.CSV_REQUEST=s.ROOT_REQUEST+"/csv",s.CSV_REQUEST_RESULT=s.CSV_REQUEST+"/result",s.ROOT_MESSAGES=i.V.OPERATOR_ROOT+"/messages",s.MESSAGE_UPDATE_MARK_AS_READ=s.ROOT_MESSAGES+"/updateMarkedAsRead",s.ROOT_ARCHIVE=i.V.OPERATOR_ROOT+"/archive",s.ROOT_ARCHIVE_FEEDBACK=s.ROOT_ARCHIVE+"/feedback",s.ROOT_FEATURE=i.V.OPERATOR_ROOT+"/feature",s.ROOT_EXPORT=i.V.OPERATOR_ROOT+"/export",s.ROOT_EXPORT_VALIDATE=s.ROOT_EXPORT+"/validate",s.ROOT_COUNT=i.V.OPERATOR_ROOT+"/count",s.GET_FILTERED_REQUESTS_COUNT=s.ROOT_COUNT+"/requestsCount",s.EXPORT=i.V.OPERATOR_ROOT+"/export"},2442:(xt,Ke,p)=>{"use strict";p.d(Ke,{V:()=>L});var i=p(553),s=p(5879),m=p(5295);let L=(()=>{var f;class W{constructor(q){this.authService=q}checkUserBeforeAppLoad(){return new Promise(q=>{this.authService.getCurrentUserDetails(()=>{q(void 0)},()=>{i.N.SSOAuth?this.authService.goToSsoLoginPage():q(void 0)})})}}return(f=W).\u0275fac=function(q){return new(q||f)(s.LFG(m.e))},f.\u0275prov=s.Yz7({token:f,factory:f.\u0275fac}),W})()},5295:(xt,Ke,p)=>{"use strict";p.d(Ke,{e:()=>ae});var i=p(9862),s=p(1488),m=p(2615),L=p(6342),f=p(7479),W=p(21),re=p(2561),q=p(5879);let ae=(()=>{var K;class ne{constructor(U,$e){this.http=U,this.injector=$e}getRouter(){return this.injector.get(s.F0)}getCurrentUserDetails(U,$e){this.isPublic()?(W.V.clearStorage(),U&&U()):this.http.get(m.V.CURRENT_USER_DETAILS,{headers:{"Cache-Control":"no-cache"},withCredentials:!0}).subscribe($=>{$.customers.sort((ge,Ne)=>f.Z.compareByLocaleString(ge.name.trim(),Ne.name.trim())),W.V.saveUserData($),U&&U($)},()=>{$e&&$e()})}localLogin(U,$e){let ge={headers:(new i.WM).set("Content-Type","application/x-www-form-urlencoded"),withCredentials:!0};const Ne=(new i.LE).set("username",U).set("password",$e);return this.http.post(m.V.LOCAL_LOGIN,Ne.toString(),ge)}goToSsoLoginPage(){const U=document.location.origin+document.location.pathname;document.location.assign(m.V.SSO_LOGIN+"?return="+encodeURIComponent(U))}localLogout(){W.V.clearStorage();let U=document.location.origin+"/";document.location.assign(m.V.LOCAL_LOGOUT+"?callbackURL="+encodeURIComponent(U))}ssoLogout(){W.V.clearStorage(),document.location.assign(m.V.SSO_LOGOUT)}userLoggedIn(){return!!W.V.getCstUser()}isPublic(){return window.location.href.includes("public")}isCustomerPage(){return null!=W.V.getSelectedCustomerCode(this.getRouter())}navigateUserToFirstCustomerFirstPage(){let $=W.V.getCstUser().customers[0].customerCode;this.getRouter().navigate([$,"OPERATOR".toLowerCase(),L.g.REQUESTS])}navigateUserToDefaultPage(U,$e){this.userLoggedIn()?this.getRouter().navigate([U,$e.toLowerCase(),L.g.REQUESTS]):this.isPublic()?console.log("Nowhere to redirect in public!"):this.getRouter().navigate([L.g.LOGIN])}navigateToSelectedCustomerAndRolePageWithFeedbacks(U,$e){const $=new re.w(L.g.REQUESTS);$.feedback=!0,$.open=!1,W.V.setFilter(L.g.OPERATOR,L.g.REQUESTS,$);const ge=W.V.getSelectedCustomerCode(this.getRouter()),Ne=W.V.getSelectedRoleCode(this.getRouter());this.getRouter().navigate([ge,Ne].concat(U),{state:{cstRequest:$e}})}navigateToSelectedCustomerAndRolePage(U,$e){const $=W.V.getSelectedCustomerCode(this.getRouter()),ge=W.V.getSelectedRoleCode(this.getRouter());this.getRouter().navigate([$,ge].concat(U),{state:{cstRequest:$e}})}navigateToLogin(){this.getRouter().navigate([L.g.LOGIN])}navigateToNotfound(){const U=W.V.getSelectedCustomerCode(this.getRouter()),$e=W.V.getSelectedRoleCode(this.getRouter());this.getRouter().navigate([U,$e,L.g.NOTFOUND])}}return(K=ne).\u0275fac=function(U){return new(U||K)(q.LFG(i.eN),q.LFG(q.zs3))},K.\u0275prov=q.Yz7({token:K,factory:K.\u0275fac}),ne})()},6168:(xt,Ke,p)=>{"use strict";p.d(Ke,{v:()=>ne});var i=p(9862),s=p(2413),m=p(6124),L=p(2079),f=p(6680),W=p(6342),re=p(3778),q=p(7479),ae=p(5879),K=p(9600);let ne=(()=>{var he;class U{constructor($,ge){this.http=$,this.errorService=ge,this.newRequestTypeAndReasonCodeL1=new L.xQ,this.newRequestTypeAndReasonCodeL1$=this.newRequestTypeAndReasonCodeL1.asObservable()}getPdfSummary($){return this.http.post(f.B.ROOT_REQUEST+"/"+$,null,{responseType:"blob",headers:new i.WM({"Content-Type":"application/pdf",Accept:"application/pdf"})}).pipe((0,s.K)(this.handleError.bind(this)))}updateRequestTypeAndReasonCodeL1Values($,ge){let Ne=new Map;Ne.set(W.g.REQUEST_TYPE,$),Ne.set(W.g.REASON_CODE_L1,ge),this.newRequestTypeAndReasonCodeL1.next(Ne)}getRequestTypesByCustomerCode(){return this.http.get(f.B.CONF_REQUEST_TYPES_BY_CUSTOMER,re.bL).pipe((0,m.U)($=>$),(0,s.K)(this.handleError.bind(this)))}getLccs(){return this.http.get(f.B.CONF_CUSTOMER_LCC,re.bL).pipe((0,m.U)($=>$),(0,s.K)(this.handleError.bind(this)))}getLccsWithRequestLcc($){const ge=(new i.LE).set("requestLccCode",String($));return this.http.get(f.B.CONF_CUSTOMER_LCC_WITH_REQUEST_LCC,{...re.bL,params:ge}).pipe((0,m.U)(Ne=>Ne),(0,s.K)(this.handleError.bind(this)))}getPriorities($){return this.http.get(f.B.CONF_REQUEST_PRIORITIES+"/"+$,re.bL).pipe((0,m.U)(ge=>ge),(0,s.K)(this.handleError.bind(this)))}getAutoDocUploadToShipmentsConfig($){return this.http.get(f.B.CONF_REQUEST_AUTO_DOC_UPLOAD_TO_SHIPMENTS+"/"+$,re.bL).pipe((0,m.U)(ge=>ge),(0,s.K)(this.handleError.bind(this)))}getProactiveConfig($){return this.http.get(f.B.CONF_REQUEST_PROACTIVE+"/"+$,re.bL).pipe((0,m.U)(ge=>ge),(0,s.K)(this.handleError.bind(this)))}getIsValidConfig($){return this.http.get(f.B.CONF_REQUEST_ISVALID+"/"+$,re.bL).pipe((0,m.U)(ge=>ge),(0,s.K)(this.handleError.bind(this)))}getRequestingPartyConfig($){return this.http.get(f.B.CONF_REQUEST_REQUESTING_PARTIES+"/"+$,re.bL).pipe((0,m.U)(ge=>ge),(0,s.K)(this.handleError.bind(this)))}getRequestTypePartiesConfig($){return this.http.get(f.B.CONF_REQUEST_TYPE_CONFIG+"/"+$,re.bL).pipe((0,m.U)(ge=>ge),(0,s.K)(this.handleError.bind(this)))}rootCauseConfig($){return this.http.get(f.B.CONF_ROOT_CAUSE_CONFIG+"/"+$,re.QO).pipe((0,m.U)(ge=>ge),(0,s.K)(this.handleError.bind(this)))}rootCauseParties($){return this.http.get(f.B.CONF_ROOT_CAUSE_PARTIES+"/"+$,re.bL).pipe((0,m.U)(ge=>ge),(0,s.K)(this.handleError.bind(this)))}rootCauseCategories($,ge){return this.http.get(f.B.CONF_ROOT_CAUSE_CATEGORIES+"/"+$+"/"+ge,re.bL).pipe((0,m.U)(Ne=>Ne),(0,s.K)(this.handleError.bind(this)))}reasonCodes($,ge,Ne){return this.http.get(f.B.CONF_CUSTOMER_REASON_CODE+"/"+$+(ge?"/"+ge:"")+(Ne?"/"+Ne:""),re.bL).pipe((0,m.U)(ie=>ie.sort((ee,x)=>q.Z.compareByLocaleString(ee.name.trim(),x.name.trim()))),(0,s.K)(this.handleError.bind(this)))}getHandlerGroups($,ge){return this.http.get(f.B.CONF_HANDLER_GROUPS+"/"+$+(ge?"/"+ge:""),re.bL).pipe((0,m.U)(Ne=>Ne),(0,s.K)(this.handleError.bind(this)))}getRequestingParties($){let ge=new i.LE;return $&&$.forEach(Ne=>{ge=ge.append("includeRequestingParties",String(Ne))}),this.http.get(f.B.CONF_REQUESTING_PARTIES,{...re.bL,params:ge}).pipe((0,m.U)(Ne=>Ne.sort((ie,ee)=>q.Z.compareByLocaleString(ie.name.trim(),ee.name.trim()))),(0,s.K)(this.handleError.bind(this)))}getInvolvedParties($){let ge=new i.LE;return $&&$.forEach(Ne=>{ge=ge.append("includeInvolvedParties",String(Ne))}),this.http.get(f.B.CONF_INVOLVED_PARTIES,{...re.bL,params:ge}).pipe((0,m.U)(Ne=>Ne.sort((ie,ee)=>q.Z.compareByLocaleString(ie.name.trim(),ee.name.trim()))),(0,s.K)(this.handleError.bind(this)))}requesters(){return this.http.get(f.B.CONF_REQUESTERS,re.bL).pipe((0,m.U)($=>$.sort((ge,Ne)=>q.Z.compareByLocaleString(ge.fullName.trim(),Ne.fullName.trim()))),(0,s.K)(this.handleError.bind(this)))}handlersOfRequest($){return this.http.get(f.B.CONF_HANDLERS+"/"+$,re.bL).pipe((0,m.U)(ge=>ge.sort((Ne,ie)=>q.Z.compareByLocaleString(Ne.fullName.trim(),ie.fullName.trim()))),(0,s.K)(this.handleError.bind(this)))}customerSetupValid(){return this.http.get(f.B.CONF_CUSTOMER_SETUP_VALID,{...re.bL}).pipe((0,m.U)($=>$),(0,s.K)(this.handleError.bind(this)))}handleError($){return this.errorService.logAndReturnObservableErrorResponse($,U.name)}}return(he=U).\u0275fac=function($){return new($||he)(ae.LFG(i.eN),ae.LFG(K.T))},he.\u0275prov=ae.Yz7({token:he,factory:he.\u0275fac}),U})()},4793:(xt,Ke,p)=>{"use strict";p.d(Ke,{w:()=>ae});var i=p(2079),s=p(3778),m=p(2413),L=p(6680),f=p(7567),W=p(5879),re=p(9862),q=p(9600);let ae=(()=>{var K;class ne{constructor(U,$e){this.http=U,this.errorService=$e,this.COUNT_DEFAULT_ZERO=0,this.inboxCountTotal=this.COUNT_DEFAULT_ZERO,this.inboxCountFiltered=this.COUNT_DEFAULT_ZERO,this.requestsCountTotal=this.COUNT_DEFAULT_ZERO,this.requestsCountFiltered=this.COUNT_DEFAULT_ZERO,this.feedbackCountArchive=this.COUNT_DEFAULT_ZERO,this.feedbackCountRequests=this.COUNT_DEFAULT_ZERO,this.updateCountSource=new i.xQ,this.updateCount$=this.updateCountSource.asObservable()}getCounts(){return this.http.get(L.B.ROOT_COUNT,s.bL).pipe((0,m.K)(this.handleError.bind(this)))}getFilteredRequestsCount(U){return this.menuRequestContext=U.menuRequestContext,this.http.post(L.B.GET_FILTERED_REQUESTS_COUNT,U,s.bL).pipe((0,m.K)(this.handleError.bind(this)))}updateCount(){this.updateCountSource.next()}handleError(U){return this.errorService.logAndReturnObservableErrorResponse(U,ne.name)}resetCount(){this.inboxCountTotal=this.COUNT_DEFAULT_ZERO,this.inboxCountFiltered=this.COUNT_DEFAULT_ZERO,this.requestsCountTotal=this.COUNT_DEFAULT_ZERO,this.requestsCountFiltered=this.COUNT_DEFAULT_ZERO,this.feedbackCountArchive=this.COUNT_DEFAULT_ZERO,this.feedbackCountRequests=this.COUNT_DEFAULT_ZERO}setRequestsCount(U){this.requestsCountFiltered=U,this.inboxCountFiltered=this.COUNT_DEFAULT_ZERO}setInboxCount(U){this.inboxCountFiltered=U,this.requestsCountFiltered=this.COUNT_DEFAULT_ZERO}setTotalCounts(U){this.inboxCountTotal=U.inbox,this.requestsCountTotal=U.request,this.feedbackCountArchive=U.feedbackCountArchive,this.feedbackCountRequests=U.feedbackCountRequests}requestsCountText(){return this.getCounterText(f.V.REQUESTS,this.requestsCountFiltered,this.requestsCountTotal)}inboxCountText(){return this.getCounterText(f.V.INBOX,this.inboxCountFiltered,this.inboxCountTotal)}getCounterText(U,$e,$){return this.menuRequestContext!=U||$==this.COUNT_DEFAULT_ZERO||$e==$?""+$:this.menuRequestContext==U&&$e==this.COUNT_DEFAULT_ZERO?this.COUNT_DEFAULT_ZERO+"/"+$:$e+"/"+$}feedbackCountTotalText(){const U=this.feedbackCountArchive+this.feedbackCountRequests;return String(0==U?this.COUNT_DEFAULT_ZERO:U)}feedbackCountTooltipText(){return this.feedbackCountArchive+" from Archive, "+this.feedbackCountRequests+" from Requests"}}return(K=ne).\u0275fac=function(U){return new(U||K)(W.LFG(re.eN),W.LFG(q.T))},K.\u0275prov=W.Yz7({token:K,factory:K.\u0275fac}),ne})()},5157:(xt,Ke,p)=>{"use strict";p.d(Ke,{v:()=>st});var i=p(2594),s=p(1280),m=p(254),L=p(7279),f=p(6735),W=p(6258);class q{constructor(Q){this.resultSelector=Q}call(Q,qe){return qe.subscribe(new ae(Q,this.resultSelector))}}class ae extends m.L{constructor(Q,qe,Te=Object.create(null)){super(Q),this.iterators=[],this.active=0,this.resultSelector="function"==typeof qe?qe:null,this.values=Te}_next(Q){const qe=this.iterators;(0,s.k)(Q)?qe.push(new ne(Q)):qe.push("function"==typeof Q[W.hZ]?new K(Q[W.hZ]()):new he(this.destination,this,Q))}_complete(){const Q=this.iterators,qe=Q.length;if(this.unsubscribe(),0!==qe){this.active=qe;for(let Te=0;Tethis.index}hasCompleted(){return this.array.length===this.index}}class he extends L.L{constructor(Q,qe,Te){super(Q),this.parent=qe,this.observable=Te,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[W.hZ](){return this}next(){const Q=this.buffer;return 0===Q.length&&this.isComplete?{value:null,done:!0}:{value:Q.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(Q,qe,Te,se,Se){this.buffer.push(qe),this.parent.checkIterators()}subscribe(Q,qe){return(0,f.D)(this,this.observable,this,qe)}}var Ne,ie,ee,U=p(5253),$e=p(7734),$=p(2763);class ge{constructor(){this.handlerGroup=new $.l,this.requestType=new $.l,this.reasonCodeL1=new $.l,this.reasonCodeL2=new $.l,this.reasonCodeL3=new $.l,this.responsibleInvolvedParty=new $.l,this.rootCauseParty=new $.l,this.rootCauseCategory=new $.l,this.qualifiers=[]}}class x{}(Ne=x).LCC=0,Ne.REQUESTING_PARTY=Ne.LCC+1,Ne.HANDLED_BY=Ne.REQUESTING_PARTY+1,Ne.HANDLED_BY_TEAM=Ne.HANDLED_BY+1,Ne.REQUEST_TYPE=Ne.HANDLED_BY_TEAM+1,Ne.PRIORITY=Ne.REQUEST_TYPE+1,Ne.REASON_CODE_1=Ne.PRIORITY+1,Ne.REASON_CODE_2=Ne.REASON_CODE_1+1,Ne.REASON_CODE_3=Ne.REASON_CODE_2+1,Ne.INVOLVED_PARTY=Ne.REASON_CODE_3+1,Ne.ROOT_CAUSE_PARTY=Ne.INVOLVED_PARTY+1,Ne.ROOT_CAUSE_CATEGORY=Ne.ROOT_CAUSE_PARTY+1,Ne.PROACTIVE=Ne.ROOT_CAUSE_CATEGORY+1,Ne.DESCRIPTION=Ne.PROACTIVE+1,Ne.SHIPMENTS_ORDERS=Ne.DESCRIPTION+1,Ne.QUALIFIER_CODES=Ne.SHIPMENTS_ORDERS+1,Ne.QUALIFIER_VALUES=Ne.QUALIFIER_CODES+1,Ne.MARKED_FOR_AUTO_CLOSE=Ne.QUALIFIER_VALUES+1,Ne.SEND_EMAILS=Ne.MARKED_FOR_AUTO_CLOSE+1,Ne.CLOSE=Ne.SEND_EMAILS+1,Ne.CLOSING_REMARK=Ne.CLOSE+1,Ne.LINK_ORDERS=Ne.CLOSING_REMARK+1,Ne.ROOT_CAUSE_DESCRIPTION=Ne.LINK_ORDERS+1,Ne.CAPA_DESCRIPTION=Ne.ROOT_CAUSE_DESCRIPTION+1,Ne.IS_VALID=Ne.CAPA_DESCRIPTION+1;class X{}(ie=X).REQUEST_KEY=0,ie.LCC=ie.REQUEST_KEY+1,ie.REQUESTING_PARTY=ie.LCC+1,ie.HANDLED_BY=ie.REQUESTING_PARTY+1,ie.REASON_CODE_1=ie.HANDLED_BY+1,ie.REASON_CODE_2=ie.REASON_CODE_1+1,ie.REASON_CODE_3=ie.REASON_CODE_2+1,ie.INVOLVED_PARTY=ie.REASON_CODE_3+1,ie.ROOT_CAUSE_PARTY=ie.INVOLVED_PARTY+1,ie.ROOT_CAUSE_CATEGORY=ie.ROOT_CAUSE_PARTY+1,ie.PROACTIVE=ie.ROOT_CAUSE_CATEGORY+1,ie.DESCRIPTION=ie.PROACTIVE+1,ie.SHIPMENTS_ORDERS=ie.DESCRIPTION+1,ie.QUALIFIER_NAMES=ie.SHIPMENTS_ORDERS+1,ie.QUALIFIER_VALUES=ie.QUALIFIER_NAMES+1,ie.MARKED_FOR_AUTO_CLOSE=ie.QUALIFIER_VALUES+1,ie.CLOSE=ie.MARKED_FOR_AUTO_CLOSE+1,ie.CANCEL=ie.CLOSE+1,ie.SEND_EMAILS=ie.CANCEL+1,ie.CLOSING_REMARK=ie.SEND_EMAILS+1,ie.LINK_ORDERS=ie.CLOSING_REMARK+1,ie.ROOT_CAUSE_DESCRIPTION=ie.LINK_ORDERS+1,ie.CAPA_DESCRIPTION=ie.ROOT_CAUSE_DESCRIPTION+1,ie.IS_VALID=ie.CAPA_DESCRIPTION+1,(ee=class Ve{}).REQUEST_KEY=0,ee.REQUESTING_PARTY=ee.REQUEST_KEY+1,ee.REASON_CODE_1=ee.REQUESTING_PARTY+1,ee.REASON_CODE_2=ee.REASON_CODE_1+1,ee.REASON_CODE_3=ee.REASON_CODE_2+1,ee.INVOLVED_PARTY=ee.REASON_CODE_3+1,ee.RESPONSIBLE_INVOLVED_PARTY=ee.INVOLVED_PARTY+1,ee.ROOT_CAUSE_PARTY=ee.RESPONSIBLE_INVOLVED_PARTY+1,ee.ROOT_CAUSE_CATEGORY=ee.ROOT_CAUSE_PARTY+1,ee.PROACTIVE=ee.ROOT_CAUSE_CATEGORY+1,ee.DESCRIPTION=ee.PROACTIVE+1,ee.QUALIFIER_CODES=ee.DESCRIPTION+1,ee.QUALIFIER_VALUES=ee.QUALIFIER_CODES+1,ee.CANCEL=ee.QUALIFIER_VALUES+1;class we{}class Ie{}var te=p(6680),ce=p(21),Re=p(6342),He=p(5879),nt=p(4316),_t=p.t(nt,2);let dt=(()=>{var _e;class Q{constructor(){this._papa=_t}parse(Te,se){return this._papa.parse(Te,se)}unparse(Te,se){return this._papa.unparse(Te,se)}setLocalChunkSize(Te){this._papa.LocalChunkSize=Te}setRemoteChunkSize(Te){this._papa.RemoteChunkSize=Te}setDefaultDelimiter(Te){this._papa.DefaultDelimiter=Te}get badDelimiters(){return this._papa.BAD_DELIMITERS}get recordSeparator(){return this._papa.RECORD_SEP}get unitSeparator(){return this._papa.UNIT_SEP}get workersSupported(){return this._papa.WORKERS_SUPPORTED}}return(_e=Q).\u0275fac=function(Te){return new(Te||_e)},_e.\u0275prov=He.Yz7({token:_e,factory:_e.\u0275fac,providedIn:"root"}),Q})();var yt=p(703),ot=p(9600);let st=(()=>{var _e;class Q{constructor(Te,se,Se){this.papa=Te,this.requestService=se,this.errorService=Se}parseCsv(Te,se,Se,N){Te&&this.papa.parse(Te,{complete:oe=>{if(oe){const ye=new we;ye.operation=se,ye.name=Te.name;let Fe=[];switch(se){case Re.g.CSV_TYPE_CREATE:Fe=this.mapCsvDataForInsert(oe.data);break;case Re.g.CSV_TYPE_UPDATE:Fe=this.mapCsvDataForUpdate(oe.data)}this.callCsvSave(ye,Fe,Se,N)}},error:()=>{N("error parsing csv")},delimiter:";",skipEmptyLines:!0})}submitCsv(Te,se,Se,N){this.parseCsv(Te,se,Se,N)}callCsvSave(Te,se,Se,N){Te.rows=[];let oe=0;for(const ye of se){const Fe=new Ie;Fe.rowNumber=oe,Fe.data=JSON.stringify(ye),Te.rows.push(Fe),oe++}this.requestService.saveCsvRequests(Te).subscribe(()=>Se(),ye=>N(this.errorService.getErrors(ye)))}static quote(Te){return null!==Te?Te:null}mapCsvDataForInsert(Te){const se=[];return Te.forEach((Se,N)=>{if(N){const oe=",",ye=new ge;ye.lcc=Q.trim(Se[x.LCC]),ye.requestingParties=Q.mapMultipleValues(Se[x.REQUESTING_PARTY],oe).map(Fe=>new $.l(Fe.trim())),ye.handlerEmail=Q.trim(Se[x.HANDLED_BY]).toLowerCase(),ye.handlerGroup.name=Q.trim(Se[x.HANDLED_BY_TEAM]),ye.requestType.code=Q.trim(Se[x.REQUEST_TYPE]),ye.priority=Q.trim(Se[x.PRIORITY]),ye.reasonCodeL1.name=Q.trim(Se[x.REASON_CODE_1]),ye.reasonCodeL2.name=Q.trim(Se[x.REASON_CODE_2]),ye.reasonCodeL3.name=Q.trim(Se[x.REASON_CODE_3]),ye.involvedParties=Q.mapMultipleValues(Se[x.INVOLVED_PARTY],oe).map(Fe=>new $.l(Fe.trim())),ye.rootCauseParty.name=Q.trim(Se[x.ROOT_CAUSE_PARTY]),ye.rootCauseCategory.name=Q.trim(Se[x.ROOT_CAUSE_CATEGORY]),ye.proactive=Q.mapBoolean(Se[x.PROACTIVE]),ye.description=Q.quote(Q.trim(Se[x.DESCRIPTION])),ye.references=Q.mapMultipleValues(Se[x.SHIPMENTS_ORDERS],oe),this.setQualifiers(Se,ye,x.QUALIFIER_CODES,x.QUALIFIER_VALUES),ye.markedForAutoClose=Q.mapBoolean(Se[x.MARKED_FOR_AUTO_CLOSE]),ye.sendEmails=Q.mapBoolean(Se[x.SEND_EMAILS]),ye.close=Q.mapBoolean(Se[x.CLOSE]),ye.closingRemark=Q.trim(Se[x.CLOSING_REMARK]),ye.linkOrders=Q.mapBoolean(Se[x.LINK_ORDERS]),ye.capaDescription=Q.trim(Se[x.CAPA_DESCRIPTION]),ye.rootCauseDescription=Q.trim(Se[x.ROOT_CAUSE_DESCRIPTION]),ye.isValid=Q.mapBoolean(Se[x.IS_VALID]),se.push(ye)}}),se}setQualifiers(Te,se,Se,N){Te[Se]&&Te[N]&&function re(..._e){const Q=_e[_e.length-1];return"function"==typeof Q&&_e.pop(),(0,i.n)(_e,void 0).lift(new q(Q))}((0,U.D)(Te[Se].split("|").map(oe=>oe.trim())),(0,U.D)(Te[N].split("|").map(oe=>oe.trim()))).pipe((0,$e.h)(([oe,ye])=>!(!oe||!ye))).subscribe(([oe,ye])=>se.qualifiers.push({name:oe,value:ye}))}static mapMultipleValues(Te,se){return Te?Te.split(se).map(Se=>Se.trim()).filter(Se=>Se):[]}static mapBoolean(Te){const se=Q.trim(Te);return""===se?null:se.startsWith("Y")}static trim(Te){return Te?Te.trim():""}mapCsvDataForUpdate(Te){const se=[];return Te.forEach((Se,N)=>{if(N){const oe=",",ye=new ge;ye.requestKey=Q.trim(Se[X.REQUEST_KEY]),ye.lcc=Q.trim(Se[X.LCC]),ye.requestingParties=Q.mapMultipleValues(Se[X.REQUESTING_PARTY],oe).map(Fe=>new $.l(Fe.trim())),ye.handlerEmail=Q.trim(Se[X.HANDLED_BY]),ye.reasonCodeL1.name=Q.trim(Se[X.REASON_CODE_1]),ye.reasonCodeL2.name=Q.trim(Se[X.REASON_CODE_2]),ye.reasonCodeL3.name=Q.trim(Se[X.REASON_CODE_3]),ye.involvedParties=Q.mapMultipleValues(Se[X.INVOLVED_PARTY],oe).map(Fe=>new $.l(Fe.trim())),ye.rootCauseParty.name=Q.trim(Se[X.ROOT_CAUSE_PARTY]),ye.rootCauseCategory.name=Q.trim(Se[X.ROOT_CAUSE_CATEGORY]),ye.proactive=Q.mapBoolean(Se[X.PROACTIVE]),ye.description=Q.quote(Q.trim(Se[X.DESCRIPTION])),ye.references=Q.mapMultipleValues(Se[X.SHIPMENTS_ORDERS],oe),this.setQualifiers(Se,ye,X.QUALIFIER_NAMES,X.QUALIFIER_VALUES),ye.markedForAutoClose=Q.mapBoolean(Se[X.MARKED_FOR_AUTO_CLOSE]),ye.close=Q.mapBoolean(Se[X.CLOSE]),ye.cancel=Q.mapBoolean(Se[X.CANCEL]),ye.sendEmails=Q.mapBoolean(Se[X.SEND_EMAILS]),ye.closingRemark=Q.trim(Se[X.CLOSING_REMARK]),ye.linkOrders=Q.mapBoolean(Se[X.LINK_ORDERS]),ye.capaDescription=Q.trim(Se[X.CAPA_DESCRIPTION]),ye.rootCauseDescription=Q.trim(Se[X.ROOT_CAUSE_DESCRIPTION]),ye.isValid=Q.mapBoolean(Se[X.IS_VALID]),se.push(ye)}}),se}getUploadedCsvs(){return this.requestService.getCsvRequests()}static generateDownloadResultCsvUrl(Te,se){return te.B.CSV_REQUEST_RESULT+"/"+Te+"?customerCode="+ce.V.getSelectedCustomerCode(se)}}return(_e=Q).\u0275fac=function(Te){return new(Te||_e)(He.LFG(dt),He.LFG(yt.s),He.LFG(ot.T))},_e.\u0275prov=He.Yz7({token:_e,factory:_e.\u0275fac}),Q})()},6915:(xt,Ke,p)=>{"use strict";p.d(Ke,{S:()=>K});var i=p(6222),s=p(2413),m=p(553),L=p(2792),f=p(21),W=p(6342),re=p(5879),q=p(1488),ae=p(5295);let K=(()=>{var ne;class he{constructor($e,$){this.router=$e,this.authService=$}intercept($e,$){let ge=$e.params;return null!=f.V.getCustomerCode()?ge=ge.append(W.g.CUSTOMER_CODE,f.V.getCustomerCode()):this.router.routerState.snapshot.root.firstChild&&null!=f.V.getSelectedCustomerCode(this.router)&&(ge=ge.append(W.g.CUSTOMER_CODE,f.V.getSelectedCustomerCode(this.router))),ge=ge.append("d",(new Date).getTime().toString()),$e=$e.clone({withCredentials:!0,params:ge}),$.handle($e).pipe((0,s.K)(Ne=>(Ne.status===L.WY||Ne.status===L.xe?(f.V.clearStorage(),m.N.SSOAuth?document.location.reload():this.authService.navigateToLogin()):Ne.status===L.Hi&&this.authService.navigateToNotfound(),(0,i._)(Ne))))}}return(ne=he).\u0275fac=function($e){return new($e||ne)(re.LFG(q.F0),re.LFG(ae.e))},ne.\u0275prov=re.Yz7({token:ne,factory:ne.\u0275fac}),he})()},703:(xt,Ke,p)=>{"use strict";p.d(Ke,{s:()=>ne});var i=p(9862),s=p(2413),m=p(6124),L=p(3778),f=p(6680),W=p(6342),re=p(7700),q=p(5879),ae=p(5295),K=p(9600);let ne=(()=>{var he;class U{constructor($,ge,Ne){this.http=$,this.authService=ge,this.errorService=Ne}handleError($){return this.errorService.logAndReturnObservableErrorResponse($,U.name)}getRequests($,ge,Ne){return Ne.page=String($),Ne.size=String(ge),this.http.post(f.B.GET_REQUEST_REQUESTS,Ne,L.bL).pipe((0,s.K)(this.handleError.bind(this)))}getInboxRequests($,ge,Ne){return Ne.page=String($),Ne.size=String(ge),this.http.post(f.B.ROOT_REQUEST_INBOX,Ne,L.bL).pipe((0,s.K)(this.handleError.bind(this)))}getAutomatedRequests($,ge,Ne){return Ne.page=String($),Ne.size=String(ge),this.http.post(f.B.ROOT_REQUEST_AUTOMATED,Ne,L.bL).pipe((0,s.K)(this.handleError.bind(this)))}getRequest($){return this.http.get(f.B.ROOT_REQUEST+"/"+$,L.bL).pipe((0,s.K)(this.handleError.bind(this)))}getClosedRequest($){return this.http.get(f.B.ROOT_REQUEST+"/closed/"+$,L.bL).pipe((0,s.K)(this.handleError.bind(this)))}getDraftRequest($){return this.http.get(f.B.ROOT_REQUEST+"/draft/"+$,L.bL).pipe((0,s.K)(this.handleError.bind(this)))}createDraftRequest($){return this.http.post(f.B.ROOT_REQUEST,$,L.bL).pipe((0,s.K)(this.handleError.bind(this)))}updateDraftRequest($){return this.http.put(f.B.ROOT_REQUEST,$,L.bL).pipe((0,s.K)(this.handleError.bind(this)))}updateClosedRequest($){return this.http.post(f.B.UPDATE_REQUEST_DATA+"/closed/",$,L.bL).pipe((0,s.K)(this.handleError.bind(this)))}updateRequestData($){return this.http.post(f.B.UPDATE_REQUEST_DATA,$,L.bL).pipe((0,s.K)(this.handleError.bind(this)))}markCommentRead($,ge){return this.http.put(f.B.MARK_COMMENT_READ+"/"+$+"/"+ge,L.bL).pipe((0,s.K)(this.handleError.bind(this)))}markAutoClose($,ge,Ne){return this.http.post(f.B.MARK_AUTO_CLOSE+"/"+$,{closingRemark:ge,trace:Ne},L.bL).pipe((0,s.K)(this.handleError.bind(this)))}getAutoCloseUpdateInformation($){return this.http.get(f.B.UPDATE_AUTO_CLOSE_INFORMATION+"/"+$,L.bL).pipe((0,s.K)(this.handleError.bind(this)))}unmarkAutoClose($,ge){return this.http.post(f.B.UNMARK_AUTO_CLOSE+"/"+$,{trace:ge},L.bL).pipe((0,s.K)(this.handleError.bind(this)))}updateAutomaticProcessing($,ge){return this.http.post(f.B.UPDATE_AUTOMATIC_PROCESSING+"/"+$+"/"+ge,L.bL).pipe((0,s.K)(this.handleError.bind(this)))}saveAndProceed($){return this.http.post(f.B.SAVE_AND_PROCEED,$,L.bL).pipe((0,s.K)(this.handleError.bind(this)))}saveAndProceedMultiple($){return this.http.post(f.B.SAVE_MULTIPLE,{requests:$},L.bL).pipe((0,s.K)(this.handleError.bind(this)))}cancelRequest($,ge){return this.http.post(f.B.ROOT_REQUEST+"/"+$+"/cancel",ge,L.bL).pipe((0,s.K)(this.handleError.bind(this)))}cancelClosedRequest($,ge){return this.http.post(f.B.ROOT_REQUEST+"/closed/"+$+"/cancel",ge,L.bL).pipe((0,s.K)(this.handleError.bind(this)))}closeRequest($,ge){return this.http.post(f.B.ROOT_REQUEST+"/"+$+"/close",ge,L.bL).pipe((0,s.K)(this.handleError.bind(this)))}closeAndSend($,ge,Ne){return this.http.post(f.B.ROOT_REQUEST+"/"+ge+"/"+Ne+"/closeAndSend",$,L.bL).pipe((0,s.K)(this.handleError.bind(this)))}saveCsvRequests($){return this.http.post(f.B.CSV_REQUEST,$,L.bL).pipe((0,s.K)(this.handleError.bind(this)))}getCsvRequests(){return this.http.get(f.B.CSV_REQUEST,L.bL).pipe((0,s.K)(this.handleError.bind(this)))}validateRootCauses($){return this.http.get(f.B.VALIDATE_ROOT_CAUSES+"/"+$,L.bL).pipe((0,s.K)(this.handleError.bind(this)))}copyRequest($){return this.http.post(f.B.COPY_REQUEST,$,L.bL).pipe((0,s.K)(this.handleError.bind(this)))}getRequestCopy($){return this.http.post(f.B.REQUEST_COPY,$,L.bL).pipe((0,s.K)(this.handleError.bind(this)))}deleteLinkedRequest($,ge){return this.http.get(f.B.DELETE_LINKED_REQUEST+"/"+$+"/"+ge,L.bL).pipe((0,s.K)(this.handleError.bind(this)))}searchLinkedRequests($,ge){return this.http.get(f.B.SEARCH_LINKED_REQUESTS+"/"+$+"/"+ge,L.bL).pipe((0,m.U)(Ne=>Ne),(0,s.K)(this.handleError.bind(this)))}saveLinkedRequests($,ge){return this.http.post(f.B.SAVE_LINKED_REQUESTS+"/"+$,ge,L.bL).pipe((0,m.U)(Ne=>Ne),(0,s.K)(this.handleError.bind(this)))}navigateToRequest($){$.stepName?$.stepName==W.g.REASON_CLOSED||$.stepName==W.g.REASON_CANCELED?this.authService.navigateToSelectedCustomerAndRolePage([W.g.ARCHIVE,$.requestKey]):this.navigateToRequestBasedOnStatus($):this.authService.navigateToSelectedCustomerAndRolePage([W.g.INBOX,W.g.UPDATE,$.requestKey])}getLinkedRequests($){return this.http.get(f.B.GET_LINKED_REQUESTS+"/"+$,L.bL).pipe((0,m.U)(ge=>ge),(0,s.K)(this.handleError.bind(this)))}checkForDuplicates($,ge,Ne){return $&&($.forEach(ie=>{var ee;ie.isDuplicate=(null===(ee=ie.reasonCodeL1)||void 0===ee?void 0:ee.code)==(null==Ne?void 0:Ne.code)&&ie.requestType.code==(null==ge?void 0:ge.code)&&-1==ie.reasonForLinkage.indexOf(W.g.MANUALLY_LINKED)&&ie.stepName!=W.g.REASON_CANCELED}),$.sort((ie,ee)=>ee.isDuplicate-ie.isDuplicate)),$}updateFeedbackActive($,ge){return this.http.post(f.B.ROOT_REQUEST_FEEDBACK+"/"+$+"?isFeedbackActive="+ge,null).pipe((0,s.K)(this.handleError.bind(this)))}saveClosedRequestQualifierValues($,ge,Ne){const ie=(new i.LE).set("requestType",Ne);return this.http.post(f.B.SAVE_REQUEST_QUALIFIER_VALUES+"/closed/"+$,ge,{headers:L.YS,params:ie}).pipe((0,m.U)(ee=>ee),(0,s.K)(this.handleError.bind(this)))}fetchFeedbackMessages($){return this.http.get(f.B.ROOT_REQUEST_FEEDBACK+"/messages/"+$,L.bL).pipe((0,s.K)(this.handleError.bind(this)))}getRequestHistory($){return this.http.get(f.B.GET_REQUEST_HISTORY+"/"+$,L.bL).pipe((0,s.K)(this.handleError.bind(this)))}navigateToRequestBasedOnStatus($){this.authService.navigateToSelectedCustomerAndRolePage($.status===W.g.STATUS_OPEN?[W.g.REQUESTS,W.g.DETAILS,"open",$.requestKey,re.u.STEP_REQUEST_UPDATE]:[W.g.REQUESTS,W.g.DETAILS,"closed",$.requestKey])}}return(he=U).\u0275fac=function($){return new($||he)(q.LFG(i.eN),q.LFG(ae.e),q.LFG(K.T))},he.\u0275prov=q.Yz7({token:he,factory:he.\u0275fac}),U})()},4376:(xt,Ke,p)=>{"use strict";p.d(Ke,{d:()=>L});var i=p(2079),s=p(5879),m=p(5529);let L=(()=>{var f;class W{constructor(q){this.modalService=q,this.autoCloseInformationSource=new i.xQ,this.autoCloseInformation$=this.autoCloseInformationSource.asObservable()}openModal(q){this.modalService.getModal(q).open()}closeModal(q){this.modalService.getModal(q).close()}closeLatest(){this.modalService.closeLatestModal()}getAutoCloseInformation(q){this.autoCloseInformationSource.next(q)}setModalDataAndOpenModal(q,ae){this.modalService.setModalData(ae,q,!0),setTimeout(()=>this.openModal(q))}}return(f=W).\u0275fac=function(q){return new(q||f)(s.LFG(m.lu))},f.\u0275prov=s.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),W})()},1406:(xt,Ke,p)=>{"use strict";p.d(Ke,{r:()=>s});var i=p(5879);let s=(()=>{var m;class L{}return(m=L).\u0275fac=function(W){return new(W||m)},m.\u0275cmp=i.Xpm({type:m,selectors:[["page-not-found"]],decls:3,vars:0,consts:[[2,"text-align","center","margin-top","5em","font-weight","bold"]],template:function(W,re){1&W&&(i.TgZ(0,"div",0)(1,"h4"),i._uU(2,"Page not found"),i.qZA()())},encapsulation:2}),L})()},5883:(xt,Ke,p)=>{"use strict";p.d(Ke,{n:()=>m});var i=p(6814),s=p(5879);let m=(()=>{var L;class f{}return(L=f).\u0275fac=function(re){return new(re||L)},L.\u0275mod=s.oAB({type:L}),L.\u0275inj=s.cJS({imports:[i.ez]}),f})()},7428:(xt,Ke,p)=>{"use strict";var i;p.d(Ke,{$:()=>s});class s{}(i=s).ROOT="/api/public/",i.REQUEST=i.ROOT+"request/",i.FEEDBACK=i.ROOT+"feedback/",i.RA_DOCUMENTS=i.ROOT+"documents/",i.RA_DOCTYPES=i.ROOT+"doctypes/",i.RA_DOCUMENT_FORMATS=i.RA_DOCUMENTS+"formats",i.ROOT_TRANSPORT_ORDER=i.ROOT+"transportOrder/",i.ARCHIVE=i.ROOT+"archive/",i.ARCHIVE_RA_DOCUMENTS=i.ARCHIVE+"documents/",i.ROOT_TRANSPORT_ORDER_ARCHIVE=i.ROOT_TRANSPORT_ORDER+"archive/",i.VERSION=i.ROOT+"version",i.ENV=i.ROOT+"system-info"},9604:(xt,Ke,p)=>{"use strict";p.d(Ke,{h:()=>ae});var i=p(2413),s=p(3778),m=p(3843),L=p(7428),f=p(5879),W=p(9862),re=p(9600),q=p(9515);let ae=(()=>{var K;class ne{constructor(U,$e,$){this.http=U,this.errorService=$e,this.translateService=$}saveMessage(U,$e,$){return this.http.post(L.$.REQUEST+$e+this.getLinkString($),U).pipe((0,i.K)(this.handleError.bind(this)))}getPublicLinkData(U,$e){return this.http.get(L.$.REQUEST+U+this.getLinkString($e),s.bL).pipe((0,i.K)(this.handleError.bind(this)))}getArchiveMessage(U){return this.http.get(L.$.ARCHIVE+U,s.bL).pipe((0,i.K)(this.handleError.bind(this)))}getRequestTransportOrders(U){return this.http.get(L.$.ROOT_TRANSPORT_ORDER+U,s.bL).pipe((0,i.K)(this.handleError.bind(this)))}getArchiveTransportOrders(U){return this.http.get(L.$.ROOT_TRANSPORT_ORDER_ARCHIVE+U,s.bL).pipe((0,i.K)(this.handleError.bind(this)))}docTypes(U){return this.http.get(L.$.RA_DOCTYPES+U,s.bL).pipe((0,i.K)(this.handleError.bind(this)))}document(U,$e){return this.http.get(L.$.RA_DOCUMENTS+U+"/"+$e,s.bL).pipe((0,i.K)(this.handleError.bind(this)))}getVersion(){return this.http.get(L.$.VERSION,s.QO).pipe((0,i.K)(this.handleError.bind(this)))}getEnvironment(){return this.http.get(L.$.ENV,s.QO).pipe((0,i.K)(this.handleError.bind(this)))}saveFeedback(U,$e,$){return this.http.post(L.$.FEEDBACK+$e+($?"/"+$:""),U).pipe((0,i.K)(this.handleError.bind(this)))}deleteDocument(U,$e,$){return this.http.delete(L.$.RA_DOCUMENTS+U+"/"+$e+"/"+$,s.bL).pipe((0,i.K)(this.handleError.bind(this)))}handleError(U){return U.error&&!U.error.errors&&(U.error.errors=[{errorMessage:this.translateService.instant(m.h.PUBLIC_LINK_DATA_NOT_AVAILABLE)}]),this.errorService.logAndReturnObservableErrorResponse(U,ne.name)}getLinkString(U){return U?"/"+U:""}}return(K=ne).\u0275fac=function(U){return new(U||K)(f.LFG(W.eN),f.LFG(re.T),f.LFG(q.sK))},K.\u0275prov=f.Yz7({token:K,factory:K.\u0275fac}),ne})()},21:(xt,Ke,p)=>{"use strict";p.d(Ke,{V:()=>m});var i=p(6342),s=p(5879);let m=(()=>{var L;class f{static clearStorage(){sessionStorage.clear()}static saveUserData(re){sessionStorage.setItem(i.g.CST_USER,JSON.stringify(re))}static getSelectedCustomerCode(re){var q;return null===(q=re.routerState.snapshot.root.firstChild)||void 0===q?void 0:q.paramMap.get(i.g.CUSTOMER_CODE)}static getCustomerCode(){return sessionStorage.getItem(i.g.CUSTOMER_CODE)}static setCustomerCode(re){sessionStorage.setItem(i.g.CUSTOMER_CODE,re)}static getSelectedRoleCode(re){var q;return null===(q=re.routerState.snapshot.root.firstChild)||void 0===q||null===(q=q.firstChild)||void 0===q||null===(q=q.routeConfig)||void 0===q?void 0:q.path}static getSelectedPage(re){const q=re.url.split("/");return q[3]?q[3]:null}static getCstUser(){return JSON.parse(sessionStorage.getItem(i.g.CST_USER))}static setFilter(re,q,ae){sessionStorage.setItem(re+q+i.g.FILTER,JSON.stringify(ae))}static getFilter(re,q){return JSON.parse(sessionStorage.getItem(re+q+i.g.FILTER))}static saveMultipleRequests(re){sessionStorage.setItem(i.g.REQUESTS,JSON.stringify(re))}static getSavedMultipleRequests(){return JSON.parse(sessionStorage.getItem(i.g.REQUESTS))||[]}static clearSavedMultipleRequests(){sessionStorage.removeItem(i.g.REQUESTS)}}return(L=f).\u0275fac=function(re){return new(re||L)},L.\u0275prov=s.Yz7({token:L,factory:L.\u0275fac}),f})()},2792:(xt,Ke)=>{var i={202:"Accepted",502:"Bad Gateway"};i[Ke.y3=400]="Bad Request",i[409]="Conflict",i[100]="Continue",i[201]="Created",i[417]="Expectation Failed",i[424]="Failed Dependency",i[Ke.xe=403]="Forbidden",i[504]="Gateway Timeout",i[410]="Gone",i[505]="HTTP Version Not Supported",i[418]="I'm a teapot",i[419]="Insufficient Space on Resource",i[507]="Insufficient Storage",i[500]="Server Error",i[411]="Length Required",i[423]="Locked",i[420]="Method Failure",i[405]="Method Not Allowed",i[301]="Moved Permanently",i[302]="Moved Temporarily",i[207]="Multi-Status",i[300]="Multiple Choices",i[511]="Network Authentication Required",i[204]="No Content",i[203]="Non Authoritative Information",i[406]="Not Acceptable",i[Ke.Hi=404]="Not Found",i[501]="Not Implemented",i[304]="Not Modified",i[200]="OK",i[206]="Partial Content",i[402]="Payment Required",i[308]="Permanent Redirect",i[412]="Precondition Failed",i[428]="Precondition Required",i[102]="Processing",i[407]="Proxy Authentication Required",i[431]="Request Header Fields Too Large",i[408]="Request Timeout",i[413]="Request Entity Too Large",i[414]="Request-URI Too Long",i[416]="Requested Range Not Satisfiable",i[205]="Reset Content",i[303]="See Other",i[Ke.mm=503]="Service Unavailable",i[101]="Switching Protocols",i[307]="Temporary Redirect",i[429]="Too Many Requests",i[Ke.WY=401]="Unauthorized",i[422]="Unprocessable Entity",i[415]="Unsupported Media Type",i[305]="Use Proxy"},4316:function(xt,Ke){var p,s;p=function m(){"use strict";var L=typeof self<"u"?self:typeof window<"u"?window:void 0!==L?L:{},f=!L.document&&!!L.postMessage,W=L.IS_PAPA_WORKER||!1,re={},q=0,ae={parse:function(te,ce){var Re=(ce=ce||{}).dynamicTyping||!1;if(Ie(Re)&&(ce.dynamicTypingFunction=Re,Re={}),ce.dynamicTyping=Re,ce.transform=!!Ie(ce.transform)&&ce.transform,ce.worker&&ae.WORKERS_SUPPORTED){var He=function(){if(!ae.WORKERS_SUPPORTED)return!1;var yt,ot,_t=(yt=L.URL||L.webkitURL||null,ot=m.toString(),ae.BLOB_URL||(ae.BLOB_URL=yt.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",ot,")();"],{type:"text/javascript"})))),dt=new L.Worker(_t);return dt.onmessage=ee,dt.id=q++,re[dt.id]=dt}();return He.userStep=ce.step,He.userChunk=ce.chunk,He.userComplete=ce.complete,He.userError=ce.error,ce.step=Ie(ce.step),ce.chunk=Ie(ce.chunk),ce.complete=Ie(ce.complete),ce.error=Ie(ce.error),delete ce.worker,void He.postMessage({input:te,config:ce,workerId:He.id})}var _t,nt=null;return"string"==typeof te?(te=65279===(_t=te).charCodeAt(0)?_t.slice(1):_t,nt=ce.download?new he(ce):new $e(ce)):!0===te.readable&&Ie(te.read)&&Ie(te.on)?nt=new $(ce):(L.File&&te instanceof File||te instanceof Object)&&(nt=new U(ce)),nt.stream(te)},unparse:function(te,ce){var Re=!1,He=!0,nt=",",_t="\r\n",dt='"',yt=dt+dt,ot=!1,st=null,_e=!1;!function(){if("object"==typeof ce){if("string"!=typeof ce.delimiter||ae.BAD_DELIMITERS.filter(function(se){return-1!==ce.delimiter.indexOf(se)}).length||(nt=ce.delimiter),("boolean"==typeof ce.quotes||"function"==typeof ce.quotes||Array.isArray(ce.quotes))&&(Re=ce.quotes),"boolean"!=typeof ce.skipEmptyLines&&"string"!=typeof ce.skipEmptyLines||(ot=ce.skipEmptyLines),"string"==typeof ce.newline&&(_t=ce.newline),"string"==typeof ce.quoteChar&&(dt=ce.quoteChar),"boolean"==typeof ce.header&&(He=ce.header),Array.isArray(ce.columns)){if(0===ce.columns.length)throw new Error("Option columns is empty");st=ce.columns}void 0!==ce.escapeChar&&(yt=ce.escapeChar+dt),("boolean"==typeof ce.escapeFormulae||ce.escapeFormulae instanceof RegExp)&&(_e=ce.escapeFormulae instanceof RegExp?ce.escapeFormulae:/^[=+\-@\t\r].*$/)}}();var Q=new RegExp(Ne(dt),"g");if("string"==typeof te&&(te=JSON.parse(te)),Array.isArray(te)){if(!te.length||Array.isArray(te[0]))return qe(null,te,ot);if("object"==typeof te[0])return qe(st||Object.keys(te[0]),te,ot)}else if("object"==typeof te)return"string"==typeof te.data&&(te.data=JSON.parse(te.data)),Array.isArray(te.data)&&(te.fields||(te.fields=te.meta&&te.meta.fields||st),te.fields||(te.fields=Array.isArray(te.data[0])?te.fields:"object"==typeof te.data[0]?Object.keys(te.data[0]):[]),Array.isArray(te.data[0])||"object"==typeof te.data[0]||(te.data=[te.data])),qe(te.fields||[],te.data||[],ot);throw new Error("Unable to serialize unrecognized input");function qe(se,Se,N){var oe="";"string"==typeof se&&(se=JSON.parse(se)),"string"==typeof Se&&(Se=JSON.parse(Se));var ye=Array.isArray(se)&&0=this._config.preview;if(W)L.postMessage({results:_t,workerId:ae.WORKER_ID,finished:yt});else if(Ie(this._config.chunk)&&!Re){if(this._config.chunk(_t,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);_t=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(_t.data),this._completeResults.errors=this._completeResults.errors.concat(_t.errors),this._completeResults.meta=_t.meta),this._completed||!yt||!Ie(this._config.complete)||_t&&_t.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),yt||_t&&_t.meta.paused||this._nextChunk(),_t}this._halted=!0},this._sendError=function(ce){Ie(this._config.error)?this._config.error(ce):W&&this._config.error&&L.postMessage({workerId:ae.WORKER_ID,error:ce,finished:!1})}}function he(te){var ce;(te=te||{}).chunkSize||(te.chunkSize=ae.RemoteChunkSize),ne.call(this,te),this._nextChunk=f?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(Re){this._input=Re,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(ce=new XMLHttpRequest,this._config.withCredentials&&(ce.withCredentials=this._config.withCredentials),f||(ce.onload=we(this._chunkLoaded,this),ce.onerror=we(this._chunkError,this)),ce.open(this._config.downloadRequestBody?"POST":"GET",this._input,!f),this._config.downloadRequestHeaders){var Re=this._config.downloadRequestHeaders;for(var He in Re)ce.setRequestHeader(He,Re[He])}this._config.chunkSize&&ce.setRequestHeader("Range","bytes="+this._start+"-"+(this._start+this._config.chunkSize-1));try{ce.send(this._config.downloadRequestBody)}catch(_t){this._chunkError(_t.message)}f&&0===ce.status&&this._chunkError()}},this._chunkLoaded=function(){var He;4===ce.readyState&&(ce.status<200||400<=ce.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:ce.responseText.length,this._finished=!this._config.chunkSize||this._start>=(null===(He=ce.getResponseHeader("Content-Range"))?-1:parseInt(He.substring(He.lastIndexOf("/")+1))),this.parseChunk(ce.responseText)))},this._chunkError=function(Re){this._sendError(new Error(ce.statusText||Re))}}function U(te){var ce,Re;(te=te||{}).chunkSize||(te.chunkSize=ae.LocalChunkSize),ne.call(this,te);var He=typeof FileReader<"u";this.stream=function(nt){this._input=nt,Re=nt.slice||nt.webkitSlice||nt.mozSlice,He?((ce=new FileReader).onload=we(this._chunkLoaded,this),ce.onerror=we(this._chunkError,this)):ce=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(nt.target.result)},this._chunkError=function(){this._sendError(ce.error)}}function $e(te){var ce;ne.call(this,te=te||{}),this.stream=function(Re){return ce=Re,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var Re,He=this._config.chunkSize;return He?(Re=ce.substring(0,He),ce=ce.substring(He)):(Re=ce,ce=""),this._finished=!ce,this.parseChunk(Re)}}}function $(te){ne.call(this,te=te||{});var ce=[],Re=!0,He=!1;this.pause=function(){ne.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){ne.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(nt){this._input=nt,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){He&&1===ce.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),ce.length?this.parseChunk(ce.shift()):Re=!0},this._streamData=we(function(nt){try{ce.push("string"==typeof nt?nt:nt.toString(this._config.encoding)),Re&&(Re=!1,this._checkIsFinished(),this.parseChunk(ce.shift()))}catch(_t){this._streamError(_t)}},this),this._streamError=we(function(nt){this._streamCleanUp(),this._sendError(nt)},this),this._streamEnd=we(function(){this._streamCleanUp(),He=!0,this._streamData("")},this),this._streamCleanUp=we(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function ge(te){var ce,Re,He,nt=Math.pow(2,53),_t=-nt,dt=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,yt=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,ot=this,st=0,_e=0,Q=!1,qe=!1,Te=[],se={data:[],errors:[],meta:{}};if(Ie(te.step)){var Se=te.step;te.step=function(ht){if(se=ht,ye())oe();else{if(oe(),0===se.data.length)return;st+=ht.data.length,te.preview&&st>te.preview?Re.abort():(se.data=se.data[0],Se(se,ot))}}}function N(ht){return"greedy"===te.skipEmptyLines?""===ht.join("").trim():1===ht.length&&0===ht[0].length}function oe(){return se&&He&&(Je("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+ae.DefaultDelimiter+"'"),He=!1),te.skipEmptyLines&&(se.data=se.data.filter(function(ht){return!N(ht)})),ye()&&function(){if(se)if(Array.isArray(se.data[0])){for(var vt=0;ye()&&vt=Te.length?"__parsed_extra":Te[on]),te.transform&&(Ut=te.transform(Ut,gn)),Ut=Fe(gn,Ut),"__parsed_extra"===gn?(nn[gn]=nn[gn]||[],nn[gn].push(Ut)):nn[gn]=Ut}return te.header&&(on>Te.length?Je("FieldMismatch","TooManyFields","Too many fields: expected "+Te.length+" fields but parsed "+on,_e+Yt):on=Pn.length/2?"\r\n":"\r"}(ht,te.quoteChar||'"')),He=!1,te.delimiter)Ie(te.delimiter)&&(te.delimiter=te.delimiter(ht),se.meta.delimiter=te.delimiter);else{var on=function(gn,Ut,Rn,Pn,kn){var tt,z,Ae,F;kn=kn||[",","\t","|",";",ae.RECORD_SEP,ae.UNIT_SEP];for(var me=0;me=dt)return vn(!0)}else for(Ye=st,st++;;){if(-1===(Ye=Q.indexOf(ce,Ye+1)))return Te||Je.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:Fe.length,index:st}),Xt();if(Ye===se-1)return Xt(Q.substring(st,Ye).replace(me,ce));if(ce!==ot||Q[Ye+1]!==ot){if(ce===ot||0===Ye||Q[Ye-1]!==ot){-1!==Ae&&Ae=dt)return vn(!0);break}Je.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:Fe.length,index:st}),Ye++}}else Ye++}return Xt();function Bt(pn){Fe.push(pn),vt=st}function Wt(pn){var En=0;if(-1!==pn){var un=Q.substring(Ye+1,pn);un&&""===un.trim()&&(En=un.length)}return En}function Xt(pn){return Te||(void 0===pn&&(pn=Q.substring(st)),ht.push(pn),st=se,Bt(ht),ye&&fn()),vn()}function Mt(pn){st=pn,Bt(ht),ht=[],F=Q.indexOf(He,st)}function vn(pn){return{data:Fe,errors:Je,meta:{delimiter:Re,linebreak:He,aborted:_e,truncated:!!pn,cursor:vt+(qe||0)}}}function fn(){_t(vn()),Fe=[],Je=[]}},this.abort=function(){_e=!0},this.getCharIndex=function(){return st}}function ee(te){var ce=te.data,Re=re[ce.workerId],He=!1;if(ce.error)Re.userError(ce.error,ce.file);else if(ce.results&&ce.results.data){var nt={abort:function(){He=!0,x(ce.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:X,resume:X};if(Ie(Re.userStep)){for(var _t=0;_t{"use strict";p.d(Ke,{X:()=>m});var i=p(2079),s=p(6229);class m extends i.xQ{constructor(f){super(),this._value=f}get value(){return this.getValue()}_subscribe(f){const W=super._subscribe(f);return W&&!W.closed&&f.next(this._value),W}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new s.N;return this._value}next(f){super.next(this._value=f)}}},1250:(xt,Ke,p)=>{"use strict";p.d(Ke,{d:()=>s});var i=p(254);class s extends i.L{constructor(L,f,W){super(),this.parent=L,this.outerValue=f,this.outerIndex=W,this.index=0}_next(L){this.parent.notifyNext(this.outerValue,L,this.outerIndex,this.index++,this)}_error(L){this.parent.notifyError(L,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}},6979:(xt,Ke,p)=>{"use strict";p.d(Ke,{P:()=>f});var i=p(1226),s=p(9193),m=p(6222);class f{constructor(re,q,ae){this.kind=re,this.value=q,this.error=ae,this.hasValue="N"===re}observe(re){switch(this.kind){case"N":return re.next&&re.next(this.value);case"E":return re.error&&re.error(this.error);case"C":return re.complete&&re.complete()}}do(re,q,ae){switch(this.kind){case"N":return re&&re(this.value);case"E":return q&&q(this.error);case"C":return ae&&ae()}}accept(re,q,ae){return re&&"function"==typeof re.next?this.observe(re):this.do(re,q,ae)}toObservable(){switch(this.kind){case"N":return(0,s.of)(this.value);case"E":return(0,m._)(this.error);case"C":return(0,i.c)()}throw new Error("unexpected notification kind value")}static createNext(re){return typeof re<"u"?new f("N",re):f.undefinedValueNotification}static createError(re){return new f("E",void 0,re)}static createComplete(){return f.completeNotification}}f.completeNotification=new f("C"),f.undefinedValueNotification=new f("N",void 0)},4699:(xt,Ke,p)=>{"use strict";p.d(Ke,{y:()=>ae});var i=p(254),m=p(5297),L=p(7308),W=p(2677),re=p(4813),q=p(7213);let ae=(()=>{class ne{constructor(U){this._isScalar=!1,U&&(this._subscribe=U)}lift(U){const $e=new ne;return $e.source=this,$e.operator=U,$e}subscribe(U,$e,$){const{operator:ge}=this,Ne=function f(ne,he,U){if(ne){if(ne instanceof i.L)return ne;if(ne[m.b])return ne[m.b]()}return ne||he||U?new i.L(ne,he,U):new i.L(L.c)}(U,$e,$);if(Ne.add(ge?ge.call(Ne,this.source):this.source||q.config.useDeprecatedSynchronousErrorHandling&&!Ne.syncErrorThrowable?this._subscribe(Ne):this._trySubscribe(Ne)),q.config.useDeprecatedSynchronousErrorHandling&&Ne.syncErrorThrowable&&(Ne.syncErrorThrowable=!1,Ne.syncErrorThrown))throw Ne.syncErrorValue;return Ne}_trySubscribe(U){try{return this._subscribe(U)}catch($e){q.config.useDeprecatedSynchronousErrorHandling&&(U.syncErrorThrown=!0,U.syncErrorValue=$e),function s(ne){for(;ne;){const{closed:he,destination:U,isStopped:$e}=ne;if(he||$e)return!1;ne=U&&U instanceof i.L?U:null}return!0}(U)?U.error($e):console.warn($e)}}forEach(U,$e){return new($e=K($e))(($,ge)=>{let Ne;Ne=this.subscribe(ie=>{try{U(ie)}catch(ee){ge(ee),Ne&&Ne.unsubscribe()}},ge,$)})}_subscribe(U){const{source:$e}=this;return $e&&$e.subscribe(U)}[W.L](){return this}pipe(...U){return 0===U.length?this:(0,re.U)(U)(this)}toPromise(U){return new(U=K(U))(($e,$)=>{let ge;this.subscribe(Ne=>ge=Ne,Ne=>$(Ne),()=>$e(ge))})}}return ne.create=he=>new ne(he),ne})();function K(ne){if(ne||(ne=q.config.Promise||Promise),!ne)throw new Error("no Promise impl found");return ne}},7308:(xt,Ke,p)=>{"use strict";p.d(Ke,{c:()=>m});var i=p(7213),s=p(3510);const m={closed:!0,next(L){},error(L){if(i.config.useDeprecatedSynchronousErrorHandling)throw L;(0,s.z)(L)},complete(){}}},7279:(xt,Ke,p)=>{"use strict";p.d(Ke,{L:()=>s});var i=p(254);class s extends i.L{notifyNext(L,f,W,re,q){this.destination.next(f)}notifyError(L,f){this.destination.error(L)}notifyComplete(L){this.destination.complete()}}},8367:(xt,Ke,p)=>{"use strict";p.d(Ke,{t:()=>ge});var i=p(2079),s=p(1618),L=p(1781);const W=new class f extends L.v{}(class m extends s.o{constructor(ee,x){super(ee,x),this.scheduler=ee,this.work=x}schedule(ee,x=0){return x>0?super.schedule(ee,x):(this.delay=x,this.state=ee,this.scheduler.flush(this),this)}execute(ee,x){return x>0||this.closed?super.execute(ee,x):this._execute(ee,x)}requestAsyncId(ee,x,X=0){return null!==X&&X>0||null===X&&this.delay>0?super.requestAsyncId(ee,x,X):ee.flush(this)}});var re=p(7902),q=p(254),ae=p(6979);class he extends q.L{constructor(ee,x,X=0){super(ee),this.scheduler=x,this.delay=X}static dispatch(ee){const{notification:x,destination:X}=ee;x.observe(X),this.unsubscribe()}scheduleMessage(ee){this.destination.add(this.scheduler.schedule(he.dispatch,this.delay,new U(ee,this.destination)))}_next(ee){this.scheduleMessage(ae.P.createNext(ee))}_error(ee){this.scheduleMessage(ae.P.createError(ee)),this.unsubscribe()}_complete(){this.scheduleMessage(ae.P.createComplete()),this.unsubscribe()}}class U{constructor(ee,x){this.notification=ee,this.destination=x}}var $e=p(6229),$=p(9806);class ge extends i.xQ{constructor(ee=Number.POSITIVE_INFINITY,x=Number.POSITIVE_INFINITY,X){super(),this.scheduler=X,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=ee<1?1:ee,this._windowTime=x<1?1:x,x===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(ee){const x=this._events;x.push(ee),x.length>this._bufferSize&&x.shift(),super.next(ee)}nextTimeWindow(ee){this._events.push(new Ne(this._getNow(),ee)),this._trimBufferThenGetEvents(),super.next(ee)}_subscribe(ee){const x=this._infiniteTimeWindow,X=x?this._events:this._trimBufferThenGetEvents(),Ve=this.scheduler,we=X.length;let Ie;if(this.closed)throw new $e.N;if(this.isStopped||this.hasError?Ie=re.w.EMPTY:(this.observers.push(ee),Ie=new $.W(this,ee)),Ve&&ee.add(ee=new he(ee,Ve)),x)for(let te=0;tex&&(Ie=Math.max(Ie,we-x)),Ie>0&&Ve.splice(0,Ie),Ve}}class Ne{constructor(ee,x){this.time=ee,this.value=x}}},2079:(xt,Ke,p)=>{"use strict";p.d(Ke,{Yc:()=>re,xQ:()=>q});var i=p(4699),s=p(254),m=p(7902),L=p(6229),f=p(9806),W=p(5297);class re extends s.L{constructor(ne){super(ne),this.destination=ne}}let q=(()=>{class K extends i.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[W.b](){return new re(this)}lift(he){const U=new ae(this,this);return U.operator=he,U}next(he){if(this.closed)throw new L.N;if(!this.isStopped){const{observers:U}=this,$e=U.length,$=U.slice();for(let ge=0;ge<$e;ge++)$[ge].next(he)}}error(he){if(this.closed)throw new L.N;this.hasError=!0,this.thrownError=he,this.isStopped=!0;const{observers:U}=this,$e=U.length,$=U.slice();for(let ge=0;ge<$e;ge++)$[ge].error(he);this.observers.length=0}complete(){if(this.closed)throw new L.N;this.isStopped=!0;const{observers:he}=this,U=he.length,$e=he.slice();for(let $=0;$new ae(ne,he),K})();class ae extends q{constructor(ne,he){super(),this.destination=ne,this.source=he}next(ne){const{destination:he}=this;he&&he.next&&he.next(ne)}error(ne){const{destination:he}=this;he&&he.error&&this.destination.error(ne)}complete(){const{destination:ne}=this;ne&&ne.complete&&this.destination.complete()}_subscribe(ne){const{source:he}=this;return he?this.source.subscribe(ne):m.w.EMPTY}}},9806:(xt,Ke,p)=>{"use strict";p.d(Ke,{W:()=>s});var i=p(7902);class s extends i.w{constructor(L,f){super(),this.subject=L,this.subscriber=f,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const L=this.subject,f=L.observers;if(this.subject=null,!f||0===f.length||L.isStopped||L.closed)return;const W=f.indexOf(this.subscriber);-1!==W&&f.splice(W,1)}}},254:(xt,Ke,p)=>{"use strict";p.d(Ke,{L:()=>re});var i=p(8594),s=p(7308),m=p(7902),L=p(5297),f=p(7213),W=p(3510);class re extends m.w{constructor(K,ne,he){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.c;break;case 1:if(!K){this.destination=s.c;break}if("object"==typeof K){K instanceof re?(this.syncErrorThrowable=K.syncErrorThrowable,this.destination=K,K.add(this)):(this.syncErrorThrowable=!0,this.destination=new q(this,K));break}default:this.syncErrorThrowable=!0,this.destination=new q(this,K,ne,he)}}[L.b](){return this}static create(K,ne,he){const U=new re(K,ne,he);return U.syncErrorThrowable=!1,U}next(K){this.isStopped||this._next(K)}error(K){this.isStopped||(this.isStopped=!0,this._error(K))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(K){this.destination.next(K)}_error(K){this.destination.error(K),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:K}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=K,this}}class q extends re{constructor(K,ne,he,U){super(),this._parentSubscriber=K;let $e,$=this;(0,i.m)(ne)?$e=ne:ne&&($e=ne.next,he=ne.error,U=ne.complete,ne!==s.c&&($=Object.create(ne),(0,i.m)($.unsubscribe)&&this.add($.unsubscribe.bind($)),$.unsubscribe=this.unsubscribe.bind(this))),this._context=$,this._next=$e,this._error=he,this._complete=U}next(K){if(!this.isStopped&&this._next){const{_parentSubscriber:ne}=this;f.config.useDeprecatedSynchronousErrorHandling&&ne.syncErrorThrowable?this.__tryOrSetError(ne,this._next,K)&&this.unsubscribe():this.__tryOrUnsub(this._next,K)}}error(K){if(!this.isStopped){const{_parentSubscriber:ne}=this,{useDeprecatedSynchronousErrorHandling:he}=f.config;if(this._error)he&&ne.syncErrorThrowable?(this.__tryOrSetError(ne,this._error,K),this.unsubscribe()):(this.__tryOrUnsub(this._error,K),this.unsubscribe());else if(ne.syncErrorThrowable)he?(ne.syncErrorValue=K,ne.syncErrorThrown=!0):(0,W.z)(K),this.unsubscribe();else{if(this.unsubscribe(),he)throw K;(0,W.z)(K)}}}complete(){if(!this.isStopped){const{_parentSubscriber:K}=this;if(this._complete){const ne=()=>this._complete.call(this._context);f.config.useDeprecatedSynchronousErrorHandling&&K.syncErrorThrowable?(this.__tryOrSetError(K,ne),this.unsubscribe()):(this.__tryOrUnsub(ne),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(K,ne){try{K.call(this._context,ne)}catch(he){if(this.unsubscribe(),f.config.useDeprecatedSynchronousErrorHandling)throw he;(0,W.z)(he)}}__tryOrSetError(K,ne,he){if(!f.config.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{ne.call(this._context,he)}catch(U){return f.config.useDeprecatedSynchronousErrorHandling?(K.syncErrorValue=U,K.syncErrorThrown=!0,!0):((0,W.z)(U),!0)}return!1}_unsubscribe(){const{_parentSubscriber:K}=this;this._context=null,this._parentSubscriber=null,K.unsubscribe()}}},7902:(xt,Ke,p)=>{"use strict";p.d(Ke,{w:()=>W});var i=p(1280),s=p(7755),m=p(8594);const f=(()=>{function q(ae){return Error.call(this),this.message=ae?`${ae.length} errors occurred during unsubscription:\n${ae.map((K,ne)=>`${ne+1}) ${K.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=ae,this}return q.prototype=Object.create(Error.prototype),q})();class W{constructor(ae){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,ae&&(this._unsubscribe=ae)}unsubscribe(){let ae;if(this.closed)return;let{_parentOrParents:K,_unsubscribe:ne,_subscriptions:he}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,K instanceof W)K.remove(this);else if(null!==K)for(let U=0;Uae.concat(K instanceof f?K.errors:K),[])}W.EMPTY=((q=new W).closed=!0,q)},7213:(xt,Ke,p)=>{"use strict";p.d(Ke,{config:()=>s});let i=!1;const s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(m){if(m){const L=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+L.stack)}else i&&console.log("RxJS: Back to a better error behavior. Thank you. <3");i=m},get useDeprecatedSynchronousErrorHandling(){return i}}},4247:(xt,Ke,p)=>{"use strict";p.d(Ke,{N:()=>W,c:()=>f});var i=p(2079),s=p(4699),m=p(7902),L=p(2851);class f extends s.y{constructor(ne,he){super(),this.source=ne,this.subjectFactory=he,this._refCount=0,this._isComplete=!1}_subscribe(ne){return this.getSubject().subscribe(ne)}getSubject(){const ne=this._subject;return(!ne||ne.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let ne=this._connection;return ne||(this._isComplete=!1,ne=this._connection=new m.w,ne.add(this.source.subscribe(new re(this.getSubject(),this))),ne.closed&&(this._connection=null,ne=m.w.EMPTY)),ne}refCount(){return(0,L.x)()(this)}}const W=(()=>{const K=f.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:K._subscribe},_isComplete:{value:K._isComplete,writable:!0},getSubject:{value:K.getSubject},connect:{value:K.connect},refCount:{value:K.refCount}}})();class re extends i.Yc{constructor(ne,he){super(ne),this.connectable=he}_error(ne){this._unsubscribe(),super._error(ne)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const ne=this.connectable;if(ne){this.connectable=null;const he=ne._connection;ne._refCount=0,ne._subject=null,ne._connection=null,he&&he.unsubscribe()}}}},3291:(xt,Ke,p)=>{"use strict";p.d(Ke,{aj:()=>re});var i=p(9759),s=p(1280),m=p(7279),L=p(6735),f=p(2594);const W={};function re(...K){let ne=null,he=null;return(0,i.K)(K[K.length-1])&&(he=K.pop()),"function"==typeof K[K.length-1]&&(ne=K.pop()),1===K.length&&(0,s.k)(K[0])&&(K=K[0]),(0,f.n)(K,he).lift(new q(ne))}class q{constructor(ne){this.resultSelector=ne}call(ne,he){return he.subscribe(new ae(ne,this.resultSelector))}}class ae extends m.L{constructor(ne,he){super(ne),this.resultSelector=he,this.active=0,this.values=[],this.observables=[]}_next(ne){this.values.push(W),this.observables.push(ne)}_complete(){const ne=this.observables,he=ne.length;if(0===he)this.destination.complete();else{this.active=he,this.toRespond=he;for(let U=0;U{"use strict";p.d(Ke,{z:()=>L});var i=p(9193),s=p(7449);function L(...f){return function m(){return(0,s.J)(1)}()((0,i.of)(...f))}},4917:(xt,Ke,p)=>{"use strict";p.d(Ke,{P:()=>L});var i=p(4699),s=p(5253),m=p(1226);function L(f){return new i.y(W=>{let re;try{re=f()}catch(ae){return void W.error(ae)}return(re?(0,s.D)(re):(0,m.c)()).subscribe(W)})}},1226:(xt,Ke,p)=>{"use strict";p.d(Ke,{E:()=>s,c:()=>m});var i=p(4699);const s=new i.y(f=>f.complete());function m(f){return f?function L(f){return new i.y(W=>f.schedule(()=>W.complete()))}(f):s}},7504:(xt,Ke,p)=>{"use strict";p.d(Ke,{D:()=>W});var i=p(4699),s=p(1280),m=p(6124),L=p(7755),f=p(5253);function W(...q){if(1===q.length){const ae=q[0];if((0,s.k)(ae))return re(ae,null);if((0,L.K)(ae)&&Object.getPrototypeOf(ae)===Object.prototype){const K=Object.keys(ae);return re(K.map(ne=>ae[ne]),K)}}if("function"==typeof q[q.length-1]){const ae=q.pop();return re(q=1===q.length&&(0,s.k)(q[0])?q[0]:q,null).pipe((0,m.U)(K=>ae(...K)))}return re(q,null)}function re(q,ae){return new i.y(K=>{const ne=q.length;if(0===ne)return void K.complete();const he=new Array(ne);let U=0,$e=0;for(let $=0;${Ne||(Ne=!0,$e++),he[$]=ie},error:ie=>K.error(ie),complete:()=>{U++,(U===ne||!Ne)&&($e===ne&&K.next(ae?ae.reduce((ie,ee,x)=>(ie[ee]=he[x],ie),{}):he),K.complete())}}))}})}},5253:(xt,Ke,p)=>{"use strict";p.d(Ke,{D:()=>$});var i=p(4699),s=p(4372),m=p(7902),L=p(2677),re=p(5513),q=p(6258),ne=p(6007),he=p(9990);function $(ge,Ne){return Ne?function $e(ge,Ne){if(null!=ge){if(function K(ge){return ge&&"function"==typeof ge[L.L]}(ge))return function f(ge,Ne){return new i.y(ie=>{const ee=new m.w;return ee.add(Ne.schedule(()=>{const x=ge[L.L]();ee.add(x.subscribe({next(X){ee.add(Ne.schedule(()=>ie.next(X)))},error(X){ee.add(Ne.schedule(()=>ie.error(X)))},complete(){ee.add(Ne.schedule(()=>ie.complete()))}}))})),ee})}(ge,Ne);if((0,ne.t)(ge))return function W(ge,Ne){return new i.y(ie=>{const ee=new m.w;return ee.add(Ne.schedule(()=>ge.then(x=>{ee.add(Ne.schedule(()=>{ie.next(x),ee.add(Ne.schedule(()=>ie.complete()))}))},x=>{ee.add(Ne.schedule(()=>ie.error(x)))}))),ee})}(ge,Ne);if((0,he.z)(ge))return(0,re.r)(ge,Ne);if(function U(ge){return ge&&"function"==typeof ge[q.hZ]}(ge)||"string"==typeof ge)return function ae(ge,Ne){if(!ge)throw new Error("Iterable cannot be null");return new i.y(ie=>{const ee=new m.w;let x;return ee.add(()=>{x&&"function"==typeof x.return&&x.return()}),ee.add(Ne.schedule(()=>{x=ge[q.hZ](),ee.add(Ne.schedule(function(){if(ie.closed)return;let X,Ve;try{const we=x.next();X=we.value,Ve=we.done}catch(we){return void ie.error(we)}Ve?ie.complete():(ie.next(X),this.schedule())}))})),ee})}(ge,Ne)}throw new TypeError((null!==ge&&typeof ge||ge)+" is not observable")}(ge,Ne):ge instanceof i.y?ge:new i.y((0,s.s)(ge))}},2594:(xt,Ke,p)=>{"use strict";p.d(Ke,{n:()=>L});var i=p(4699),s=p(4947),m=p(5513);function L(f,W){return W?(0,m.r)(f,W):new i.y((0,s.V)(f))}},9016:(xt,Ke,p)=>{"use strict";p.d(Ke,{R:()=>W});var i=p(4699),s=p(1280),m=p(8594),L=p(6124);function W(ne,he,U,$e){return(0,m.m)(U)&&($e=U,U=void 0),$e?W(ne,he,U).pipe((0,L.U)($=>(0,s.k)($)?$e(...$):$e($))):new i.y($=>{re(ne,he,function ge(Ne){$.next(arguments.length>1?Array.prototype.slice.call(arguments):Ne)},$,U)})}function re(ne,he,U,$e,$){let ge;if(function K(ne){return ne&&"function"==typeof ne.addEventListener&&"function"==typeof ne.removeEventListener}(ne)){const Ne=ne;ne.addEventListener(he,U,$),ge=()=>Ne.removeEventListener(he,U,$)}else if(function ae(ne){return ne&&"function"==typeof ne.on&&"function"==typeof ne.off}(ne)){const Ne=ne;ne.on(he,U),ge=()=>Ne.off(he,U)}else if(function q(ne){return ne&&"function"==typeof ne.addListener&&"function"==typeof ne.removeListener}(ne)){const Ne=ne;ne.addListener(he,U),ge=()=>Ne.removeListener(he,U)}else{if(!ne||!ne.length)throw new TypeError("Invalid event target");for(let Ne=0,ie=ne.length;Ne{"use strict";p.d(Ke,{T:()=>f});var i=p(4699),s=p(9759),m=p(7449),L=p(2594);function f(...W){let re=Number.POSITIVE_INFINITY,q=null,ae=W[W.length-1];return(0,s.K)(ae)?(q=W.pop(),W.length>1&&"number"==typeof W[W.length-1]&&(re=W.pop())):"number"==typeof ae&&(re=W.pop()),null===q&&1===W.length&&W[0]instanceof i.y?W[0]:(0,m.J)(re)((0,L.n)(W,q))}},9193:(xt,Ke,p)=>{"use strict";p.d(Ke,{of:()=>L});var i=p(9759),s=p(2594),m=p(5513);function L(...f){let W=f[f.length-1];return(0,i.K)(W)?(f.pop(),(0,m.r)(f,W)):(0,s.n)(f)}},6222:(xt,Ke,p)=>{"use strict";p.d(Ke,{_:()=>s});var i=p(4699);function s(L,f){return new i.y(f?W=>f.schedule(m,0,{error:L,subscriber:W}):W=>W.error(L))}function m({error:L,subscriber:f}){f.error(L)}},9249:(xt,Ke,p)=>{"use strict";p.d(Ke,{H:()=>W});var i=p(4699),s=p(435),m=p(1280);function L(q){return!(0,m.k)(q)&&q-parseFloat(q)+1>=0}var f=p(9759);function W(q=0,ae,K){let ne=-1;return L(ae)?ne=Number(ae)<1?1:Number(ae):(0,f.K)(ae)&&(K=ae),(0,f.K)(K)||(K=s.P),new i.y(he=>{const U=L(q)?q:+q-K.now();return K.schedule(re,U,{index:0,period:ne,subscriber:he})})}function re(q){const{index:ae,period:K,subscriber:ne}=q;if(ne.next(ae),!ne.closed){if(-1===K)return ne.complete();q.index=ae+1,this.schedule(q,K)}}},3433:(xt,Ke,p)=>{"use strict";p.d(Ke,{e:()=>q});var i=p(435),s=p(7279),m=p(6735);class f{constructor(K){this.durationSelector=K}call(K,ne){return ne.subscribe(new W(K,this.durationSelector))}}class W extends s.L{constructor(K,ne){super(K),this.durationSelector=ne,this.hasValue=!1}_next(K){if(this.value=K,this.hasValue=!0,!this.throttled){let ne;try{const{durationSelector:U}=this;ne=U(K)}catch(U){return this.destination.error(U)}const he=(0,m.D)(this,ne);!he||he.closed?this.clearThrottle():this.add(this.throttled=he)}}clearThrottle(){const{value:K,hasValue:ne,throttled:he}=this;he&&(this.remove(he),this.throttled=null,he.unsubscribe()),ne&&(this.value=null,this.hasValue=!1,this.destination.next(K))}notifyNext(K,ne,he,U){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var re=p(9249);function q(ae,K=i.P){return function L(ae){return function(ne){return ne.lift(new f(ae))}}(()=>(0,re.H)(ae,K))}},2413:(xt,Ke,p)=>{"use strict";p.d(Ke,{K:()=>L});var i=p(7279),s=p(1250),m=p(6735);function L(re){return function(ae){const K=new f(re),ne=ae.lift(K);return K.caught=ne}}class f{constructor(q){this.selector=q}call(q,ae){return ae.subscribe(new W(q,this.selector,this.caught))}}class W extends i.L{constructor(q,ae,K){super(q),this.selector=ae,this.caught=K}error(q){if(!this.isStopped){let ae;try{ae=this.selector(q,this.caught)}catch(he){return void super.error(he)}this._unsubscribeAndRecycle();const K=new s.d(this,void 0,void 0);this.add(K);const ne=(0,m.D)(this,ae,void 0,void 0,K);ne!==K&&this.add(ne)}}}},9724:(xt,Ke,p)=>{"use strict";p.d(Ke,{b:()=>s});var i=p(6743);function s(m,L){return(0,i.zg)(m,L,1)}},6776:(xt,Ke,p)=>{"use strict";p.d(Ke,{b:()=>m});var i=p(254),s=p(435);function m(re,q=s.P){return ae=>ae.lift(new L(re,q))}class L{constructor(q,ae){this.dueTime=q,this.scheduler=ae}call(q,ae){return ae.subscribe(new f(q,this.dueTime,this.scheduler))}}class f extends i.L{constructor(q,ae,K){super(q),this.dueTime=ae,this.scheduler=K,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(q){this.clearDebounce(),this.lastValue=q,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(W,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:q}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(q)}}clearDebounce(){const q=this.debouncedSubscription;null!==q&&(this.remove(q),q.unsubscribe(),this.debouncedSubscription=null)}}function W(re){re.debouncedNext()}},9384:(xt,Ke,p)=>{"use strict";p.d(Ke,{g:()=>f});var i=p(435),m=p(254),L=p(6979);function f(ae,K=i.P){const he=function s(ae){return ae instanceof Date&&!isNaN(+ae)}(ae)?+ae-K.now():Math.abs(ae);return U=>U.lift(new W(he,K))}class W{constructor(K,ne){this.delay=K,this.scheduler=ne}call(K,ne){return ne.subscribe(new re(K,this.delay,this.scheduler))}}class re extends m.L{constructor(K,ne,he){super(K),this.delay=ne,this.scheduler=he,this.queue=[],this.active=!1,this.errored=!1}static dispatch(K){const ne=K.source,he=ne.queue,U=K.scheduler,$e=K.destination;for(;he.length>0&&he[0].time-U.now()<=0;)he.shift().notification.observe($e);if(he.length>0){const $=Math.max(0,he[0].time-U.now());this.schedule(K,$)}else this.unsubscribe(),ne.active=!1}_schedule(K){this.active=!0,this.destination.add(K.schedule(re.dispatch,this.delay,{source:this,destination:this.destination,scheduler:K}))}scheduleNotification(K){if(!0===this.errored)return;const ne=this.scheduler,he=new q(ne.now()+this.delay,K);this.queue.push(he),!1===this.active&&this._schedule(ne)}_next(K){this.scheduleNotification(L.P.createNext(K))}_error(K){this.errored=!0,this.queue=[],this.destination.error(K),this.unsubscribe()}_complete(){this.scheduleNotification(L.P.createComplete()),this.unsubscribe()}}class q{constructor(K,ne){this.time=K,this.notification=ne}}},2068:(xt,Ke,p)=>{"use strict";p.d(Ke,{x:()=>s});var i=p(254);function s(f,W){return re=>re.lift(new m(f,W))}class m{constructor(W,re){this.compare=W,this.keySelector=re}call(W,re){return re.subscribe(new L(W,this.compare,this.keySelector))}}class L extends i.L{constructor(W,re,q){super(W),this.keySelector=q,this.hasKey=!1,"function"==typeof re&&(this.compare=re)}compare(W,re){return W===re}_next(W){let re;try{const{keySelector:ae}=this;re=ae?ae(W):W}catch(ae){return this.destination.error(ae)}let q=!1;if(this.hasKey)try{const{compare:ae}=this;q=ae(this.key,re)}catch(ae){return this.destination.error(ae)}else this.hasKey=!0;q||(this.key=re,this.destination.next(W))}}},7734:(xt,Ke,p)=>{"use strict";p.d(Ke,{h:()=>s});var i=p(254);function s(f,W){return function(q){return q.lift(new m(f,W))}}class m{constructor(W,re){this.predicate=W,this.thisArg=re}call(W,re){return re.subscribe(new L(W,this.predicate,this.thisArg))}}class L extends i.L{constructor(W,re,q){super(W),this.predicate=re,this.thisArg=q,this.count=0}_next(W){let re;try{re=this.predicate.call(this.thisArg,W,this.count++)}catch(q){return void this.destination.error(q)}re&&this.destination.next(W)}}},1541:(xt,Ke,p)=>{"use strict";p.d(Ke,{x:()=>m});var i=p(254),s=p(7902);function m(W){return re=>re.lift(new L(W))}class L{constructor(re){this.callback=re}call(re,q){return q.subscribe(new f(re,this.callback))}}class f extends i.L{constructor(re,q){super(re),this.add(new s.w(q))}}},6124:(xt,Ke,p)=>{"use strict";p.d(Ke,{U:()=>s});var i=p(254);function s(f,W){return function(q){if("function"!=typeof f)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return q.lift(new m(f,W))}}class m{constructor(W,re){this.project=W,this.thisArg=re}call(W,re){return re.subscribe(new L(W,this.project,this.thisArg))}}class L extends i.L{constructor(W,re,q){super(W),this.project=re,this.count=0,this.thisArg=q||this}_next(W){let re;try{re=this.project.call(this.thisArg,W,this.count++)}catch(q){return void this.destination.error(q)}this.destination.next(re)}}},7449:(xt,Ke,p)=>{"use strict";p.d(Ke,{J:()=>m});var i=p(6743),s=p(158);function m(L=Number.POSITIVE_INFINITY){return(0,i.zg)(s.y,L)}},6743:(xt,Ke,p)=>{"use strict";p.d(Ke,{zg:()=>W});var i=p(6735),s=p(7279),m=p(1250),L=p(6124),f=p(5253);function W(ae,K,ne=Number.POSITIVE_INFINITY){return"function"==typeof K?he=>he.pipe(W((U,$e)=>(0,f.D)(ae(U,$e)).pipe((0,L.U)(($,ge)=>K(U,$,$e,ge))),ne)):("number"==typeof K&&(ne=K),he=>he.lift(new re(ae,ne)))}class re{constructor(K,ne=Number.POSITIVE_INFINITY){this.project=K,this.concurrent=ne}call(K,ne){return ne.subscribe(new q(K,this.project,this.concurrent))}}class q extends s.L{constructor(K,ne,he=Number.POSITIVE_INFINITY){super(K),this.project=ne,this.concurrent=he,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(K){this.active0?this._next(ne.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},2851:(xt,Ke,p)=>{"use strict";p.d(Ke,{x:()=>s});var i=p(254);function s(){return function(W){return W.lift(new m(W))}}class m{constructor(W){this.connectable=W}call(W,re){const{connectable:q}=this;q._refCount++;const ae=new L(W,q),K=re.subscribe(ae);return ae.closed||(ae.connection=q.connect()),K}}class L extends i.L{constructor(W,re){super(W),this.connectable=re}_unsubscribe(){const{connectable:W}=this;if(!W)return void(this.connection=null);this.connectable=null;const re=W._refCount;if(re<=0)return void(this.connection=null);if(W._refCount=re-1,re>1)return void(this.connection=null);const{connection:q}=this,ae=W._connection;this.connection=null,ae&&(!q||ae===q)&&ae.unsubscribe()}}},5705:(xt,Ke,p)=>{"use strict";p.d(Ke,{B:()=>re});var i=p(4247);class m{constructor(ae,K){this.subjectFactory=ae,this.selector=K}call(ae,K){const{selector:ne}=this,he=this.subjectFactory(),U=ne(he).subscribe(ae);return U.add(K.subscribe(he)),U}}var L=p(2851),f=p(2079);function W(){return new f.xQ}function re(){return q=>(0,L.x)()(function s(q,ae){return function(ne){let he;if(he="function"==typeof q?q:function(){return q},"function"==typeof ae)return ne.lift(new m(he,ae));const U=Object.create(ne,i.N);return U.source=ne,U.subjectFactory=he,U}}(W)(q))}},9185:(xt,Ke,p)=>{"use strict";p.d(Ke,{d:()=>s});var i=p(8367);function s(L,f,W){let re;return re=L&&"object"==typeof L?L:{bufferSize:L,windowTime:f,refCount:!1,scheduler:W},q=>q.lift(function m({bufferSize:L=Number.POSITIVE_INFINITY,windowTime:f=Number.POSITIVE_INFINITY,refCount:W,scheduler:re}){let q,K,ae=0,ne=!1,he=!1;return function($e){ae++,(!q||ne)&&(ne=!1,q=new i.t(L,f,re),K=$e.subscribe({next(ge){q.next(ge)},error(ge){ne=!0,q.error(ge)},complete(){he=!0,K=void 0,q.complete()}}));const $=q.subscribe(this);this.add(()=>{ae--,$.unsubscribe(),K&&!he&&W&&0===ae&&(K.unsubscribe(),K=void 0,q=void 0)})}}(re))}},3075:(xt,Ke,p)=>{"use strict";p.d(Ke,{O:()=>m});var i=p(3990),s=p(9759);function m(...L){const f=L[L.length-1];return(0,s.K)(f)?(L.pop(),W=>(0,i.z)(L,W,f)):W=>(0,i.z)(L,W)}},5222:(xt,Ke,p)=>{"use strict";p.d(Ke,{w:()=>W});var i=p(7279),s=p(1250),m=p(6735),L=p(6124),f=p(5253);function W(ae,K){return"function"==typeof K?ne=>ne.pipe(W((he,U)=>(0,f.D)(ae(he,U)).pipe((0,L.U)(($e,$)=>K(he,$e,U,$))))):ne=>ne.lift(new re(ae))}class re{constructor(K){this.project=K}call(K,ne){return ne.subscribe(new q(K,this.project))}}class q extends i.L{constructor(K,ne){super(K),this.project=ne,this.index=0}_next(K){let ne;const he=this.index++;try{ne=this.project(K,he)}catch(U){return void this.destination.error(U)}this._innerSub(ne,K,he)}_innerSub(K,ne,he){const U=this.innerSubscription;U&&U.unsubscribe();const $e=new s.d(this,ne,he),$=this.destination;$.add($e),this.innerSubscription=(0,m.D)(this,K,void 0,void 0,$e),this.innerSubscription!==$e&&$.add(this.innerSubscription)}_complete(){const{innerSubscription:K}=this;(!K||K.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(K){this.destination.remove(K),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(K,ne,he,U,$e){this.destination.next(ne)}}},1418:(xt,Ke,p)=>{"use strict";p.d(Ke,{q:()=>L});var i=p(254),s=p(6310),m=p(1226);function L(re){return q=>0===re?(0,m.c)():q.lift(new f(re))}class f{constructor(q){if(this.total=q,this.total<0)throw new s.W}call(q,ae){return ae.subscribe(new W(q,this.total))}}class W extends i.L{constructor(q,ae){super(q),this.total=ae,this.count=0}_next(q){const ae=this.total,K=++this.count;K<=ae&&(this.destination.next(q),K===ae&&(this.destination.complete(),this.unsubscribe()))}}},9352:(xt,Ke,p)=>{"use strict";p.d(Ke,{R:()=>m});var i=p(7279),s=p(6735);function m(W){return re=>re.lift(new L(W))}class L{constructor(re){this.notifier=re}call(re,q){const ae=new f(re),K=(0,s.D)(ae,this.notifier);return K&&!ae.seenValue?(ae.add(K),q.subscribe(ae)):ae}}class f extends i.L{constructor(re){super(re),this.seenValue=!1}notifyNext(re,q,ae,K,ne){this.seenValue=!0,this.complete()}notifyComplete(){}}},6141:(xt,Ke,p)=>{"use strict";p.d(Ke,{o:()=>s});var i=p(254);function s(f,W=!1){return re=>re.lift(new m(f,W))}class m{constructor(W,re){this.predicate=W,this.inclusive=re}call(W,re){return re.subscribe(new L(W,this.predicate,this.inclusive))}}class L extends i.L{constructor(W,re,q){super(W),this.predicate=re,this.inclusive=q,this.index=0}_next(W){const re=this.destination;let q;try{q=this.predicate(W,this.index++)}catch(ae){return void re.error(ae)}this.nextOrComplete(W,q)}nextOrComplete(W,re){const q=this.destination;re?q.next(W):(this.inclusive&&q.next(W),q.complete())}}},2420:(xt,Ke,p)=>{"use strict";p.d(Ke,{b:()=>L});var i=p(254);function s(){}var m=p(8594);function L(re,q,ae){return function(ne){return ne.lift(new f(re,q,ae))}}class f{constructor(q,ae,K){this.nextOrObserver=q,this.error=ae,this.complete=K}call(q,ae){return ae.subscribe(new W(q,this.nextOrObserver,this.error,this.complete))}}class W extends i.L{constructor(q,ae,K,ne){super(q),this._tapNext=s,this._tapError=s,this._tapComplete=s,this._tapError=K||s,this._tapComplete=ne||s,(0,m.m)(ae)?(this._context=this,this._tapNext=ae):ae&&(this._context=ae,this._tapNext=ae.next||s,this._tapError=ae.error||s,this._tapComplete=ae.complete||s)}_next(q){try{this._tapNext.call(this._context,q)}catch(ae){return void this.destination.error(ae)}this.destination.next(q)}_error(q){try{this._tapError.call(this._context,q)}catch(ae){return void this.destination.error(ae)}this.destination.error(q)}_complete(){try{this._tapComplete.call(this._context)}catch(q){return void this.destination.error(q)}return this.destination.complete()}}},5513:(xt,Ke,p)=>{"use strict";p.d(Ke,{r:()=>m});var i=p(4699),s=p(7902);function m(L,f){return new i.y(W=>{const re=new s.w;let q=0;return re.add(f.schedule(function(){q!==L.length?(W.next(L[q++]),W.closed||re.add(this.schedule())):W.complete()})),re})}},1618:(xt,Ke,p)=>{"use strict";p.d(Ke,{o:()=>m});var i=p(7902);class s extends i.w{constructor(f,W){super()}schedule(f,W=0){return this}}class m extends s{constructor(f,W){super(f,W),this.scheduler=f,this.work=W,this.pending=!1}schedule(f,W=0){if(this.closed)return this;this.state=f;const re=this.id,q=this.scheduler;return null!=re&&(this.id=this.recycleAsyncId(q,re,W)),this.pending=!0,this.delay=W,this.id=this.id||this.requestAsyncId(q,this.id,W),this}requestAsyncId(f,W,re=0){return setInterval(f.flush.bind(f,this),re)}recycleAsyncId(f,W,re=0){if(null!==re&&this.delay===re&&!1===this.pending)return W;clearInterval(W)}execute(f,W){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const re=this._execute(f,W);if(re)return re;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(f,W){let q,re=!1;try{this.work(f)}catch(ae){re=!0,q=!!ae&&ae||new Error(ae)}if(re)return this.unsubscribe(),q}_unsubscribe(){const f=this.id,W=this.scheduler,re=W.actions,q=re.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==q&&re.splice(q,1),null!=f&&(this.id=this.recycleAsyncId(W,f,null)),this.delay=null}}},1781:(xt,Ke,p)=>{"use strict";p.d(Ke,{v:()=>s});let i=(()=>{class m{constructor(f,W=m.now){this.SchedulerAction=f,this.now=W}schedule(f,W=0,re){return new this.SchedulerAction(this,f).schedule(re,W)}}return m.now=()=>Date.now(),m})();class s extends i{constructor(L,f=i.now){super(L,()=>s.delegate&&s.delegate!==this?s.delegate.now():f()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(L,f=0,W){return s.delegate&&s.delegate!==this?s.delegate.schedule(L,f,W):super.schedule(L,f,W)}flush(L){const{actions:f}=this;if(this.active)return void f.push(L);let W;this.active=!0;do{if(W=L.execute(L.state,L.delay))break}while(L=f.shift());if(this.active=!1,W){for(;L=f.shift();)L.unsubscribe();throw W}}}},3944:(xt,Ke,p)=>{"use strict";p.d(Ke,{r:()=>f});var i=p(1618),m=p(1781);const f=new class L extends m.v{flush(re){this.active=!0,this.scheduled=void 0;const{actions:q}=this;let ae,K=-1,ne=q.length;re=re||q.shift();do{if(ae=re.execute(re.state,re.delay))break}while(++K0?super.requestAsyncId(re,q,ae):(re.actions.push(this),re.scheduled||(re.scheduled=requestAnimationFrame(()=>re.flush(null))))}recycleAsyncId(re,q,ae=0){if(null!==ae&&ae>0||null===ae&&this.delay>0)return super.recycleAsyncId(re,q,ae);0===re.actions.length&&(cancelAnimationFrame(q),re.scheduled=void 0)}})},7024:(xt,Ke,p)=>{"use strict";p.d(Ke,{e:()=>ne});let i=1;const s=Promise.resolve(),m={};function L(he){return he in m&&(delete m[he],!0)}const f={setImmediate(he){const U=i++;return m[U]=!0,s.then(()=>L(U)&&he()),U},clearImmediate(he){L(he)}};var re=p(1618),ae=p(1781);const ne=new class K extends ae.v{flush(U){this.active=!0,this.scheduled=void 0;const{actions:$e}=this;let $,ge=-1,Ne=$e.length;U=U||$e.shift();do{if($=U.execute(U.state,U.delay))break}while(++ge0?super.requestAsyncId(U,$e,$):(U.actions.push(this),U.scheduled||(U.scheduled=f.setImmediate(U.flush.bind(U,null))))}recycleAsyncId(U,$e,$=0){if(null!==$&&$>0||null===$&&this.delay>0)return super.recycleAsyncId(U,$e,$);0===U.actions.length&&(f.clearImmediate($e),U.scheduled=void 0)}})},435:(xt,Ke,p)=>{"use strict";p.d(Ke,{P:()=>m});var i=p(1618);const m=new(p(1781).v)(i.o)},6258:(xt,Ke,p)=>{"use strict";p.d(Ke,{hZ:()=>s});const s=function i(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},2677:(xt,Ke,p)=>{"use strict";p.d(Ke,{L:()=>i});const i="function"==typeof Symbol&&Symbol.observable||"@@observable"},5297:(xt,Ke,p)=>{"use strict";p.d(Ke,{b:()=>i});const i="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},6310:(xt,Ke,p)=>{"use strict";p.d(Ke,{W:()=>s});const s=(()=>{function m(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return m.prototype=Object.create(Error.prototype),m})()},6229:(xt,Ke,p)=>{"use strict";p.d(Ke,{N:()=>s});const s=(()=>{function m(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return m.prototype=Object.create(Error.prototype),m})()},3510:(xt,Ke,p)=>{"use strict";function i(s){setTimeout(()=>{throw s},0)}p.d(Ke,{z:()=>i})},158:(xt,Ke,p)=>{"use strict";function i(s){return s}p.d(Ke,{y:()=>i})},1280:(xt,Ke,p)=>{"use strict";p.d(Ke,{k:()=>i});const i=Array.isArray||(s=>s&&"number"==typeof s.length)},9990:(xt,Ke,p)=>{"use strict";p.d(Ke,{z:()=>i});const i=s=>s&&"number"==typeof s.length&&"function"!=typeof s},8594:(xt,Ke,p)=>{"use strict";function i(s){return"function"==typeof s}p.d(Ke,{m:()=>i})},7755:(xt,Ke,p)=>{"use strict";function i(s){return null!==s&&"object"==typeof s}p.d(Ke,{K:()=>i})},5363:(xt,Ke,p)=>{"use strict";p.d(Ke,{b:()=>s});var i=p(4699);function s(m){return!!m&&(m instanceof i.y||"function"==typeof m.lift&&"function"==typeof m.subscribe)}},6007:(xt,Ke,p)=>{"use strict";function i(s){return!!s&&"function"!=typeof s.subscribe&&"function"==typeof s.then}p.d(Ke,{t:()=>i})},9759:(xt,Ke,p)=>{"use strict";function i(s){return s&&"function"==typeof s.schedule}p.d(Ke,{K:()=>i})},4813:(xt,Ke,p)=>{"use strict";p.d(Ke,{U:()=>m,z:()=>s});var i=p(158);function s(...L){return m(L)}function m(L){return 0===L.length?i.y:1===L.length?L[0]:function(W){return L.reduce((re,q)=>q(re),W)}}},4372:(xt,Ke,p)=>{"use strict";p.d(Ke,{s:()=>ne});var i=p(4947),s=p(3510),L=p(6258),W=p(2677),q=p(9990),ae=p(6007),K=p(7755);const ne=he=>{if(he&&"function"==typeof he[W.L])return(he=>U=>{const $e=he[W.L]();if("function"!=typeof $e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return $e.subscribe(U)})(he);if((0,q.z)(he))return(0,i.V)(he);if((0,ae.t)(he))return(he=>U=>(he.then($e=>{U.closed||(U.next($e),U.complete())},$e=>U.error($e)).then(null,s.z),U))(he);if(he&&"function"==typeof he[L.hZ])return(he=>U=>{const $e=he[L.hZ]();for(;;){const $=$e.next();if($.done){U.complete();break}if(U.next($.value),U.closed)break}return"function"==typeof $e.return&&U.add(()=>{$e.return&&$e.return()}),U})(he);{const $e=`You provided ${(0,K.K)(he)?"an invalid object":`'${he}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError($e)}}},4947:(xt,Ke,p)=>{"use strict";p.d(Ke,{V:()=>i});const i=s=>m=>{for(let L=0,f=s.length;L{"use strict";p.d(Ke,{D:()=>L});var i=p(1250),s=p(4372),m=p(4699);function L(f,W,re,q,ae=new i.d(f,re,q)){if(!ae.closed)return W instanceof m.y?W.subscribe(ae):(0,s.s)(W)(ae)}},6854:()=>{"use strict";const xt="\n",Ke={},p="__creationTrace__",i="STACKTRACE TRACKING",s="__SEP_TAG__";let m=s+"@[native]";class L{constructor(){this.error=ae(),this.timestamp=new Date}}function f(){return new Error(i)}function W(){try{throw f()}catch(ie){return ie}}const re=f(),q=W(),ae=re.stack?f:q.stack?W:f;function K(ie){return ie.stack?ie.stack.split(xt):[]}function ne(ie,ee){let x=K(ee);for(let X=0;X0}function $e(ie,ee){ee>0&&(ie.push(K((new L).error)),$e(ie,ee-1))}Zone.longStackTraceZoneSpec={name:"long-stack-trace",longStackTraceLimit:10,getLongStackTrace:function(ie){if(!ie)return;const ee=ie[Zone.__symbol__("currentTaskTrace")];return ee?he(ee,ie.stack):ie.stack},onScheduleTask:function(ie,ee,x,X){if(U()){const Ve=Zone.currentTask;let we=Ve&&Ve.data&&Ve.data[p]||[];we=[new L].concat(we),we.length>this.longStackTraceLimit&&(we.length=this.longStackTraceLimit),X.data||(X.data={}),"eventTask"===X.type&&(X.data={...X.data}),X.data[p]=we}return ie.scheduleTask(x,X)},onHandleError:function(ie,ee,x,X){if(U()){const Ve=Zone.currentTask||X.task;if(X instanceof Error&&Ve){const we=he(Ve.data&&Ve.data[p],X.stack);try{X.stack=X.longStack=we}catch{}}}return ie.handleError(x,X)}},function $(){if(!U())return;const ie=[];$e(ie,2);const ee=ie[0],x=ie[1];for(let X=0;Xdelete this.properties[X]),this.propertyKeys=null,ee&&ee.properties&&(this.propertyKeys=Object.keys(ee.properties),this.propertyKeys.forEach(X=>this.properties[X]=ee.properties[X])),x&&this.lastTaskState&&(this.lastTaskState.macroTask||this.lastTaskState.microTask)&&(this.isNeedToTriggerHasTask=!0)}getDelegate(){return this._delegateSpec}resetDelegate(){this.getDelegate(),this.setDelegate(this.defaultSpecDelegate)}tryTriggerHasTask(ee,x,X){this.isNeedToTriggerHasTask&&this.lastTaskState&&(this.isNeedToTriggerHasTask=!1,this.onHasTask(ee,x,X,this.lastTaskState))}removeFromTasks(ee){if(this.tasks)for(let x=0;x{const Ve=X.data&&Object.keys(X.data).map(we=>we+":"+X.data[we]).join(",");return`type: ${X.type}, source: ${X.source}, args: {${Ve}}`})+"]";return this.tasks=[],x}onFork(ee,x,X,Ve){return this._delegateSpec&&this._delegateSpec.onFork?this._delegateSpec.onFork(ee,x,X,Ve):ee.fork(X,Ve)}onIntercept(ee,x,X,Ve,we){return this._delegateSpec&&this._delegateSpec.onIntercept?this._delegateSpec.onIntercept(ee,x,X,Ve,we):ee.intercept(X,Ve,we)}onInvoke(ee,x,X,Ve,we,Ie,te){return this.tryTriggerHasTask(ee,x,X),this._delegateSpec&&this._delegateSpec.onInvoke?this._delegateSpec.onInvoke(ee,x,X,Ve,we,Ie,te):ee.invoke(X,Ve,we,Ie,te)}onHandleError(ee,x,X,Ve){return this._delegateSpec&&this._delegateSpec.onHandleError?this._delegateSpec.onHandleError(ee,x,X,Ve):ee.handleError(X,Ve)}onScheduleTask(ee,x,X,Ve){return"eventTask"!==Ve.type&&this.tasks.push(Ve),this._delegateSpec&&this._delegateSpec.onScheduleTask?this._delegateSpec.onScheduleTask(ee,x,X,Ve):ee.scheduleTask(X,Ve)}onInvokeTask(ee,x,X,Ve,we,Ie){return"eventTask"!==Ve.type&&this.removeFromTasks(Ve),this.tryTriggerHasTask(ee,x,X),this._delegateSpec&&this._delegateSpec.onInvokeTask?this._delegateSpec.onInvokeTask(ee,x,X,Ve,we,Ie):ee.invokeTask(X,Ve,we,Ie)}onCancelTask(ee,x,X,Ve){return"eventTask"!==Ve.type&&this.removeFromTasks(Ve),this.tryTriggerHasTask(ee,x,X),this._delegateSpec&&this._delegateSpec.onCancelTask?this._delegateSpec.onCancelTask(ee,x,X,Ve):ee.cancelTask(X,Ve)}onHasTask(ee,x,X,Ve){this.lastTaskState=Ve,this._delegateSpec&&this._delegateSpec.onHasTask?this._delegateSpec.onHasTask(ee,x,X,Ve):ee.hasTask(X,Ve)}}Zone.ProxyZoneSpec=ge,Zone.SyncTestZoneSpec=class Ne{constructor(ee){this.runZone=Zone.current,this.name="syncTestZone for "+ee}onScheduleTask(ee,x,X,Ve){switch(Ve.type){case"microTask":case"macroTask":throw new Error(`Cannot call ${Ve.source} from within a sync test (${this.name}).`);case"eventTask":Ve=ee.scheduleTask(X,Ve)}return Ve}},Zone.__load_patch("jasmine",(ie,ee,x)=>{if(!ee)throw new Error("Missing: zone.js");if(typeof jest<"u"||typeof jasmine>"u"||jasmine.__zone_patch__)return;jasmine.__zone_patch__=!0;const Ve=ee.SyncTestZoneSpec,we=ee.ProxyZoneSpec;if(!Ve)throw new Error("Missing: SyncTestZoneSpec");if(!we)throw new Error("Missing: ProxyZoneSpec");const Ie=ee.current,te=ee.__symbol__,ce=!0===ie[te("fakeAsyncDisablePatchingClock")],Re=!ce&&(!0===ie[te("fakeAsyncPatchLock")]||!0===ie[te("fakeAsyncAutoFakeAsyncWhenClockPatched")]);if(!0!==ie[te("ignoreUnhandledRejection")]){const st=jasmine.GlobalErrors;st&&!jasmine[te("GlobalErrors")]&&(jasmine[te("GlobalErrors")]=st,jasmine.GlobalErrors=function(){const _e=new st,Q=_e.install;return Q&&!_e[te("install")]&&(_e[te("install")]=Q,_e.install=function(){const qe=typeof process<"u"&&!!process.on,Te=qe?process.listeners("unhandledRejection"):ie.eventListeners("unhandledrejection"),se=Q.apply(this,arguments);return qe?process.removeAllListeners("unhandledRejection"):ie.removeAllListeners("unhandledrejection"),Te&&Te.forEach(Se=>{qe?process.on("unhandledRejection",Se):ie.addEventListener("unhandledrejection",Se)}),se}),_e})}const nt=jasmine.getEnv();if(["describe","xdescribe","fdescribe"].forEach(st=>{let _e=nt[st];nt[st]=function(Q,qe){return _e.call(this,Q,function _t(st,_e){return function(){return Ie.fork(new Ve(`jasmine.describe#${st}`)).run(_e,this,arguments)}}(Q,qe))}}),["it","xit","fit"].forEach(st=>{let _e=nt[st];nt[te(st)]=_e,nt[st]=function(Q,qe,Te){return arguments[1]=yt(qe),_e.apply(this,arguments)}}),["beforeEach","afterEach","beforeAll","afterAll"].forEach(st=>{let _e=nt[st];nt[te(st)]=_e,nt[st]=function(Q,qe){return arguments[0]=yt(Q),_e.apply(this,arguments)}}),!ce){const st=jasmine[te("clock")]=jasmine.clock;jasmine.clock=function(){const _e=st.apply(this,arguments);if(!_e[te("patched")]){_e[te("patched")]=te("patched");const Q=_e[te("tick")]=_e.tick;_e.tick=function(){const Te=ee.current.get("FakeAsyncTestZoneSpec");return Te?Te.tick.apply(Te,arguments):Q.apply(this,arguments)};const qe=_e[te("mockDate")]=_e.mockDate;_e.mockDate=function(){const Te=ee.current.get("FakeAsyncTestZoneSpec");if(Te){const se=arguments.length>0?arguments[0]:new Date;return Te.setFakeBaseSystemTime.apply(Te,se&&"function"==typeof se.getTime?[se.getTime()]:arguments)}return qe.apply(this,arguments)},Re&&["install","uninstall"].forEach(Te=>{const se=_e[te(Te)]=_e[Te];_e[Te]=function(){if(!ee.FakeAsyncTestZoneSpec)return se.apply(this,arguments);jasmine[te("clockInstalled")]="install"===Te}})}return _e}}if(!jasmine[ee.__symbol__("createSpyObj")]){const st=jasmine.createSpyObj;jasmine[ee.__symbol__("createSpyObj")]=st,jasmine.createSpyObj=function(){const _e=Array.prototype.slice.call(arguments);let qe;if(_e.length>=3&&_e[2]){const Te=Object.defineProperty;Object.defineProperty=function(se,Se,N){return Te.call(this,se,Se,{...N,configurable:!0,enumerable:!0})};try{qe=st.apply(this,_e)}finally{Object.defineProperty=Te}}else qe=st.apply(this,_e);return qe}}function dt(st,_e,Q,qe){const Te=!!jasmine[te("clockInstalled")],se=Q.testProxyZone;if(Te&&Re){const Se=ee[ee.__symbol__("fakeAsyncTest")];Se&&"function"==typeof Se.fakeAsync&&(st=Se.fakeAsync(st))}return qe?se.run(st,_e,[qe]):se.run(st,_e)}function yt(st){return st&&(st.length?function(_e){return dt(st,this,this.queueRunner,_e)}:function(){return dt(st,this,this.queueRunner)})}const ot=jasmine.QueueRunner;jasmine.QueueRunner=function(st){function _e(Q){Q.onComplete&&(Q.onComplete=(Se=>()=>{this.testProxyZone=null,this.testProxyZoneSpec=null,Ie.scheduleMicroTask("jasmine.onComplete",Se)})(Q.onComplete));const qe=ie[ee.__symbol__("setTimeout")],Te=ie[ee.__symbol__("clearTimeout")];qe&&(Q.timeout={setTimeout:qe||ie.setTimeout,clearTimeout:Te||ie.clearTimeout}),jasmine.UserContext?(Q.userContext||(Q.userContext=new jasmine.UserContext),Q.userContext.queueRunner=this):(Q.userContext||(Q.userContext={}),Q.userContext.queueRunner=this);const se=Q.onException;Q.onException=function(Se){if(Se&&"Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL."===Se.message){const N=this&&this.testProxyZoneSpec;if(N){const oe=N.getAndClearPendingTasksInfo();try{Se.message+=oe}catch{}}}se&&se.call(this,Se)},st.call(this,Q)}return function(st,_e){for(const qe in _e)_e.hasOwnProperty(qe)&&(st[qe]=_e[qe]);function Q(){this.constructor=st}st.prototype=null===_e?Object.create(_e):(Q.prototype=_e.prototype,new Q)}(_e,st),_e.prototype.execute=function(){let Q=ee.current,qe=!1;for(;Q;){if(Q===Ie){qe=!0;break}Q=Q.parent}if(!qe)throw new Error("Unexpected Zone: "+ee.current.name);this.testProxyZoneSpec=new we,this.testProxyZone=Ie.fork(this.testProxyZoneSpec),ee.currentTask?st.prototype.execute.call(this):ee.current.scheduleMicroTask("jasmine.execute().forceTask",()=>ot.prototype.execute.call(this))},_e}(ot)}),Zone.__load_patch("jest",(ie,ee,x)=>{if(typeof jest>"u"||jest.__zone_patch__)return;ee[x.symbol("ignoreConsoleErrorUncaughtError")]=!0,jest.__zone_patch__=!0;const X=ee.ProxyZoneSpec,Ve=ee.SyncTestZoneSpec;if(!X)throw new Error("Missing ProxyZoneSpec");const we=ee.current,Ie=we.fork(new Ve("jest.describe")),te=new X,ce=we.fork(te);function nt(dt){return function(...yt){return Ie.run(dt,this,yt)}}function _t(dt,yt=!1){if("function"!=typeof dt)return dt;const ot=function(){if(!0===ee[x.symbol("useFakeTimersCalled")]&&dt&&!dt.isFakeAsync){const st=ee[ee.__symbol__("fakeAsyncTest")];st&&"function"==typeof st.fakeAsync&&(dt=st.fakeAsync(dt))}return te.isTestFunc=yt,ce.run(dt,null,arguments)};return Object.defineProperty(ot,"length",{configurable:!0,writable:!0,enumerable:!1}),ot.length=dt.length,ot}["describe","xdescribe","fdescribe"].forEach(dt=>{let yt=ie[dt];ie[ee.__symbol__(dt)]||(ie[ee.__symbol__(dt)]=yt,ie[dt]=function(...ot){return ot[1]=nt(ot[1]),yt.apply(this,ot)},ie[dt].each=function Re(dt){return function(...yt){const ot=dt.apply(this,yt);return function(...st){return st[1]=nt(st[1]),ot.apply(this,st)}}}(yt.each))}),ie.describe.only=ie.fdescribe,ie.describe.skip=ie.xdescribe,["it","xit","fit","test","xtest"].forEach(dt=>{let yt=ie[dt];ie[ee.__symbol__(dt)]||(ie[ee.__symbol__(dt)]=yt,ie[dt]=function(...ot){return ot[1]=_t(ot[1],!0),yt.apply(this,ot)},ie[dt].each=function He(dt){return function(...yt){return function(...ot){return ot[1]=_t(ot[1]),dt.apply(this,yt).apply(this,ot)}}}(yt.each),ie[dt].todo=yt.todo)}),ie.it.only=ie.fit,ie.it.skip=ie.xit,ie.test.only=ie.fit,ie.test.skip=ie.xit,["beforeEach","afterEach","beforeAll","afterAll"].forEach(dt=>{let yt=ie[dt];ie[ee.__symbol__(dt)]||(ie[ee.__symbol__(dt)]=yt,ie[dt]=function(...ot){return ot[0]=_t(ot[0]),yt.apply(this,ot)})}),ee.patchJestObject=function(yt,ot=!1){function st(){return!!ee.current.get("FakeAsyncTestZoneSpec")}function _e(){const Q=ee.current.get("ProxyZoneSpec");return Q&&Q.isTestFunc}yt[x.symbol("fakeTimers")]||(yt[x.symbol("fakeTimers")]=!0,x.patchMethod(yt,"_checkFakeTimers",Q=>function(qe,Te){return!!st()||Q.apply(qe,Te)}),x.patchMethod(yt,"useFakeTimers",Q=>function(qe,Te){return ee[x.symbol("useFakeTimersCalled")]=!0,ot||_e()?Q.apply(qe,Te):qe}),x.patchMethod(yt,"useRealTimers",Q=>function(qe,Te){return ee[x.symbol("useFakeTimersCalled")]=!1,ot||_e()?Q.apply(qe,Te):qe}),x.patchMethod(yt,"setSystemTime",Q=>function(qe,Te){const se=ee.current.get("FakeAsyncTestZoneSpec");if(!se||!st())return Q.apply(qe,Te);se.setFakeBaseSystemTime(Te[0])}),x.patchMethod(yt,"getRealSystemTime",Q=>function(qe,Te){const se=ee.current.get("FakeAsyncTestZoneSpec");return se&&st()?se.getRealSystemTime():Q.apply(qe,Te)}),x.patchMethod(yt,"runAllTicks",Q=>function(qe,Te){const se=ee.current.get("FakeAsyncTestZoneSpec");if(!se)return Q.apply(qe,Te);se.flushMicrotasks()}),x.patchMethod(yt,"runAllTimers",Q=>function(qe,Te){const se=ee.current.get("FakeAsyncTestZoneSpec");if(!se)return Q.apply(qe,Te);se.flush(100,!0)}),x.patchMethod(yt,"advanceTimersByTime",Q=>function(qe,Te){const se=ee.current.get("FakeAsyncTestZoneSpec");if(!se)return Q.apply(qe,Te);se.tick(Te[0])}),x.patchMethod(yt,"runOnlyPendingTimers",Q=>function(qe,Te){const se=ee.current.get("FakeAsyncTestZoneSpec");if(!se)return Q.apply(qe,Te);se.flushOnlyPendingTimers()}),x.patchMethod(yt,"advanceTimersToNextTimer",Q=>function(qe,Te){const se=ee.current.get("FakeAsyncTestZoneSpec");if(!se)return Q.apply(qe,Te);se.tickToNext(Te[0])}),x.patchMethod(yt,"clearAllTimers",Q=>function(qe,Te){const se=ee.current.get("FakeAsyncTestZoneSpec");if(!se)return Q.apply(qe,Te);se.removeAllTimers()}),x.patchMethod(yt,"getTimerCount",Q=>function(qe,Te){const se=ee.current.get("FakeAsyncTestZoneSpec");return se?se.getTimerCount():Q.apply(qe,Te)}))}}),Zone.__load_patch("mocha",(ie,ee)=>{const x=ie.Mocha;if(typeof x>"u")return;if(typeof ee>"u")throw new Error("Missing Zone.js");const X=ee.ProxyZoneSpec,Ve=ee.SyncTestZoneSpec;if(!X)throw new Error("Missing ProxyZoneSpec");if(x.__zone_patch__)throw new Error('"Mocha" has already been patched with "Zone".');x.__zone_patch__=!0;const we=ee.current,Ie=we.fork(new Ve("Mocha.describe"));let te=null;const ce=we.fork(new X),Re={after:ie.after,afterEach:ie.afterEach,before:ie.before,beforeEach:ie.beforeEach,describe:ie.describe,it:ie.it};function He(yt,ot,st){for(let _e=0;_e{yt.call(this,st)})},x.Runner.prototype.run=function(st){return this.on("test",_e=>{te=we.fork(new X)}),this.on("fail",(_e,Q)=>{const qe=te&&te.get("ProxyZoneSpec");if(qe&&Q)try{Q.message+=qe.getAndClearPendingTasksInfo()}catch{}}),ot.call(this,st)}}),function(ie,ee){class x{constructor(Ve,we,Ie){this.finishCallback=Ve,this.failCallback=we,this._pendingMicroTasks=!1,this._pendingMacroTasks=!1,this._alreadyErrored=!1,this._isSync=!1,this._existingFinishTimer=null,this.entryFunction=null,this.runZone=Zone.current,this.unresolvedChainedPromiseCount=0,this.supportWaitUnresolvedChainedPromise=!1,this.name="asyncTestZone for "+Ie,this.properties={AsyncTestZoneSpec:this},this.supportWaitUnresolvedChainedPromise=!0===ie[Zone.__symbol__("supportWaitUnResolvedChainedPromise")]}isUnresolvedChainedPromisePending(){return this.unresolvedChainedPromiseCount>0}_finishCallbackIfDone(){null!==this._existingFinishTimer&&(clearTimeout(this._existingFinishTimer),this._existingFinishTimer=null),this._pendingMicroTasks||this._pendingMacroTasks||this.supportWaitUnresolvedChainedPromise&&this.isUnresolvedChainedPromisePending()||this.runZone.run(()=>{this._existingFinishTimer=setTimeout(()=>{!this._alreadyErrored&&!this._pendingMicroTasks&&!this._pendingMacroTasks&&this.finishCallback()},0)})}patchPromiseForTest(){if(!this.supportWaitUnresolvedChainedPromise)return;const Ve=Promise[Zone.__symbol__("patchPromiseForTest")];Ve&&Ve()}unPatchPromiseForTest(){if(!this.supportWaitUnresolvedChainedPromise)return;const Ve=Promise[Zone.__symbol__("unPatchPromiseForTest")];Ve&&Ve()}onScheduleTask(Ve,we,Ie,te){return"eventTask"!==te.type&&(this._isSync=!1),"microTask"===te.type&&te.data&&te.data instanceof Promise&&!0===te.data[x.symbolParentUnresolved]&&this.unresolvedChainedPromiseCount--,Ve.scheduleTask(Ie,te)}onInvokeTask(Ve,we,Ie,te,ce,Re){return"eventTask"!==te.type&&(this._isSync=!1),Ve.invokeTask(Ie,te,ce,Re)}onCancelTask(Ve,we,Ie,te){return"eventTask"!==te.type&&(this._isSync=!1),Ve.cancelTask(Ie,te)}onInvoke(Ve,we,Ie,te,ce,Re,He){this.entryFunction||(this.entryFunction=te);try{return this._isSync=!0,Ve.invoke(Ie,te,ce,Re,He)}finally{this._isSync&&this.entryFunction===te&&this._finishCallbackIfDone()}}onHandleError(Ve,we,Ie,te){return Ve.handleError(Ie,te)&&(this.failCallback(te),this._alreadyErrored=!0),!1}onHasTask(Ve,we,Ie,te){Ve.hasTask(Ie,te),we===Ie&&("microTask"==te.change?(this._pendingMicroTasks=te.microTask,this._finishCallbackIfDone()):"macroTask"==te.change&&(this._pendingMacroTasks=te.macroTask,this._finishCallbackIfDone()))}}x.symbolParentUnresolved=Zone.__symbol__("parentUnresolved"),Zone.AsyncTestZoneSpec=x}(typeof window<"u"&&window||typeof self<"u"&&self||global),Zone.__load_patch("asynctest",(ie,ee,x)=>{function X(Ve,we,Ie,te){const ce=ee.current,Re=ee.AsyncTestZoneSpec;if(void 0===Re)throw new Error("AsyncTestZoneSpec is needed for the async() test helper but could not be found. Please make sure that your environment includes zone.js/plugins/async-test");const He=ee.ProxyZoneSpec;if(!He)throw new Error("ProxyZoneSpec is needed for the async() test helper but could not be found. Please make sure that your environment includes zone.js/plugins/proxy");const nt=He.get();He.assertPresent();const _t=ee.current.getZoneWith("ProxyZoneSpec"),dt=nt.getDelegate();return _t.parent.run(()=>{const yt=new Re(()=>{nt.getDelegate()==yt&&nt.setDelegate(dt),yt.unPatchPromiseForTest(),ce.run(()=>{Ie()})},ot=>{nt.getDelegate()==yt&&nt.setDelegate(dt),yt.unPatchPromiseForTest(),ce.run(()=>{te(ot)})},"test");nt.setDelegate(yt),yt.patchPromiseForTest()}),ee.current.runGuarded(Ve,we)}ee[x.symbol("asyncTest")]=function(we){return ie.jasmine?function(Ie){Ie||((Ie=function(){}).fail=function(te){throw te}),X(we,this,Ie,te=>{if("string"==typeof te)return Ie.fail(new Error(te));Ie.fail(te)})}:function(){return new Promise((Ie,te)=>{X(we,this,Ie,te)})}}}),function(ie){const ee=ie.Date;function x(){if(0===arguments.length){const Ie=new ee;return Ie.setTime(x.now()),Ie}{const Ie=Array.prototype.slice.call(arguments);return new ee(...Ie)}}x.now=function(){const Ie=Zone.current.get("FakeAsyncTestZoneSpec");return Ie?Ie.getFakeSystemTime():ee.now.apply(this,arguments)},x.UTC=ee.UTC,x.parse=ee.parse;const X={setTimeout:ie.setTimeout,setInterval:ie.setInterval,clearTimeout:ie.clearTimeout,clearInterval:ie.clearInterval};let Ve=(()=>{class te{constructor(){this._schedulerQueue=[],this._currentTickTime=0,this._currentFakeBaseSystemTime=ee.now(),this._currentTickRequeuePeriodicEntries=[]}getCurrentTickTime(){return this._currentTickTime}getFakeSystemTime(){return this._currentFakeBaseSystemTime+this._currentTickTime}setFakeBaseSystemTime(Re){this._currentFakeBaseSystemTime=Re}getRealSystemTime(){return ee.now()}scheduleFunction(Re,He,nt){let _t=(nt={args:[],isPeriodic:!1,isRequestAnimationFrame:!1,id:-1,isRequeuePeriodic:!1,...nt}).id<0?te.nextId++:nt.id,yt={endTime:this._currentTickTime+He,id:_t,func:Re,args:nt.args,delay:He,isPeriodic:nt.isPeriodic,isRequestAnimationFrame:nt.isRequestAnimationFrame};nt.isRequeuePeriodic&&this._currentTickRequeuePeriodicEntries.push(yt);let ot=0;for(;ot0&&(this._currentTickRequeuePeriodicEntries=[],!(_t=0&&this._schedulerQueue.splice(Q,1)}if(dt=this._currentTickTime,this._currentTickTime=st.endTime,He&&He(this._currentTickTime-dt),!st.func.apply(ie,st.isRequestAnimationFrame?[this._currentTickTime]:st.args))break;nt.processNewMacroTasksSynchronously||this._currentTickRequeuePeriodicEntries.forEach(Q=>{let qe=0;for(;qe0;){if(dt++,dt>Re)throw new Error("flush failed after reaching the limit of "+Re+" tasks. Does your code use a polling timeout?");if(0===this._schedulerQueue.filter(st=>!st.isPeriodic&&!st.isRequestAnimationFrame).length)break;const yt=this._schedulerQueue.shift();if(_t=this._currentTickTime,this._currentTickTime=yt.endTime,He&&He(this._currentTickTime-_t),!yt.func.apply(ie,yt.args))break}return this._currentTickTime-nt}}return te.nextId=1,te})();class we{static assertInZone(){if(null==Zone.current.get("FakeAsyncTestZoneSpec"))throw new Error("The code should be running in the fakeAsync zone to call this function")}constructor(te,ce=!1,Re){this.trackPendingRequestAnimationFrame=ce,this.macroTaskOptions=Re,this._scheduler=new Ve,this._microtasks=[],this._lastError=null,this._uncaughtPromiseErrors=Promise[Zone.__symbol__("uncaughtPromiseErrors")],this.pendingPeriodicTimers=[],this.pendingTimers=[],this.patchDateLocked=!1,this.properties={FakeAsyncTestZoneSpec:this},this.name="fakeAsyncTestZone for "+te,this.macroTaskOptions||(this.macroTaskOptions=ie[Zone.__symbol__("FakeAsyncTestMacroTask")])}_fnAndFlush(te,ce){return(...Re)=>(te.apply(ie,Re),null===this._lastError?(null!=ce.onSuccess&&ce.onSuccess.apply(ie),this.flushMicrotasks()):null!=ce.onError&&ce.onError.apply(ie),null===this._lastError)}static _removeTimer(te,ce){let Re=te.indexOf(ce);Re>-1&&te.splice(Re,1)}_dequeueTimer(te){return()=>{we._removeTimer(this.pendingTimers,te)}}_requeuePeriodicTimer(te,ce,Re,He){return()=>{-1!==this.pendingPeriodicTimers.indexOf(He)&&this._scheduler.scheduleFunction(te,ce,{args:Re,isPeriodic:!0,id:He,isRequeuePeriodic:!0})}}_dequeuePeriodicTimer(te){return()=>{we._removeTimer(this.pendingPeriodicTimers,te)}}_setTimeout(te,ce,Re,He=!0){let nt=this._dequeueTimer(Ve.nextId),_t=this._fnAndFlush(te,{onSuccess:nt,onError:nt}),dt=this._scheduler.scheduleFunction(_t,ce,{args:Re,isRequestAnimationFrame:!He});return He&&this.pendingTimers.push(dt),dt}_clearTimeout(te){we._removeTimer(this.pendingTimers,te),this._scheduler.removeScheduledFunctionWithId(te)}_setInterval(te,ce,Re){let He=Ve.nextId,nt={onSuccess:null,onError:this._dequeuePeriodicTimer(He)},_t=this._fnAndFlush(te,nt);return nt.onSuccess=this._requeuePeriodicTimer(_t,ce,Re,He),this._scheduler.scheduleFunction(_t,ce,{args:Re,isPeriodic:!0}),this.pendingPeriodicTimers.push(He),He}_clearInterval(te){we._removeTimer(this.pendingPeriodicTimers,te),this._scheduler.removeScheduledFunctionWithId(te)}_resetLastErrorAndThrow(){let te=this._lastError||this._uncaughtPromiseErrors[0];throw this._uncaughtPromiseErrors.length=0,this._lastError=null,te}getCurrentTickTime(){return this._scheduler.getCurrentTickTime()}getFakeSystemTime(){return this._scheduler.getFakeSystemTime()}setFakeBaseSystemTime(te){this._scheduler.setFakeBaseSystemTime(te)}getRealSystemTime(){return this._scheduler.getRealSystemTime()}static patchDate(){ie[Zone.__symbol__("disableDatePatching")]||ie.Date!==x&&(ie.Date=x,x.prototype=ee.prototype,we.checkTimerPatch())}static resetDate(){ie.Date===x&&(ie.Date=ee)}static checkTimerPatch(){ie.setTimeout!==X.setTimeout&&(ie.setTimeout=X.setTimeout,ie.clearTimeout=X.clearTimeout),ie.setInterval!==X.setInterval&&(ie.setInterval=X.setInterval,ie.clearInterval=X.clearInterval)}lockDatePatch(){this.patchDateLocked=!0,we.patchDate()}unlockDatePatch(){this.patchDateLocked=!1,we.resetDate()}tickToNext(te=1,ce,Re={processNewMacroTasksSynchronously:!0}){te<=0||(we.assertInZone(),this.flushMicrotasks(),this._scheduler.tickToNext(te,ce,Re),null!==this._lastError&&this._resetLastErrorAndThrow())}tick(te=0,ce,Re={processNewMacroTasksSynchronously:!0}){we.assertInZone(),this.flushMicrotasks(),this._scheduler.tick(te,ce,Re),null!==this._lastError&&this._resetLastErrorAndThrow()}flushMicrotasks(){for(we.assertInZone();this._microtasks.length>0;){let ce=this._microtasks.shift();ce.func.apply(ce.target,ce.args)}(()=>{(null!==this._lastError||this._uncaughtPromiseErrors.length)&&this._resetLastErrorAndThrow()})()}flush(te,ce,Re){we.assertInZone(),this.flushMicrotasks();const He=this._scheduler.flush(te,ce,Re);return null!==this._lastError&&this._resetLastErrorAndThrow(),He}flushOnlyPendingTimers(te){we.assertInZone(),this.flushMicrotasks();const ce=this._scheduler.flushOnlyPendingTimers(te);return null!==this._lastError&&this._resetLastErrorAndThrow(),ce}removeAllTimers(){we.assertInZone(),this._scheduler.removeAll(),this.pendingPeriodicTimers=[],this.pendingTimers=[]}getTimerCount(){return this._scheduler.getTimerCount()+this._microtasks.length}onScheduleTask(te,ce,Re,He){switch(He.type){case"microTask":let _t,nt=He.data&&He.data.args;if(nt){let dt=He.data.cbIdx;"number"==typeof nt.length&&nt.length>dt+1&&(_t=Array.prototype.slice.call(nt,dt+1))}this._microtasks.push({func:He.invoke,args:_t,target:He.data&&He.data.target});break;case"macroTask":switch(He.source){case"setTimeout":He.data.handleId=this._setTimeout(He.invoke,He.data.delay,Array.prototype.slice.call(He.data.args,2));break;case"setImmediate":He.data.handleId=this._setTimeout(He.invoke,0,Array.prototype.slice.call(He.data.args,1));break;case"setInterval":He.data.handleId=this._setInterval(He.invoke,He.data.delay,Array.prototype.slice.call(He.data.args,2));break;case"XMLHttpRequest.send":throw new Error("Cannot make XHRs from within a fake async test. Request URL: "+He.data.url);case"requestAnimationFrame":case"webkitRequestAnimationFrame":case"mozRequestAnimationFrame":He.data.handleId=this._setTimeout(He.invoke,16,He.data.args,this.trackPendingRequestAnimationFrame);break;default:const dt=this.findMacroTaskOption(He);if(dt){const yt=He.data&&He.data.args,ot=yt&&yt.length>1?yt[1]:0;let st=dt.callbackArgs?dt.callbackArgs:yt;dt.isPeriodic?(He.data.handleId=this._setInterval(He.invoke,ot,st),He.data.isPeriodic=!0):He.data.handleId=this._setTimeout(He.invoke,ot,st);break}throw new Error("Unknown macroTask scheduled in fake async test: "+He.source)}break;case"eventTask":He=te.scheduleTask(Re,He)}return He}onCancelTask(te,ce,Re,He){switch(He.source){case"setTimeout":case"requestAnimationFrame":case"webkitRequestAnimationFrame":case"mozRequestAnimationFrame":return this._clearTimeout(He.data.handleId);case"setInterval":return this._clearInterval(He.data.handleId);default:const nt=this.findMacroTaskOption(He);if(nt){const _t=He.data.handleId;return nt.isPeriodic?this._clearInterval(_t):this._clearTimeout(_t)}return te.cancelTask(Re,He)}}onInvoke(te,ce,Re,He,nt,_t,dt){try{return we.patchDate(),te.invoke(Re,He,nt,_t,dt)}finally{this.patchDateLocked||we.resetDate()}}findMacroTaskOption(te){if(!this.macroTaskOptions)return null;for(let ce=0;ce{const X=ee&&ee.FakeAsyncTestZoneSpec;function Ve(){return ee&&ee.ProxyZoneSpec}let we=null;function Ie(){we&&we.unlockDatePatch(),we=null,Ve()&&Ve().assertPresent().resetDelegate()}function ce(){if(null==we&&(we=ee.current.get("FakeAsyncTestZoneSpec"),null==we))throw new Error("The code should be running in the fakeAsync zone to call this function");return we}function _t(){ce().flushMicrotasks()}ee[x.symbol("fakeAsyncTest")]={resetFakeAsyncZone:Ie,flushMicrotasks:_t,discardPeriodicTasks:function nt(){ce().pendingPeriodicTimers.length=0},tick:function Re(dt=0,yt=!1){ce().tick(dt,null,yt)},flush:function He(dt){return ce().flush(dt)},fakeAsync:function te(dt){const yt=function(...ot){const st=Ve();if(!st)throw new Error("ProxyZoneSpec is needed for the async() test helper but could not be found. Please make sure that your environment includes zone.js/plugins/proxy");const _e=st.assertPresent();if(ee.current.get("FakeAsyncTestZoneSpec"))throw new Error("fakeAsync() calls can not be nested");try{if(!we){if(_e.getDelegate()instanceof X)throw new Error("fakeAsync() calls can not be nested");we=new X}let Q;const qe=_e.getDelegate();_e.setDelegate(we),we.lockDatePatch();try{Q=dt.apply(this,ot),_t()}finally{_e.setDelegate(qe)}if(we.pendingPeriodicTimers.length>0)throw new Error(`${we.pendingPeriodicTimers.length} periodic timer(s) still in the queue.`);if(we.pendingTimers.length>0)throw new Error(`${we.pendingTimers.length} timer(s) still in the queue.`);return Q}finally{Ie()}};return yt.isFakeAsync=!0,yt}}},!0),Zone.__load_patch("promisefortest",(ie,ee,x)=>{const X=x.symbol("state"),we=x.symbol("parentUnresolved");Promise[x.symbol("patchPromiseForTest")]=function(){let te=Promise[ee.__symbol__("ZonePromiseThen")];te||(te=Promise[ee.__symbol__("ZonePromiseThen")]=Promise.prototype.then,Promise.prototype.then=function(){const ce=te.apply(this,arguments);if(null===this[X]){const Re=ee.current.get("AsyncTestZoneSpec");Re&&(Re.unresolvedChainedPromiseCount++,ce[we]=!0)}return ce})},Promise[x.symbol("unPatchPromiseForTest")]=function(){const te=Promise[ee.__symbol__("ZonePromiseThen")];te&&(Promise.prototype.then=te,Promise[ee.__symbol__("ZonePromiseThen")]=void 0)}})},6825:(xt,Ke,p)=>{"use strict";p.d(Ke,{F4:()=>K,IO:()=>$,LC:()=>s,SB:()=>ae,X$:()=>L,ZE:()=>ie,ZN:()=>Ne,_j:()=>i,eR:()=>ne,jt:()=>f,k1:()=>ee,l3:()=>m,oB:()=>q,pV:()=>U,ru:()=>W,vP:()=>re});class i{}class s{}const m="*";function L(x,X){return{type:7,name:x,definitions:X,options:{}}}function f(x,X=null){return{type:4,styles:X,timings:x}}function W(x,X=null){return{type:3,steps:x,options:X}}function re(x,X=null){return{type:2,steps:x,options:X}}function q(x){return{type:6,styles:x,offset:null}}function ae(x,X,Ve){return{type:0,name:x,styles:X,options:Ve}}function K(x){return{type:5,steps:x}}function ne(x,X,Ve=null){return{type:1,expr:x,animation:X,options:Ve}}function U(x=null){return{type:9,options:x}}function $(x,X,Ve=null){return{type:11,selector:x,animation:X,options:Ve}}class Ne{constructor(X=0,Ve=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=X+Ve}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(X=>X()),this._onDoneFns=[])}onStart(X){this._originalOnStartFns.push(X),this._onStartFns.push(X)}onDone(X){this._originalOnDoneFns.push(X),this._onDoneFns.push(X)}onDestroy(X){this._onDestroyFns.push(X)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(X=>X()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(X=>X()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(X){this._position=this.totalTime?X*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(X){const Ve="start"==X?this._onStartFns:this._onDoneFns;Ve.forEach(we=>we()),Ve.length=0}}class ie{constructor(X){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=X;let Ve=0,we=0,Ie=0;const te=this.players.length;0==te?queueMicrotask(()=>this._onFinish()):this.players.forEach(ce=>{ce.onDone(()=>{++Ve==te&&this._onFinish()}),ce.onDestroy(()=>{++we==te&&this._onDestroy()}),ce.onStart(()=>{++Ie==te&&this._onStart()})}),this.totalTime=this.players.reduce((ce,Re)=>Math.max(ce,Re.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(X=>X()),this._onDoneFns=[])}init(){this.players.forEach(X=>X.init())}onStart(X){this._onStartFns.push(X)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(X=>X()),this._onStartFns=[])}onDone(X){this._onDoneFns.push(X)}onDestroy(X){this._onDestroyFns.push(X)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(X=>X.play())}pause(){this.players.forEach(X=>X.pause())}restart(){this.players.forEach(X=>X.restart())}finish(){this._onFinish(),this.players.forEach(X=>X.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(X=>X.destroy()),this._onDestroyFns.forEach(X=>X()),this._onDestroyFns=[])}reset(){this.players.forEach(X=>X.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(X){const Ve=X*this.totalTime;this.players.forEach(we=>{const Ie=we.totalTime?Math.min(1,Ve/we.totalTime):1;we.setPosition(Ie)})}getPosition(){const X=this.players.reduce((Ve,we)=>null===Ve||we.totalTime>Ve.totalTime?we:Ve,null);return null!=X?X.getPosition():0}beforeDestroy(){this.players.forEach(X=>{X.beforeDestroy&&X.beforeDestroy()})}triggerCallback(X){const Ve="start"==X?this._onStartFns:this._onDoneFns;Ve.forEach(we=>we()),Ve.length=0}}const ee="!"},6599:(xt,Ke,p)=>{"use strict";p.d(Ke,{rt:()=>Le,s1:()=>vt,$s:()=>ye,kH:()=>de,mK:()=>Bt,Em:()=>At,tE:()=>Ee,qV:()=>Ft,qm:()=>Me,ic:()=>on,Kd:()=>Xn,Zf:()=>Q,X6:()=>pn,yG:()=>En,iD:()=>qe});var i=p(6814),s=p(5879),m=p(2831),L=p(2079),f=p(7902),W=p(5125),re=p(9193),q=p(6028),ae=p(2420),K=p(6776),ne=p(7734),he=p(6124),U=p(1418),$e=p(254);function $(A){return H=>H.lift(new ge(A))}class ge{constructor(H){this.total=H}call(H,Be){return Be.subscribe(new Ne(H,this.total))}}class Ne extends $e.L{constructor(H,Be){super(H),this.total=Be,this.count=0}_next(H){++this.count>this.total&&this.destination.next(H)}}var ie=p(2068),ee=p(9352),x=p(2495),X=p(7131),Ve=p(3291),we=p(3990),Ie=p(4699),te=p(3075);const Re=new Set;let He,nt=(()=>{var A;class H{constructor(I,k){this._platform=I,this._nonce=k,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):dt}matchMedia(I){return(this._platform.WEBKIT||this._platform.BLINK)&&function _t(A,H){if(!Re.has(A))try{He||(He=document.createElement("style"),H&&(He.nonce=H),He.setAttribute("type","text/css"),document.head.appendChild(He)),He.sheet&&(He.sheet.insertRule(`@media ${A} {body{ }}`,0),Re.add(A))}catch(Be){console.error(Be)}}(I,this._nonce),this._matchMedia(I)}}return(A=H).\u0275fac=function(I){return new(I||A)(s.LFG(m.t4),s.LFG(s.Ojb,8))},A.\u0275prov=s.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"}),H})();function dt(A){return{matches:"all"===A||""===A,media:A,addListener:()=>{},removeListener:()=>{}}}let yt=(()=>{var A;class H{constructor(I,k){this._mediaMatcher=I,this._zone=k,this._queries=new Map,this._destroySubject=new L.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(I){return ot((0,x.Eq)(I)).some(Oe=>this._registerQuery(Oe).mql.matches)}observe(I){const Oe=ot((0,x.Eq)(I)).map(pt=>this._registerQuery(pt).observable);let Qe=(0,Ve.aj)(Oe);return Qe=(0,we.z)(Qe.pipe((0,U.q)(1)),Qe.pipe($(1),(0,K.b)(0))),Qe.pipe((0,he.U)(pt=>{const Et={matches:!1,breakpoints:{}};return pt.forEach(({matches:Gt,query:Pt})=>{Et.matches=Et.matches||Gt,Et.breakpoints[Pt]=Gt}),Et}))}_registerQuery(I){if(this._queries.has(I))return this._queries.get(I);const k=this._mediaMatcher.matchMedia(I),Qe={observable:new Ie.y(pt=>{const Et=Gt=>this._zone.run(()=>pt.next(Gt));return k.addListener(Et),()=>{k.removeListener(Et)}}).pipe((0,te.O)(k),(0,he.U)(({matches:pt})=>({query:I,matches:pt})),(0,ee.R)(this._destroySubject)),mql:k};return this._queries.set(I,Qe),Qe}}return(A=H).\u0275fac=function(I){return new(I||A)(s.LFG(nt),s.LFG(s.R0b))},A.\u0275prov=s.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"}),H})();function ot(A){return A.map(H=>H.split(",")).reduce((H,Be)=>H.concat(Be)).map(H=>H.trim())}const _e=" ";function Q(A,H,Be){const I=Te(A,H);I.some(k=>k.trim()==Be.trim())||(I.push(Be.trim()),A.setAttribute(H,I.join(_e)))}function qe(A,H,Be){const k=Te(A,H).filter(Oe=>Oe!=Be.trim());k.length?A.setAttribute(H,k.join(_e)):A.removeAttribute(H)}function Te(A,H){return(A.getAttribute(H)||"").match(/\S+/g)||[]}const Se="cdk-describedby-message",N="cdk-describedby-host";let oe=0,ye=(()=>{var A;class H{constructor(I,k){this._platform=k,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+oe++,this._document=I,this._id=(0,s.f3M)(s.AFp)+"-"+oe++}describe(I,k,Oe){if(!this._canBeDescribed(I,k))return;const Qe=Fe(k,Oe);"string"!=typeof k?(Je(k,this._id),this._messageRegistry.set(Qe,{messageElement:k,referenceCount:0})):this._messageRegistry.has(Qe)||this._createMessageElement(k,Oe),this._isElementDescribedByMessage(I,Qe)||this._addMessageReference(I,Qe)}removeDescription(I,k,Oe){var Qe;if(!k||!this._isElementNode(I))return;const pt=Fe(k,Oe);if(this._isElementDescribedByMessage(I,pt)&&this._removeMessageReference(I,pt),"string"==typeof k){const Et=this._messageRegistry.get(pt);Et&&0===Et.referenceCount&&this._deleteMessageElement(pt)}0===(null===(Qe=this._messagesContainer)||void 0===Qe?void 0:Qe.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var I;const k=this._document.querySelectorAll(`[${N}="${this._id}"]`);for(let Oe=0;Oe0!=Oe.indexOf(Se));I.setAttribute("aria-describedby",k.join(" "))}_addMessageReference(I,k){const Oe=this._messageRegistry.get(k);Q(I,"aria-describedby",Oe.messageElement.id),I.setAttribute(N,this._id),Oe.referenceCount++}_removeMessageReference(I,k){const Oe=this._messageRegistry.get(k);Oe.referenceCount--,qe(I,"aria-describedby",Oe.messageElement.id),I.removeAttribute(N)}_isElementDescribedByMessage(I,k){const Oe=Te(I,"aria-describedby"),Qe=this._messageRegistry.get(k),pt=Qe&&Qe.messageElement.id;return!!pt&&-1!=Oe.indexOf(pt)}_canBeDescribed(I,k){if(!this._isElementNode(I))return!1;if(k&&"object"==typeof k)return!0;const Oe=null==k?"":`${k}`.trim(),Qe=I.getAttribute("aria-label");return!(!Oe||Qe&&Qe.trim()===Oe)}_isElementNode(I){return I.nodeType===this._document.ELEMENT_NODE}}return(A=H).\u0275fac=function(I){return new(I||A)(s.LFG(i.K0),s.LFG(m.t4))},A.\u0275prov=s.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"}),H})();function Fe(A,H){return"string"==typeof A?`${H||""}/${A}`:A}function Je(A,H){A.id||(A.id=`${Se}-${H}-${oe++}`)}class ht{constructor(H){this._items=H,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new L.xQ,this._typeaheadSubscription=f.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=Be=>Be.disabled,this._pressedLetters=[],this.tabOut=new L.xQ,this.change=new L.xQ,H instanceof s.n_E&&(this._itemChangesSubscription=H.changes.subscribe(Be=>{if(this._activeItem){const k=Be.toArray().indexOf(this._activeItem);k>-1&&k!==this._activeItemIndex&&(this._activeItemIndex=k)}}))}skipPredicate(H){return this._skipPredicateFn=H,this}withWrap(H=!0){return this._wrap=H,this}withVerticalOrientation(H=!0){return this._vertical=H,this}withHorizontalOrientation(H){return this._horizontal=H,this}withAllowedModifierKeys(H){return this._allowedModifierKeys=H,this}withTypeAhead(H=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,ae.b)(Be=>this._pressedLetters.push(Be)),(0,K.b)(H),(0,ne.h)(()=>this._pressedLetters.length>0),(0,he.U)(()=>this._pressedLetters.join(""))).subscribe(Be=>{const I=this._getItemsArray();for(let k=1;k!H[Oe]||this._allowedModifierKeys.indexOf(Oe)>-1);switch(Be){case q.Mf:return void this.tabOut.next();case q.JH:if(this._vertical&&k){this.setNextItemActive();break}return;case q.LH:if(this._vertical&&k){this.setPreviousItemActive();break}return;case q.SV:if(this._horizontal&&k){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case q.oh:if(this._horizontal&&k){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case q.Sd:if(this._homeAndEnd&&k){this.setFirstItemActive();break}return;case q.uR:if(this._homeAndEnd&&k){this.setLastItemActive();break}return;case q.Ku:if(this._pageUpAndDown.enabled&&k){const Oe=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(Oe>0?Oe:0,1);break}return;case q.VM:if(this._pageUpAndDown.enabled&&k){const Oe=this._activeItemIndex+this._pageUpAndDown.delta,Qe=this._getItemsArray().length;this._setActiveItemByIndex(Oe=q.A&&Be<=q.Z||Be>=q.xE&&Be<=q.aO)&&this._letterKeyStream.next(String.fromCharCode(Be))))}this._pressedLetters=[],H.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(H){const Be=this._getItemsArray(),I="number"==typeof H?H:Be.indexOf(H),k=Be[I];this._activeItem=null==k?null:k,this._activeItemIndex=I}destroy(){var H;this._typeaheadSubscription.unsubscribe(),null===(H=this._itemChangesSubscription)||void 0===H||H.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(H){this._wrap?this._setActiveInWrapMode(H):this._setActiveInDefaultMode(H)}_setActiveInWrapMode(H){const Be=this._getItemsArray();for(let I=1;I<=Be.length;I++){const k=(this._activeItemIndex+H*I+Be.length)%Be.length;if(!this._skipPredicateFn(Be[k]))return void this.setActiveItem(k)}}_setActiveInDefaultMode(H){this._setActiveItemByIndex(this._activeItemIndex+H,H)}_setActiveItemByIndex(H,Be){const I=this._getItemsArray();if(I[H]){for(;this._skipPredicateFn(I[H]);)if(!I[H+=Be])return;this.setActiveItem(H)}}_getItemsArray(){return this._items instanceof s.n_E?this._items.toArray():this._items}}class vt extends ht{setActiveItem(H){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(H),this.activeItem&&this.activeItem.setActiveStyles()}}class At extends ht{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(H){return this._origin=H,this}setActiveItem(H){super.setActiveItem(H),this.activeItem&&this.activeItem.focus(this._origin)}}let on=(()=>{var A;class H{constructor(I){this._platform=I}isDisabled(I){return I.hasAttribute("disabled")}isVisible(I){return function gn(A){return!!(A.offsetWidth||A.offsetHeight||"function"==typeof A.getClientRects&&A.getClientRects().length)}(I)&&"visible"===getComputedStyle(I).visibility}isTabbable(I){if(!this._platform.isBrowser)return!1;const k=function nn(A){try{return A.frameElement}catch{return null}}(function Ye(A){return A.ownerDocument&&A.ownerDocument.defaultView||window}(I));if(k&&(-1===Ae(k)||!this.isVisible(k)))return!1;let Oe=I.nodeName.toLowerCase(),Qe=Ae(I);return I.hasAttribute("contenteditable")?-1!==Qe:!("iframe"===Oe||"object"===Oe||this._platform.WEBKIT&&this._platform.IOS&&!function F(A){let H=A.nodeName.toLowerCase(),Be="input"===H&&A.type;return"text"===Be||"password"===Be||"select"===H||"textarea"===H}(I))&&("audio"===Oe?!!I.hasAttribute("controls")&&-1!==Qe:"video"===Oe?-1!==Qe&&(null!==Qe||this._platform.FIREFOX||I.hasAttribute("controls")):I.tabIndex>=0)}isFocusable(I,k){return function me(A){return!function Rn(A){return function kn(A){return"input"==A.nodeName.toLowerCase()}(A)&&"hidden"==A.type}(A)&&(function Ut(A){let H=A.nodeName.toLowerCase();return"input"===H||"select"===H||"button"===H||"textarea"===H}(A)||function Pn(A){return function tt(A){return"a"==A.nodeName.toLowerCase()}(A)&&A.hasAttribute("href")}(A)||A.hasAttribute("contenteditable")||z(A))}(I)&&!this.isDisabled(I)&&((null==k?void 0:k.ignoreVisibility)||this.isVisible(I))}}return(A=H).\u0275fac=function(I){return new(I||A)(s.LFG(m.t4))},A.\u0275prov=s.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"}),H})();function z(A){if(!A.hasAttribute("tabindex")||void 0===A.tabIndex)return!1;let H=A.getAttribute("tabindex");return!(!H||isNaN(parseInt(H,10)))}function Ae(A){if(!z(A))return null;const H=parseInt(A.getAttribute("tabindex")||"",10);return isNaN(H)?-1:H}class St{get enabled(){return this._enabled}set enabled(H){this._enabled=H,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(H,this._startAnchor),this._toggleAnchorTabIndex(H,this._endAnchor))}constructor(H,Be,I,k,Oe=!1){this._element=H,this._checker=Be,this._ngZone=I,this._document=k,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,Oe||this.attachAnchors()}destroy(){const H=this._startAnchor,Be=this._endAnchor;H&&(H.removeEventListener("focus",this.startAnchorListener),H.remove()),Be&&(Be.removeEventListener("focus",this.endAnchorListener),Be.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(H){return new Promise(Be=>{this._executeOnStable(()=>Be(this.focusInitialElement(H)))})}focusFirstTabbableElementWhenReady(H){return new Promise(Be=>{this._executeOnStable(()=>Be(this.focusFirstTabbableElement(H)))})}focusLastTabbableElementWhenReady(H){return new Promise(Be=>{this._executeOnStable(()=>Be(this.focusLastTabbableElement(H)))})}_getRegionBoundary(H){const Be=this._element.querySelectorAll(`[cdk-focus-region-${H}], [cdkFocusRegion${H}], [cdk-focus-${H}]`);return"start"==H?Be.length?Be[0]:this._getFirstTabbableElement(this._element):Be.length?Be[Be.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(H){const Be=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(Be){if(!this._checker.isFocusable(Be)){const I=this._getFirstTabbableElement(Be);return null==I||I.focus(H),!!I}return Be.focus(H),!0}return this.focusFirstTabbableElement(H)}focusFirstTabbableElement(H){const Be=this._getRegionBoundary("start");return Be&&Be.focus(H),!!Be}focusLastTabbableElement(H){const Be=this._getRegionBoundary("end");return Be&&Be.focus(H),!!Be}hasAttached(){return this._hasAttached}_getFirstTabbableElement(H){if(this._checker.isFocusable(H)&&this._checker.isTabbable(H))return H;const Be=H.children;for(let I=0;I=0;I--){const k=Be[I].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(Be[I]):null;if(k)return k}return null}_createAnchor(){const H=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,H),H.classList.add("cdk-visually-hidden"),H.classList.add("cdk-focus-trap-anchor"),H.setAttribute("aria-hidden","true"),H}_toggleAnchorTabIndex(H,Be){H?Be.setAttribute("tabindex","0"):Be.removeAttribute("tabindex")}toggleAnchors(H){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(H,this._startAnchor),this._toggleAnchorTabIndex(H,this._endAnchor))}_executeOnStable(H){this._ngZone.isStable?H():this._ngZone.onStable.pipe((0,U.q)(1)).subscribe(H)}}let Ft=(()=>{var A;class H{constructor(I,k,Oe){this._checker=I,this._ngZone=k,this._document=Oe}create(I,k=!1){return new St(I,this._checker,this._ngZone,this._document,k)}}return(A=H).\u0275fac=function(I){return new(I||A)(s.LFG(on),s.LFG(s.R0b),s.LFG(i.K0))},A.\u0275prov=s.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"}),H})(),Bt=(()=>{var A;class H{get enabled(){return this.focusTrap.enabled}set enabled(I){this.focusTrap.enabled=(0,x.Ig)(I)}get autoCapture(){return this._autoCapture}set autoCapture(I){this._autoCapture=(0,x.Ig)(I)}constructor(I,k,Oe){this._elementRef=I,this._focusTrapFactory=k,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}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(I){const k=I.autoCapture;k&&!k.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,m.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return(A=H).\u0275fac=function(I){return new(I||A)(s.Y36(s.SBq),s.Y36(Ft),s.Y36(i.K0))},A.\u0275dir=s.lG2({type:A,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[s.TTD]}),H})();function pn(A){return 0===A.buttons||0===A.offsetX&&0===A.offsetY}function En(A){const H=A.touches&&A.touches[0]||A.changedTouches&&A.changedTouches[0];return!(!H||-1!==H.identifier||null!=H.radiusX&&1!==H.radiusX||null!=H.radiusY&&1!==H.radiusY)}const un=new s.OlP("cdk-input-modality-detector-options"),Kn={ignoreKeys:[q.zL,q.jx,q.b2,q.MW,q.JU]},Nt=(0,m.i$)({passive:!0,capture:!0});let kt=(()=>{var A;class H{get mostRecentModality(){return this._modality.value}constructor(I,k,Oe,Qe){this._platform=I,this._mostRecentTarget=null,this._modality=new W.X(null),this._lastTouchMs=0,this._onKeydown=pt=>{var Et;null!==(Et=this._options)&&void 0!==Et&&null!==(Et=Et.ignoreKeys)&&void 0!==Et&&Et.some(Gt=>Gt===pt.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,m.sA)(pt))},this._onMousedown=pt=>{Date.now()-this._lastTouchMs<650||(this._modality.next(pn(pt)?"keyboard":"mouse"),this._mostRecentTarget=(0,m.sA)(pt))},this._onTouchstart=pt=>{En(pt)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,m.sA)(pt))},this._options={...Kn,...Qe},this.modalityDetected=this._modality.pipe($(1)),this.modalityChanged=this.modalityDetected.pipe((0,ie.x)()),I.isBrowser&&k.runOutsideAngular(()=>{Oe.addEventListener("keydown",this._onKeydown,Nt),Oe.addEventListener("mousedown",this._onMousedown,Nt),Oe.addEventListener("touchstart",this._onTouchstart,Nt)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Nt),document.removeEventListener("mousedown",this._onMousedown,Nt),document.removeEventListener("touchstart",this._onTouchstart,Nt))}}return(A=H).\u0275fac=function(I){return new(I||A)(s.LFG(m.t4),s.LFG(s.R0b),s.LFG(i.K0),s.LFG(un,8))},A.\u0275prov=s.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"}),H})();const ut=new s.OlP("liveAnnouncerElement",{providedIn:"root",factory:function Ct(){return null}}),en=new s.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let mn=0,Xn=(()=>{var A;class H{constructor(I,k,Oe,Qe){this._ngZone=k,this._defaultOptions=Qe,this._document=Oe,this._liveElement=I||this._createLiveElement()}announce(I,...k){const Oe=this._defaultOptions;let Qe,pt;return 1===k.length&&"number"==typeof k[0]?pt=k[0]:[Qe,pt]=k,this.clear(),clearTimeout(this._previousTimeout),Qe||(Qe=Oe&&Oe.politeness?Oe.politeness:"polite"),null==pt&&Oe&&(pt=Oe.duration),this._liveElement.setAttribute("aria-live",Qe),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(Et=>this._currentResolve=Et)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=I,"number"==typeof pt&&(this._previousTimeout=setTimeout(()=>this.clear(),pt)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var I,k;clearTimeout(this._previousTimeout),null===(I=this._liveElement)||void 0===I||I.remove(),this._liveElement=null,null===(k=this._currentResolve)||void 0===k||k.call(this),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const I="cdk-live-announcer-element",k=this._document.getElementsByClassName(I),Oe=this._document.createElement("div");for(let Qe=0;Qe .cdk-overlay-container [aria-modal="true"]');for(let Oe=0;Oe{var A;class H{constructor(I,k,Oe,Qe,pt){this._ngZone=I,this._platform=k,this._inputModalityDetector=Oe,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 L.xQ,this._rootNodeFocusAndBlurListener=Et=>{for(let Pt=(0,m.sA)(Et);Pt;Pt=Pt.parentElement)"focus"===Et.type?this._onFocus(Et,Pt):this._onBlur(Et,Pt)},this._document=Qe,this._detectionMode=(null==pt?void 0:pt.detectionMode)||0}monitor(I,k=!1){const Oe=(0,x.fI)(I);if(!this._platform.isBrowser||1!==Oe.nodeType)return(0,re.of)();const Qe=(0,m.kV)(Oe)||this._getDocument(),pt=this._elementInfo.get(Oe);if(pt)return k&&(pt.checkChildren=!0),pt.subject;const Et={checkChildren:k,subject:new L.xQ,rootNode:Qe};return this._elementInfo.set(Oe,Et),this._registerGlobalListeners(Et),Et.subject}stopMonitoring(I){const k=(0,x.fI)(I),Oe=this._elementInfo.get(k);Oe&&(Oe.subject.complete(),this._setClasses(k),this._elementInfo.delete(k),this._removeGlobalListeners(Oe))}focusVia(I,k,Oe){const Qe=(0,x.fI)(I);Qe===this._getDocument().activeElement?this._getClosestElementsInfo(Qe).forEach(([Et,Gt])=>this._originChanged(Et,k,Gt)):(this._setOrigin(k),"function"==typeof Qe.focus&&Qe.focus(Oe))}ngOnDestroy(){this._elementInfo.forEach((I,k)=>this.stopMonitoring(k))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(I){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(I)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:I&&this._isLastInteractionFromInputLabel(I)?"mouse":"program"}_shouldBeAttributedToTouch(I){return 1===this._detectionMode||!(null==I||!I.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(I,k){I.classList.toggle("cdk-focused",!!k),I.classList.toggle("cdk-touch-focused","touch"===k),I.classList.toggle("cdk-keyboard-focused","keyboard"===k),I.classList.toggle("cdk-mouse-focused","mouse"===k),I.classList.toggle("cdk-program-focused","program"===k)}_setOrigin(I,k=!1){this._ngZone.runOutsideAngular(()=>{this._origin=I,this._originFromTouchInteraction="touch"===I&&k,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(I,k){const Oe=this._elementInfo.get(k),Qe=(0,m.sA)(I);!Oe||!Oe.checkChildren&&k!==Qe||this._originChanged(k,this._getFocusOrigin(Qe),Oe)}_onBlur(I,k){const Oe=this._elementInfo.get(k);!Oe||Oe.checkChildren&&I.relatedTarget instanceof Node&&k.contains(I.relatedTarget)||(this._setClasses(k),this._emitOrigin(Oe,null))}_emitOrigin(I,k){I.subject.observers.length&&this._ngZone.run(()=>I.subject.next(k))}_registerGlobalListeners(I){if(!this._platform.isBrowser)return;const k=I.rootNode,Oe=this._rootNodeFocusListenerCount.get(k)||0;Oe||this._ngZone.runOutsideAngular(()=>{k.addEventListener("focus",this._rootNodeFocusAndBlurListener,ve),k.addEventListener("blur",this._rootNodeFocusAndBlurListener,ve)}),this._rootNodeFocusListenerCount.set(k,Oe+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,ee.R)(this._stopInputModalityDetector)).subscribe(Qe=>{this._setOrigin(Qe,!0)}))}_removeGlobalListeners(I){const k=I.rootNode;if(this._rootNodeFocusListenerCount.has(k)){const Oe=this._rootNodeFocusListenerCount.get(k);Oe>1?this._rootNodeFocusListenerCount.set(k,Oe-1):(k.removeEventListener("focus",this._rootNodeFocusAndBlurListener,ve),k.removeEventListener("blur",this._rootNodeFocusAndBlurListener,ve),this._rootNodeFocusListenerCount.delete(k))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(I,k,Oe){this._setClasses(I,k),this._emitOrigin(Oe,k),this._lastFocusOrigin=k}_getClosestElementsInfo(I){const k=[];return this._elementInfo.forEach((Oe,Qe)=>{(Qe===I||Oe.checkChildren&&Qe.contains(I))&&k.push([Qe,Oe])}),k}_isLastInteractionFromInputLabel(I){const{_mostRecentTarget:k,mostRecentModality:Oe}=this._inputModalityDetector;if("mouse"!==Oe||!k||k===I||"INPUT"!==I.nodeName&&"TEXTAREA"!==I.nodeName||I.disabled)return!1;const Qe=I.labels;if(Qe)for(let pt=0;pt{var A;class H{constructor(I,k){this._elementRef=I,this._focusMonitor=k,this._focusOrigin=null,this.cdkFocusChange=new s.vpe}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const I=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(I,1===I.nodeType&&I.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(k=>{this._focusOrigin=k,this.cdkFocusChange.emit(k)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return(A=H).\u0275fac=function(I){return new(I||A)(s.Y36(s.SBq),s.Y36(Ee))},A.\u0275dir=s.lG2({type:A,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),H})();const G="cdk-high-contrast-black-on-white",We="cdk-high-contrast-white-on-black",le="cdk-high-contrast-active";let Me=(()=>{var A;class H{constructor(I,k){this._platform=I,this._document=k,this._breakpointSubscription=(0,s.f3M)(yt).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const I=this._document.createElement("div");I.style.backgroundColor="rgb(1,2,3)",I.style.position="absolute",this._document.body.appendChild(I);const k=this._document.defaultView||window,Oe=k&&k.getComputedStyle?k.getComputedStyle(I):null,Qe=(Oe&&Oe.backgroundColor||"").replace(/ /g,"");switch(I.remove(),Qe){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const I=this._document.body.classList;I.remove(le,G,We),this._hasCheckedHighContrastMode=!0;const k=this.getHighContrastMode();1===k?I.add(le,G):2===k&&I.add(le,We)}}}return(A=H).\u0275fac=function(I){return new(I||A)(s.LFG(m.t4),s.LFG(i.K0))},A.\u0275prov=s.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"}),H})(),Le=(()=>{var A;class H{constructor(I){I._applyBodyHighContrastModeCssClasses()}}return(A=H).\u0275fac=function(I){return new(I||A)(s.LFG(Me))},A.\u0275mod=s.oAB({type:A}),A.\u0275inj=s.cJS({imports:[X.Q8]}),H})()},9388:(xt,Ke,p)=>{"use strict";p.d(Ke,{Is:()=>re,vT:()=>ae});var i=p(5879),s=p(6814);const m=new i.OlP("cdk-dir-doc",{providedIn:"root",factory:function L(){return(0,i.f3M)(s.K0)}}),f=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let re=(()=>{var K;class ne{constructor(U){this.value="ltr",this.change=new i.vpe,U&&(this.value=function W(K){var ne;const he=(null==K?void 0:K.toLowerCase())||"";return"auto"===he&&typeof navigator<"u"&&null!==(ne=navigator)&&void 0!==ne&&ne.language?f.test(navigator.language)?"rtl":"ltr":"rtl"===he?"rtl":"ltr"}((U.body?U.body.dir:null)||(U.documentElement?U.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}}return(K=ne).\u0275fac=function(U){return new(U||K)(i.LFG(m,8))},K.\u0275prov=i.Yz7({token:K,factory:K.\u0275fac,providedIn:"root"}),ne})(),ae=(()=>{var K;class ne{}return(K=ne).\u0275fac=function(U){return new(U||K)},K.\u0275mod=i.oAB({type:K}),K.\u0275inj=i.cJS({}),ne})()},2495:(xt,Ke,p)=>{"use strict";p.d(Ke,{Eq:()=>f,HM:()=>W,Ig:()=>s,du:()=>q,fI:()=>re,su:()=>m});var i=p(5879);function s(ae){return null!=ae&&"false"!=`${ae}`}function m(ae,K=0){return function L(ae){return!isNaN(parseFloat(ae))&&!isNaN(Number(ae))}(ae)?Number(ae):K}function f(ae){return Array.isArray(ae)?ae:[ae]}function W(ae){return null==ae?"":"string"==typeof ae?ae:`${ae}px`}function re(ae){return ae instanceof i.SBq?ae.nativeElement:ae}function q(ae,K=/\s+/){const ne=[];if(null!=ae){const he=Array.isArray(ae)?ae:`${ae}`.split(K);for(const U of he){const $e=`${U}`.trim();$e&&ne.push($e)}}return ne}},6028:(xt,Ke,p)=>{"use strict";p.d(Ke,{A:()=>se,JH:()=>x,JU:()=>W,K5:()=>f,Ku:()=>U,LH:()=>ie,L_:()=>he,MW:()=>Bt,Mf:()=>m,SV:()=>ee,Sd:()=>ge,VM:()=>$e,Vb:()=>j,Z:()=>Ft,aO:()=>st,b2:()=>E,hY:()=>ne,jx:()=>re,oh:()=>Ne,uR:()=>$,xE:()=>te,zL:()=>q});const m=9,f=13,W=16,re=17,q=18,ne=27,he=32,U=33,$e=34,$=35,ge=36,Ne=37,ie=38,ee=39,x=40,te=48,st=57,se=65,Ft=90,Bt=91,E=224;function j(fe,...Ge){return Ge.length?Ge.some(Ot=>fe[Ot]):fe.altKey||fe.shiftKey||fe.ctrlKey||fe.metaKey}},7131:(xt,Ke,p)=>{"use strict";p.d(Ke,{Q8:()=>f});var i=p(5879);let s=(()=>{var W;class re{create(ae){return typeof MutationObserver>"u"?null:new MutationObserver(ae)}}return(W=re).\u0275fac=function(ae){return new(ae||W)},W.\u0275prov=i.Yz7({token:W,factory:W.\u0275fac,providedIn:"root"}),re})(),f=(()=>{var W;class re{}return(W=re).\u0275fac=function(ae){return new(ae||W)},W.\u0275mod=i.oAB({type:W}),W.\u0275inj=i.cJS({providers:[s]}),re})()},9594:(xt,Ke,p)=>{"use strict";p.d(Ke,{Iu:()=>_e,U8:()=>Pn,X_:()=>te,Xj:()=>st,_G:()=>Te,aV:()=>At,pI:()=>gn,xu:()=>nn});var i=p(6672),s=p(6814),m=p(5879),L=p(2495),f=p(2831),W=p(7734),re=p(1418),q=p(9352),ae=p(6141),K=p(9388),ne=p(8484),he=p(2079),U=p(7902),$e=p(7354),$=p(6028);const ge=(0,f.Mq)();class Ne{constructor(z,Ae){this._viewportRuler=z,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=Ae}attach(){}enable(){if(this._canBeEnabled()){const z=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=z.style.left||"",this._previousHTMLStyles.top=z.style.top||"",z.style.left=(0,L.HM)(-this._previousScrollPosition.left),z.style.top=(0,L.HM)(-this._previousScrollPosition.top),z.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const z=this._document.documentElement,F=z.style,me=this._document.body.style,Ye=F.scrollBehavior||"",St=me.scrollBehavior||"";this._isEnabled=!1,F.left=this._previousHTMLStyles.left,F.top=this._previousHTMLStyles.top,z.classList.remove("cdk-global-scrollblock"),ge&&(F.scrollBehavior=me.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),ge&&(F.scrollBehavior=Ye,me.scrollBehavior=St)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const Ae=this._document.body,F=this._viewportRuler.getViewportSize();return Ae.scrollHeight>F.height||Ae.scrollWidth>F.width}}class ee{constructor(z,Ae,F,me){this._scrollDispatcher=z,this._ngZone=Ae,this._viewportRuler=F,this._config=me,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(z){this._overlayRef=z}enable(){if(this._scrollSubscription)return;const z=this._scrollDispatcher.scrolled(0).pipe((0,W.h)(Ae=>!Ae||!this._overlayRef.overlayElement.contains(Ae.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=z.subscribe(()=>{const Ae=this._viewportRuler.getViewportScrollPosition().top;Math.abs(Ae-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=z.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class x{enable(){}disable(){}attach(){}}function X(tt,z){return z.some(Ae=>tt.bottomAe.bottom||tt.rightAe.right)}function Ve(tt,z){return z.some(Ae=>tt.topAe.bottom||tt.leftAe.right)}class we{constructor(z,Ae,F,me){this._scrollDispatcher=z,this._viewportRuler=Ae,this._ngZone=F,this._config=me,this._scrollSubscription=null}attach(z){this._overlayRef=z}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 Ae=this._overlayRef.overlayElement.getBoundingClientRect(),{width:F,height:me}=this._viewportRuler.getViewportSize();X(Ae,[{width:F,height:me,bottom:me,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 Ie=(()=>{var tt;class z{constructor(F,me,Ye,St){this._scrollDispatcher=F,this._viewportRuler=me,this._ngZone=Ye,this.noop=()=>new x,this.close=Ft=>new ee(this._scrollDispatcher,this._ngZone,this._viewportRuler,Ft),this.block=()=>new Ne(this._viewportRuler,this._document),this.reposition=Ft=>new we(this._scrollDispatcher,this._viewportRuler,this._ngZone,Ft),this._document=St}}return(tt=z).\u0275fac=function(F){return new(F||tt)(m.LFG(i.mF),m.LFG(i.rL),m.LFG(m.R0b),m.LFG(s.K0))},tt.\u0275prov=m.Yz7({token:tt,factory:tt.\u0275fac,providedIn:"root"}),z})();class te{constructor(z){if(this.scrollStrategy=new x,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,z){const Ae=Object.keys(z);for(const F of Ae)void 0!==z[F]&&(this[F]=z[F])}}}class He{constructor(z,Ae){this.connectionPair=z,this.scrollableViewProperties=Ae}}let dt=(()=>{var tt;class z{constructor(F){this._attachedOverlays=[],this._document=F}ngOnDestroy(){this.detach()}add(F){this.remove(F),this._attachedOverlays.push(F)}remove(F){const me=this._attachedOverlays.indexOf(F);me>-1&&this._attachedOverlays.splice(me,1),0===this._attachedOverlays.length&&this.detach()}}return(tt=z).\u0275fac=function(F){return new(F||tt)(m.LFG(s.K0))},tt.\u0275prov=m.Yz7({token:tt,factory:tt.\u0275fac,providedIn:"root"}),z})(),yt=(()=>{var tt;class z extends dt{constructor(F,me){super(F),this._ngZone=me,this._keydownListener=Ye=>{const St=this._attachedOverlays;for(let Ft=St.length-1;Ft>-1;Ft--)if(St[Ft]._keydownEvents.observers.length>0){const Bt=St[Ft]._keydownEvents;this._ngZone?this._ngZone.run(()=>Bt.next(Ye)):Bt.next(Ye);break}}}add(F){super.add(F),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(tt=z).\u0275fac=function(F){return new(F||tt)(m.LFG(s.K0),m.LFG(m.R0b,8))},tt.\u0275prov=m.Yz7({token:tt,factory:tt.\u0275fac,providedIn:"root"}),z})(),ot=(()=>{var tt;class z extends dt{constructor(F,me,Ye){super(F),this._platform=me,this._ngZone=Ye,this._cursorStyleIsSet=!1,this._pointerDownListener=St=>{this._pointerDownEventTarget=(0,f.sA)(St)},this._clickListener=St=>{const Ft=(0,f.sA)(St),Bt="click"===St.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:Ft;this._pointerDownEventTarget=null;const Wt=this._attachedOverlays.slice();for(let Xt=Wt.length-1;Xt>-1;Xt--){const Mt=Wt[Xt];if(Mt._outsidePointerEvents.observers.length<1||!Mt.hasAttached())continue;if(Mt.overlayElement.contains(Ft)||Mt.overlayElement.contains(Bt))break;const vn=Mt._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>vn.next(St)):vn.next(St)}}}add(F){if(super.add(F),!this._isAttached){const me=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(me)):this._addEventListeners(me),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=me.style.cursor,me.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const F=this._document.body;F.removeEventListener("pointerdown",this._pointerDownListener,!0),F.removeEventListener("click",this._clickListener,!0),F.removeEventListener("auxclick",this._clickListener,!0),F.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(F.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(F){F.addEventListener("pointerdown",this._pointerDownListener,!0),F.addEventListener("click",this._clickListener,!0),F.addEventListener("auxclick",this._clickListener,!0),F.addEventListener("contextmenu",this._clickListener,!0)}}return(tt=z).\u0275fac=function(F){return new(F||tt)(m.LFG(s.K0),m.LFG(f.t4),m.LFG(m.R0b,8))},tt.\u0275prov=m.Yz7({token:tt,factory:tt.\u0275fac,providedIn:"root"}),z})(),st=(()=>{var tt;class z{constructor(F,me){this._platform=me,this._document=F}ngOnDestroy(){var F;null===(F=this._containerElement)||void 0===F||F.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const F="cdk-overlay-container";if(this._platform.isBrowser||(0,f.Oy)()){const Ye=this._document.querySelectorAll(`.${F}[platform="server"], .${F}[platform="test"]`);for(let St=0;Stthis._backdropClick.next(Mt),this._backdropTransitionendHandler=Mt=>{this._disposeBackdrop(Mt.target)},this._keydownEvents=new he.xQ,this._outsidePointerEvents=new he.xQ,me.scrollStrategy&&(this._scrollStrategy=me.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=me.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(z){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const Ae=this._portalOutlet.attach(z);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,re.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof(null==Ae?void 0:Ae.onDestroy)&&Ae.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),Ae}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const z=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),z}dispose(){var z;const Ae=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),null===(z=this._host)||void 0===z||z.remove(),this._previousHostParent=this._pane=this._host=null,Ae&&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(z){z!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=z,this.hasAttached()&&(z.attach(this),this.updatePosition()))}updateSize(z){this._config={...this._config,...z},this._updateElementSize()}setDirection(z){this._config={...this._config,direction:z},this._updateElementDirection()}addPanelClass(z){this._pane&&this._toggleClasses(this._pane,z,!0)}removePanelClass(z){this._pane&&this._toggleClasses(this._pane,z,!1)}getDirection(){const z=this._config.direction;return z?"string"==typeof z?z:z.value:"ltr"}updateScrollStrategy(z){z!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=z,this.hasAttached()&&(z.attach(this),z.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const z=this._pane.style;z.width=(0,L.HM)(this._config.width),z.height=(0,L.HM)(this._config.height),z.minWidth=(0,L.HM)(this._config.minWidth),z.minHeight=(0,L.HM)(this._config.minHeight),z.maxWidth=(0,L.HM)(this._config.maxWidth),z.maxHeight=(0,L.HM)(this._config.maxHeight)}_togglePointerEvents(z){this._pane.style.pointerEvents=z?"":"none"}_attachBackdrop(){const z="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(z)})}):this._backdropElement.classList.add(z)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const z=this._backdropElement;if(z){if(this._animationsDisabled)return void this._disposeBackdrop(z);z.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{z.addEventListener("transitionend",this._backdropTransitionendHandler)}),z.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(z)},500))}}_toggleClasses(z,Ae,F){const me=(0,L.Eq)(Ae||[]).filter(Ye=>!!Ye);me.length&&(F?z.classList.add(...me):z.classList.remove(...me))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const z=this._ngZone.onStable.pipe((0,q.R)((0,$e.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()),z.unsubscribe())})})}_disposeScrollStrategy(){const z=this._scrollStrategy;z&&(z.disable(),z.detach&&z.detach())}_disposeBackdrop(z){z&&(z.removeEventListener("click",this._backdropClickHandler),z.removeEventListener("transitionend",this._backdropTransitionendHandler),z.remove(),this._backdropElement===z&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const Q="cdk-overlay-connected-position-bounding-box",qe=/([A-Za-z%]+)$/;class Te{get positions(){return this._preferredPositions}constructor(z,Ae,F,me,Ye){this._viewportRuler=Ae,this._document=F,this._platform=me,this._overlayContainer=Ye,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 he.xQ,this._resizeSubscription=U.w.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(z)}attach(z){this._validatePositions(),z.hostElement.classList.add(Q),this._overlayRef=z,this._boundingBox=z.hostElement,this._pane=z.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 z=this._originRect,Ae=this._overlayRect,F=this._viewportRect,me=this._containerRect,Ye=[];let St;for(let Ft of this._preferredPositions){let Bt=this._getOriginPoint(z,me,Ft),Wt=this._getOverlayPoint(Bt,Ae,Ft),Xt=this._getOverlayFit(Wt,Ae,F,Ft);if(Xt.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(Ft,Bt);this._canFitWithFlexibleDimensions(Xt,Wt,F)?Ye.push({position:Ft,origin:Bt,overlayRect:Ae,boundingBoxRect:this._calculateBoundingBoxRect(Bt,Ft)}):(!St||St.overlayFit.visibleAreaBt&&(Bt=Xt,Ft=Wt)}return this._isPushed=!1,void this._applyPosition(Ft.position,Ft.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(St.position,St.originPoint);this._applyPosition(St.position,St.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&se(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Q),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const z=this._lastPosition;if(z){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const Ae=this._getOriginPoint(this._originRect,this._containerRect,z);this._applyPosition(z,Ae)}else this.apply()}withScrollableContainers(z){return this._scrollables=z,this}withPositions(z){return this._preferredPositions=z,-1===z.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(z){return this._viewportMargin=z,this}withFlexibleDimensions(z=!0){return this._hasFlexibleDimensions=z,this}withGrowAfterOpen(z=!0){return this._growAfterOpen=z,this}withPush(z=!0){return this._canPush=z,this}withLockedPosition(z=!0){return this._positionLocked=z,this}setOrigin(z){return this._origin=z,this}withDefaultOffsetX(z){return this._offsetX=z,this}withDefaultOffsetY(z){return this._offsetY=z,this}withTransformOriginOn(z){return this._transformOriginSelector=z,this}_getOriginPoint(z,Ae,F){let me,Ye;if("center"==F.originX)me=z.left+z.width/2;else{const St=this._isRtl()?z.right:z.left,Ft=this._isRtl()?z.left:z.right;me="start"==F.originX?St:Ft}return Ae.left<0&&(me-=Ae.left),Ye="center"==F.originY?z.top+z.height/2:"top"==F.originY?z.top:z.bottom,Ae.top<0&&(Ye-=Ae.top),{x:me,y:Ye}}_getOverlayPoint(z,Ae,F){let me,Ye;return me="center"==F.overlayX?-Ae.width/2:"start"===F.overlayX?this._isRtl()?-Ae.width:0:this._isRtl()?0:-Ae.width,Ye="center"==F.overlayY?-Ae.height/2:"top"==F.overlayY?0:-Ae.height,{x:z.x+me,y:z.y+Ye}}_getOverlayFit(z,Ae,F,me){const Ye=N(Ae);let{x:St,y:Ft}=z,Bt=this._getOffset(me,"x"),Wt=this._getOffset(me,"y");Bt&&(St+=Bt),Wt&&(Ft+=Wt);let vn=0-Ft,fn=Ft+Ye.height-F.height,pn=this._subtractOverflows(Ye.width,0-St,St+Ye.width-F.width),En=this._subtractOverflows(Ye.height,vn,fn),un=pn*En;return{visibleArea:un,isCompletelyWithinViewport:Ye.width*Ye.height===un,fitsInViewportVertically:En===Ye.height,fitsInViewportHorizontally:pn==Ye.width}}_canFitWithFlexibleDimensions(z,Ae,F){if(this._hasFlexibleDimensions){const me=F.bottom-Ae.y,Ye=F.right-Ae.x,St=Se(this._overlayRef.getConfig().minHeight),Ft=Se(this._overlayRef.getConfig().minWidth);return(z.fitsInViewportVertically||null!=St&&St<=me)&&(z.fitsInViewportHorizontally||null!=Ft&&Ft<=Ye)}return!1}_pushOverlayOnScreen(z,Ae,F){if(this._previousPushAmount&&this._positionLocked)return{x:z.x+this._previousPushAmount.x,y:z.y+this._previousPushAmount.y};const me=N(Ae),Ye=this._viewportRect,St=Math.max(z.x+me.width-Ye.width,0),Ft=Math.max(z.y+me.height-Ye.height,0),Bt=Math.max(Ye.top-F.top-z.y,0),Wt=Math.max(Ye.left-F.left-z.x,0);let Xt=0,Mt=0;return Xt=me.width<=Ye.width?Wt||-St:z.xpn&&!this._isInitialRender&&!this._growAfterOpen&&(St=z.y-pn/2)}if("end"===Ae.overlayX&&!me||"start"===Ae.overlayX&&me)vn=F.width-z.x+this._viewportMargin,Xt=z.x-this._viewportMargin;else if("start"===Ae.overlayX&&!me||"end"===Ae.overlayX&&me)Mt=z.x,Xt=F.right-z.x;else{const fn=Math.min(F.right-z.x+F.left,z.x),pn=this._lastBoundingBoxSize.width;Xt=2*fn,Mt=z.x-fn,Xt>pn&&!this._isInitialRender&&!this._growAfterOpen&&(Mt=z.x-pn/2)}return{top:St,left:Mt,bottom:Ft,right:vn,width:Xt,height:Ye}}_setBoundingBoxStyles(z,Ae){const F=this._calculateBoundingBoxRect(z,Ae);!this._isInitialRender&&!this._growAfterOpen&&(F.height=Math.min(F.height,this._lastBoundingBoxSize.height),F.width=Math.min(F.width,this._lastBoundingBoxSize.width));const me={};if(this._hasExactPosition())me.top=me.left="0",me.bottom=me.right=me.maxHeight=me.maxWidth="",me.width=me.height="100%";else{const Ye=this._overlayRef.getConfig().maxHeight,St=this._overlayRef.getConfig().maxWidth;me.height=(0,L.HM)(F.height),me.top=(0,L.HM)(F.top),me.bottom=(0,L.HM)(F.bottom),me.width=(0,L.HM)(F.width),me.left=(0,L.HM)(F.left),me.right=(0,L.HM)(F.right),me.alignItems="center"===Ae.overlayX?"center":"end"===Ae.overlayX?"flex-end":"flex-start",me.justifyContent="center"===Ae.overlayY?"center":"bottom"===Ae.overlayY?"flex-end":"flex-start",Ye&&(me.maxHeight=(0,L.HM)(Ye)),St&&(me.maxWidth=(0,L.HM)(St))}this._lastBoundingBoxSize=F,se(this._boundingBox.style,me)}_resetBoundingBoxStyles(){se(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){se(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(z,Ae){const F={},me=this._hasExactPosition(),Ye=this._hasFlexibleDimensions,St=this._overlayRef.getConfig();if(me){const Xt=this._viewportRuler.getViewportScrollPosition();se(F,this._getExactOverlayY(Ae,z,Xt)),se(F,this._getExactOverlayX(Ae,z,Xt))}else F.position="static";let Ft="",Bt=this._getOffset(Ae,"x"),Wt=this._getOffset(Ae,"y");Bt&&(Ft+=`translateX(${Bt}px) `),Wt&&(Ft+=`translateY(${Wt}px)`),F.transform=Ft.trim(),St.maxHeight&&(me?F.maxHeight=(0,L.HM)(St.maxHeight):Ye&&(F.maxHeight="")),St.maxWidth&&(me?F.maxWidth=(0,L.HM)(St.maxWidth):Ye&&(F.maxWidth="")),se(this._pane.style,F)}_getExactOverlayY(z,Ae,F){let me={top:"",bottom:""},Ye=this._getOverlayPoint(Ae,this._overlayRect,z);return this._isPushed&&(Ye=this._pushOverlayOnScreen(Ye,this._overlayRect,F)),"bottom"===z.overlayY?me.bottom=this._document.documentElement.clientHeight-(Ye.y+this._overlayRect.height)+"px":me.top=(0,L.HM)(Ye.y),me}_getExactOverlayX(z,Ae,F){let St,me={left:"",right:""},Ye=this._getOverlayPoint(Ae,this._overlayRect,z);return this._isPushed&&(Ye=this._pushOverlayOnScreen(Ye,this._overlayRect,F)),St=this._isRtl()?"end"===z.overlayX?"left":"right":"end"===z.overlayX?"right":"left","right"===St?me.right=this._document.documentElement.clientWidth-(Ye.x+this._overlayRect.width)+"px":me.left=(0,L.HM)(Ye.x),me}_getScrollVisibility(){const z=this._getOriginRect(),Ae=this._pane.getBoundingClientRect(),F=this._scrollables.map(me=>me.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Ve(z,F),isOriginOutsideView:X(z,F),isOverlayClipped:Ve(Ae,F),isOverlayOutsideView:X(Ae,F)}}_subtractOverflows(z,...Ae){return Ae.reduce((F,me)=>F-Math.max(me,0),z)}_getNarrowedViewportRect(){const z=this._document.documentElement.clientWidth,Ae=this._document.documentElement.clientHeight,F=this._viewportRuler.getViewportScrollPosition();return{top:F.top+this._viewportMargin,left:F.left+this._viewportMargin,right:F.left+z-this._viewportMargin,bottom:F.top+Ae-this._viewportMargin,width:z-2*this._viewportMargin,height:Ae-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(z,Ae){return"x"===Ae?null==z.offsetX?this._offsetX:z.offsetX:null==z.offsetY?this._offsetY:z.offsetY}_validatePositions(){}_addPanelClasses(z){this._pane&&(0,L.Eq)(z).forEach(Ae=>{""!==Ae&&-1===this._appliedPanelClasses.indexOf(Ae)&&(this._appliedPanelClasses.push(Ae),this._pane.classList.add(Ae))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(z=>{this._pane.classList.remove(z)}),this._appliedPanelClasses=[])}_getOriginRect(){const z=this._origin;if(z instanceof m.SBq)return z.nativeElement.getBoundingClientRect();if(z instanceof Element)return z.getBoundingClientRect();const Ae=z.width||0,F=z.height||0;return{top:z.y,bottom:z.y+F,left:z.x,right:z.x+Ae,height:F,width:Ae}}}function se(tt,z){for(let Ae in z)z.hasOwnProperty(Ae)&&(tt[Ae]=z[Ae]);return tt}function Se(tt){if("number"!=typeof tt&&null!=tt){const[z,Ae]=tt.split(qe);return Ae&&"px"!==Ae?null:parseFloat(z)}return tt||null}function N(tt){return{top:Math.floor(tt.top),right:Math.floor(tt.right),bottom:Math.floor(tt.bottom),left:Math.floor(tt.left),width:Math.floor(tt.width),height:Math.floor(tt.height)}}const Fe="cdk-global-overlay-wrapper";class Je{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(z){const Ae=z.getConfig();this._overlayRef=z,this._width&&!Ae.width&&z.updateSize({width:this._width}),this._height&&!Ae.height&&z.updateSize({height:this._height}),z.hostElement.classList.add(Fe),this._isDisposed=!1}top(z=""){return this._bottomOffset="",this._topOffset=z,this._alignItems="flex-start",this}left(z=""){return this._xOffset=z,this._xPosition="left",this}bottom(z=""){return this._topOffset="",this._bottomOffset=z,this._alignItems="flex-end",this}right(z=""){return this._xOffset=z,this._xPosition="right",this}start(z=""){return this._xOffset=z,this._xPosition="start",this}end(z=""){return this._xOffset=z,this._xPosition="end",this}width(z=""){return this._overlayRef?this._overlayRef.updateSize({width:z}):this._width=z,this}height(z=""){return this._overlayRef?this._overlayRef.updateSize({height:z}):this._height=z,this}centerHorizontally(z=""){return this.left(z),this._xPosition="center",this}centerVertically(z=""){return this.top(z),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const z=this._overlayRef.overlayElement.style,Ae=this._overlayRef.hostElement.style,F=this._overlayRef.getConfig(),{width:me,height:Ye,maxWidth:St,maxHeight:Ft}=F,Bt=!("100%"!==me&&"100vw"!==me||St&&"100%"!==St&&"100vw"!==St),Wt=!("100%"!==Ye&&"100vh"!==Ye||Ft&&"100%"!==Ft&&"100vh"!==Ft),Xt=this._xPosition,Mt=this._xOffset,vn="rtl"===this._overlayRef.getConfig().direction;let fn="",pn="",En="";Bt?En="flex-start":"center"===Xt?(En="center",vn?pn=Mt:fn=Mt):vn?"left"===Xt||"end"===Xt?(En="flex-end",fn=Mt):("right"===Xt||"start"===Xt)&&(En="flex-start",pn=Mt):"left"===Xt||"start"===Xt?(En="flex-start",fn=Mt):("right"===Xt||"end"===Xt)&&(En="flex-end",pn=Mt),z.position=this._cssPosition,z.marginLeft=Bt?"0":fn,z.marginTop=Wt?"0":this._topOffset,z.marginBottom=this._bottomOffset,z.marginRight=Bt?"0":pn,Ae.justifyContent=En,Ae.alignItems=Wt?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const z=this._overlayRef.overlayElement.style,Ae=this._overlayRef.hostElement,F=Ae.style;Ae.classList.remove(Fe),F.justifyContent=F.alignItems=z.marginTop=z.marginBottom=z.marginLeft=z.marginRight=z.position="",this._overlayRef=null,this._isDisposed=!0}}let ht=(()=>{var tt;class z{constructor(F,me,Ye,St){this._viewportRuler=F,this._document=me,this._platform=Ye,this._overlayContainer=St}global(){return new Je}flexibleConnectedTo(F){return new Te(F,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return(tt=z).\u0275fac=function(F){return new(F||tt)(m.LFG(i.rL),m.LFG(s.K0),m.LFG(f.t4),m.LFG(st))},tt.\u0275prov=m.Yz7({token:tt,factory:tt.\u0275fac,providedIn:"root"}),z})(),vt=0,At=(()=>{var tt;class z{constructor(F,me,Ye,St,Ft,Bt,Wt,Xt,Mt,vn,fn,pn){this.scrollStrategies=F,this._overlayContainer=me,this._componentFactoryResolver=Ye,this._positionBuilder=St,this._keyboardDispatcher=Ft,this._injector=Bt,this._ngZone=Wt,this._document=Xt,this._directionality=Mt,this._location=vn,this._outsideClickDispatcher=fn,this._animationsModuleType=pn}create(F){const me=this._createHostElement(),Ye=this._createPaneElement(me),St=this._createPortalOutlet(Ye),Ft=new te(F);return Ft.direction=Ft.direction||this._directionality.value,new _e(St,me,Ye,Ft,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(F){const me=this._document.createElement("div");return me.id="cdk-overlay-"+vt++,me.classList.add("cdk-overlay-pane"),F.appendChild(me),me}_createHostElement(){const F=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(F),F}_createPortalOutlet(F){return this._appRef||(this._appRef=this._injector.get(m.z2F)),new ne.u0(F,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return(tt=z).\u0275fac=function(F){return new(F||tt)(m.LFG(Ie),m.LFG(st),m.LFG(m._Vd),m.LFG(ht),m.LFG(yt),m.LFG(m.zs3),m.LFG(m.R0b),m.LFG(s.K0),m.LFG(K.Is),m.LFG(s.Ye),m.LFG(ot),m.LFG(m.QbO,8))},tt.\u0275prov=m.Yz7({token:tt,factory:tt.\u0275fac,providedIn:"root"}),z})();const Yt=[{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"}],on=new m.OlP("cdk-connected-overlay-scroll-strategy");let nn=(()=>{var tt;class z{constructor(F){this.elementRef=F}}return(tt=z).\u0275fac=function(F){return new(F||tt)(m.Y36(m.SBq))},tt.\u0275dir=m.lG2({type:tt,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0}),z})(),gn=(()=>{var tt;class z{get offsetX(){return this._offsetX}set offsetX(F){this._offsetX=F,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(F){this._offsetY=F,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(F){this._hasBackdrop=(0,L.Ig)(F)}get lockPosition(){return this._lockPosition}set lockPosition(F){this._lockPosition=(0,L.Ig)(F)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(F){this._flexibleDimensions=(0,L.Ig)(F)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(F){this._growAfterOpen=(0,L.Ig)(F)}get push(){return this._push}set push(F){this._push=(0,L.Ig)(F)}constructor(F,me,Ye,St,Ft){this._overlay=F,this._dir=Ft,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=U.w.EMPTY,this._attachSubscription=U.w.EMPTY,this._detachSubscription=U.w.EMPTY,this._positionSubscription=U.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new m.vpe,this.positionChange=new m.vpe,this.attach=new m.vpe,this.detach=new m.vpe,this.overlayKeydown=new m.vpe,this.overlayOutsideClick=new m.vpe,this._templatePortal=new ne.UE(me,Ye),this._scrollStrategyFactory=St,this.scrollStrategy=this._scrollStrategyFactory()}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(F){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),F.origin&&this.open&&this._position.apply()),F.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Yt);const F=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=F.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=F.detachments().subscribe(()=>this.detach.emit()),F.keydownEvents().subscribe(me=>{this.overlayKeydown.next(me),me.keyCode===$.hY&&!this.disableClose&&!(0,$.Vb)(me)&&(me.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(me=>{this.overlayOutsideClick.next(me)})}_buildConfig(){const F=this._position=this.positionStrategy||this._createPositionStrategy(),me=new te({direction:this._dir,positionStrategy:F,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(me.width=this.width),(this.height||0===this.height)&&(me.height=this.height),(this.minWidth||0===this.minWidth)&&(me.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(me.minHeight=this.minHeight),this.backdropClass&&(me.backdropClass=this.backdropClass),this.panelClass&&(me.panelClass=this.panelClass),me}_updatePositionStrategy(F){const me=this.positions.map(Ye=>({originX:Ye.originX,originY:Ye.originY,overlayX:Ye.overlayX,overlayY:Ye.overlayY,offsetX:Ye.offsetX||this.offsetX,offsetY:Ye.offsetY||this.offsetY,panelClass:Ye.panelClass||void 0}));return F.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(me).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const F=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(F),F}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof nn?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(F=>{this.backdropClick.emit(F)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,ae.o)(()=>this.positionChange.observers.length>0)).subscribe(F=>{this.positionChange.emit(F),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return(tt=z).\u0275fac=function(F){return new(F||tt)(m.Y36(At),m.Y36(m.Rgc),m.Y36(m.s_b),m.Y36(on),m.Y36(K.Is,8))},tt.\u0275dir=m.lG2({type:tt,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"],standalone:!0,features:[m.TTD]}),z})();const Rn={provide:on,deps:[At],useFactory:function Ut(tt){return()=>tt.scrollStrategies.reposition()}};let Pn=(()=>{var tt;class z{}return(tt=z).\u0275fac=function(F){return new(F||tt)},tt.\u0275mod=m.oAB({type:tt}),tt.\u0275inj=m.cJS({providers:[At,Rn],imports:[K.vT,ne.eL,i.Cl,i.Cl]}),z})()},2831:(xt,Ke,p)=>{"use strict";p.d(Ke,{Mq:()=>$e,Oy:()=>X,ht:()=>ee,i$:()=>ne,kV:()=>ie,qK:()=>q,sA:()=>x,t4:()=>L});var i=p(5879),s=p(6814);let m;try{m=typeof Intl<"u"&&Intl.v8BreakIterator}catch{m=!1}let W,L=(()=>{var Ve;class we{constructor(te){this._platformId=te,this.isBrowser=this._platformId?(0,s.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&&!m)&&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(Ve=we).\u0275fac=function(te){return new(te||Ve)(i.LFG(i.Lbi))},Ve.\u0275prov=i.Yz7({token:Ve,factory:Ve.\u0275fac,providedIn:"root"}),we})();const re=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function q(){if(W)return W;if("object"!=typeof document||!document)return W=new Set(re),W;let Ve=document.createElement("input");return W=new Set(re.filter(we=>(Ve.setAttribute("type",we),Ve.type===we))),W}let ae,U,ge;function ne(Ve){return function K(){if(null==ae&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>ae=!0}))}finally{ae=ae||!1}return ae}()?Ve:!!Ve.capture}function $e(){if(null==U){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return U=!1,U;if("scrollBehavior"in document.documentElement.style)U=!0;else{const Ve=Element.prototype.scrollTo;U=!!Ve&&!/\{\s*\[native code\]\s*\}/.test(Ve.toString())}}return U}function ie(Ve){if(function Ne(){if(null==ge){const Ve=typeof document<"u"?document.head:null;ge=!(!Ve||!Ve.createShadowRoot&&!Ve.attachShadow)}return ge}()){const we=Ve.getRootNode?Ve.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&we instanceof ShadowRoot)return we}return null}function ee(){let Ve=typeof document<"u"&&document?document.activeElement:null;for(;Ve&&Ve.shadowRoot;){const we=Ve.shadowRoot.activeElement;if(we===Ve)break;Ve=we}return Ve}function x(Ve){return Ve.composedPath?Ve.composedPath()[0]:Ve.target}function X(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},8484:(xt,Ke,p)=>{"use strict";p.d(Ke,{C5:()=>K,Pl:()=>ee,UE:()=>ne,eL:()=>X,en:()=>U,u0:()=>$});var i=p(5879),s=p(6814);class ae{attach(Ie){return this._attachedHost=Ie,Ie.attach(this)}detach(){let Ie=this._attachedHost;null!=Ie&&(this._attachedHost=null,Ie.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(Ie){this._attachedHost=Ie}}class K extends ae{constructor(Ie,te,ce,Re,He){super(),this.component=Ie,this.viewContainerRef=te,this.injector=ce,this.componentFactoryResolver=Re,this.projectableNodes=He}}class ne extends ae{constructor(Ie,te,ce,Re){super(),this.templateRef=Ie,this.viewContainerRef=te,this.context=ce,this.injector=Re}get origin(){return this.templateRef.elementRef}attach(Ie,te=this.context){return this.context=te,super.attach(Ie)}detach(){return this.context=void 0,super.detach()}}class he extends ae{constructor(Ie){super(),this.element=Ie instanceof i.SBq?Ie.nativeElement:Ie}}class U{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(Ie){return Ie instanceof K?(this._attachedPortal=Ie,this.attachComponentPortal(Ie)):Ie instanceof ne?(this._attachedPortal=Ie,this.attachTemplatePortal(Ie)):this.attachDomPortal&&Ie instanceof he?(this._attachedPortal=Ie,this.attachDomPortal(Ie)):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(Ie){this._disposeFn=Ie}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class $ extends U{constructor(Ie,te,ce,Re,He){super(),this.outletElement=Ie,this._componentFactoryResolver=te,this._appRef=ce,this._defaultInjector=Re,this.attachDomPortal=nt=>{const _t=nt.element,dt=this._document.createComment("dom-portal");_t.parentNode.insertBefore(dt,_t),this.outletElement.appendChild(_t),this._attachedPortal=nt,super.setDisposeFn(()=>{dt.parentNode&&dt.parentNode.replaceChild(_t,dt)})},this._document=He}attachComponentPortal(Ie){const ce=(Ie.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Ie.component);let Re;return Ie.viewContainerRef?(Re=Ie.viewContainerRef.createComponent(ce,Ie.viewContainerRef.length,Ie.injector||Ie.viewContainerRef.injector,Ie.projectableNodes||void 0),this.setDisposeFn(()=>Re.destroy())):(Re=ce.create(Ie.injector||this._defaultInjector||i.zs3.NULL),this._appRef.attachView(Re.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(Re.hostView),Re.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(Re)),this._attachedPortal=Ie,Re}attachTemplatePortal(Ie){let te=Ie.viewContainerRef,ce=te.createEmbeddedView(Ie.templateRef,Ie.context,{injector:Ie.injector});return ce.rootNodes.forEach(Re=>this.outletElement.appendChild(Re)),ce.detectChanges(),this.setDisposeFn(()=>{let Re=te.indexOf(ce);-1!==Re&&te.remove(Re)}),this._attachedPortal=Ie,ce}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(Ie){return Ie.hostView.rootNodes[0]}}let ee=(()=>{var we;class Ie extends U{constructor(ce,Re,He){super(),this._componentFactoryResolver=ce,this._viewContainerRef=Re,this._isInitialized=!1,this.attached=new i.vpe,this.attachDomPortal=nt=>{const _t=nt.element,dt=this._document.createComment("dom-portal");nt.setAttachedHost(this),_t.parentNode.insertBefore(dt,_t),this._getRootNode().appendChild(_t),this._attachedPortal=nt,super.setDisposeFn(()=>{dt.parentNode&&dt.parentNode.replaceChild(_t,dt)})},this._document=He}get portal(){return this._attachedPortal}set portal(ce){this.hasAttached()&&!ce&&!this._isInitialized||(this.hasAttached()&&super.detach(),ce&&super.attach(ce),this._attachedPortal=ce||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(ce){ce.setAttachedHost(this);const Re=null!=ce.viewContainerRef?ce.viewContainerRef:this._viewContainerRef,nt=(ce.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(ce.component),_t=Re.createComponent(nt,Re.length,ce.injector||Re.injector,ce.projectableNodes||void 0);return Re!==this._viewContainerRef&&this._getRootNode().appendChild(_t.hostView.rootNodes[0]),super.setDisposeFn(()=>_t.destroy()),this._attachedPortal=ce,this._attachedRef=_t,this.attached.emit(_t),_t}attachTemplatePortal(ce){ce.setAttachedHost(this);const Re=this._viewContainerRef.createEmbeddedView(ce.templateRef,ce.context,{injector:ce.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=ce,this._attachedRef=Re,this.attached.emit(Re),Re}_getRootNode(){const ce=this._viewContainerRef.element.nativeElement;return ce.nodeType===ce.ELEMENT_NODE?ce:ce.parentNode}}return(we=Ie).\u0275fac=function(ce){return new(ce||we)(i.Y36(i._Vd),i.Y36(i.s_b),i.Y36(s.K0))},we.\u0275dir=i.lG2({type:we,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.qOj]}),Ie})(),X=(()=>{var we;class Ie{}return(we=Ie).\u0275fac=function(ce){return new(ce||we)},we.\u0275mod=i.oAB({type:we}),we.\u0275inj=i.cJS({}),Ie})()},6672:(xt,Ke,p)=>{"use strict";p.d(Ke,{Cl:()=>_e,ZD:()=>st,mF:()=>X,rL:()=>Ie});var i=p(2495),s=p(5879),m=p(2079),L=p(9193),f=p(4699),W=p(9016),ae=(p(3944),p(7024),p(3433)),K=p(7734),ne=p(2831),he=p(6814),U=p(9388);let X=(()=>{var Q;class qe{constructor(se,Se,N){this._ngZone=se,this._platform=Se,this._scrolled=new m.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=N}register(se){this.scrollContainers.has(se)||this.scrollContainers.set(se,se.elementScrolled().subscribe(()=>this._scrolled.next(se)))}deregister(se){const Se=this.scrollContainers.get(se);Se&&(Se.unsubscribe(),this.scrollContainers.delete(se))}scrolled(se=20){return this._platform.isBrowser?new f.y(Se=>{this._globalSubscription||this._addGlobalListener();const N=se>0?this._scrolled.pipe((0,ae.e)(se)).subscribe(Se):this._scrolled.subscribe(Se);return this._scrolledCount++,()=>{N.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,L.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((se,Se)=>this.deregister(Se)),this._scrolled.complete()}ancestorScrolled(se,Se){const N=this.getAncestorScrollContainers(se);return this.scrolled(Se).pipe((0,K.h)(oe=>!oe||N.indexOf(oe)>-1))}getAncestorScrollContainers(se){const Se=[];return this.scrollContainers.forEach((N,oe)=>{this._scrollableContainsElement(oe,se)&&Se.push(oe)}),Se}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(se,Se){let N=(0,i.fI)(Se),oe=se.getElementRef().nativeElement;do{if(N==oe)return!0}while(N=N.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const se=this._getWindow();return(0,W.R)(se.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return(Q=qe).\u0275fac=function(se){return new(se||Q)(s.LFG(s.R0b),s.LFG(ne.t4),s.LFG(he.K0,8))},Q.\u0275prov=s.Yz7({token:Q,factory:Q.\u0275fac,providedIn:"root"}),qe})(),Ie=(()=>{var Q;class qe{constructor(se,Se,N){this._platform=se,this._change=new m.xQ,this._changeListener=oe=>{this._change.next(oe)},this._document=N,Se.runOutsideAngular(()=>{if(se.isBrowser){const oe=this._getWindow();oe.addEventListener("resize",this._changeListener),oe.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const se=this._getWindow();se.removeEventListener("resize",this._changeListener),se.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const se={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),se}getViewportRect(){const se=this.getViewportScrollPosition(),{width:Se,height:N}=this.getViewportSize();return{top:se.top,left:se.left,bottom:se.top+N,right:se.left+Se,height:N,width:Se}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const se=this._document,Se=this._getWindow(),N=se.documentElement,oe=N.getBoundingClientRect();return{top:-oe.top||se.body.scrollTop||Se.scrollY||N.scrollTop||0,left:-oe.left||se.body.scrollLeft||Se.scrollX||N.scrollLeft||0}}change(se=20){return se>0?this._change.pipe((0,ae.e)(se)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const se=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:se.innerWidth,height:se.innerHeight}:{width:0,height:0}}}return(Q=qe).\u0275fac=function(se){return new(se||Q)(s.LFG(ne.t4),s.LFG(s.R0b),s.LFG(he.K0,8))},Q.\u0275prov=s.Yz7({token:Q,factory:Q.\u0275fac,providedIn:"root"}),qe})(),st=(()=>{var Q;class qe{}return(Q=qe).\u0275fac=function(se){return new(se||Q)},Q.\u0275mod=s.oAB({type:Q}),Q.\u0275inj=s.cJS({}),qe})(),_e=(()=>{var Q;class qe{}return(Q=qe).\u0275fac=function(se){return new(se||Q)},Q.\u0275mod=s.oAB({type:Q}),Q.\u0275inj=s.cJS({imports:[U.vT,st,U.vT,st]}),qe})()},6263:(xt,Ke,p)=>{"use strict";p.d(Ke,{IC:()=>U,Ky:()=>$e,Lq:()=>ne});var i=p(2831),s=p(5879),m=p(2495),L=p(1226),f=p(2079),W=p(9016),re=p(3433),q=p(9352),ae=p(6814);const K=(0,i.i$)({passive:!0});let ne=(()=>{var $;class ge{constructor(ie,ee){this._platform=ie,this._ngZone=ee,this._monitoredElements=new Map}monitor(ie){if(!this._platform.isBrowser)return L.E;const ee=(0,m.fI)(ie),x=this._monitoredElements.get(ee);if(x)return x.subject;const X=new f.xQ,Ve="cdk-text-field-autofilled",we=Ie=>{"cdk-text-field-autofill-start"!==Ie.animationName||ee.classList.contains(Ve)?"cdk-text-field-autofill-end"===Ie.animationName&&ee.classList.contains(Ve)&&(ee.classList.remove(Ve),this._ngZone.run(()=>X.next({target:Ie.target,isAutofilled:!1}))):(ee.classList.add(Ve),this._ngZone.run(()=>X.next({target:Ie.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{ee.addEventListener("animationstart",we,K),ee.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(ee,{subject:X,unlisten:()=>{ee.removeEventListener("animationstart",we,K)}}),X}stopMonitoring(ie){const ee=(0,m.fI)(ie),x=this._monitoredElements.get(ee);x&&(x.unlisten(),x.subject.complete(),ee.classList.remove("cdk-text-field-autofill-monitored"),ee.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(ee))}ngOnDestroy(){this._monitoredElements.forEach((ie,ee)=>this.stopMonitoring(ee))}}return($=ge).\u0275fac=function(ie){return new(ie||$)(s.LFG(i.t4),s.LFG(s.R0b))},$.\u0275prov=s.Yz7({token:$,factory:$.\u0275fac,providedIn:"root"}),ge})(),U=(()=>{var $;class ge{get minRows(){return this._minRows}set minRows(ie){this._minRows=(0,m.su)(ie),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(ie){this._maxRows=(0,m.su)(ie),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(ie){ie=(0,m.Ig)(ie),this._enabled!==ie&&((this._enabled=ie)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(ie){this._cachedPlaceholderHeight=void 0,ie?this._textareaElement.setAttribute("placeholder",ie):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}constructor(ie,ee,x,X){this._elementRef=ie,this._platform=ee,this._ngZone=x,this._destroyed=new f.xQ,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=Ve=>{this._hasFocus="focus"===Ve.type},this._document=X,this._textareaElement=this._elementRef.nativeElement}_setMinHeight(){const ie=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;ie&&(this._textareaElement.style.minHeight=ie)}_setMaxHeight(){const ie=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;ie&&(this._textareaElement.style.maxHeight=ie)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{const ie=this._getWindow();(0,W.R)(ie,"resize").pipe((0,re.e)(16),(0,q.R)(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let ie=this._textareaElement.cloneNode(!1);ie.rows=1,ie.style.position="absolute",ie.style.visibility="hidden",ie.style.border="none",ie.style.padding="0",ie.style.height="",ie.style.minHeight="",ie.style.maxHeight="",ie.style.overflow="hidden",this._textareaElement.parentNode.appendChild(ie),this._cachedLineHeight=ie.clientHeight,ie.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const ie=this._textareaElement,ee=ie.style.marginBottom||"",x=this._platform.FIREFOX,X=x&&this._hasFocus,Ve=x?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";X&&(ie.style.marginBottom=`${ie.clientHeight}px`),ie.classList.add(Ve);const we=ie.scrollHeight-4;return ie.classList.remove(Ve),X&&(ie.style.marginBottom=ee),we}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const ie=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=ie}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(ie=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const ee=this._elementRef.nativeElement,x=ee.value;if(!ie&&this._minRows===this._previousMinRows&&x===this._previousValue)return;const X=this._measureScrollHeight(),Ve=Math.max(X,this._cachedPlaceholderHeight||0);ee.style.height=`${Ve}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(ee)):setTimeout(()=>this._scrollToCaretPosition(ee))}),this._previousValue=x,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(ie){const{selectionStart:ee,selectionEnd:x}=ie;!this._destroyed.isStopped&&this._hasFocus&&ie.setSelectionRange(ee,x)}}return($=ge).\u0275fac=function(ie){return new(ie||$)(s.Y36(s.SBq),s.Y36(i.t4),s.Y36(s.R0b),s.Y36(ae.K0,8))},$.\u0275dir=s.lG2({type:$,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(ie,ee){1&ie&&s.NdJ("input",function(){return ee._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),ge})(),$e=(()=>{var $;class ge{}return($=ge).\u0275fac=function(ie){return new(ie||$)},$.\u0275mod=s.oAB({type:$}),$.\u0275inj=s.cJS({}),ge})()},6814:(xt,Ke,p)=>{"use strict";p.d(Ke,{Do:()=>ge,ED:()=>ai,EM:()=>fr,HT:()=>L,JF:()=>ir,K0:()=>W,Mx:()=>ei,NF:()=>Nr,Nd:()=>Cr,O5:()=>E,OU:()=>wi,Ov:()=>Ht,PC:()=>S,PM:()=>hr,RF:()=>Ot,S$:()=>U,V_:()=>q,Ye:()=>Ne,b0:()=>$,bD:()=>nr,ez:()=>vi,mk:()=>qn,n9:()=>hn,q:()=>m,sg:()=>Ze,tP:()=>Z,uU:()=>Si,w_:()=>f});var i=p(5879);let s=null;function m(){return s}function L(y){s||(s=y)}class f{}const W=new i.OlP("DocumentToken");let re=(()=>{var y;class P{historyGo(O){throw new Error("Not implemented")}}return(y=P).\u0275fac=function(O){return new(O||y)},y.\u0275prov=i.Yz7({token:y,factory:function(){return(0,i.f3M)(ae)},providedIn:"platform"}),P})();const q=new i.OlP("Location Initialized");let ae=(()=>{var y;class P extends re{constructor(){super(),this._doc=(0,i.f3M)(W),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return m().getBaseHref(this._doc)}onPopState(O){const De=m().getGlobalEventTarget(this._doc,"window");return De.addEventListener("popstate",O,!1),()=>De.removeEventListener("popstate",O)}onHashChange(O){const De=m().getGlobalEventTarget(this._doc,"window");return De.addEventListener("hashchange",O,!1),()=>De.removeEventListener("hashchange",O)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(O){this._location.pathname=O}pushState(O,De,et){this._history.pushState(O,De,et)}replaceState(O,De,et){this._history.replaceState(O,De,et)}forward(){this._history.forward()}back(){this._history.back()}historyGo(O=0){this._history.go(O)}getState(){return this._history.state}}return(y=P).\u0275fac=function(O){return new(O||y)},y.\u0275prov=i.Yz7({token:y,factory:function(){return new y},providedIn:"platform"}),P})();function K(y,P){if(0==y.length)return P;if(0==P.length)return y;let Ue=0;return y.endsWith("/")&&Ue++,P.startsWith("/")&&Ue++,2==Ue?y+P.substring(1):1==Ue?y+P:y+"/"+P}function ne(y){const P=y.match(/#|\?|$/),Ue=P&&P.index||y.length;return y.slice(0,Ue-("/"===y[Ue-1]?1:0))+y.slice(Ue)}function he(y){return y&&"?"!==y[0]?"?"+y:y}let U=(()=>{var y;class P{historyGo(O){throw new Error("Not implemented")}}return(y=P).\u0275fac=function(O){return new(O||y)},y.\u0275prov=i.Yz7({token:y,factory:function(){return(0,i.f3M)($)},providedIn:"root"}),P})();const $e=new i.OlP("appBaseHref");let $=(()=>{var y;class P extends U{constructor(O,De){var et,wt,Qt;super(),this._platformLocation=O,this._removeListenerFns=[],this._baseHref=null!==(et=null!==(wt=null!=De?De:this._platformLocation.getBaseHrefFromDOM())&&void 0!==wt?wt:null===(Qt=(0,i.f3M)(W).location)||void 0===Qt?void 0:Qt.origin)&&void 0!==et?et:""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(O){this._removeListenerFns.push(this._platformLocation.onPopState(O),this._platformLocation.onHashChange(O))}getBaseHref(){return this._baseHref}prepareExternalUrl(O){return K(this._baseHref,O)}path(O=!1){const De=this._platformLocation.pathname+he(this._platformLocation.search),et=this._platformLocation.hash;return et&&O?`${De}${et}`:De}pushState(O,De,et,wt){const Qt=this.prepareExternalUrl(et+he(wt));this._platformLocation.pushState(O,De,Qt)}replaceState(O,De,et,wt){const Qt=this.prepareExternalUrl(et+he(wt));this._platformLocation.replaceState(O,De,Qt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(O=0){var De,et;null===(De=(et=this._platformLocation).historyGo)||void 0===De||De.call(et,O)}}return(y=P).\u0275fac=function(O){return new(O||y)(i.LFG(re),i.LFG($e,8))},y.\u0275prov=i.Yz7({token:y,factory:y.\u0275fac,providedIn:"root"}),P})(),ge=(()=>{var y;class P extends U{constructor(O,De){super(),this._platformLocation=O,this._baseHref="",this._removeListenerFns=[],null!=De&&(this._baseHref=De)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(O){this._removeListenerFns.push(this._platformLocation.onPopState(O),this._platformLocation.onHashChange(O))}getBaseHref(){return this._baseHref}path(O=!1){let De=this._platformLocation.hash;return null==De&&(De="#"),De.length>0?De.substring(1):De}prepareExternalUrl(O){const De=K(this._baseHref,O);return De.length>0?"#"+De:De}pushState(O,De,et,wt){let Qt=this.prepareExternalUrl(et+he(wt));0==Qt.length&&(Qt=this._platformLocation.pathname),this._platformLocation.pushState(O,De,Qt)}replaceState(O,De,et,wt){let Qt=this.prepareExternalUrl(et+he(wt));0==Qt.length&&(Qt=this._platformLocation.pathname),this._platformLocation.replaceState(O,De,Qt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(O=0){var De,et;null===(De=(et=this._platformLocation).historyGo)||void 0===De||De.call(et,O)}}return(y=P).\u0275fac=function(O){return new(O||y)(i.LFG(re),i.LFG($e,8))},y.\u0275prov=i.Yz7({token:y,factory:y.\u0275fac}),P})(),Ne=(()=>{var y;class P{constructor(O){this._subject=new i.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=O;const De=this._locationStrategy.getBaseHref();this._basePath=function X(y){if(new RegExp("^(https?:)?//").test(y)){const[,Ue]=y.split(/\/\/[^\/]+/);return Ue}return y}(ne(x(De))),this._locationStrategy.onPopState(et=>{this._subject.emit({url:this.path(!0),pop:!0,state:et.state,type:et.type})})}ngOnDestroy(){var O;null===(O=this._urlChangeSubscription)||void 0===O||O.unsubscribe(),this._urlChangeListeners=[]}path(O=!1){return this.normalize(this._locationStrategy.path(O))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(O,De=""){return this.path()==this.normalize(O+he(De))}normalize(O){return P.stripTrailingSlash(function ee(y,P){if(!y||!P.startsWith(y))return P;const Ue=P.substring(y.length);return""===Ue||["/",";","?","#"].includes(Ue[0])?Ue:P}(this._basePath,x(O)))}prepareExternalUrl(O){return O&&"/"!==O[0]&&(O="/"+O),this._locationStrategy.prepareExternalUrl(O)}go(O,De="",et=null){this._locationStrategy.pushState(et,"",O,De),this._notifyUrlChangeListeners(this.prepareExternalUrl(O+he(De)),et)}replaceState(O,De="",et=null){this._locationStrategy.replaceState(et,"",O,De),this._notifyUrlChangeListeners(this.prepareExternalUrl(O+he(De)),et)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(O=0){var De,et;null===(De=(et=this._locationStrategy).historyGo)||void 0===De||De.call(et,O)}onUrlChange(O){return this._urlChangeListeners.push(O),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(De=>{this._notifyUrlChangeListeners(De.url,De.state)})),()=>{const De=this._urlChangeListeners.indexOf(O);var et;this._urlChangeListeners.splice(De,1),0===this._urlChangeListeners.length&&(null===(et=this._urlChangeSubscription)||void 0===et||et.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(O="",De){this._urlChangeListeners.forEach(et=>et(O,De))}subscribe(O,De,et){return this._subject.subscribe({next:O,error:De,complete:et})}}return(y=P).normalizeQueryParams=he,y.joinWithSlash=K,y.stripTrailingSlash=ne,y.\u0275fac=function(O){return new(O||y)(i.LFG(U))},y.\u0275prov=i.Yz7({token:y,factory:function(){return function ie(){return new Ne((0,i.LFG)(U))}()},providedIn:"root"}),P})();function x(y){return y.replace(/\/index.html$/,"")}var te=function(y){return y[y.Format=0]="Format",y[y.Standalone=1]="Standalone",y}(te||{}),ce=function(y){return y[y.Narrow=0]="Narrow",y[y.Abbreviated=1]="Abbreviated",y[y.Wide=2]="Wide",y[y.Short=3]="Short",y}(ce||{}),Re=function(y){return y[y.Short=0]="Short",y[y.Medium=1]="Medium",y[y.Long=2]="Long",y[y.Full=3]="Full",y}(Re||{}),He=function(y){return y[y.Decimal=0]="Decimal",y[y.Group=1]="Group",y[y.List=2]="List",y[y.PercentSign=3]="PercentSign",y[y.PlusSign=4]="PlusSign",y[y.MinusSign=5]="MinusSign",y[y.Exponential=6]="Exponential",y[y.SuperscriptingExponent=7]="SuperscriptingExponent",y[y.PerMille=8]="PerMille",y[y.Infinity=9]="Infinity",y[y.NaN=10]="NaN",y[y.TimeSeparator=11]="TimeSeparator",y[y.CurrencyDecimal=12]="CurrencyDecimal",y[y.CurrencyGroup=13]="CurrencyGroup",y}(He||{});function qe(y,P){return nn((0,i.cg1)(y)[i.wAp.DateFormat],P)}function Te(y,P){return nn((0,i.cg1)(y)[i.wAp.TimeFormat],P)}function se(y,P){return nn((0,i.cg1)(y)[i.wAp.DateTimeFormat],P)}function Se(y,P){const Ue=(0,i.cg1)(y),O=Ue[i.wAp.NumberSymbols][P];if(typeof O>"u"){if(P===He.CurrencyDecimal)return Ue[i.wAp.NumberSymbols][He.Decimal];if(P===He.CurrencyGroup)return Ue[i.wAp.NumberSymbols][He.Group]}return O}function vt(y){if(!y[i.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${y[i.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function nn(y,P){for(let Ue=P;Ue>-1;Ue--)if(typeof y[Ue]<"u")return y[Ue];throw new Error("Locale data API: locale data undefined")}function gn(y){const[P,Ue]=y.split(":");return{hours:+P,minutes:+Ue}}const kn=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,tt={},z=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Ae=function(y){return y[y.Short=0]="Short",y[y.ShortGMT=1]="ShortGMT",y[y.Long=2]="Long",y[y.Extended=3]="Extended",y}(Ae||{}),F=function(y){return y[y.FullYear=0]="FullYear",y[y.Month=1]="Month",y[y.Date=2]="Date",y[y.Hours=3]="Hours",y[y.Minutes=4]="Minutes",y[y.Seconds=5]="Seconds",y[y.FractionalSeconds=6]="FractionalSeconds",y[y.Day=7]="Day",y}(F||{}),me=function(y){return y[y.DayPeriods=0]="DayPeriods",y[y.Days=1]="Days",y[y.Months=2]="Months",y[y.Eras=3]="Eras",y}(me||{});function Ye(y,P,Ue,O){let De=function gt(y){if(Ee(y))return y;if("number"==typeof y&&!isNaN(y))return new Date(y);if("string"==typeof y){if(y=y.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(y)){const[De,et=1,wt=1]=y.split("-").map(Qt=>+Qt);return St(De,et-1,wt)}const Ue=parseFloat(y);if(!isNaN(y-Ue))return new Date(Ue);let O;if(O=y.match(kn))return function ve(y){const P=new Date(0);let Ue=0,O=0;const De=y[8]?P.setUTCFullYear:P.setFullYear,et=y[8]?P.setUTCHours:P.setHours;y[9]&&(Ue=Number(y[9]+y[10]),O=Number(y[9]+y[11])),De.call(P,Number(y[1]),Number(y[2])-1,Number(y[3]));const wt=Number(y[4]||0)-Ue,Qt=Number(y[5]||0)-O,Wn=Number(y[6]||0),Zn=Math.floor(1e3*parseFloat("0."+(y[7]||0)));return et.call(P,wt,Qt,Wn,Zn),P}(O)}const P=new Date(y);if(!Ee(P))throw new Error(`Unable to convert "${y}" into a date`);return P}(y);P=Ft(Ue,P)||P;let Qt,wt=[];for(;P;){if(Qt=z.exec(P),!Qt){wt.push(P);break}{wt=wt.concat(Qt.slice(1));const $n=wt.pop();if(!$n)break;P=$n}}let Wn=De.getTimezoneOffset();O&&(Wn=mn(O,Wn),De=function Bn(y,P,Ue){const O=Ue?-1:1,De=y.getTimezoneOffset();return function Xn(y,P){return(y=new Date(y.getTime())).setMinutes(y.getMinutes()+P),y}(y,O*(mn(P,De)-De))}(De,O,!0));let Zn="";return wt.forEach($n=>{const Hn=function en(y){if(Ct[y])return Ct[y];let P;switch(y){case"G":case"GG":case"GGG":P=fn(me.Eras,ce.Abbreviated);break;case"GGGG":P=fn(me.Eras,ce.Wide);break;case"GGGGG":P=fn(me.Eras,ce.Narrow);break;case"y":P=Mt(F.FullYear,1,0,!1,!0);break;case"yy":P=Mt(F.FullYear,2,0,!0,!0);break;case"yyy":P=Mt(F.FullYear,3,0,!1,!0);break;case"yyyy":P=Mt(F.FullYear,4,0,!1,!0);break;case"Y":P=ut(1);break;case"YY":P=ut(2,!0);break;case"YYY":P=ut(3);break;case"YYYY":P=ut(4);break;case"M":case"L":P=Mt(F.Month,1,1);break;case"MM":case"LL":P=Mt(F.Month,2,1);break;case"MMM":P=fn(me.Months,ce.Abbreviated);break;case"MMMM":P=fn(me.Months,ce.Wide);break;case"MMMMM":P=fn(me.Months,ce.Narrow);break;case"LLL":P=fn(me.Months,ce.Abbreviated,te.Standalone);break;case"LLLL":P=fn(me.Months,ce.Wide,te.Standalone);break;case"LLLLL":P=fn(me.Months,ce.Narrow,te.Standalone);break;case"w":P=kt(1);break;case"ww":P=kt(2);break;case"W":P=kt(1,!0);break;case"d":P=Mt(F.Date,1);break;case"dd":P=Mt(F.Date,2);break;case"c":case"cc":P=Mt(F.Day,1);break;case"ccc":P=fn(me.Days,ce.Abbreviated,te.Standalone);break;case"cccc":P=fn(me.Days,ce.Wide,te.Standalone);break;case"ccccc":P=fn(me.Days,ce.Narrow,te.Standalone);break;case"cccccc":P=fn(me.Days,ce.Short,te.Standalone);break;case"E":case"EE":case"EEE":P=fn(me.Days,ce.Abbreviated);break;case"EEEE":P=fn(me.Days,ce.Wide);break;case"EEEEE":P=fn(me.Days,ce.Narrow);break;case"EEEEEE":P=fn(me.Days,ce.Short);break;case"a":case"aa":case"aaa":P=fn(me.DayPeriods,ce.Abbreviated);break;case"aaaa":P=fn(me.DayPeriods,ce.Wide);break;case"aaaaa":P=fn(me.DayPeriods,ce.Narrow);break;case"b":case"bb":case"bbb":P=fn(me.DayPeriods,ce.Abbreviated,te.Standalone,!0);break;case"bbbb":P=fn(me.DayPeriods,ce.Wide,te.Standalone,!0);break;case"bbbbb":P=fn(me.DayPeriods,ce.Narrow,te.Standalone,!0);break;case"B":case"BB":case"BBB":P=fn(me.DayPeriods,ce.Abbreviated,te.Format,!0);break;case"BBBB":P=fn(me.DayPeriods,ce.Wide,te.Format,!0);break;case"BBBBB":P=fn(me.DayPeriods,ce.Narrow,te.Format,!0);break;case"h":P=Mt(F.Hours,1,-12);break;case"hh":P=Mt(F.Hours,2,-12);break;case"H":P=Mt(F.Hours,1);break;case"HH":P=Mt(F.Hours,2);break;case"m":P=Mt(F.Minutes,1);break;case"mm":P=Mt(F.Minutes,2);break;case"s":P=Mt(F.Seconds,1);break;case"ss":P=Mt(F.Seconds,2);break;case"S":P=Mt(F.FractionalSeconds,1);break;case"SS":P=Mt(F.FractionalSeconds,2);break;case"SSS":P=Mt(F.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":P=En(Ae.Short);break;case"ZZZZZ":P=En(Ae.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":P=En(Ae.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":P=En(Ae.Long);break;default:return null}return Ct[y]=P,P}($n);Zn+=Hn?Hn(De,Ue,Wn):"''"===$n?"'":$n.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Zn}function St(y,P,Ue){const O=new Date(0);return O.setFullYear(y,P,Ue),O.setHours(0,0,0),O}function Ft(y,P){const Ue=function _t(y){return(0,i.cg1)(y)[i.wAp.LocaleId]}(y);if(tt[Ue]=tt[Ue]||{},tt[Ue][P])return tt[Ue][P];let O="";switch(P){case"shortDate":O=qe(y,Re.Short);break;case"mediumDate":O=qe(y,Re.Medium);break;case"longDate":O=qe(y,Re.Long);break;case"fullDate":O=qe(y,Re.Full);break;case"shortTime":O=Te(y,Re.Short);break;case"mediumTime":O=Te(y,Re.Medium);break;case"longTime":O=Te(y,Re.Long);break;case"fullTime":O=Te(y,Re.Full);break;case"short":const De=Ft(y,"shortTime"),et=Ft(y,"shortDate");O=Bt(se(y,Re.Short),[De,et]);break;case"medium":const wt=Ft(y,"mediumTime"),Qt=Ft(y,"mediumDate");O=Bt(se(y,Re.Medium),[wt,Qt]);break;case"long":const Wn=Ft(y,"longTime"),Zn=Ft(y,"longDate");O=Bt(se(y,Re.Long),[Wn,Zn]);break;case"full":const $n=Ft(y,"fullTime"),Hn=Ft(y,"fullDate");O=Bt(se(y,Re.Full),[$n,Hn])}return O&&(tt[Ue][P]=O),O}function Bt(y,P){return P&&(y=y.replace(/\{([^}]+)}/g,function(Ue,O){return null!=P&&O in P?P[O]:Ue})),y}function Wt(y,P,Ue="-",O,De){let et="";(y<0||De&&y<=0)&&(De?y=1-y:(y=-y,et=Ue));let wt=String(y);for(;wt.length0||Qt>-Ue)&&(Qt+=Ue),y===F.Hours)0===Qt&&-12===Ue&&(Qt=12);else if(y===F.FractionalSeconds)return function Xt(y,P){return Wt(y,3).substring(0,P)}(Qt,P);const Wn=Se(wt,He.MinusSign);return Wt(Qt,P,Wn,O,De)}}function fn(y,P,Ue=te.Format,O=!1){return function(De,et){return function pn(y,P,Ue,O,De,et){switch(Ue){case me.Months:return function ot(y,P,Ue){const O=(0,i.cg1)(y),et=nn([O[i.wAp.MonthsFormat],O[i.wAp.MonthsStandalone]],P);return nn(et,Ue)}(P,De,O)[y.getMonth()];case me.Days:return function yt(y,P,Ue){const O=(0,i.cg1)(y),et=nn([O[i.wAp.DaysFormat],O[i.wAp.DaysStandalone]],P);return nn(et,Ue)}(P,De,O)[y.getDay()];case me.DayPeriods:const wt=y.getHours(),Qt=y.getMinutes();if(et){const Zn=function At(y){const P=(0,i.cg1)(y);return vt(P),(P[i.wAp.ExtraData][2]||[]).map(O=>"string"==typeof O?gn(O):[gn(O[0]),gn(O[1])])}(P),$n=function Yt(y,P,Ue){const O=(0,i.cg1)(y);vt(O);const et=nn([O[i.wAp.ExtraData][0],O[i.wAp.ExtraData][1]],P)||[];return nn(et,Ue)||[]}(P,De,O),Hn=Zn.findIndex(bi=>{if(Array.isArray(bi)){const[hi,li]=bi,sr=wt>=hi.hours&&Qt>=hi.minutes,Br=wt0?Math.floor(De/60):Math.ceil(De/60);switch(y){case Ae.Short:return(De>=0?"+":"")+Wt(wt,2,et)+Wt(Math.abs(De%60),2,et);case Ae.ShortGMT:return"GMT"+(De>=0?"+":"")+Wt(wt,1,et);case Ae.Long:return"GMT"+(De>=0?"+":"")+Wt(wt,2,et)+":"+Wt(Math.abs(De%60),2,et);case Ae.Extended:return 0===O?"Z":(De>=0?"+":"")+Wt(wt,2,et)+":"+Wt(Math.abs(De%60),2,et);default:throw new Error(`Unknown zone width "${y}"`)}}}const un=0,Kn=4;function Nt(y){return St(y.getFullYear(),y.getMonth(),y.getDate()+(Kn-y.getDay()))}function kt(y,P=!1){return function(Ue,O){let De;if(P){const et=new Date(Ue.getFullYear(),Ue.getMonth(),1).getDay()-1,wt=Ue.getDate();De=1+Math.floor((wt+et)/7)}else{const et=Nt(Ue),wt=function mt(y){const P=St(y,un,1).getDay();return St(y,0,1+(P<=Kn?Kn:Kn+7)-P)}(et.getFullYear()),Qt=et.getTime()-wt.getTime();De=1+Math.round(Qt/6048e5)}return Wt(De,y,Se(O,He.MinusSign))}}function ut(y,P=!1){return function(Ue,O){return Wt(Nt(Ue).getFullYear(),y,Se(O,He.MinusSign),P)}}const Ct={};function mn(y,P){y=y.replace(/:/g,"");const Ue=Date.parse("Jan 01, 1970 00:00:00 "+y)/6e4;return isNaN(Ue)?P:Ue}function Ee(y){return y instanceof Date&&!isNaN(y.valueOf())}function ei(y,P){P=encodeURIComponent(P);for(const Ue of y.split(";")){const O=Ue.indexOf("="),[De,et]=-1==O?[Ue,""]:[Ue.slice(0,O),Ue.slice(O+1)];if(De.trim()===P)return decodeURIComponent(et)}return null}const $i=/\s+/,Ii=[];let qn=(()=>{var y;class P{constructor(O,De,et,wt){this._iterableDiffers=O,this._keyValueDiffers=De,this._ngEl=et,this._renderer=wt,this.initialClasses=Ii,this.stateMap=new Map}set klass(O){this.initialClasses=null!=O?O.trim().split($i):Ii}set ngClass(O){this.rawClass="string"==typeof O?O.trim().split($i):O}ngDoCheck(){for(const De of this.initialClasses)this._updateState(De,!0);const O=this.rawClass;if(Array.isArray(O)||O instanceof Set)for(const De of O)this._updateState(De,!0);else if(null!=O)for(const De of Object.keys(O))this._updateState(De,!!O[De]);this._applyStateDiff()}_updateState(O,De){const et=this.stateMap.get(O);void 0!==et?(et.enabled!==De&&(et.changed=!0,et.enabled=De),et.touched=!0):this.stateMap.set(O,{enabled:De,changed:!0,touched:!0})}_applyStateDiff(){for(const O of this.stateMap){const De=O[0],et=O[1];et.changed?(this._toggleClass(De,et.enabled),et.changed=!1):et.touched||(et.enabled&&this._toggleClass(De,!1),this.stateMap.delete(De)),et.touched=!1}}_toggleClass(O,De){(O=O.trim()).length>0&&O.split($i).forEach(et=>{De?this._renderer.addClass(this._ngEl.nativeElement,et):this._renderer.removeClass(this._ngEl.nativeElement,et)})}}return(y=P).\u0275fac=function(O){return new(O||y)(i.Y36(i.ZZ4),i.Y36(i.aQg),i.Y36(i.SBq),i.Y36(i.Qsj))},y.\u0275dir=i.lG2({type:y,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),P})();class Wi{constructor(P,Ue,O,De){this.$implicit=P,this.ngForOf=Ue,this.index=O,this.count=De}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Ze=(()=>{var y;class P{set ngForOf(O){this._ngForOf=O,this._ngForOfDirty=!0}set ngForTrackBy(O){this._trackByFn=O}get ngForTrackBy(){return this._trackByFn}constructor(O,De,et){this._viewContainer=O,this._template=De,this._differs=et,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(O){O&&(this._template=O)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const O=this._ngForOf;!this._differ&&O&&(this._differ=this._differs.find(O).create(this.ngForTrackBy))}if(this._differ){const O=this._differ.diff(this._ngForOf);O&&this._applyChanges(O)}}_applyChanges(O){const De=this._viewContainer;O.forEachOperation((et,wt,Qt)=>{if(null==et.previousIndex)De.createEmbeddedView(this._template,new Wi(et.item,this._ngForOf,-1,-1),null===Qt?void 0:Qt);else if(null==Qt)De.remove(null===wt?void 0:wt);else if(null!==wt){const Wn=De.get(wt);De.move(Wn,Qt),Dt(Wn,et)}});for(let et=0,wt=De.length;et{Dt(De.get(et.currentIndex),et)})}static ngTemplateContextGuard(O,De){return!0}}return(y=P).\u0275fac=function(O){return new(O||y)(i.Y36(i.s_b),i.Y36(i.Rgc),i.Y36(i.ZZ4))},y.\u0275dir=i.lG2({type:y,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),P})();function Dt(y,P){y.context.$implicit=P.item}let E=(()=>{var y;class P{constructor(O,De){this._viewContainer=O,this._context=new j,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=De}set ngIf(O){this._context.$implicit=this._context.ngIf=O,this._updateView()}set ngIfThen(O){fe("ngIfThen",O),this._thenTemplateRef=O,this._thenViewRef=null,this._updateView()}set ngIfElse(O){fe("ngIfElse",O),this._elseTemplateRef=O,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(O,De){return!0}}return(y=P).\u0275fac=function(O){return new(O||y)(i.Y36(i.s_b),i.Y36(i.Rgc))},y.\u0275dir=i.lG2({type:y,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),P})();class j{constructor(){this.$implicit=null,this.ngIf=null}}function fe(y,P){if(P&&!P.createEmbeddedView)throw new Error(`${y} must be a TemplateRef, but received '${(0,i.AaK)(P)}'.`)}class Ge{constructor(P,Ue){this._viewContainerRef=P,this._templateRef=Ue,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(P){P&&!this._created?this.create():!P&&this._created&&this.destroy()}}let Ot=(()=>{var y;class P{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(O){this._ngSwitch=O,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(O){this._defaultViews.push(O)}_matchCase(O){const De=O==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||De,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),De}_updateDefaultCases(O){if(this._defaultViews.length>0&&O!==this._defaultUsed){this._defaultUsed=O;for(const De of this._defaultViews)De.enforceState(O)}}}return(y=P).\u0275fac=function(O){return new(O||y)},y.\u0275dir=i.lG2({type:y,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),P})(),hn=(()=>{var y;class P{constructor(O,De,et){this.ngSwitch=et,et._addCase(),this._view=new Ge(O,De)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return(y=P).\u0275fac=function(O){return new(O||y)(i.Y36(i.s_b),i.Y36(i.Rgc),i.Y36(Ot,9))},y.\u0275dir=i.lG2({type:y,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),P})(),ai=(()=>{var y;class P{constructor(O,De,et){et._addDefault(new Ge(O,De))}}return(y=P).\u0275fac=function(O){return new(O||y)(i.Y36(i.s_b),i.Y36(i.Rgc),i.Y36(Ot,9))},y.\u0275dir=i.lG2({type:y,selectors:[["","ngSwitchDefault",""]],standalone:!0}),P})(),S=(()=>{var y;class P{constructor(O,De,et){this._ngEl=O,this._differs=De,this._renderer=et,this._ngStyle=null,this._differ=null}set ngStyle(O){this._ngStyle=O,!this._differ&&O&&(this._differ=this._differs.find(O).create())}ngDoCheck(){if(this._differ){const O=this._differ.diff(this._ngStyle);O&&this._applyChanges(O)}}_setStyle(O,De){const[et,wt]=O.split("."),Qt=-1===et.indexOf("-")?void 0:i.JOm.DashCase;null!=De?this._renderer.setStyle(this._ngEl.nativeElement,et,wt?`${De}${wt}`:De,Qt):this._renderer.removeStyle(this._ngEl.nativeElement,et,Qt)}_applyChanges(O){O.forEachRemovedItem(De=>this._setStyle(De.key,null)),O.forEachAddedItem(De=>this._setStyle(De.key,De.currentValue)),O.forEachChangedItem(De=>this._setStyle(De.key,De.currentValue))}}return(y=P).\u0275fac=function(O){return new(O||y)(i.Y36(i.SBq),i.Y36(i.aQg),i.Y36(i.Qsj))},y.\u0275dir=i.lG2({type:y,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),P})(),Z=(()=>{var y;class P{constructor(O){this._viewContainerRef=O,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(O){if(O.ngTemplateOutlet||O.ngTemplateOutletInjector){const De=this._viewContainerRef;if(this._viewRef&&De.remove(De.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:et,ngTemplateOutletContext:wt,ngTemplateOutletInjector:Qt}=this;this._viewRef=De.createEmbeddedView(et,wt,Qt?{injector:Qt}:void 0)}else this._viewRef=null}else this._viewRef&&O.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return(y=P).\u0275fac=function(O){return new(O||y)(i.Y36(i.s_b))},y.\u0275dir=i.lG2({type:y,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[i.TTD]}),P})();function rt(y,P){return new i.vHH(2100,!1)}class Rt{createSubscription(P,Ue){return(0,i.rg0)(()=>P.subscribe({next:Ue,error:O=>{throw O}}))}dispose(P){(0,i.rg0)(()=>P.unsubscribe())}}class tn{createSubscription(P,Ue){return P.then(Ue,O=>{throw O})}dispose(P){}}const Kt=new tn,Jt=new Rt;let Ht=(()=>{var y;class P{constructor(O){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=O}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(O){return this._obj?O!==this._obj?(this._dispose(),this.transform(O)):this._latestValue:(O&&this._subscribe(O),this._latestValue)}_subscribe(O){this._obj=O,this._strategy=this._selectStrategy(O),this._subscription=this._strategy.createSubscription(O,De=>this._updateLatestValue(O,De))}_selectStrategy(O){if((0,i.QGY)(O))return Kt;if((0,i.F4k)(O))return Jt;throw rt()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(O,De){O===this._obj&&(this._latestValue=De,this._ref.markForCheck())}}return(y=P).\u0275fac=function(O){return new(O||y)(i.Y36(i.sBO,16))},y.\u0275pipe=i.Yjl({name:"async",type:y,pure:!1,standalone:!0}),P})();const bn=new i.OlP("DATE_PIPE_DEFAULT_TIMEZONE"),mi=new i.OlP("DATE_PIPE_DEFAULT_OPTIONS");let Si=(()=>{var y;class P{constructor(O,De,et){this.locale=O,this.defaultTimezone=De,this.defaultOptions=et}transform(O,De,et,wt){if(null==O||""===O||O!=O)return null;try{var Qt,Wn,Zn,$n,Hn;const bi=null!==(Qt=null!=De?De:null===(Wn=this.defaultOptions)||void 0===Wn?void 0:Wn.dateFormat)&&void 0!==Qt?Qt:"mediumDate",hi=null!==(Zn=null!==($n=null!=et?et:null===(Hn=this.defaultOptions)||void 0===Hn?void 0:Hn.timezone)&&void 0!==$n?$n:this.defaultTimezone)&&void 0!==Zn?Zn:void 0;return Ye(O,bi,wt||this.locale,hi)}catch(bi){throw rt()}}}return(y=P).\u0275fac=function(O){return new(O||y)(i.Y36(i.soG,16),i.Y36(bn,24),i.Y36(mi,24))},y.\u0275pipe=i.Yjl({name:"date",type:y,pure:!0,standalone:!0}),P})(),Cr=(()=>{var y;class P{constructor(O){this.differs=O,this.keyValues=[],this.compareFn=ti}transform(O,De=ti){if(!O||!(O instanceof Map)&&"object"!=typeof O)return null;this.differ||(this.differ=this.differs.find(O).create());const et=this.differ.diff(O),wt=De!==this.compareFn;return et&&(this.keyValues=[],et.forEachItem(Qt=>{this.keyValues.push(function ds(y,P){return{key:y,value:P}}(Qt.key,Qt.currentValue))})),(et||wt)&&(this.keyValues.sort(De),this.compareFn=De),this.keyValues}}return(y=P).\u0275fac=function(O){return new(O||y)(i.Y36(i.aQg,16))},y.\u0275pipe=i.Yjl({name:"keyvalue",type:y,pure:!1,standalone:!0}),P})();function ti(y,P){const Ue=y.key,O=P.key;if(Ue===O)return 0;if(void 0===Ue)return 1;if(void 0===O)return-1;if(null===Ue)return 1;if(null===O)return-1;if("string"==typeof Ue&&"string"==typeof O)return Ue{var y;class P{transform(O,De,et){if(null==O)return null;if(!this.supports(O))throw rt();return O.slice(De,et)}supports(O){return"string"==typeof O||Array.isArray(O)}}return(y=P).\u0275fac=function(O){return new(O||y)},y.\u0275pipe=i.Yjl({name:"slice",type:y,pure:!1,standalone:!0}),P})(),vi=(()=>{var y;class P{}return(y=P).\u0275fac=function(O){return new(O||y)},y.\u0275mod=i.oAB({type:y}),y.\u0275inj=i.cJS({}),P})();const nr="browser",Fr="server";function Nr(y){return y===nr}function hr(y){return y===Fr}let fr=(()=>{var y;class P{}return(y=P).\u0275prov=(0,i.Yz7)({token:y,providedIn:"root",factory:()=>new Tr((0,i.LFG)(W),window)}),P})();class Tr{constructor(P,Ue){this.document=P,this.window=Ue,this.offset=()=>[0,0]}setOffset(P){this.offset=Array.isArray(P)?()=>P:P}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(P){this.supportsScrolling()&&this.window.scrollTo(P[0],P[1])}scrollToAnchor(P){if(!this.supportsScrolling())return;const Ue=function Qr(y,P){const Ue=y.getElementById(P)||y.getElementsByName(P)[0];if(Ue)return Ue;if("function"==typeof y.createTreeWalker&&y.body&&"function"==typeof y.body.attachShadow){const O=y.createTreeWalker(y.body,NodeFilter.SHOW_ELEMENT);let De=O.currentNode;for(;De;){const et=De.shadowRoot;if(et){const wt=et.getElementById(P)||et.querySelector(`[name="${P}"]`);if(wt)return wt}De=O.nextNode()}}return null}(this.document,P);Ue&&(this.scrollToElement(Ue),Ue.focus())}setHistoryScrollRestoration(P){this.supportsScrolling()&&(this.window.history.scrollRestoration=P)}scrollToElement(P){const Ue=P.getBoundingClientRect(),O=Ue.left+this.window.pageXOffset,De=Ue.top+this.window.pageYOffset,et=this.offset();this.window.scrollTo(O-et[0],De-et[1])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}class ir{}},9862:(xt,Ke,p)=>{"use strict";p.d(Ke,{JF:()=>de,LE:()=>X,TP:()=>vt,UA:()=>st,WM:()=>U,eN:()=>Q});var i=p(5879),s=p(9193),m=p(5253),L=p(4699),f=p(9724),W=p(7734),re=p(6124),q=p(1541),ae=p(5222),K=p(6814);class ne{}class he{}class U{constructor(k){this.normalizedNames=new Map,this.lazyUpdate=null,k?"string"==typeof k?this.lazyInit=()=>{this.headers=new Map,k.split("\n").forEach(Oe=>{const Qe=Oe.indexOf(":");if(Qe>0){const pt=Oe.slice(0,Qe),Et=pt.toLowerCase(),Gt=Oe.slice(Qe+1).trim();this.maybeSetNormalizedName(pt,Et),this.headers.has(Et)?this.headers.get(Et).push(Gt):this.headers.set(Et,[Gt])}})}:typeof Headers<"u"&&k instanceof Headers?(this.headers=new Map,k.forEach((Oe,Qe)=>{this.setHeaderEntries(Qe,Oe)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(k).forEach(([Oe,Qe])=>{this.setHeaderEntries(Oe,Qe)})}:this.headers=new Map}has(k){return this.init(),this.headers.has(k.toLowerCase())}get(k){this.init();const Oe=this.headers.get(k.toLowerCase());return Oe&&Oe.length>0?Oe[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(k){return this.init(),this.headers.get(k.toLowerCase())||null}append(k,Oe){return this.clone({name:k,value:Oe,op:"a"})}set(k,Oe){return this.clone({name:k,value:Oe,op:"s"})}delete(k,Oe){return this.clone({name:k,value:Oe,op:"d"})}maybeSetNormalizedName(k,Oe){this.normalizedNames.has(Oe)||this.normalizedNames.set(Oe,k)}init(){this.lazyInit&&(this.lazyInit instanceof U?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(k=>this.applyUpdate(k)),this.lazyUpdate=null))}copyFrom(k){k.init(),Array.from(k.headers.keys()).forEach(Oe=>{this.headers.set(Oe,k.headers.get(Oe)),this.normalizedNames.set(Oe,k.normalizedNames.get(Oe))})}clone(k){const Oe=new U;return Oe.lazyInit=this.lazyInit&&this.lazyInit instanceof U?this.lazyInit:this,Oe.lazyUpdate=(this.lazyUpdate||[]).concat([k]),Oe}applyUpdate(k){const Oe=k.name.toLowerCase();switch(k.op){case"a":case"s":let Qe=k.value;if("string"==typeof Qe&&(Qe=[Qe]),0===Qe.length)return;this.maybeSetNormalizedName(k.name,Oe);const pt=("a"===k.op?this.headers.get(Oe):void 0)||[];pt.push(...Qe),this.headers.set(Oe,pt);break;case"d":const Et=k.value;if(Et){let Gt=this.headers.get(Oe);if(!Gt)return;Gt=Gt.filter(Pt=>-1===Et.indexOf(Pt)),0===Gt.length?(this.headers.delete(Oe),this.normalizedNames.delete(Oe)):this.headers.set(Oe,Gt)}else this.headers.delete(Oe),this.normalizedNames.delete(Oe)}}setHeaderEntries(k,Oe){const Qe=(Array.isArray(Oe)?Oe:[Oe]).map(Et=>Et.toString()),pt=k.toLowerCase();this.headers.set(pt,Qe),this.maybeSetNormalizedName(k,pt)}forEach(k){this.init(),Array.from(this.normalizedNames.keys()).forEach(Oe=>k(this.normalizedNames.get(Oe),this.headers.get(Oe)))}}class ${encodeKey(k){return ee(k)}encodeValue(k){return ee(k)}decodeKey(k){return decodeURIComponent(k)}decodeValue(k){return decodeURIComponent(k)}}const Ne=/%(\d[a-f0-9])/gi,ie={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function ee(I){return encodeURIComponent(I).replace(Ne,(k,Oe)=>{var Qe;return null!==(Qe=ie[Oe])&&void 0!==Qe?Qe:k})}function x(I){return`${I}`}class X{constructor(k={}){if(this.updates=null,this.cloneFrom=null,this.encoder=k.encoder||new $,k.fromString){if(k.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function ge(I,k){const Oe=new Map;return I.length>0&&I.replace(/^\?/,"").split("&").forEach(pt=>{const Et=pt.indexOf("="),[Gt,Pt]=-1==Et?[k.decodeKey(pt),""]:[k.decodeKey(pt.slice(0,Et)),k.decodeValue(pt.slice(Et+1))],Vn=Oe.get(Gt)||[];Vn.push(Pt),Oe.set(Gt,Vn)}),Oe}(k.fromString,this.encoder)}else k.fromObject?(this.map=new Map,Object.keys(k.fromObject).forEach(Oe=>{const Qe=k.fromObject[Oe],pt=Array.isArray(Qe)?Qe.map(x):[x(Qe)];this.map.set(Oe,pt)})):this.map=null}has(k){return this.init(),this.map.has(k)}get(k){this.init();const Oe=this.map.get(k);return Oe?Oe[0]:null}getAll(k){return this.init(),this.map.get(k)||null}keys(){return this.init(),Array.from(this.map.keys())}append(k,Oe){return this.clone({param:k,value:Oe,op:"a"})}appendAll(k){const Oe=[];return Object.keys(k).forEach(Qe=>{const pt=k[Qe];Array.isArray(pt)?pt.forEach(Et=>{Oe.push({param:Qe,value:Et,op:"a"})}):Oe.push({param:Qe,value:pt,op:"a"})}),this.clone(Oe)}set(k,Oe){return this.clone({param:k,value:Oe,op:"s"})}delete(k,Oe){return this.clone({param:k,value:Oe,op:"d"})}toString(){return this.init(),this.keys().map(k=>{const Oe=this.encoder.encodeKey(k);return this.map.get(k).map(Qe=>Oe+"="+this.encoder.encodeValue(Qe)).join("&")}).filter(k=>""!==k).join("&")}clone(k){const Oe=new X({encoder:this.encoder});return Oe.cloneFrom=this.cloneFrom||this,Oe.updates=(this.updates||[]).concat(k),Oe}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(k=>this.map.set(k,this.cloneFrom.map.get(k))),this.updates.forEach(k=>{switch(k.op){case"a":case"s":const Oe=("a"===k.op?this.map.get(k.param):void 0)||[];Oe.push(x(k.value)),this.map.set(k.param,Oe);break;case"d":if(void 0===k.value){this.map.delete(k.param);break}{let Qe=this.map.get(k.param)||[];const pt=Qe.indexOf(x(k.value));-1!==pt&&Qe.splice(pt,1),Qe.length>0?this.map.set(k.param,Qe):this.map.delete(k.param)}}}),this.cloneFrom=this.updates=null)}}class we{constructor(){this.map=new Map}set(k,Oe){return this.map.set(k,Oe),this}get(k){return this.map.has(k)||this.map.set(k,k.defaultValue()),this.map.get(k)}delete(k){return this.map.delete(k),this}has(k){return this.map.has(k)}keys(){return this.map.keys()}}function te(I){return typeof ArrayBuffer<"u"&&I instanceof ArrayBuffer}function ce(I){return typeof Blob<"u"&&I instanceof Blob}function Re(I){return typeof FormData<"u"&&I instanceof FormData}class nt{constructor(k,Oe,Qe,pt){let Et;if(this.url=Oe,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=k.toUpperCase(),function Ie(I){switch(I){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||pt?(this.body=void 0!==Qe?Qe:null,Et=pt):Et=Qe,Et&&(this.reportProgress=!!Et.reportProgress,this.withCredentials=!!Et.withCredentials,Et.responseType&&(this.responseType=Et.responseType),Et.headers&&(this.headers=Et.headers),Et.context&&(this.context=Et.context),Et.params&&(this.params=Et.params)),this.headers||(this.headers=new U),this.context||(this.context=new we),this.params){const Gt=this.params.toString();if(0===Gt.length)this.urlWithParams=Oe;else{const Pt=Oe.indexOf("?");this.urlWithParams=Oe+(-1===Pt?"?":Ptri.set(ei,k.setHeaders[ei]),Tn)),k.setParams&&(Qn=Object.keys(k.setParams).reduce((ri,ei)=>ri.set(ei,k.setParams[ei]),Qn)),new nt(Qe,pt,Gt,{params:Qn,headers:Tn,context:xi,reportProgress:Vn,responseType:Et,withCredentials:Pt})}}var _t=function(I){return I[I.Sent=0]="Sent",I[I.UploadProgress=1]="UploadProgress",I[I.ResponseHeader=2]="ResponseHeader",I[I.DownloadProgress=3]="DownloadProgress",I[I.Response=4]="Response",I[I.User=5]="User",I}(_t||{});class dt{constructor(k,Oe=200,Qe="OK"){this.headers=k.headers||new U,this.status=void 0!==k.status?k.status:Oe,this.statusText=k.statusText||Qe,this.url=k.url||null,this.ok=this.status>=200&&this.status<300}}class yt extends dt{constructor(k={}){super(k),this.type=_t.ResponseHeader}clone(k={}){return new yt({headers:k.headers||this.headers,status:void 0!==k.status?k.status:this.status,statusText:k.statusText||this.statusText,url:k.url||this.url||void 0})}}class ot extends dt{constructor(k={}){super(k),this.type=_t.Response,this.body=void 0!==k.body?k.body:null}clone(k={}){return new ot({body:void 0!==k.body?k.body:this.body,headers:k.headers||this.headers,status:void 0!==k.status?k.status:this.status,statusText:k.statusText||this.statusText,url:k.url||this.url||void 0})}}class st extends dt{constructor(k){super(k,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${k.url||"(unknown url)"}`:`Http failure response for ${k.url||"(unknown url)"}: ${k.status} ${k.statusText}`,this.error=k.error||null}}function _e(I,k){return{body:k,headers:I.headers,context:I.context,observe:I.observe,params:I.params,reportProgress:I.reportProgress,responseType:I.responseType,withCredentials:I.withCredentials}}let Q=(()=>{var I;class k{constructor(Qe){this.handler=Qe}request(Qe,pt,Et={}){let Gt;if(Qe instanceof nt)Gt=Qe;else{let Tn,Qn;Tn=Et.headers instanceof U?Et.headers:new U(Et.headers),Et.params&&(Qn=Et.params instanceof X?Et.params:new X({fromObject:Et.params})),Gt=new nt(Qe,pt,void 0!==Et.body?Et.body:null,{headers:Tn,context:Et.context,params:Qn,reportProgress:Et.reportProgress,responseType:Et.responseType||"json",withCredentials:Et.withCredentials})}const Pt=(0,s.of)(Gt).pipe((0,f.b)(Tn=>this.handler.handle(Tn)));if(Qe instanceof nt||"events"===Et.observe)return Pt;const Vn=Pt.pipe((0,W.h)(Tn=>Tn instanceof ot));switch(Et.observe||"body"){case"body":switch(Gt.responseType){case"arraybuffer":return Vn.pipe((0,re.U)(Tn=>{if(null!==Tn.body&&!(Tn.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Tn.body}));case"blob":return Vn.pipe((0,re.U)(Tn=>{if(null!==Tn.body&&!(Tn.body instanceof Blob))throw new Error("Response is not a Blob.");return Tn.body}));case"text":return Vn.pipe((0,re.U)(Tn=>{if(null!==Tn.body&&"string"!=typeof Tn.body)throw new Error("Response is not a string.");return Tn.body}));default:return Vn.pipe((0,re.U)(Tn=>Tn.body))}case"response":return Vn;default:throw new Error(`Unreachable: unhandled observe type ${Et.observe}}`)}}delete(Qe,pt={}){return this.request("DELETE",Qe,pt)}get(Qe,pt={}){return this.request("GET",Qe,pt)}head(Qe,pt={}){return this.request("HEAD",Qe,pt)}jsonp(Qe,pt){return this.request("JSONP",Qe,{params:(new X).append(pt,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Qe,pt={}){return this.request("OPTIONS",Qe,pt)}patch(Qe,pt,Et={}){return this.request("PATCH",Qe,_e(Et,pt))}post(Qe,pt,Et={}){return this.request("POST",Qe,_e(Et,pt))}put(Qe,pt,Et={}){return this.request("PUT",Qe,_e(Et,pt))}}return(I=k).\u0275fac=function(Qe){return new(Qe||I)(i.LFG(ne))},I.\u0275prov=i.Yz7({token:I,factory:I.\u0275fac}),k})();function Fe(I,k){return k(I)}function Je(I,k){return(Oe,Qe)=>k.intercept(Oe,{handle:pt=>I(pt,Qe)})}const vt=new i.OlP(""),At=new i.OlP(""),Yt=new i.OlP("");function on(){let I=null;return(k,Oe)=>{var Qe;null===I&&(I=(null!==(Qe=(0,i.f3M)(vt,{optional:!0}))&&void 0!==Qe?Qe:[]).reduceRight(Je,Fe));const pt=(0,i.f3M)(i.HDt),Et=pt.add();return I(k,Oe).pipe((0,q.x)(()=>pt.remove(Et)))}}let nn=(()=>{var I;class k extends ne{constructor(Qe,pt){super(),this.backend=Qe,this.injector=pt,this.chain=null,this.pendingTasks=(0,i.f3M)(i.HDt)}handle(Qe){if(null===this.chain){const Et=Array.from(new Set([...this.injector.get(At),...this.injector.get(Yt,[])]));this.chain=Et.reduceRight((Gt,Pt)=>function ht(I,k,Oe){return(Qe,pt)=>Oe.runInContext(()=>k(Qe,Et=>I(Et,pt)))}(Gt,Pt,this.injector),Fe)}const pt=this.pendingTasks.add();return this.chain(Qe,Et=>this.backend.handle(Et)).pipe((0,q.x)(()=>this.pendingTasks.remove(pt)))}}return(I=k).\u0275fac=function(Qe){return new(Qe||I)(i.LFG(he),i.LFG(i.lqb))},I.\u0275prov=i.Yz7({token:I,factory:I.\u0275fac}),k})();const St=/^\)\]\}',?\n/;let Bt=(()=>{var I;class k{constructor(Qe){this.xhrFactory=Qe}handle(Qe){if("JSONP"===Qe.method)throw new i.vHH(-2800,!1);const pt=this.xhrFactory;return(pt.\u0275loadImpl?(0,m.D)(pt.\u0275loadImpl()):(0,s.of)(null)).pipe((0,ae.w)(()=>new L.y(Gt=>{const Pt=pt.build();if(Pt.open(Qe.method,Qe.urlWithParams),Qe.withCredentials&&(Pt.withCredentials=!0),Qe.headers.forEach((qn,di)=>Pt.setRequestHeader(qn,di.join(","))),Qe.headers.has("Accept")||Pt.setRequestHeader("Accept","application/json, text/plain, */*"),!Qe.headers.has("Content-Type")){const qn=Qe.detectContentTypeHeader();null!==qn&&Pt.setRequestHeader("Content-Type",qn)}if(Qe.responseType){const qn=Qe.responseType.toLowerCase();Pt.responseType="json"!==qn?qn:"text"}const Vn=Qe.serializeBody();let Tn=null;const Qn=()=>{if(null!==Tn)return Tn;const qn=Pt.statusText||"OK",di=new U(Pt.getAllResponseHeaders()),Oi=function Ft(I){return"responseURL"in I&&I.responseURL?I.responseURL:/^X-Request-URL:/m.test(I.getAllResponseHeaders())?I.getResponseHeader("X-Request-URL"):null}(Pt)||Qe.url;return Tn=new yt({headers:di,status:Pt.status,statusText:qn,url:Oi}),Tn},xi=()=>{let{headers:qn,status:di,statusText:Oi,url:Wi}=Qn(),Ze=null;204!==di&&(Ze=typeof Pt.response>"u"?Pt.responseText:Pt.response),0===di&&(di=Ze?200:0);let Dt=di>=200&&di<300;if("json"===Qe.responseType&&"string"==typeof Ze){const it=Ze;Ze=Ze.replace(St,"");try{Ze=""!==Ze?JSON.parse(Ze):null}catch(E){Ze=it,Dt&&(Dt=!1,Ze={error:E,text:Ze})}}Dt?(Gt.next(new ot({body:Ze,headers:qn,status:di,statusText:Oi,url:Wi||void 0})),Gt.complete()):Gt.error(new st({error:Ze,headers:qn,status:di,statusText:Oi,url:Wi||void 0}))},ri=qn=>{const{url:di}=Qn(),Oi=new st({error:qn,status:Pt.status||0,statusText:Pt.statusText||"Unknown Error",url:di||void 0});Gt.error(Oi)};let ei=!1;const $i=qn=>{ei||(Gt.next(Qn()),ei=!0);let di={type:_t.DownloadProgress,loaded:qn.loaded};qn.lengthComputable&&(di.total=qn.total),"text"===Qe.responseType&&Pt.responseText&&(di.partialText=Pt.responseText),Gt.next(di)},Ii=qn=>{let di={type:_t.UploadProgress,loaded:qn.loaded};qn.lengthComputable&&(di.total=qn.total),Gt.next(di)};return Pt.addEventListener("load",xi),Pt.addEventListener("error",ri),Pt.addEventListener("timeout",ri),Pt.addEventListener("abort",ri),Qe.reportProgress&&(Pt.addEventListener("progress",$i),null!==Vn&&Pt.upload&&Pt.upload.addEventListener("progress",Ii)),Pt.send(Vn),Gt.next({type:_t.Sent}),()=>{Pt.removeEventListener("error",ri),Pt.removeEventListener("abort",ri),Pt.removeEventListener("load",xi),Pt.removeEventListener("timeout",ri),Qe.reportProgress&&(Pt.removeEventListener("progress",$i),null!==Vn&&Pt.upload&&Pt.upload.removeEventListener("progress",Ii)),Pt.readyState!==Pt.DONE&&Pt.abort()}})))}}return(I=k).\u0275fac=function(Qe){return new(Qe||I)(i.LFG(K.JF))},I.\u0275prov=i.Yz7({token:I,factory:I.\u0275fac}),k})();const Wt=new i.OlP("XSRF_ENABLED"),Mt=new i.OlP("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),fn=new i.OlP("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class pn{}let En=(()=>{var I;class k{constructor(Qe,pt,Et){this.doc=Qe,this.platform=pt,this.cookieName=Et,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Qe=this.doc.cookie||"";return Qe!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,K.Mx)(Qe,this.cookieName),this.lastCookieString=Qe),this.lastToken}}return(I=k).\u0275fac=function(Qe){return new(Qe||I)(i.LFG(K.K0),i.LFG(i.Lbi),i.LFG(Mt))},I.\u0275prov=i.Yz7({token:I,factory:I.\u0275fac}),k})();function un(I,k){const Oe=I.url.toLowerCase();if(!(0,i.f3M)(Wt)||"GET"===I.method||"HEAD"===I.method||Oe.startsWith("http://")||Oe.startsWith("https://"))return k(I);const Qe=(0,i.f3M)(pn).getToken(),pt=(0,i.f3M)(fn);return null!=Qe&&!I.headers.has(pt)&&(I=I.clone({headers:I.headers.set(pt,Qe)})),k(I)}var mt=function(I){return I[I.Interceptors=0]="Interceptors",I[I.LegacyInterceptors=1]="LegacyInterceptors",I[I.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",I[I.NoXsrfProtection=3]="NoXsrfProtection",I[I.JsonpSupport=4]="JsonpSupport",I[I.RequestsMadeViaParent=5]="RequestsMadeViaParent",I[I.Fetch=6]="Fetch",I}(mt||{});function Nt(I,k){return{\u0275kind:I,\u0275providers:k}}function kt(...I){const k=[Q,Bt,nn,{provide:ne,useExisting:nn},{provide:he,useExisting:Bt},{provide:At,useValue:un,multi:!0},{provide:Wt,useValue:!0},{provide:pn,useClass:En}];for(const Oe of I)k.push(...Oe.\u0275providers);return(0,i.MR2)(k)}const Ct=new i.OlP("LEGACY_INTERCEPTOR_FN");let de=(()=>{var I;class k{}return(I=k).\u0275fac=function(Qe){return new(Qe||I)},I.\u0275mod=i.oAB({type:I}),I.\u0275inj=i.cJS({providers:[kt(Nt(mt.LegacyInterceptors,[{provide:Ct,useFactory:on},{provide:At,useExisting:Ct,multi:!0}]))]}),k})()},5879:(xt,Ke,p)=>{"use strict";p.d(Ke,{$8M:()=>Qs,$WT:()=>Si,$Z:()=>kp,AFp:()=>np,ALo:()=>E_,AaK:()=>he,AsE:()=>oh,BQk:()=>rd,CHM:()=>Yo,CRH:()=>V_,DdM:()=>c_,DjV:()=>pg,Dn7:()=>T_,DyG:()=>Qh,EJc:()=>LT,EiD:()=>Gf,EpF:()=>xm,F$t:()=>Nm,F4k:()=>Om,FYo:()=>cp,FiY:()=>mc,G48:()=>_A,Gf:()=>k_,GfV:()=>dp,GkF:()=>Wu,Gpc:()=>$,Gre:()=>hg,HDt:()=>lv,Hsn:()=>Lm,Ikx:()=>lh,JOm:()=>Cc,JVY:()=>Xb,JZr:()=>x,Jf7:()=>Dp,KtG:()=>fa,L6k:()=>ey,LAX:()=>ny,LFG:()=>le,LSH:()=>eu,Lbi:()=>cu,Lck:()=>OC,MAs:()=>Sm,MGl:()=>sd,MMx:()=>t_,MR2:()=>nu,MT6:()=>fg,NdJ:()=>Qu,O4$:()=>er,Ojb:()=>xy,OlP:()=>Ei,Oqu:()=>sh,P3R:()=>Kf,PXZ:()=>cA,Q6J:()=>zu,QGY:()=>Ku,QbO:()=>My,Qsj:()=>zy,R0b:()=>Dr,RDi:()=>$b,Rgc:()=>ic,SBq:()=>Bl,Sil:()=>VT,Suo:()=>B_,TTD:()=>$n,TgZ:()=>td,Tol:()=>qm,Udp:()=>nh,VKq:()=>d_,VuI:()=>GA,W1O:()=>Y_,WFA:()=>Zu,WLB:()=>u_,XFs:()=>Ae,Xpm:()=>Rt,Xq5:()=>dm,Xts:()=>Pl,Y36:()=>ja,YKP:()=>Xg,YNc:()=>Cm,Yjl:()=>zn,Yz7:()=>vt,Z0I:()=>nn,ZZ4:()=>jh,_Bn:()=>Jg,_UZ:()=>$u,_Vd:()=>kl,_c5:()=>PA,_uU:()=>rg,aQg:()=>Yh,c2e:()=>av,cJS:()=>Yt,cg1:()=>dh,d8E:()=>ch,dDg:()=>sA,dqk:()=>Bt,eBb:()=>ty,eFA:()=>vv,eJc:()=>Sh,ekj:()=>ih,eoX:()=>pv,f3M:()=>Le,g9A:()=>ip,h0i:()=>ea,hGG:()=>FA,hYB:()=>Ju,hij:()=>ld,iGM:()=>L_,ifc:()=>Et,ip1:()=>ov,jDz:()=>n_,kEZ:()=>h_,kL8:()=>Tg,kcU:()=>Qi,l5B:()=>f_,lG2:()=>si,lcZ:()=>D_,lnq:()=>ah,lqb:()=>Zs,lri:()=>hv,mCW:()=>Rc,n5z:()=>os,n_E:()=>fd,oAB:()=>Ht,oJD:()=>$f,oxw:()=>Fm,pB0:()=>iy,q3G:()=>Qo,qFp:()=>WA,qLn:()=>Io,qOj:()=>Lu,qZA:()=>nd,qbA:()=>p_,qzn:()=>Fa,rFY:()=>m_,rWj:()=>fv,rg0:()=>De,s9C:()=>qu,sBO:()=>vA,s_b:()=>gd,soG:()=>vd,tb:()=>Lh,tp0:()=>gc,uIk:()=>Bu,vHH:()=>X,vpe:()=>qs,wAp:()=>tl,xi3:()=>C_,xp6:()=>Np,ynx:()=>id,z2F:()=>sl,z3N:()=>mo,zSh:()=>su,zs3:()=>Bs});var i=p(2079),s=p(7902),m=p(4699),L=p(7354),f=p(5125),W=p(9193),re=p(5705),q=p(5222),ae=p(2068);function K(e){for(let t in e)if(e[t]===K)return t;throw Error("Could not find renamed property on target object.")}function ne(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function he(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(he).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function U(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const $e=K({__forward_ref__:K});function $(e){return e.__forward_ref__=$,e.toString=function(){return he(this())},e}function ge(e){return Ne(e)?e():e}function Ne(e){return"function"==typeof e&&e.hasOwnProperty($e)&&e.__forward_ref__===$}function ie(e){return e&&!!e.\u0275providers}const x="https://g.co/ng/security#xss";class X extends Error{constructor(t,n){super(function Ve(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function we(e){return"string"==typeof e?e:null==e?"":String(e)}function He(e,t){throw new X(-201,!1)}function oe(e,t){null==e&&function ye(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function vt(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Yt(e){return{providers:e.providers||[],imports:e.imports||[]}}function on(e){return gn(e,Pn)||gn(e,tt)}function nn(e){return null!==on(e)}function gn(e,t){return e.hasOwnProperty(t)?e[t]:null}function Rn(e){return e&&(e.hasOwnProperty(kn)||e.hasOwnProperty(z))?e[kn]:null}const Pn=K({\u0275prov:K}),kn=K({\u0275inj:K}),tt=K({ngInjectableDef:K}),z=K({ngInjectorDef:K});var Ae=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(Ae||{});let F;function Ye(e){const t=F;return F=e,t}function St(e,t,n){const r=on(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&Ae.Optional?null:void 0!==t?t:void He(he(e))}const Bt=globalThis,Ct={},en="__NG_DI_FLAG__",mn="ngTempTokenPath",Bn=/\n/gm,ve="__source";let Ee;function G(e){const t=Ee;return Ee=e,t}function We(e,t=Ae.Default){if(void 0===Ee)throw new X(-203,!1);return null===Ee?St(e,void 0,t):Ee.get(e,t&Ae.Optional?null:void 0,t)}function le(e,t=Ae.Default){return(function me(){return F}()||We)(ge(e),t)}function Le(e,t=Ae.Default){return le(e,A(t))}function A(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function H(e){const t=[];for(let n=0;nt){l=a-1;break}}}for(;aa?"":o[be+1].toLowerCase();const lt=8&r?Xe:null;if(lt&&-1!==Ii(lt,R,0)||2&r&&R!==Xe){if(Ge(r))return!1;l=!0}}}}else{if(!l&&!Ge(r)&&!Ge(D))return!1;if(l&&Ge(D))continue;l=!1,r=D|1&r}}return Ge(r)||l}function Ge(e){return 0==(1&e)}function Ot(e,t,n,r){if(null===t)return-1;let o=0;if(r||!n){let a=!1;for(;o-1)for(n++;n0?'="'+g+'"':"")+"]"}else 8&r?o+="."+l:4&r&&(o+=" "+l);else""!==o&&!Ge(l)&&(t+=S(a,o),o=""),r=l,a=a||!Ge(r);n++}return""!==o&&(t+=S(a,o)),t}function Rt(e){return Qe(()=>{var t;const n=ui(e),r={...n,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===pt.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:null!==(t=e.signals)&&void 0!==t&&t,data:e.data||{},encapsulation:e.encapsulation||Et.Emulated,styles:e.styles||Pt,_:null,schemas:e.schemas||null,tView:null,id:""};Ri(r);const o=e.dependencies;return r.directiveDefs=Ci(o,!1),r.pipeDefs=Ci(o,!0),r.id=function Cr(e){let t=0;const n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const o of n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}(r),r})}function Kt(e){return cn(e)||bn(e)}function Jt(e){return null!==e}function Ht(e){return Qe(()=>({type:e.type,bootstrap:e.bootstrap||Pt,declarations:e.declarations||Pt,imports:e.imports||Pt,exports:e.exports||Pt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function xn(e,t){if(null==e)return Gt;const n={};for(const r in e)if(e.hasOwnProperty(r)){let o=e[r],a=o;Array.isArray(o)&&(a=o[1],o=o[0]),n[o]=r,t&&(t[o]=a)}return n}function si(e){return Qe(()=>{const t=ui(e);return Ri(t),t})}function zn(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function cn(e){return e[Vn]||null}function bn(e){return e[Tn]||null}function mi(e){return e[Qn]||null}function Si(e){const t=cn(e)||bn(e)||mi(e);return null!==t&&t.standalone}function Di(e,t){const n=e[xi]||null;if(!n&&!0===t)throw new Error(`Type ${he(e)} does not have '\u0275mod' property.`);return n}function ui(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||Gt,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||Pt,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:xn(e.inputs,t),outputs:xn(e.outputs)}}function Ri(e){var t;null===(t=e.features)||void 0===t||t.forEach(n=>n(e))}function Ci(e,t){if(!e)return null;const n=t?mi:Kt;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(Jt)}const ti=0,sn=1,Nn=2,gi=3,ki=4,Zi=5,wi=6,us=7,vi=8,nr=9,Fr=10,Dn=11,ur=12,Nr=13,hr=14,Ti=15,qi=16,Lr=17,fr=18,Tr=19,Qr=20,Yr=21,ir=22,Ar=23,pr=24,Fn=25,bs=1,xs=2,Ji=7,fs=9,Bi=11;function Ki(e){return Array.isArray(e)&&"object"==typeof e[bs]}function Vi(e){return Array.isArray(e)&&!0===e[bs]}function Zr(e){return 0!=(4&e.flags)}function Ui(e){return e.componentOffset>-1}function yi(e){return 1==(1&e.flags)}function Xi(e){return!!e.template}function no(e){return 0!=(512&e[Nn])}function mr(e,t){return e.hasOwnProperty(ri)?e[ri]:null}let Hi=null,js=!1;function rr(e){const t=Hi;return Hi=e,t}const ps={version:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{}};function oo(e){if(!Ds(e)||e.dirty){if(!e.producerMustRecompute(e)&&!Eo(e))return void(e.dirty=!1);e.producerRecomputeValue(e),e.dirty=!1}}function Ps(e){var t;e.dirty=!0,function Rs(e){if(void 0===e.liveConsumerNode)return;const t=js;js=!0;try{for(const n of e.liveConsumerNode)n.dirty||Ps(n)}finally{js=t}}(e),null===(t=e.consumerMarkedDirty)||void 0===t||t.call(e,e)}function Mr(e){return e&&(e.nextProducerIndex=0),rr(e)}function kr(e,t){if(rr(t),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(Ds(e))for(let n=e.nextProducerIndex;n0}function Cs(e){var t,n,r;null!==(t=e.producerNode)&&void 0!==t||(e.producerNode=[]),null!==(n=e.producerIndexOfThis)&&void 0!==n||(e.producerIndexOfThis=[]),null!==(r=e.producerLastReadVersion)&&void 0!==r||(e.producerLastReadVersion=[])}let ia=null;function De(e){const t=rr(null);try{return e()}finally{rr(t)}}const wt=()=>{},Qt={...ps,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{e.schedule(e.ref)},hasRun:!1,cleanupFn:wt};class Zn{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function $n(){return Hn}function Hn(e){return e.type.prototype.ngOnChanges&&(e.setInput=hi),bi}function bi(){const e=sr(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===Gt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function hi(e,t,n,r){const o=this.declaredInputs[n],a=sr(e)||function Br(e,t){return e[li]=t}(e,{previous:Gt,current:null}),l=a.current||(a.current={}),g=a.previous,D=g[o];l[o]=new Zn(D&&D.currentValue,t,g===Gt),e[r]=t}$n.ngInherit=!0;const li="__ngSimpleChanges__";function sr(e){return e[li]||null}const ji=function(e,t,n){},Vr="svg";function Gn(e){for(;Array.isArray(e);)e=e[ti];return e}function lr(e,t){return Gn(t[e])}function cr(e,t){return Gn(t[e.index])}function ni(e,t){return e.data[t]}function Ns(e,t){return e[t]}function yr(e,t){const n=t[e];return Ki(n)?n:n[ti]}function Er(e,t){return null==t?null:e[t]}function oa(e){e[Lr]=0}function aa(e){1024&e[Nn]||(e[Nn]|=1024,la(e,1))}function Ls(e){1024&e[Nn]&&(e[Nn]&=-1025,la(e,-1))}function la(e,t){let n=e[gi];if(null===n)return;n[Zi]+=t;let r=n;for(n=n[gi];null!==n&&(1===t&&1===r[Zi]||-1===t&&0===r[Zi]);)n[Zi]+=t,r=n,n=n[gi]}const wn={lFrame:M(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function pl(){return wn.bindingsEnabled}function Or(){return null!==wn.skipHydrationRootTNode}function Vt(){return wn.lFrame.lView}function ci(){return wn.lFrame.tView}function Yo(e){return wn.lFrame.contextLView=e,e[vi]}function fa(e){return wn.lFrame.contextLView=null,e}function dr(){let e=ml();for(;null!==e&&64===e.type;)e=e.parent;return e}function ml(){return wn.lFrame.currentTNode}function ns(e,t){const n=wn.lFrame;n.currentTNode=e,n.isParent=t}function pa(){return wn.lFrame.isParent}function To(){wn.lFrame.isParent=!1}function gr(){const e=wn.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function gs(){return wn.lFrame.bindingIndex}function Gs(){return wn.lFrame.bindingIndex++}function is(e){const t=wn.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function _l(e,t){const n=wn.lFrame;n.bindingIndex=n.bindingRootIndex=e,ba(t)}function ba(e){wn.lFrame.currentDirectiveIndex=e}function ya(e){const t=wn.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function vl(){return wn.lFrame.currentQueryIndex}function Ao(e){wn.lFrame.currentQueryIndex=e}function _(e){const t=e[sn];return 2===t.type?t.declTNode:1===t.type?e[wi]:null}function b(e,t,n){if(n&Ae.SkipSelf){let o=t,a=e;for(;!(o=o.parent,null!==o||n&Ae.Host||(o=_(a),null===o||(a=a[hr],10&o.type))););if(null===o)return!1;t=o,e=a}const r=wn.lFrame=v();return r.currentTNode=t,r.lView=e,!0}function T(e){const t=v(),n=e[sn];wn.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function v(){const e=wn.lFrame,t=null===e?null:e.child;return null===t?M(e):t}function M(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function ue(){const e=wn.lFrame;return wn.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const ke=ue;function ft(){const e=ue();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Zt(){return wn.lFrame.selectedIndex}function Cn(e){wn.lFrame.selectedIndex=e}function Un(){const e=wn.lFrame;return ni(e.tView,e.selectedIndex)}function er(){wn.lFrame.currentNamespace=Vr}function Qi(){!function Ir(){wn.lFrame.currentNamespace=null}()}let Ws=!0;function As(){return Ws}function rs(e){Ws=e}function Ea(e,t){for(let R=t.directiveStart,J=t.directiveEnd;R=r)break}else t[D]<0&&(e[Lr]+=65536),(g>13>16&&(3&e[Nn])===t&&(e[Nn]+=8192,uc(g,a)):uc(g,a)}const wo=-1;class zo{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function El(e){return e!==wo}function Go(e){return 32767&e}function Mo(e,t){let n=function xd(e){return e>>16}(e),r=t;for(;n>0;)r=r[hr],n--;return r}let Dl=!0;function Ta(e){const t=Dl;return Dl=e,t}const c=255,u=5;let d=0;const h={};function pe(e,t){const n=ct(e,t);if(-1!==n)return n;const r=t[sn];r.firstCreatePass&&(e.injectorIndex=t.length,Pe(r.data,e),Pe(t,null),Pe(r.blueprint,null));const o=Tt(e,t),a=e.injectorIndex;if(El(o)){const l=Go(o),g=Mo(o,t),D=g[sn].data;for(let R=0;R<8;R++)t[a+R]=g[l+R]|D[l+R]}return t[a+8]=o,a}function Pe(e,t){e.push(0,0,0,0,0,0,0,0,t)}function ct(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Tt(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;null!==o;){if(r=xo(o),null===r)return wo;if(n++,o=o[hr],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return wo}function dn(e,t,n){!function Y(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(ei)&&(r=n[ei]),null==r&&(r=n[ei]=d++);const o=r&c;t.data[e+(o>>u)]|=1<=0?t&c:Aa:t}(n);if("function"==typeof a){if(!b(t,e,r))return r&Ae.Host?In(o,0,r):Mn(t,n,r,o);try{let l;if(l=a(r),null!=l||r&Ae.Optional)return l;He()}finally{ke()}}else if("number"==typeof a){let l=null,g=ct(e,t),D=wo,R=r&Ae.Host?t[Ti][wi]:null;for((-1===g||r&Ae.SkipSelf)&&(D=-1===g?Tt(e,t):t[g+8],D!==wo&&Ks(r,!1)?(l=t[sn],g=Go(D),t=Mo(D,t)):g=-1);-1!==g;){const J=t[sn];if(tr(a,g,J.data)){const be=Fi(g,t,n,l,r,R);if(be!==h)return be}D=t[g+8],D!==wo&&Ks(r,t[sn].data[g+8]===R)&&tr(a,g,t)?(l=J,g=Go(D),t=Mo(D,t)):g=-1}}return o}function Fi(e,t,n,r,o,a){const l=t[sn],g=l.data[e+8],J=Ni(g,l,n,null==r?Ui(g)&&Dl:r!=l&&0!=(3&g.type),o&Ae.Host&&a===g);return null!==J?Li(t,l,J,g):h}function Ni(e,t,n,r,o){const a=e.providerIndexes,l=t.data,g=1048575&a,D=e.directiveStart,J=a>>20,Xe=o?g+J:e.directiveEnd;for(let lt=r?g:g+J;lt=D&&It.type===n)return lt}if(o){const lt=l[D];if(lt&&Xi(lt)&<.type===n)return D}return null}function Li(e,t,n,r){let o=e[n];const a=t.data;if(function Ad(e){return e instanceof zo}(o)){const l=o;l.resolving&&function te(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new X(-200,`Circular dependency in DI detected for ${e}${n}`)}(function Ie(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():we(e)}(a[n]));const g=Ta(l.canSeeViewProviders);l.resolving=!0;const R=l.injectImpl?Ye(l.injectImpl):null;b(e,r,Ae.Default);try{o=e[n]=l.factory(void 0,a,e,r),t.firstCreatePass&&n>=r.directiveStart&&function So(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:a}=t.type.prototype;if(r){var l,g;const be=Hn(t);(null!==(l=n.preOrderHooks)&&void 0!==l?l:n.preOrderHooks=[]).push(e,be),(null!==(g=n.preOrderCheckHooks)&&void 0!==g?g:n.preOrderCheckHooks=[]).push(e,be)}var D,R,J;o&&(null!==(D=n.preOrderHooks)&&void 0!==D?D:n.preOrderHooks=[]).push(0-e,o),a&&((null!==(R=n.preOrderHooks)&&void 0!==R?R:n.preOrderHooks=[]).push(e,a),(null!==(J=n.preOrderCheckHooks)&&void 0!==J?J:n.preOrderCheckHooks=[]).push(e,a))}(n,a[n],t)}finally{null!==R&&Ye(R),Ta(g),l.resolving=!1,ke()}}return o}function tr(e,t,n){return!!(n[t+(e>>u)]&1<{const t=e.prototype.constructor,n=t[ri]||ho(t),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const a=o[ri]||ho(o);if(a&&a!==n)return a;o=Object.getPrototypeOf(o)}return a=>new a})}function ho(e){return Ne(e)?()=>{const t=ho(ge(e));return t&&t()}:mr(e)}function xo(e){const t=e[sn],n=t.type;return 2===n?t.declTNode:1===n?e[wi]:null}function Qs(e){return function rn(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const r=n.length;let o=0;for(;o{const r=function ii(e){return function(...n){if(e){const r=e(...n);for(const o in r)this[o]=r[o]}}}(t);function o(...a){if(this instanceof o)return r.apply(this,a),this;const l=new o(...a);return g.annotation=l,g;function g(D,R,J){const be=D.hasOwnProperty(_n)?D[_n]:Object.defineProperty(D,_n,{value:[]})[_n];for(;be.length<=J;)be.push(null);return(be[J]=be[J]||[]).push(l),D}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}const Qh=Function;function wa(e,t){e.forEach(n=>Array.isArray(n)?wa(n,t):t(n))}function Zh(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function fc(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Al(e,t){const n=[];for(let r=0;r=0?e[1|r]=n:(r=~r,function $v(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(1===o)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;)e[o]=e[o-2],o--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function Id(e,t){const n=Ma(e,t);if(n>=0)return e[1|n]}function Ma(e,t){return function qh(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){const a=r+(o-r>>1),l=e[a<t?o=a:r=a+1}return~(o<|^->||--!>|)/g,mb="\u200b$1\u200b";const Ld=new Map;let gb=0;const Bd="__ngContext__";function Hr(e,t){Ki(t)?(e[Bd]=t[Tr],function vb(e){Ld.set(e[Tr],e)}(t)):e[Bd]=t}let Vd;function Ud(e,t){return Vd(e,t)}function Ml(e){const t=e[gi];return Vi(t)?t[gi]:t}function bf(e){return Ef(e[ur])}function yf(e){return Ef(e[ki])}function Ef(e){for(;null!==e&&!Vi(e);)e=e[ki];return e}function Ia(e,t,n,r,o){if(null!=r){let a,l=!1;Vi(r)?a=r:Ki(r)&&(l=!0,r=r[ti]);const g=Gn(r);0===e&&null!==n?null==o?Af(t,n,g):Wo(t,n,g,o||null,!0):1===e&&null!==n?Wo(t,n,g,o||null,!0):2===e?function xc(e,t,n){const r=wc(e,t);r&&function kb(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,g,l):3===e&&t.destroyNode(g),null!=a&&function Ub(e,t,n,r,o){const a=n[Ji];a!==Gn(n)&&Ia(t,e,r,a,o);for(let g=Bi;gt.replace(pb,mb))}(t))}function Ac(e,t,n){return e.createElement(t,n)}function Cf(e,t){const n=e[fs],r=n.indexOf(t);Ls(t),n.splice(r,1)}function Sc(e,t){if(e.length<=Bi)return;const n=Bi+t,r=e[n];if(r){const o=r[qi];null!==o&&o!==e&&Cf(o,r),t>0&&(e[n-1][ki]=r[ki]);const a=fc(e,Bi+t);!function xb(e,t){Ol(e,t,t[Dn],2,null,null),t[ti]=null,t[wi]=null}(r[sn],r);const l=a[fr];null!==l&&l.detachView(a[sn]),r[gi]=null,r[ki]=null,r[Nn]&=-129}return r}function jd(e,t){if(!(256&t[Nn])){const n=t[Dn];t[Ar]&&Ys(t[Ar]),t[pr]&&Ys(t[pr]),n.destroyNode&&Ol(e,t,n,3,null,null),function Rb(e){let t=e[ur];if(!t)return Yd(e[sn],e);for(;t;){let n=null;if(Ki(t))n=t[ur];else{const r=t[Bi];r&&(n=r)}if(!n){for(;t&&!t[ki]&&t!==e;)Ki(t)&&Yd(t[sn],t),t=t[gi];null===t&&(t=e),Ki(t)&&Yd(t[sn],t),n=t&&t[ki]}t=n}}(t)}}function Yd(e,t){if(!(256&t[Nn])){t[Nn]&=-129,t[Nn]|=256,function Lb(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?r[l]():r[-l].unsubscribe(),a+=2}else n[a].call(r[n[a+1]]);null!==r&&(t[us]=null);const o=t[Yr];if(null!==o){t[Yr]=null;for(let a=0;a-1){const{encapsulation:a}=e.data[r.directiveStart+o];if(a===Et.None||a===Et.Emulated)return null}return cr(r,n)}}(e,t.parent,n)}function Wo(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Af(e,t,n){e.appendChild(t,n)}function Sf(e,t,n,r,o){null!==r?Wo(e,t,n,r,o):Af(e,t,n)}function wc(e,t){return e.parentNode(t)}function wf(e,t,n){return xf(e,t,n)}let Gd,Oc,Qd,Ic,xf=function Mf(e,t,n){return 40&e.type?cr(e,n):null};function Mc(e,t,n,r){const o=zd(e,r,t),a=t[Dn],g=wf(r.parent||t[wi],r,t);if(null!=o)if(Array.isArray(n))for(let D=0;De,createScript:e=>e,createScriptURL:e=>e})}catch{}return Oc}())||void 0===t?void 0:t.createHTML(e))||e}function $b(e){Qd=e}function Pa(){if(void 0!==Qd)return Qd;if(typeof document<"u")return document;throw new X(210,!1)}function Zd(){if(void 0===Ic&&(Ic=null,Bt.trustedTypes))try{Ic=Bt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Ic}function Lf(e){var t;return(null===(t=Zd())||void 0===t?void 0:t.createHTML(e))||e}function Bf(e){var t;return(null===(t=Zd())||void 0===t?void 0:t.createScriptURL(e))||e}class Ko{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${x})`}}class Wb extends Ko{getTypeName(){return"HTML"}}class Kb extends Ko{getTypeName(){return"Style"}}class Qb extends Ko{getTypeName(){return"Script"}}class Zb extends Ko{getTypeName(){return"URL"}}class qb extends Ko{getTypeName(){return"ResourceURL"}}function mo(e){return e instanceof Ko?e.changingThisBreaksApplicationSecurity:e}function Fa(e,t){const n=function Jb(e){return e instanceof Ko&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${x})`)}return n===t}function Xb(e){return new Wb(e)}function ey(e){return new Kb(e)}function ty(e){return new Qb(e)}function ny(e){return new Zb(e)}function iy(e){return new qb(e)}class ry{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const n=(new window.DOMParser).parseFromString(Ra(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch{return null}}}class sy{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const n=this.inertDocument.createElement("template");return n.innerHTML=Ra(t),n}}const ay=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Rc(e){return(e=String(e)).match(ay)?e:"unsafe:"+e}function go(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Il(...e){const t={};for(const n of e)for(const r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}const Uf=go("area,br,col,hr,img,wbr"),Hf=go("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),jf=go("rp,rt"),qd=Il(Uf,Il(Hf,go("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Il(jf,go("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Il(jf,Hf)),Jd=go("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Yf=Il(Jd,go("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),go("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),ly=go("script,style,template");class cy{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0;for(;n;)if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild)n=n.firstChild;else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let o=this.checkClobberedElement(n,n.nextSibling);if(o){n=o;break}n=this.checkClobberedElement(n,n.parentNode)}return this.buf.join("")}startElement(t){const n=t.nodeName.toLowerCase();if(!qd.hasOwnProperty(n))return this.sanitizedSomething=!0,!ly.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const r=t.attributes;for(let o=0;o"),!0}endElement(t){const n=t.nodeName.toLowerCase();qd.hasOwnProperty(n)&&!Uf.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(zf(t))}checkClobberedElement(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return n}}const dy=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,uy=/([^\#-~ |!])/g;function zf(e){return e.replace(/&/g,"&").replace(dy,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(uy,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let Pc;function Gf(e,t){let n=null;try{Pc=Pc||function Vf(e){const t=new sy(e);return function oy(){try{return!!(new window.DOMParser).parseFromString(Ra(""),"text/html")}catch{return!1}}()?new ry(t):t}(e);let r=t?String(t):"";n=Pc.getInertBodyElement(r);let o=5,a=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,r=a,a=n.innerHTML,n=Pc.getInertBodyElement(r)}while(r!==a);return Ra((new cy).sanitizeChildren(Xd(n)||n))}finally{if(n){const r=Xd(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function Xd(e){return"content"in e&&function hy(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Qo=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(Qo||{});function $f(e){const t=Rl();return t?Lf(t.sanitize(Qo.HTML,e)||""):Fa(e,"HTML")?Lf(mo(e)):Gf(Pa(),we(e))}function eu(e){const t=Rl();return t?t.sanitize(Qo.URL,e)||"":Fa(e,"URL")?mo(e):Rc(we(e))}function Wf(e){const t=Rl();if(t)return Bf(t.sanitize(Qo.RESOURCE_URL,e)||"");if(Fa(e,"ResourceURL"))return Bf(mo(e));throw new X(904,!1)}function Kf(e,t,n){return function _y(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?Wf:eu}(t,n)(e)}function Rl(){const e=Vt();return e&&e[Fr].sanitizer}class Ei{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=vt({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const Pl=new Ei("ENVIRONMENT_INITIALIZER"),Qf=new Ei("INJECTOR",-1),Zf=new Ei("INJECTOR_DEF_TYPES");class tu{get(t,n=Ct){if(n===Ct){const r=new Error(`NullInjectorError: No provider for ${he(t)}!`);throw r.name="NullInjectorError",r}return n}}function nu(e){return{\u0275providers:e}}function vy(...e){return{\u0275providers:qf(0,e),\u0275fromNgModule:!0}}function qf(e,...t){const n=[],r=new Set;let o;const a=l=>{n.push(l)};return wa(t,l=>{const g=l;Fc(g,a,[],r)&&(o||(o=[]),o.push(g))}),void 0!==o&&Jf(o,a),n}function Jf(e,t){for(let n=0;n{t(a,r)})}}function Fc(e,t,n,r){if(!(e=ge(e)))return!1;let o=null,a=Rn(e);const l=!a&&cn(e);if(a||l){if(l&&!l.standalone)return!1;o=e}else{const D=e.ngModule;if(a=Rn(D),!a)return!1;o=D}const g=r.has(o);if(l){if(g)return!1;if(r.add(o),l.dependencies){const D="function"==typeof l.dependencies?l.dependencies():l.dependencies;for(const R of D)Fc(R,t,n,r)}}else{if(!a)return!1;{if(null!=a.imports&&!g){let R;r.add(o);try{wa(a.imports,J=>{Fc(J,t,n,r)&&(R||(R=[]),R.push(J))})}finally{}void 0!==R&&Jf(R,t)}if(!g){const R=mr(o)||(()=>new o);t({provide:o,useFactory:R,deps:Pt},o),t({provide:Zf,useValue:o,multi:!0},o),t({provide:Pl,useValue:()=>le(o),multi:!0},o)}const D=a.providers;if(null!=D&&!g){const R=e;iu(D,J=>{t(J,R)})}}}return o!==e&&void 0!==e.providers}function iu(e,t){for(let n of e)ie(n)&&(n=n.\u0275providers),Array.isArray(n)?iu(n,t):t(n)}const by=K({provide:String,useValue:K});function ru(e){return null!==e&&"object"==typeof e&&by in e}function Zo(e){return"function"==typeof e}const su=new Ei("Set Injector scope."),Nc={},Ey={};let ou;function Lc(){return void 0===ou&&(ou=new tu),ou}class Zs{}class kc extends Zs{get destroyed(){return this._destroyed}constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,lu(t,l=>this.processProvider(l)),this.records.set(Qf,Na(void 0,this)),o.has("environment")&&this.records.set(Zs,Na(void 0,this));const a=this.records.get(su);null!=a&&"string"==typeof a.value&&this.scopes.add(a.value),this.injectorDefTypes=new Set(this.get(Zf.multi,Pt,Ae.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const n of this._ngOnDestroyHooks)n.ngOnDestroy();const t=this._onDestroyHooks;this._onDestroyHooks=[];for(const n of t)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const n=G(this),r=Ye(void 0);try{return t()}finally{G(n),Ye(r)}}get(t,n=Ct,r=Ae.Default){if(this.assertNotDestroyed(),t.hasOwnProperty($i))return t[$i](this);r=A(r);const a=G(this),l=Ye(void 0);try{if(!(r&Ae.SkipSelf)){let D=this.records.get(t);if(void 0===D){const R=function Sy(e){return"function"==typeof e||"object"==typeof e&&e instanceof Ei}(t)&&on(t);D=R&&this.injectableDefInScope(R)?Na(au(t),Nc):null,this.records.set(t,D)}if(null!=D)return this.hydrate(t,D)}return(r&Ae.Self?Lc():this.parent).get(t,n=r&Ae.Optional&&n===Ct?null:n)}catch(g){if("NullInjectorError"===g.name){if((g[mn]=g[mn]||[]).unshift(he(t)),a)throw g;return function k(e,t,n,r){const o=e[mn];throw t[ve]&&o.unshift(t[ve]),e.message=function Oe(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=he(t);if(Array.isArray(t))o=t.map(he).join(" -> ");else if("object"==typeof t){let a=[];for(let l in t)if(t.hasOwnProperty(l)){let g=t[l];a.push(l+":"+("string"==typeof g?JSON.stringify(g):he(g)))}o=`{${a.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(Bn,"\n ")}`}("\n"+e.message,o,n,r),e.ngTokenPath=o,e[mn]=null,e}(g,t,"R3InjectorError",this.source)}throw g}finally{Ye(l),G(a)}}resolveInjectorInitializers(){const t=G(this),n=Ye(void 0);try{const o=this.get(Pl.multi,Pt,Ae.Self);for(const a of o)a()}finally{G(t),Ye(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(he(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new X(205,!1)}processProvider(t){let n=Zo(t=ge(t))?t:ge(t&&t.provide);const r=function Cy(e){return ru(e)?Na(void 0,e.useValue):Na(tp(e),Nc)}(t);if(Zo(t)||!0!==t.multi)this.records.get(n);else{let o=this.records.get(n);o||(o=Na(void 0,Nc,!0),o.factory=()=>H(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===Nc&&(n.value=Ey,n.value=n.factory()),"object"==typeof n.value&&n.value&&function Ay(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=ge(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){const n=this._onDestroyHooks.indexOf(t);-1!==n&&this._onDestroyHooks.splice(n,1)}}function au(e){const t=on(e),n=null!==t?t.factory:mr(e);if(null!==n)return n;if(e instanceof Ei)throw new X(204,!1);if(e instanceof Function)return function Dy(e){const t=e.length;if(t>0)throw Al(t,"?"),new X(204,!1);const n=function Ut(e){return e&&(e[Pn]||e[tt])||null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new X(204,!1)}function tp(e,t,n){let r;if(Zo(e)){const o=ge(e);return mr(o)||au(o)}if(ru(e))r=()=>ge(e.useValue);else if(function ep(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...H(e.deps||[]));else if(function Xf(e){return!(!e||!e.useExisting)}(e))r=()=>le(ge(e.useExisting));else{const o=ge(e&&(e.useClass||e.provide));if(!function Ty(e){return!!e.deps}(e))return mr(o)||au(o);r=()=>new o(...H(e.deps))}return r}function Na(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function lu(e,t){for(const n of e)Array.isArray(n)?lu(n,t):n&&ie(n)?lu(n.\u0275providers,t):t(n)}const np=new Ei("AppId",{providedIn:"root",factory:()=>wy}),wy="ng",ip=new Ei("Platform Initializer"),cu=new Ei("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),My=new Ei("AnimationModuleType"),xy=new Ei("CSP nonce",{providedIn:"root",factory:()=>{var e;return(null===(e=Pa().body)||void 0===e||null===(e=e.querySelector("[ngCspNonce]"))||void 0===e?void 0:e.getAttribute("ngCspNonce"))||null}});let rp=(e,t,n)=>null;function pu(e,t,n=!1){return rp(e,t,n)}class Vy{}class ap{}class Hy{resolveComponentFactory(t){throw function Uy(e){const t=Error(`No component factory found for ${he(e)}.`);return t.ngComponent=e,t}(t)}}let kl=(()=>{class t{}return t.NULL=new Hy,t})();function jy(){return Va(dr(),Vt())}function Va(e,t){return new Bl(cr(e,t))}let Bl=(()=>{class t{constructor(r){this.nativeElement=r}}return t.__NG_ELEMENT_ID__=jy,t})();function Yy(e){return e instanceof Bl?e.nativeElement:e}class cp{}let zy=(()=>{class t{constructor(){this.destroyNode=null}}return t.__NG_ELEMENT_ID__=()=>function Gy(){const e=Vt(),n=yr(dr().index,e);return(Ki(n)?n:e)[Dn]}(),t})(),$y=(()=>{var e;class t{}return(e=t).\u0275prov=vt({token:e,providedIn:"root",factory:()=>null}),t})();class dp{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Wy=new dp("16.2.5"),_u={};function pp(e,t=null,n=null,r){const o=mp(e,t,n,r);return o.resolveInjectorInitializers(),o}function mp(e,t=null,n=null,r,o=new Set){const a=[n||Pt,vy(e)];return r=r||("object"==typeof e?void 0:he(e)),new kc(a,t||Lc(),r||null,o)}let Bs=(()=>{var e;class t{static create(r,o){if(Array.isArray(r))return pp({name:""},o,r,"");{var a;const l=null!==(a=r.name)&&void 0!==a?a:"";return pp({name:l},r.parent,r.providers,l)}}}return(e=t).THROW_IF_NOT_FOUND=Ct,e.NULL=new tu,e.\u0275prov=vt({token:e,providedIn:"any",factory:()=>le(Qf)}),e.__NG_ELEMENT_ID__=-1,t})();function bu(e){return e.ngOriginalError}class Io{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&bu(t);for(;n&&bu(n);)n=bu(n);return n||null}}function Eu(e){return t=>{setTimeout(e,void 0,t)}}const qs=class eE extends i.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){let o=t,a=n||(()=>null),l=r;if(t&&"object"==typeof t){var g,D,R;const be=t;o=null===(g=be.next)||void 0===g?void 0:g.bind(be),a=null===(D=be.error)||void 0===D?void 0:D.bind(be),l=null===(R=be.complete)||void 0===R?void 0:R.bind(be)}this.__isAsync&&(a=Eu(a),o&&(o=Eu(o)),l&&(l=Eu(l)));const J=super.subscribe({next:o,error:a,complete:l});return t instanceof s.w&&t.add(J),J}};function _p(...e){}class Dr{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new qs(!1),this.onMicrotaskEmpty=new qs(!1),this.onStable=new qs(!1),this.onError=new qs(!1),typeof Zone>"u")throw new X(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function tE(){const e="function"==typeof Bt.requestAnimationFrame;let t=Bt[e?"requestAnimationFrame":"setTimeout"],n=Bt[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&n){const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r);const o=n[Zone.__symbol__("OriginalDelegate")];o&&(n=o)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function rE(e){const t=()=>{!function iE(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Bt,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Cu(e),e.isCheckStableRunning=!0,Du(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Cu(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,a,l,g)=>{if(function oE(e){var t;return!(!Array.isArray(e)||1!==e.length)&&!0===(null===(t=e[0].data)||void 0===t?void 0:t.__ignore_ng_zone__)}(g))return n.invokeTask(o,a,l,g);try{return vp(e),n.invokeTask(o,a,l,g)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===a.type||e.shouldCoalesceRunChangeDetection)&&t(),bp(e)}},onInvoke:(n,r,o,a,l,g,D)=>{try{return vp(e),n.invoke(o,a,l,g,D)}finally{e.shouldCoalesceRunChangeDetection&&t(),bp(e)}},onHasTask:(n,r,o,a)=>{n.hasTask(o,a),r===o&&("microTask"==a.change?(e._hasPendingMicrotasks=a.microTask,Cu(e),Du(e)):"macroTask"==a.change&&(e.hasPendingMacrotasks=a.macroTask))},onHandleError:(n,r,o,a)=>(n.handleError(o,a),e.runOutsideAngular(()=>e.onError.emit(a)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Dr.isInAngularZone())throw new X(909,!1)}static assertNotInAngularZone(){if(Dr.isInAngularZone())throw new X(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){const a=this._inner,l=a.scheduleEventTask("NgZoneEvent: "+o,t,nE,_p,_p);try{return a.runTask(l,n,r)}finally{a.cancelTask(l)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const nE={};function Du(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Cu(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function vp(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function bp(e){e._nesting--,Du(e)}class sE{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new qs,this.onMicrotaskEmpty=new qs,this.onStable=new qs,this.onError=new qs}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}}const yp=new Ei("",{providedIn:"root",factory:Ep});function Ep(){const e=Le(Dr);let t=!0;const n=new m.y(o=>{t=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{o.next(t),o.complete()})}),r=new m.y(o=>{let a;e.runOutsideAngular(()=>{a=e.onStable.subscribe(()=>{Dr.assertNotInAngularZone(),queueMicrotask(()=>{!t&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(t=!0,o.next(!0))})})});const l=e.onUnstable.subscribe(()=>{Dr.assertInAngularZone(),t&&(t=!1,e.runOutsideAngular(()=>{o.next(!1)}))});return()=>{a.unsubscribe(),l.unsubscribe()}});return(0,L.T)(n,r.pipe((0,re.B)()))}function Dp(e){return e.ownerDocument.defaultView}function _o(e){return e instanceof Function?e():e}let Tu=(()=>{var e;class t{constructor(){this.renderDepth=0,this.handler=null}begin(){var r;null===(r=this.handler)||void 0===r||r.validateBegin(),this.renderDepth++}end(){var r;this.renderDepth--,0===this.renderDepth&&(null===(r=this.handler)||void 0===r||r.execute())}ngOnDestroy(){var r;null===(r=this.handler)||void 0===r||r.destroy(),this.handler=null}}return(e=t).\u0275prov=vt({token:e,providedIn:"root",factory:()=>new e}),t})();function Vl(e){for(;e;){e[Nn]|=64;const t=Ml(e);if(no(e)&&!t)return e;e=t}return null}const wp=new Ei("",{providedIn:"root",factory:()=>!1});let Ul=null;function Ip(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:Fp()}function Rp(e,t){var n;const r=Fp();null!==(n=r.producerNode)&&void 0!==n&&n.length&&(e[t]=Ul,r.lView=e,Ul=Pp())}const mE={...ps,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{Vl(e.lView)},lView:null};function Pp(){return Object.create(mE)}function Fp(){var e;return null!==(e=Ul)&&void 0!==e||(Ul=Pp()),Ul}const Jn={};function Np(e){Lp(ci(),Vt(),Zt()+e,!1)}function Lp(e,t,n,r){if(!r)if(3==(3&t[Nn])){const a=e.preOrderCheckHooks;null!==a&&Da(t,a,n)}else{const a=e.preOrderHooks;null!==a&&Ca(t,a,0,n)}Cn(n)}function ja(e,t=Ae.Default){const n=Vt();return null===n?le(e,t):Sn(dr(),n,ge(e),t)}function kp(){throw new Error("invalid")}function Gc(e,t,n,r,o,a,l,g,D,R,J){const be=t.blueprint.slice();return be[ti]=o,be[Nn]=140|r,(null!==R||e&&2048&e[Nn])&&(be[Nn]|=2048),oa(be),be[gi]=be[hr]=e,be[vi]=n,be[Fr]=l||e&&e[Fr],be[Dn]=g||e&&e[Dn],be[nr]=D||e&&e[nr]||null,be[wi]=a,be[Tr]=function _b(){return gb++}(),be[ir]=J,be[Qr]=R,be[Ti]=2==t.type?e[Ti]:be,be}function Ya(e,t,n,r,o){let a=e.data[t];if(null===a)a=function Au(e,t,n,r,o){const a=ml(),l=pa(),D=e.data[t]=function CE(e,t,n,r,o,a){let l=t?t.injectorIndex:-1,g=0;return Or()&&(g|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:l,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:g,providerIndexes:0,value:o,attrs:a,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,l?a:a&&a.parent,n,t,r,o);return null===e.firstChild&&(e.firstChild=D),null!==a&&(l?null==a.child&&null!==D.parent&&(a.child=D):null===a.next&&(a.next=D,D.prev=a)),D}(e,t,n,r,o),function _a(){return wn.lFrame.inI18n}()&&(a.flags|=32);else if(64&a.type){a.type=n,a.value=r,a.attrs=o;const l=function Co(){const e=wn.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();a.injectorIndex=null===l?-1:l.injectorIndex}return ns(a,!0),a}function Hl(e,t,n,r){if(0===n)return-1;const o=t.length;for(let a=0;aFn&&Lp(e,t,Fn,!1),ji(g?2:0,o);const R=g?a:null,J=Mr(R);try{null!==R&&(R.dirty=!1),n(r,o)}finally{kr(R,J)}}finally{g&&null===t[Ar]&&Rp(t,Ar),Cn(l),ji(g?3:1,o)}}function Su(e,t,n){if(Zr(t)){const r=rr(null);try{const a=t.directiveEnd;for(let l=t.directiveStart;lnull;function Hp(e,t,n,r){for(let o in e)if(e.hasOwnProperty(o)){n=null===n?{}:n;const a=e[o];null===r?jp(n,t,o,a):r.hasOwnProperty(o)&&jp(n,t,r[o],a)}return n}function jp(e,t,n,r){e.hasOwnProperty(n)?e[n].push(t,r):e[n]=[t,r]}function vs(e,t,n,r,o,a,l,g){const D=cr(t,n);let J,R=t.inputs;!g&&null!=R&&(J=R[r])?(Fu(e,n,J,r,o),Ui(t)&&function SE(e,t){const n=yr(t,e);16&n[Nn]||(n[Nn]|=64)}(n,t.index)):3&t.type&&(r=function AE(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),o=null!=l?l(o,t.value||"",r):o,a.setProperty(D,r,o))}function Ou(e,t,n,r){if(pl()){const o=null===r?null:{"":-1},a=function RE(e,t){const n=e.directiveRegistry;let r=null,o=null;if(n)for(let l=0;l0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(l)!=g&&l.push(g),l.push(n,r,a)}}(e,t,r,Hl(e,n,o.hostVars,Jn),o)}function Js(e,t,n,r,o,a){const l=cr(e,t);!function Ru(e,t,n,r,o,a,l){if(null==a)e.removeAttribute(t,o,n);else{const g=null==l?we(a):l(a,r||"",o);e.setAttribute(t,o,g,n)}}(t[Dn],l,a,e.value,n,r,o)}function BE(e,t,n,r,o,a){const l=a[t];if(null!==l)for(let g=0;g{var e;class t{constructor(){this.all=new Set,this.queue=new Map}create(r,o,a){const l=typeof Zone>"u"?null:Zone.current,g=function et(e,t,n){const r=Object.create(Qt);n&&(r.consumerAllowSignalWrites=!0),r.fn=e,r.schedule=t;const o=l=>{r.cleanupFn=l};return r.ref={notify:()=>Ps(r),run:()=>{if(r.dirty=!1,r.hasRun&&!Eo(r))return;r.hasRun=!0;const l=Mr(r);try{r.cleanupFn(),r.cleanupFn=wt,r.fn(o)}finally{kr(r,l)}},cleanup:()=>r.cleanupFn()},r.ref}(r,J=>{this.all.has(J)&&this.queue.set(J,l)},a);let D;this.all.add(g),g.notify();const R=()=>{var J;g.cleanup(),null===(J=D)||void 0===J||J(),this.all.delete(g),this.queue.delete(g)};return D=null==o?void 0:o.onDestroy(R),{destroy:R}}flush(){if(0!==this.queue.size)for(const[r,o]of this.queue)this.queue.delete(r),o?o.run(()=>r.run()):r.run()}get isQueueEmpty(){return 0===this.queue.size}}return(e=t).\u0275prov=vt({token:e,providedIn:"root",factory:()=>new e}),t})();function Wc(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,a=0;if(null!==t)for(let l=0;l0){tm(e,1);const o=n.components;null!==o&&im(e,o,1)}}function im(e,t,n){for(let r=0;r-1&&(Sc(t,r),fc(n,r))}this._attachedToViewContainer=!1}jd(this._lView[sn],this._lView)}onDestroy(t){!function zs(e,t){if(256==(256&e[Nn]))throw new X(911,!1);null===e[Yr]&&(e[Yr]=[]),e[Yr].push(t)}(this._lView,t)}markForCheck(){Vl(this._cdRefInjectingView||this._lView)}detach(){this._lView[Nn]&=-129}reattach(){this._lView[Nn]|=128}detectChanges(){Kc(this._lView[sn],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new X(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Ib(e,t){Ol(e,t,t[Dn],2,null,null)}(this._lView[sn],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new X(902,!1);this._appRef=t}}class WE extends Yl{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;Kc(t[sn],t,t[vi],!1)}checkNoChanges(){}get context(){return null}}class rm extends kl{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=cn(t);return new zl(n,this.ngModule)}}function sm(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class QE{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=A(r);const o=this.injector.get(t,_u,r);return o!==_u||n===_u?o:this.parentInjector.get(t,n,r)}}class zl extends ap{get inputs(){const t=this.componentDef,n=t.inputTransforms,r=sm(t.inputs);if(null!==n)for(const o of r)n.hasOwnProperty(o.propName)&&(o.transform=n[o.propName]);return r}get outputs(){return sm(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function ze(e){return e.map(Z).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,o){var a;let l=(o=o||this.ngModule)instanceof Zs?o:null===(a=o)||void 0===a?void 0:a.injector;l&&null!==this.componentDef.getStandaloneInjector&&(l=this.componentDef.getStandaloneInjector(l)||l);const g=l?new QE(t,l):t,D=g.get(cp,null);if(null===D)throw new X(407,!1);const Xe={rendererFactory:D,sanitizer:g.get($y,null),effectManager:g.get(Jp,null),afterRenderEventManager:g.get(Tu,null)},lt=D.createRenderer(null,this.componentDef),It=this.componentDef.selectors[0][0]||"div",zt=r?function vE(e,t,n,r){const a=r.get(wp,!1)||n===Et.ShadowDom,l=e.selectRootElement(t,a);return function bE(e){Up(e)}(l),l}(lt,r,this.componentDef.encapsulation,g):Ac(lt,It,function KE(e){const t=e.toLowerCase();return"svg"===t?Vr:"math"===t?"math":null}(It)),Lt=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let Yn=null;null!==zt&&(Yn=pu(zt,g,!0));const oi=xu(0,null,null,1,0,null,null,null,null,null,null),pi=Gc(null,oi,null,Lt,null,null,Xe,lt,g,null,Yn);let Ms,oc;T(pi);try{const Fo=this.componentDef;let ol,Gh=null;Fo.findHostDirectiveDefs?(ol=[],Gh=new Map,Fo.findHostDirectiveDefs(Fo,ol,Gh),ol.push(Fo)):ol=[Fo];const KA=function qE(e,t){const n=e[sn],r=Fn;return e[r]=t,Ya(n,r,2,"#host",null)}(pi,zt),QA=function JE(e,t,n,r,o,a,l){const g=o[sn];!function XE(e,t,n,r){for(const o of e)t.mergedAttrs=Wi(t.mergedAttrs,o.hostAttrs);null!==t.mergedAttrs&&(Wc(t,t.mergedAttrs,!0),null!==n&&Nf(r,n,t))}(r,e,t,l);let D=null;null!==t&&(D=pu(t,o[nr]));const R=a.rendererFactory.createRenderer(t,n);let J=16;n.signals?J=4096:n.onPush&&(J=64);const be=Gc(o,Vp(n),null,J,o[e.index],e,a,R,null,null,D);return g.firstCreatePass&&Iu(g,e,r.length-1),$c(o,be),o[e.index]=be}(KA,zt,Fo,ol,pi,Xe,lt);oc=ni(oi,Fn),zt&&function t0(e,t,n,r){if(r)qn(e,n,["ng-version",Wy.full]);else{const{attrs:o,classes:a}=function rt(e){const t=[],n=[];let r=1,o=2;for(;r0&&Ff(e,n,a.join(" "))}}(lt,Fo,zt,r),void 0!==n&&function n0(e,t,n){const r=e.projection=[];for(let o=0;o=0;r--){const o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=Wi(o.hostAttrs,n=Wi(n,o.hostAttrs))}}(r)}function Qc(e){return e===Gt?{}:e===Pt?[]:e}function o0(e,t){const n=e.viewQuery;e.viewQuery=n?(r,o)=>{t(r,o),n(r,o)}:t}function a0(e,t){const n=e.contentQueries;e.contentQueries=n?(r,o,a)=>{t(r,o,a),n(r,o,a)}:t}function l0(e,t){const n=e.hostBindings;e.hostBindings=n?(r,o)=>{t(r,o),n(r,o)}:t}function dm(e){const t=e.inputConfig,n={};for(const r in t)if(t.hasOwnProperty(r)){const o=t[r];Array.isArray(o)&&o[2]&&(n[r]=o[2])}e.inputTransforms=n}function Zc(e){return!!ku(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function ku(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Xs(e,t,n){return e[t]=n}function Gl(e,t){return e[t]}function jr(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function qo(e,t,n,r){const o=jr(e,t,n);return jr(e,t+1,r)||o}function qc(e,t,n,r,o){const a=qo(e,t,n,r);return jr(e,t+2,o)||a}function ws(e,t,n,r,o,a){const l=qo(e,t,n,r);return qo(e,t+2,o,a)||l}function Bu(e,t,n,r){const o=Vt();return jr(o,Gs(),t)&&(ci(),Js(Un(),o,e,t,n,r)),Bu}function Ga(e,t,n,r){return jr(e,Gs(),n)?t+we(n)+r:Jn}function $a(e,t,n,r,o,a){const g=qo(e,gs(),n,o);return is(2),g?t+we(n)+r+we(o)+a:Jn}function Cm(e,t,n,r,o,a,l,g){const D=Vt(),R=ci(),J=e+Fn,be=R.firstCreatePass?function P0(e,t,n,r,o,a,l,g,D){const R=t.consts,J=Ya(t,e,4,l||null,Er(R,g));Ou(t,n,J,Er(R,D)),Ea(t,J);const be=J.tView=xu(2,J,r,o,a,t.directiveRegistry,t.pipeRegistry,null,t.schemas,R,null);return null!==t.queries&&(t.queries.template(t,J),be.queries=t.queries.embeddedTView(J)),J}(J,R,D,t,n,r,o,a,l):R.data[J];ns(be,!1);const Xe=Tm(R,D,be,e);As()&&Mc(R,D,Xe,be),Hr(Xe,D),$c(D,D[J]=$p(Xe,D,Xe,be)),yi(be)&&wu(R,D,be),null!=l&&Mu(D,be,g)}let Tm=function Am(e,t,n,r){return rs(!0),t[Dn].createComment("")};function Sm(e){return Ns(function gl(){return wn.lFrame.contextLView}(),Fn+e)}function zu(e,t,n){const r=Vt();return jr(r,Gs(),t)&&vs(ci(),Un(),r,e,t,r[Dn],n,!1),zu}function Gu(e,t,n,r,o){const l=o?"class":"style";Fu(e,n,t.inputs[l],l,r)}function td(e,t,n,r){const o=Vt(),a=ci(),l=Fn+e,g=o[Dn],D=a.firstCreatePass?function k0(e,t,n,r,o,a){const l=t.consts,D=Ya(t,e,2,r,Er(l,o));return Ou(t,n,D,Er(l,a)),null!==D.attrs&&Wc(D,D.attrs,!1),null!==D.mergedAttrs&&Wc(D,D.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,D),D}(l,a,o,t,n,r):a.data[l],R=wm(a,o,D,g,t,e);o[l]=R;const J=yi(D);return ns(D,!0),Nf(g,R,D),32!=(32&D.flags)&&As()&&Mc(a,o,R,D),0===function Ho(){return wn.lFrame.elementDepthCount}()&&Hr(R,o),function es(){wn.lFrame.elementDepthCount++}(),J&&(wu(a,o,D),Su(a,D,o)),null!==r&&Mu(o,D),td}function nd(){let e=dr();pa()?To():(e=e.parent,ns(e,!1));const t=e;(function da(e){return wn.skipHydrationRootTNode===e})(t)&&function ha(){wn.skipHydrationRootTNode=null}(),function ts(){wn.lFrame.elementDepthCount--}();const n=ci();return n.firstCreatePass&&(Ea(n,e),Zr(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function Sd(e){return 0!=(8&e.flags)}(t)&&Gu(n,t,Vt(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function wd(e){return 0!=(16&e.flags)}(t)&&Gu(n,t,Vt(),t.stylesWithoutHost,!1),nd}function $u(e,t,n,r){return td(e,t,n,r),nd(),$u}let wm=(e,t,n,r,o,a)=>(rs(!0),Ac(r,o,function $s(){return wn.lFrame.currentNamespace}()));function id(e,t,n){const r=Vt(),o=ci(),a=e+Fn,l=o.firstCreatePass?function U0(e,t,n,r,o){const a=t.consts,l=Er(a,r),g=Ya(t,e,8,"ng-container",l);return null!==l&&Wc(g,l,!0),Ou(t,n,g,Er(a,o)),null!==t.queries&&t.queries.elementStart(t,g),g}(a,o,r,t,n):o.data[a];ns(l,!0);const g=Mm(o,r,l,e);return r[a]=g,As()&&Mc(o,r,g,l),Hr(g,r),yi(l)&&(wu(o,r,l),Su(o,l,r)),null!=n&&Mu(r,l),id}function rd(){let e=dr();const t=ci();return pa()?To():(e=e.parent,ns(e,!1)),t.firstCreatePass&&(Ea(t,e),Zr(e)&&t.queries.elementEnd(e)),rd}function Wu(e,t,n){return id(e,t,n),rd(),Wu}let Mm=(e,t,n,r)=>(rs(!0),Hd(t[Dn],""));function xm(){return Vt()}function Ku(e){return!!e&&"function"==typeof e.then}function Om(e){return!!e&&"function"==typeof e.subscribe}function Qu(e,t,n,r){const o=Vt(),a=ci(),l=dr();return Im(a,o,o[Dn],l,e,t,r),Qu}function Zu(e,t){const n=dr(),r=Vt(),o=ci();return Im(o,r,Zp(ya(o.data),n,r),n,e,t),Zu}function Im(e,t,n,r,o,a,l){const g=yi(r),R=e.firstCreatePass&&Qp(e),J=t[vi],be=Kp(t);let Xe=!0;if(3&r.type||l){const zt=cr(r,t),an=l?l(zt):zt,yn=be.length,Lt=l?oi=>l(Gn(oi[r.index])):r.index;let Yn=null;if(!l&&g&&(Yn=function Y0(e,t,n,r){const o=e.cleanup;if(null!=o)for(let a=0;aD?g[D]:null}"string"==typeof l&&(a+=2)}return null}(e,t,o,r.index)),null!==Yn)(Yn.__ngLastListenerFn__||Yn).__ngNextListenerFn__=a,Yn.__ngLastListenerFn__=a,Xe=!1;else{a=Pm(r,t,J,a,!1);const oi=n.listen(an,o,a);be.push(a,oi),R&&R.push(o,Lt,yn,yn+1)}}else a=Pm(r,t,J,a,!1);const lt=r.outputs;let It;if(Xe&&null!==lt&&(It=lt[o])){const zt=It.length;if(zt)for(let an=0;an-1?yr(e.index,t):t);let D=Rm(t,n,r,l),R=a.__ngNextListenerFn__;for(;R;)D=Rm(t,n,R,l)&&D,R=R.__ngNextListenerFn__;return o&&!1===D&&l.preventDefault(),D}}function Fm(e=1){return function $t(e){return(wn.lFrame.contextLView=function bt(e,t){for(;e>0;)t=t[hr],e--;return t}(e,wn.lFrame.contextLView))[vi]}(e)}function z0(e,t){let n=null;const r=function ai(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(!(1&n))return t[n+1]}return null}(e);for(let o=0;o>17&32767}function Xu(e){return 2|e}function Jo(e){return(131068&e)>>2}function eh(e,t){return-131069&e|t<<2}function th(e){return 1|e}function zm(e,t,n,r,o){const a=e[n+1],l=null===t;let g=r?Ro(a):Jo(a),D=!1;for(;0!==g&&(!1===D||l);){const J=e[g+1];Z0(e[g],t)&&(D=!0,e[g+1]=r?th(J):Xu(J)),g=r?Ro(J):Jo(J)}D&&(e[n+1]=r?Xu(a):th(a))}function Z0(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Ma(e,t)>=0}const br={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Gm(e){return e.substring(br.key,br.keyEnd)}function $m(e,t){const n=br.textEnd;return n===t?-1:(t=br.keyEnd=function eD(e,t,n){for(;t32;)t++;return t}(e,br.key=t,n),Xa(e,t,n))}function Xa(e,t,n){for(;t=0;n=$m(t,n))_s(e,Gm(t),!0)}function Vs(e,t,n,r){const o=Vt(),a=ci(),l=is(2);a.firstUpdatePass&&Xm(a,e,l,r),t!==Jn&&jr(o,l,t)&&tg(a,a.data[Zt()],o,o[Dn],e,o[l+1]=function uD(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=he(mo(e)))),e}(t,n),r,l)}function Us(e,t,n,r){const o=ci(),a=is(2);o.firstUpdatePass&&Xm(o,null,a,r);const l=Vt();if(n!==Jn&&jr(l,a,n)){const g=o.data[Zt()];if(ig(g,r)&&!Jm(o,a)){let D=r?g.classesWithoutHost:g.stylesWithoutHost;null!==D&&(n=U(D,n||"")),Gu(o,g,l,n,r)}else!function dD(e,t,n,r,o,a,l,g){o===Jn&&(o=Pt);let D=0,R=0,J=0=e.expandoStartIndex}function Xm(e,t,n,r){const o=e.data;if(null===o[n+1]){const a=o[Zt()],l=Jm(e,n);ig(a,r)&&null===t&&!l&&(t=!1),t=function rD(e,t,n,r){const o=ya(e);let a=r?t.residualClasses:t.residualStyles;if(null===o)0===(r?t.classBindings:t.styleBindings)&&(n=Ql(n=rh(null,e,t,n,r),t.attrs,r),a=null);else{const l=t.directiveStylingLast;if(-1===l||e[l]!==o)if(n=rh(o,e,t,n,r),null===a){let D=function sD(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==Jo(r))return e[Ro(r)]}(e,t,r);void 0!==D&&Array.isArray(D)&&(D=rh(null,e,t,D[1],r),D=Ql(D,t.attrs,r),function oD(e,t,n,r){e[Ro(n?t.classBindings:t.styleBindings)]=r}(e,t,r,D))}else a=function aD(e,t,n){let r;const o=t.directiveEnd;for(let a=1+t.directiveStylingLast;a0)&&(R=!0)):J=n,o)if(0!==D){const Xe=Ro(e[g+1]);e[r+1]=od(Xe,g),0!==Xe&&(e[Xe+1]=eh(e[Xe+1],r)),e[g+1]=function $0(e,t){return 131071&e|t<<17}(e[g+1],r)}else e[r+1]=od(g,0),0!==g&&(e[g+1]=eh(e[g+1],r)),g=r;else e[r+1]=od(D,0),0===g?g=r:e[D+1]=eh(e[D+1],r),D=r;R&&(e[r+1]=Xu(e[r+1])),zm(e,J,r,!0),zm(e,J,r,!1),function Q0(e,t,n,r,o){const a=o?e.residualClasses:e.residualStyles;null!=a&&"string"==typeof t&&Ma(a,t)>=0&&(n[r+1]=th(n[r+1]))}(t,J,e,r,a),l=od(g,D),a?t.classBindings=l:t.styleBindings=l}(o,a,t,n,l,r)}}function rh(e,t,n,r,o){let a=null;const l=n.directiveEnd;let g=n.directiveStylingLast;for(-1===g?g=n.directiveStart:g++;g0;){const D=e[o],R=Array.isArray(D),J=R?D[1]:D,be=null===J;let Xe=n[o+1];Xe===Jn&&(Xe=be?Pt:void 0);let lt=be?Id(Xe,r):J===r?Xe:void 0;if(R&&!ad(lt)&&(lt=Id(D,r)),ad(lt)&&(g=lt,l))return g;const It=e[o+1];o=l?Ro(It):Jo(It)}if(null!==t){let D=a?t.residualClasses:t.residualStyles;null!=D&&(g=Id(D,r))}return g}function ad(e){return void 0!==e}function ig(e,t){return 0!=(e.flags&(t?8:16))}function rg(e,t=""){const n=Vt(),r=ci(),o=e+Fn,a=r.firstCreatePass?Ya(r,o,1,t,null):r.data[o],l=sg(r,n,a,t,e);n[o]=l,As()&&Mc(r,n,l,a),ns(a,!1)}let sg=(e,t,n,r,o)=>(rs(!0),function Tc(e,t){return e.createText(t)}(t[Dn],r));function sh(e){return ld("",e,""),sh}function ld(e,t,n){const r=Vt(),o=Ga(r,e,t,n);return o!==Jn&&vo(r,Zt(),o),ld}function oh(e,t,n,r,o){const a=Vt(),l=$a(a,e,t,n,r,o);return l!==Jn&&vo(a,Zt(),l),oh}function ah(e,t,n,r,o,a,l){const g=Vt(),D=function Wa(e,t,n,r,o,a,l,g){const R=qc(e,gs(),n,o,l);return is(3),R?t+we(n)+r+we(o)+a+we(l)+g:Jn}(g,e,t,n,r,o,a,l);return D!==Jn&&vo(g,Zt(),D),ah}function hg(e,t,n){Us(_s,to,Ga(Vt(),e,t,n),!0)}function fg(e,t,n,r,o){Us(_s,to,$a(Vt(),e,t,n,r,o),!0)}function pg(e,t,n,r,o,a,l,g,D){Us(_s,to,function Ka(e,t,n,r,o,a,l,g,D,R){const be=ws(e,gs(),n,o,l,D);return is(4),be?t+we(n)+r+we(o)+a+we(l)+g+we(D)+R:Jn}(Vt(),e,t,n,r,o,a,l,g,D),!0)}function lh(e,t,n){const r=Vt();return jr(r,Gs(),t)&&vs(ci(),Un(),r,e,t,r[Dn],n,!0),lh}function ch(e,t,n){const r=Vt();if(jr(r,Gs(),t)){const a=ci(),l=Un();vs(a,l,r,e,t,Zp(ya(a.data),l,r),n,!0)}return ch}const Xo=void 0;var OD=["en",[["a","p"],["AM","PM"],Xo],[["AM","PM"],Xo,Xo],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Xo,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Xo,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Xo,"{1} 'at' {0}",Xo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function xD(e){const n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let el={};function dh(e){const t=function ID(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=Ag(t);if(n)return n;const r=t.split("-")[0];if(n=Ag(r),n)return n;if("en"===r)return OD;throw new X(701,!1)}function Tg(e){return dh(e)[tl.PluralCase]}function Ag(e){return e in el||(el[e]=Bt.ng&&Bt.ng.common&&Bt.ng.common.locales&&Bt.ng.common.locales[e]),el[e]}var tl=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(tl||{});const nl="en-US";let Sg=nl;function fh(e,t,n,r,o){if(e=ge(e),Array.isArray(e))for(let a=0;a>20;if(Zo(e)||!e.multi){const lt=new zo(R,o,ja),It=mh(D,t,o?J:J+Xe,be);-1===It?(dn(pe(g,l),a,D),ph(a,e,t.length),t.push(D),g.directiveStart++,g.directiveEnd++,o&&(g.providerIndexes+=1048576),n.push(lt),l.push(lt)):(n[It]=lt,l[It]=lt)}else{const lt=mh(D,t,J+Xe,be),It=mh(D,t,J,J+Xe),an=It>=0&&n[It];if(o&&!an||!o&&!(lt>=0&&n[lt])){dn(pe(g,l),a,D);const yn=function xC(e,t,n,r,o){const a=new zo(e,n,ja);return a.multi=[],a.index=t,a.componentProviders=0,qg(a,o,r&&!n),a}(o?MC:wC,n.length,o,r,R);!o&&an&&(n[It].providerFactory=yn),ph(a,e,t.length,0),t.push(D),g.directiveStart++,g.directiveEnd++,o&&(g.providerIndexes+=1048576),n.push(yn),l.push(yn)}else ph(a,e,lt>-1?lt:It,qg(n[o?It:lt],R,!o&&r));!o&&r&&an&&n[It].componentProviders++}}}function ph(e,t,n,r){const o=Zo(t),a=function yy(e){return!!e.useClass}(t);if(o||a){const D=(a?ge(t.useClass):t).prototype.ngOnDestroy;if(D){const R=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){const J=R.indexOf(n);-1===J?R.push(n,[r,D]):R[J+1].push(r,D)}else R.push(n,D)}}}function qg(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function mh(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>function SC(e,t,n){const r=ci();if(r.firstCreatePass){const o=Xi(e);fh(n,r.data,r.blueprint,o,!0),fh(t,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,t)}}class ea{}class Xg{}function OC(e,t){return new _h(e,null!=t?t:null,[])}class _h extends ea{constructor(t,n,r){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new rm(this);const o=Di(t);this._bootstrapComponents=_o(o.bootstrap),this._r3Injector=mp(t,n,[{provide:ea,useValue:this},{provide:kl,useValue:this.componentFactoryResolver},...r],he(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class vh extends Xg{constructor(t){super(),this.moduleType=t}create(t){return new _h(this.moduleType,t,[])}}class e_ extends ea{constructor(t){super(),this.componentFactoryResolver=new rm(this),this.instance=null;const n=new kc([...t.providers,{provide:ea,useValue:this},{provide:kl,useValue:this.componentFactoryResolver}],t.parent||Lc(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function t_(e,t,n=null){return new e_({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}let RC=(()=>{var e;class t{constructor(r){this._injector=r,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(r){if(!r.standalone)return null;if(!this.cachedInjectors.has(r)){const o=qf(0,r.type),a=o.length>0?t_([o],this._injector,`Standalone[${r.type.name}]`):null;this.cachedInjectors.set(r,a)}return this.cachedInjectors.get(r)}ngOnDestroy(){try{for(const r of this.cachedInjectors.values())null!==r&&r.destroy()}finally{this.cachedInjectors.clear()}}}return(e=t).\u0275prov=vt({token:e,providedIn:"environment",factory:()=>new e(le(Zs))}),t})();function n_(e){e.getStandaloneInjector=t=>t.get(RC).getOrCreateStandaloneInjector(e)}function c_(e,t,n){const r=gr()+e,o=Vt();return o[r]===Jn?Xs(o,r,n?t.call(n):t()):Gl(o,r)}function d_(e,t,n,r){return g_(Vt(),gr(),e,t,n,r)}function u_(e,t,n,r,o){return __(Vt(),gr(),e,t,n,r,o)}function h_(e,t,n,r,o,a){return v_(Vt(),gr(),e,t,n,r,o,a)}function f_(e,t,n,r,o,a,l){return function b_(e,t,n,r,o,a,l,g,D){const R=t+n;return ws(e,R,o,a,l,g)?Xs(e,R+4,D?r.call(D,o,a,l,g):r(o,a,l,g)):tc(e,R+4)}(Vt(),gr(),e,t,n,r,o,a,l)}function p_(e,t,n,r,o,a,l,g){const D=gr()+e,R=Vt(),J=ws(R,D,n,r,o,a);return jr(R,D+4,l)||J?Xs(R,D+5,g?t.call(g,n,r,o,a,l):t(n,r,o,a,l)):Gl(R,D+5)}function m_(e,t,n,r){return function y_(e,t,n,r,o,a){let l=t+n,g=!1;for(let D=0;D=0;n--){const r=t[n];if(e===r.name)return r}}(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(null!==(a=n.destroyHooks)&&void 0!==a?a:n.destroyHooks=[]).push(o,r.onDestroy)):r=n.data[o];const l=r.factory||(r.factory=mr(r.type)),D=Ye(ja);try{const R=Ta(!1),J=l();return Ta(R),function L0(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,Vt(),o,J),J}finally{Ye(D)}}function D_(e,t,n){const r=e+Fn,o=Vt(),a=Ns(o,r);return nc(o,r)?g_(o,gr(),t,a.transform,n,a):a.transform(n)}function C_(e,t,n,r){const o=e+Fn,a=Vt(),l=Ns(a,o);return nc(a,o)?__(a,gr(),t,l.transform,n,r,l):l.transform(n,r)}function T_(e,t,n,r,o){const a=e+Fn,l=Vt(),g=Ns(l,a);return nc(l,a)?v_(l,gr(),t,g.transform,n,r,o,g):g.transform(n,r,o)}function nc(e,t){return e[sn].data[t].pure}function WC(){return this._results[Symbol.iterator]()}class fd{get changes(){return this._changes||(this._changes=new qs)}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=fd.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=WC)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){const r=this;r.dirty=!1;const o=function Ss(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function zv(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r0&&(n[o-1][ki]=t),r{class t{}return t.__NG_ELEMENT_ID__=JC,t})();const ZC=ic,qC=class extends ZC{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){var t;return(null===(t=this._declarationTContainer.tView)||void 0===t?void 0:t.ssrId)||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){const o=function KC(e,t,n,r){var o,a;const l=t.tView,R=Gc(e,l,n,4096&e[Nn]?4096:16,null,t,null,null,null,null!==(o=null==r?void 0:r.injector)&&void 0!==o?o:null,null!==(a=null==r?void 0:r.hydrationInfo)&&void 0!==a?a:null);R[qi]=e[t.index];const be=e[fr];return null!==be&&(R[fr]=be.createEmbeddedView(l)),Nu(l,R,n),R}(this._declarationLView,this._declarationTContainer,t,{injector:n,hydrationInfo:r});return new Yl(o)}};function JC(){return pd(dr(),Vt())}function pd(e,t){return 4&e.type?new qC(t,e,Va(e,t)):null}let gd=(()=>{class t{}return t.__NG_ELEMENT_ID__=rT,t})();function rT(){return I_(dr(),Vt())}const sT=gd,x_=class extends sT{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Va(this._hostTNode,this._hostLView)}get injector(){return new Mi(this._hostTNode,this._hostLView)}get parentInjector(){const t=Tt(this._hostTNode,this._hostLView);if(El(t)){const n=Mo(t,this._hostLView),r=Go(t);return new Mi(n[sn].data[r+8],n)}return new Mi(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=O_(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-Bi}createEmbeddedView(t,n,r){let o,a;"number"==typeof r?o=r:null!=r&&(o=r.index,a=r.injector);const g=t.createEmbeddedViewImpl(n||{},a,null);return this.insertImpl(g,o,false),g}createComponent(t,n,r,o,a){var l,D;const R=t&&!function Tl(e){return"function"==typeof e}(t);let J;if(R)J=n;else{const Lt=n||{};J=Lt.index,r=Lt.injector,o=Lt.projectableNodes,a=Lt.environmentInjector||Lt.ngModuleRef}const be=R?t:new zl(cn(t)),Xe=r||this.parentInjector;if(!a&&null==be.ngModule){const Yn=(R?Xe:this.parentInjector).get(Zs,null);Yn&&(a=Yn)}const lt=cn(null!==(l=be.componentType)&&void 0!==l?l:{}),It=(null==lt?void 0:lt.id,null),zt=null!==(D=null==It?void 0:It.firstChild)&&void 0!==D?D:null,an=be.create(Xe,o,zt,a),yn=!!It&&!Ec(this._hostTNode);return this.insertImpl(an.hostView,J,yn),an}insert(t,n){return this.insertImpl(t,n,!1)}insertImpl(t,n,r){const o=t._lView;if(function sa(e){return Vi(e[gi])}(o)){const D=this.indexOf(t);if(-1!==D)this.detach(D);else{const R=o[gi],J=new x_(R,R[wi],R[gi]);J.detach(J.indexOf(t))}}const l=this._adjustIndex(n),g=this._lContainer;return QC(g,o,l,!r),t.attachToViewContainerRef(),Zh(yh(g),l,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=O_(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),r=Sc(this._lContainer,n);r&&(fc(yh(this._lContainer),n),jd(r[sn],r))}detach(t){const n=this._adjustIndex(t,-1),r=Sc(this._lContainer,n);return r&&null!=fc(yh(this._lContainer),n)?new Yl(r):null}_adjustIndex(t,n=0){return null==t?this.length+n:t}};function O_(e){return e[8]}function yh(e){return e[8]||(e[8]=[])}function I_(e,t){let n;const r=t[e.index];return Vi(r)?n=r:(n=$p(r,t,null,e),t[e.index]=n,$c(t,n)),R_(n,t,e,r),new x_(n,e,t)}let R_=function P_(e,t,n,r){if(e[Ji])return;let o;o=8&n.type?Gn(r):function oT(e,t){const n=e[Dn],r=n.createComment(""),o=cr(t,e);return Wo(n,wc(n,o),r,function Bb(e,t){return e.nextSibling(t)}(n,o),!1),r}(t,n),e[Ji]=o};class Eh{constructor(t){this.queryList=t,this.matches=null}clone(){return new Eh(this.queryList)}setDirty(){this.queryList.setDirty()}}class Dh{constructor(t=[]){this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const r=null!==t.contentQueries?t.contentQueries[0]:n.length,o=[];for(let a=0;a0)r.push(l[g/2]);else{const R=a[g+1],J=t[-D];for(let be=Bi;be{var e;class t{constructor(){var r;this.initialized=!1,this.done=!1,this.donePromise=new Promise((o,a)=>{this.resolve=o,this.reject=a}),this.appInits=null!==(r=Le(ov,{optional:!0}))&&void 0!==r?r:[]}runInitializers(){if(this.initialized)return;const r=[];for(const a of this.appInits){const l=a();if(Ku(l))r.push(l);else if(Om(l)){const g=new Promise((D,R)=>{l.subscribe({complete:D,error:R})});r.push(g)}}const o=()=>{this.done=!0,this.resolve()};Promise.all(r).then(()=>{o()}).catch(a=>{this.reject(a)}),0===r.length&&o(),this.initialized=!0}}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275prov=vt({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),av=(()=>{var e;class t{log(r){console.log(r)}warn(r){console.warn(r)}}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275prov=vt({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();const vd=new Ei("LocaleId",{providedIn:"root",factory:()=>Le(vd,Ae.Optional|Ae.SkipSelf)||function NT(){return typeof $localize<"u"&&$localize.locale||nl}()}),LT=new Ei("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});let lv=(()=>{var e;class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new f.X(!1)}add(){this.hasPendingTasks.next(!0);const r=this.taskId++;return this.pendingTasks.add(r),r}remove(r){this.pendingTasks.delete(r),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275prov=vt({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();class BT{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let VT=(()=>{var e;class t{compileModuleSync(r){return new vh(r)}compileModuleAsync(r){return Promise.resolve(this.compileModuleSync(r))}compileModuleAndAllComponentsSync(r){const o=this.compileModuleSync(r),l=_o(Di(r).declarations).reduce((g,D)=>{const R=cn(D);return R&&g.push(new zl(R)),g},[]);return new BT(o,l)}compileModuleAndAllComponentsAsync(r){return Promise.resolve(this.compileModuleAndAllComponentsSync(r))}clearCache(){}clearCacheFor(r){}getModuleId(r){}}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275prov=vt({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const hv=new Ei(""),fv=new Ei("");let Fh,sA=(()=>{var e;class t{constructor(r,o,a){this._ngZone=r,this.registry=o,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Fh||(function oA(e){Fh=e}(a),a.addToWindow(o)),this._watchAngularEvents(),r.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Dr.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let r=this._callbacks.pop();clearTimeout(r.timeoutId),r.doneCb(this._didWork)}this._didWork=!1});else{let r=this.getPendingTasks();this._callbacks=this._callbacks.filter(o=>!o.updateCb||!o.updateCb(r)||(clearTimeout(o.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(r=>({source:r.source,creationLocation:r.creationLocation,data:r.data})):[]}addCallback(r,o,a){let l=-1;o&&o>0&&(l=setTimeout(()=>{this._callbacks=this._callbacks.filter(g=>g.timeoutId!==l),r(this._didWork,this.getPendingTasks())},o)),this._callbacks.push({doneCb:r,timeoutId:l,updateCb:a})}whenStable(r,o,a){if(a&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(r,o,a),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(r){this.registry.registerApplication(r,this)}unregisterApplication(r){this.registry.unregisterApplication(r)}findProviders(r,o,a){return[]}}return(e=t).\u0275fac=function(r){return new(r||e)(le(Dr),le(pv),le(fv))},e.\u0275prov=vt({token:e,factory:e.\u0275fac}),t})(),pv=(()=>{var e;class t{constructor(){this._applications=new Map}registerApplication(r,o){this._applications.set(r,o)}unregisterApplication(r){this._applications.delete(r)}unregisterAllApplications(){this._applications.clear()}getTestability(r){return this._applications.get(r)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(r,o=!0){var a,l;return null!==(a=null===(l=Fh)||void 0===l?void 0:l.findTestabilityInTree(this,r,o))&&void 0!==a?a:null}}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275prov=vt({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})(),Po=null;const mv=new Ei("AllowMultipleToken"),Nh=new Ei("PlatformDestroyListeners"),Lh=new Ei("appBootstrapListener");class cA{constructor(t,n){this.name=t,this.token=n}}function vv(e,t,n=[]){const r=`Platform: ${t}`,o=new Ei(r);return(a=[])=>{let l=kh();if(!l||l.injector.get(mv,!1)){const g=[...n,...a,{provide:o,useValue:!0}];e?e(g):function dA(e){if(Po&&!Po.get(mv,!1))throw new X(400,!1);(function gv(){!function cl(e){ia=e}(()=>{throw new X(600,!1)})})(),Po=e;const t=e.get(yv);(function _v(e){const t=e.get(ip,null);null==t||t.forEach(n=>n())})(e)}(function bv(e=[],t){return Bs.create({name:t,providers:[{provide:su,useValue:"platform"},{provide:Nh,useValue:new Set([()=>Po=null])},...e]})}(g,r))}return function hA(e){const t=kh();if(!t)throw new X(401,!1);return t}()}}function kh(){var e,t;return null!==(e=null===(t=Po)||void 0===t?void 0:t.get(yv))&&void 0!==e?e:null}let yv=(()=>{var e;class t{constructor(r){this._injector=r,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(r,o){const a=function fA(e="zone.js",t){return"noop"===e?new sE:"zone.js"===e?new Dr(t):e}(null==o?void 0:o.ngZone,function Ev(e){var t,n;return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:null!==(t=null==e?void 0:e.eventCoalescing)&&void 0!==t&&t,shouldCoalesceRunChangeDetection:null!==(n=null==e?void 0:e.runCoalescing)&&void 0!==n&&n}}({eventCoalescing:null==o?void 0:o.ngZoneEventCoalescing,runCoalescing:null==o?void 0:o.ngZoneRunCoalescing}));return a.run(()=>{const l=function IC(e,t,n){return new _h(e,t,n)}(r.moduleType,this.injector,function Sv(e){return[{provide:Dr,useFactory:e},{provide:Pl,multi:!0,useFactory:()=>{const t=Le(mA,{optional:!0});return()=>t.initialize()}},{provide:Av,useFactory:pA},{provide:yp,useFactory:Ep}]}(()=>a)),g=l.injector.get(Io,null);return a.runOutsideAngular(()=>{const D=a.onError.subscribe({next:R=>{g.handleError(R)}});l.onDestroy(()=>{yd(this._modules,l),D.unsubscribe()})}),function Dv(e,t,n){try{const r=n();return Ku(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(g,a,()=>{const D=l.injector.get(Ih);return D.runInitializers(),D.donePromise.then(()=>(function wg(e){oe(e,"Expected localeId to be defined"),"string"==typeof e&&(Sg=e.toLowerCase().replace(/_/g,"-"))}(l.injector.get(vd,nl)||nl),this._moduleDoBootstrap(l),l))})})}bootstrapModule(r,o=[]){const a=Cv({},o);return function aA(e,t,n){const r=new vh(n);return Promise.resolve(r)}(0,0,r).then(l=>this.bootstrapModuleFactory(l,a))}_moduleDoBootstrap(r){const o=r.injector.get(sl);if(r._bootstrapComponents.length>0)r._bootstrapComponents.forEach(a=>o.bootstrap(a));else{if(!r.instance.ngDoBootstrap)throw new X(-403,!1);r.instance.ngDoBootstrap(o)}this._modules.push(r)}onDestroy(r){this._destroyListeners.push(r)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new X(404,!1);this._modules.slice().forEach(o=>o.destroy()),this._destroyListeners.forEach(o=>o());const r=this._injector.get(Nh,null);r&&(r.forEach(o=>o()),r.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return(e=t).\u0275fac=function(r){return new(r||e)(le(Bs))},e.\u0275prov=vt({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();function Cv(e,t){return Array.isArray(t)?t.reduce(Cv,e):{...e,...t}}let sl=(()=>{var e;class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=Le(Av),this.zoneIsStable=Le(yp),this.componentTypes=[],this.components=[],this.isStable=Le(lv).hasPendingTasks.pipe((0,q.w)(r=>r?(0,W.of)(!1):this.zoneIsStable),(0,ae.x)(),(0,re.B)()),this._injector=Le(Zs)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(r,o){const a=r instanceof ap;if(!this._injector.get(Ih).done)throw!a&&Si(r),new X(405,!1);let g;g=a?r:this._injector.get(kl).resolveComponentFactory(r),this.componentTypes.push(g.componentType);const D=function lA(e){return e.isBoundToModule}(g)?void 0:this._injector.get(ea),J=g.create(Bs.NULL,[],o||g.selector,D),be=J.location.nativeElement,Xe=J.injector.get(hv,null);return null==Xe||Xe.registerApplication(be),J.onDestroy(()=>{this.detachView(J.hostView),yd(this.components,J),null==Xe||Xe.unregisterApplication(be)}),this._loadComponent(J),J}tick(){if(this._runningTick)throw new X(101,!1);try{this._runningTick=!0;for(let r of this._views)r.detectChanges()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1}}attachView(r){const o=r;this._views.push(o),o.attachToAppRef(this)}detachView(r){const o=r;yd(this._views,o),o.detachFromAppRef()}_loadComponent(r){this.attachView(r.hostView),this.tick(),this.components.push(r);const o=this._injector.get(Lh,[]);o.push(...this._bootstrapListeners),o.forEach(a=>a(r))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(r=>r()),this._views.slice().forEach(r=>r.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(r){return this._destroyListeners.push(r),()=>yd(this._destroyListeners,r)}destroy(){if(this._destroyed)throw new X(406,!1);const r=this._injector;r.destroy&&!r.destroyed&&r.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275prov=vt({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function yd(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Av=new Ei("",{providedIn:"root",factory:()=>Le(Io).handleError.bind(void 0)});function pA(){const e=Le(Dr),t=Le(Io);return n=>e.runOutsideAngular(()=>t.handleError(n))}let mA=(()=>{var e;class t{constructor(){this.zone=Le(Dr),this.applicationRef=Le(sl)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){var r;null===(r=this._onMicrotaskEmptySubscription)||void 0===r||r.unsubscribe()}}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275prov=vt({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function _A(){}let vA=(()=>{class t{}return t.__NG_ELEMENT_ID__=bA,t})();function bA(e){return function yA(e,t,n){if(Ui(e)&&!n){const r=yr(e.index,t);return new Yl(r,r)}return 47&e.type?new Yl(t[Ti],t):null}(dr(),Vt(),16==(16&e))}class Ov{constructor(){}supports(t){return Zc(t)}create(t){return new SA(t)}}const AA=(e,t)=>t;class SA{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||AA}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,a=null;for(;n||r;){const l=!r||n&&n.currentIndex{l=this._trackByFn(o,g),null!==n&&Object.is(n.trackById,l)?(r&&(n=this._verifyReinsertion(n,g,l,o)),Object.is(n.item,g)||this._addIdentityChange(n,g)):(n=this._mismatch(n,g,l,o),r=!0),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let a;return null===t?a=this._itTail:(a=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,a,o)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,a,o)):t=this._addAfter(new wA(n,r),a,o),t}_verifyReinsertion(t,n,r,o){let a=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==a?t=this._reinsertAfter(a,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const o=t._prevRemoved,a=t._nextRemoved;return null===o?this._removalsHead=a:o._nextRemoved=a,null===a?this._removalsTail=o:a._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const o=null===n?this._itHead:n._next;return t._next=o,t._prev=n,null===o?this._itTail=t:o._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new Iv),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Iv),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class wA{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class MA{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class Iv{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new MA,this.map.set(n,r)),r.add(t)}get(t,n){const o=this.map.get(t);return o?o.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Rv(e,t,n){const r=e.previousIndex;if(null===r)return r;let o=0;return n&&r{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const a=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,a)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const o=this._records.get(t);this._maybeAddToChanges(o,n);const a=o._prev,l=o._next;return a&&(a._next=l),l&&(l._prev=a),o._next=null,o._prev=null,o}const r=new OA(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}}class OA{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Fv(){return new jh([new Ov])}let jh=(()=>{var e;class t{constructor(r){this.factories=r}static create(r,o){if(null!=o){const a=o.factories.slice();r=r.concat(a)}return new t(r)}static extend(r){return{provide:t,useFactory:o=>t.create(r,o||Fv()),deps:[[t,new gc,new mc]]}}find(r){const o=this.factories.find(a=>a.supports(r));if(null!=o)return o;throw new X(901,!1)}}return(e=t).\u0275prov=vt({token:e,providedIn:"root",factory:Fv}),t})();function Nv(){return new Yh([new Pv])}let Yh=(()=>{var e;class t{constructor(r){this.factories=r}static create(r,o){if(o){const a=o.factories.slice();r=r.concat(a)}return new t(r)}static extend(r){return{provide:t,useFactory:o=>t.create(r,o||Nv()),deps:[[t,new gc,new mc]]}}find(r){const o=this.factories.find(a=>a.supports(r));if(o)return o;throw new X(901,!1)}}return(e=t).\u0275prov=vt({token:e,providedIn:"root",factory:Nv}),t})();const PA=vv(null,"core",[]);let FA=(()=>{var e;class t{constructor(r){}}return(e=t).\u0275fac=function(r){return new(r||e)(le(sl))},e.\u0275mod=Ht({type:e}),e.\u0275inj=Yt({}),t})();function GA(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function WA(e){const t=cn(e);if(!t)return null;const n=new zl(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}},6223:(xt,Ke,p)=>{"use strict";p.d(Ke,{Cf:()=>Ne,F:()=>Dt,Fj:()=>$e,JJ:()=>Ut,JL:()=>Rn,JU:()=>q,NI:()=>j,On:()=>rt,Q7:()=>Ar,UX:()=>ro,Zs:()=>pr,_:()=>si,_Y:()=>Rt,a5:()=>Yt,c5:()=>Sr,gN:()=>At,kI:()=>x,nD:()=>hs,oH:()=>Si,sg:()=>ui,u5:()=>ys});var i=p(5879),s=p(6814),m=p(5253),L=p(7504),f=p(6124);let W=(()=>{var B;class w{constructor(V,xe){this._renderer=V,this._elementRef=xe,this.onChange=jt=>{},this.onTouched=()=>{}}setProperty(V,xe){this._renderer.setProperty(this._elementRef.nativeElement,V,xe)}registerOnTouched(V){this.onTouched=V}registerOnChange(V){this.onChange=V}setDisabledState(V){this.setProperty("disabled",V)}}return(B=w).\u0275fac=function(V){return new(V||B)(i.Y36(i.Qsj),i.Y36(i.SBq))},B.\u0275dir=i.lG2({type:B}),w})(),re=(()=>{var B;class w extends W{}return(B=w).\u0275fac=function(){let Ce;return function(xe){return(Ce||(Ce=i.n5z(B)))(xe||B)}}(),B.\u0275dir=i.lG2({type:B,features:[i.qOj]}),w})();const q=new i.OlP("NgValueAccessor"),ne={provide:q,useExisting:(0,i.Gpc)(()=>$e),multi:!0},U=new i.OlP("CompositionEventMode");let $e=(()=>{var B;class w extends W{constructor(V,xe,jt){super(V,xe),this._compositionMode=jt,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function he(){const B=(0,s.q)()?(0,s.q)().getUserAgent():"";return/android (\d+)/.test(B.toLowerCase())}())}writeValue(V){this.setProperty("value",null==V?"":V)}_handleInput(V){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(V)}_compositionStart(){this._composing=!0}_compositionEnd(V){this._composing=!1,this._compositionMode&&this.onChange(V)}}return(B=w).\u0275fac=function(V){return new(V||B)(i.Y36(i.Qsj),i.Y36(i.SBq),i.Y36(U,8))},B.\u0275dir=i.lG2({type:B,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(V,xe){1&V&&i.NdJ("input",function(On){return xe._handleInput(On.target.value)})("blur",function(){return xe.onTouched()})("compositionstart",function(){return xe._compositionStart()})("compositionend",function(On){return xe._compositionEnd(On.target.value)})},features:[i._Bn([ne]),i.qOj]}),w})();function $(B){return null==B||("string"==typeof B||Array.isArray(B))&&0===B.length}function ge(B){return null!=B&&"number"==typeof B.length}const Ne=new i.OlP("NgValidators"),ie=new i.OlP("NgAsyncValidators"),ee=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class x{static min(w){return function X(B){return w=>{if($(w.value)||$(B))return null;const Ce=parseFloat(w.value);return!isNaN(Ce)&&Ce{if($(w.value)||$(B))return null;const Ce=parseFloat(w.value);return!isNaN(Ce)&&Ce>B?{max:{max:B,actual:w.value}}:null}}(w)}static required(w){return we(w)}static requiredTrue(w){return Ie(w)}static email(w){return function te(B){return $(B.value)||ee.test(B.value)?null:{email:!0}}(w)}static minLength(w){return function ce(B){return w=>$(w.value)||!ge(w.value)?null:w.value.lengthge(w.value)&&w.value.length>B?{maxlength:{requiredLength:B,actualLength:w.value.length}}:null}function He(B){if(!B)return nt;let w,Ce;return"string"==typeof B?(Ce="","^"!==B.charAt(0)&&(Ce+="^"),Ce+=B,"$"!==B.charAt(B.length-1)&&(Ce+="$"),w=new RegExp(Ce)):(Ce=B.toString(),w=B),V=>{if($(V.value))return null;const xe=V.value;return w.test(xe)?null:{pattern:{requiredPattern:Ce,actualValue:xe}}}}function nt(B){return null}function _t(B){return null!=B}function dt(B){return(0,i.QGY)(B)?(0,m.D)(B):B}function yt(B){let w={};return B.forEach(Ce=>{w=null!=Ce?{...w,...Ce}:w}),0===Object.keys(w).length?null:w}function ot(B,w){return w.map(Ce=>Ce(B))}function _e(B){return B.map(w=>function st(B){return!B.validate}(w)?w:Ce=>w.validate(Ce))}function Q(B){if(!B)return null;const w=B.filter(_t);return 0==w.length?null:function(Ce){return yt(ot(Ce,w))}}function qe(B){return null!=B?Q(_e(B)):null}function Te(B){if(!B)return null;const w=B.filter(_t);return 0==w.length?null:function(Ce){const V=ot(Ce,w).map(dt);return(0,L.D)(V).pipe((0,f.U)(yt))}}function se(B){return null!=B?Te(_e(B)):null}function Se(B,w){return null===B?[w]:Array.isArray(B)?[...B,w]:[B,w]}function N(B){return B._rawValidators}function oe(B){return B._rawAsyncValidators}function ye(B){return B?Array.isArray(B)?B:[B]:[]}function Fe(B,w){return Array.isArray(B)?B.includes(w):B===w}function Je(B,w){const Ce=ye(w);return ye(B).forEach(xe=>{Fe(Ce,xe)||Ce.push(xe)}),Ce}function ht(B,w){return ye(w).filter(Ce=>!Fe(B,Ce))}class vt{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(w){this._rawValidators=w||[],this._composedValidatorFn=qe(this._rawValidators)}_setAsyncValidators(w){this._rawAsyncValidators=w||[],this._composedAsyncValidatorFn=se(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(w){this._onDestroyCallbacks.push(w)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(w=>w()),this._onDestroyCallbacks=[]}reset(w=void 0){this.control&&this.control.reset(w)}hasError(w,Ce){return!!this.control&&this.control.hasError(w,Ce)}getError(w,Ce){return this.control?this.control.getError(w,Ce):null}}class At extends vt{get formDirective(){return null}get path(){return null}}class Yt extends vt{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class on{constructor(w){this._cd=w}get isTouched(){var w;return!(null===(w=this._cd)||void 0===w||null===(w=w.control)||void 0===w||!w.touched)}get isUntouched(){var w;return!(null===(w=this._cd)||void 0===w||null===(w=w.control)||void 0===w||!w.untouched)}get isPristine(){var w;return!(null===(w=this._cd)||void 0===w||null===(w=w.control)||void 0===w||!w.pristine)}get isDirty(){var w;return!(null===(w=this._cd)||void 0===w||null===(w=w.control)||void 0===w||!w.dirty)}get isValid(){var w;return!(null===(w=this._cd)||void 0===w||null===(w=w.control)||void 0===w||!w.valid)}get isInvalid(){var w;return!(null===(w=this._cd)||void 0===w||null===(w=w.control)||void 0===w||!w.invalid)}get isPending(){var w;return!(null===(w=this._cd)||void 0===w||null===(w=w.control)||void 0===w||!w.pending)}get isSubmitted(){var w;return!(null===(w=this._cd)||void 0===w||!w.submitted)}}let Ut=(()=>{var B;class w extends on{constructor(V){super(V)}}return(B=w).\u0275fac=function(V){return new(V||B)(i.Y36(Yt,2))},B.\u0275dir=i.lG2({type:B,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(V,xe){2&V&&i.ekj("ng-untouched",xe.isUntouched)("ng-touched",xe.isTouched)("ng-pristine",xe.isPristine)("ng-dirty",xe.isDirty)("ng-valid",xe.isValid)("ng-invalid",xe.isInvalid)("ng-pending",xe.isPending)},features:[i.qOj]}),w})(),Rn=(()=>{var B;class w extends on{constructor(V){super(V)}}return(B=w).\u0275fac=function(V){return new(V||B)(i.Y36(At,10))},B.\u0275dir=i.lG2({type:B,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(V,xe){2&V&&i.ekj("ng-untouched",xe.isUntouched)("ng-touched",xe.isTouched)("ng-pristine",xe.isPristine)("ng-dirty",xe.isDirty)("ng-valid",xe.isValid)("ng-invalid",xe.isInvalid)("ng-pending",xe.isPending)("ng-submitted",xe.isSubmitted)},features:[i.qOj]}),w})();const En="VALID",un="INVALID",Kn="PENDING",mt="DISABLED";function Nt(B){return(en(B)?B.validators:B)||null}function ut(B,w){return(en(w)?w.asyncValidators:B)||null}function en(B){return null!=B&&!Array.isArray(B)&&"object"==typeof B}class Bn{constructor(w,Ce){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(w),this._assignAsyncValidators(Ce)}get validator(){return this._composedValidatorFn}set validator(w){this._rawValidators=this._composedValidatorFn=w}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(w){this._rawAsyncValidators=this._composedAsyncValidatorFn=w}get parent(){return this._parent}get valid(){return this.status===En}get invalid(){return this.status===un}get pending(){return this.status==Kn}get disabled(){return this.status===mt}get enabled(){return this.status!==mt}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(w){this._assignValidators(w)}setAsyncValidators(w){this._assignAsyncValidators(w)}addValidators(w){this.setValidators(Je(w,this._rawValidators))}addAsyncValidators(w){this.setAsyncValidators(Je(w,this._rawAsyncValidators))}removeValidators(w){this.setValidators(ht(w,this._rawValidators))}removeAsyncValidators(w){this.setAsyncValidators(ht(w,this._rawAsyncValidators))}hasValidator(w){return Fe(this._rawValidators,w)}hasAsyncValidator(w){return Fe(this._rawAsyncValidators,w)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(w={}){this.touched=!0,this._parent&&!w.onlySelf&&this._parent.markAsTouched(w)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(w=>w.markAllAsTouched())}markAsUntouched(w={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(Ce=>{Ce.markAsUntouched({onlySelf:!0})}),this._parent&&!w.onlySelf&&this._parent._updateTouched(w)}markAsDirty(w={}){this.pristine=!1,this._parent&&!w.onlySelf&&this._parent.markAsDirty(w)}markAsPristine(w={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(Ce=>{Ce.markAsPristine({onlySelf:!0})}),this._parent&&!w.onlySelf&&this._parent._updatePristine(w)}markAsPending(w={}){this.status=Kn,!1!==w.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!w.onlySelf&&this._parent.markAsPending(w)}disable(w={}){const Ce=this._parentMarkedDirty(w.onlySelf);this.status=mt,this.errors=null,this._forEachChild(V=>{V.disable({...w,onlySelf:!0})}),this._updateValue(),!1!==w.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...w,skipPristineCheck:Ce}),this._onDisabledChange.forEach(V=>V(!0))}enable(w={}){const Ce=this._parentMarkedDirty(w.onlySelf);this.status=En,this._forEachChild(V=>{V.enable({...w,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:w.emitEvent}),this._updateAncestors({...w,skipPristineCheck:Ce}),this._onDisabledChange.forEach(V=>V(!1))}_updateAncestors(w){this._parent&&!w.onlySelf&&(this._parent.updateValueAndValidity(w),w.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(w){this._parent=w}getRawValue(){return this.value}updateValueAndValidity(w={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===En||this.status===Kn)&&this._runAsyncValidator(w.emitEvent)),!1!==w.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!w.onlySelf&&this._parent.updateValueAndValidity(w)}_updateTreeValidity(w={emitEvent:!0}){this._forEachChild(Ce=>Ce._updateTreeValidity(w)),this.updateValueAndValidity({onlySelf:!0,emitEvent:w.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?mt:En}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(w){if(this.asyncValidator){this.status=Kn,this._hasOwnPendingAsyncValidator=!0;const Ce=dt(this.asyncValidator(this));this._asyncValidationSubscription=Ce.subscribe(V=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(V,{emitEvent:w})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(w,Ce={}){this.errors=w,this._updateControlsErrors(!1!==Ce.emitEvent)}get(w){let Ce=w;return null==Ce||(Array.isArray(Ce)||(Ce=Ce.split(".")),0===Ce.length)?null:Ce.reduce((V,xe)=>V&&V._find(xe),this)}getError(w,Ce){const V=Ce?this.get(Ce):this;return V&&V.errors?V.errors[w]:null}hasError(w,Ce){return!!this.getError(w,Ce)}get root(){let w=this;for(;w._parent;)w=w._parent;return w}_updateControlsErrors(w){this.status=this._calculateStatus(),w&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(w)}_initObservables(){this.valueChanges=new i.vpe,this.statusChanges=new i.vpe}_calculateStatus(){return this._allControlsDisabled()?mt:this.errors?un:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Kn)?Kn:this._anyControlsHaveStatus(un)?un:En}_anyControlsHaveStatus(w){return this._anyControls(Ce=>Ce.status===w)}_anyControlsDirty(){return this._anyControls(w=>w.dirty)}_anyControlsTouched(){return this._anyControls(w=>w.touched)}_updatePristine(w={}){this.pristine=!this._anyControlsDirty(),this._parent&&!w.onlySelf&&this._parent._updatePristine(w)}_updateTouched(w={}){this.touched=this._anyControlsTouched(),this._parent&&!w.onlySelf&&this._parent._updateTouched(w)}_registerOnCollectionChange(w){this._onCollectionChange=w}_setUpdateStrategy(w){en(w)&&null!=w.updateOn&&(this._updateOn=w.updateOn)}_parentMarkedDirty(w){return!w&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(w){return null}_assignValidators(w){this._rawValidators=Array.isArray(w)?w.slice():w,this._composedValidatorFn=function kt(B){return Array.isArray(B)?qe(B):B||null}(this._rawValidators)}_assignAsyncValidators(w){this._rawAsyncValidators=Array.isArray(w)?w.slice():w,this._composedAsyncValidatorFn=function Ct(B){return Array.isArray(B)?se(B):B||null}(this._rawAsyncValidators)}}class gt extends Bn{constructor(w,Ce,V){super(Nt(Ce),ut(V,Ce)),this.controls=w,this._initObservables(),this._setUpdateStrategy(Ce),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(w,Ce){return this.controls[w]?this.controls[w]:(this.controls[w]=Ce,Ce.setParent(this),Ce._registerOnCollectionChange(this._onCollectionChange),Ce)}addControl(w,Ce,V={}){this.registerControl(w,Ce),this.updateValueAndValidity({emitEvent:V.emitEvent}),this._onCollectionChange()}removeControl(w,Ce={}){this.controls[w]&&this.controls[w]._registerOnCollectionChange(()=>{}),delete this.controls[w],this.updateValueAndValidity({emitEvent:Ce.emitEvent}),this._onCollectionChange()}setControl(w,Ce,V={}){this.controls[w]&&this.controls[w]._registerOnCollectionChange(()=>{}),delete this.controls[w],Ce&&this.registerControl(w,Ce),this.updateValueAndValidity({emitEvent:V.emitEvent}),this._onCollectionChange()}contains(w){return this.controls.hasOwnProperty(w)&&this.controls[w].enabled}setValue(w,Ce={}){(function Xn(B,w,Ce){B._forEachChild((V,xe)=>{if(void 0===Ce[xe])throw new i.vHH(1002,"")})})(this,0,w),Object.keys(w).forEach(V=>{(function mn(B,w,Ce){const V=B.controls;if(!(w?Object.keys(V):V).length)throw new i.vHH(1e3,"");if(!V[Ce])throw new i.vHH(1001,"")})(this,!0,V),this.controls[V].setValue(w[V],{onlySelf:!0,emitEvent:Ce.emitEvent})}),this.updateValueAndValidity(Ce)}patchValue(w,Ce={}){null!=w&&(Object.keys(w).forEach(V=>{const xe=this.controls[V];xe&&xe.patchValue(w[V],{onlySelf:!0,emitEvent:Ce.emitEvent})}),this.updateValueAndValidity(Ce))}reset(w={},Ce={}){this._forEachChild((V,xe)=>{V.reset(w[xe],{onlySelf:!0,emitEvent:Ce.emitEvent})}),this._updatePristine(Ce),this._updateTouched(Ce),this.updateValueAndValidity(Ce)}getRawValue(){return this._reduceChildren({},(w,Ce,V)=>(w[V]=Ce.getRawValue(),w))}_syncPendingControls(){let w=this._reduceChildren(!1,(Ce,V)=>!!V._syncPendingControls()||Ce);return w&&this.updateValueAndValidity({onlySelf:!0}),w}_forEachChild(w){Object.keys(this.controls).forEach(Ce=>{const V=this.controls[Ce];V&&w(V,Ce)})}_setUpControls(){this._forEachChild(w=>{w.setParent(this),w._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(w){for(const[Ce,V]of Object.entries(this.controls))if(this.contains(Ce)&&w(V))return!0;return!1}_reduceValue(){return this._reduceChildren({},(Ce,V,xe)=>((V.enabled||this.disabled)&&(Ce[xe]=V.value),Ce))}_reduceChildren(w,Ce){let V=w;return this._forEachChild((xe,jt)=>{V=Ce(V,xe,jt)}),V}_allControlsDisabled(){for(const w of Object.keys(this.controls))if(this.controls[w].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(w){return this.controls.hasOwnProperty(w)?this.controls[w]:null}}const We=new i.OlP("CallSetDisabledState",{providedIn:"root",factory:()=>le}),le="always";function Le(B,w,Ce=le){var V,xe;I(B,w),w.valueAccessor.writeValue(B.value),(B.disabled||"always"===Ce)&&(null===(V=(xe=w.valueAccessor).setDisabledState)||void 0===V||V.call(xe,B.disabled)),function Oe(B,w){w.valueAccessor.registerOnChange(Ce=>{B._pendingValue=Ce,B._pendingChange=!0,B._pendingDirty=!0,"change"===B.updateOn&&pt(B,w)})}(B,w),function Et(B,w){const Ce=(V,xe)=>{w.valueAccessor.writeValue(V),xe&&w.viewToModelUpdate(V)};B.registerOnChange(Ce),w._registerOnDestroy(()=>{B._unregisterOnChange(Ce)})}(B,w),function Qe(B,w){w.valueAccessor.registerOnTouched(()=>{B._pendingTouched=!0,"blur"===B.updateOn&&B._pendingChange&&pt(B,w),"submit"!==B.updateOn&&B.markAsTouched()})}(B,w),function Be(B,w){if(w.valueAccessor.setDisabledState){const Ce=V=>{w.valueAccessor.setDisabledState(V)};B.registerOnDisabledChange(Ce),w._registerOnDestroy(()=>{B._unregisterOnDisabledChange(Ce)})}}(B,w)}function A(B,w,Ce=!0){const V=()=>{};w.valueAccessor&&(w.valueAccessor.registerOnChange(V),w.valueAccessor.registerOnTouched(V)),k(B,w),B&&(w._invokeOnDestroyCallbacks(),B._registerOnCollectionChange(()=>{}))}function H(B,w){B.forEach(Ce=>{Ce.registerOnValidatorChange&&Ce.registerOnValidatorChange(w)})}function I(B,w){const Ce=N(B);null!==w.validator?B.setValidators(Se(Ce,w.validator)):"function"==typeof Ce&&B.setValidators([Ce]);const V=oe(B);null!==w.asyncValidator?B.setAsyncValidators(Se(V,w.asyncValidator)):"function"==typeof V&&B.setAsyncValidators([V]);const xe=()=>B.updateValueAndValidity();H(w._rawValidators,xe),H(w._rawAsyncValidators,xe)}function k(B,w){let Ce=!1;if(null!==B){if(null!==w.validator){const xe=N(B);if(Array.isArray(xe)&&xe.length>0){const jt=xe.filter(On=>On!==w.validator);jt.length!==xe.length&&(Ce=!0,B.setValidators(jt))}}if(null!==w.asyncValidator){const xe=oe(B);if(Array.isArray(xe)&&xe.length>0){const jt=xe.filter(On=>On!==w.asyncValidator);jt.length!==xe.length&&(Ce=!0,B.setAsyncValidators(jt))}}}const V=()=>{};return H(w._rawValidators,V),H(w._rawAsyncValidators,V),Ce}function pt(B,w){B._pendingDirty&&B.markAsDirty(),B.setValue(B._pendingValue,{emitModelToViewChange:!1}),w.viewToModelUpdate(B._pendingValue),B._pendingChange=!1}function Gt(B,w){I(B,w)}function ei(B,w){if(!B.hasOwnProperty("model"))return!1;const Ce=B.model;return!!Ce.isFirstChange()||!Object.is(w,Ce.currentValue)}function Ii(B,w){B._syncPendingControls(),w.forEach(Ce=>{const V=Ce.control;"submit"===V.updateOn&&V._pendingChange&&(Ce.viewToModelUpdate(V._pendingValue),V._pendingChange=!1)})}function qn(B,w){if(!w)return null;let Ce,V,xe;return Array.isArray(w),w.forEach(jt=>{jt.constructor===$e?Ce=jt:function $i(B){return Object.getPrototypeOf(B.constructor)===re}(jt)?V=jt:xe=jt}),xe||V||Ce||null}const Wi={provide:At,useExisting:(0,i.Gpc)(()=>Dt)},Ze=(()=>Promise.resolve())();let Dt=(()=>{var B;class w extends At{constructor(V,xe,jt){super(),this.callSetDisabledState=jt,this.submitted=!1,this._directives=new Set,this.ngSubmit=new i.vpe,this.form=new gt({},qe(V),se(xe))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(V){Ze.then(()=>{const xe=this._findContainer(V.path);V.control=xe.registerControl(V.name,V.control),Le(V.control,V,this.callSetDisabledState),V.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(V)})}getControl(V){return this.form.get(V.path)}removeControl(V){Ze.then(()=>{const xe=this._findContainer(V.path);xe&&xe.removeControl(V.name),this._directives.delete(V)})}addFormGroup(V){Ze.then(()=>{const xe=this._findContainer(V.path),jt=new gt({});Gt(jt,V),xe.registerControl(V.name,jt),jt.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(V){Ze.then(()=>{const xe=this._findContainer(V.path);xe&&xe.removeControl(V.name)})}getFormGroup(V){return this.form.get(V.path)}updateModel(V,xe){Ze.then(()=>{this.form.get(V.path).setValue(xe)})}setValue(V){this.control.setValue(V)}onSubmit(V){var xe;return this.submitted=!0,Ii(this.form,this._directives),this.ngSubmit.emit(V),"dialog"===(null==V||null===(xe=V.target)||void 0===xe?void 0:xe.method)}onReset(){this.resetForm()}resetForm(V=void 0){this.form.reset(V),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(V){return V.pop(),V.length?this.form.get(V):this.form}}return(B=w).\u0275fac=function(V){return new(V||B)(i.Y36(Ne,10),i.Y36(ie,10),i.Y36(We,8))},B.\u0275dir=i.lG2({type:B,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(V,xe){1&V&&i.NdJ("submit",function(On){return xe.onSubmit(On)})("reset",function(){return xe.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([Wi]),i.qOj]}),w})();function it(B,w){const Ce=B.indexOf(w);Ce>-1&&B.splice(Ce,1)}function E(B){return"object"==typeof B&&null!==B&&2===Object.keys(B).length&&"value"in B&&"disabled"in B}const j=class extends Bn{constructor(w=null,Ce,V){super(Nt(Ce),ut(V,Ce)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(w),this._setUpdateStrategy(Ce),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),en(Ce)&&(Ce.nonNullable||Ce.initialValueIsDefault)&&(this.defaultValue=E(w)?w.value:w)}setValue(w,Ce={}){this.value=this._pendingValue=w,this._onChange.length&&!1!==Ce.emitModelToViewChange&&this._onChange.forEach(V=>V(this.value,!1!==Ce.emitViewToModelChange)),this.updateValueAndValidity(Ce)}patchValue(w,Ce={}){this.setValue(w,Ce)}reset(w=this.defaultValue,Ce={}){this._applyFormState(w),this.markAsPristine(Ce),this.markAsUntouched(Ce),this.setValue(this.value,Ce),this._pendingChange=!1}_updateValue(){}_anyControls(w){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(w){this._onChange.push(w)}_unregisterOnChange(w){it(this._onChange,w)}registerOnDisabledChange(w){this._onDisabledChange.push(w)}_unregisterOnDisabledChange(w){it(this._onDisabledChange,w)}_forEachChild(w){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(w){E(w)?(this.value=this._pendingValue=w.value,w.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=w}},Z={provide:Yt,useExisting:(0,i.Gpc)(()=>rt)},ze=(()=>Promise.resolve())();let rt=(()=>{var B;class w extends Yt{constructor(V,xe,jt,On,Pi,wr){super(),this._changeDetectorRef=Pi,this.callSetDisabledState=wr,this.control=new j,this._registered=!1,this.name="",this.update=new i.vpe,this._parent=V,this._setValidators(xe),this._setAsyncValidators(jt),this.valueAccessor=qn(0,On)}ngOnChanges(V){if(this._checkForErrors(),!this._registered||"name"in V){if(this._registered&&(this._checkName(),this.formDirective)){const xe=V.name.previousValue;this.formDirective.removeControl({name:xe,path:this._getPath(xe)})}this._setUpControl()}"isDisabled"in V&&this._updateDisabled(V),ei(V,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(V){this.viewModel=V,this.update.emit(V)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Le(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(V){ze.then(()=>{var xe;this.control.setValue(V,{emitViewToModelChange:!1}),null===(xe=this._changeDetectorRef)||void 0===xe||xe.markForCheck()})}_updateDisabled(V){const xe=V.isDisabled.currentValue,jt=0!==xe&&(0,i.VuI)(xe);ze.then(()=>{var On;jt&&!this.control.disabled?this.control.disable():!jt&&this.control.disabled&&this.control.enable(),null===(On=this._changeDetectorRef)||void 0===On||On.markForCheck()})}_getPath(V){return this._parent?function Me(B,w){return[...w.path,B]}(V,this._parent):[V]}}return(B=w).\u0275fac=function(V){return new(V||B)(i.Y36(At,9),i.Y36(Ne,10),i.Y36(ie,10),i.Y36(q,10),i.Y36(i.sBO,8),i.Y36(We,8))},B.\u0275dir=i.lG2({type:B,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[i._Bn([Z]),i.qOj,i.TTD]}),w})(),Rt=(()=>{var B;class w{}return(B=w).\u0275fac=function(V){return new(V||B)},B.\u0275dir=i.lG2({type:B,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),w})();const Jt={provide:q,useExisting:(0,i.Gpc)(()=>si),multi:!0};let ln=(()=>{var B;class w{}return(B=w).\u0275fac=function(V){return new(V||B)},B.\u0275mod=i.oAB({type:B}),B.\u0275inj=i.cJS({}),w})(),xn=(()=>{var B;class w{constructor(){this._accessors=[]}add(V,xe){this._accessors.push([V,xe])}remove(V){for(let xe=this._accessors.length-1;xe>=0;--xe)if(this._accessors[xe][1]===V)return void this._accessors.splice(xe,1)}select(V){this._accessors.forEach(xe=>{this._isSameGroup(xe,V)&&xe[1]!==V&&xe[1].fireUncheck(V.value)})}_isSameGroup(V,xe){return!!V[0].control&&V[0]._parent===xe._control._parent&&V[1].name===xe.name}}return(B=w).\u0275fac=function(V){return new(V||B)},B.\u0275prov=i.Yz7({token:B,factory:B.\u0275fac,providedIn:ln}),w})(),si=(()=>{var B;class w extends re{constructor(V,xe,jt,On){var Pi;super(V,xe),this._registry=jt,this._injector=On,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=null!==(Pi=(0,i.f3M)(We,{optional:!0}))&&void 0!==Pi?Pi:le}ngOnInit(){this._control=this._injector.get(Yt),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(V){this._state=V===this.value,this.setProperty("checked",this._state)}registerOnChange(V){this._fn=V,this.onChange=()=>{V(this.value),this._registry.select(this)}}setDisabledState(V){(this.setDisabledStateFired||V||"whenDisabledForLegacyCode"===this.callSetDisabledState)&&this.setProperty("disabled",V),this.setDisabledStateFired=!0}fireUncheck(V){this.writeValue(V)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return(B=w).\u0275fac=function(V){return new(V||B)(i.Y36(i.Qsj),i.Y36(i.SBq),i.Y36(xn),i.Y36(i.zs3))},B.\u0275dir=i.lG2({type:B,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(V,xe){1&V&&i.NdJ("change",function(){return xe.onChange()})("blur",function(){return xe.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[i._Bn([Jt]),i.qOj]}),w})();const bn=new i.OlP("NgModelWithFormControlWarning"),mi={provide:Yt,useExisting:(0,i.Gpc)(()=>Si)};let Si=(()=>{var B;class w extends Yt{set isDisabled(V){}constructor(V,xe,jt,On,Pi){super(),this._ngModelWarningConfig=On,this.callSetDisabledState=Pi,this.update=new i.vpe,this._ngModelWarningSent=!1,this._setValidators(V),this._setAsyncValidators(xe),this.valueAccessor=qn(0,jt)}ngOnChanges(V){if(this._isControlChanged(V)){const xe=V.form.previousValue;xe&&A(xe,this,!1),Le(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}ei(V,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&A(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(V){this.viewModel=V,this.update.emit(V)}_isControlChanged(V){return V.hasOwnProperty("form")}}return(B=w)._ngModelWarningSentOnce=!1,B.\u0275fac=function(V){return new(V||B)(i.Y36(Ne,10),i.Y36(ie,10),i.Y36(q,10),i.Y36(bn,8),i.Y36(We,8))},B.\u0275dir=i.lG2({type:B,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[i._Bn([mi]),i.qOj,i.TTD]}),w})();const Di={provide:At,useExisting:(0,i.Gpc)(()=>ui)};let ui=(()=>{var B;class w extends At{constructor(V,xe,jt){super(),this.callSetDisabledState=jt,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new i.vpe,this._setValidators(V),this._setAsyncValidators(xe)}ngOnChanges(V){this._checkFormPresent(),V.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(k(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(V){const xe=this.form.get(V.path);return Le(xe,V,this.callSetDisabledState),xe.updateValueAndValidity({emitEvent:!1}),this.directives.push(V),xe}getControl(V){return this.form.get(V.path)}removeControl(V){A(V.control||null,V,!1),function di(B,w){const Ce=B.indexOf(w);Ce>-1&&B.splice(Ce,1)}(this.directives,V)}addFormGroup(V){this._setUpFormContainer(V)}removeFormGroup(V){this._cleanUpFormContainer(V)}getFormGroup(V){return this.form.get(V.path)}addFormArray(V){this._setUpFormContainer(V)}removeFormArray(V){this._cleanUpFormContainer(V)}getFormArray(V){return this.form.get(V.path)}updateModel(V,xe){this.form.get(V.path).setValue(xe)}onSubmit(V){var xe;return this.submitted=!0,Ii(this.form,this.directives),this.ngSubmit.emit(V),"dialog"===(null==V||null===(xe=V.target)||void 0===xe?void 0:xe.method)}onReset(){this.resetForm()}resetForm(V=void 0){this.form.reset(V),this.submitted=!1}_updateDomValue(){this.directives.forEach(V=>{const xe=V.control,jt=this.form.get(V.path);xe!==jt&&(A(xe||null,V),(B=>B instanceof j)(jt)&&(Le(jt,V,this.callSetDisabledState),V.control=jt))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(V){const xe=this.form.get(V.path);Gt(xe,V),xe.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(V){if(this.form){const xe=this.form.get(V.path);xe&&function Pt(B,w){return k(B,w)}(xe,V)&&xe.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){I(this.form,this),this._oldForm&&k(this._oldForm,this)}_checkFormPresent(){}}return(B=w).\u0275fac=function(V){return new(V||B)(i.Y36(Ne,10),i.Y36(ie,10),i.Y36(We,8))},B.\u0275dir=i.lG2({type:B,selectors:[["","formGroup",""]],hostBindings:function(V,xe){1&V&&i.NdJ("submit",function(On){return xe.onSubmit(On)})("reset",function(){return xe.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([Di]),i.qOj,i.TTD]}),w})();let qi=(()=>{var B;class w{constructor(){this._validator=nt}ngOnChanges(V){if(this.inputName in V){const xe=this.normalizeInput(V[this.inputName].currentValue);this._enabled=this.enabled(xe),this._validator=this._enabled?this.createValidator(xe):nt,this._onChange&&this._onChange()}}validate(V){return this._validator(V)}registerOnValidatorChange(V){this._onChange=V}enabled(V){return null!=V}}return(B=w).\u0275fac=function(V){return new(V||B)},B.\u0275dir=i.lG2({type:B,features:[i.TTD]}),w})();const Yr={provide:Ne,useExisting:(0,i.Gpc)(()=>Ar),multi:!0},ir={provide:Ne,useExisting:(0,i.Gpc)(()=>pr),multi:!0};let Ar=(()=>{var B;class w extends qi{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=i.VuI,this.createValidator=V=>we}enabled(V){return V}}return(B=w).\u0275fac=function(){let Ce;return function(xe){return(Ce||(Ce=i.n5z(B)))(xe||B)}}(),B.\u0275dir=i.lG2({type:B,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(V,xe){2&V&&i.uIk("required",xe._enabled?"":null)},inputs:{required:"required"},features:[i._Bn([Yr]),i.qOj]}),w})(),pr=(()=>{var B;class w extends Ar{constructor(){super(...arguments),this.createValidator=V=>Ie}}return(B=w).\u0275fac=function(){let Ce;return function(xe){return(Ce||(Ce=i.n5z(B)))(xe||B)}}(),B.\u0275dir=i.lG2({type:B,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(V,xe){2&V&&i.uIk("required",xe._enabled?"":null)},features:[i._Bn([ir]),i.qOj]}),w})();const Ji={provide:Ne,useExisting:(0,i.Gpc)(()=>hs),multi:!0};let hs=(()=>{var B;class w extends qi{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=V=>function hr(B){return"number"==typeof B?B:parseInt(B,10)}(V),this.createValidator=V=>Re(V)}}return(B=w).\u0275fac=function(){let Ce;return function(xe){return(Ce||(Ce=i.n5z(B)))(xe||B)}}(),B.\u0275dir=i.lG2({type:B,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(V,xe){2&V&&i.uIk("maxlength",xe._enabled?xe.maxlength:null)},inputs:{maxlength:"maxlength"},features:[i._Bn([Ji]),i.qOj]}),w})();const fs={provide:Ne,useExisting:(0,i.Gpc)(()=>Sr),multi:!0};let Sr=(()=>{var B;class w extends qi{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=V=>V,this.createValidator=V=>He(V)}}return(B=w).\u0275fac=function(){let Ce;return function(xe){return(Ce||(Ce=i.n5z(B)))(xe||B)}}(),B.\u0275dir=i.lG2({type:B,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(V,xe){2&V&&i.uIk("pattern",xe._enabled?xe.pattern:null)},inputs:{pattern:"pattern"},features:[i._Bn([fs]),i.qOj]}),w})(),Vi=(()=>{var B;class w{}return(B=w).\u0275fac=function(V){return new(V||B)},B.\u0275mod=i.oAB({type:B}),B.\u0275inj=i.cJS({imports:[ln]}),w})(),ys=(()=>{var B;class w{static withConfig(V){var xe;return{ngModule:w,providers:[{provide:We,useValue:null!==(xe=V.callSetDisabledState)&&void 0!==xe?xe:le}]}}}return(B=w).\u0275fac=function(V){return new(V||B)},B.\u0275mod=i.oAB({type:B}),B.\u0275inj=i.cJS({imports:[Vi]}),w})(),ro=(()=>{var B;class w{static withConfig(V){var xe,jt;return{ngModule:w,providers:[{provide:bn,useValue:null!==(xe=V.warnOnNgModelWithFormControl)&&void 0!==xe?xe:"always"},{provide:We,useValue:null!==(jt=V.callSetDisabledState)&&void 0!==jt?jt:le}]}}}return(B=w).\u0275fac=function(V){return new(V||B)},B.\u0275mod=i.oAB({type:B}),B.\u0275inj=i.cJS({imports:[Vi]}),w})()},2296:(xt,Ke,p)=>{"use strict";p.d(Ke,{RK:()=>_e,lW:()=>te,ot:()=>qe});var i=p(2831),s=p(5879),m=p(6599),L=p(2495),f=p(3680);const W=["mat-button",""],re=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],q=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],$e=["mat-icon-button",""],$=["*"],ee=[{selector:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{selector:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{selector:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{selector:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{selector:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{selector:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{selector:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],x=(0,f.pj)((0,f.Id)((0,f.Kr)(class{constructor(Te){this._elementRef=Te}})));let X=(()=>{var Te;class se extends x{get ripple(){var N;return null===(N=this._rippleLoader)||void 0===N?void 0:N.getRipple(this._elementRef.nativeElement)}set ripple(N){var oe;null===(oe=this._rippleLoader)||void 0===oe||oe.attachRipple(this._elementRef.nativeElement,N)}get disableRipple(){return this._disableRipple}set disableRipple(N){this._disableRipple=(0,L.Ig)(N),this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(N){this._disabled=(0,L.Ig)(N),this._updateRippleDisabled()}constructor(N,oe,ye,Fe){var Je;super(N),this._platform=oe,this._ngZone=ye,this._animationMode=Fe,this._focusMonitor=(0,s.f3M)(m.tE),this._rippleLoader=(0,s.f3M)(f.Fq),this._isFab=!1,this._disableRipple=!1,this._disabled=!1,null===(Je=this._rippleLoader)||void 0===Je||Je.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-button-ripple"});const ht=N.nativeElement.classList;for(const vt of ee)this._hasHostAttributes(vt.selector)&&vt.mdcClasses.forEach(At=>{ht.add(At)})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(N="program",oe){N?this._focusMonitor.focusVia(this._elementRef.nativeElement,N,oe):this._elementRef.nativeElement.focus(oe)}_hasHostAttributes(...N){return N.some(oe=>this._elementRef.nativeElement.hasAttribute(oe))}_updateRippleDisabled(){var N;null===(N=this._rippleLoader)||void 0===N||N.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}}return(Te=se).\u0275fac=function(N){s.$Z()},Te.\u0275dir=s.lG2({type:Te,features:[s.qOj]}),se})(),te=(()=>{var Te;class se extends X{constructor(N,oe,ye,Fe){super(N,oe,ye,Fe)}}return(Te=se).\u0275fac=function(N){return new(N||Te)(s.Y36(s.SBq),s.Y36(i.t4),s.Y36(s.R0b),s.Y36(s.QbO,8))},Te.\u0275cmp=s.Xpm({type:Te,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:7,hostBindings:function(N,oe){2&N&&(s.uIk("disabled",oe.disabled||null),s.ekj("_mat-animation-noopable","NoopAnimations"===oe._animationMode)("mat-unthemed",!oe.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[s.qOj],attrs:W,ngContentSelectors:q,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(N,oe){1&N&&(s.F$t(re),s._UZ(0,"span",0),s.Hsn(1),s.TgZ(2,"span",1),s.Hsn(3,1),s.qZA(),s.Hsn(4,2),s._UZ(5,"span",2)(6,"span",3)),2&N&&s.ekj("mdc-button__ripple",!oe._isFab)("mdc-fab__ripple",oe._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + 4px\n );display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{height:var(--mdc-text-button-container-height, 36px);border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, inherit)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button{height:var(--mdc-filled-button-container-height, 36px);border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color, transparent)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, inherit)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button{height:var(--mdc-protected-button-container-height, 36px);border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px));box-shadow:var(--mdc-protected-button-container-elevation, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color, transparent)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, inherit)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button.mdc-ripple-upgraded--background-focused,.mat-mdc-raised-button:not(.mdc-ripple-upgraded):focus{box-shadow:var(--mdc-protected-button-focus-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled):active{box-shadow:var(--mdc-protected-button-pressed-container-elevation, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button{height:var(--mdc-outlined-button-container-height, 36px);border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px));padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, inherit)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width, 1px));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width, 1px))}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-button .mat-ripple-element,.mat-mdc-unelevated-button .mat-ripple-element,.mat-mdc-raised-button .mat-ripple-element,.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button[disabled],.mat-mdc-unelevated-button[disabled],.mat-mdc-raised-button[disabled],.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px) * -1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0}),se})(),_e=(()=>{var Te;class se extends X{constructor(N,oe,ye,Fe){super(N,oe,ye,Fe),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}}return(Te=se).\u0275fac=function(N){return new(N||Te)(s.Y36(s.SBq),s.Y36(i.t4),s.Y36(s.R0b),s.Y36(s.QbO,8))},Te.\u0275cmp=s.Xpm({type:Te,selectors:[["button","mat-icon-button",""]],hostVars:7,hostBindings:function(N,oe){2&N&&(s.uIk("disabled",oe.disabled||null),s.ekj("_mat-animation-noopable","NoopAnimations"===oe._animationMode)("mat-unthemed",!oe.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[s.qOj],attrs:$e,ngContentSelectors:$,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(N,oe){1&N&&(s.F$t(),s._UZ(0,"span",0),s.Hsn(1),s._UZ(2,"span",1)(3,"span",2))},styles:['.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{height:var(--mdc-icon-button-state-layer-size);width:var(--mdc-icon-button-state-layer-size);color:var(--mdc-icon-button-icon-color);--mdc-icon-button-state-layer-size:48px;--mdc-icon-button-icon-size:24px;--mdc-icon-button-disabled-icon-color:black;--mdc-icon-button-disabled-icon-opacity:0.38}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{opacity:var(--mdc-icon-button-disabled-icon-opacity)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{padding:12px;font-size:var(--mdc-icon-button-icon-size);border-radius:50%;flex-shrink:0;text-align:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled]{cursor:default;pointer-events:none;opacity:1}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0}),se})(),qe=(()=>{var Te;class se{}return(Te=se).\u0275fac=function(N){return new(N||Te)},Te.\u0275mod=s.oAB({type:Te}),Te.\u0275inj=s.cJS({imports:[f.BQ,f.si,f.BQ]}),se})()},3680:(xt,Ke,p)=>{"use strict";p.d(Ke,{_A:()=>Q,rD:()=>Je,sG:()=>qe,Ad:()=>st,K7:()=>vn,HF:()=>Bt,BQ:()=>Ie,XK:()=>ye,ey:()=>Kn,Ng:()=>kt,wG:()=>me,Fq:()=>gt,si:()=>Ye,CB:()=>mt,jH:()=>Nt,pj:()=>nt,Kr:()=>_t,Id:()=>He,FD:()=>yt,sb:()=>dt});var i=p(5879),s=p(6599),m=p(9388),f=p(6814),W=p(2831),re=p(2495),q=p(2079),ae=p(6028);const U=["text"];function $e(ve,Ee){if(1&ve&&i._UZ(0,"mat-pseudo-checkbox",6),2&ve){const de=i.oxw();i.Q6J("disabled",de.disabled)("state",de.selected?"checked":"unchecked")}}function $(ve,Ee){if(1&ve&&i._UZ(0,"mat-pseudo-checkbox",7),2&ve){const de=i.oxw();i.Q6J("disabled",de.disabled)}}function ge(ve,Ee){if(1&ve&&(i.TgZ(0,"span",8),i._uU(1),i.qZA()),2&ve){const de=i.oxw();i.xp6(1),i.hij("(",de.group.label,")")}}const Ne=[[["mat-icon"]],"*"],ie=["mat-icon","*"],we=new i.OlP("mat-sanity-checks",{providedIn:"root",factory:function Ve(){return!0}});let Ie=(()=>{var ve;class Ee{constructor(G,We,le){this._sanityChecks=We,this._document=le,this._hasDoneGlobalChecks=!1,G._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(G){return!(0,W.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[G])}}return(ve=Ee).\u0275fac=function(G){return new(G||ve)(i.LFG(s.qm),i.LFG(we,8),i.LFG(f.K0))},ve.\u0275mod=i.oAB({type:ve}),ve.\u0275inj=i.cJS({imports:[m.vT,m.vT]}),Ee})();function He(ve){return class extends ve{get disabled(){return this._disabled}set disabled(Ee){this._disabled=(0,re.Ig)(Ee)}constructor(...Ee){super(...Ee),this._disabled=!1}}}function nt(ve,Ee){return class extends ve{get color(){return this._color}set color(de){const G=de||this.defaultColor;G!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),G&&this._elementRef.nativeElement.classList.add(`mat-${G}`),this._color=G)}constructor(...de){super(...de),this.defaultColor=Ee,this.color=Ee}}}function _t(ve){return class extends ve{get disableRipple(){return this._disableRipple}set disableRipple(Ee){this._disableRipple=(0,re.Ig)(Ee)}constructor(...Ee){super(...Ee),this._disableRipple=!1}}}function dt(ve,Ee=0){return class extends ve{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(de){this._tabIndex=null!=de?(0,re.su)(de):this.defaultTabIndex}constructor(...de){super(...de),this._tabIndex=Ee,this.defaultTabIndex=Ee}}}function yt(ve){return class extends ve{updateErrorState(){const Ee=this.errorState,le=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);le!==Ee&&(this.errorState=le,this.stateChanges.next())}constructor(...Ee){super(...Ee),this.errorState=!1}}}const st=new i.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function _e(){return(0,i.f3M)(i.soG)}});class Q{constructor(){this._localeChanges=new q.xQ,this.localeChanges=this._localeChanges}getValidDateOrNull(Ee){return this.isDateInstance(Ee)&&this.isValid(Ee)?Ee:null}deserialize(Ee){return null==Ee||this.isDateInstance(Ee)&&this.isValid(Ee)?Ee:this.invalid()}setLocale(Ee){this.locale=Ee,this._localeChanges.next()}compareDate(Ee,de){return this.getYear(Ee)-this.getYear(de)||this.getMonth(Ee)-this.getMonth(de)||this.getDate(Ee)-this.getDate(de)}sameDate(Ee,de){if(Ee&&de){let G=this.isValid(Ee),We=this.isValid(de);return G&&We?!this.compareDate(Ee,de):G==We}return Ee==de}clampDate(Ee,de,G){return de&&this.compareDate(Ee,de)<0?de:G&&this.compareDate(Ee,G)>0?G:Ee}}const qe=new i.OlP("mat-date-formats"),Te=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function se(ve,Ee){const de=Array(ve);for(let G=0;G{var ve;class Ee extends Q{constructor(G,We){super(),this.useUtcForDisplay=!1,super.setLocale(G)}getYear(G){return G.getFullYear()}getMonth(G){return G.getMonth()}getDate(G){return G.getDate()}getDayOfWeek(G){return G.getDay()}getMonthNames(G){const We=new Intl.DateTimeFormat(this.locale,{month:G,timeZone:"utc"});return se(12,le=>this._format(We,new Date(2017,le,1)))}getDateNames(){const G=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return se(31,We=>this._format(G,new Date(2017,0,We+1)))}getDayOfWeekNames(G){const We=new Intl.DateTimeFormat(this.locale,{weekday:G,timeZone:"utc"});return se(7,le=>this._format(We,new Date(2017,0,le+1)))}getYearName(G){const We=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(We,G)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(G){return this.getDate(this._createDateWithOverflow(this.getYear(G),this.getMonth(G)+1,0))}clone(G){return new Date(G.getTime())}createDate(G,We,le){let Me=this._createDateWithOverflow(G,We,le);return Me.getMonth(),Me}today(){return new Date}parse(G,We){return"number"==typeof G?new Date(G):G?new Date(Date.parse(G)):null}format(G,We){if(!this.isValid(G))throw Error("NativeDateAdapter: Cannot format invalid date.");const le=new Intl.DateTimeFormat(this.locale,{...We,timeZone:"utc"});return this._format(le,G)}addCalendarYears(G,We){return this.addCalendarMonths(G,12*We)}addCalendarMonths(G,We){let le=this._createDateWithOverflow(this.getYear(G),this.getMonth(G)+We,this.getDate(G));return this.getMonth(le)!=((this.getMonth(G)+We)%12+12)%12&&(le=this._createDateWithOverflow(this.getYear(le),this.getMonth(le),0)),le}addCalendarDays(G,We){return this._createDateWithOverflow(this.getYear(G),this.getMonth(G),this.getDate(G)+We)}toIso8601(G){return[G.getUTCFullYear(),this._2digit(G.getUTCMonth()+1),this._2digit(G.getUTCDate())].join("-")}deserialize(G){if("string"==typeof G){if(!G)return null;if(Te.test(G)){let We=new Date(G);if(this.isValid(We))return We}}return super.deserialize(G)}isDateInstance(G){return G instanceof Date}isValid(G){return!isNaN(G.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(G,We,le){const Me=new Date;return Me.setFullYear(G,We,le),Me.setHours(0,0,0,0),Me}_2digit(G){return("00"+G).slice(-2)}_format(G,We){const le=new Date;return le.setUTCFullYear(We.getFullYear(),We.getMonth(),We.getDate()),le.setUTCHours(We.getHours(),We.getMinutes(),We.getSeconds(),We.getMilliseconds()),G.format(le)}}return(ve=Ee).\u0275fac=function(G){return new(G||ve)(i.LFG(st,8),i.LFG(W.t4))},ve.\u0275prov=i.Yz7({token:ve,factory:ve.\u0275fac}),Ee})();const N={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 oe=(()=>{var ve;class Ee{}return(ve=Ee).\u0275fac=function(G){return new(G||ve)},ve.\u0275mod=i.oAB({type:ve}),ve.\u0275inj=i.cJS({providers:[{provide:Q,useClass:Se}]}),Ee})(),ye=(()=>{var ve;class Ee{}return(ve=Ee).\u0275fac=function(G){return new(G||ve)},ve.\u0275mod=i.oAB({type:ve}),ve.\u0275inj=i.cJS({providers:[{provide:qe,useValue:N}],imports:[oe]}),Ee})(),Je=(()=>{var ve;class Ee{isErrorState(G,We){return!!(G&&G.invalid&&(G.touched||We&&We.submitted))}}return(ve=Ee).\u0275fac=function(G){return new(G||ve)},ve.\u0275prov=i.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"}),Ee})();class on{constructor(Ee,de,G,We=!1){this._renderer=Ee,this.element=de,this.config=G,this._animationForciblyDisabledThroughCss=We,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const nn=(0,W.i$)({passive:!0,capture:!0});class gn{constructor(){this._events=new Map,this._delegateEventHandler=Ee=>{const de=(0,W.sA)(Ee);var G;de&&(null===(G=this._events.get(Ee.type))||void 0===G||G.forEach((We,le)=>{(le===de||le.contains(de))&&We.forEach(Me=>Me.handleEvent(Ee))}))}}addHandler(Ee,de,G,We){const le=this._events.get(de);if(le){const Me=le.get(G);Me?Me.add(We):le.set(G,new Set([We]))}else this._events.set(de,new Map([[G,new Set([We])]])),Ee.runOutsideAngular(()=>{document.addEventListener(de,this._delegateEventHandler,nn)})}removeHandler(Ee,de,G){const We=this._events.get(Ee);if(!We)return;const le=We.get(de);le&&(le.delete(G),0===le.size&&We.delete(de),0===We.size&&(this._events.delete(Ee),document.removeEventListener(Ee,this._delegateEventHandler,nn)))}}const Ut={enterDuration:225,exitDuration:150},Pn=(0,W.i$)({passive:!0,capture:!0}),kn=["mousedown","touchstart"],tt=["mouseup","mouseleave","touchend","touchcancel"];class z{constructor(Ee,de,G,We){this._target=Ee,this._ngZone=de,this._platform=We,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,We.isBrowser&&(this._containerElement=(0,re.fI)(G))}fadeInRipple(Ee,de,G={}){const We=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),le={...Ut,...G.animation};G.centered&&(Ee=We.left+We.width/2,de=We.top+We.height/2);const Me=G.radius||function Ae(ve,Ee,de){const G=Math.max(Math.abs(ve-de.left),Math.abs(ve-de.right)),We=Math.max(Math.abs(Ee-de.top),Math.abs(Ee-de.bottom));return Math.sqrt(G*G+We*We)}(Ee,de,We),Le=Ee-We.left,A=de-We.top,H=le.enterDuration,Be=document.createElement("div");Be.classList.add("mat-ripple-element"),Be.style.left=Le-Me+"px",Be.style.top=A-Me+"px",Be.style.height=2*Me+"px",Be.style.width=2*Me+"px",null!=G.color&&(Be.style.backgroundColor=G.color),Be.style.transitionDuration=`${H}ms`,this._containerElement.appendChild(Be);const I=window.getComputedStyle(Be),Oe=I.transitionDuration,Qe="none"===I.transitionProperty||"0s"===Oe||"0s, 0s"===Oe||0===We.width&&0===We.height,pt=new on(this,Be,G,Qe);Be.style.transform="scale3d(1, 1, 1)",pt.state=0,G.persistent||(this._mostRecentTransientRipple=pt);let Et=null;return!Qe&&(H||le.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const Gt=()=>this._finishRippleTransition(pt),Pt=()=>this._destroyRipple(pt);Be.addEventListener("transitionend",Gt),Be.addEventListener("transitioncancel",Pt),Et={onTransitionEnd:Gt,onTransitionCancel:Pt}}),this._activeRipples.set(pt,Et),(Qe||!H)&&this._finishRippleTransition(pt),pt}fadeOutRipple(Ee){if(2===Ee.state||3===Ee.state)return;const de=Ee.element,G={...Ut,...Ee.config.animation};de.style.transitionDuration=`${G.exitDuration}ms`,de.style.opacity="0",Ee.state=2,(Ee._animationForciblyDisabledThroughCss||!G.exitDuration)&&this._finishRippleTransition(Ee)}fadeOutAll(){this._getActiveRipples().forEach(Ee=>Ee.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(Ee=>{Ee.config.persistent||Ee.fadeOut()})}setupTriggerEvents(Ee){const de=(0,re.fI)(Ee);!this._platform.isBrowser||!de||de===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=de,kn.forEach(G=>{z._eventManager.addHandler(this._ngZone,G,de,this)}))}handleEvent(Ee){"mousedown"===Ee.type?this._onMousedown(Ee):"touchstart"===Ee.type?this._onTouchStart(Ee):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{tt.forEach(de=>{this._triggerElement.addEventListener(de,this,Pn)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(Ee){0===Ee.state?this._startFadeOutTransition(Ee):2===Ee.state&&this._destroyRipple(Ee)}_startFadeOutTransition(Ee){const de=Ee===this._mostRecentTransientRipple,{persistent:G}=Ee.config;Ee.state=1,!G&&(!de||!this._isPointerDown)&&Ee.fadeOut()}_destroyRipple(Ee){var de;const G=null!==(de=this._activeRipples.get(Ee))&&void 0!==de?de:null;this._activeRipples.delete(Ee),this._activeRipples.size||(this._containerRect=null),Ee===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),Ee.state=3,null!==G&&(Ee.element.removeEventListener("transitionend",G.onTransitionEnd),Ee.element.removeEventListener("transitioncancel",G.onTransitionCancel)),Ee.element.remove()}_onMousedown(Ee){const de=(0,s.X6)(Ee),G=this._lastTouchStartEvent&&Date.now(){!Ee.config.persistent&&(1===Ee.state||Ee.config.terminateOnPointerUp&&0===Ee.state)&&Ee.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const Ee=this._triggerElement;Ee&&(kn.forEach(de=>z._eventManager.removeHandler(de,Ee,this)),this._pointerUpEventsRegistered&&tt.forEach(de=>Ee.removeEventListener(de,this,Pn)))}}z._eventManager=new gn;const F=new i.OlP("mat-ripple-global-options");let me=(()=>{var ve;class Ee{get disabled(){return this._disabled}set disabled(G){G&&this.fadeOutAllNonPersistent(),this._disabled=G,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(G){this._trigger=G,this._setupTriggerEventsIfEnabled()}constructor(G,We,le,Me,Le){this._elementRef=G,this._animationMode=Le,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=Me||{},this._rippleRenderer=new z(this,We,G,le)}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(G,We=0,le){return"number"==typeof G?this._rippleRenderer.fadeInRipple(G,We,{...this.rippleConfig,...le}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...G})}}return(ve=Ee).\u0275fac=function(G){return new(G||ve)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(W.t4),i.Y36(F,8),i.Y36(i.QbO,8))},ve.\u0275dir=i.lG2({type:ve,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(G,We){2&G&&i.ekj("mat-ripple-unbounded",We.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"]}),Ee})(),Ye=(()=>{var ve;class Ee{}return(ve=Ee).\u0275fac=function(G){return new(G||ve)},ve.\u0275mod=i.oAB({type:ve}),ve.\u0275inj=i.cJS({imports:[Ie,Ie]}),Ee})(),St=(()=>{var ve;class Ee{constructor(G){this._animationMode=G,this.state="unchecked",this.disabled=!1,this.appearance="full"}}return(ve=Ee).\u0275fac=function(G){return new(G||ve)(i.Y36(i.QbO,8))},ve.\u0275cmp=i.Xpm({type:ve,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(G,We){2&G&&i.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===We.state)("mat-pseudo-checkbox-checked","checked"===We.state)("mat-pseudo-checkbox-disabled",We.disabled)("mat-pseudo-checkbox-minimal","minimal"===We.appearance)("mat-pseudo-checkbox-full","full"===We.appearance)("_mat-animation-noopable","NoopAnimations"===We._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(G,We){},styles:['.mat-pseudo-checkbox{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-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{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-full{border:2px solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0}),Ee})(),Ft=(()=>{var ve;class Ee{}return(ve=Ee).\u0275fac=function(G){return new(G||ve)},ve.\u0275mod=i.oAB({type:ve}),ve.\u0275inj=i.cJS({imports:[Ie]}),Ee})();const Bt=new i.OlP("MAT_OPTION_PARENT_COMPONENT"),vn=new i.OlP("MatOptgroup");let pn=0;class En{constructor(Ee,de=!1){this.source=Ee,this.isUserInput=de}}let un=(()=>{var ve;class Ee{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(G){this._disabled=(0,re.Ig)(G)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(G,We,le,Me){this._element=G,this._changeDetectorRef=We,this._parent=le,this.group=Me,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+pn++,this.onSelectionChange=new i.vpe,this._stateChanges=new q.xQ}get active(){return this._active}get viewValue(){var G;return((null===(G=this._text)||void 0===G?void 0:G.nativeElement.textContent)||"").trim()}select(G=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),G&&this._emitSelectionChangeEvent())}deselect(G=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),G&&this._emitSelectionChangeEvent())}focus(G,We){const le=this._getHostElement();"function"==typeof le.focus&&le.focus(We)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(G){(G.keyCode===ae.K5||G.keyCode===ae.L_)&&!(0,ae.Vb)(G)&&(this._selectViaInteraction(),G.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const G=this.viewValue;G!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=G)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(G=!1){this.onSelectionChange.emit(new En(this,G))}}return(ve=Ee).\u0275fac=function(G){i.$Z()},ve.\u0275dir=i.lG2({type:ve,viewQuery:function(G,We){if(1&G&&i.Gf(U,7),2&G){let le;i.iGM(le=i.CRH())&&(We._text=le.first)}},inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),Ee})(),Kn=(()=>{var ve;class Ee extends un{constructor(G,We,le,Me){super(G,We,le,Me)}}return(ve=Ee).\u0275fac=function(G){return new(G||ve)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(Bt,8),i.Y36(vn,8))},ve.\u0275cmp=i.Xpm({type:ve,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(G,We){1&G&&i.NdJ("click",function(){return We._selectViaInteraction()})("keydown",function(Me){return We._handleKeydown(Me)}),2&G&&(i.Ikx("id",We.id),i.uIk("aria-selected",We.selected)("aria-disabled",We.disabled.toString()),i.ekj("mdc-list-item--selected",We.selected)("mat-mdc-option-multiple",We.multiple)("mat-mdc-option-active",We.active)("mdc-list-item--disabled",We.disabled))},exportAs:["matOption"],features:[i.qOj],ngContentSelectors:ie,decls:8,vars:5,consts:[["class","mat-mdc-option-pseudo-checkbox","aria-hidden","true",3,"disabled","state",4,"ngIf"],[1,"mdc-list-item__primary-text"],["text",""],["class","mat-mdc-option-pseudo-checkbox","state","checked","aria-hidden","true","appearance","minimal",3,"disabled",4,"ngIf"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"]],template:function(G,We){1&G&&(i.F$t(Ne),i.YNc(0,$e,1,2,"mat-pseudo-checkbox",0),i.Hsn(1),i.TgZ(2,"span",1,2),i.Hsn(4,1),i.qZA(),i.YNc(5,$,1,1,"mat-pseudo-checkbox",3),i.YNc(6,ge,2,1,"span",4),i._UZ(7,"div",5)),2&G&&(i.Q6J("ngIf",We.multiple),i.xp6(5),i.Q6J("ngIf",!We.multiple&&We.selected&&!We.hideSingleSelectionIndicator),i.xp6(1),i.Q6J("ngIf",We.group&&We.group._inert),i.xp6(1),i.Q6J("matRippleTrigger",We._getHostElement())("matRippleDisabled",We.disabled||We.disableRipple))},dependencies:[me,f.O5,St],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),Ee})();function mt(ve,Ee,de){if(de.length){let G=Ee.toArray(),We=de.toArray(),le=0;for(let Me=0;Mede+G?Math.max(0,ve-G+Ee):de}let kt=(()=>{var ve;class Ee{}return(ve=Ee).\u0275fac=function(G){return new(G||ve)},ve.\u0275mod=i.oAB({type:ve}),ve.\u0275inj=i.cJS({imports:[Ye,f.ez,Ie,Ft]}),Ee})();const ut={capture:!0},Ct=["focus","click","mouseenter","touchstart"],en="mat-ripple-loader-uninitialized",mn="mat-ripple-loader-class-name",Xn="mat-ripple-loader-centered",Bn="mat-ripple-loader-disabled";let gt=(()=>{var ve;class Ee{constructor(){this._document=(0,i.f3M)(f.K0,{optional:!0}),this._animationMode=(0,i.f3M)(i.QbO,{optional:!0}),this._globalRippleOptions=(0,i.f3M)(F,{optional:!0}),this._platform=(0,i.f3M)(W.t4),this._ngZone=(0,i.f3M)(i.R0b),this._onInteraction=G=>{if(!(G.target instanceof HTMLElement))return;const le=G.target.closest(`[${en}]`);le&&this.createRipple(le)},this._ngZone.runOutsideAngular(()=>{for(const We of Ct){var G;null===(G=this._document)||void 0===G||G.addEventListener(We,this._onInteraction,ut)}})}ngOnDestroy(){for(const We of Ct){var G;null===(G=this._document)||void 0===G||G.removeEventListener(We,this._onInteraction,ut)}}configureRipple(G,We){G.setAttribute(en,""),(We.className||!G.hasAttribute(mn))&&G.setAttribute(mn,We.className||""),We.centered&&G.setAttribute(Xn,""),We.disabled&&G.setAttribute(Bn,"")}getRipple(G){return G.matRipple?G.matRipple:this.createRipple(G)}setDisabled(G,We){const le=G.matRipple;le?le.disabled=We:We?G.setAttribute(Bn,""):G.removeAttribute(Bn)}createRipple(G){var We;if(!this._document)return;null===(We=G.querySelector(".mat-ripple"))||void 0===We||We.remove();const le=this._document.createElement("span");le.classList.add("mat-ripple",G.getAttribute(mn)),G.append(le);const Me=new me(new i.SBq(le),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return Me._isInitialized=!0,Me.trigger=G,Me.centered=G.hasAttribute(Xn),Me.disabled=G.hasAttribute(Bn),this.attachRipple(G,Me),Me}attachRipple(G,We){G.removeAttribute(en),G.matRipple=We}}return(ve=Ee).\u0275fac=function(G){return new(G||ve)},ve.\u0275prov=i.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"}),Ee})()},8034:(xt,Ke,p)=>{"use strict";p.d(Ke,{FA:()=>Wi,Mq:()=>le,hl:()=>I,nW:()=>Oe});var i=p(6599),s=p(9594),m=p(8484),L=p(6814),f=p(5879),W=p(2296),re=p(6672),q=p(3680),ae=p(2079),K=p(7902),ne=p(7354),he=p(9193),U=p(6028),$e=p(9388),$=p(2831),ge=p(1418),Ne=p(3075),ie=p(7734),ee=p(2495),x=p(6825),X=p(6223),Ve=p(4170),we=p(4516);const Ie=["mat-calendar-body",""];function te(Ze,Dt){if(1&Ze&&(f.TgZ(0,"tr",3)(1,"td",4),f._uU(2),f.qZA()()),2&Ze){const it=f.oxw();f.xp6(1),f.Udp("padding-top",it._cellPadding)("padding-bottom",it._cellPadding),f.uIk("colspan",it.numCols),f.xp6(1),f.hij(" ",it.label," ")}}function ce(Ze,Dt){if(1&Ze&&(f.TgZ(0,"td",4),f._uU(1),f.qZA()),2&Ze){const it=f.oxw(2);f.Udp("padding-top",it._cellPadding)("padding-bottom",it._cellPadding),f.uIk("colspan",it._firstRowOffset),f.xp6(1),f.hij(" ",it._firstRowOffset>=it.labelMinRequiredCells?it.label:""," ")}}function Re(Ze,Dt){if(1&Ze){const it=f.EpF();f.TgZ(0,"td",8)(1,"button",9),f.NdJ("click",function(j){const Ge=f.CHM(it).$implicit,Ot=f.oxw(2);return f.KtG(Ot._cellClicked(Ge,j))})("focus",function(j){const Ge=f.CHM(it).$implicit,Ot=f.oxw(2);return f.KtG(Ot._emitActiveDateChange(Ge,j))}),f.TgZ(2,"span",10),f._uU(3),f.qZA(),f._UZ(4,"span",11),f.qZA()()}if(2&Ze){const it=Dt.$implicit,E=Dt.index,j=f.oxw().index,fe=f.oxw();f.Udp("width",fe._cellWidth)("padding-top",fe._cellPadding)("padding-bottom",fe._cellPadding),f.uIk("data-mat-row",j)("data-mat-col",E),f.xp6(1),f.ekj("mat-calendar-body-disabled",!it.enabled)("mat-calendar-body-active",fe._isActiveCell(j,E))("mat-calendar-body-range-start",fe._isRangeStart(it.compareValue))("mat-calendar-body-range-end",fe._isRangeEnd(it.compareValue))("mat-calendar-body-in-range",fe._isInRange(it.compareValue))("mat-calendar-body-comparison-bridge-start",fe._isComparisonBridgeStart(it.compareValue,j,E))("mat-calendar-body-comparison-bridge-end",fe._isComparisonBridgeEnd(it.compareValue,j,E))("mat-calendar-body-comparison-start",fe._isComparisonStart(it.compareValue))("mat-calendar-body-comparison-end",fe._isComparisonEnd(it.compareValue))("mat-calendar-body-in-comparison-range",fe._isInComparisonRange(it.compareValue))("mat-calendar-body-preview-start",fe._isPreviewStart(it.compareValue))("mat-calendar-body-preview-end",fe._isPreviewEnd(it.compareValue))("mat-calendar-body-in-preview",fe._isInPreview(it.compareValue)),f.Q6J("ngClass",it.cssClasses)("tabindex",fe._isActiveCell(j,E)?0:-1),f.uIk("aria-label",it.ariaLabel)("aria-disabled",!it.enabled||null)("aria-pressed",fe._isSelected(it.compareValue))("aria-current",fe.todayValue===it.compareValue?"date":null)("aria-describedby",fe._getDescribedby(it.compareValue)),f.xp6(1),f.ekj("mat-calendar-body-selected",fe._isSelected(it.compareValue))("mat-calendar-body-comparison-identical",fe._isComparisonIdentical(it.compareValue))("mat-calendar-body-today",fe.todayValue===it.compareValue),f.xp6(1),f.hij(" ",it.displayValue," ")}}function He(Ze,Dt){if(1&Ze&&(f.TgZ(0,"tr",5),f.YNc(1,ce,2,6,"td",6),f.YNc(2,Re,5,48,"td",7),f.qZA()),2&Ze){const it=Dt.$implicit,E=Dt.index,j=f.oxw();f.xp6(1),f.Q6J("ngIf",0===E&&j._firstRowOffset),f.xp6(1),f.Q6J("ngForOf",it)}}function nt(Ze,Dt){if(1&Ze&&(f.TgZ(0,"th",5)(1,"span",6),f._uU(2),f.qZA(),f.TgZ(3,"span",7),f._uU(4),f.qZA()()),2&Ze){const it=Dt.$implicit;f.xp6(2),f.Oqu(it.long),f.xp6(2),f.Oqu(it.narrow)}}const _t=["*"];function dt(Ze,Dt){}function yt(Ze,Dt){if(1&Ze){const it=f.EpF();f.TgZ(0,"mat-month-view",5),f.NdJ("activeDateChange",function(j){f.CHM(it);const fe=f.oxw();return f.KtG(fe.activeDate=j)})("_userSelection",function(j){f.CHM(it);const fe=f.oxw();return f.KtG(fe._dateSelected(j))})("dragStarted",function(j){f.CHM(it);const fe=f.oxw();return f.KtG(fe._dragStarted(j))})("dragEnded",function(j){f.CHM(it);const fe=f.oxw();return f.KtG(fe._dragEnded(j))}),f.qZA()}if(2&Ze){const it=f.oxw();f.Q6J("activeDate",it.activeDate)("selected",it.selected)("dateFilter",it.dateFilter)("maxDate",it.maxDate)("minDate",it.minDate)("dateClass",it.dateClass)("comparisonStart",it.comparisonStart)("comparisonEnd",it.comparisonEnd)("startDateAccessibleName",it.startDateAccessibleName)("endDateAccessibleName",it.endDateAccessibleName)("activeDrag",it._activeDrag)}}function ot(Ze,Dt){if(1&Ze){const it=f.EpF();f.TgZ(0,"mat-year-view",6),f.NdJ("activeDateChange",function(j){f.CHM(it);const fe=f.oxw();return f.KtG(fe.activeDate=j)})("monthSelected",function(j){f.CHM(it);const fe=f.oxw();return f.KtG(fe._monthSelectedInYearView(j))})("selectedChange",function(j){f.CHM(it);const fe=f.oxw();return f.KtG(fe._goToDateInView(j,"month"))}),f.qZA()}if(2&Ze){const it=f.oxw();f.Q6J("activeDate",it.activeDate)("selected",it.selected)("dateFilter",it.dateFilter)("maxDate",it.maxDate)("minDate",it.minDate)("dateClass",it.dateClass)}}function st(Ze,Dt){if(1&Ze){const it=f.EpF();f.TgZ(0,"mat-multi-year-view",7),f.NdJ("activeDateChange",function(j){f.CHM(it);const fe=f.oxw();return f.KtG(fe.activeDate=j)})("yearSelected",function(j){f.CHM(it);const fe=f.oxw();return f.KtG(fe._yearSelectedInMultiYearView(j))})("selectedChange",function(j){f.CHM(it);const fe=f.oxw();return f.KtG(fe._goToDateInView(j,"year"))}),f.qZA()}if(2&Ze){const it=f.oxw();f.Q6J("activeDate",it.activeDate)("selected",it.selected)("dateFilter",it.dateFilter)("maxDate",it.maxDate)("minDate",it.minDate)("dateClass",it.dateClass)}}function _e(Ze,Dt){}const Q=["button"];function qe(Ze,Dt){1&Ze&&(f.O4$(),f.TgZ(0,"svg",3),f._UZ(1,"path",4),f.qZA())}const Te=[[["","matDatepickerToggleIcon",""]]],se=["[matDatepickerToggleIcon]"];let Fe=(()=>{var Ze;class Dt{constructor(){this.changes=new ae.xQ,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(E,j){return`${E} \u2013 ${j}`}formatYearRangeLabel(E,j){return`${E} to ${j}`}}return(Ze=Dt).\u0275fac=function(E){return new(E||Ze)},Ze.\u0275prov=f.Yz7({token:Ze,factory:Ze.\u0275fac,providedIn:"root"}),Dt})();class Je{constructor(Dt,it,E,j,fe={},Ge=Dt,Ot){this.value=Dt,this.displayValue=it,this.ariaLabel=E,this.enabled=j,this.cssClasses=fe,this.compareValue=Ge,this.rawValue=Ot}}let ht=1;const vt=(0,$.i$)({passive:!1,capture:!0}),At=(0,$.i$)({passive:!0,capture:!0}),Yt=(0,$.i$)({passive:!0});let on=(()=>{var Ze;class Dt{ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}constructor(E,j){this._elementRef=E,this._ngZone=j,this._platform=(0,f.f3M)($.t4),this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new f.vpe,this.previewChange=new f.vpe,this.activeDateChange=new f.vpe,this.dragStarted=new f.vpe,this.dragEnded=new f.vpe,this._didDragSinceMouseDown=!1,this._enterHandler=fe=>{if(this._skipNextFocus&&"focus"===fe.type)this._skipNextFocus=!1;else if(fe.target&&this.isRange){const Ge=this._getCellFromElement(fe.target);Ge&&this._ngZone.run(()=>this.previewChange.emit({value:Ge.enabled?Ge:null,event:fe}))}},this._touchmoveHandler=fe=>{if(!this.isRange)return;const Ge=kn(fe),Ot=Ge?this._getCellFromElement(Ge):null;Ge!==fe.target&&(this._didDragSinceMouseDown=!0),gn(fe.target)&&fe.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:null!=Ot&&Ot.enabled?Ot:null,event:fe}))},this._leaveHandler=fe=>{null!==this.previewEnd&&this.isRange&&("blur"!==fe.type&&(this._didDragSinceMouseDown=!0),fe.target&&this._getCellFromElement(fe.target)&&(!fe.relatedTarget||!this._getCellFromElement(fe.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:fe})))},this._mousedownHandler=fe=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;const Ge=fe.target&&this._getCellFromElement(fe.target);!Ge||!this._isInRange(Ge.rawValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:Ge.rawValue,event:fe})})},this._mouseupHandler=fe=>{if(!this.isRange)return;const Ge=gn(fe.target);Ge?Ge.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{var Ot;const hn=this._getCellFromElement(Ge);this.dragEnded.emit({value:null!==(Ot=null==hn?void 0:hn.rawValue)&&void 0!==Ot?Ot:null,event:fe})}):this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:fe})})},this._touchendHandler=fe=>{const Ge=kn(fe);Ge&&this._mouseupHandler({target:Ge})},this._id="mat-calendar-body-"+ht++,this._startDateLabelId=`${this._id}-start-date`,this._endDateLabelId=`${this._id}-end-date`,j.runOutsideAngular(()=>{const fe=E.nativeElement;fe.addEventListener("touchmove",this._touchmoveHandler,vt),fe.addEventListener("mouseenter",this._enterHandler,At),fe.addEventListener("focus",this._enterHandler,At),fe.addEventListener("mouseleave",this._leaveHandler,At),fe.addEventListener("blur",this._leaveHandler,At),fe.addEventListener("mousedown",this._mousedownHandler,Yt),fe.addEventListener("touchstart",this._mousedownHandler,Yt),this._platform.isBrowser&&(window.addEventListener("mouseup",this._mouseupHandler),window.addEventListener("touchend",this._touchendHandler))})}_cellClicked(E,j){this._didDragSinceMouseDown||E.enabled&&this.selectedValueChange.emit({value:E.value,event:j})}_emitActiveDateChange(E,j){E.enabled&&this.activeDateChange.emit({value:E.value,event:j})}_isSelected(E){return this.startValue===E||this.endValue===E}ngOnChanges(E){const j=E.numCols,{rows:fe,numCols:Ge}=this;(E.rows||j)&&(this._firstRowOffset=fe&&fe.length&&fe[0].length?Ge-fe[0].length:0),(E.cellAspectRatio||j||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/Ge+"%"),(j||!this._cellWidth)&&(this._cellWidth=100/Ge+"%")}ngOnDestroy(){const E=this._elementRef.nativeElement;E.removeEventListener("touchmove",this._touchmoveHandler,vt),E.removeEventListener("mouseenter",this._enterHandler,At),E.removeEventListener("focus",this._enterHandler,At),E.removeEventListener("mouseleave",this._leaveHandler,At),E.removeEventListener("blur",this._leaveHandler,At),E.removeEventListener("mousedown",this._mousedownHandler,Yt),E.removeEventListener("touchstart",this._mousedownHandler,Yt),this._platform.isBrowser&&(window.removeEventListener("mouseup",this._mouseupHandler),window.removeEventListener("touchend",this._touchendHandler))}_isActiveCell(E,j){let fe=E*this.numCols+j;return E&&(fe-=this._firstRowOffset),fe==this.activeCell}_focusActiveCell(E=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,ge.q)(1)).subscribe(()=>{setTimeout(()=>{const j=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");j&&(E||(this._skipNextFocus=!0),j.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(E){return Ut(E,this.startValue,this.endValue)}_isRangeEnd(E){return Rn(E,this.startValue,this.endValue)}_isInRange(E){return Pn(E,this.startValue,this.endValue,this.isRange)}_isComparisonStart(E){return Ut(E,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(E,j,fe){if(!this._isComparisonStart(E)||this._isRangeStart(E)||!this._isInRange(E))return!1;let Ge=this.rows[j][fe-1];if(!Ge){const Ot=this.rows[j-1];Ge=Ot&&Ot[Ot.length-1]}return Ge&&!this._isRangeEnd(Ge.compareValue)}_isComparisonBridgeEnd(E,j,fe){if(!this._isComparisonEnd(E)||this._isRangeEnd(E)||!this._isInRange(E))return!1;let Ge=this.rows[j][fe+1];if(!Ge){const Ot=this.rows[j+1];Ge=Ot&&Ot[0]}return Ge&&!this._isRangeStart(Ge.compareValue)}_isComparisonEnd(E){return Rn(E,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(E){return Pn(E,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(E){return this.comparisonStart===this.comparisonEnd&&E===this.comparisonStart}_isPreviewStart(E){return Ut(E,this.previewStart,this.previewEnd)}_isPreviewEnd(E){return Rn(E,this.previewStart,this.previewEnd)}_isInPreview(E){return Pn(E,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(E){return this.isRange?this.startValue===E&&this.endValue===E?`${this._startDateLabelId} ${this._endDateLabelId}`:this.startValue===E?this._startDateLabelId:this.endValue===E?this._endDateLabelId:null:null}_getCellFromElement(E){const j=gn(E);if(j){const fe=j.getAttribute("data-mat-row"),Ge=j.getAttribute("data-mat-col");if(fe&&Ge)return this.rows[parseInt(fe)][parseInt(Ge)]}return null}}return(Ze=Dt).\u0275fac=function(E){return new(E||Ze)(f.Y36(f.SBq),f.Y36(f.R0b))},Ze.\u0275cmp=f.Xpm({type:Ze,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],features:[f.TTD],attrs:Ie,decls:6,vars:6,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],[1,"mat-calendar-body-hidden-label",3,"id"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click","focus"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(E,j){1&E&&(f.YNc(0,te,3,6,"tr",0),f.YNc(1,He,3,2,"tr",1),f.TgZ(2,"label",2),f._uU(3),f.qZA(),f.TgZ(4,"label",2),f._uU(5),f.qZA()),2&E&&(f.Q6J("ngIf",j._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){color:var(--mat-datepicker-calendar-date-disabled-state-text-color)}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-disabled-state-outline-color)}.cdk-high-contrast-active .mat-calendar-body-disabled{opacity:.5}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px;color:var(--mat-datepicker-calendar-date-text-color);border-color:var(--mat-datepicker-calendar-date-outline-color)}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-focus-state-background-color)}@media(hover: hover){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-hover-state-background-color)}}.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color);color:var(--mat-datepicker-calendar-date-selected-state-text-color)}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-disabled-state-background-color)}.mat-calendar-body-selected.mat-calendar-body-today{box-shadow:inset 0 0 0 1px var(--mat-datepicker-calendar-date-today-selected-state-outline-color)}.mat-calendar-body-in-range::before{background:var(--mat-datepicker-calendar-date-in-range-state-background-color)}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color)}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color)}.mat-calendar-body-comparison-bridge-start::before,[dir=rtl] .mat-calendar-body-comparison-bridge-end::before{background:linear-gradient(to right, var(--mat-datepicker-calendar-date-in-range-state-background-color) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color) 50%)}.mat-calendar-body-comparison-bridge-end::before,[dir=rtl] .mat-calendar-body-comparison-bridge-start::before{background:linear-gradient(to left, var(--mat-datepicker-calendar-date-in-range-state-background-color) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color) 50%)}.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after{background:var(--mat-datepicker-calendar-date-in-overlap-range-state-background-color)}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:var(--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color)}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}'],encapsulation:2,changeDetection:0}),Dt})();function nn(Ze){return"TD"===(null==Ze?void 0:Ze.nodeName)}function gn(Ze){var Dt,it;let E;return nn(Ze)?E=Ze:nn(Ze.parentNode)?E=Ze.parentNode:nn(null===(Dt=Ze.parentNode)||void 0===Dt?void 0:Dt.parentNode)&&(E=Ze.parentNode.parentNode),null!=(null===(it=E)||void 0===it?void 0:it.getAttribute("data-mat-row"))?E:null}function Ut(Ze,Dt,it){return null!==it&&Dt!==it&&Ze=Dt&&Ze===it}function Pn(Ze,Dt,it,E){return E&&null!==Dt&&null!==it&&Dt!==it&&Ze>=Dt&&Ze<=it}function kn(Ze){const Dt=Ze.changedTouches[0];return document.elementFromPoint(Dt.clientX,Dt.clientY)}class tt{constructor(Dt,it){this.start=Dt,this.end=it}}let z=(()=>{var Ze;class Dt{constructor(E,j){this.selection=E,this._adapter=j,this._selectionChanged=new ae.xQ,this.selectionChanged=this._selectionChanged,this.selection=E}updateSelection(E,j){const fe=this.selection;this.selection=E,this._selectionChanged.next({selection:E,source:j,oldValue:fe})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(E){return this._adapter.isDateInstance(E)&&this._adapter.isValid(E)}}return(Ze=Dt).\u0275fac=function(E){f.$Z()},Ze.\u0275prov=f.Yz7({token:Ze,factory:Ze.\u0275fac}),Dt})(),Ae=(()=>{var Ze;class Dt extends z{constructor(E){super(null,E)}add(E){super.updateSelection(E,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const E=new Dt(this._adapter);return E.updateSelection(this.selection,this),E}}return(Ze=Dt).\u0275fac=function(E){return new(E||Ze)(f.LFG(q._A))},Ze.\u0275prov=f.Yz7({token:Ze,factory:Ze.\u0275fac}),Dt})();const Ye={provide:z,deps:[[new f.FiY,new f.tp0,z],q._A],useFactory:function me(Ze,Dt){return Ze||new Ae(Dt)}},Bt=new f.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let fn=(()=>{var Ze;class Dt{get activeDate(){return this._activeDate}set activeDate(E){const j=this._activeDate,fe=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(E))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(fe,this.minDate,this.maxDate),this._hasSameMonthAndYear(j,this._activeDate)||this._init()}get selected(){return this._selected}set selected(E){this._selected=E instanceof tt?E:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(E)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(E){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(E))}get maxDate(){return this._maxDate}set maxDate(E){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(E))}constructor(E,j,fe,Ge,Ot){this._changeDetectorRef=E,this._dateFormats=j,this._dateAdapter=fe,this._dir=Ge,this._rangeStrategy=Ot,this._rerenderSubscription=K.w.EMPTY,this.activeDrag=null,this.selectedChange=new f.vpe,this._userSelection=new f.vpe,this.dragStarted=new f.vpe,this.dragEnded=new f.vpe,this.activeDateChange=new f.vpe,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,Ne.O)(null)).subscribe(()=>this._init())}ngOnChanges(E){const j=E.comparisonStart||E.comparisonEnd;j&&!j.firstChange&&this._setRanges(this.selected),E.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(E){const j=E.value,fe=this._getDateFromDayOfMonth(j);let Ge,Ot;this._selected instanceof tt?(Ge=this._getDateInCurrentMonth(this._selected.start),Ot=this._getDateInCurrentMonth(this._selected.end)):Ge=Ot=this._getDateInCurrentMonth(this._selected),(Ge!==j||Ot!==j)&&this.selectedChange.emit(fe),this._userSelection.emit({value:fe,event:E.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(E){const fe=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(E.value),this._dateAdapter.compareDate(fe,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(E){const j=this._activeDate,fe=this._isRtl();switch(E.keyCode){case U.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,fe?1:-1);break;case U.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,fe?-1:1);break;case U.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case U.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case U.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case U.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case U.Ku:this.activeDate=E.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case U.VM:this.activeDate=E.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case U.K5:case U.L_:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&E.preventDefault());case U.hY:return void(null!=this._previewEnd&&!(0,U.Vb)(E)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:E}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:E})),E.preventDefault(),E.stopPropagation()));default:return}this._dateAdapter.compareDate(j,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),E.preventDefault()}_handleCalendarBodyKeyup(E){(E.keyCode===U.L_||E.keyCode===U.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:E}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let E=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(E)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(E){this._matCalendarBody._focusActiveCell(E)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:E,value:j}){if(this._rangeStrategy){const Ot=j?j.rawValue:null,hn=this._rangeStrategy.createPreview(Ot,this.selected,E);if(this._previewStart=this._getCellCompareValue(hn.start),this._previewEnd=this._getCellCompareValue(hn.end),this.activeDrag&&Ot){var fe,Ge;const ai=null===(fe=(Ge=this._rangeStrategy).createDrag)||void 0===fe?void 0:fe.call(Ge,this.activeDrag.value,this.selected,Ot,E);ai&&(this._previewStart=this._getCellCompareValue(ai.start),this._previewEnd=this._getCellCompareValue(ai.end))}this._changeDetectorRef.detectChanges()}}_dragEnded(E){if(this.activeDrag)if(E.value){var j,fe;const Ge=null===(j=this._rangeStrategy)||void 0===j||null===(fe=j.createDrag)||void 0===fe?void 0:fe.call(j,this.activeDrag.value,this.selected,E.value,E.event);this.dragEnded.emit({value:null!=Ge?Ge:null,event:E.event})}else this.dragEnded.emit({value:null,event:E.event})}_getDateFromDayOfMonth(E){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),E)}_initWeekdays(){const E=this._dateAdapter.getFirstDayOfWeek(),j=this._dateAdapter.getDayOfWeekNames("narrow");let Ge=this._dateAdapter.getDayOfWeekNames("long").map((Ot,hn)=>({long:Ot,narrow:j[hn]}));this._weekdays=Ge.slice(E).concat(Ge.slice(0,E))}_createWeekCells(){const E=this._dateAdapter.getNumDaysInMonth(this.activeDate),j=this._dateAdapter.getDateNames();this._weeks=[[]];for(let fe=0,Ge=this._firstWeekOffset;fe=0)&&(!this.maxDate||this._dateAdapter.compareDate(E,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(E))}_getDateInCurrentMonth(E){return E&&this._hasSameMonthAndYear(E,this.activeDate)?this._dateAdapter.getDate(E):null}_hasSameMonthAndYear(E,j){return!(!E||!j||this._dateAdapter.getMonth(E)!=this._dateAdapter.getMonth(j)||this._dateAdapter.getYear(E)!=this._dateAdapter.getYear(j))}_getCellCompareValue(E){if(E){const j=this._dateAdapter.getYear(E),fe=this._dateAdapter.getMonth(E),Ge=this._dateAdapter.getDate(E);return new Date(j,fe,Ge).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(E){E instanceof tt?(this._rangeStart=this._getCellCompareValue(E.start),this._rangeEnd=this._getCellCompareValue(E.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(E),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(E){return!this.dateFilter||this.dateFilter(E)}_clearPreview(){this._previewStart=this._previewEnd=null}}return(Ze=Dt).\u0275fac=function(E){return new(E||Ze)(f.Y36(f.sBO),f.Y36(q.sG,8),f.Y36(q._A,8),f.Y36($e.Is,8),f.Y36(Bt,8))},Ze.\u0275cmp=f.Xpm({type:Ze,selectors:[["mat-month-view"]],viewQuery:function(E,j){if(1&E&&f.Gf(on,5),2&E){let fe;f.iGM(fe=f.CRH())&&(j._matCalendarBody=fe.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[f.TTD],decls:7,vars:15,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName","selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(E,j){1&E&&(f.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),f.YNc(3,nt,5,2,"th",2),f.qZA(),f.TgZ(4,"tr"),f._UZ(5,"th",3),f.qZA()(),f.TgZ(6,"tbody",4),f.NdJ("selectedValueChange",function(Ge){return j._dateSelected(Ge)})("activeDateChange",function(Ge){return j._updateActiveDate(Ge)})("previewChange",function(Ge){return j._previewChanged(Ge)})("dragStarted",function(Ge){return j.dragStarted.emit(Ge)})("dragEnded",function(Ge){return j._dragEnded(Ge)})("keyup",function(Ge){return j._handleCalendarBodyKeyup(Ge)})("keydown",function(Ge){return j._handleCalendarBodyKeydown(Ge)}),f.qZA()()),2&E&&(f.xp6(3),f.Q6J("ngForOf",j._weekdays),f.xp6(3),f.Q6J("label",j._monthLabel)("rows",j._weeks)("todayValue",j._todayDate)("startValue",j._rangeStart)("endValue",j._rangeEnd)("comparisonStart",j._comparisonRangeStart)("comparisonEnd",j._comparisonRangeEnd)("previewStart",j._previewStart)("previewEnd",j._previewEnd)("isRange",j._isRange)("labelMinRequiredCells",3)("activeCell",j._dateAdapter.getDate(j.activeDate)-1)("startDateAccessibleName",j.startDateAccessibleName)("endDateAccessibleName",j.endDateAccessibleName))},dependencies:[L.sg,on],encapsulation:2,changeDetection:0}),Dt})();const pn=24;let un=(()=>{var Ze;class Dt{get activeDate(){return this._activeDate}set activeDate(E){let j=this._activeDate;const fe=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(E))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(fe,this.minDate,this.maxDate),Kn(this._dateAdapter,j,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(E){this._selected=E instanceof tt?E:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(E)),this._setSelectedYear(E)}get minDate(){return this._minDate}set minDate(E){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(E))}get maxDate(){return this._maxDate}set maxDate(E){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(E))}constructor(E,j,fe){this._changeDetectorRef=E,this._dateAdapter=j,this._dir=fe,this._rerenderSubscription=K.w.EMPTY,this.selectedChange=new f.vpe,this.yearSelected=new f.vpe,this.activeDateChange=new f.vpe,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,Ne.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const j=this._dateAdapter.getYear(this._activeDate)-mt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let fe=0,Ge=[];fethis._createCellForYear(Ot))),Ge=[]);this._changeDetectorRef.markForCheck()}_yearSelected(E){const j=E.value,fe=this._dateAdapter.createDate(j,0,1),Ge=this._getDateFromYear(j);this.yearSelected.emit(fe),this.selectedChange.emit(Ge)}_updateActiveDate(E){const fe=this._activeDate;this.activeDate=this._getDateFromYear(E.value),this._dateAdapter.compareDate(fe,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(E){const j=this._activeDate,fe=this._isRtl();switch(E.keyCode){case U.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,fe?1:-1);break;case U.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,fe?-1:1);break;case U.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case U.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case U.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-mt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case U.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,pn-mt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case U.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,E.altKey?10*-pn:-pn);break;case U.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,E.altKey?10*pn:pn);break;case U.K5:case U.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(j,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),E.preventDefault()}_handleCalendarBodyKeyup(E){(E.keyCode===U.L_||E.keyCode===U.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:E}),this._selectionKeyPressed=!1)}_getActiveCell(){return mt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(E){const j=this._dateAdapter.getMonth(this.activeDate),fe=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(E,j,1));return this._dateAdapter.createDate(E,j,Math.min(this._dateAdapter.getDate(this.activeDate),fe))}_createCellForYear(E){const j=this._dateAdapter.createDate(E,0,1),fe=this._dateAdapter.getYearName(j),Ge=this.dateClass?this.dateClass(j,"multi-year"):void 0;return new Je(E,fe,fe,this._shouldEnableYear(E),Ge)}_shouldEnableYear(E){if(null==E||this.maxDate&&E>this._dateAdapter.getYear(this.maxDate)||this.minDate&&E{var Ze;class Dt{get activeDate(){return this._activeDate}set activeDate(E){let j=this._activeDate;const fe=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(E))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(fe,this.minDate,this.maxDate),this._dateAdapter.getYear(j)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(E){this._selected=E instanceof tt?E:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(E)),this._setSelectedMonth(E)}get minDate(){return this._minDate}set minDate(E){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(E))}get maxDate(){return this._maxDate}set maxDate(E){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(E))}constructor(E,j,fe,Ge){this._changeDetectorRef=E,this._dateFormats=j,this._dateAdapter=fe,this._dir=Ge,this._rerenderSubscription=K.w.EMPTY,this.selectedChange=new f.vpe,this.monthSelected=new f.vpe,this.activeDateChange=new f.vpe,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,Ne.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(E){const j=E.value,fe=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),j,1);this.monthSelected.emit(fe);const Ge=this._getDateFromMonth(j);this.selectedChange.emit(Ge)}_updateActiveDate(E){const fe=this._activeDate;this.activeDate=this._getDateFromMonth(E.value),this._dateAdapter.compareDate(fe,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(E){const j=this._activeDate,fe=this._isRtl();switch(E.keyCode){case U.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,fe?1:-1);break;case U.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,fe?-1:1);break;case U.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case U.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case U.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case U.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case U.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,E.altKey?-10:-1);break;case U.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,E.altKey?10:1);break;case U.K5:case U.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(j,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),E.preventDefault()}_handleCalendarBodyKeyup(E){(E.keyCode===U.L_||E.keyCode===U.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:E}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let E=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(j=>j.map(fe=>this._createCellForMonth(fe,E[fe]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(E){return E&&this._dateAdapter.getYear(E)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(E):null}_getDateFromMonth(E){const j=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),E,1),fe=this._dateAdapter.getNumDaysInMonth(j);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),E,Math.min(this._dateAdapter.getDate(this.activeDate),fe))}_createCellForMonth(E,j){const fe=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),E,1),Ge=this._dateAdapter.format(fe,this._dateFormats.display.monthYearA11yLabel),Ot=this.dateClass?this.dateClass(fe,"year"):void 0;return new Je(E,j.toLocaleUpperCase(),Ge,this._shouldEnableMonth(E),Ot)}_shouldEnableMonth(E){const j=this._dateAdapter.getYear(this.activeDate);if(null==E||this._isYearAndMonthAfterMaxDate(j,E)||this._isYearAndMonthBeforeMinDate(j,E))return!1;if(!this.dateFilter)return!0;for(let Ge=this._dateAdapter.createDate(j,E,1);this._dateAdapter.getMonth(Ge)==E;Ge=this._dateAdapter.addCalendarDays(Ge,1))if(this.dateFilter(Ge))return!0;return!1}_isYearAndMonthAfterMaxDate(E,j){if(this.maxDate){const fe=this._dateAdapter.getYear(this.maxDate),Ge=this._dateAdapter.getMonth(this.maxDate);return E>fe||E===fe&&j>Ge}return!1}_isYearAndMonthBeforeMinDate(E,j){if(this.minDate){const fe=this._dateAdapter.getYear(this.minDate),Ge=this._dateAdapter.getMonth(this.minDate);return E{var Ze;class Dt{constructor(E,j,fe,Ge,Ot){this._intl=E,this.calendar=j,this._dateAdapter=fe,this._dateFormats=Ge,this._id="mat-calendar-header-"+Ct++,this._periodButtonLabelId=`${this._id}-period-label`,this.calendar.stateChanges.subscribe(()=>Ot.markForCheck())}get periodButtonText(){return"month"==this.calendar.currentView?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():"year"==this.calendar.currentView?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRange(...this._formatMinAndMaxYearLabels())}get periodButtonDescription(){return"month"==this.calendar.currentView?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():"year"==this.calendar.currentView?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRangeLabel(...this._formatMinAndMaxYearLabels())}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-pn)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:pn)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(E,j){return"month"==this.calendar.currentView?this._dateAdapter.getYear(E)==this._dateAdapter.getYear(j)&&this._dateAdapter.getMonth(E)==this._dateAdapter.getMonth(j):"year"==this.calendar.currentView?this._dateAdapter.getYear(E)==this._dateAdapter.getYear(j):Kn(this._dateAdapter,E,j,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){const j=this._dateAdapter.getYear(this.calendar.activeDate)-mt(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),fe=j+pn-1;return[this._dateAdapter.getYearName(this._dateAdapter.createDate(j,0,1)),this._dateAdapter.getYearName(this._dateAdapter.createDate(fe,0,1))]}}return(Ze=Dt).\u0275fac=function(E){return new(E||Ze)(f.Y36(Fe),f.Y36((0,f.Gpc)(()=>mn)),f.Y36(q._A,8),f.Y36(q.sG,8),f.Y36(f.sBO))},Ze.\u0275cmp=f.Xpm({type:Ze,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:_t,decls:13,vars:11,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"],[1,"mat-calendar-hidden-label",3,"id"]],template:function(E,j){1&E&&(f.F$t(),f.TgZ(0,"div",0)(1,"div",1)(2,"button",2),f.NdJ("click",function(){return j.currentPeriodClicked()}),f.TgZ(3,"span",3),f._uU(4),f.qZA(),f.O4$(),f.TgZ(5,"svg",4),f._UZ(6,"polygon",5),f.qZA()(),f.kcU(),f._UZ(7,"div",6),f.Hsn(8),f.TgZ(9,"button",7),f.NdJ("click",function(){return j.previousClicked()}),f.qZA(),f.TgZ(10,"button",8),f.NdJ("click",function(){return j.nextClicked()}),f.qZA()()(),f.TgZ(11,"label",9),f._uU(12),f.qZA()),2&E&&(f.xp6(2),f.uIk("aria-label",j.periodButtonLabel)("aria-describedby",j._periodButtonLabelId),f.xp6(2),f.Oqu(j.periodButtonText),f.xp6(1),f.ekj("mat-calendar-invert","month"!==j.calendar.currentView),f.xp6(4),f.Q6J("disabled",!j.previousEnabled()),f.uIk("aria-label",j.prevButtonLabel),f.xp6(1),f.Q6J("disabled",!j.nextEnabled()),f.uIk("aria-label",j.nextButtonLabel),f.xp6(1),f.Q6J("id",j._periodButtonLabelId),f.xp6(1),f.Oqu(j.periodButtonDescription))},dependencies:[W.lW,W.RK],encapsulation:2,changeDetection:0}),Dt})(),mn=(()=>{var Ze;class Dt{get startAt(){return this._startAt}set startAt(E){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(E))}get selected(){return this._selected}set selected(E){this._selected=E instanceof tt?E:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(E))}get minDate(){return this._minDate}set minDate(E){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(E))}get maxDate(){return this._maxDate}set maxDate(E){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(E))}get activeDate(){return this._clampedActiveDate}set activeDate(E){this._clampedActiveDate=this._dateAdapter.clampDate(E,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(E){const j=this._currentView!==E?E:null;this._currentView=E,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),j&&this.viewChanged.emit(j)}constructor(E,j,fe,Ge){this._dateAdapter=j,this._dateFormats=fe,this._changeDetectorRef=Ge,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new f.vpe,this.yearSelected=new f.vpe,this.monthSelected=new f.vpe,this.viewChanged=new f.vpe(!0),this._userSelection=new f.vpe,this._userDragDrop=new f.vpe,this._activeDrag=null,this.stateChanges=new ae.xQ,this._intlChanges=E.changes.subscribe(()=>{Ge.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new m.C5(this.headerComponent||en),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(E){const j=E.minDate&&!this._dateAdapter.sameDate(E.minDate.previousValue,E.minDate.currentValue)?E.minDate:void 0,fe=E.maxDate&&!this._dateAdapter.sameDate(E.maxDate.previousValue,E.maxDate.currentValue)?E.maxDate:void 0,Ge=j||fe||E.dateFilter;if(Ge&&!Ge.firstChange){const Ot=this._getCurrentViewComponent();Ot&&(this._changeDetectorRef.detectChanges(),Ot._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(E){const j=E.value;(this.selected instanceof tt||j&&!this._dateAdapter.sameDate(j,this.selected))&&this.selectedChange.emit(j),this._userSelection.emit(E)}_yearSelectedInMultiYearView(E){this.yearSelected.emit(E)}_monthSelectedInYearView(E){this.monthSelected.emit(E)}_goToDateInView(E,j){this.activeDate=E,this.currentView=j}_dragStarted(E){this._activeDrag=E}_dragEnded(E){this._activeDrag&&(E.value&&this._userDragDrop.emit(E),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return(Ze=Dt).\u0275fac=function(E){return new(E||Ze)(f.Y36(Fe),f.Y36(q._A,8),f.Y36(q.sG,8),f.Y36(f.sBO))},Ze.\u0275cmp=f.Xpm({type:Ze,selectors:[["mat-calendar"]],viewQuery:function(E,j){if(1&E&&(f.Gf(fn,5),f.Gf(ut,5),f.Gf(un,5)),2&E){let fe;f.iGM(fe=f.CRH())&&(j.monthView=fe.first),f.iGM(fe=f.CRH())&&(j.yearView=fe.first),f.iGM(fe=f.CRH())&&(j.multiYearView=fe.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],features:[f._Bn([Ye]),f.TTD],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag","activeDateChange","_userSelection","dragStarted","dragEnded",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag","activeDateChange","_userSelection","dragStarted","dragEnded"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(E,j){1&E&&(f.YNc(0,dt,0,0,"ng-template",0),f.TgZ(1,"div",1),f.YNc(2,yt,1,11,"mat-month-view",2),f.YNc(3,ot,1,6,"mat-year-view",3),f.YNc(4,st,1,6,"mat-multi-year-view",4),f.qZA()),2&E&&(f.Q6J("cdkPortalOutlet",j._calendarHeaderPortal),f.xp6(1),f.Q6J("ngSwitch",j.currentView),f.xp6(1),f.Q6J("ngSwitchCase","month"),f.xp6(1),f.Q6J("ngSwitchCase","year"),f.xp6(1),f.Q6J("ngSwitchCase","multi-year"))},dependencies:[L.RF,L.n9,i.kH,m.Pl,fn,ut,un],styles:['.mat-calendar{display:block;font-family:var(--mat-datepicker-calendar-text-font);font-size:var(--mat-datepicker-calendar-text-size)}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px;font-size:var(--mat-datepicker-calendar-period-button-text-size);font-weight:var(--mat-datepicker-calendar-period-button-text-weight)}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle;fill:var(--mat-datepicker-calendar-period-button-icon-color)}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-datepicker-content .mat-calendar-previous-button,.mat-datepicker-content .mat-calendar-next-button{color:var(--mat-datepicker-calendar-navigation-button-icon-color)}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0;color:var(--mat-datepicker-calendar-header-text-color);font-size:var(--mat-datepicker-calendar-header-text-size);font-weight:var(--mat-datepicker-calendar-header-text-weight)}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px;background:var(--mat-datepicker-calendar-header-divider-color)}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}.mat-calendar-hidden-label{display:none}'],encapsulation:2,changeDetection:0}),Dt})();const Xn={transformPanel:(0,x.X$)("transformPanel",[(0,x.eR)("void => enter-dropdown",(0,x.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,x.F4)([(0,x.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,x.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,x.eR)("void => enter-dialog",(0,x.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,x.F4)([(0,x.oB)({opacity:0,transform:"scale(0.7)"}),(0,x.oB)({transform:"none",opacity:1})]))),(0,x.eR)("* => void",(0,x.jt)("100ms linear",(0,x.oB)({opacity:0})))]),fadeInCalendar:(0,x.X$)("fadeInCalendar",[(0,x.SB)("void",(0,x.oB)({opacity:0})),(0,x.SB)("enter",(0,x.oB)({opacity:1})),(0,x.eR)("void => *",(0,x.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let Bn=0;const gt=new f.OlP("mat-datepicker-scroll-strategy"),Ee={provide:gt,deps:[s.aV],useFactory:function ve(Ze){return()=>Ze.scrollStrategies.reposition()}},de=(0,q.pj)(class{constructor(Ze){this._elementRef=Ze}});let G=(()=>{var Ze;class Dt extends de{constructor(E,j,fe,Ge,Ot,hn){super(E),this._changeDetectorRef=j,this._globalModel=fe,this._dateAdapter=Ge,this._rangeSelectionStrategy=Ot,this._subscriptions=new K.w,this._animationDone=new ae.xQ,this._isAnimating=!1,this._actionsPortal=null,this._closeButtonText=hn.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(E){const j=this._model.selection,fe=E.value,Ge=j instanceof tt;if(Ge&&this._rangeSelectionStrategy){const Ot=this._rangeSelectionStrategy.selectionFinished(fe,j,E.event);this._model.updateSelection(Ot,this)}else fe&&(Ge||!this._dateAdapter.sameDate(fe,j))&&this._model.add(fe);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(E){this._model.updateSelection(E.value,this)}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_handleAnimationEvent(E){this._isAnimating="start"===E.phaseName,this._isAnimating||this._animationDone.next()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(E,j){this._model=E?this._globalModel.clone():this._globalModel,this._actionsPortal=E,j&&this._changeDetectorRef.detectChanges()}}return(Ze=Dt).\u0275fac=function(E){return new(E||Ze)(f.Y36(f.SBq),f.Y36(f.sBO),f.Y36(z),f.Y36(q._A),f.Y36(Bt,8),f.Y36(Fe))},Ze.\u0275cmp=f.Xpm({type:Ze,selectors:[["mat-datepicker-content"]],viewQuery:function(E,j){if(1&E&&f.Gf(mn,5),2&E){let fe;f.iGM(fe=f.CRH())&&(j._calendar=fe.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(E,j){1&E&&f.WFA("@transformPanel.start",function(Ge){return j._handleAnimationEvent(Ge)})("@transformPanel.done",function(Ge){return j._handleAnimationEvent(Ge)}),2&E&&(f.d8E("@transformPanel",j._animationState),f.ekj("mat-datepicker-content-touch",j.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[f.qOj],decls:5,vars:26,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(E,j){if(1&E&&(f.TgZ(0,"div",0)(1,"mat-calendar",1),f.NdJ("yearSelected",function(Ge){return j.datepicker._selectYear(Ge)})("monthSelected",function(Ge){return j.datepicker._selectMonth(Ge)})("viewChanged",function(Ge){return j.datepicker._viewChanged(Ge)})("_userSelection",function(Ge){return j._handleUserSelection(Ge)})("_userDragDrop",function(Ge){return j._handleUserDragDrop(Ge)}),f.qZA(),f.YNc(2,_e,0,0,"ng-template",2),f.TgZ(3,"button",3),f.NdJ("focus",function(){return j._closeButtonFocused=!0})("blur",function(){return j._closeButtonFocused=!1})("click",function(){return j.datepicker.close()}),f._uU(4),f.qZA()()),2&E){let fe;f.ekj("mat-datepicker-content-container-with-custom-header",j.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",j._actionsPortal),f.uIk("aria-modal",!0)("aria-labelledby",null!==(fe=j._dialogLabelId)&&void 0!==fe?fe:void 0),f.xp6(1),f.Q6J("id",j.datepicker.id)("ngClass",j.datepicker.panelClass)("startAt",j.datepicker.startAt)("startView",j.datepicker.startView)("minDate",j.datepicker._getMinDate())("maxDate",j.datepicker._getMaxDate())("dateFilter",j.datepicker._getDateFilter())("headerComponent",j.datepicker.calendarHeaderComponent)("selected",j._getSelected())("dateClass",j.datepicker.dateClass)("comparisonStart",j.comparisonStart)("comparisonEnd",j.comparisonEnd)("@fadeInCalendar","enter")("startDateAccessibleName",j.startDateAccessibleName)("endDateAccessibleName",j.endDateAccessibleName),f.xp6(1),f.Q6J("cdkPortalOutlet",j._actionsPortal),f.xp6(1),f.ekj("cdk-visually-hidden",!j._closeButtonFocused),f.Q6J("color",j.color||"primary"),f.xp6(1),f.Oqu(j._closeButtonText)}},dependencies:[L.mk,W.lW,i.mK,m.Pl,mn],styles:[".mat-datepicker-content{box-shadow:0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);display:block;border-radius:4px;background-color:var(--mat-datepicker-calendar-container-background-color);color:var(--mat-datepicker-calendar-container-text-color)}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{box-shadow:0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12);display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[Xn.transformPanel,Xn.fadeInCalendar]},changeDetection:0}),Dt})(),We=(()=>{var Ze;class Dt{get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(E){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(E))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(E){this._color=E}get touchUi(){return this._touchUi}set touchUi(E){this._touchUi=(0,ee.Ig)(E)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(E){const j=(0,ee.Ig)(E);j!==this._disabled&&(this._disabled=j,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(E){this._restoreFocus=(0,ee.Ig)(E)}get panelClass(){return this._panelClass}set panelClass(E){this._panelClass=(0,ee.du)(E)}get opened(){return this._opened}set opened(E){(0,ee.Ig)(E)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}constructor(E,j,fe,Ge,Ot,hn,ai){this._overlay=E,this._ngZone=j,this._viewContainerRef=fe,this._dateAdapter=Ot,this._dir=hn,this._model=ai,this._inputStateChanges=K.w.EMPTY,this._document=(0,f.f3M)(L.K0),this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new f.vpe,this.monthSelected=new f.vpe,this.viewChanged=new f.vpe(!0),this.openedStream=new f.vpe,this.closedStream=new f.vpe,this._opened=!1,this.id="mat-datepicker-"+Bn++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new ae.xQ,this._scrollStrategy=Ge}ngOnChanges(E){const j=E.xPosition||E.yPosition;if(j&&!j.firstChange&&this._overlayRef){const fe=this._overlayRef.getConfig().positionStrategy;fe instanceof s._G&&(this._setConnectedPositions(fe),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(E){this._model.add(E)}_selectYear(E){this.yearSelected.emit(E)}_selectMonth(E){this.monthSelected.emit(E)}_viewChanged(E){this.viewChanged.emit(E)}registerInput(E){return this._inputStateChanges.unsubscribe(),this.datepickerInput=E,this._inputStateChanges=E.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(E){var j;this._actionsPortal=E,null===(j=this._componentRef)||void 0===j||j.instance._assignActions(E,!0)}removeActions(E){var j;E===this._actionsPortal&&(this._actionsPortal=null,null===(j=this._componentRef)||void 0===j||j.instance._assignActions(null,!0))}open(){var E;this._opened||this.disabled||null!==(E=this._componentRef)&&void 0!==E&&E.instance._isAnimating||(this._focusedElementBeforeOpen=(0,$.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){var E;if(!this._opened||null!==(E=this._componentRef)&&void 0!==E&&E.instance._isAnimating)return;const j=this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus,fe=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){const{instance:Ge,location:Ot}=this._componentRef;Ge._startExitAnimation(),Ge._animationDone.pipe((0,ge.q)(1)).subscribe(()=>{const hn=this._document.activeElement;j&&(!hn||hn===this._document.activeElement||Ot.nativeElement.contains(hn))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}j?setTimeout(fe):fe()}_applyPendingSelection(){var E;null===(E=this._componentRef)||void 0===E||null===(E=E.instance)||void 0===E||E._applyPendingSelection()}_forwardContentValues(E){E.datepicker=this,E.color=this.color,E._dialogLabelId=this.datepickerInput.getOverlayLabelId(),E._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const E=this.touchUi,j=new m.C5(G,this._viewContainerRef),fe=this._overlayRef=this._overlay.create(new s.X_({positionStrategy:E?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[E?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:E?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(E?"dialog":"popup")}));this._getCloseStream(fe).subscribe(Ge=>{Ge&&Ge.preventDefault(),this.close()}),fe.keydownEvents().subscribe(Ge=>{const Ot=Ge.keyCode;(Ot===U.LH||Ot===U.JH||Ot===U.oh||Ot===U.SV||Ot===U.Ku||Ot===U.VM)&&Ge.preventDefault()}),this._componentRef=fe.attach(j),this._forwardContentValues(this._componentRef.instance),E||this._ngZone.onStable.pipe((0,ge.q)(1)).subscribe(()=>fe.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const E=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(E)}_setConnectedPositions(E){const j="end"===this.xPosition?"end":"start",fe="start"===j?"end":"start",Ge="above"===this.yPosition?"bottom":"top",Ot="top"===Ge?"bottom":"top";return E.withPositions([{originX:j,originY:Ot,overlayX:j,overlayY:Ge},{originX:j,originY:Ge,overlayX:j,overlayY:Ot},{originX:fe,originY:Ot,overlayX:fe,overlayY:Ge},{originX:fe,originY:Ge,overlayX:fe,overlayY:Ot}])}_getCloseStream(E){const j=["ctrlKey","shiftKey","metaKey"];return(0,ne.T)(E.backdropClick(),E.detachments(),E.keydownEvents().pipe((0,ie.h)(fe=>fe.keyCode===U.hY&&!(0,U.Vb)(fe)||this.datepickerInput&&(0,U.Vb)(fe,"altKey")&&fe.keyCode===U.LH&&j.every(Ge=>!(0,U.Vb)(fe,Ge)))))}}return(Ze=Dt).\u0275fac=function(E){return new(E||Ze)(f.Y36(s.aV),f.Y36(f.R0b),f.Y36(f.s_b),f.Y36(gt),f.Y36(q._A,8),f.Y36($e.Is,8),f.Y36(z))},Ze.\u0275dir=f.lG2({type:Ze,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[f.TTD]}),Dt})(),le=(()=>{var Ze;class Dt extends We{}return(Ze=Dt).\u0275fac=function(){let it;return function(j){return(it||(it=f.n5z(Ze)))(j||Ze)}}(),Ze.\u0275cmp=f.Xpm({type:Ze,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[f._Bn([Ye,{provide:We,useExisting:Ze}]),f.qOj],decls:0,vars:0,template:function(E,j){},encapsulation:2,changeDetection:0}),Dt})();class Me{constructor(Dt,it){this.target=Dt,this.targetElement=it,this.value=this.target.value}}let Le=(()=>{var Ze;class Dt{get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(E){this._assignValueProgrammatically(E)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(E){const j=(0,ee.Ig)(E),fe=this._elementRef.nativeElement;this._disabled!==j&&(this._disabled=j,this.stateChanges.next(void 0)),j&&this._isInitialized&&fe.blur&&fe.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(E){this._model=E,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(j=>{if(this._shouldHandleChangeEvent(j)){const fe=this._getValueFromModel(j.selection);this._lastValueValid=this._isValidValue(fe),this._cvaOnChange(fe),this._onTouched(),this._formatValue(fe),this.dateInput.emit(new Me(this,this._elementRef.nativeElement)),this.dateChange.emit(new Me(this,this._elementRef.nativeElement))}})}constructor(E,j,fe){this._elementRef=E,this._dateAdapter=j,this._dateFormats=fe,this.dateChange=new f.vpe,this.dateInput=new f.vpe,this.stateChanges=new ae.xQ,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=K.w.EMPTY,this._localeSubscription=K.w.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=Ge=>{const Ot=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ge.value));return!Ot||this._matchesFilter(Ot)?null:{matDatepickerFilter:!0}},this._minValidator=Ge=>{const Ot=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ge.value)),hn=this._getMinDate();return!hn||!Ot||this._dateAdapter.compareDate(hn,Ot)<=0?null:{matDatepickerMin:{min:hn,actual:Ot}}},this._maxValidator=Ge=>{const Ot=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ge.value)),hn=this._getMaxDate();return!hn||!Ot||this._dateAdapter.compareDate(hn,Ot)>=0?null:{matDatepickerMax:{max:hn,actual:Ot}}},this._lastValueValid=!1,this._localeSubscription=j.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(E){(function A(Ze,Dt){const it=Object.keys(Ze);for(let E of it){const{previousValue:j,currentValue:fe}=Ze[E];if(!Dt.isDateInstance(j)||!Dt.isDateInstance(fe))return!0;if(!Dt.sameDate(j,fe))return!0}return!1})(E,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(E){this._validatorOnChange=E}validate(E){return this._validator?this._validator(E):null}writeValue(E){this._assignValueProgrammatically(E)}registerOnChange(E){this._cvaOnChange=E}registerOnTouched(E){this._onTouched=E}setDisabledState(E){this.disabled=E}_onKeydown(E){(0,U.Vb)(E,"altKey")&&E.keyCode===U.JH&&["ctrlKey","shiftKey","metaKey"].every(Ge=>!(0,U.Vb)(E,Ge))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),E.preventDefault())}_onInput(E){const j=this._lastValueValid;let fe=this._dateAdapter.parse(E,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(fe),fe=this._dateAdapter.getValidDateOrNull(fe);const Ge=!this._dateAdapter.sameDate(fe,this.value);!fe||Ge?this._cvaOnChange(fe):(E&&!this.value&&this._cvaOnChange(fe),j!==this._lastValueValid&&this._validatorOnChange()),Ge&&(this._assignValue(fe),this.dateInput.emit(new Me(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Me(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(E){this._elementRef.nativeElement.value=null!=E?this._dateAdapter.format(E,this._dateFormats.display.dateInput):""}_assignValue(E){this._model?(this._assignValueToModel(E),this._pendingValue=null):this._pendingValue=E}_isValidValue(E){return!E||this._dateAdapter.isValid(E)}_parentDisabled(){return!1}_assignValueProgrammatically(E){E=this._dateAdapter.deserialize(E),this._lastValueValid=this._isValidValue(E),E=this._dateAdapter.getValidDateOrNull(E),this._assignValue(E),this._formatValue(E)}_matchesFilter(E){const j=this._getDateFilter();return!j||j(E)}}return(Ze=Dt).\u0275fac=function(E){return new(E||Ze)(f.Y36(f.SBq),f.Y36(q._A,8),f.Y36(q.sG,8))},Ze.\u0275dir=f.lG2({type:Ze,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[f.TTD]}),Dt})();const H={provide:X.JU,useExisting:(0,f.Gpc)(()=>I),multi:!0},Be={provide:X.Cf,useExisting:(0,f.Gpc)(()=>I),multi:!0};let I=(()=>{var Ze;class Dt extends Le{set matDatepicker(E){E&&(this._datepicker=E,this._closedSubscription=E.closedStream.subscribe(()=>this._onTouched()),this._registerModel(E.registerInput(this)))}get min(){return this._min}set min(E){const j=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(E));this._dateAdapter.sameDate(j,this._min)||(this._min=j,this._validatorOnChange())}get max(){return this._max}set max(E){const j=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(E));this._dateAdapter.sameDate(j,this._max)||(this._max=j,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(E){const j=this._matchesFilter(this.value);this._dateFilter=E,this._matchesFilter(this.value)!==j&&this._validatorOnChange()}constructor(E,j,fe,Ge){super(E,j,fe),this._formField=Ge,this._closedSubscription=K.w.EMPTY,this._validator=X.kI.compose(super._getValidators())}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(E){return E}_assignValueToModel(E){this._model&&this._model.updateSelection(E,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(E){return E.source!==this}}return(Ze=Dt).\u0275fac=function(E){return new(E||Ze)(f.Y36(f.SBq),f.Y36(q._A,8),f.Y36(q.sG,8),f.Y36(Ve.G_,8))},Ze.\u0275dir=f.lG2({type:Ze,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(E,j){1&E&&f.NdJ("input",function(Ge){return j._onInput(Ge.target.value)})("change",function(){return j._onChange()})("blur",function(){return j._onBlur()})("keydown",function(Ge){return j._onKeydown(Ge)}),2&E&&(f.Ikx("disabled",j.disabled),f.uIk("aria-haspopup",j._datepicker?"dialog":null)("aria-owns",(null==j._datepicker?null:j._datepicker.opened)&&j._datepicker.id||null)("min",j.min?j._dateAdapter.toIso8601(j.min):null)("max",j.max?j._dateAdapter.toIso8601(j.max):null)("data-mat-calendar",j._datepicker?j._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[f._Bn([H,Be,{provide:we.Jk,useExisting:Ze}]),f.qOj]}),Dt})(),k=(()=>{var Ze;class Dt{}return(Ze=Dt).\u0275fac=function(E){return new(E||Ze)},Ze.\u0275dir=f.lG2({type:Ze,selectors:[["","matDatepickerToggleIcon",""]]}),Dt})(),Oe=(()=>{var Ze;class Dt{get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(E){this._disabled=(0,ee.Ig)(E)}constructor(E,j,fe){this._intl=E,this._changeDetectorRef=j,this._stateChanges=K.w.EMPTY;const Ge=Number(fe);this.tabIndex=Ge||0===Ge?Ge:null}ngOnChanges(E){E.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(E){this.datepicker&&!this.disabled&&(this.datepicker.open(),E.stopPropagation())}_watchStateChanges(){const E=this.datepicker?this.datepicker.stateChanges:(0,he.of)(),j=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,he.of)(),fe=this.datepicker?(0,ne.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,he.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,ne.T)(this._intl.changes,E,j,fe).subscribe(()=>this._changeDetectorRef.markForCheck())}}return(Ze=Dt).\u0275fac=function(E){return new(E||Ze)(f.Y36(Fe),f.Y36(f.sBO),f.$8M("tabindex"))},Ze.\u0275cmp=f.Xpm({type:Ze,selectors:[["mat-datepicker-toggle"]],contentQueries:function(E,j,fe){if(1&E&&f.Suo(fe,k,5),2&E){let Ge;f.iGM(Ge=f.CRH())&&(j._customIcon=Ge.first)}},viewQuery:function(E,j){if(1&E&&f.Gf(Q,5),2&E){let fe;f.iGM(fe=f.CRH())&&(j._button=fe.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(E,j){1&E&&f.NdJ("click",function(Ge){return j._open(Ge)}),2&E&&(f.uIk("tabindex",null)("data-mat-calendar",j.datepicker?j.datepicker.id:null),f.ekj("mat-datepicker-toggle-active",j.datepicker&&j.datepicker.opened)("mat-accent",j.datepicker&&"accent"===j.datepicker.color)("mat-warn",j.datepicker&&"warn"===j.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[f.TTD],ngContentSelectors:se,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(E,j){1&E&&(f.F$t(Te),f.TgZ(0,"button",0,1),f.YNc(2,qe,2,0,"svg",2),f.Hsn(3),f.qZA()),2&E&&(f.Q6J("disabled",j.disabled)("disableRipple",j.disableRipple),f.uIk("aria-haspopup",j.datepicker?"dialog":null)("aria-label",j.ariaLabel||j._intl.openCalendarLabel)("tabindex",j.disabled?-1:j.tabIndex),f.xp6(2),f.Q6J("ngIf",!j._customIcon))},dependencies:[L.O5,W.RK],styles:[".mat-datepicker-toggle{pointer-events:auto;color:var(--mat-datepicker-toggle-icon-color)}.mat-datepicker-toggle-active{color:var(--mat-datepicker-toggle-active-state-icon-color)}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0}),Dt})(),Wi=(()=>{var Ze;class Dt{}return(Ze=Dt).\u0275fac=function(E){return new(E||Ze)},Ze.\u0275mod=f.oAB({type:Ze}),Ze.\u0275inj=f.cJS({providers:[Fe,Ee],imports:[L.ez,W.ot,s.U8,i.rt,m.eL,q.BQ,re.ZD]}),Dt})()},4170:(xt,Ke,p)=>{"use strict";p.d(Ke,{G_:()=>Wt,TO:()=>vt,KE:()=>un,Eo:()=>Ye,lN:()=>Kn,bx:()=>Yt,hX:()=>Fe,R9:()=>Ut});var i=p(5879),s=p(9388),m=p(2831),L=p(7902),f=p(2079),W=p(7354),re=p(9352),q=p(4699),ae=p(7734),K=p(9185);class he{constructor(Nt){this._box=Nt,this._destroyed=new f.xQ,this._resizeSubject=new f.xQ,this._elementObservables=new Map,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(kt=>this._resizeSubject.next(kt)))}observe(Nt){return this._elementObservables.has(Nt)||this._elementObservables.set(Nt,new q.y(kt=>{var ut;const Ct=this._resizeSubject.subscribe(kt);return null===(ut=this._resizeObserver)||void 0===ut||ut.observe(Nt,{box:this._box}),()=>{var en;null===(en=this._resizeObserver)||void 0===en||en.unobserve(Nt),Ct.unsubscribe(),this._elementObservables.delete(Nt)}}).pipe((0,ae.h)(kt=>kt.some(ut=>ut.target===Nt)),(0,K.d)({bufferSize:1,refCount:!0}),(0,re.R)(this._destroyed))),this._elementObservables.get(Nt)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}}let U=(()=>{var mt;class Nt{constructor(){this._observers=new Map,this._ngZone=(0,i.f3M)(i.R0b)}ngOnDestroy(){for(const[,ut]of this._observers)ut.destroy();this._observers.clear()}observe(ut,Ct){const en=(null==Ct?void 0:Ct.box)||"content-box";return this._observers.has(en)||this._observers.set(en,new he(en)),this._observers.get(en).observe(ut)}}return(mt=Nt).\u0275fac=function(ut){return new(ut||mt)},mt.\u0275prov=i.Yz7({token:mt,factory:mt.\u0275fac,providedIn:"root"}),Nt})();var $e=p(2495),$=p(6825),ge=p(6814),Ne=p(7131),ie=p(3680);const ee=["notch"],x=["matFormFieldNotchedOutline",""],X=["*"],Ve=["textField"],we=["iconPrefixContainer"],Ie=["textPrefixContainer"];function te(mt,Nt){1&mt&&i._UZ(0,"span",19)}function ce(mt,Nt){if(1&mt&&(i.TgZ(0,"label",17),i.Hsn(1,1),i.YNc(2,te,1,0,"span",18),i.qZA()),2&mt){const kt=i.oxw(2);i.Q6J("floating",kt._shouldLabelFloat())("monitorResize",kt._hasOutline())("id",kt._labelId),i.uIk("for",kt._control.id),i.xp6(2),i.Q6J("ngIf",!kt.hideRequiredMarker&&kt._control.required)}}function Re(mt,Nt){if(1&mt&&i.YNc(0,ce,3,5,"label",16),2&mt){const kt=i.oxw();i.Q6J("ngIf",kt._hasFloatingLabel())}}function He(mt,Nt){1&mt&&i._UZ(0,"div",20)}function nt(mt,Nt){}function _t(mt,Nt){if(1&mt&&i.YNc(0,nt,0,0,"ng-template",22),2&mt){i.oxw(2);const kt=i.MAs(1);i.Q6J("ngTemplateOutlet",kt)}}function dt(mt,Nt){if(1&mt&&(i.TgZ(0,"div",21),i.YNc(1,_t,1,1,"ng-template",9),i.qZA()),2&mt){const kt=i.oxw();i.Q6J("matFormFieldNotchedOutlineOpen",kt._shouldLabelFloat()),i.xp6(1),i.Q6J("ngIf",!kt._forceDisplayInfixLabel())}}function yt(mt,Nt){1&mt&&(i.TgZ(0,"div",23,24),i.Hsn(2,2),i.qZA())}function ot(mt,Nt){1&mt&&(i.TgZ(0,"div",25,26),i.Hsn(2,3),i.qZA())}function st(mt,Nt){}function _e(mt,Nt){if(1&mt&&i.YNc(0,st,0,0,"ng-template",22),2&mt){i.oxw();const kt=i.MAs(1);i.Q6J("ngTemplateOutlet",kt)}}function Q(mt,Nt){1&mt&&(i.TgZ(0,"div",27),i.Hsn(1,4),i.qZA())}function qe(mt,Nt){1&mt&&(i.TgZ(0,"div",28),i.Hsn(1,5),i.qZA())}function Te(mt,Nt){1&mt&&i._UZ(0,"div",29)}function se(mt,Nt){if(1&mt&&(i.TgZ(0,"div",30),i.Hsn(1,6),i.qZA()),2&mt){const kt=i.oxw();i.Q6J("@transitionMessages",kt._subscriptAnimationState)}}function Se(mt,Nt){if(1&mt&&(i.TgZ(0,"mat-hint",34),i._uU(1),i.qZA()),2&mt){const kt=i.oxw(2);i.Q6J("id",kt._hintLabelId),i.xp6(1),i.Oqu(kt.hintLabel)}}function N(mt,Nt){if(1&mt&&(i.TgZ(0,"div",31),i.YNc(1,Se,2,2,"mat-hint",32),i.Hsn(2,7),i._UZ(3,"div",33),i.Hsn(4,8),i.qZA()),2&mt){const kt=i.oxw();i.Q6J("@transitionMessages",kt._subscriptAnimationState),i.xp6(1),i.Q6J("ngIf",kt.hintLabel)}}const oe=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],ye=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];let Fe=(()=>{var mt;class Nt{}return(mt=Nt).\u0275fac=function(ut){return new(ut||mt)},mt.\u0275dir=i.lG2({type:mt,selectors:[["mat-label"]]}),Nt})(),Je=0;const ht=new i.OlP("MatError");let vt=(()=>{var mt;class Nt{constructor(ut,Ct){this.id="mat-mdc-error-"+Je++,ut||Ct.nativeElement.setAttribute("aria-live","polite")}}return(mt=Nt).\u0275fac=function(ut){return new(ut||mt)(i.$8M("aria-live"),i.Y36(i.SBq))},mt.\u0275dir=i.lG2({type:mt,selectors:[["mat-error"],["","matError",""]],hostAttrs:["aria-atomic","true",1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(ut,Ct){2&ut&&i.Ikx("id",Ct.id)},inputs:{id:"id"},features:[i._Bn([{provide:ht,useExisting:mt}])]}),Nt})(),At=0,Yt=(()=>{var mt;class Nt{constructor(){this.align="start",this.id="mat-mdc-hint-"+At++}}return(mt=Nt).\u0275fac=function(ut){return new(ut||mt)},mt.\u0275dir=i.lG2({type:mt,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(ut,Ct){2&ut&&(i.Ikx("id",Ct.id),i.uIk("align",null),i.ekj("mat-mdc-form-field-hint-end","end"===Ct.align))},inputs:{align:"align",id:"id"}}),Nt})();const on=new i.OlP("MatPrefix"),gn=new i.OlP("MatSuffix");let Ut=(()=>{var mt;class Nt{constructor(){this._isText=!1}set _isTextSelector(ut){this._isText=!0}}return(mt=Nt).\u0275fac=function(ut){return new(ut||mt)},mt.\u0275dir=i.lG2({type:mt,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:["matTextSuffix","_isTextSelector"]},features:[i._Bn([{provide:gn,useExisting:mt}])]}),Nt})();const Rn=new i.OlP("FloatingLabelParent");let Pn=(()=>{var mt;class Nt{get floating(){return this._floating}set floating(ut){this._floating=ut,this.monitorResize&&this._handleResize()}get monitorResize(){return this._monitorResize}set monitorResize(ut){this._monitorResize=ut,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}constructor(ut){this._elementRef=ut,this._floating=!1,this._monitorResize=!1,this._resizeObserver=(0,i.f3M)(U),this._ngZone=(0,i.f3M)(i.R0b),this._parent=(0,i.f3M)(Rn),this._resizeSubscription=new L.w}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return function kn(mt){if(null!==mt.offsetParent)return mt.scrollWidth;const kt=mt.cloneNode(!0);kt.style.setProperty("position","absolute"),kt.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(kt);const ut=kt.scrollWidth;return kt.remove(),ut}(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}}return(mt=Nt).\u0275fac=function(ut){return new(ut||mt)(i.Y36(i.SBq))},mt.\u0275dir=i.lG2({type:mt,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(ut,Ct){2&ut&&i.ekj("mdc-floating-label--float-above",Ct.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}}),Nt})();const tt="mdc-line-ripple--active",z="mdc-line-ripple--deactivating";let Ae=(()=>{var mt;class Nt{constructor(ut,Ct){this._elementRef=ut,this._handleTransitionEnd=en=>{const mn=this._elementRef.nativeElement.classList,Xn=mn.contains(z);"opacity"===en.propertyName&&Xn&&mn.remove(tt,z)},Ct.runOutsideAngular(()=>{ut.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const ut=this._elementRef.nativeElement.classList;ut.remove(z),ut.add(tt)}deactivate(){this._elementRef.nativeElement.classList.add(z)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}}return(mt=Nt).\u0275fac=function(ut){return new(ut||mt)(i.Y36(i.SBq),i.Y36(i.R0b))},mt.\u0275dir=i.lG2({type:mt,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]}),Nt})(),F=(()=>{var mt;class Nt{constructor(ut,Ct){this._elementRef=ut,this._ngZone=Ct,this.open=!1}ngAfterViewInit(){const ut=this._elementRef.nativeElement.querySelector(".mdc-floating-label");ut?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),"function"==typeof requestAnimationFrame&&(ut.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>ut.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(ut){this._notch.nativeElement.style.width=this.open&&ut?`calc(${ut}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:""}}return(mt=Nt).\u0275fac=function(ut){return new(ut||mt)(i.Y36(i.SBq),i.Y36(i.R0b))},mt.\u0275cmp=i.Xpm({type:mt,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(ut,Ct){if(1&ut&&i.Gf(ee,5),2&ut){let en;i.iGM(en=i.CRH())&&(Ct._notch=en.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(ut,Ct){2&ut&&i.ekj("mdc-notched-outline--notched",Ct.open)},inputs:{open:["matFormFieldNotchedOutlineOpen","open"]},attrs:x,ngContentSelectors:X,decls:5,vars:0,consts:[[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],["notch",""],[1,"mdc-notched-outline__trailing"]],template:function(ut,Ct){1&ut&&(i.F$t(),i._UZ(0,"div",0),i.TgZ(1,"div",1,2),i.Hsn(3),i.qZA(),i._UZ(4,"div",3))},encapsulation:2,changeDetection:0}),Nt})();const me={transitionMessages:(0,$.X$)("transitionMessages",[(0,$.SB)("enter",(0,$.oB)({opacity:1,transform:"translateY(0%)"})),(0,$.eR)("void => enter",[(0,$.oB)({opacity:0,transform:"translateY(-5px)"}),(0,$.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Ye=(()=>{var mt;class Nt{}return(mt=Nt).\u0275fac=function(ut){return new(ut||mt)},mt.\u0275dir=i.lG2({type:mt}),Nt})();const Wt=new i.OlP("MatFormField"),Xt=new i.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS");let Mt=0,un=(()=>{var mt;class Nt{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(ut){this._hideRequiredMarker=(0,$e.Ig)(ut)}get floatLabel(){var ut;return this._floatLabel||(null===(ut=this._defaults)||void 0===ut?void 0:ut.floatLabel)||"auto"}set floatLabel(ut){ut!==this._floatLabel&&(this._floatLabel=ut,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(ut){var Ct;const en=this._appearance,mn=ut||(null===(Ct=this._defaults)||void 0===Ct?void 0:Ct.appearance)||"fill";this._appearance=mn,"outline"===this._appearance&&this._appearance!==en&&(this._needsOutlineLabelOffsetUpdateOnStable=!0)}get subscriptSizing(){var ut;return this._subscriptSizing||(null===(ut=this._defaults)||void 0===ut?void 0:ut.subscriptSizing)||"fixed"}set subscriptSizing(ut){var Ct;this._subscriptSizing=ut||(null===(Ct=this._defaults)||void 0===Ct?void 0:Ct.subscriptSizing)||"fixed"}get hintLabel(){return this._hintLabel}set hintLabel(ut){this._hintLabel=ut,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(ut){this._explicitFormFieldControl=ut}constructor(ut,Ct,en,mn,Xn,Bn,gt,ve){this._elementRef=ut,this._changeDetectorRef=Ct,this._ngZone=en,this._dir=mn,this._platform=Xn,this._defaults=Bn,this._animationMode=gt,this._hideRequiredMarker=!1,this.color="primary",this._appearance="fill",this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId="mat-mdc-form-field-label-"+Mt++,this._hintLabelId="mat-mdc-hint-"+Mt++,this._subscriptAnimationState="",this._destroyed=new f.xQ,this._isFocused=null,this._needsOutlineLabelOffsetUpdateOnStable=!1,Bn&&(Bn.appearance&&(this.appearance=Bn.appearance),this._hideRequiredMarker=!(null==Bn||!Bn.hideRequiredMarker),Bn.color&&(this.color=Bn.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){const ut=this._control;ut.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${ut.controlType}`),ut.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),ut.ngControl&&ut.ngControl.valueChanges&&ut.ngControl.valueChanges.pipe((0,re.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(ut=>!ut._isText),this._hasTextPrefix=!!this._prefixChildren.find(ut=>ut._isText),this._hasIconSuffix=!!this._suffixChildren.find(ut=>!ut._isText),this._hasTextSuffix=!!this._suffixChildren.find(ut=>ut._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),(0,W.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){}_updateFocusState(){var ut,Ct;if(this._control.focused&&!this._isFocused)this._isFocused=!0,null===(Ct=this._lineRipple)||void 0===Ct||Ct.activate();else if(!this._control.focused&&(this._isFocused||null===this._isFocused)){var en;this._isFocused=!1,null===(en=this._lineRipple)||void 0===en||en.deactivate()}null===(ut=this._textField)||void 0===ut||ut.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,re.R)(this._destroyed)).subscribe(()=>{this._needsOutlineLabelOffsetUpdateOnStable&&(this._needsOutlineLabelOffsetUpdateOnStable=!1,this._updateOutlineLabelOffset())})}),this._dir.change.pipe((0,re.R)(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0)}_shouldAlwaysFloat(){return"always"===this.floatLabel}_hasOutline(){return"outline"===this.appearance}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel(){return!!this._labelChildNonStatic||!!this._labelChildStatic}_shouldLabelFloat(){return this._control.shouldLabelFloat||this._shouldAlwaysFloat()}_shouldForward(ut){const Ct=this._control?this._control.ngControl:null;return Ct&&Ct[ut]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){var Ct,ut;this._hasOutline()&&this._floatingLabel&&this._shouldLabelFloat()?null===(Ct=this._notchedOutline)||void 0===Ct||Ct._setNotchWidth(this._floatingLabel.getWidth()):null===(ut=this._notchedOutline)||void 0===ut||ut._setNotchWidth(0)}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_syncDescribedByIds(){if(this._control){let ut=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&ut.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const Ct=this._hintChildren?this._hintChildren.find(mn=>"start"===mn.align):null,en=this._hintChildren?this._hintChildren.find(mn=>"end"===mn.align):null;Ct?ut.push(Ct.id):this._hintLabel&&ut.push(this._hintLabelId),en&&ut.push(en.id)}else this._errorChildren&&ut.push(...this._errorChildren.map(Ct=>Ct.id));this._control.setDescribedByIds(ut)}}_updateOutlineLabelOffset(){var ut,Ct,en,mn;if(!this._platform.isBrowser||!this._hasOutline()||!this._floatingLabel)return;const Xn=this._floatingLabel.element;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return void(Xn.style.transform="");if(!this._isAttachedToDom())return void(this._needsOutlineLabelOffsetUpdateOnStable=!0);const Bn=null===(ut=this._iconPrefixContainer)||void 0===ut?void 0:ut.nativeElement,gt=null===(Ct=this._textPrefixContainer)||void 0===Ct?void 0:Ct.nativeElement,ve=null!==(en=null==Bn?void 0:Bn.getBoundingClientRect().width)&&void 0!==en?en:0,Ee=null!==(mn=null==gt?void 0:gt.getBoundingClientRect().width)&&void 0!==mn?mn:0;Xn.style.transform=`var(\n --mat-mdc-form-field-label-transform,\n translateY(-50%) translateX(calc(${"rtl"===this._dir.value?"-1":"1"} * (${ve+Ee}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n )`}_isAttachedToDom(){const ut=this._elementRef.nativeElement;if(ut.getRootNode){const Ct=ut.getRootNode();return Ct&&Ct!==ut}return document.documentElement.contains(ut)}}return(mt=Nt).\u0275fac=function(ut){return new(ut||mt)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(i.R0b),i.Y36(s.Is),i.Y36(m.t4),i.Y36(Xt,8),i.Y36(i.QbO,8),i.Y36(ge.K0))},mt.\u0275cmp=i.Xpm({type:mt,selectors:[["mat-form-field"]],contentQueries:function(ut,Ct,en){if(1&ut&&(i.Suo(en,Fe,5),i.Suo(en,Fe,7),i.Suo(en,Ye,5),i.Suo(en,on,5),i.Suo(en,gn,5),i.Suo(en,ht,5),i.Suo(en,Yt,5)),2&ut){let mn;i.iGM(mn=i.CRH())&&(Ct._labelChildNonStatic=mn.first),i.iGM(mn=i.CRH())&&(Ct._labelChildStatic=mn.first),i.iGM(mn=i.CRH())&&(Ct._formFieldControl=mn.first),i.iGM(mn=i.CRH())&&(Ct._prefixChildren=mn),i.iGM(mn=i.CRH())&&(Ct._suffixChildren=mn),i.iGM(mn=i.CRH())&&(Ct._errorChildren=mn),i.iGM(mn=i.CRH())&&(Ct._hintChildren=mn)}},viewQuery:function(ut,Ct){if(1&ut&&(i.Gf(Ve,5),i.Gf(we,5),i.Gf(Ie,5),i.Gf(Pn,5),i.Gf(F,5),i.Gf(Ae,5)),2&ut){let en;i.iGM(en=i.CRH())&&(Ct._textField=en.first),i.iGM(en=i.CRH())&&(Ct._iconPrefixContainer=en.first),i.iGM(en=i.CRH())&&(Ct._textPrefixContainer=en.first),i.iGM(en=i.CRH())&&(Ct._floatingLabel=en.first),i.iGM(en=i.CRH())&&(Ct._notchedOutline=en.first),i.iGM(en=i.CRH())&&(Ct._lineRipple=en.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(ut,Ct){2&ut&&i.ekj("mat-mdc-form-field-label-always-float",Ct._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",Ct._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",Ct._hasIconSuffix)("mat-form-field-invalid",Ct._control.errorState)("mat-form-field-disabled",Ct._control.disabled)("mat-form-field-autofilled",Ct._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===Ct._animationMode)("mat-form-field-appearance-fill","fill"==Ct.appearance)("mat-form-field-appearance-outline","outline"==Ct.appearance)("mat-form-field-hide-placeholder",Ct._hasFloatingLabel()&&!Ct._shouldLabelFloat())("mat-focused",Ct._control.focused)("mat-primary","accent"!==Ct.color&&"warn"!==Ct.color)("mat-accent","accent"===Ct.color)("mat-warn","warn"===Ct.color)("ng-untouched",Ct._shouldForward("untouched"))("ng-touched",Ct._shouldForward("touched"))("ng-pristine",Ct._shouldForward("pristine"))("ng-dirty",Ct._shouldForward("dirty"))("ng-valid",Ct._shouldForward("valid"))("ng-invalid",Ct._shouldForward("invalid"))("ng-pending",Ct._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[i._Bn([{provide:Wt,useExisting:mt},{provide:Rn,useExisting:mt}])],ngContentSelectors:ye,decls:18,vars:23,consts:[["labelTemplate",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],["textField",""],["class","mat-mdc-form-field-focus-overlay",4,"ngIf"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen",4,"ngIf"],["class","mat-mdc-form-field-icon-prefix",4,"ngIf"],["class","mat-mdc-form-field-text-prefix",4,"ngIf"],[1,"mat-mdc-form-field-infix"],[3,"ngIf"],["class","mat-mdc-form-field-text-suffix",4,"ngIf"],["class","mat-mdc-form-field-icon-suffix",4,"ngIf"],["matFormFieldLineRipple","",4,"ngIf"],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align",3,"ngSwitch"],["class","mat-mdc-form-field-error-wrapper",4,"ngSwitchCase"],["class","mat-mdc-form-field-hint-wrapper",4,"ngSwitchCase"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id",4,"ngIf"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true","class","mat-mdc-form-field-required-marker mdc-floating-label--required",4,"ngIf"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[1,"mat-mdc-form-field-focus-overlay"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-icon-prefix"],["iconPrefixContainer",""],[1,"mat-mdc-form-field-text-prefix"],["textPrefixContainer",""],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],[3,"id",4,"ngIf"],[1,"mat-mdc-form-field-hint-spacer"],[3,"id"]],template:function(ut,Ct){1&ut&&(i.F$t(oe),i.YNc(0,Re,1,1,"ng-template",null,0,i.W1O),i.TgZ(2,"div",1,2),i.NdJ("click",function(mn){return Ct._control.onContainerClick(mn)}),i.YNc(4,He,1,0,"div",3),i.TgZ(5,"div",4),i.YNc(6,dt,2,2,"div",5),i.YNc(7,yt,3,0,"div",6),i.YNc(8,ot,3,0,"div",7),i.TgZ(9,"div",8),i.YNc(10,_e,1,1,"ng-template",9),i.Hsn(11),i.qZA(),i.YNc(12,Q,2,0,"div",10),i.YNc(13,qe,2,0,"div",11),i.qZA(),i.YNc(14,Te,1,0,"div",12),i.qZA(),i.TgZ(15,"div",13),i.YNc(16,se,2,1,"div",14),i.YNc(17,N,5,2,"div",15),i.qZA()),2&ut&&(i.xp6(2),i.ekj("mdc-text-field--filled",!Ct._hasOutline())("mdc-text-field--outlined",Ct._hasOutline())("mdc-text-field--no-label",!Ct._hasFloatingLabel())("mdc-text-field--disabled",Ct._control.disabled)("mdc-text-field--invalid",Ct._control.errorState),i.xp6(2),i.Q6J("ngIf",!Ct._hasOutline()&&!Ct._control.disabled),i.xp6(2),i.Q6J("ngIf",Ct._hasOutline()),i.xp6(1),i.Q6J("ngIf",Ct._hasIconPrefix),i.xp6(1),i.Q6J("ngIf",Ct._hasTextPrefix),i.xp6(2),i.Q6J("ngIf",!Ct._hasOutline()||Ct._forceDisplayInfixLabel()),i.xp6(2),i.Q6J("ngIf",Ct._hasTextSuffix),i.xp6(1),i.Q6J("ngIf",Ct._hasIconSuffix),i.xp6(1),i.Q6J("ngIf",!Ct._hasOutline()),i.xp6(1),i.ekj("mat-mdc-form-field-subscript-dynamic-size","dynamic"===Ct.subscriptSizing),i.Q6J("ngSwitch",Ct._getDisplayedMessages()),i.xp6(1),i.Q6J("ngSwitchCase","error"),i.xp6(1),i.Q6J("ngSwitchCase","hint"))},dependencies:[ge.O5,ge.tP,ge.RF,ge.n9,Yt,Pn,F,Ae],styles:['.mdc-text-field{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{height:28px;width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}}.mdc-text-field__affix{height:28px;opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 96px / 0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-floating-label{position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after,.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;pointer-events:none}.mdc-notched-outline__trailing{flex-grow:1}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{border-top:1px solid;border-bottom:1px solid}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{max-width:calc(100% - 12px * 2)}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.mdc-text-field--filled{--mdc-filled-text-field-active-indicator-height:1px;--mdc-filled-text-field-focus-active-indicator-height:2px;--mdc-filled-text-field-container-shape:4px;border-top-left-radius:var(--mdc-filled-text-field-container-shape);border-top-right-radius:var(--mdc-filled-text-field-container-shape);border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-caret-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-focus-label-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-disabled-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-focus-label-text-color)}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font);font-size:var(--mdc-filled-text-field-label-text-size);font-weight:var(--mdc-filled-text-field-label-text-weight);letter-spacing:var(--mdc-filled-text-field-label-text-tracking)}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color)}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color)}.mdc-text-field--filled .mdc-line-ripple::before{border-bottom-width:var(--mdc-filled-text-field-active-indicator-height)}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height)}.mdc-text-field--outlined{--mdc-outlined-text-field-outline-width:1px;--mdc-outlined-text-field-focus-outline-width:2px;--mdc-outlined-text-field-container-shape:4px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-caret-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-focus-label-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-disabled-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-focus-label-text-color)}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font);font-size:var(--mdc-outlined-text-field-label-text-size);font-weight:var(--mdc-outlined-text-field-label-text-weight);letter-spacing:var(--mdc-outlined-text-field-label-text-tracking)}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-outlined-text-field-container-shape))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-outlined-text-field-container-shape))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-hover-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-focus-outline-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-disabled-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-hover-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-focus-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-outline-width)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-focus-outline-width)}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-text-field-wrapper::before{content:none}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}.mat-mdc-form-field-type-mat-native-select .mat-mdc-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;right:0;top:50%;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font);line-height:var(--mat-form-field-container-text-line-height);font-size:var(--mat-form-field-container-text-size);letter-spacing:var(--mat-form-field-container-text-tracking);font-weight:var(--mat-form-field-container-text-weight)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size) * var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:12px;box-sizing:content-box}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__affix{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea{transition:none}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}[dir=rtl] .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[me.transitionMessages]},changeDetection:0}),Nt})(),Kn=(()=>{var mt;class Nt{}return(mt=Nt).\u0275fac=function(ut){return new(ut||mt)},mt.\u0275mod=i.oAB({type:mt}),mt.\u0275inj=i.cJS({imports:[ie.BQ,ge.ez,Ne.Q8,ie.BQ]}),Nt})()},617:(xt,Ke,p)=>{"use strict";p.d(Ke,{Hw:()=>se,Ps:()=>Se});var i=p(5879),s=p(3680),m=p(2495),L=p(6814),f=p(9193),W=p(6222),re=p(7504),q=p(7902),ae=p(2420),K=p(6124),ne=p(2413),he=p(1541),U=p(5705),$e=p(1418),$=p(9862),ge=p(6593);const Ne=["*"];let ie;function x(N){var oe;return(null===(oe=function ee(){if(void 0===ie&&(ie=null,typeof window<"u")){const N=window;void 0!==N.trustedTypes&&(ie=N.trustedTypes.createPolicy("angular#components",{createHTML:oe=>oe}))}return ie}())||void 0===oe?void 0:oe.createHTML(N))||N}function X(N){return Error(`Unable to find icon with the name "${N}"`)}function we(N){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${N}".`)}function Ie(N){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${N}".`)}class te{constructor(oe,ye,Fe){this.url=oe,this.svgText=ye,this.options=Fe}}let ce=(()=>{var N;class oe{constructor(Fe,Je,ht,vt){this._httpClient=Fe,this._sanitizer=Je,this._errorHandler=vt,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=ht}addSvgIcon(Fe,Je,ht){return this.addSvgIconInNamespace("",Fe,Je,ht)}addSvgIconLiteral(Fe,Je,ht){return this.addSvgIconLiteralInNamespace("",Fe,Je,ht)}addSvgIconInNamespace(Fe,Je,ht,vt){return this._addSvgIconConfig(Fe,Je,new te(ht,null,vt))}addSvgIconResolver(Fe){return this._resolvers.push(Fe),this}addSvgIconLiteralInNamespace(Fe,Je,ht,vt){const At=this._sanitizer.sanitize(i.q3G.HTML,ht);if(!At)throw Ie(ht);const Yt=x(At);return this._addSvgIconConfig(Fe,Je,new te("",Yt,vt))}addSvgIconSet(Fe,Je){return this.addSvgIconSetInNamespace("",Fe,Je)}addSvgIconSetLiteral(Fe,Je){return this.addSvgIconSetLiteralInNamespace("",Fe,Je)}addSvgIconSetInNamespace(Fe,Je,ht){return this._addSvgIconSetConfig(Fe,new te(Je,null,ht))}addSvgIconSetLiteralInNamespace(Fe,Je,ht){const vt=this._sanitizer.sanitize(i.q3G.HTML,Je);if(!vt)throw Ie(Je);const At=x(vt);return this._addSvgIconSetConfig(Fe,new te("",At,ht))}registerFontClassAlias(Fe,Je=Fe){return this._fontCssClassesByAlias.set(Fe,Je),this}classNameForFontAlias(Fe){return this._fontCssClassesByAlias.get(Fe)||Fe}setDefaultFontSetClass(...Fe){return this._defaultFontSetClass=Fe,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(Fe){const Je=this._sanitizer.sanitize(i.q3G.RESOURCE_URL,Fe);if(!Je)throw we(Fe);const ht=this._cachedIconsByUrl.get(Je);return ht?(0,f.of)(nt(ht)):this._loadSvgIconFromConfig(new te(Fe,null)).pipe((0,ae.b)(vt=>this._cachedIconsByUrl.set(Je,vt)),(0,K.U)(vt=>nt(vt)))}getNamedSvgIcon(Fe,Je=""){const ht=_t(Je,Fe);let vt=this._svgIconConfigs.get(ht);if(vt)return this._getSvgFromConfig(vt);if(vt=this._getIconConfigFromResolvers(Je,Fe),vt)return this._svgIconConfigs.set(ht,vt),this._getSvgFromConfig(vt);const At=this._iconSetConfigs.get(Je);return At?this._getSvgFromIconSetConfigs(Fe,At):(0,W._)(X(ht))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(Fe){return Fe.svgText?(0,f.of)(nt(this._svgElementFromConfig(Fe))):this._loadSvgIconFromConfig(Fe).pipe((0,K.U)(Je=>nt(Je)))}_getSvgFromIconSetConfigs(Fe,Je){const ht=this._extractIconWithNameFromAnySet(Fe,Je);if(ht)return(0,f.of)(ht);const vt=Je.filter(At=>!At.svgText).map(At=>this._loadSvgIconSetFromConfig(At).pipe((0,ne.K)(Yt=>{const nn=`Loading icon set URL: ${this._sanitizer.sanitize(i.q3G.RESOURCE_URL,At.url)} failed: ${Yt.message}`;return this._errorHandler.handleError(new Error(nn)),(0,f.of)(null)})));return(0,re.D)(vt).pipe((0,K.U)(()=>{const At=this._extractIconWithNameFromAnySet(Fe,Je);if(!At)throw X(Fe);return At}))}_extractIconWithNameFromAnySet(Fe,Je){for(let ht=Je.length-1;ht>=0;ht--){const vt=Je[ht];if(vt.svgText&&vt.svgText.toString().indexOf(Fe)>-1){const At=this._svgElementFromConfig(vt),Yt=this._extractSvgIconFromSet(At,Fe,vt.options);if(Yt)return Yt}}return null}_loadSvgIconFromConfig(Fe){return this._fetchIcon(Fe).pipe((0,ae.b)(Je=>Fe.svgText=Je),(0,K.U)(()=>this._svgElementFromConfig(Fe)))}_loadSvgIconSetFromConfig(Fe){return Fe.svgText?(0,f.of)(null):this._fetchIcon(Fe).pipe((0,ae.b)(Je=>Fe.svgText=Je))}_extractSvgIconFromSet(Fe,Je,ht){const vt=Fe.querySelector(`[id="${Je}"]`);if(!vt)return null;const At=vt.cloneNode(!0);if(At.removeAttribute("id"),"svg"===At.nodeName.toLowerCase())return this._setSvgAttributes(At,ht);if("symbol"===At.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(At),ht);const Yt=this._svgElementFromString(x(""));return Yt.appendChild(At),this._setSvgAttributes(Yt,ht)}_svgElementFromString(Fe){const Je=this._document.createElement("DIV");Je.innerHTML=Fe;const ht=Je.querySelector("svg");if(!ht)throw Error(" tag not found");return ht}_toSvgElement(Fe){const Je=this._svgElementFromString(x("")),ht=Fe.attributes;for(let vt=0;vtx(gn)),(0,he.x)(()=>this._inProgressUrlFetches.delete(Yt)),(0,U.B)());return this._inProgressUrlFetches.set(Yt,nn),nn}_addSvgIconConfig(Fe,Je,ht){return this._svgIconConfigs.set(_t(Fe,Je),ht),this}_addSvgIconSetConfig(Fe,Je){const ht=this._iconSetConfigs.get(Fe);return ht?ht.push(Je):this._iconSetConfigs.set(Fe,[Je]),this}_svgElementFromConfig(Fe){if(!Fe.svgElement){const Je=this._svgElementFromString(Fe.svgText);this._setSvgAttributes(Je,Fe.options),Fe.svgElement=Je}return Fe.svgElement}_getIconConfigFromResolvers(Fe,Je){for(let ht=0;htoe?oe.pathname+oe.search:""}}}),Q=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],qe=Q.map(N=>`[${N}]`).join(", "),Te=/^url\(['"]?#(.*?)['"]?\)$/;let se=(()=>{var N;class oe extends yt{get inline(){return this._inline}set inline(Fe){this._inline=(0,m.Ig)(Fe)}get svgIcon(){return this._svgIcon}set svgIcon(Fe){Fe!==this._svgIcon&&(Fe?this._updateSvgIcon(Fe):this._svgIcon&&this._clearSvgElement(),this._svgIcon=Fe)}get fontSet(){return this._fontSet}set fontSet(Fe){const Je=this._cleanupFontValue(Fe);Je!==this._fontSet&&(this._fontSet=Je,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(Fe){const Je=this._cleanupFontValue(Fe);Je!==this._fontIcon&&(this._fontIcon=Je,this._updateFontIconClasses())}constructor(Fe,Je,ht,vt,At,Yt){super(Fe),this._iconRegistry=Je,this._location=vt,this._errorHandler=At,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=q.w.EMPTY,Yt&&(Yt.color&&(this.color=this.defaultColor=Yt.color),Yt.fontSet&&(this.fontSet=Yt.fontSet)),ht||Fe.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(Fe){if(!Fe)return["",""];const Je=Fe.split(":");switch(Je.length){case 1:return["",Je[0]];case 2:return Je;default:throw Error(`Invalid icon name: "${Fe}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const Fe=this._elementsWithExternalReferences;if(Fe&&Fe.size){const Je=this._location.getPathname();Je!==this._previousPath&&(this._previousPath=Je,this._prependPathToReferences(Je))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(Fe){this._clearSvgElement();const Je=this._location.getPathname();this._previousPath=Je,this._cacheChildrenWithExternalReferences(Fe),this._prependPathToReferences(Je),this._elementRef.nativeElement.appendChild(Fe)}_clearSvgElement(){const Fe=this._elementRef.nativeElement;let Je=Fe.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();Je--;){const ht=Fe.childNodes[Je];(1!==ht.nodeType||"svg"===ht.nodeName.toLowerCase())&&ht.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const Fe=this._elementRef.nativeElement,Je=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(ht=>ht.length>0);this._previousFontSetClass.forEach(ht=>Fe.classList.remove(ht)),Je.forEach(ht=>Fe.classList.add(ht)),this._previousFontSetClass=Je,this.fontIcon!==this._previousFontIconClass&&!Je.includes("mat-ligature-font")&&(this._previousFontIconClass&&Fe.classList.remove(this._previousFontIconClass),this.fontIcon&&Fe.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(Fe){return"string"==typeof Fe?Fe.trim().split(" ")[0]:Fe}_prependPathToReferences(Fe){const Je=this._elementsWithExternalReferences;Je&&Je.forEach((ht,vt)=>{ht.forEach(At=>{vt.setAttribute(At.name,`url('${Fe}#${At.value}')`)})})}_cacheChildrenWithExternalReferences(Fe){const Je=Fe.querySelectorAll(qe),ht=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let vt=0;vt{const Yt=Je[vt],on=Yt.getAttribute(At),nn=on?on.match(Te):null;if(nn){let gn=ht.get(Yt);gn||(gn=[],ht.set(Yt,gn)),gn.push({name:At,value:nn[1]})}})}_updateSvgIcon(Fe){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),Fe){const[Je,ht]=this._splitIconName(Fe);Je&&(this._svgNamespace=Je),ht&&(this._svgName=ht),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(ht,Je).pipe((0,$e.q)(1)).subscribe(vt=>this._setSvgElement(vt),vt=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${Je}:${ht}! ${vt.message}`))})}}}return(N=oe).\u0275fac=function(Fe){return new(Fe||N)(i.Y36(i.SBq),i.Y36(ce),i.$8M("aria-hidden"),i.Y36(st),i.Y36(i.qLn),i.Y36(ot,8))},N.\u0275cmp=i.Xpm({type:N,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(Fe,Je){2&Fe&&(i.uIk("data-mat-icon-type",Je._usingFontIcon()?"font":"svg")("data-mat-icon-name",Je._svgName||Je.fontIcon)("data-mat-icon-namespace",Je._svgNamespace||Je.fontSet)("fontIcon",Je._usingFontIcon()?Je.fontIcon:null),i.ekj("mat-icon-inline",Je.inline)("mat-icon-no-color","primary"!==Je.color&&"accent"!==Je.color&&"warn"!==Je.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[i.qOj],ngContentSelectors:Ne,decls:1,vars:0,template:function(Fe,Je){1&Fe&&(i.F$t(),i.Hsn(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),oe})(),Se=(()=>{var N;class oe{}return(N=oe).\u0275fac=function(Fe){return new(Fe||N)},N.\u0275mod=i.oAB({type:N}),N.\u0275inj=i.cJS({imports:[s.BQ,s.BQ]}),oe})()},4516:(xt,Ke,p)=>{"use strict";p.d(Ke,{Jk:()=>K,Nt:()=>$e,c:()=>$});var i=p(2495),s=p(2831),m=p(6263),L=p(5879),f=p(6223),W=p(3680),re=p(4170),q=p(2079);const K=new L.OlP("MAT_INPUT_VALUE_ACCESSOR"),ne=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let he=0;const U=(0,W.FD)(class{constructor(ge,Ne,ie,ee){this._defaultErrorStateMatcher=ge,this._parentForm=Ne,this._parentFormGroup=ie,this.ngControl=ee,this.stateChanges=new q.xQ}});let $e=(()=>{var ge;class Ne extends U{get disabled(){return this._disabled}set disabled(ee){this._disabled=(0,i.Ig)(ee),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(ee){this._id=ee||this._uid}get required(){var ee,x,X;return null!==(ee=null!==(x=this._required)&&void 0!==x?x:null===(X=this.ngControl)||void 0===X||null===(X=X.control)||void 0===X?void 0:X.hasValidator(f.kI.required))&&void 0!==ee&&ee}set required(ee){this._required=(0,i.Ig)(ee)}get type(){return this._type}set type(ee){this._type=ee||"text",this._validateType(),!this._isTextarea&&(0,s.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(ee){ee!==this.value&&(this._inputValueAccessor.value=ee,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(ee){this._readonly=(0,i.Ig)(ee)}constructor(ee,x,X,Ve,we,Ie,te,ce,Re,He){super(Ie,Ve,we,X),this._elementRef=ee,this._platform=x,this._autofillMonitor=ce,this._formField=He,this._uid="mat-input-"+he++,this.focused=!1,this.stateChanges=new q.xQ,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(dt=>(0,s.qK)().has(dt)),this._iOSKeyupListener=dt=>{const yt=dt.target;!yt.value&&0===yt.selectionStart&&0===yt.selectionEnd&&(yt.setSelectionRange(1,1),yt.setSelectionRange(0,0))};const nt=this._elementRef.nativeElement,_t=nt.nodeName.toLowerCase();this._inputValueAccessor=te||nt,this._previousNativeValue=this.value,this.id=this.id,x.IOS&&Re.runOutsideAngular(()=>{ee.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===_t,this._isTextarea="textarea"===_t,this._isInFormField=!!He,this._isNativeSelect&&(this.controlType=nt.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(ee=>{this.autofilled=ee.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(),null!==this.ngControl.disabled&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(ee){this._elementRef.nativeElement.focus(ee)}_focusChanged(ee){ee!==this.focused&&(this.focused=ee,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){const ee=this._elementRef.nativeElement.value;this._previousNativeValue!==ee&&(this._previousNativeValue=ee,this.stateChanges.next())}_dirtyCheckPlaceholder(){const ee=this._getPlaceholder();if(ee!==this._previousPlaceholder){const x=this._elementRef.nativeElement;this._previousPlaceholder=ee,ee?x.setAttribute("placeholder",ee):x.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){ne.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let ee=this._elementRef.nativeElement.validity;return ee&&ee.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const ee=this._elementRef.nativeElement,x=ee.options[0];return this.focused||ee.multiple||!this.empty||!!(ee.selectedIndex>-1&&x&&x.label)}return this.focused||!this.empty}setDescribedByIds(ee){ee.length?this._elementRef.nativeElement.setAttribute("aria-describedby",ee.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const ee=this._elementRef.nativeElement;return this._isNativeSelect&&(ee.multiple||ee.size>1)}}return(ge=Ne).\u0275fac=function(ee){return new(ee||ge)(L.Y36(L.SBq),L.Y36(s.t4),L.Y36(f.a5,10),L.Y36(f.F,8),L.Y36(f.sg,8),L.Y36(W.rD),L.Y36(K,10),L.Y36(m.Lq),L.Y36(L.R0b),L.Y36(re.G_,8))},ge.\u0275dir=L.lG2({type:ge,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(ee,x){1&ee&&L.NdJ("focus",function(){return x._focusChanged(!0)})("blur",function(){return x._focusChanged(!1)})("input",function(){return x._onInput()}),2&ee&&(L.Ikx("id",x.id)("disabled",x.disabled)("required",x.required),L.uIk("name",x.name||null)("readonly",x.readonly&&!x._isNativeSelect||null)("aria-invalid",x.empty&&x.required?null:x.errorState)("aria-required",x.required)("id",x.id),L.ekj("mat-input-server",x._isServer)("mat-mdc-form-field-textarea-control",x._isInFormField&&x._isTextarea)("mat-mdc-form-field-input-control",x._isInFormField)("mdc-text-field__input",x._isInFormField)("mat-mdc-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:[L._Bn([{provide:re.Eo,useExisting:ge}]),L.qOj,L.TTD]}),Ne})(),$=(()=>{var ge;class Ne{}return(ge=Ne).\u0275fac=function(ee){return new(ee||ge)},ge.\u0275mod=L.oAB({type:ge}),ge.\u0275inj=L.cJS({imports:[W.BQ,re.lN,re.lN,m.Ky,W.BQ]}),Ne})()},4913:(xt,Ke,p)=>{"use strict";p.d(Ke,{gD:()=>Pn,LD:()=>kn});var i=p(9594),s=p(6814),m=p(5879),L=p(3680),f=p(4170),W=p(6672),re=p(6599),q=p(9388),ae=p(2495),K=p(2079);class ge{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(z=!1,Ae,F=!0,me){this._multiple=z,this._emitChanges=F,this.compareWith=me,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new K.xQ,Ae&&Ae.length&&(z?Ae.forEach(Ye=>this._markSelected(Ye)):this._markSelected(Ae[0]),this._selectedToEmit.length=0)}select(...z){this._verifyValueAssignment(z),z.forEach(F=>this._markSelected(F));const Ae=this._hasQueuedChanges();return this._emitChangeEvent(),Ae}deselect(...z){this._verifyValueAssignment(z),z.forEach(F=>this._unmarkSelected(F));const Ae=this._hasQueuedChanges();return this._emitChangeEvent(),Ae}setSelection(...z){this._verifyValueAssignment(z);const Ae=this.selected,F=new Set(z);z.forEach(Ye=>this._markSelected(Ye)),Ae.filter(Ye=>!F.has(Ye)).forEach(Ye=>this._unmarkSelected(Ye));const me=this._hasQueuedChanges();return this._emitChangeEvent(),me}toggle(z){return this.isSelected(z)?this.deselect(z):this.select(z)}clear(z=!0){this._unmarkAll();const Ae=this._hasQueuedChanges();return z&&this._emitChangeEvent(),Ae}isSelected(z){return this._selection.has(this._getConcreteValue(z))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(z){this._multiple&&this.selected&&this._selected.sort(z)}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(z){z=this._getConcreteValue(z),this.isSelected(z)||(this._multiple||this._unmarkAll(),this.isSelected(z)||this._selection.add(z),this._emitChanges&&this._selectedToEmit.push(z))}_unmarkSelected(z){z=this._getConcreteValue(z),this.isSelected(z)&&(this._selection.delete(z),this._emitChanges&&this._deselectedToEmit.push(z))}_unmarkAll(){this.isEmpty()||this._selection.forEach(z=>this._unmarkSelected(z))}_verifyValueAssignment(z){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(z){if(this.compareWith){for(let Ae of this._selection)if(this.compareWith(z,Ae))return Ae;return z}return z}}var x=p(6028),X=p(6223),Ve=p(4917),we=p(7354),Ie=p(3075),te=p(5222),ce=p(1418),Re=p(7734),He=p(6124),nt=p(2068),_t=p(9352),dt=p(6825);const yt=["trigger"],ot=["panel"];function st(tt,z){if(1&tt&&(m.TgZ(0,"span",10),m._uU(1),m.qZA()),2&tt){const Ae=m.oxw();m.xp6(1),m.Oqu(Ae.placeholder)}}function _e(tt,z){if(1&tt&&(m.TgZ(0,"span",14),m._uU(1),m.qZA()),2&tt){const Ae=m.oxw(2);m.xp6(1),m.Oqu(Ae.triggerValue)}}function Q(tt,z){1&tt&&m.Hsn(0,0,["*ngSwitchCase","true"])}function qe(tt,z){if(1&tt&&(m.TgZ(0,"span",11),m.YNc(1,_e,2,1,"span",12),m.YNc(2,Q,1,0,"ng-content",13),m.qZA()),2&tt){const Ae=m.oxw();m.Q6J("ngSwitch",!!Ae.customTrigger),m.xp6(2),m.Q6J("ngSwitchCase",!0)}}function Te(tt,z){if(1&tt){const Ae=m.EpF();m.O4$(),m.kcU(),m.TgZ(0,"div",15,16),m.NdJ("@transformPanel.done",function(me){m.CHM(Ae);const Ye=m.oxw();return m.KtG(Ye._panelDoneAnimatingStream.next(me.toState))})("keydown",function(me){m.CHM(Ae);const Ye=m.oxw();return m.KtG(Ye._handleKeydown(me))}),m.Hsn(2,1),m.qZA()}if(2&tt){const Ae=m.oxw();m.Gre("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",Ae._getPanelTheme(),""),m.Q6J("ngClass",Ae.panelClass)("@transformPanel","showing"),m.uIk("id",Ae.id+"-panel")("aria-multiselectable",Ae.multiple)("aria-label",Ae.ariaLabel||null)("aria-labelledby",Ae._getPanelAriaLabelledby())}}const se=[[["mat-select-trigger"]],"*"],Se=["mat-select-trigger","*"],N={transformPanelWrap:(0,dt.X$)("transformPanelWrap",[(0,dt.eR)("* => void",(0,dt.IO)("@transformPanel",[(0,dt.pV)()],{optional:!0}))]),transformPanel:(0,dt.X$)("transformPanel",[(0,dt.SB)("void",(0,dt.oB)({opacity:0,transform:"scale(1, 0.8)"})),(0,dt.eR)("void => showing",(0,dt.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,dt.oB)({opacity:1,transform:"scale(1, 1)"}))),(0,dt.eR)("* => void",(0,dt.jt)("100ms linear",(0,dt.oB)({opacity:0})))])};let Je=0;const ht=new m.OlP("mat-select-scroll-strategy"),At=new m.OlP("MAT_SELECT_CONFIG"),Yt={provide:ht,deps:[i.aV],useFactory:function vt(tt){return()=>tt.scrollStrategies.reposition()}},on=new m.OlP("MatSelectTrigger");class nn{constructor(z,Ae){this.source=z,this.value=Ae}}const gn=(0,L.Kr)((0,L.sb)((0,L.Id)((0,L.FD)(class{constructor(tt,z,Ae,F,me){this._elementRef=tt,this._defaultErrorStateMatcher=z,this._parentForm=Ae,this._parentFormGroup=F,this.ngControl=me,this.stateChanges=new K.xQ}}))));let Ut=(()=>{var tt;class z extends gn{get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(F){this._placeholder=F,this.stateChanges.next()}get required(){var F,me,Ye;return null!==(F=null!==(me=this._required)&&void 0!==me?me:null===(Ye=this.ngControl)||void 0===Ye||null===(Ye=Ye.control)||void 0===Ye?void 0:Ye.hasValidator(X.kI.required))&&void 0!==F&&F}set required(F){this._required=(0,ae.Ig)(F),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(F){this._multiple=(0,ae.Ig)(F)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(F){this._disableOptionCentering=(0,ae.Ig)(F)}get compareWith(){return this._compareWith}set compareWith(F){this._compareWith=F,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(F){this._assignValue(F)&&this._onChange(F)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(F){this._typeaheadDebounceInterval=(0,ae.su)(F)}get id(){return this._id}set id(F){this._id=F||this._uid,this.stateChanges.next()}constructor(F,me,Ye,St,Ft,Bt,Wt,Xt,Mt,vn,fn,pn,En,un){var Kn,mt,Nt;super(Ft,St,Wt,Xt,vn),this._viewportRuler=F,this._changeDetectorRef=me,this._ngZone=Ye,this._dir=Bt,this._parentFormField=Mt,this._liveAnnouncer=En,this._defaultOptions=un,this._panelOpen=!1,this._compareWith=(kt,ut)=>kt===ut,this._uid="mat-select-"+Je++,this._triggerAriaLabelledBy=null,this._destroy=new K.xQ,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+Je++,this._panelDoneAnimatingStream=new K.xQ,this._overlayPanelClass=(null===(Kn=this._defaultOptions)||void 0===Kn?void 0:Kn.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(mt=null===(Nt=this._defaultOptions)||void 0===Nt?void 0:Nt.disableOptionCentering)&&void 0!==mt&&mt,this.ariaLabel="",this.optionSelectionChanges=(0,Ve.P)(()=>{const kt=this.options;return kt?kt.changes.pipe((0,Ie.O)(kt),(0,te.w)(()=>(0,we.T)(...kt.map(ut=>ut.onSelectionChange)))):this._ngZone.onStable.pipe((0,ce.q)(1),(0,te.w)(()=>this.optionSelectionChanges))}),this.openedChange=new m.vpe,this._openedStream=this.openedChange.pipe((0,Re.h)(kt=>kt),(0,He.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,Re.h)(kt=>!kt),(0,He.U)(()=>{})),this.selectionChange=new m.vpe,this.valueChange=new m.vpe,this._trackedModal=null,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==un?void 0:un.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=un.typeaheadDebounceInterval),this._scrollStrategyFactory=pn,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(fn)||0,this.id=this.id}ngOnInit(){this._selectionModel=new ge(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,nt.x)(),(0,_t.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,_t.R)(this._destroy)).subscribe(F=>{F.added.forEach(me=>me.select()),F.removed.forEach(me=>me.deselect())}),this.options.changes.pipe((0,Ie.O)(null),(0,_t.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const F=this._getTriggerAriaLabelledby(),me=this.ngControl;if(F!==this._triggerAriaLabelledBy){const Ye=this._elementRef.nativeElement;this._triggerAriaLabelledBy=F,F?Ye.setAttribute("aria-labelledby",F):Ye.removeAttribute("aria-labelledby")}me&&(this._previousControl!==me.control&&(void 0!==this._previousControl&&null!==me.disabled&&me.disabled!==this.disabled&&(this.disabled=me.disabled),this._previousControl=me.control),this.updateErrorState())}ngOnChanges(F){(F.disabled||F.userAriaDescribedBy)&&this.stateChanges.next(),F.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){var F;null===(F=this._keyManager)||void 0===F||F.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}_applyModalPanelOwnership(){const F=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!F)return;const me=`${this.id}-panel`;this._trackedModal&&(0,re.iD)(this._trackedModal,"aria-owns",me),(0,re.Zf)(F,"aria-owns",me),this._trackedModal=F}_clearFromModal(){this._trackedModal&&((0,re.iD)(this._trackedModal,"aria-owns",`${this.id}-panel`),this._trackedModal=null)}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(F){this._assignValue(F)}registerOnChange(F){this._onChange=F}registerOnTouched(F){this._onTouched=F}setDisabledState(F){this.disabled=F,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var F,me;return this.multiple?(null===(F=this._selectionModel)||void 0===F?void 0:F.selected)||[]:null===(me=this._selectionModel)||void 0===me?void 0:me.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const F=this._selectionModel.selected.map(me=>me.viewValue);return this._isRtl()&&F.reverse(),F.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(F){this.disabled||(this.panelOpen?this._handleOpenKeydown(F):this._handleClosedKeydown(F))}_handleClosedKeydown(F){const me=F.keyCode,Ye=me===x.JH||me===x.LH||me===x.oh||me===x.SV,St=me===x.K5||me===x.L_,Ft=this._keyManager;if(!Ft.isTyping()&&St&&!(0,x.Vb)(F)||(this.multiple||F.altKey)&&Ye)F.preventDefault(),this.open();else if(!this.multiple){const Bt=this.selected;Ft.onKeydown(F);const Wt=this.selected;Wt&&Bt!==Wt&&this._liveAnnouncer.announce(Wt.viewValue,1e4)}}_handleOpenKeydown(F){const me=this._keyManager,Ye=F.keyCode,St=Ye===x.JH||Ye===x.LH,Ft=me.isTyping();if(St&&F.altKey)F.preventDefault(),this.close();else if(Ft||Ye!==x.K5&&Ye!==x.L_||!me.activeItem||(0,x.Vb)(F))if(!Ft&&this._multiple&&Ye===x.A&&F.ctrlKey){F.preventDefault();const Bt=this.options.some(Wt=>!Wt.disabled&&!Wt.selected);this.options.forEach(Wt=>{Wt.disabled||(Bt?Wt.select():Wt.deselect())})}else{const Bt=me.activeItemIndex;me.onKeydown(F),this._multiple&&St&&F.shiftKey&&me.activeItem&&me.activeItemIndex!==Bt&&me.activeItem._selectViaInteraction()}else F.preventDefault(),me.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){var F;this._focused=!1,null===(F=this._keyManager)||void 0===F||F.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,ce.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(F){if(this.options.forEach(me=>me.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&F)Array.isArray(F),F.forEach(me=>this._selectOptionByValue(me)),this._sortValues();else{const me=this._selectOptionByValue(F);me?this._keyManager.updateActiveItem(me):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(F){const me=this.options.find(Ye=>{if(this._selectionModel.isSelected(Ye))return!1;try{return null!=Ye.value&&this._compareWith(Ye.value,F)}catch{return!1}});return me&&this._selectionModel.select(me),me}_assignValue(F){return!!(F!==this._value||this._multiple&&Array.isArray(F))&&(this.options&&this._setSelectionByValue(F),this._value=F,!0)}_skipPredicate(F){return F.disabled}_initKeyManager(){this._keyManager=new re.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const F=(0,we.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,_t.R)(F)).subscribe(me=>{this._onSelect(me.source,me.isUserInput),me.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,we.T)(...this.options.map(me=>me._stateChanges)).pipe((0,_t.R)(F)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(F,me){const Ye=this._selectionModel.isSelected(F);null!=F.value||this._multiple?(Ye!==F.selected&&(F.selected?this._selectionModel.select(F):this._selectionModel.deselect(F)),me&&this._keyManager.setActiveItem(F),this.multiple&&(this._sortValues(),me&&this.focus())):(F.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(F.value)),Ye!==this._selectionModel.isSelected(F)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const F=this.options.toArray();this._selectionModel.sort((me,Ye)=>this.sortComparator?this.sortComparator(me,Ye,F):F.indexOf(me)-F.indexOf(Ye)),this.stateChanges.next()}}_propagateChanges(F){let me=null;me=this.multiple?this.selected.map(Ye=>Ye.value):this.selected?this.selected.value:F,this._value=me,this.valueChange.emit(me),this._onChange(me),this.selectionChange.emit(this._getChangeEvent(me)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let F=-1;for(let me=0;me0}focus(F){this._elementRef.nativeElement.focus(F)}_getPanelAriaLabelledby(){var F;if(this.ariaLabel)return null;const me=null===(F=this._parentFormField)||void 0===F?void 0:F.getLabelId();return this.ariaLabelledby?(me?me+" ":"")+this.ariaLabelledby:me}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var F;if(this.ariaLabel)return null;const me=null===(F=this._parentFormField)||void 0===F?void 0:F.getLabelId();let Ye=(me?me+" ":"")+this._valueId;return this.ariaLabelledby&&(Ye+=" "+this.ariaLabelledby),Ye}_panelDoneAnimating(F){this.openedChange.emit(F)}setDescribedByIds(F){F.length?this._elementRef.nativeElement.setAttribute("aria-describedby",F.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return(tt=z).\u0275fac=function(F){return new(F||tt)(m.Y36(W.rL),m.Y36(m.sBO),m.Y36(m.R0b),m.Y36(L.rD),m.Y36(m.SBq),m.Y36(q.Is,8),m.Y36(X.F,8),m.Y36(X.sg,8),m.Y36(f.G_,8),m.Y36(X.a5,10),m.$8M("tabindex"),m.Y36(ht),m.Y36(re.Kd),m.Y36(At,8))},tt.\u0275dir=m.lG2({type:tt,viewQuery:function(F,me){if(1&F&&(m.Gf(yt,5),m.Gf(ot,5),m.Gf(i.pI,5)),2&F){let Ye;m.iGM(Ye=m.CRH())&&(me.trigger=Ye.first),m.iGM(Ye=m.CRH())&&(me.panel=Ye.first),m.iGM(Ye=m.CRH())&&(me._overlayDir=Ye.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:[m.qOj,m.TTD]}),z})(),Pn=(()=>{var tt;class z extends Ut{constructor(){var F,me;super(...arguments),this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto",this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._hideSingleSelectionIndicator=null!==(F=null===(me=this._defaultOptions)||void 0===me?void 0:me.hideSingleSelectionIndicator)&&void 0!==F&&F,this._skipPredicate=Ye=>!this.panelOpen&&Ye.disabled}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,_t.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}open(){this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),super.open(),this.stateChanges.next()}close(){super.close(),this.stateChanges.next()}_scrollOptionIntoView(F){const me=this.options.toArray()[F];if(me){const Ye=this.panel.nativeElement,St=(0,L.CB)(F,this.options,this.optionGroups),Ft=me._getHostElement();Ye.scrollTop=0===F&&1===St?0:(0,L.jH)(Ft.offsetTop,Ft.offsetHeight,Ye.scrollTop,Ye.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(F){return new nn(this,F)}_getOverlayWidth(F){return"auto"===this.panelWidth?(F instanceof i.xu?F.elementRef:F||this._elementRef).nativeElement.getBoundingClientRect().width:null===this.panelWidth?"":this.panelWidth}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(F){this._hideSingleSelectionIndicator=(0,ae.Ig)(F),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const F of this.options)F._changeDetectorRef.markForCheck()}}return(tt=z).\u0275fac=function(){let Ae;return function(me){return(Ae||(Ae=m.n5z(tt)))(me||tt)}}(),tt.\u0275cmp=m.Xpm({type:tt,selectors:[["mat-select"]],contentQueries:function(F,me,Ye){if(1&F&&(m.Suo(Ye,on,5),m.Suo(Ye,L.ey,5),m.Suo(Ye,L.K7,5)),2&F){let St;m.iGM(St=m.CRH())&&(me.customTrigger=St.first),m.iGM(St=m.CRH())&&(me.options=St),m.iGM(St=m.CRH())&&(me.optionGroups=St)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox","ngSkipHydration","",1,"mat-mdc-select"],hostVars:19,hostBindings:function(F,me){1&F&&m.NdJ("keydown",function(St){return me._handleKeydown(St)})("focus",function(){return me._onFocus()})("blur",function(){return me._onBlur()}),2&F&&(m.uIk("id",me.id)("tabindex",me.tabIndex)("aria-controls",me.panelOpen?me.id+"-panel":null)("aria-expanded",me.panelOpen)("aria-label",me.ariaLabel||null)("aria-required",me.required.toString())("aria-disabled",me.disabled.toString())("aria-invalid",me.errorState)("aria-activedescendant",me._getAriaActiveDescendant()),m.ekj("mat-mdc-select-disabled",me.disabled)("mat-mdc-select-invalid",me.errorState)("mat-mdc-select-required",me.required)("mat-mdc-select-empty",me.empty)("mat-mdc-select-multiple",me.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",panelWidth:"panelWidth",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matSelect"],features:[m._Bn([{provide:f.Eo,useExisting:tt},{provide:L.HF,useExisting:tt}]),m.qOj],ngContentSelectors:Se,decls:11,vars:10,consts:[["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],[1,"mat-mdc-select-value",3,"ngSwitch"],["class","mat-mdc-select-placeholder mat-mdc-select-min-line",4,"ngSwitchCase"],["class","mat-mdc-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","backdropClick","attach","detach"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text",3,"ngSwitch"],["class","mat-mdc-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(F,me){if(1&F&&(m.F$t(se),m.TgZ(0,"div",0,1),m.NdJ("click",function(){return me.toggle()}),m.TgZ(3,"div",2),m.YNc(4,st,2,1,"span",3),m.YNc(5,qe,3,2,"span",4),m.qZA(),m.TgZ(6,"div",5)(7,"div",6),m.O4$(),m.TgZ(8,"svg",7),m._UZ(9,"path",8),m.qZA()()()(),m.YNc(10,Te,3,9,"ng-template",9),m.NdJ("backdropClick",function(){return me.close()})("attach",function(){return me._onAttached()})("detach",function(){return me.close()})),2&F){const Ye=m.MAs(1);m.xp6(3),m.Q6J("ngSwitch",me.empty),m.uIk("id",me._valueId),m.xp6(1),m.Q6J("ngSwitchCase",!0),m.xp6(1),m.Q6J("ngSwitchCase",!1),m.xp6(5),m.Q6J("cdkConnectedOverlayPanelClass",me._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",me._scrollStrategy)("cdkConnectedOverlayOrigin",me._preferredOverlayOrigin||Ye)("cdkConnectedOverlayOpen",me.panelOpen)("cdkConnectedOverlayPositions",me._positions)("cdkConnectedOverlayWidth",me._overlayWidth)}},dependencies:[s.mk,s.RF,s.n9,s.ED,i.pI,i.xu],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color);font-family:var(--mat-select-trigger-text-font);line-height:var(--mat-select-trigger-text-line-height);font-size:var(--mat-select-trigger-text-size);font-weight:var(--mat-select-trigger-text-weight);letter-spacing:var(--mat-select-trigger-text-tracking)}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color)}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:translateY(-8px)}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color)}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow{color:var(--mat-select-invalid-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}div.mat-mdc-select-panel{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color)}.cdk-high-contrast-active div.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color)}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[N.transformPanel]},changeDetection:0}),z})(),kn=(()=>{var tt;class z{}return(tt=z).\u0275fac=function(F){return new(F||tt)},tt.\u0275mod=m.oAB({type:tt}),tt.\u0275inj=m.cJS({providers:[Yt],imports:[s.ez,i.U8,L.Ng,L.BQ,W.ZD,f.lN,L.Ng,L.BQ]}),z})()},2596:(xt,Ke,p)=>{"use strict";p.d(Ke,{AV:()=>qe,gM:()=>ot});var i=p(9352),s=p(1418),m=p(2495),L=p(6028),f=p(5879),W=p(6814),re=p(2831),q=p(6599),ae=p(9388),K=p(9594),ne=p(6672),he=p(8484),U=p(2079),$=(p(6825),p(3680));const ge=["tooltip"],ee=new f.OlP("mat-tooltip-scroll-strategy"),X={provide:ee,deps:[K.aV],useFactory:function x(Te){return()=>Te.scrollStrategies.reposition({scrollThrottle:20})}},we=new f.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function Ve(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),te="tooltip-panel",ce=(0,re.i$)({passive:!0});let yt=(()=>{var Te;class se{get position(){return this._position}set position(N){var oe;N!==this._position&&(this._position=N,this._overlayRef)&&(this._updatePosition(this._overlayRef),null===(oe=this._tooltipInstance)||void 0===oe||oe.show(0),this._overlayRef.updatePosition())}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(N){this._positionAtOrigin=(0,m.Ig)(N),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(N){this._disabled=(0,m.Ig)(N),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(N){this._showDelay=(0,m.su)(N)}get hideDelay(){return this._hideDelay}set hideDelay(N){this._hideDelay=(0,m.su)(N),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(N){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=N?String(N).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(N){this._tooltipClass=N,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(N,oe,ye,Fe,Je,ht,vt,At,Yt,on,nn,gn){this._overlay=N,this._elementRef=oe,this._scrollDispatcher=ye,this._viewContainerRef=Fe,this._ngZone=Je,this._platform=ht,this._ariaDescriber=vt,this._focusMonitor=At,this._dir=on,this._defaultOptions=nn,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new U.xQ,this._scrollStrategy=Yt,this._document=gn,nn&&(this._showDelay=nn.showDelay,this._hideDelay=nn.hideDelay,nn.position&&(this.position=nn.position),nn.positionAtOrigin&&(this.positionAtOrigin=nn.positionAtOrigin),nn.touchGestures&&(this.touchGestures=nn.touchGestures)),on.change.pipe((0,i.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,i.R)(this._destroyed)).subscribe(N=>{N?"keyboard"===N&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const N=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([oe,ye])=>{N.removeEventListener(oe,ye,ce)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(N,this.message,"tooltip"),this._focusMonitor.stopMonitoring(N)}show(N=this.showDelay,oe){var ye;if(this.disabled||!this.message||this._isTooltipVisible())return void(null===(ye=this._tooltipInstance)||void 0===ye||ye._cancelPendingAnimations());const Fe=this._createOverlay(oe);this._detach(),this._portal=this._portal||new he.C5(this._tooltipComponent,this._viewContainerRef);const Je=this._tooltipInstance=Fe.attach(this._portal).instance;Je._triggerElement=this._elementRef.nativeElement,Je._mouseLeaveHideDelay=this._hideDelay,Je.afterHidden().pipe((0,i.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),Je.show(N)}hide(N=this.hideDelay){const oe=this._tooltipInstance;oe&&(oe.isVisible()?oe.hide(N):(oe._cancelPendingAnimations(),this._detach()))}toggle(N){this._isTooltipVisible()?this.hide():this.show(void 0,N)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(N){var oe;if(this._overlayRef){const Je=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!N)&&Je._origin instanceof f.SBq)return this._overlayRef;this._detach()}const ye=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),Fe=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&N||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(ye);return Fe.positionChanges.pipe((0,i.R)(this._destroyed)).subscribe(Je=>{this._updateCurrentPositionClass(Je.connectionPair),this._tooltipInstance&&Je.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:Fe,panelClass:`${this._cssClassPrefix}-${te}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,i.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,i.R)(this._destroyed)).subscribe(()=>{var Je;return null===(Je=this._tooltipInstance)||void 0===Je?void 0:Je._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe((0,i.R)(this._destroyed)).subscribe(Je=>{this._isTooltipVisible()&&Je.keyCode===L.hY&&!(0,L.Vb)(Je)&&(Je.preventDefault(),Je.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),null!==(oe=this._defaultOptions)&&void 0!==oe&&oe.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(N){const oe=N.getConfig().positionStrategy,ye=this._getOrigin(),Fe=this._getOverlayPosition();oe.withPositions([this._addOffset({...ye.main,...Fe.main}),this._addOffset({...ye.fallback,...Fe.fallback})])}_addOffset(N){return N}_getOrigin(){const N=!this._dir||"ltr"==this._dir.value,oe=this.position;let ye;"above"==oe||"below"==oe?ye={originX:"center",originY:"above"==oe?"top":"bottom"}:"before"==oe||"left"==oe&&N||"right"==oe&&!N?ye={originX:"start",originY:"center"}:("after"==oe||"right"==oe&&N||"left"==oe&&!N)&&(ye={originX:"end",originY:"center"});const{x:Fe,y:Je}=this._invertPosition(ye.originX,ye.originY);return{main:ye,fallback:{originX:Fe,originY:Je}}}_getOverlayPosition(){const N=!this._dir||"ltr"==this._dir.value,oe=this.position;let ye;"above"==oe?ye={overlayX:"center",overlayY:"bottom"}:"below"==oe?ye={overlayX:"center",overlayY:"top"}:"before"==oe||"left"==oe&&N||"right"==oe&&!N?ye={overlayX:"end",overlayY:"center"}:("after"==oe||"right"==oe&&N||"left"==oe&&!N)&&(ye={overlayX:"start",overlayY:"center"});const{x:Fe,y:Je}=this._invertPosition(ye.overlayX,ye.overlayY);return{main:ye,fallback:{overlayX:Fe,overlayY:Je}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,s.q)(1),(0,i.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(N){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=N,this._tooltipInstance._markForCheck())}_invertPosition(N,oe){return"above"===this.position||"below"===this.position?"top"===oe?oe="bottom":"bottom"===oe&&(oe="top"):"end"===N?N="start":"start"===N&&(N="end"),{x:N,y:oe}}_updateCurrentPositionClass(N){const{overlayY:oe,originX:ye,originY:Fe}=N;let Je;if(Je="center"===oe?this._dir&&"rtl"===this._dir.value?"end"===ye?"left":"right":"start"===ye?"left":"right":"bottom"===oe&&"top"===Fe?"above":"below",Je!==this._currentPosition){const ht=this._overlayRef;if(ht){const vt=`${this._cssClassPrefix}-${te}-`;ht.removePanelClass(vt+this._currentPosition),ht.addPanelClass(vt+Je)}this._currentPosition=Je}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",N=>{let oe;this._setupPointerExitEventsIfNeeded(),void 0!==N.x&&void 0!==N.y&&(oe=N),this.show(void 0,oe)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",N=>{var oe;const ye=null===(oe=N.targetTouches)||void 0===oe?void 0:oe[0],Fe=ye?{x:ye.clientX,y:ye.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(void 0,Fe),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const N=[];if(this._platformSupportsMouseEvents())N.push(["mouseleave",oe=>{var ye;const Fe=oe.relatedTarget;(!Fe||null===(ye=this._overlayRef)||void 0===ye||!ye.overlayElement.contains(Fe))&&this.hide()}],["wheel",oe=>this._wheelListener(oe)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const oe=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};N.push(["touchend",oe],["touchcancel",oe])}this._addListeners(N),this._passiveListeners.push(...N)}_addListeners(N){N.forEach(([oe,ye])=>{this._elementRef.nativeElement.addEventListener(oe,ye,ce)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(N){if(this._isTooltipVisible()){const oe=this._document.elementFromPoint(N.clientX,N.clientY),ye=this._elementRef.nativeElement;oe!==ye&&!ye.contains(oe)&&this.hide()}}_disableNativeGesturesIfNecessary(){const N=this.touchGestures;if("off"!==N){const oe=this._elementRef.nativeElement,ye=oe.style;("on"===N||"INPUT"!==oe.nodeName&&"TEXTAREA"!==oe.nodeName)&&(ye.userSelect=ye.msUserSelect=ye.webkitUserSelect=ye.MozUserSelect="none"),("on"===N||!oe.draggable)&&(ye.webkitUserDrag="none"),ye.touchAction="none",ye.webkitTapHighlightColor="transparent"}}}return(Te=se).\u0275fac=function(N){f.$Z()},Te.\u0275dir=f.lG2({type:Te,inputs:{position:["matTooltipPosition","position"],positionAtOrigin:["matTooltipPositionAtOrigin","positionAtOrigin"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),se})(),ot=(()=>{var Te;class se extends yt{constructor(N,oe,ye,Fe,Je,ht,vt,At,Yt,on,nn,gn){super(N,oe,ye,Fe,Je,ht,vt,At,Yt,on,nn,gn),this._tooltipComponent=_e,this._cssClassPrefix="mat-mdc",this._viewportMargin=8}_addOffset(N){const ye=!this._dir||"ltr"==this._dir.value;return"top"===N.originY?N.offsetY=-8:"bottom"===N.originY?N.offsetY=8:"start"===N.originX?N.offsetX=ye?-8:8:"end"===N.originX&&(N.offsetX=ye?8:-8),N}}return(Te=se).\u0275fac=function(N){return new(N||Te)(f.Y36(K.aV),f.Y36(f.SBq),f.Y36(ne.mF),f.Y36(f.s_b),f.Y36(f.R0b),f.Y36(re.t4),f.Y36(q.$s),f.Y36(q.tE),f.Y36(ee),f.Y36(ae.Is,8),f.Y36(we,8),f.Y36(W.K0))},Te.\u0275dir=f.lG2({type:Te,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(N,oe){2&N&&f.ekj("mat-mdc-tooltip-disabled",oe.disabled)},exportAs:["matTooltip"],features:[f.qOj]}),se})(),st=(()=>{var Te;class se{constructor(N,oe){this._changeDetectorRef=N,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new U.xQ,this._animationsDisabled="NoopAnimations"===oe}show(N){null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},N)}hide(N){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},N)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:N}){(!N||!this._triggerElement.contains(N))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:N}){(N===this._showAnimation||N===this._hideAnimation)&&this._finalizeAnimation(N===this._showAnimation)}_cancelPendingAnimations(){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(N){N?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(N){const oe=this._tooltip.nativeElement,ye=this._showAnimation,Fe=this._hideAnimation;if(oe.classList.remove(N?Fe:ye),oe.classList.add(N?ye:Fe),this._isVisible=N,N&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const Je=getComputedStyle(oe);("0s"===Je.getPropertyValue("animation-duration")||"none"===Je.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}N&&this._onShow(),this._animationsDisabled&&(oe.classList.add("_mat-animation-noopable"),this._finalizeAnimation(N))}}return(Te=se).\u0275fac=function(N){return new(N||Te)(f.Y36(f.sBO),f.Y36(f.QbO,8))},Te.\u0275dir=f.lG2({type:Te}),se})(),_e=(()=>{var Te;class se extends st{constructor(N,oe,ye){super(N,ye),this._elementRef=oe,this._isMultiline=!1,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide"}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const N=this._elementRef.nativeElement.getBoundingClientRect();return N.height>24&&N.width>=200}}return(Te=se).\u0275fac=function(N){return new(N||Te)(f.Y36(f.sBO),f.Y36(f.SBq),f.Y36(f.QbO,8))},Te.\u0275cmp=f.Xpm({type:Te,selectors:[["mat-tooltip-component"]],viewQuery:function(N,oe){if(1&N&&f.Gf(ge,7),2&N){let ye;f.iGM(ye=f.CRH())&&(oe._tooltip=ye.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(N,oe){1&N&&f.NdJ("mouseleave",function(Fe){return oe._handleMouseLeave(Fe)}),2&N&&f.Udp("zoom",oe.isVisible()?1:null)},features:[f.qOj],decls:4,vars:4,consts:[[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"ngClass","animationend"],["tooltip",""],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function(N,oe){1&N&&(f.TgZ(0,"div",0,1),f.NdJ("animationend",function(Fe){return oe._handleAnimationEnd(Fe)}),f.TgZ(2,"div",2),f._uU(3),f.qZA()()),2&N&&(f.ekj("mdc-tooltip--multiline",oe._isMultiline),f.Q6J("ngClass",oe.tooltipClass),f.xp6(3),f.Oqu(oe.message))},dependencies:[W.mk],styles:['.mdc-tooltip__surface{word-break:break-all;word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip--showing-transition .mdc-tooltip__surface-animation{transition:opacity 150ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-tooltip--hide-transition .mdc-tooltip__surface-animation{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface::before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(200px - (2 * 8px));margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(320px - (2 * 8px));align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(0.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(0.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);outline:1px solid rgba(0,0,0,0);z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mat-mdc-tooltip{--mdc-plain-tooltip-container-shape:4px;--mdc-plain-tooltip-supporting-text-line-height:16px}.mat-mdc-tooltip .mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color)}.mat-mdc-tooltip .mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__caret-surface-top,.mat-mdc-tooltip .mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color)}.mat-mdc-tooltip .mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font);line-height:var(--mdc-plain-tooltip-supporting-text-line-height);font-size:var(--mdc-plain-tooltip-supporting-text-size);font-weight:var(--mdc-plain-tooltip-supporting-text-weight);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking)}.mat-mdc-tooltip{position:relative;transform:scale(0)}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0}),se})(),qe=(()=>{var Te;class se{}return(Te=se).\u0275fac=function(N){return new(N||Te)},Te.\u0275mod=f.oAB({type:Te}),Te.\u0275inj=f.cJS({providers:[X],imports:[q.rt,W.ez,K.U8,$.BQ,$.BQ,ne.ZD]}),se})()},6593:(xt,Ke,p)=>{"use strict";p.d(Ke,{Dx:()=>kn,H7:()=>un,b2:()=>nn,q6:()=>vt,se:()=>ce});var i=p(5879),s=p(6814);class m extends s.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class L extends m{static makeCurrent(){(0,s.HT)(new L)}onAndCancel(ve,Ee,de){return ve.addEventListener(Ee,de),()=>{ve.removeEventListener(Ee,de)}}dispatchEvent(ve,Ee){ve.dispatchEvent(Ee)}remove(ve){ve.parentNode&&ve.parentNode.removeChild(ve)}createElement(ve,Ee){return(Ee=Ee||this.getDefaultDocument()).createElement(ve)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(ve){return ve.nodeType===Node.ELEMENT_NODE}isShadowRoot(ve){return ve instanceof DocumentFragment}getGlobalEventTarget(ve,Ee){return"window"===Ee?window:"document"===Ee?ve:"body"===Ee?ve.body:null}getBaseHref(ve){const Ee=function W(){return f=f||document.querySelector("base"),f?f.getAttribute("href"):null}();return null==Ee?null:function q(gt){re=re||document.createElement("a"),re.setAttribute("href",gt);const ve=re.pathname;return"/"===ve.charAt(0)?ve:`/${ve}`}(Ee)}resetBaseElement(){f=null}getUserAgent(){return window.navigator.userAgent}getCookie(ve){return(0,s.Mx)(document.cookie,ve)}}let re,f=null,K=(()=>{var gt;class ve{build(){return new XMLHttpRequest}}return(gt=ve).\u0275fac=function(de){return new(de||gt)},gt.\u0275prov=i.Yz7({token:gt,factory:gt.\u0275fac}),ve})();const ne=new i.OlP("EventManagerPlugins");let he=(()=>{var gt;class ve{constructor(de,G){this._zone=G,this._eventNameToPlugin=new Map,de.forEach(We=>{We.manager=this}),this._plugins=de.slice().reverse()}addEventListener(de,G,We){return this._findPluginFor(G).addEventListener(de,G,We)}getZone(){return this._zone}_findPluginFor(de){let G=this._eventNameToPlugin.get(de);if(G)return G;if(G=this._plugins.find(le=>le.supports(de)),!G)throw new i.vHH(5101,!1);return this._eventNameToPlugin.set(de,G),G}}return(gt=ve).\u0275fac=function(de){return new(de||gt)(i.LFG(ne),i.LFG(i.R0b))},gt.\u0275prov=i.Yz7({token:gt,factory:gt.\u0275fac}),ve})();class U{constructor(ve){this._doc=ve}}const $e="ng-app-id";let $=(()=>{var gt;class ve{constructor(de,G,We,le={}){this.doc=de,this.appId=G,this.nonce=We,this.platformId=le,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,s.PM)(le),this.resetHostNodes()}addStyles(de){for(const G of de)1===this.changeUsageCount(G,1)&&this.onStyleAdded(G)}removeStyles(de){for(const G of de)this.changeUsageCount(G,-1)<=0&&this.onStyleRemoved(G)}ngOnDestroy(){const de=this.styleNodesInDOM;de&&(de.forEach(G=>G.remove()),de.clear());for(const G of this.getAllStyles())this.onStyleRemoved(G);this.resetHostNodes()}addHost(de){this.hostNodes.add(de);for(const G of this.getAllStyles())this.addStyleToHost(de,G)}removeHost(de){this.hostNodes.delete(de)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(de){for(const G of this.hostNodes)this.addStyleToHost(G,de)}onStyleRemoved(de){var G;const We=this.styleRef;null===(G=We.get(de))||void 0===G||null===(G=G.elements)||void 0===G||G.forEach(le=>le.remove()),We.delete(de)}collectServerRenderedStyles(){var de;const G=null===(de=this.doc.head)||void 0===de?void 0:de.querySelectorAll(`style[${$e}="${this.appId}"]`);if(null!=G&&G.length){const We=new Map;return G.forEach(le=>{null!=le.textContent&&We.set(le.textContent,le)}),We}return null}changeUsageCount(de,G){const We=this.styleRef;if(We.has(de)){const le=We.get(de);return le.usage+=G,le.usage}return We.set(de,{usage:G,elements:[]}),G}getStyleElement(de,G){const We=this.styleNodesInDOM,le=null==We?void 0:We.get(G);if((null==le?void 0:le.parentNode)===de)return We.delete(G),le.removeAttribute($e),le;{const Me=this.doc.createElement("style");return this.nonce&&Me.setAttribute("nonce",this.nonce),Me.textContent=G,this.platformIsServer&&Me.setAttribute($e,this.appId),Me}}addStyleToHost(de,G){var We;const le=this.getStyleElement(de,G);de.appendChild(le);const Me=this.styleRef,Le=null===(We=Me.get(G))||void 0===We?void 0:We.elements;Le?Le.push(le):Me.set(G,{elements:[le],usage:1})}resetHostNodes(){const de=this.hostNodes;de.clear(),de.add(this.doc.head)}}return(gt=ve).\u0275fac=function(de){return new(de||gt)(i.LFG(s.K0),i.LFG(i.AFp),i.LFG(i.Ojb,8),i.LFG(i.Lbi))},gt.\u0275prov=i.Yz7({token:gt,factory:gt.\u0275fac}),ve})();const ge={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Ne=/%COMP%/g,Ve=new i.OlP("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function te(gt,ve){return ve.map(Ee=>Ee.replace(Ne,gt))}let ce=(()=>{var gt;class ve{constructor(de,G,We,le,Me,Le,A,H=null){this.eventManager=de,this.sharedStylesHost=G,this.appId=We,this.removeStylesOnCompDestroy=le,this.doc=Me,this.platformId=Le,this.ngZone=A,this.nonce=H,this.rendererByCompId=new Map,this.platformIsServer=(0,s.PM)(Le),this.defaultRenderer=new Re(de,Me,A,this.platformIsServer)}createRenderer(de,G){if(!de||!G)return this.defaultRenderer;this.platformIsServer&&G.encapsulation===i.ifc.ShadowDom&&(G={...G,encapsulation:i.ifc.Emulated});const We=this.getOrCreateRenderer(de,G);return We instanceof ot?We.applyToHost(de):We instanceof yt&&We.applyStyles(),We}getOrCreateRenderer(de,G){const We=this.rendererByCompId;let le=We.get(G.id);if(!le){const Me=this.doc,Le=this.ngZone,A=this.eventManager,H=this.sharedStylesHost,Be=this.removeStylesOnCompDestroy,I=this.platformIsServer;switch(G.encapsulation){case i.ifc.Emulated:le=new ot(A,H,G,this.appId,Be,Me,Le,I);break;case i.ifc.ShadowDom:return new dt(A,H,de,G,Me,Le,this.nonce,I);default:le=new yt(A,H,G,Be,Me,Le,I)}We.set(G.id,le)}return le}ngOnDestroy(){this.rendererByCompId.clear()}}return(gt=ve).\u0275fac=function(de){return new(de||gt)(i.LFG(he),i.LFG($),i.LFG(i.AFp),i.LFG(Ve),i.LFG(s.K0),i.LFG(i.Lbi),i.LFG(i.R0b),i.LFG(i.Ojb))},gt.\u0275prov=i.Yz7({token:gt,factory:gt.\u0275fac}),ve})();class Re{constructor(ve,Ee,de,G){this.eventManager=ve,this.doc=Ee,this.ngZone=de,this.platformIsServer=G,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(ve,Ee){return Ee?this.doc.createElementNS(ge[Ee]||Ee,ve):this.doc.createElement(ve)}createComment(ve){return this.doc.createComment(ve)}createText(ve){return this.doc.createTextNode(ve)}appendChild(ve,Ee){(_t(ve)?ve.content:ve).appendChild(Ee)}insertBefore(ve,Ee,de){ve&&(_t(ve)?ve.content:ve).insertBefore(Ee,de)}removeChild(ve,Ee){ve&&ve.removeChild(Ee)}selectRootElement(ve,Ee){let de="string"==typeof ve?this.doc.querySelector(ve):ve;if(!de)throw new i.vHH(-5104,!1);return Ee||(de.textContent=""),de}parentNode(ve){return ve.parentNode}nextSibling(ve){return ve.nextSibling}setAttribute(ve,Ee,de,G){if(G){Ee=G+":"+Ee;const We=ge[G];We?ve.setAttributeNS(We,Ee,de):ve.setAttribute(Ee,de)}else ve.setAttribute(Ee,de)}removeAttribute(ve,Ee,de){if(de){const G=ge[de];G?ve.removeAttributeNS(G,Ee):ve.removeAttribute(`${de}:${Ee}`)}else ve.removeAttribute(Ee)}addClass(ve,Ee){ve.classList.add(Ee)}removeClass(ve,Ee){ve.classList.remove(Ee)}setStyle(ve,Ee,de,G){G&(i.JOm.DashCase|i.JOm.Important)?ve.style.setProperty(Ee,de,G&i.JOm.Important?"important":""):ve.style[Ee]=de}removeStyle(ve,Ee,de){de&i.JOm.DashCase?ve.style.removeProperty(Ee):ve.style[Ee]=""}setProperty(ve,Ee,de){ve[Ee]=de}setValue(ve,Ee){ve.nodeValue=Ee}listen(ve,Ee,de){if("string"==typeof ve&&!(ve=(0,s.q)().getGlobalEventTarget(this.doc,ve)))throw new Error(`Unsupported event target ${ve} for event ${Ee}`);return this.eventManager.addEventListener(ve,Ee,this.decoratePreventDefault(de))}decoratePreventDefault(ve){return Ee=>{if("__ngUnwrap__"===Ee)return ve;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>ve(Ee)):ve(Ee))&&Ee.preventDefault()}}}function _t(gt){return"TEMPLATE"===gt.tagName&&void 0!==gt.content}class dt extends Re{constructor(ve,Ee,de,G,We,le,Me,Le){super(ve,We,le,Le),this.sharedStylesHost=Ee,this.hostEl=de,this.shadowRoot=de.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const A=te(G.id,G.styles);for(const H of A){const Be=document.createElement("style");Me&&Be.setAttribute("nonce",Me),Be.textContent=H,this.shadowRoot.appendChild(Be)}}nodeOrShadowRoot(ve){return ve===this.hostEl?this.shadowRoot:ve}appendChild(ve,Ee){return super.appendChild(this.nodeOrShadowRoot(ve),Ee)}insertBefore(ve,Ee,de){return super.insertBefore(this.nodeOrShadowRoot(ve),Ee,de)}removeChild(ve,Ee){return super.removeChild(this.nodeOrShadowRoot(ve),Ee)}parentNode(ve){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(ve)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class yt extends Re{constructor(ve,Ee,de,G,We,le,Me,Le){super(ve,We,le,Me),this.sharedStylesHost=Ee,this.removeStylesOnCompDestroy=G,this.styles=Le?te(Le,de.styles):de.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class ot extends yt{constructor(ve,Ee,de,G,We,le,Me,Le){const A=G+"-"+de.id;super(ve,Ee,de,We,le,Me,Le,A),this.contentAttr=function we(gt){return"_ngcontent-%COMP%".replace(Ne,gt)}(A),this.hostAttr=function Ie(gt){return"_nghost-%COMP%".replace(Ne,gt)}(A)}applyToHost(ve){this.applyStyles(),this.setAttribute(ve,this.hostAttr,"")}createElement(ve,Ee){const de=super.createElement(ve,Ee);return super.setAttribute(de,this.contentAttr,""),de}}let st=(()=>{var gt;class ve extends U{constructor(de){super(de)}supports(de){return!0}addEventListener(de,G,We){return de.addEventListener(G,We,!1),()=>this.removeEventListener(de,G,We)}removeEventListener(de,G,We){return de.removeEventListener(G,We)}}return(gt=ve).\u0275fac=function(de){return new(de||gt)(i.LFG(s.K0))},gt.\u0275prov=i.Yz7({token:gt,factory:gt.\u0275fac}),ve})();const _e=["alt","control","meta","shift"],Q={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},qe={alt:gt=>gt.altKey,control:gt=>gt.ctrlKey,meta:gt=>gt.metaKey,shift:gt=>gt.shiftKey};let Te=(()=>{var gt;class ve extends U{constructor(de){super(de)}supports(de){return null!=ve.parseEventName(de)}addEventListener(de,G,We){const le=ve.parseEventName(G),Me=ve.eventCallback(le.fullKey,We,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,s.q)().onAndCancel(de,le.domEventName,Me))}static parseEventName(de){const G=de.toLowerCase().split("."),We=G.shift();if(0===G.length||"keydown"!==We&&"keyup"!==We)return null;const le=ve._normalizeKey(G.pop());let Me="",Le=G.indexOf("code");if(Le>-1&&(G.splice(Le,1),Me="code."),_e.forEach(H=>{const Be=G.indexOf(H);Be>-1&&(G.splice(Be,1),Me+=H+".")}),Me+=le,0!=G.length||0===le.length)return null;const A={};return A.domEventName=We,A.fullKey=Me,A}static matchEventFullKeyCode(de,G){let We=Q[de.key]||de.key,le="";return G.indexOf("code.")>-1&&(We=de.code,le="code."),!(null==We||!We)&&(We=We.toLowerCase()," "===We?We="space":"."===We&&(We="dot"),_e.forEach(Me=>{Me!==We&&(0,qe[Me])(de)&&(le+=Me+".")}),le+=We,le===G)}static eventCallback(de,G,We){return le=>{ve.matchEventFullKeyCode(le,de)&&We.runGuarded(()=>G(le))}}static _normalizeKey(de){return"esc"===de?"escape":de}}return(gt=ve).\u0275fac=function(de){return new(de||gt)(i.LFG(s.K0))},gt.\u0275prov=i.Yz7({token:gt,factory:gt.\u0275fac}),ve})();const vt=(0,i.eFA)(i._c5,"browser",[{provide:i.Lbi,useValue:s.bD},{provide:i.g9A,useValue:function ye(){L.makeCurrent()},multi:!0},{provide:s.K0,useFactory:function Je(){return(0,i.RDi)(document),document},deps:[]}]),At=new i.OlP(""),Yt=[{provide:i.rWj,useClass:class ae{addToWindow(ve){i.dqk.getAngularTestability=(de,G=!0)=>{const We=ve.findTestabilityInTree(de,G);if(null==We)throw new i.vHH(5103,!1);return We},i.dqk.getAllAngularTestabilities=()=>ve.getAllTestabilities(),i.dqk.getAllAngularRootElements=()=>ve.getAllRootElements(),i.dqk.frameworkStabilizers||(i.dqk.frameworkStabilizers=[]),i.dqk.frameworkStabilizers.push(de=>{const G=i.dqk.getAllAngularTestabilities();let We=G.length,le=!1;const Me=function(Le){le=le||Le,We--,0==We&&de(le)};G.forEach(Le=>{Le.whenStable(Me)})})}findTestabilityInTree(ve,Ee,de){if(null==Ee)return null;const G=ve.getTestability(Ee);return null!=G?G:de?(0,s.q)().isShadowRoot(Ee)?this.findTestabilityInTree(ve,Ee.host,!0):this.findTestabilityInTree(ve,Ee.parentElement,!0):null}},deps:[]},{provide:i.lri,useClass:i.dDg,deps:[i.R0b,i.eoX,i.rWj]},{provide:i.dDg,useClass:i.dDg,deps:[i.R0b,i.eoX,i.rWj]}],on=[{provide:i.zSh,useValue:"root"},{provide:i.qLn,useFactory:function Fe(){return new i.qLn},deps:[]},{provide:ne,useClass:st,multi:!0,deps:[s.K0,i.R0b,i.Lbi]},{provide:ne,useClass:Te,multi:!0,deps:[s.K0]},ce,$,he,{provide:i.FYo,useExisting:ce},{provide:s.JF,useClass:K,deps:[]},[]];let nn=(()=>{var gt;class ve{constructor(de){}static withServerTransition(de){return{ngModule:ve,providers:[{provide:i.AFp,useValue:de.appId}]}}}return(gt=ve).\u0275fac=function(de){return new(de||gt)(i.LFG(At,12))},gt.\u0275mod=i.oAB({type:gt}),gt.\u0275inj=i.cJS({providers:[...on,...Yt],imports:[s.ez,i.hGG]}),ve})(),kn=(()=>{var gt;class ve{constructor(de){this._doc=de}getTitle(){return this._doc.title}setTitle(de){this._doc.title=de||""}}return(gt=ve).\u0275fac=function(de){return new(de||gt)(i.LFG(s.K0))},gt.\u0275prov=i.Yz7({token:gt,factory:function(de){let G=null;return G=de?new de:function Pn(){return new kn((0,i.LFG)(s.K0))}(),G},providedIn:"root"}),ve})();typeof window<"u"&&window;let un=(()=>{var gt;class ve{}return(gt=ve).\u0275fac=function(de){return new(de||gt)},gt.\u0275prov=i.Yz7({token:gt,factory:function(de){let G=null;return G=de?new(de||gt):i.LFG(mt),G},providedIn:"root"}),ve})(),mt=(()=>{var gt;class ve extends un{constructor(de){super(),this._doc=de}sanitize(de,G){if(null==G)return null;switch(de){case i.q3G.NONE:return G;case i.q3G.HTML:return(0,i.qzn)(G,"HTML")?(0,i.z3N)(G):(0,i.EiD)(this._doc,String(G)).toString();case i.q3G.STYLE:return(0,i.qzn)(G,"Style")?(0,i.z3N)(G):G;case i.q3G.SCRIPT:if((0,i.qzn)(G,"Script"))return(0,i.z3N)(G);throw new i.vHH(5200,!1);case i.q3G.URL:return(0,i.qzn)(G,"URL")?(0,i.z3N)(G):(0,i.mCW)(String(G));case i.q3G.RESOURCE_URL:if((0,i.qzn)(G,"ResourceURL"))return(0,i.z3N)(G);throw new i.vHH(5201,!1);default:throw new i.vHH(5202,!1)}}bypassSecurityTrustHtml(de){return(0,i.JVY)(de)}bypassSecurityTrustStyle(de){return(0,i.L6k)(de)}bypassSecurityTrustScript(de){return(0,i.eBb)(de)}bypassSecurityTrustUrl(de){return(0,i.LAX)(de)}bypassSecurityTrustResourceUrl(de){return(0,i.pB0)(de)}}return(gt=ve).\u0275fac=function(de){return new(de||gt)(i.LFG(s.K0))},gt.\u0275prov=i.Yz7({token:gt,factory:function(de){let G=null;return G=de?new de:function Kn(gt){return new mt(gt.get(s.K0))}(i.LFG(i.zs3)),G},providedIn:"root"}),ve})()},1488:(xt,Ke,p)=>{"use strict";p.d(Ke,{gz:()=>Zi,m2:()=>at,F0:()=>xr,rH:()=>Er,Bz:()=>ma,lC:()=>hr,bq:()=>Kn});var i=p(5879),s=p(5363),m=p(5253),L=p(9193),f=p(5125),W=p(3291);const q=(()=>{function _(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return _.prototype=Object.create(Error.prototype),_})();var ae=p(3990),K=p(4917),ne=p(4813),he=p(6222),U=p(1226),$e=p(4247),$=p(2079),ge=p(7902),Ne=p(6814),ie=p(6124),ee=p(5222),x=p(1418),X=p(3075),Ve=p(7734),we=p(6743),Ie=p(254);function te(_=null){return b=>b.lift(new ce(_))}class ce{constructor(b){this.defaultValue=b}call(b,T){return T.subscribe(new Re(b,this.defaultValue))}}class Re extends Ie.L{constructor(b,T){super(b),this.defaultValue=T,this.isEmpty=!0}_next(b){this.isEmpty=!1,this.destination.next(b)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function He(_=dt){return b=>b.lift(new nt(_))}class nt{constructor(b){this.errorFactory=b}call(b,T){return T.subscribe(new _t(b,this.errorFactory))}}class _t extends Ie.L{constructor(b,T){super(b),this.errorFactory=T,this.hasValue=!1}_next(b){this.hasValue=!0,this.destination.next(b)}_complete(){if(this.hasValue)return this.destination.complete();{let b;try{b=this.errorFactory()}catch(T){b=T}this.destination.error(b)}}}function dt(){return new q}var yt=p(158);function ot(_,b){const T=arguments.length>=2;return v=>v.pipe(_?(0,Ve.h)((M,ue)=>_(M,ue,v)):yt.y,(0,x.q)(1),T?te(b):He(()=>new q))}var st=p(9724),_e=p(2420),Q=p(2413);class Te{constructor(b,T,v=!1){this.accumulator=b,this.seed=T,this.hasSeed=v}call(b,T){return T.subscribe(new se(b,this.accumulator,this.seed,this.hasSeed))}}class se extends Ie.L{constructor(b,T,v,M){super(b),this.accumulator=T,this._seed=v,this.hasSeed=M,this.index=0}get seed(){return this._seed}set seed(b){this.hasSeed=!0,this._seed=b}_next(b){if(this.hasSeed)return this._tryNext(b);this.seed=b,this.destination.next(b)}_tryNext(b){const T=this.index++;let v;try{v=this.accumulator(this.seed,b,T)}catch(M){this.destination.error(M)}this.seed=v,this.destination.next(v)}}var Se=p(6310);function N(_){return function(T){return 0===_?(0,U.c)():T.lift(new oe(_))}}class oe{constructor(b){if(this.total=b,this.total<0)throw new Se.W}call(b,T){return T.subscribe(new ye(b,this.total))}}class ye extends Ie.L{constructor(b,T){super(b),this.total=T,this.ring=new Array,this.count=0}_next(b){const T=this.ring,v=this.total,M=this.count++;T.length0){const v=this.count>=this.total?this.total:this.count,M=this.ring;for(let ue=0;ue_.length||"full"===T.pathMatch&&(b.hasChildren()||v.length<_.length))return null;const M={};for(let ue=0;uev[ue]===M)}return _===b}function me(_){return _.length>0?_[_.length-1]:null}function Ye(_){return(0,s.b)(_)?_:(0,i.QGY)(_)?(0,m.D)(Promise.resolve(_)):(0,L.of)(_)}const St={exact:function Xt(_,b,T){if(!Nt(_.segments,b.segments)||!pn(_.segments,b.segments,T)||_.numberOfChildren!==b.numberOfChildren)return!1;for(const v in b.children)if(!_.children[v]||!Xt(_.children[v],b.children[v],T))return!1;return!0},subset:vn},Ft={exact:function Wt(_,b){return Ae(_,b)},subset:function Mt(_,b){return Object.keys(b).length<=Object.keys(_).length&&Object.keys(b).every(T=>F(_[T],b[T]))},ignored:()=>!0};function Bt(_,b,T){return St[T.paths](_.root,b.root,T.matrixParams)&&Ft[T.queryParams](_.queryParams,b.queryParams)&&!("exact"===T.fragment&&_.fragment!==b.fragment)}function vn(_,b,T){return fn(_,b,b.segments,T)}function fn(_,b,T,v){if(_.segments.length>T.length){const M=_.segments.slice(0,T.length);return!(!Nt(M,T)||b.hasChildren()||!pn(M,T,v))}if(_.segments.length===T.length){if(!Nt(_.segments,T)||!pn(_.segments,T,v))return!1;for(const M in b.children)if(!_.children[M]||!vn(_.children[M],b.children[M],v))return!1;return!0}{const M=T.slice(0,_.segments.length),ue=T.slice(_.segments.length);return!!(Nt(_.segments,M)&&pn(_.segments,M,v)&&_.children[Ut])&&fn(_.children[Ut],b,ue,v)}}function pn(_,b,T){return b.every((v,M)=>Ft[T](_[M].parameters,v.parameters))}class En{constructor(b=new un([],{}),T={},v=null){this.root=b,this.queryParams=T,this.fragment=v}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=kn(this.queryParams)),this._queryParamMap}toString(){return en.serialize(this)}}class un{constructor(b,T){this.segments=b,this.children=T,this.parent=null,Object.values(T).forEach(v=>v.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return mn(this)}}class Kn{constructor(b,T){this.path=b,this.parameters=T}get parameterMap(){return this._parameterMap||(this._parameterMap=kn(this.parameters)),this._parameterMap}toString(){return We(this)}}function Nt(_,b){return _.length===b.length&&_.every((T,v)=>T.path===b[v].path)}let ut=(()=>{var _;class b{}return(_=b).\u0275fac=function(v){return new(v||_)},_.\u0275prov=i.Yz7({token:_,factory:function(){return new Ct},providedIn:"root"}),b})();class Ct{parse(b){const T=new pt(b);return new En(T.parseRootSegment(),T.parseQueryParams(),T.parseFragment())}serialize(b){const T=`/${Xn(b.root,!0)}`,v=function Me(_){const b=Object.keys(_).map(T=>{const v=_[T];return Array.isArray(v)?v.map(M=>`${gt(T)}=${gt(M)}`).join("&"):`${gt(T)}=${gt(v)}`}).filter(T=>!!T);return b.length?`?${b.join("&")}`:""}(b.queryParams);return`${T}${v}${"string"==typeof b.fragment?`#${function ve(_){return encodeURI(_)}(b.fragment)}`:""}`}}const en=new Ct;function mn(_){return _.segments.map(b=>We(b)).join("/")}function Xn(_,b){if(!_.hasChildren())return mn(_);if(b){const T=_.children[Ut]?Xn(_.children[Ut],!1):"",v=[];return Object.entries(_.children).forEach(([M,ue])=>{M!==Ut&&v.push(`${M}:${Xn(ue,!1)}`)}),v.length>0?`${T}(${v.join("//")})`:T}{const T=function kt(_,b){let T=[];return Object.entries(_.children).forEach(([v,M])=>{v===Ut&&(T=T.concat(b(M,v)))}),Object.entries(_.children).forEach(([v,M])=>{v!==Ut&&(T=T.concat(b(M,v)))}),T}(_,(v,M)=>M===Ut?[Xn(_.children[Ut],!1)]:[`${M}:${Xn(v,!1)}`]);return 1===Object.keys(_.children).length&&null!=_.children[Ut]?`${mn(_)}/${T[0]}`:`${mn(_)}/(${T.join("//")})`}}function Bn(_){return encodeURIComponent(_).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function gt(_){return Bn(_).replace(/%3B/gi,";")}function Ee(_){return Bn(_).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function de(_){return decodeURIComponent(_)}function G(_){return de(_.replace(/\+/g,"%20"))}function We(_){return`${Ee(_.path)}${function le(_){return Object.keys(_).map(b=>`;${Ee(b)}=${Ee(_[b])}`).join("")}(_.parameters)}`}const Le=/^[^\/()?;#]+/;function A(_){const b=_.match(Le);return b?b[0]:""}const H=/^[^\/()?;=#]+/,I=/^[^=?&#]+/,Oe=/^[^&#]+/;class pt{constructor(b){this.url=b,this.remaining=b}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new un([],{}):new un([],this.parseChildren())}parseQueryParams(){const b={};if(this.consumeOptional("?"))do{this.parseQueryParam(b)}while(this.consumeOptional("&"));return b}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const b=[];for(this.peekStartsWith("(")||b.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),b.push(this.parseSegment());let T={};this.peekStartsWith("/(")&&(this.capture("/"),T=this.parseParens(!0));let v={};return this.peekStartsWith("(")&&(v=this.parseParens(!1)),(b.length>0||Object.keys(T).length>0)&&(v[Ut]=new un(b,T)),v}parseSegment(){const b=A(this.remaining);if(""===b&&this.peekStartsWith(";"))throw new i.vHH(4009,!1);return this.capture(b),new Kn(de(b),this.parseMatrixParams())}parseMatrixParams(){const b={};for(;this.consumeOptional(";");)this.parseParam(b);return b}parseParam(b){const T=function Be(_){const b=_.match(H);return b?b[0]:""}(this.remaining);if(!T)return;this.capture(T);let v="";if(this.consumeOptional("=")){const M=A(this.remaining);M&&(v=M,this.capture(v))}b[de(T)]=de(v)}parseQueryParam(b){const T=function k(_){const b=_.match(I);return b?b[0]:""}(this.remaining);if(!T)return;this.capture(T);let v="";if(this.consumeOptional("=")){const ke=function Qe(_){const b=_.match(Oe);return b?b[0]:""}(this.remaining);ke&&(v=ke,this.capture(v))}const M=G(T),ue=G(v);if(b.hasOwnProperty(M)){let ke=b[M];Array.isArray(ke)||(ke=[ke],b[M]=ke),ke.push(ue)}else b[M]=ue}parseParens(b){const T={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const v=A(this.remaining),M=this.remaining[v.length];if("/"!==M&&")"!==M&&";"!==M)throw new i.vHH(4010,!1);let ue;v.indexOf(":")>-1?(ue=v.slice(0,v.indexOf(":")),this.capture(ue),this.capture(":")):b&&(ue=Ut);const ke=this.parseChildren();T[ue]=1===Object.keys(ke).length?ke[Ut]:new un([],ke),this.consumeOptional("//")}return T}peekStartsWith(b){return this.remaining.startsWith(b)}consumeOptional(b){return!!this.peekStartsWith(b)&&(this.remaining=this.remaining.substring(b.length),!0)}capture(b){if(!this.consumeOptional(b))throw new i.vHH(4011,!1)}}function Et(_){return _.segments.length>0?new un([],{[Ut]:_}):_}function Gt(_){const b={};for(const v of Object.keys(_.children)){const ue=Gt(_.children[v]);if(v===Ut&&0===ue.segments.length&&ue.hasChildren())for(const[ke,ft]of Object.entries(ue.children))b[ke]=ft;else(ue.segments.length>0||ue.hasChildren())&&(b[v]=ue)}return function Pt(_){if(1===_.numberOfChildren&&_.children[Ut]){const b=_.children[Ut];return new un(_.segments.concat(b.segments),b.children)}return _}(new un(_.segments,b))}function Vn(_){return _ instanceof En}function Qn(_){var b;let T;const ue=Et(function v(ke){const ft={};for(const bt of ke.children){const Zt=v(bt);ft[bt.outlet]=Zt}const $t=new un(ke.url,ft);return ke===_&&(T=$t),$t}(_.root));return null!==(b=T)&&void 0!==b?b:ue}function xi(_,b,T,v){let M=_;for(;M.parent;)M=M.parent;if(0===b.length)return $i(M,M,M,T,v);const ue=function di(_){if("string"==typeof _[0]&&1===_.length&&"/"===_[0])return new qn(!0,0,_);let b=0,T=!1;const v=_.reduce((M,ue,ke)=>{if("object"==typeof ue&&null!=ue){if(ue.outlets){const ft={};return Object.entries(ue.outlets).forEach(([$t,bt])=>{ft[$t]="string"==typeof bt?bt.split("/"):bt}),[...M,{outlets:ft}]}if(ue.segmentPath)return[...M,ue.segmentPath]}return"string"!=typeof ue?[...M,ue]:0===ke?(ue.split("/").forEach((ft,$t)=>{0==$t&&"."===ft||(0==$t&&""===ft?T=!0:".."===ft?b++:""!=ft&&M.push(ft))}),M):[...M,ue]},[]);return new qn(T,b,v)}(b);if(ue.toRoot())return $i(M,M,new un([],{}),T,v);const ke=function Wi(_,b,T){if(_.isAbsolute)return new Oi(b,!0,0);if(!T)return new Oi(b,!1,NaN);if(null===T.parent)return new Oi(T,!0,0);const v=ri(_.commands[0])?0:1;return function Ze(_,b,T){let v=_,M=b,ue=T;for(;ue>M;){if(ue-=M,v=v.parent,!v)throw new i.vHH(4005,!1);M=v.segments.length}return new Oi(v,!1,M-ue)}(T,T.segments.length-1+v,_.numberOfDoubleDots)}(ue,M,_),ft=ke.processChildren?E(ke.segmentGroup,ke.index,ue.commands):it(ke.segmentGroup,ke.index,ue.commands);return $i(M,ke.segmentGroup,ft,T,v)}function ri(_){return"object"==typeof _&&null!=_&&!_.outlets&&!_.segmentPath}function ei(_){return"object"==typeof _&&null!=_&&_.outlets}function $i(_,b,T,v,M){let ke,ue={};v&&Object.entries(v).forEach(([$t,bt])=>{ue[$t]=Array.isArray(bt)?bt.map(Zt=>`${Zt}`):`${bt}`}),ke=_===b?T:Ii(_,b,T);const ft=Et(Gt(ke));return new En(ft,ue,M)}function Ii(_,b,T){const v={};return Object.entries(_.children).forEach(([M,ue])=>{v[M]=ue===b?T:Ii(ue,b,T)}),new un(_.segments,v)}class qn{constructor(b,T,v){if(this.isAbsolute=b,this.numberOfDoubleDots=T,this.commands=v,b&&v.length>0&&ri(v[0]))throw new i.vHH(4003,!1);const M=v.find(ei);if(M&&M!==me(v))throw new i.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Oi{constructor(b,T,v){this.segmentGroup=b,this.processChildren=T,this.index=v}}function it(_,b,T){if(_||(_=new un([],{})),0===_.segments.length&&_.hasChildren())return E(_,b,T);const v=function j(_,b,T){let v=0,M=b;const ue={match:!1,pathIndex:0,commandIndex:0};for(;M<_.segments.length;){if(v>=T.length)return ue;const ke=_.segments[M],ft=T[v];if(ei(ft))break;const $t=`${ft}`,bt=v0&&void 0===$t)break;if($t&&bt&&"object"==typeof bt&&void 0===bt.outlets){if(!hn($t,bt,ke))return ue;v+=2}else{if(!hn($t,{},ke))return ue;v++}M++}return{match:!0,pathIndex:M,commandIndex:v}}(_,b,T),M=T.slice(v.commandIndex);if(v.match&&v.pathIndex<_.segments.length){const ue=new un(_.segments.slice(0,v.pathIndex),{});return ue.children[Ut]=new un(_.segments.slice(v.pathIndex),_.children),E(ue,0,M)}return v.match&&0===M.length?new un(_.segments,{}):v.match&&!_.hasChildren()?fe(_,b,T):v.match?E(_,0,M):fe(_,b,T)}function E(_,b,T){if(0===T.length)return new un(_.segments,{});{const v=function Dt(_){return ei(_[0])?_[0].outlets:{[Ut]:_}}(T),M={};if(Object.keys(v).some(ue=>ue!==Ut)&&_.children[Ut]&&1===_.numberOfChildren&&0===_.children[Ut].segments.length){const ue=E(_.children[Ut],b,T);return new un(_.segments,ue.children)}return Object.entries(v).forEach(([ue,ke])=>{"string"==typeof ke&&(ke=[ke]),null!==ke&&(M[ue]=it(_.children[ue],b,ke))}),Object.entries(_.children).forEach(([ue,ke])=>{void 0===v[ue]&&(M[ue]=ke)}),new un(_.segments,M)}}function fe(_,b,T){const v=_.segments.slice(0,b);let M=0;for(;M{"string"==typeof v&&(v=[v]),null!==v&&(b[T]=fe(new un([],{}),0,v))}),b}function Ot(_){const b={};return Object.entries(_).forEach(([T,v])=>b[T]=`${v}`),b}function hn(_,b,T){return _==T.path&&Ae(b,T.parameters)}const ai="imperative";class je{constructor(b,T){this.id=b,this.url=T}}class qt extends je{constructor(b,T,v="imperative",M=null){super(b,T),this.type=0,this.navigationTrigger=v,this.restoredState=M}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class at extends je{constructor(b,T,v){super(b,T),this.urlAfterRedirects=v,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class S extends je{constructor(b,T,v,M){super(b,T),this.reason=v,this.code=M,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Z extends je{constructor(b,T,v,M){super(b,T),this.reason=v,this.code=M,this.type=16}}class ze extends je{constructor(b,T,v,M){super(b,T),this.error=v,this.target=M,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class rt extends je{constructor(b,T,v,M){super(b,T),this.urlAfterRedirects=v,this.state=M,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Rt extends je{constructor(b,T,v,M){super(b,T),this.urlAfterRedirects=v,this.state=M,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class tn extends je{constructor(b,T,v,M,ue){super(b,T),this.urlAfterRedirects=v,this.state=M,this.shouldActivate=ue,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Kt extends je{constructor(b,T,v,M){super(b,T),this.urlAfterRedirects=v,this.state=M,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Jt extends je{constructor(b,T,v,M){super(b,T),this.urlAfterRedirects=v,this.state=M,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ht{constructor(b){this.route=b,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class ln{constructor(b){this.route=b,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class xn{constructor(b){this.snapshot=b,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class si{constructor(b){this.snapshot=b,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class zn{constructor(b){this.snapshot=b,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class cn{constructor(b){this.snapshot=b,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class bn{constructor(b,T,v){this.routerEvent=b,this.position=T,this.anchor=v,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class mi{}class Si{constructor(b){this.url=b}}class ui{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Ri,this.attachRef=null}}let Ri=(()=>{var _;class b{constructor(){this.contexts=new Map}onChildOutletCreated(v,M){const ue=this.getOrCreateContext(v);ue.outlet=M,this.contexts.set(v,ue)}onChildOutletDestroyed(v){const M=this.getContext(v);M&&(M.outlet=null,M.attachRef=null)}onOutletDeactivated(){const v=this.contexts;return this.contexts=new Map,v}onOutletReAttached(v){this.contexts=v}getOrCreateContext(v){let M=this.getContext(v);return M||(M=new ui,this.contexts.set(v,M)),M}getContext(v){return this.contexts.get(v)||null}}return(_=b).\u0275fac=function(v){return new(v||_)},_.\u0275prov=i.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),b})();class Ci{constructor(b){this._root=b}get root(){return this._root.value}parent(b){const T=this.pathFromRoot(b);return T.length>1?T[T.length-2]:null}children(b){const T=ds(b,this._root);return T?T.children.map(v=>v.value):[]}firstChild(b){const T=ds(b,this._root);return T&&T.children.length>0?T.children[0].value:null}siblings(b){const T=Cr(b,this._root);return T.length<2?[]:T[T.length-2].children.map(M=>M.value).filter(M=>M!==b)}pathFromRoot(b){return Cr(b,this._root).map(T=>T.value)}}function ds(_,b){if(_===b.value)return b;for(const T of b.children){const v=ds(_,T);if(v)return v}return null}function Cr(_,b){if(_===b.value)return[b];for(const T of b.children){const v=Cr(_,T);if(v.length)return v.unshift(b),v}return[]}class ti{constructor(b,T){this.value=b,this.children=T}toString(){return`TreeNode(${this.value})`}}function sn(_){const b={};return _&&_.children.forEach(T=>b[T.value.outlet]=T),b}class Nn extends Ci{constructor(b,T){super(b),this.snapshot=T,Fr(this,b)}toString(){return this.snapshot.toString()}}function gi(_,b){const T=function ki(_,b){const ke=new vi([],{},{},"",{},Ut,b,null,{});return new nr("",new ti(ke,[]))}(0,b),v=new f.X([new Kn("",{})]),M=new f.X({}),ue=new f.X({}),ke=new f.X({}),ft=new f.X(""),$t=new Zi(v,M,ke,ft,ue,Ut,b,T.root);return $t.snapshot=T.root,new Nn(new ti($t,[]),T)}class Zi{constructor(b,T,v,M,ue,ke,ft,$t){var bt,Zt;this.urlSubject=b,this.paramsSubject=T,this.queryParamsSubject=v,this.fragmentSubject=M,this.dataSubject=ue,this.outlet=ke,this.component=ft,this._futureSnapshot=$t,this.title=null!==(bt=null===(Zt=this.dataSubject)||void 0===Zt?void 0:Zt.pipe((0,ie.U)(Cn=>Cn[Rn])))&&void 0!==bt?bt:(0,L.of)(void 0),this.url=b,this.params=T,this.queryParams=v,this.fragment=M,this.data=ue}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,ie.U)(b=>kn(b)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,ie.U)(b=>kn(b)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function wi(_,b="emptyOnly"){const T=_.pathFromRoot;let v=0;if("always"!==b)for(v=T.length-1;v>=1;){const M=T[v],ue=T[v-1];if(M.routeConfig&&""===M.routeConfig.path)v--;else{if(ue.component)break;v--}}return function us(_){return _.reduce((b,T)=>{var v;return{params:{...b.params,...T.params},data:{...b.data,...T.data},resolve:{...T.data,...b.resolve,...null===(v=T.routeConfig)||void 0===v?void 0:v.data,...T._resolvedData}}},{params:{},data:{},resolve:{}})}(T.slice(v))}class vi{get title(){var b;return null===(b=this.data)||void 0===b?void 0:b[Rn]}constructor(b,T,v,M,ue,ke,ft,$t,bt){this.url=b,this.params=T,this.queryParams=v,this.fragment=M,this.data=ue,this.outlet=ke,this.component=ft,this.routeConfig=$t,this._resolve=bt}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=kn(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=kn(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(v=>v.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class nr extends Ci{constructor(b,T){super(T),this.url=b,Fr(this,T)}toString(){return Dn(this._root)}}function Fr(_,b){b.value._routerState=_,b.children.forEach(T=>Fr(_,T))}function Dn(_){const b=_.children.length>0?` { ${_.children.map(Dn).join(", ")} } `:"";return`${_.value}${b}`}function ur(_){if(_.snapshot){const b=_.snapshot,T=_._futureSnapshot;_.snapshot=T,Ae(b.queryParams,T.queryParams)||_.queryParamsSubject.next(T.queryParams),b.fragment!==T.fragment&&_.fragmentSubject.next(T.fragment),Ae(b.params,T.params)||_.paramsSubject.next(T.params),function z(_,b){if(_.length!==b.length)return!1;for(let T=0;T<_.length;++T)if(!Ae(_[T],b[T]))return!1;return!0}(b.url,T.url)||_.urlSubject.next(T.url),Ae(b.data,T.data)||_.dataSubject.next(T.data)}else _.snapshot=_._futureSnapshot,_.dataSubject.next(_._futureSnapshot.data)}function Nr(_,b){const T=Ae(_.params,b.params)&&function mt(_,b){return Nt(_,b)&&_.every((T,v)=>Ae(T.parameters,b[v].parameters))}(_.url,b.url);return T&&!(!_.parent!=!b.parent)&&(!_.parent||Nr(_.parent,b.parent))}let hr=(()=>{var _;class b{constructor(){this.activated=null,this._activatedRoute=null,this.name=Ut,this.activateEvents=new i.vpe,this.deactivateEvents=new i.vpe,this.attachEvents=new i.vpe,this.detachEvents=new i.vpe,this.parentContexts=(0,i.f3M)(Ri),this.location=(0,i.f3M)(i.s_b),this.changeDetector=(0,i.f3M)(i.sBO),this.environmentInjector=(0,i.f3M)(i.lqb),this.inputBinder=(0,i.f3M)(qi,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(v){if(v.name){const{firstChange:M,previousValue:ue}=v.name;if(M)return;this.isTrackedInParentContexts(ue)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(ue)),this.initializeOutletWithName()}}ngOnDestroy(){var v;this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),null===(v=this.inputBinder)||void 0===v||v.unsubscribeFromRouteData(this)}isTrackedInParentContexts(v){var M;return(null===(M=this.parentContexts.getContext(v))||void 0===M?void 0:M.outlet)===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const v=this.parentContexts.getContext(this.name);null!=v&&v.route&&(v.attachRef?this.attach(v.attachRef,v.route):this.activateWith(v.route,v.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new i.vHH(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new i.vHH(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new i.vHH(4012,!1);this.location.detach();const v=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(v.instance),v}attach(v,M){var ue;this.activated=v,this._activatedRoute=M,this.location.insert(v.hostView),null===(ue=this.inputBinder)||void 0===ue||ue.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(v.instance)}deactivate(){if(this.activated){const v=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(v)}}activateWith(v,M){var ue;if(this.isActivated)throw new i.vHH(4013,!1);this._activatedRoute=v;const ke=this.location,$t=v.snapshot.component,bt=this.parentContexts.getOrCreateContext(this.name).children,Zt=new Ti(v,bt,ke.injector);this.activated=ke.createComponent($t,{index:ke.length,injector:Zt,environmentInjector:null!=M?M:this.environmentInjector}),this.changeDetector.markForCheck(),null===(ue=this.inputBinder)||void 0===ue||ue.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return(_=b).\u0275fac=function(v){return new(v||_)},_.\u0275dir=i.lG2({type:_,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[i.TTD]}),b})();class Ti{constructor(b,T,v){this.route=b,this.childContexts=T,this.parent=v}get(b,T){return b===Zi?this.route:b===Ri?this.childContexts:this.parent.get(b,T)}}const qi=new i.OlP("");let Lr=(()=>{var _;class b{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(v){this.unsubscribeFromRouteData(v),this.subscribeToRouteData(v)}unsubscribeFromRouteData(v){var M;null===(M=this.outletDataSubscriptions.get(v))||void 0===M||M.unsubscribe(),this.outletDataSubscriptions.delete(v)}subscribeToRouteData(v){const{activatedRoute:M}=v,ue=(0,W.aj)([M.queryParams,M.params,M.data]).pipe((0,ee.w)(([ke,ft,$t],bt)=>($t={...ke,...ft,...$t},0===bt?(0,L.of)($t):Promise.resolve($t)))).subscribe(ke=>{if(!v.isActivated||!v.activatedComponentRef||v.activatedRoute!==M||null===M.component)return void this.unsubscribeFromRouteData(v);const ft=(0,i.qFp)(M.component);if(ft)for(const{templateName:$t}of ft.inputs)v.activatedComponentRef.setInput($t,ke[$t]);else this.unsubscribeFromRouteData(v)});this.outletDataSubscriptions.set(v,ue)}}return(_=b).\u0275fac=function(v){return new(v||_)},_.\u0275prov=i.Yz7({token:_,factory:_.\u0275fac}),b})();function Tr(_,b,T){if(T&&_.shouldReuseRoute(b.value,T.value.snapshot)){const v=T.value;v._futureSnapshot=b.value;const M=function Qr(_,b,T){return b.children.map(v=>{for(const M of T.children)if(_.shouldReuseRoute(v.value,M.value.snapshot))return Tr(_,v,M);return Tr(_,v)})}(_,b,T);return new ti(v,M)}{if(_.shouldAttach(b.value)){const ue=_.retrieve(b.value);if(null!==ue){const ke=ue.route;return ke.value._futureSnapshot=b.value,ke.children=b.children.map(ft=>Tr(_,ft)),ke}}const v=function Yr(_){return new Zi(new f.X(_.url),new f.X(_.params),new f.X(_.queryParams),new f.X(_.fragment),new f.X(_.data),_.outlet,_.component,_)}(b.value),M=b.children.map(ue=>Tr(_,ue));return new ti(v,M)}}const ir="ngNavigationCancelingError";function Ar(_,b){const{redirectTo:T,navigationBehaviorOptions:v}=Vn(b)?{redirectTo:b,navigationBehaviorOptions:void 0}:b,M=pr(!1,0,b);return M.url=T,M.navigationBehaviorOptions=v,M}function pr(_,b,T){const v=new Error("NavigationCancelingError: "+(_||""));return v[ir]=!0,v.cancellationCode=b,T&&(v.url=T),v}function zr(_){return _&&_[ir]}let bs=(()=>{var _;class b{}return(_=b).\u0275fac=function(v){return new(v||_)},_.\u0275cmp=i.Xpm({type:_,selectors:[["ng-component"]],standalone:!0,features:[i.jDz],decls:1,vars:0,template:function(v,M){1&v&&i._UZ(0,"router-outlet")},dependencies:[hr],encapsulation:2}),b})();function Zr(_){const b=_.children&&_.children.map(Zr),T=b?{..._,children:b}:{..._};return!T.component&&!T.loadComponent&&(b||T.loadChildren)&&T.outlet&&T.outlet!==Ut&&(T.component=bs),T}function Ui(_){return _.outlet||Ut}function Xi(_){var b;if(!_)return null;if(null!==(b=_.routeConfig)&&void 0!==b&&b._injector)return _.routeConfig._injector;for(let T=_.parent;T;T=T.parent){const v=T.routeConfig;if(null!=v&&v._loadedInjector)return v._loadedInjector;if(null!=v&&v._injector)return v._injector}return null}class io{constructor(b,T,v,M,ue){this.routeReuseStrategy=b,this.futureState=T,this.currState=v,this.forwardEvent=M,this.inputBindingEnabled=ue}activate(b){const T=this.futureState._root,v=this.currState?this.currState._root:null;this.deactivateChildRoutes(T,v,b),ur(this.futureState.root),this.activateChildRoutes(T,v,b)}deactivateChildRoutes(b,T,v){const M=sn(T);b.children.forEach(ue=>{const ke=ue.value.outlet;this.deactivateRoutes(ue,M[ke],v),delete M[ke]}),Object.values(M).forEach(ue=>{this.deactivateRouteAndItsChildren(ue,v)})}deactivateRoutes(b,T,v){const M=b.value,ue=T?T.value:null;if(M===ue)if(M.component){const ke=v.getContext(M.outlet);ke&&this.deactivateChildRoutes(b,T,ke.children)}else this.deactivateChildRoutes(b,T,v);else ue&&this.deactivateRouteAndItsChildren(T,v)}deactivateRouteAndItsChildren(b,T){b.value.component&&this.routeReuseStrategy.shouldDetach(b.value.snapshot)?this.detachAndStoreRouteSubtree(b,T):this.deactivateRouteAndOutlet(b,T)}detachAndStoreRouteSubtree(b,T){const v=T.getContext(b.value.outlet),M=v&&b.value.component?v.children:T,ue=sn(b);for(const ke of Object.keys(ue))this.deactivateRouteAndItsChildren(ue[ke],M);if(v&&v.outlet){const ke=v.outlet.detach(),ft=v.children.onOutletDeactivated();this.routeReuseStrategy.store(b.value.snapshot,{componentRef:ke,route:b,contexts:ft})}}deactivateRouteAndOutlet(b,T){const v=T.getContext(b.value.outlet),M=v&&b.value.component?v.children:T,ue=sn(b);for(const ke of Object.keys(ue))this.deactivateRouteAndItsChildren(ue[ke],M);v&&(v.outlet&&(v.outlet.deactivate(),v.children.onOutletDeactivated()),v.attachRef=null,v.route=null)}activateChildRoutes(b,T,v){const M=sn(T);b.children.forEach(ue=>{this.activateRoutes(ue,M[ue.value.outlet],v),this.forwardEvent(new cn(ue.value.snapshot))}),b.children.length&&this.forwardEvent(new si(b.value.snapshot))}activateRoutes(b,T,v){const M=b.value,ue=T?T.value:null;if(ur(M),M===ue)if(M.component){const ke=v.getOrCreateContext(M.outlet);this.activateChildRoutes(b,T,ke.children)}else this.activateChildRoutes(b,T,v);else if(M.component){const ke=v.getOrCreateContext(M.outlet);if(this.routeReuseStrategy.shouldAttach(M.snapshot)){const ft=this.routeReuseStrategy.retrieve(M.snapshot);this.routeReuseStrategy.store(M.snapshot,null),ke.children.onOutletReAttached(ft.contexts),ke.attachRef=ft.componentRef,ke.route=ft.route.value,ke.outlet&&ke.outlet.attach(ft.componentRef,ft.route.value),ur(ft.route.value),this.activateChildRoutes(b,null,ke.children)}else{const ft=Xi(M.snapshot);ke.attachRef=null,ke.route=M,ke.injector=ft,ke.outlet&&ke.outlet.activateWith(M,ke.injector),this.activateChildRoutes(b,null,ke.children)}}else this.activateChildRoutes(b,null,v)}}class Hs{constructor(b){this.path=b,this.route=this.path[this.path.length-1]}}class ys{constructor(b,T){this.component=b,this.route=T}}function ro(_,b,T){const v=_._root;return Ce(v,b?b._root:null,T,[v.value])}function w(_,b){const T=Symbol(),v=b.get(_,T);return v===T?"function"!=typeof _||(0,i.Z0I)(_)?b.get(_):_:v}function Ce(_,b,T,v,M={canDeactivateChecks:[],canActivateChecks:[]}){const ue=sn(b);return _.children.forEach(ke=>{(function V(_,b,T,v,M={canDeactivateChecks:[],canActivateChecks:[]}){const ue=_.value,ke=b?b.value:null,ft=T?T.getContext(_.value.outlet):null;if(ke&&ue.routeConfig===ke.routeConfig){const $t=function xe(_,b,T){if("function"==typeof T)return T(_,b);switch(T){case"pathParamsChange":return!Nt(_.url,b.url);case"pathParamsOrQueryParamsChange":return!Nt(_.url,b.url)||!Ae(_.queryParams,b.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Nr(_,b)||!Ae(_.queryParams,b.queryParams);default:return!Nr(_,b)}}(ke,ue,ue.routeConfig.runGuardsAndResolvers);$t?M.canActivateChecks.push(new Hs(v)):(ue.data=ke.data,ue._resolvedData=ke._resolvedData),Ce(_,b,ue.component?ft?ft.children:null:T,v,M),$t&&ft&&ft.outlet&&ft.outlet.isActivated&&M.canDeactivateChecks.push(new ys(ft.outlet.component,ke))}else ke&&jt(b,ft,M),M.canActivateChecks.push(new Hs(v)),Ce(_,null,ue.component?ft?ft.children:null:T,v,M)})(ke,ue[ke.value.outlet],T,v.concat([ke.value]),M),delete ue[ke.value.outlet]}),Object.entries(ue).forEach(([ke,ft])=>jt(ft,T.getContext(ke),M)),M}function jt(_,b,T){const v=sn(_),M=_.value;Object.entries(v).forEach(([ue,ke])=>{jt(ke,M.component?b?b.children.getContext(ue):null:b,T)}),T.canDeactivateChecks.push(new ys(M.component&&b&&b.outlet&&b.outlet.isActivated?b.outlet.component:null,M))}function On(_){return"function"==typeof _}function Is(_){return _ instanceof q||"EmptyError"===(null==_?void 0:_.name)}const qr=Symbol("INITIAL_VALUE");function mr(){return(0,ee.w)(_=>(0,W.aj)(_.map(b=>b.pipe((0,x.q)(1),(0,X.O)(qr)))).pipe((0,ie.U)(b=>{for(const T of b)if(!0!==T){if(T===qr)return qr;if(!1===T||T instanceof En)return T}return!0}),(0,Ve.h)(b=>b!==qr),(0,x.q)(1)))}function Rs(_){return(0,ne.z)((0,_e.b)(b=>{if(Vn(b))throw Ar(0,b)}),(0,ie.U)(b=>!0===b))}class Ps{constructor(b){this.segmentGroup=b||null}}class Mr{constructor(b){this.urlTree=b}}function kr(_){return(0,he._)(new Ps(_))}function Eo(_){return(0,he._)(new Mr(_))}class ao{constructor(b,T){this.urlSerializer=b,this.urlTree=T}noMatchError(b){return new i.vHH(4002,!1)}lineralizeSegments(b,T){let v=[],M=T.root;for(;;){if(v=v.concat(M.segments),0===M.numberOfChildren)return(0,L.of)(v);if(M.numberOfChildren>1||!M.children[Ut])return(0,he._)(new i.vHH(4e3,!1));M=M.children[Ut]}}applyRedirectCommands(b,T,v){return this.applyRedirectCreateUrlTree(T,this.urlSerializer.parse(T),b,v)}applyRedirectCreateUrlTree(b,T,v,M){const ue=this.createSegmentGroup(b,T.root,v,M);return new En(ue,this.createQueryParams(T.queryParams,this.urlTree.queryParams),T.fragment)}createQueryParams(b,T){const v={};return Object.entries(b).forEach(([M,ue])=>{if("string"==typeof ue&&ue.startsWith(":")){const ft=ue.substring(1);v[M]=T[ft]}else v[M]=ue}),v}createSegmentGroup(b,T,v,M){const ue=this.createSegments(b,T.segments,v,M);let ke={};return Object.entries(T.children).forEach(([ft,$t])=>{ke[ft]=this.createSegmentGroup(b,$t,v,M)}),new un(ue,ke)}createSegments(b,T,v,M){return T.map(ue=>ue.path.startsWith(":")?this.findPosParam(b,ue,M):this.findOrReturn(ue,v))}findPosParam(b,T,v){const M=v[T.path.substring(1)];if(!M)throw new i.vHH(4001,!1);return M}findOrReturn(b,T){let v=0;for(const M of T){if(M.path===b.path)return T.splice(v),M;v++}return b}}const Ds={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Cs(_,b,T,v,M){const ue=lo(_,b,T);return ue.matched?(v=function xs(_,b){var T;return _.providers&&!_._injector&&(_._injector=(0,i.MMx)(_.providers,b,`Route: ${_.path}`)),null!==(T=_._injector)&&void 0!==T?T:b}(b,v),function $r(_,b,T,v){const M=b.canMatch;if(!M||0===M.length)return(0,L.of)(!0);const ue=M.map(ke=>{const ft=w(ke,_);return Ye(function No(_){return _&&On(_.canMatch)}(ft)?ft.canMatch(b,T):_.runInContext(()=>ft(b,T)))});return(0,L.of)(ue).pipe(mr(),Rs())}(v,b,T).pipe((0,ie.U)(ke=>!0===ke?ue:{...Ds}))):(0,L.of)(ue)}function lo(_,b,T){var v,M;if(""===b.path)return"full"===b.pathMatch&&(_.hasChildren()||T.length>0)?{...Ds}:{matched:!0,consumedSegments:[],remainingSegments:T,parameters:{},positionalParamSegments:{}};const ke=(b.matcher||tt)(T,_,b);if(!ke)return{...Ds};const ft={};Object.entries(null!==(v=ke.posParams)&&void 0!==v?v:{}).forEach(([bt,Zt])=>{ft[bt]=Zt.path});const $t=ke.consumed.length>0?{...ft,...ke.consumed[ke.consumed.length-1].parameters}:ft;return{matched:!0,consumedSegments:ke.consumed,remainingSegments:T.slice(ke.consumed.length),parameters:$t,positionalParamSegments:null!==(M=ke.posParams)&&void 0!==M?M:{}}}function ko(_,b,T,v){return T.length>0&&function Fs(_,b,T){return T.some(v=>Ts(_,b,v)&&Ui(v)!==Ut)}(_,T,v)?{segmentGroup:new un(b,Do(v,new un(T,_.children))),slicedSegments:[]}:0===T.length&&function na(_,b,T){return T.some(v=>Ts(_,b,v))}(_,T,v)?{segmentGroup:new un(_.segments,co(_,0,T,v,_.children)),slicedSegments:T}:{segmentGroup:new un(_.segments,_.children),slicedSegments:T}}function co(_,b,T,v,M){const ue={};for(const ke of v)if(Ts(_,T,ke)&&!M[Ui(ke)]){const ft=new un([],{});ue[Ui(ke)]=ft}return{...M,...ue}}function Do(_,b){const T={};T[Ut]=b;for(const v of _)if(""===v.path&&Ui(v)!==Ut){const M=new un([],{});T[Ui(v)]=M}return T}function Ts(_,b,T){return(!(_.hasChildren()||b.length>0)||"full"!==T.pathMatch)&&""===T.path}class uo{constructor(b,T,v,M,ue,ke,ft){this.injector=b,this.configLoader=T,this.rootComponentType=v,this.config=M,this.urlTree=ue,this.paramsInheritanceStrategy=ke,this.urlSerializer=ft,this.allowRedirects=!0,this.applyRedirects=new ao(this.urlSerializer,this.urlTree)}noMatchError(b){return new i.vHH(4002,!1)}recognize(){const b=ko(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,b,Ut).pipe((0,Q.K)(T=>{if(T instanceof Mr)return this.allowRedirects=!1,this.urlTree=T.urlTree,this.match(T.urlTree);throw T instanceof Ps?this.noMatchError(T):T}),(0,ie.U)(T=>{const v=new vi([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Ut,this.rootComponentType,null,{}),M=new ti(v,T),ue=new nr("",M),ke=function Tn(_,b,T=null,v=null){return xi(Qn(_),b,T,v)}(v,[],this.urlTree.queryParams,this.urlTree.fragment);return ke.queryParams=this.urlTree.queryParams,ue.url=this.urlSerializer.serialize(ke),this.inheritParamsAndData(ue._root),{state:ue,tree:ke}}))}match(b){return this.processSegmentGroup(this.injector,this.config,b.root,Ut).pipe((0,Q.K)(v=>{throw v instanceof Ps?this.noMatchError(v):v}))}inheritParamsAndData(b){const T=b.value,v=wi(T,this.paramsInheritanceStrategy);T.params=Object.freeze(v.params),T.data=Object.freeze(v.data),b.children.forEach(M=>this.inheritParamsAndData(M))}processSegmentGroup(b,T,v,M){return 0===v.segments.length&&v.hasChildren()?this.processChildren(b,T,v):this.processSegment(b,T,v,v.segments,M,!0)}processChildren(b,T,v){const M=[];for(const ue of Object.keys(v.children))"primary"===ue?M.unshift(ue):M.push(ue);return(0,m.D)(M).pipe((0,st.b)(ue=>{const ke=v.children[ue],ft=function yi(_,b){const T=_.filter(v=>Ui(v)===b);return T.push(..._.filter(v=>Ui(v)!==b)),T}(T,ue);return this.processSegmentGroup(b,ft,ke,ue)}),function qe(_,b){let T=!1;return arguments.length>=2&&(T=!0),function(M){return M.lift(new Te(_,b,T))}}((ue,ke)=>(ue.push(...ke),ue)),te(null),function Fe(_,b){const T=arguments.length>=2;return v=>v.pipe(_?(0,Ve.h)((M,ue)=>_(M,ue,v)):yt.y,N(1),T?te(b):He(()=>new q))}(),(0,we.zg)(ue=>{if(null===ue)return kr(v);const ke=Jr(ue);return function dl(_){_.sort((b,T)=>b.value.outlet===Ut?-1:T.value.outlet===Ut?1:b.value.outlet.localeCompare(T.value.outlet))}(ke),(0,L.of)(ke)}))}processSegment(b,T,v,M,ue,ke){return(0,m.D)(T).pipe((0,st.b)(ft=>{var $t;return this.processSegmentAgainstRoute(null!==($t=ft._injector)&&void 0!==$t?$t:b,T,ft,v,M,ue,ke).pipe((0,Q.K)(bt=>{if(bt instanceof Ps)return(0,L.of)(null);throw bt}))}),ot(ft=>!!ft),(0,Q.K)(ft=>{if(Is(ft))return function Bo(_,b,T){return 0===b.length&&!_.children[T]}(v,M,ue)?(0,L.of)([]):kr(v);throw ft}))}processSegmentAgainstRoute(b,T,v,M,ue,ke,ft){return function ia(_,b,T,v){return!!(Ui(_)===v||v!==Ut&&Ts(b,T,_))&&("**"===_.path||lo(b,_,T).matched)}(v,M,ue,ke)?void 0===v.redirectTo?this.matchSegmentAgainstRoute(b,M,v,ue,ke,ft):ft&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(b,M,T,v,ue,ke):kr(M):kr(M)}expandSegmentAgainstRouteUsingRedirect(b,T,v,M,ue,ke){return"**"===M.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(b,v,M,ke):this.expandRegularSegmentAgainstRouteUsingRedirect(b,T,v,M,ue,ke)}expandWildCardWithParamsAgainstRouteUsingRedirect(b,T,v,M){const ue=this.applyRedirects.applyRedirectCommands([],v.redirectTo,{});return v.redirectTo.startsWith("/")?Eo(ue):this.applyRedirects.lineralizeSegments(v,ue).pipe((0,we.zg)(ke=>{const ft=new un(ke,{});return this.processSegment(b,T,ft,ke,M,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(b,T,v,M,ue,ke){const{matched:ft,consumedSegments:$t,remainingSegments:bt,positionalParamSegments:Zt}=lo(T,M,ue);if(!ft)return kr(T);const Cn=this.applyRedirects.applyRedirectCommands($t,M.redirectTo,Zt);return M.redirectTo.startsWith("/")?Eo(Cn):this.applyRedirects.lineralizeSegments(M,Cn).pipe((0,we.zg)(Un=>this.processSegment(b,v,T,Un.concat(bt),ke,!1)))}matchSegmentAgainstRoute(b,T,v,M,ue,ke){let ft;if("**"===v.path){var $t,bt;const Zt=M.length>0?me(M).parameters:{},Cn=new vi(M,Zt,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,y(v),Ui(v),null!==($t=null!==(bt=v.component)&&void 0!==bt?bt:v._loadedComponent)&&void 0!==$t?$t:null,v,P(v));ft=(0,L.of)({snapshot:Cn,consumedSegments:[],remainingSegments:[]}),T.children={}}else ft=Cs(T,v,M,b).pipe((0,ie.U)(({matched:Zt,consumedSegments:Cn,remainingSegments:Un,parameters:er})=>{var fi,Qi;return Zt?{snapshot:new vi(Cn,er,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,y(v),Ui(v),null!==(fi=null!==(Qi=v.component)&&void 0!==Qi?Qi:v._loadedComponent)&&void 0!==fi?fi:null,v,P(v)),consumedSegments:Cn,remainingSegments:Un}:null}));return ft.pipe((0,ee.w)(Zt=>{var Cn;return null===Zt?kr(T):(b=null!==(Cn=v._injector)&&void 0!==Cn?Cn:b,this.getChildConfig(b,v,M).pipe((0,ee.w)(({routes:Un})=>{var er;const fi=null!==(er=v._loadedInjector)&&void 0!==er?er:b,{snapshot:Qi,consumedSegments:Ir,remainingSegments:$s}=Zt,{segmentGroup:Ws,slicedSegments:As}=ko(T,Ir,$s,Un);if(0===As.length&&Ws.hasChildren())return this.processChildren(fi,Un,Ws).pipe((0,ie.U)(So=>null===So?null:[new ti(Qi,So)]));if(0===Un.length&&0===As.length)return(0,L.of)([new ti(Qi,[])]);const rs=Ui(v)===ue;return this.processSegment(fi,Un,Ws,As,rs?Ut:ue,!0).pipe((0,ie.U)(So=>[new ti(Qi,So)]))})))}))}getChildConfig(b,T,v){return T.children?(0,L.of)({routes:T.children,injector:b}):T.loadChildren?void 0!==T._loadedRoutes?(0,L.of)({routes:T._loadedRoutes,injector:T._loadedInjector}):function oo(_,b,T,v){const M=b.canLoad;if(void 0===M||0===M.length)return(0,L.of)(!0);const ue=M.map(ke=>{const ft=w(ke,_);return Ye(function wr(_){return _&&On(_.canLoad)}(ft)?ft.canLoad(b,T):_.runInContext(()=>ft(b,T)))});return(0,L.of)(ue).pipe(mr(),Rs())}(b,T,v).pipe((0,we.zg)(M=>M?this.configLoader.loadChildren(b,T).pipe((0,_e.b)(ue=>{T._loadedRoutes=ue.routes,T._loadedInjector=ue.injector})):function Lo(_){return(0,he._)(pr(!1,3))}())):(0,L.of)({routes:[],injector:b})}}function ra(_){const b=_.value.routeConfig;return b&&""===b.path}function Jr(_){const b=[],T=new Set;for(const v of _){if(!ra(v)){b.push(v);continue}const M=b.find(ue=>v.value.routeConfig===ue.value.routeConfig);void 0!==M?(M.children.push(...v.children),T.add(M)):b.push(v)}for(const v of T){const M=Jr(v.children);b.push(new ti(v.value,M))}return b.filter(v=>!T.has(v))}function y(_){return _.data||{}}function P(_){return _.resolve||{}}function Wn(_){return"string"==typeof _.title||null===_.title}function Zn(_){return(0,ee.w)(b=>{const T=_(b);return T?(0,m.D)(T).pipe((0,ie.U)(()=>b)):(0,L.of)(b)})}const $n=new i.OlP("ROUTES");let Hn=(()=>{var _;class b{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,i.f3M)(i.Sil)}loadComponent(v){if(this.componentLoaders.get(v))return this.componentLoaders.get(v);if(v._loadedComponent)return(0,L.of)(v._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(v);const M=Ye(v.loadComponent()).pipe((0,ie.U)(hi),(0,_e.b)(ke=>{this.onLoadEndListener&&this.onLoadEndListener(v),v._loadedComponent=ke}),(0,At.x)(()=>{this.componentLoaders.delete(v)})),ue=new $e.c(M,()=>new $.xQ).pipe((0,Yt.x)());return this.componentLoaders.set(v,ue),ue}loadChildren(v,M){if(this.childrenLoaders.get(M))return this.childrenLoaders.get(M);if(M._loadedRoutes)return(0,L.of)({routes:M._loadedRoutes,injector:M._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(M);const ke=this.loadModuleFactoryOrRoutes(M.loadChildren).pipe((0,ie.U)($t=>{this.onLoadEndListener&&this.onLoadEndListener(M);let bt,Zt;return Array.isArray($t)?Zt=$t:(bt=$t.create(v).injector,Zt=bt.get($n,[],i.XFs.Self|i.XFs.Optional).flat()),{routes:Zt.map(Zr),injector:bt}}),(0,At.x)(()=>{this.childrenLoaders.delete(M)})),ft=new $e.c(ke,()=>new $.xQ).pipe((0,Yt.x)());return this.childrenLoaders.set(M,ft),ft}loadModuleFactoryOrRoutes(v){return Ye(v()).pipe((0,ie.U)(hi),(0,we.zg)(M=>M instanceof i.YKP||Array.isArray(M)?(0,L.of)(M):(0,m.D)(this.compiler.compileModuleAsync(M))))}}return(_=b).\u0275fac=function(v){return new(v||_)},_.\u0275prov=i.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),b})();function hi(_){return function bi(_){return _&&"object"==typeof _&&"default"in _}(_)?_.default:_}let li=(()=>{var _;class b{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new $.xQ,this.transitionAbortSubject=new $.xQ,this.configLoader=(0,i.f3M)(Hn),this.environmentInjector=(0,i.f3M)(i.lqb),this.urlSerializer=(0,i.f3M)(ut),this.rootContexts=(0,i.f3M)(Ri),this.inputBindingEnabled=null!==(0,i.f3M)(qi,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,L.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=ue=>this.events.next(new ln(ue)),this.configLoader.onLoadStartListener=ue=>this.events.next(new Ht(ue))}complete(){var v;null===(v=this.transitions)||void 0===v||v.complete()}handleNavigationRequest(v){var M;const ue=++this.navigationId;null===(M=this.transitions)||void 0===M||M.next({...this.transitions.value,...v,id:ue})}setupNavigations(v,M,ue){return this.transitions=new f.X({id:0,currentUrlTree:M,currentRawUrl:M,currentBrowserUrl:M,extractedUrl:v.urlHandlingStrategy.extract(M),urlAfterRedirects:v.urlHandlingStrategy.extract(M),rawUrl:M,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:ai,restoredState:null,currentSnapshot:ue.snapshot,targetSnapshot:null,currentRouterState:ue,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,Ve.h)(ke=>0!==ke.id),(0,ie.U)(ke=>({...ke,extractedUrl:v.urlHandlingStrategy.extract(ke.rawUrl)})),(0,ee.w)(ke=>{this.currentTransition=ke;let ft=!1,$t=!1;return(0,L.of)(ke).pipe((0,_e.b)(bt=>{this.currentNavigation={id:bt.id,initialUrl:bt.rawUrl,extractedUrl:bt.extractedUrl,trigger:bt.source,extras:bt.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,ee.w)(bt=>{var Zt;const Cn=bt.currentBrowserUrl.toString(),Un=!v.navigated||bt.extractedUrl.toString()!==Cn||Cn!==bt.currentUrlTree.toString(),er=null!==(Zt=bt.extras.onSameUrlNavigation)&&void 0!==Zt?Zt:v.onSameUrlNavigation;if(!Un&&"reload"!==er){const fi="";return this.events.next(new Z(bt.id,this.urlSerializer.serialize(bt.rawUrl),fi,0)),bt.resolve(null),U.E}if(v.urlHandlingStrategy.shouldProcessUrl(bt.rawUrl))return(0,L.of)(bt).pipe((0,ee.w)(fi=>{var Qi,Ir;const $s=null===(Qi=this.transitions)||void 0===Qi?void 0:Qi.getValue();return this.events.next(new qt(fi.id,this.urlSerializer.serialize(fi.extractedUrl),fi.source,fi.restoredState)),$s!==(null===(Ir=this.transitions)||void 0===Ir?void 0:Ir.getValue())?U.E:Promise.resolve(fi)}),function Ue(_,b,T,v,M,ue){return(0,we.zg)(ke=>function cl(_,b,T,v,M,ue,ke="emptyOnly"){return new uo(_,b,T,v,M,ke,ue).recognize()}(_,b,T,v,ke.extractedUrl,M,ue).pipe((0,ie.U)(({state:ft,tree:$t})=>({...ke,targetSnapshot:ft,urlAfterRedirects:$t}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,v.config,this.urlSerializer,v.paramsInheritanceStrategy),(0,_e.b)(fi=>{ke.targetSnapshot=fi.targetSnapshot,ke.urlAfterRedirects=fi.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:fi.urlAfterRedirects};const Qi=new rt(fi.id,this.urlSerializer.serialize(fi.extractedUrl),this.urlSerializer.serialize(fi.urlAfterRedirects),fi.targetSnapshot);this.events.next(Qi)}));if(Un&&v.urlHandlingStrategy.shouldProcessUrl(bt.currentRawUrl)){const{id:fi,extractedUrl:Qi,source:Ir,restoredState:$s,extras:Ws}=bt,As=new qt(fi,this.urlSerializer.serialize(Qi),Ir,$s);this.events.next(As);const rs=gi(0,this.rootComponentType).snapshot;return this.currentTransition=ke={...bt,targetSnapshot:rs,urlAfterRedirects:Qi,extras:{...Ws,skipLocationChange:!1,replaceUrl:!1}},(0,L.of)(ke)}{const fi="";return this.events.next(new Z(bt.id,this.urlSerializer.serialize(bt.extractedUrl),fi,1)),bt.resolve(null),U.E}}),(0,_e.b)(bt=>{const Zt=new Rt(bt.id,this.urlSerializer.serialize(bt.extractedUrl),this.urlSerializer.serialize(bt.urlAfterRedirects),bt.targetSnapshot);this.events.next(Zt)}),(0,ie.U)(bt=>(this.currentTransition=ke={...bt,guards:ro(bt.targetSnapshot,bt.currentSnapshot,this.rootContexts)},ke)),function Gi(_,b){return(0,we.zg)(T=>{const{targetSnapshot:v,currentSnapshot:M,guards:{canActivateChecks:ue,canDeactivateChecks:ke}}=T;return 0===ke.length&&0===ue.length?(0,L.of)({...T,guardsResult:!0}):function Es(_,b,T,v){return(0,m.D)(_).pipe((0,we.zg)(M=>function yo(_,b,T,v,M){const ue=b&&b.routeConfig?b.routeConfig.canDeactivate:null;if(!ue||0===ue.length)return(0,L.of)(!0);const ke=ue.map(ft=>{var $t;const bt=null!==($t=Xi(b))&&void 0!==$t?$t:M,Zt=w(ft,bt);return Ye(function ac(_){return _&&On(_.canDeactivate)}(Zt)?Zt.canDeactivate(_,b,T,v):bt.runInContext(()=>Zt(_,b,T,v))).pipe(ot())});return(0,L.of)(ke).pipe(mr())}(M.component,M.route,T,b,v)),ot(M=>!0!==M,!0))}(ke,v,M,_).pipe((0,we.zg)(ft=>ft&&function Pi(_){return"boolean"==typeof _}(ft)?function Gr(_,b,T,v){return(0,m.D)(b).pipe((0,st.b)(M=>(0,ae.z)(function js(_,b){return null!==_&&b&&b(new xn(_)),(0,L.of)(!0)}(M.route.parent,v),function Hi(_,b){return null!==_&&b&&b(new zn(_)),(0,L.of)(!0)}(M.route,v),function ps(_,b,T){const v=b[b.length-1],ue=b.slice(0,b.length-1).reverse().map(ke=>function B(_){const b=_.routeConfig?_.routeConfig.canActivateChild:null;return b&&0!==b.length?{node:_,guards:b}:null}(ke)).filter(ke=>null!==ke).map(ke=>(0,K.P)(()=>{const ft=ke.guards.map($t=>{var bt;const Zt=null!==(bt=Xi(ke.node))&&void 0!==bt?bt:T,Cn=w($t,Zt);return Ye(function so(_){return _&&On(_.canActivateChild)}(Cn)?Cn.canActivateChild(v,_):Zt.runInContext(()=>Cn(v,_))).pipe(ot())});return(0,L.of)(ft).pipe(mr())}));return(0,L.of)(ue).pipe(mr())}(_,M.path,T),function rr(_,b,T){const v=b.routeConfig?b.routeConfig.canActivate:null;if(!v||0===v.length)return(0,L.of)(!0);const M=v.map(ue=>(0,K.P)(()=>{var ke;const ft=null!==(ke=Xi(b))&&void 0!==ke?ke:T,$t=w(ue,ft);return Ye(function Os(_){return _&&On(_.canActivate)}($t)?$t.canActivate(b,_):ft.runInContext(()=>$t(b,_))).pipe(ot())}));return(0,L.of)(M).pipe(mr())}(_,M.route,T))),ot(M=>!0!==M,!0))}(v,ue,_,b):(0,L.of)(ft)),(0,ie.U)(ft=>({...T,guardsResult:ft})))})}(this.environmentInjector,bt=>this.events.next(bt)),(0,_e.b)(bt=>{if(ke.guardsResult=bt.guardsResult,Vn(bt.guardsResult))throw Ar(0,bt.guardsResult);const Zt=new tn(bt.id,this.urlSerializer.serialize(bt.extractedUrl),this.urlSerializer.serialize(bt.urlAfterRedirects),bt.targetSnapshot,!!bt.guardsResult);this.events.next(Zt)}),(0,Ve.h)(bt=>!!bt.guardsResult||(this.cancelNavigationTransition(bt,"",3),!1)),Zn(bt=>{if(bt.guards.canActivateChecks.length)return(0,L.of)(bt).pipe((0,_e.b)(Zt=>{const Cn=new Kt(Zt.id,this.urlSerializer.serialize(Zt.extractedUrl),this.urlSerializer.serialize(Zt.urlAfterRedirects),Zt.targetSnapshot);this.events.next(Cn)}),(0,ee.w)(Zt=>{let Cn=!1;return(0,L.of)(Zt).pipe(function O(_,b){return(0,we.zg)(T=>{const{targetSnapshot:v,guards:{canActivateChecks:M}}=T;if(!M.length)return(0,L.of)(T);let ue=0;return(0,m.D)(M).pipe((0,st.b)(ke=>function De(_,b,T,v){const M=_.routeConfig,ue=_._resolve;return void 0!==(null==M?void 0:M.title)&&!Wn(M)&&(ue[Rn]=M.title),function et(_,b,T,v){const M=function wt(_){return[...Object.keys(_),...Object.getOwnPropertySymbols(_)]}(_);if(0===M.length)return(0,L.of)({});const ue={};return(0,m.D)(M).pipe((0,we.zg)(ke=>function Qt(_,b,T,v){var M;const ue=null!==(M=Xi(b))&&void 0!==M?M:v,ke=w(_,ue);return Ye(ke.resolve?ke.resolve(b,T):ue.runInContext(()=>ke(b,T)))}(_[ke],b,T,v).pipe(ot(),(0,_e.b)(ft=>{ue[ke]=ft}))),N(1),function Je(_){return b=>b.lift(new ht(_))}(ue),(0,Q.K)(ke=>Is(ke)?U.E:(0,he._)(ke)))}(ue,_,b,v).pipe((0,ie.U)(ke=>(_._resolvedData=ke,_.data=wi(_,T).resolve,M&&Wn(M)&&(_.data[Rn]=M.title),null)))}(ke.route,v,_,b)),(0,_e.b)(()=>ue++),N(1),(0,we.zg)(ke=>ue===M.length?(0,L.of)(T):U.E))})}(v.paramsInheritanceStrategy,this.environmentInjector),(0,_e.b)({next:()=>Cn=!0,complete:()=>{Cn||this.cancelNavigationTransition(Zt,"",2)}}))}),(0,_e.b)(Zt=>{const Cn=new Jt(Zt.id,this.urlSerializer.serialize(Zt.extractedUrl),this.urlSerializer.serialize(Zt.urlAfterRedirects),Zt.targetSnapshot);this.events.next(Cn)}))}),Zn(bt=>{const Zt=Cn=>{var Un;const er=[];null!==(Un=Cn.routeConfig)&&void 0!==Un&&Un.loadComponent&&!Cn.routeConfig._loadedComponent&&er.push(this.configLoader.loadComponent(Cn.routeConfig).pipe((0,_e.b)(fi=>{Cn.component=fi}),(0,ie.U)(()=>{})));for(const fi of Cn.children)er.push(...Zt(fi));return er};return(0,W.aj)(Zt(bt.targetSnapshot.root)).pipe(te(),(0,x.q)(1))}),Zn(()=>this.afterPreactivation()),(0,ie.U)(bt=>{const Zt=function fr(_,b,T){const v=Tr(_,b._root,T?T._root:void 0);return new Nn(v,b)}(v.routeReuseStrategy,bt.targetSnapshot,bt.currentRouterState);return this.currentTransition=ke={...bt,targetRouterState:Zt},ke}),(0,_e.b)(()=>{this.events.next(new mi)}),((_,b,T,v)=>(0,ie.U)(M=>(new io(b,M.targetRouterState,M.currentRouterState,T,v).activate(_),M)))(this.rootContexts,v.routeReuseStrategy,bt=>this.events.next(bt),this.inputBindingEnabled),(0,x.q)(1),(0,_e.b)({next:bt=>{var Zt;ft=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new at(bt.id,this.urlSerializer.serialize(bt.extractedUrl),this.urlSerializer.serialize(bt.urlAfterRedirects))),null===(Zt=v.titleStrategy)||void 0===Zt||Zt.updateTitle(bt.targetRouterState.snapshot),bt.resolve(!0)},complete:()=>{ft=!0}}),(0,on.R)(this.transitionAbortSubject.pipe((0,_e.b)(bt=>{throw bt}))),(0,At.x)(()=>{var bt;ft||$t||this.cancelNavigationTransition(ke,"",1),(null===(bt=this.currentNavigation)||void 0===bt?void 0:bt.id)===ke.id&&(this.currentNavigation=null)}),(0,Q.K)(bt=>{if($t=!0,zr(bt))this.events.next(new S(ke.id,this.urlSerializer.serialize(ke.extractedUrl),bt.message,bt.cancellationCode)),function Fn(_){return zr(_)&&Vn(_.url)}(bt)?this.events.next(new Si(bt.url)):ke.resolve(!1);else{var Zt;this.events.next(new ze(ke.id,this.urlSerializer.serialize(ke.extractedUrl),bt,null!==(Zt=ke.targetSnapshot)&&void 0!==Zt?Zt:void 0));try{ke.resolve(v.errorHandler(bt))}catch(Cn){ke.reject(Cn)}}return U.E}))}))}cancelNavigationTransition(v,M,ue){const ke=new S(v.id,this.urlSerializer.serialize(v.extractedUrl),M,ue);this.events.next(ke),v.resolve(!1)}}return(_=b).\u0275fac=function(v){return new(v||_)},_.\u0275prov=i.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),b})();function sr(_){return _!==ai}let Br=(()=>{var _;class b{buildTitle(v){let M,ue=v.root;for(;void 0!==ue;){var ke;M=null!==(ke=this.getResolvedTitleForRoute(ue))&&void 0!==ke?ke:M,ue=ue.children.find(ft=>ft.outlet===Ut)}return M}getResolvedTitleForRoute(v){return v.data[Rn]}}return(_=b).\u0275fac=function(v){return new(v||_)},_.\u0275prov=i.Yz7({token:_,factory:function(){return(0,i.f3M)(Xr)},providedIn:"root"}),b})(),Xr=(()=>{var _;class b extends Br{constructor(v){super(),this.title=v}updateTitle(v){const M=this.buildTitle(v);void 0!==M&&this.title.setTitle(M)}}return(_=b).\u0275fac=function(v){return new(v||_)(i.LFG(gn.Dx))},_.\u0275prov=i.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),b})(),or=(()=>{var _;class b{}return(_=b).\u0275fac=function(v){return new(v||_)},_.\u0275prov=i.Yz7({token:_,factory:function(){return(0,i.f3M)(Vr)},providedIn:"root"}),b})();class ji{shouldDetach(b){return!1}store(b,T){}shouldAttach(b){return!1}retrieve(b){return null}shouldReuseRoute(b,T){return b.routeConfig===T.routeConfig}}let Vr=(()=>{var _;class b extends ji{}return(_=b).\u0275fac=function(){let T;return function(M){return(T||(T=i.n5z(_)))(M||_)}}(),_.\u0275prov=i.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),b})();const ar=new i.OlP("",{providedIn:"root",factory:()=>({})});let Gn=(()=>{var _;class b{}return(_=b).\u0275fac=function(v){return new(v||_)},_.\u0275prov=i.Yz7({token:_,factory:function(){return(0,i.f3M)(Yi)},providedIn:"root"}),b})(),Yi=(()=>{var _;class b{shouldProcessUrl(v){return!0}extract(v){return v}merge(v,M){return v}}return(_=b).\u0275fac=function(v){return new(v||_)},_.\u0275prov=i.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),b})();var lr=function(_){return _[_.COMPLETE=0]="COMPLETE",_[_.FAILED=1]="FAILED",_[_.REDIRECTING=2]="REDIRECTING",_}(lr||{});function cr(_,b){_.events.pipe((0,Ve.h)(T=>T instanceof at||T instanceof S||T instanceof ze||T instanceof Z),(0,ie.U)(T=>T instanceof at||T instanceof Z?lr.COMPLETE:T instanceof S&&(0===T.code||1===T.code)?lr.REDIRECTING:lr.FAILED),(0,Ve.h)(T=>T!==lr.REDIRECTING),(0,x.q)(1)).subscribe(()=>{b()})}function Vo(_){throw _}function ni(_,b,T){return b.parse("/")}const Ns={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},yr={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let xr=(()=>{var _;class b{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){var v,M;return"computed"!==this.canceledNavigationResolution?this.currentPageId:null!==(v=null===(M=this.location.getState())||void 0===M?void 0:M.\u0275routerPageId)&&void 0!==v?v:this.currentPageId}get events(){return this._events}constructor(){var v,M;this.disposed=!1,this.currentPageId=0,this.console=(0,i.f3M)(i.c2e),this.isNgZoneEnabled=!1,this._events=new $.xQ,this.options=(0,i.f3M)(ar,{optional:!0})||{},this.pendingTasks=(0,i.f3M)(i.HDt),this.errorHandler=this.options.errorHandler||Vo,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||ni,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=(0,i.f3M)(Gn),this.routeReuseStrategy=(0,i.f3M)(or),this.titleStrategy=(0,i.f3M)(Br),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=null!==(v=null===(M=(0,i.f3M)($n,{optional:!0}))||void 0===M?void 0:M.flat())&&void 0!==v?v:[],this.navigationTransitions=(0,i.f3M)(li),this.urlSerializer=(0,i.f3M)(ut),this.location=(0,i.f3M)(Ne.Ye),this.componentInputBindingEnabled=!!(0,i.f3M)(qi,{optional:!0}),this.eventsSubscription=new ge.w,this.isNgZoneEnabled=(0,i.f3M)(i.R0b)instanceof i.R0b&&i.R0b.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new En,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=gi(0,null),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe(ue=>{this.lastSuccessfulId=ue.id,this.currentPageId=this.browserPageId},ue=>{this.console.warn(`Unhandled Navigation Error: ${ue}`)}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const v=this.navigationTransitions.events.subscribe(M=>{try{const{currentTransition:ue}=this.navigationTransitions;if(null===ue)return void(sa(M)&&this._events.next(M));if(M instanceof qt)sr(ue.source)&&(this.browserUrlTree=ue.extractedUrl);else if(M instanceof Z)this.rawUrlTree=ue.rawUrl;else if(M instanceof rt){if("eager"===this.urlUpdateStrategy){if(!ue.extras.skipLocationChange){const ke=this.urlHandlingStrategy.merge(ue.urlAfterRedirects,ue.rawUrl);this.setBrowserUrl(ke,ue)}this.browserUrlTree=ue.urlAfterRedirects}}else if(M instanceof mi)this.currentUrlTree=ue.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(ue.urlAfterRedirects,ue.rawUrl),this.routerState=ue.targetRouterState,"deferred"===this.urlUpdateStrategy&&(ue.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,ue),this.browserUrlTree=ue.urlAfterRedirects);else if(M instanceof S)0!==M.code&&1!==M.code&&(this.navigated=!0),(3===M.code||2===M.code)&&this.restoreHistory(ue);else if(M instanceof Si){const ke=this.urlHandlingStrategy.merge(M.url,ue.currentRawUrl),ft={skipLocationChange:ue.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||sr(ue.source)};this.scheduleNavigation(ke,ai,null,ft,{resolve:ue.resolve,reject:ue.reject,promise:ue.promise})}M instanceof ze&&this.restoreHistory(ue,!0),M instanceof at&&(this.navigated=!0),sa(M)&&this._events.next(M)}catch(ue){this.navigationTransitions.transitionAbortSubject.next(ue)}});this.eventsSubscription.add(v)}resetRootComponentType(v){this.routerState.root.component=v,this.navigationTransitions.rootComponentType=v}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const v=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),ai,v)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(v=>{const M="popstate"===v.type?"popstate":"hashchange";"popstate"===M&&setTimeout(()=>{this.navigateToSyncWithBrowser(v.url,M,v.state)},0)}))}navigateToSyncWithBrowser(v,M,ue){const ke={replaceUrl:!0},ft=null!=ue&&ue.navigationId?ue:null;if(ue){const bt={...ue};delete bt.navigationId,delete bt.\u0275routerPageId,0!==Object.keys(bt).length&&(ke.state=bt)}const $t=this.parseUrl(v);this.scheduleNavigation($t,M,ft,ke)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(v){this.config=v.map(Zr),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(v,M={}){const{relativeTo:ue,queryParams:ke,fragment:ft,queryParamsHandling:$t,preserveFragment:bt}=M,Zt=bt?this.currentUrlTree.fragment:ft;let Un,Cn=null;switch($t){case"merge":Cn={...this.currentUrlTree.queryParams,...ke};break;case"preserve":Cn=this.currentUrlTree.queryParams;break;default:Cn=ke||null}null!==Cn&&(Cn=this.removeEmptyProps(Cn));try{Un=Qn(ue?ue.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof v[0]||!v[0].startsWith("/"))&&(v=[]),Un=this.currentUrlTree.root}return xi(Un,v,Cn,null!=Zt?Zt:null)}navigateByUrl(v,M={skipLocationChange:!1}){const ue=Vn(v)?v:this.parseUrl(v),ke=this.urlHandlingStrategy.merge(ue,this.rawUrlTree);return this.scheduleNavigation(ke,ai,null,M)}navigate(v,M={skipLocationChange:!1}){return function hl(_){for(let b=0;b<_.length;b++)if(null==_[b])throw new i.vHH(4008,!1)}(v),this.navigateByUrl(this.createUrlTree(v,M),M)}serializeUrl(v){return this.urlSerializer.serialize(v)}parseUrl(v){let M;try{M=this.urlSerializer.parse(v)}catch(ue){M=this.malformedUriErrorHandler(ue,this.urlSerializer,v)}return M}isActive(v,M){let ue;if(ue=!0===M?{...Ns}:!1===M?{...yr}:M,Vn(v))return Bt(this.currentUrlTree,v,ue);const ke=this.parseUrl(v);return Bt(this.currentUrlTree,ke,ue)}removeEmptyProps(v){return Object.keys(v).reduce((M,ue)=>{const ke=v[ue];return null!=ke&&(M[ue]=ke),M},{})}scheduleNavigation(v,M,ue,ke,ft){if(this.disposed)return Promise.resolve(!1);let $t,bt,Zt;ft?($t=ft.resolve,bt=ft.reject,Zt=ft.promise):Zt=new Promise((Un,er)=>{$t=Un,bt=er});const Cn=this.pendingTasks.add();return cr(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(Cn))}),this.navigationTransitions.handleNavigationRequest({source:M,restoredState:ue,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,currentBrowserUrl:this.browserUrlTree,rawUrl:v,extras:ke,resolve:$t,reject:bt,promise:Zt,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Zt.catch(Un=>Promise.reject(Un))}setBrowserUrl(v,M){const ue=this.urlSerializer.serialize(v);if(this.location.isCurrentPathEqualTo(ue)||M.extras.replaceUrl){const ft={...M.extras.state,...this.generateNgRouterState(M.id,this.browserPageId)};this.location.replaceState(ue,"",ft)}else{const ke={...M.extras.state,...this.generateNgRouterState(M.id,this.browserPageId+1)};this.location.go(ue,"",ke)}}restoreHistory(v,M=!1){if("computed"===this.canceledNavigationResolution){var ue;const ft=this.currentPageId-this.browserPageId;0!==ft?this.location.historyGo(ft):this.currentUrlTree===(null===(ue=this.getCurrentNavigation())||void 0===ue?void 0:ue.finalUrl)&&0===ft&&(this.resetState(v),this.browserUrlTree=v.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(M&&this.resetState(v),this.resetUrlToCurrentUrlTree())}resetState(v){this.routerState=v.currentRouterState,this.currentUrlTree=v.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,v.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(v,M){return"computed"===this.canceledNavigationResolution?{navigationId:v,\u0275routerPageId:M}:{navigationId:v}}}return(_=b).\u0275fac=function(v){return new(v||_)},_.\u0275prov=i.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),b})();function sa(_){return!(_ instanceof mi||_ instanceof Si)}let Er=(()=>{var _;class b{constructor(v,M,ue,ke,ft,$t){var bt;this.router=v,this.route=M,this.tabIndexAttribute=ue,this.renderer=ke,this.el=ft,this.locationStrategy=$t,this.href=null,this.commands=null,this.onChanges=new $.xQ,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const Zt=null===(bt=ft.nativeElement.tagName)||void 0===bt?void 0:bt.toLowerCase();this.isAnchorElement="a"===Zt||"area"===Zt,this.isAnchorElement?this.subscription=v.events.subscribe(Cn=>{Cn instanceof at&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(v){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",v)}ngOnChanges(v){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(v){null!=v?(this.commands=Array.isArray(v)?v:[v],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(v,M,ue,ke,ft){return!!(null===this.urlTree||this.isAnchorElement&&(0!==v||M||ue||ke||ft||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){var v;null===(v=this.subscription)||void 0===v||v.unsubscribe()}updateHref(){var v;this.href=null!==this.urlTree&&this.locationStrategy?null===(v=this.locationStrategy)||void 0===v?void 0:v.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const M=null===this.href?null:(0,i.P3R)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",M)}applyAttributeValue(v,M){const ue=this.renderer,ke=this.el.nativeElement;null!==M?ue.setAttribute(ke,v,M):ue.removeAttribute(ke,v)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return(_=b).\u0275fac=function(v){return new(v||_)(i.Y36(xr),i.Y36(Zi),i.$8M("tabindex"),i.Y36(i.Qsj),i.Y36(i.SBq),i.Y36(Ne.S$))},_.\u0275dir=i.lG2({type:_,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(v,M){1&v&&i.NdJ("click",function(ke){return M.onClick(ke.button,ke.ctrlKey,ke.shiftKey,ke.altKey,ke.metaKey)}),2&v&&i.uIk("target",M.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:["preserveFragment","preserveFragment",i.VuI],skipLocationChange:["skipLocationChange","skipLocationChange",i.VuI],replaceUrl:["replaceUrl","replaceUrl",i.VuI],routerLink:"routerLink"},standalone:!0,features:[i.Xq5,i.TTD]}),b})();class Ls{}let ca=(()=>{var _;class b{constructor(v,M,ue,ke,ft){this.router=v,this.injector=ue,this.preloadingStrategy=ke,this.loader=ft}setUpPreloading(){this.subscription=this.router.events.pipe((0,Ve.h)(v=>v instanceof at),(0,st.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(v,M){const ue=[];for(const bt of M){var ke,ft;bt.providers&&!bt._injector&&(bt._injector=(0,i.MMx)(bt.providers,v,`Route: ${bt.path}`));const Zt=null!==(ke=bt._injector)&&void 0!==ke?ke:v,Cn=null!==(ft=bt._loadedInjector)&&void 0!==ft?ft:Zt;var $t;(bt.loadChildren&&!bt._loadedRoutes&&void 0===bt.canLoad||bt.loadComponent&&!bt._loadedComponent)&&ue.push(this.preloadConfig(Zt,bt)),(bt.children||bt._loadedRoutes)&&ue.push(this.processRoutes(Cn,null!==($t=bt.children)&&void 0!==$t?$t:bt._loadedRoutes))}return(0,m.D)(ue).pipe((0,nn.J)())}preloadConfig(v,M){return this.preloadingStrategy.preload(M,()=>{let ue;ue=M.loadChildren&&void 0===M.canLoad?this.loader.loadChildren(v,M):(0,L.of)(null);const ke=ue.pipe((0,we.zg)(ft=>{var $t;return null===ft?(0,L.of)(void 0):(M._loadedRoutes=ft.routes,M._loadedInjector=ft.injector,this.processRoutes(null!==($t=ft.injector)&&void 0!==$t?$t:v,ft.routes))}));if(M.loadComponent&&!M._loadedComponent){const ft=this.loader.loadComponent(M);return(0,m.D)([ke,ft]).pipe((0,nn.J)())}return ke})}}return(_=b).\u0275fac=function(v){return new(v||_)(i.LFG(xr),i.LFG(i.Sil),i.LFG(i.lqb),i.LFG(Ls),i.LFG(Hn))},_.\u0275prov=i.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),b})();const wn=new i.OlP("");let Uo=(()=>{var _;class b{constructor(v,M,ue,ke,ft={}){this.urlSerializer=v,this.transitions=M,this.viewportScroller=ue,this.zone=ke,this.options=ft,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},ft.scrollPositionRestoration=ft.scrollPositionRestoration||"disabled",ft.anchorScrolling=ft.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(v=>{v instanceof qt?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=v.navigationTrigger,this.restoredId=v.restoredState?v.restoredState.navigationId:0):v instanceof at?(this.lastId=v.id,this.scheduleScrollEvent(v,this.urlSerializer.parse(v.urlAfterRedirects).fragment)):v instanceof Z&&0===v.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(v,this.urlSerializer.parse(v.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(v=>{v instanceof bn&&(v.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(v.position):v.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(v.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(v,M){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new bn(v,"popstate"===this.lastSource?this.store[this.restoredId]:null,M))})},0)})}ngOnDestroy(){var v,M;null===(v=this.routerEventsSubscription)||void 0===v||v.unsubscribe(),null===(M=this.scrollEventsSubscription)||void 0===M||M.unsubscribe()}}return(_=b).\u0275fac=function(v){i.$Z()},_.\u0275prov=i.Yz7({token:_,factory:_.\u0275fac}),b})();function es(_,b){return{\u0275kind:_,\u0275providers:b}}function ua(){const _=(0,i.f3M)(i.zs3);return b=>{var T,v;const M=_.get(i.z2F);if(b!==M.components[0])return;const ue=_.get(xr),ke=_.get(jo);1===_.get(ms)&&ue.initialNavigation(),null===(T=_.get(Yo,null,i.XFs.Optional))||void 0===T||T.setUpPreloading(),null===(v=_.get(wn,null,i.XFs.Optional))||void 0===v||v.init(),ue.resetRootComponentType(M.componentTypes[0]),ke.closed||(ke.next(),ke.complete(),ke.unsubscribe())}}const jo=new i.OlP("",{factory:()=>new $.xQ}),ms=new i.OlP("",{providedIn:"root",factory:()=>1}),Yo=new i.OlP("");function fa(_){return es(0,[{provide:Yo,useExisting:ca},{provide:Ls,useExisting:_}])}const To=new i.OlP("ROUTER_FORROOT_GUARD"),gl=[Ne.Ye,{provide:ut,useClass:Ct},xr,Ri,{provide:Zi,useFactory:function Ho(_){return _.routerState.root},deps:[xr]},Hn,[]];function lc(){return new i.PXZ("Router",xr)}let ma=(()=>{var _;class b{constructor(v){}static forRoot(v,M){return{ngModule:b,providers:[gl,[],{provide:$n,multi:!0,useValue:v},{provide:To,useFactory:Gs,deps:[[xr,new i.FiY,new i.tp0]]},{provide:ar,useValue:M||{}},null!=M&&M.useHash?{provide:Ne.S$,useClass:Ne.Do}:{provide:Ne.S$,useClass:Ne.b0},{provide:wn,useFactory:()=>{const _=(0,i.f3M)(Ne.EM),b=(0,i.f3M)(i.R0b),T=(0,i.f3M)(ar),v=(0,i.f3M)(li),M=(0,i.f3M)(ut);return T.scrollOffset&&_.setOffset(T.scrollOffset),new Uo(M,v,_,b,T)}},null!=M&&M.preloadingStrategy?fa(M.preloadingStrategy).\u0275providers:[],{provide:i.PXZ,multi:!0,useFactory:lc},null!=M&&M.initialNavigation?is(M):[],null!=M&&M.bindToComponentInputs?es(8,[Lr,{provide:qi,useExisting:Lr}]).\u0275providers:[],[{provide:_a,useFactory:ua},{provide:i.tb,multi:!0,useExisting:_a}]]}}static forChild(v){return{ngModule:b,providers:[{provide:$n,multi:!0,useValue:v}]}}}return(_=b).\u0275fac=function(v){return new(v||_)(i.LFG(To,8))},_.\u0275mod=i.oAB({type:_}),_.\u0275inj=i.cJS({}),b})();function Gs(_){return"guarded"}function is(_){return["disabled"===_.initialNavigation?es(3,[{provide:i.ip1,multi:!0,useFactory:()=>{const b=(0,i.f3M)(xr);return()=>{b.setUpLocationChangeListener()}}},{provide:ms,useValue:2}]).\u0275providers:[],"enabledBlocking"===_.initialNavigation?es(2,[{provide:ms,useValue:0},{provide:i.ip1,multi:!0,deps:[i.zs3],useFactory:b=>{const T=b.get(Ne.V_,Promise.resolve());return()=>T.then(()=>new Promise(v=>{const M=b.get(xr),ue=b.get(jo);cr(M,()=>{v(!0)}),b.get(li).afterPreactivation=()=>(v(!0),ue.closed?(0,L.of)(void 0):ue),M.initialNavigation()}))}}]).\u0275providers:[]]}const _a=new i.OlP("")},4807:(xt,Ke,p)=>{"use strict";p.d(Ke,{A0:()=>We,mR:()=>Ft,w9:()=>Ee});var i=p(5879),s=p(6223),m=p(9352),L=p(3433),f=p(3075),W=p(2420),re=p(6776),q=p(7734),ae=p(6124),K=p(3944),ne=p(7024),he=p(2079),U=p(9016),$e=p(7354),$=p(6814);const ge=["content"],Ne=["scroll"],ie=["padding"],ee=function(le){return{searchTerm:le}};function x(le,Me){if(1&le&&(i.TgZ(0,"div",6),i.GkF(1,7),i.qZA()),2&le){const Le=i.oxw();i.xp6(1),i.Q6J("ngTemplateOutlet",Le.headerTemplate)("ngTemplateOutletContext",i.VKq(2,ee,Le.filterValue))}}function X(le,Me){if(1&le&&(i.TgZ(0,"div",8),i.GkF(1,7),i.qZA()),2&le){const Le=i.oxw();i.xp6(1),i.Q6J("ngTemplateOutlet",Le.footerTemplate)("ngTemplateOutletContext",i.VKq(2,ee,Le.filterValue))}}const Ve=["*"],we=["searchInput"];function Ie(le,Me){if(1&le){const Le=i.EpF();i.TgZ(0,"span",15),i.NdJ("click",function(){i.CHM(Le);const H=i.oxw().$implicit,Be=i.oxw(2);return i.KtG(Be.unselect(H))}),i._uU(1,"\xd7"),i.qZA(),i._UZ(2,"span",16)}if(2&le){const Le=i.oxw().$implicit,A=i.oxw(2);i.xp6(2),i.Q6J("ngItemLabel",Le.label)("escape",A.escapeHTML)}}function te(le,Me){}const ce=function(le,Me,Le){return{item:le,clear:Me,label:Le}};function Re(le,Me){if(1&le&&(i.TgZ(0,"div",12),i.YNc(1,Ie,3,2,"ng-template",null,13,i.W1O),i.YNc(3,te,0,0,"ng-template",14),i.qZA()),2&le){const Le=Me.$implicit,A=i.MAs(2),H=i.oxw(2);i.ekj("ng-value-disabled",Le.disabled),i.xp6(3),i.Q6J("ngTemplateOutlet",H.labelTemplate||A)("ngTemplateOutletContext",i.kEZ(4,ce,Le.value,H.clearItem,Le.label))}}function He(le,Me){if(1&le&&(i.ynx(0),i.YNc(1,Re,4,8,"div",11),i.BQk()),2&le){const Le=i.oxw();i.xp6(1),i.Q6J("ngForOf",Le.selectedItems)("ngForTrackBy",Le.trackByOption)}}function nt(le,Me){}const _t=function(le,Me){return{items:le,clear:Me}};function dt(le,Me){if(1&le&&i.YNc(0,nt,0,0,"ng-template",14),2&le){const Le=i.oxw();i.Q6J("ngTemplateOutlet",Le.multiLabelTemplate)("ngTemplateOutletContext",i.WLB(2,_t,Le.selectedValues,Le.clearItem))}}function yt(le,Me){1&le&&i._UZ(0,"div",19)}function ot(le,Me){}function st(le,Me){if(1&le&&(i.ynx(0),i.YNc(1,yt,1,0,"ng-template",null,17,i.W1O),i.YNc(3,ot,0,0,"ng-template",18),i.BQk()),2&le){const Le=i.MAs(2),A=i.oxw();i.xp6(3),i.Q6J("ngTemplateOutlet",A.loadingSpinnerTemplate||Le)}}function _e(le,Me){if(1&le&&(i.TgZ(0,"span",20)(1,"span",21),i._uU(2,"\xd7"),i.qZA()()),2&le){const Le=i.oxw();i.s9C("title",Le.clearAllText)}}function Q(le,Me){if(1&le&&i._UZ(0,"span",27),2&le){const Le=i.oxw().$implicit,A=i.oxw(2);i.Q6J("ngItemLabel",Le.label)("escape",A.escapeHTML)}}function qe(le,Me){}const Te=function(le,Me,Le,A){return{item:le,item$:Me,index:Le,searchTerm:A}};function se(le,Me){if(1&le){const Le=i.EpF();i.TgZ(0,"div",25),i.NdJ("click",function(){const Be=i.CHM(Le).$implicit,I=i.oxw(2);return i.KtG(I.toggleItem(Be))})("mouseover",function(){const Be=i.CHM(Le).$implicit,I=i.oxw(2);return i.KtG(I.onItemHover(Be))}),i.YNc(1,Q,1,2,"ng-template",null,26,i.W1O),i.YNc(3,qe,0,0,"ng-template",14),i.qZA()}if(2&le){const Le=Me.$implicit,A=i.MAs(2),H=i.oxw(2);i.ekj("ng-option-disabled",Le.disabled)("ng-option-selected",Le.selected)("ng-optgroup",Le.children)("ng-option",!Le.children)("ng-option-child",!!Le.parent)("ng-option-marked",Le===H.itemsList.markedItem),i.uIk("role",Le.children?"group":"option")("aria-selected",Le.selected)("id",null==Le?null:Le.htmlId),i.xp6(3),i.Q6J("ngTemplateOutlet",Le.children?H.optgroupTemplate||A:H.optionTemplate||A)("ngTemplateOutletContext",i.l5B(17,Te,Le.value,Le,Le.index,H.searchTerm))}}function Se(le,Me){if(1&le&&(i.TgZ(0,"span")(1,"span",30),i._uU(2),i.qZA(),i._uU(3),i.qZA()),2&le){const Le=i.oxw(3);i.xp6(2),i.Oqu(Le.addTagText),i.xp6(1),i.hij('"',Le.searchTerm,'"')}}function N(le,Me){}function oe(le,Me){if(1&le){const Le=i.EpF();i.TgZ(0,"div",28),i.NdJ("mouseover",function(){i.CHM(Le);const H=i.oxw(2);return i.KtG(H.itemsList.unmarkItem())})("click",function(){i.CHM(Le);const H=i.oxw(2);return i.KtG(H.selectTag())}),i.YNc(1,Se,4,2,"ng-template",null,29,i.W1O),i.YNc(3,N,0,0,"ng-template",14),i.qZA()}if(2&le){const Le=i.MAs(2),A=i.oxw(2);i.ekj("ng-option-marked",!A.itemsList.markedItem),i.xp6(3),i.Q6J("ngTemplateOutlet",A.tagTemplate||Le)("ngTemplateOutletContext",i.VKq(4,ee,A.searchTerm))}}function ye(le,Me){if(1&le&&(i.TgZ(0,"div",32),i._uU(1),i.qZA()),2&le){const Le=i.oxw(3);i.xp6(1),i.Oqu(Le.notFoundText)}}function Fe(le,Me){}function Je(le,Me){if(1&le&&(i.ynx(0),i.YNc(1,ye,2,1,"ng-template",null,31,i.W1O),i.YNc(3,Fe,0,0,"ng-template",14),i.BQk()),2&le){const Le=i.MAs(2),A=i.oxw(2);i.xp6(3),i.Q6J("ngTemplateOutlet",A.notFoundTemplate||Le)("ngTemplateOutletContext",i.VKq(2,ee,A.searchTerm))}}function ht(le,Me){if(1&le&&(i.TgZ(0,"div",32),i._uU(1),i.qZA()),2&le){const Le=i.oxw(3);i.xp6(1),i.Oqu(Le.typeToSearchText)}}function vt(le,Me){}function At(le,Me){if(1&le&&(i.ynx(0),i.YNc(1,ht,2,1,"ng-template",null,33,i.W1O),i.YNc(3,vt,0,0,"ng-template",18),i.BQk()),2&le){const Le=i.MAs(2),A=i.oxw(2);i.xp6(3),i.Q6J("ngTemplateOutlet",A.typeToSearchTemplate||Le)}}function Yt(le,Me){if(1&le&&(i.TgZ(0,"div",32),i._uU(1),i.qZA()),2&le){const Le=i.oxw(3);i.xp6(1),i.Oqu(Le.loadingText)}}function on(le,Me){}function nn(le,Me){if(1&le&&(i.ynx(0),i.YNc(1,Yt,2,1,"ng-template",null,34,i.W1O),i.YNc(3,on,0,0,"ng-template",14),i.BQk()),2&le){const Le=i.MAs(2),A=i.oxw(2);i.xp6(3),i.Q6J("ngTemplateOutlet",A.loadingTextTemplate||Le)("ngTemplateOutletContext",i.VKq(2,ee,A.searchTerm))}}function gn(le,Me){if(1&le){const Le=i.EpF();i.TgZ(0,"ng-dropdown-panel",22),i.NdJ("update",function(H){i.CHM(Le);const Be=i.oxw();return i.KtG(Be.viewPortItems=H)})("scroll",function(H){i.CHM(Le);const Be=i.oxw();return i.KtG(Be.scroll.emit(H))})("scrollToEnd",function(H){i.CHM(Le);const Be=i.oxw();return i.KtG(Be.scrollToEnd.emit(H))})("outsideClick",function(){i.CHM(Le);const H=i.oxw();return i.KtG(H.close())}),i.ynx(1),i.YNc(2,se,4,22,"div",23),i.YNc(3,oe,4,6,"div",24),i.BQk(),i.YNc(4,Je,4,4,"ng-container",3),i.YNc(5,At,4,1,"ng-container",3),i.YNc(6,nn,4,4,"ng-container",3),i.qZA()}if(2&le){const Le=i.oxw();i.ekj("ng-select-multiple",Le.multiple),i.Q6J("virtualScroll",Le.virtualScroll)("bufferAmount",Le.bufferAmount)("appendTo",Le.appendTo)("position",Le.dropdownPosition)("headerTemplate",Le.headerTemplate)("footerTemplate",Le.footerTemplate)("filterValue",Le.searchTerm)("items",Le.itemsList.filteredItems)("markedItem",Le.itemsList.markedItem)("ngClass",Le.appendTo?Le.classes:null)("id",Le.dropdownId),i.xp6(2),i.Q6J("ngForOf",Le.viewPortItems)("ngForTrackBy",Le.trackByOption),i.xp6(1),i.Q6J("ngIf",Le.showAddTag),i.xp6(1),i.Q6J("ngIf",Le.showNoItemsFound()),i.xp6(1),i.Q6J("ngIf",Le.showTypeToSearch()),i.xp6(1),i.Q6J("ngIf",Le.loading&&0===Le.itemsList.filteredItems.length)}}const Ut=/[&<>"']/g,Rn=RegExp(Ut.source),Pn={"&":"&","<":"<",">":">",'"':""","'":"'"};function tt(le){return null!=le}function z(le){return"object"==typeof le&&tt(le)}function F(le){return le instanceof Function}let me=(()=>{var le;class Me{constructor(A){this.element=A,this.escape=!0}ngOnChanges(A){this.element.nativeElement.innerHTML=this.escape?function kn(le){return le&&Rn.test(le)?le.replace(Ut,Me=>Pn[Me]):le}(this.ngItemLabel):this.ngItemLabel}}return(le=Me).\u0275fac=function(A){return new(A||le)(i.Y36(i.SBq))},le.\u0275dir=i.lG2({type:le,selectors:[["","ngItemLabel",""]],inputs:{ngItemLabel:"ngItemLabel",escape:"escape"},features:[i.TTD]}),Me})(),Ye=(()=>{var le;class Me{constructor(A){this.template=A}}return(le=Me).\u0275fac=function(A){return new(A||le)(i.Y36(i.Rgc))},le.\u0275dir=i.lG2({type:le,selectors:[["","ng-option-tmp",""]]}),Me})(),St=(()=>{var le;class Me{constructor(A){this.template=A}}return(le=Me).\u0275fac=function(A){return new(A||le)(i.Y36(i.Rgc))},le.\u0275dir=i.lG2({type:le,selectors:[["","ng-optgroup-tmp",""]]}),Me})(),Ft=(()=>{var le;class Me{constructor(A){this.template=A}}return(le=Me).\u0275fac=function(A){return new(A||le)(i.Y36(i.Rgc))},le.\u0275dir=i.lG2({type:le,selectors:[["","ng-label-tmp",""]]}),Me})(),Bt=(()=>{var le;class Me{constructor(A){this.template=A}}return(le=Me).\u0275fac=function(A){return new(A||le)(i.Y36(i.Rgc))},le.\u0275dir=i.lG2({type:le,selectors:[["","ng-multi-label-tmp",""]]}),Me})(),Wt=(()=>{var le;class Me{constructor(A){this.template=A}}return(le=Me).\u0275fac=function(A){return new(A||le)(i.Y36(i.Rgc))},le.\u0275dir=i.lG2({type:le,selectors:[["","ng-header-tmp",""]]}),Me})(),Xt=(()=>{var le;class Me{constructor(A){this.template=A}}return(le=Me).\u0275fac=function(A){return new(A||le)(i.Y36(i.Rgc))},le.\u0275dir=i.lG2({type:le,selectors:[["","ng-footer-tmp",""]]}),Me})(),Mt=(()=>{var le;class Me{constructor(A){this.template=A}}return(le=Me).\u0275fac=function(A){return new(A||le)(i.Y36(i.Rgc))},le.\u0275dir=i.lG2({type:le,selectors:[["","ng-notfound-tmp",""]]}),Me})(),vn=(()=>{var le;class Me{constructor(A){this.template=A}}return(le=Me).\u0275fac=function(A){return new(A||le)(i.Y36(i.Rgc))},le.\u0275dir=i.lG2({type:le,selectors:[["","ng-typetosearch-tmp",""]]}),Me})(),fn=(()=>{var le;class Me{constructor(A){this.template=A}}return(le=Me).\u0275fac=function(A){return new(A||le)(i.Y36(i.Rgc))},le.\u0275dir=i.lG2({type:le,selectors:[["","ng-loadingtext-tmp",""]]}),Me})(),pn=(()=>{var le;class Me{constructor(A){this.template=A}}return(le=Me).\u0275fac=function(A){return new(A||le)(i.Y36(i.Rgc))},le.\u0275dir=i.lG2({type:le,selectors:[["","ng-tag-tmp",""]]}),Me})(),En=(()=>{var le;class Me{constructor(A){this.template=A}}return(le=Me).\u0275fac=function(A){return new(A||le)(i.Y36(i.Rgc))},le.\u0275dir=i.lG2({type:le,selectors:[["","ng-loadingspinner-tmp",""]]}),Me})();function un(){return"axxxxxxxxxxx".replace(/[x]/g,()=>(16*Math.random()|0).toString(16))}const Kn={"\u24b6":"A",\uff21:"A",\u00c0:"A",\u00c1:"A",\u00c2:"A",\u1ea6:"A",\u1ea4:"A",\u1eaa:"A",\u1ea8:"A",\u00c3:"A",\u0100:"A",\u0102:"A",\u1eb0:"A",\u1eae:"A",\u1eb4:"A",\u1eb2:"A",\u0226:"A",\u01e0:"A",\u00c4:"A",\u01de:"A",\u1ea2:"A",\u00c5:"A",\u01fa:"A",\u01cd:"A",\u0200:"A",\u0202:"A",\u1ea0:"A",\u1eac:"A",\u1eb6:"A",\u1e00:"A",\u0104:"A",\u023a:"A",\u2c6f:"A",\ua732:"AA",\u00c6:"AE",\u01fc:"AE",\u01e2:"AE",\ua734:"AO",\ua736:"AU",\ua738:"AV",\ua73a:"AV",\ua73c:"AY","\u24b7":"B",\uff22:"B",\u1e02:"B",\u1e04:"B",\u1e06:"B",\u0243:"B",\u0182:"B",\u0181:"B","\u24b8":"C",\uff23:"C",\u0106:"C",\u0108:"C",\u010a:"C",\u010c:"C",\u00c7:"C",\u1e08:"C",\u0187:"C",\u023b:"C",\ua73e:"C","\u24b9":"D",\uff24:"D",\u1e0a:"D",\u010e:"D",\u1e0c:"D",\u1e10:"D",\u1e12:"D",\u1e0e:"D",\u0110:"D",\u018b:"D",\u018a:"D",\u0189:"D",\ua779:"D",\u01f1:"DZ",\u01c4:"DZ",\u01f2:"Dz",\u01c5:"Dz","\u24ba":"E",\uff25:"E",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u1ec0:"E",\u1ebe:"E",\u1ec4:"E",\u1ec2:"E",\u1ebc:"E",\u0112:"E",\u1e14:"E",\u1e16:"E",\u0114:"E",\u0116:"E",\u00cb:"E",\u1eba:"E",\u011a:"E",\u0204:"E",\u0206:"E",\u1eb8:"E",\u1ec6:"E",\u0228:"E",\u1e1c:"E",\u0118:"E",\u1e18:"E",\u1e1a:"E",\u0190:"E",\u018e:"E","\u24bb":"F",\uff26:"F",\u1e1e:"F",\u0191:"F",\ua77b:"F","\u24bc":"G",\uff27:"G",\u01f4:"G",\u011c:"G",\u1e20:"G",\u011e:"G",\u0120:"G",\u01e6:"G",\u0122:"G",\u01e4:"G",\u0193:"G",\ua7a0:"G",\ua77d:"G",\ua77e:"G","\u24bd":"H",\uff28:"H",\u0124:"H",\u1e22:"H",\u1e26:"H",\u021e:"H",\u1e24:"H",\u1e28:"H",\u1e2a:"H",\u0126:"H",\u2c67:"H",\u2c75:"H",\ua78d:"H","\u24be":"I",\uff29:"I",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u0128:"I",\u012a:"I",\u012c:"I",\u0130:"I",\u00cf:"I",\u1e2e:"I",\u1ec8:"I",\u01cf:"I",\u0208:"I",\u020a:"I",\u1eca:"I",\u012e:"I",\u1e2c:"I",\u0197:"I","\u24bf":"J",\uff2a:"J",\u0134:"J",\u0248:"J","\u24c0":"K",\uff2b:"K",\u1e30:"K",\u01e8:"K",\u1e32:"K",\u0136:"K",\u1e34:"K",\u0198:"K",\u2c69:"K",\ua740:"K",\ua742:"K",\ua744:"K",\ua7a2:"K","\u24c1":"L",\uff2c:"L",\u013f:"L",\u0139:"L",\u013d:"L",\u1e36:"L",\u1e38:"L",\u013b:"L",\u1e3c:"L",\u1e3a:"L",\u0141:"L",\u023d:"L",\u2c62:"L",\u2c60:"L",\ua748:"L",\ua746:"L",\ua780:"L",\u01c7:"LJ",\u01c8:"Lj","\u24c2":"M",\uff2d:"M",\u1e3e:"M",\u1e40:"M",\u1e42:"M",\u2c6e:"M",\u019c:"M","\u24c3":"N",\uff2e:"N",\u01f8:"N",\u0143:"N",\u00d1:"N",\u1e44:"N",\u0147:"N",\u1e46:"N",\u0145:"N",\u1e4a:"N",\u1e48:"N",\u0220:"N",\u019d:"N",\ua790:"N",\ua7a4:"N",\u01ca:"NJ",\u01cb:"Nj","\u24c4":"O",\uff2f:"O",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u1ed2:"O",\u1ed0:"O",\u1ed6:"O",\u1ed4:"O",\u00d5:"O",\u1e4c:"O",\u022c:"O",\u1e4e:"O",\u014c:"O",\u1e50:"O",\u1e52:"O",\u014e:"O",\u022e:"O",\u0230:"O",\u00d6:"O",\u022a:"O",\u1ece:"O",\u0150:"O",\u01d1:"O",\u020c:"O",\u020e:"O",\u01a0:"O",\u1edc:"O",\u1eda:"O",\u1ee0:"O",\u1ede:"O",\u1ee2:"O",\u1ecc:"O",\u1ed8:"O",\u01ea:"O",\u01ec:"O",\u00d8:"O",\u01fe:"O",\u0186:"O",\u019f:"O",\ua74a:"O",\ua74c:"O",\u01a2:"OI",\ua74e:"OO",\u0222:"OU","\u24c5":"P",\uff30:"P",\u1e54:"P",\u1e56:"P",\u01a4:"P",\u2c63:"P",\ua750:"P",\ua752:"P",\ua754:"P","\u24c6":"Q",\uff31:"Q",\ua756:"Q",\ua758:"Q",\u024a:"Q","\u24c7":"R",\uff32:"R",\u0154:"R",\u1e58:"R",\u0158:"R",\u0210:"R",\u0212:"R",\u1e5a:"R",\u1e5c:"R",\u0156:"R",\u1e5e:"R",\u024c:"R",\u2c64:"R",\ua75a:"R",\ua7a6:"R",\ua782:"R","\u24c8":"S",\uff33:"S",\u1e9e:"S",\u015a:"S",\u1e64:"S",\u015c:"S",\u1e60:"S",\u0160:"S",\u1e66:"S",\u1e62:"S",\u1e68:"S",\u0218:"S",\u015e:"S",\u2c7e:"S",\ua7a8:"S",\ua784:"S","\u24c9":"T",\uff34:"T",\u1e6a:"T",\u0164:"T",\u1e6c:"T",\u021a:"T",\u0162:"T",\u1e70:"T",\u1e6e:"T",\u0166:"T",\u01ac:"T",\u01ae:"T",\u023e:"T",\ua786:"T",\ua728:"TZ","\u24ca":"U",\uff35:"U",\u00d9:"U",\u00da:"U",\u00db:"U",\u0168:"U",\u1e78:"U",\u016a:"U",\u1e7a:"U",\u016c:"U",\u00dc:"U",\u01db:"U",\u01d7:"U",\u01d5:"U",\u01d9:"U",\u1ee6:"U",\u016e:"U",\u0170:"U",\u01d3:"U",\u0214:"U",\u0216:"U",\u01af:"U",\u1eea:"U",\u1ee8:"U",\u1eee:"U",\u1eec:"U",\u1ef0:"U",\u1ee4:"U",\u1e72:"U",\u0172:"U",\u1e76:"U",\u1e74:"U",\u0244:"U","\u24cb":"V",\uff36:"V",\u1e7c:"V",\u1e7e:"V",\u01b2:"V",\ua75e:"V",\u0245:"V",\ua760:"VY","\u24cc":"W",\uff37:"W",\u1e80:"W",\u1e82:"W",\u0174:"W",\u1e86:"W",\u1e84:"W",\u1e88:"W",\u2c72:"W","\u24cd":"X",\uff38:"X",\u1e8a:"X",\u1e8c:"X","\u24ce":"Y",\uff39:"Y",\u1ef2:"Y",\u00dd:"Y",\u0176:"Y",\u1ef8:"Y",\u0232:"Y",\u1e8e:"Y",\u0178:"Y",\u1ef6:"Y",\u1ef4:"Y",\u01b3:"Y",\u024e:"Y",\u1efe:"Y","\u24cf":"Z",\uff3a:"Z",\u0179:"Z",\u1e90:"Z",\u017b:"Z",\u017d:"Z",\u1e92:"Z",\u1e94:"Z",\u01b5:"Z",\u0224:"Z",\u2c7f:"Z",\u2c6b:"Z",\ua762:"Z","\u24d0":"a",\uff41:"a",\u1e9a:"a",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u1ea7:"a",\u1ea5:"a",\u1eab:"a",\u1ea9:"a",\u00e3:"a",\u0101:"a",\u0103:"a",\u1eb1:"a",\u1eaf:"a",\u1eb5:"a",\u1eb3:"a",\u0227:"a",\u01e1:"a",\u00e4:"a",\u01df:"a",\u1ea3:"a",\u00e5:"a",\u01fb:"a",\u01ce:"a",\u0201:"a",\u0203:"a",\u1ea1:"a",\u1ead:"a",\u1eb7:"a",\u1e01:"a",\u0105:"a",\u2c65:"a",\u0250:"a",\ua733:"aa",\u00e6:"ae",\u01fd:"ae",\u01e3:"ae",\ua735:"ao",\ua737:"au",\ua739:"av",\ua73b:"av",\ua73d:"ay","\u24d1":"b",\uff42:"b",\u1e03:"b",\u1e05:"b",\u1e07:"b",\u0180:"b",\u0183:"b",\u0253:"b","\u24d2":"c",\uff43:"c",\u0107:"c",\u0109:"c",\u010b:"c",\u010d:"c",\u00e7:"c",\u1e09:"c",\u0188:"c",\u023c:"c",\ua73f:"c",\u2184:"c","\u24d3":"d",\uff44:"d",\u1e0b:"d",\u010f:"d",\u1e0d:"d",\u1e11:"d",\u1e13:"d",\u1e0f:"d",\u0111:"d",\u018c:"d",\u0256:"d",\u0257:"d",\ua77a:"d",\u01f3:"dz",\u01c6:"dz","\u24d4":"e",\uff45:"e",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u1ec1:"e",\u1ebf:"e",\u1ec5:"e",\u1ec3:"e",\u1ebd:"e",\u0113:"e",\u1e15:"e",\u1e17:"e",\u0115:"e",\u0117:"e",\u00eb:"e",\u1ebb:"e",\u011b:"e",\u0205:"e",\u0207:"e",\u1eb9:"e",\u1ec7:"e",\u0229:"e",\u1e1d:"e",\u0119:"e",\u1e19:"e",\u1e1b:"e",\u0247:"e",\u025b:"e",\u01dd:"e","\u24d5":"f",\uff46:"f",\u1e1f:"f",\u0192:"f",\ua77c:"f","\u24d6":"g",\uff47:"g",\u01f5:"g",\u011d:"g",\u1e21:"g",\u011f:"g",\u0121:"g",\u01e7:"g",\u0123:"g",\u01e5:"g",\u0260:"g",\ua7a1:"g",\u1d79:"g",\ua77f:"g","\u24d7":"h",\uff48:"h",\u0125:"h",\u1e23:"h",\u1e27:"h",\u021f:"h",\u1e25:"h",\u1e29:"h",\u1e2b:"h",\u1e96:"h",\u0127:"h",\u2c68:"h",\u2c76:"h",\u0265:"h",\u0195:"hv","\u24d8":"i",\uff49:"i",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u0129:"i",\u012b:"i",\u012d:"i",\u00ef:"i",\u1e2f:"i",\u1ec9:"i",\u01d0:"i",\u0209:"i",\u020b:"i",\u1ecb:"i",\u012f:"i",\u1e2d:"i",\u0268:"i",\u0131:"i","\u24d9":"j",\uff4a:"j",\u0135:"j",\u01f0:"j",\u0249:"j","\u24da":"k",\uff4b:"k",\u1e31:"k",\u01e9:"k",\u1e33:"k",\u0137:"k",\u1e35:"k",\u0199:"k",\u2c6a:"k",\ua741:"k",\ua743:"k",\ua745:"k",\ua7a3:"k","\u24db":"l",\uff4c:"l",\u0140:"l",\u013a:"l",\u013e:"l",\u1e37:"l",\u1e39:"l",\u013c:"l",\u1e3d:"l",\u1e3b:"l",\u017f:"l",\u0142:"l",\u019a:"l",\u026b:"l",\u2c61:"l",\ua749:"l",\ua781:"l",\ua747:"l",\u01c9:"lj","\u24dc":"m",\uff4d:"m",\u1e3f:"m",\u1e41:"m",\u1e43:"m",\u0271:"m",\u026f:"m","\u24dd":"n",\uff4e:"n",\u01f9:"n",\u0144:"n",\u00f1:"n",\u1e45:"n",\u0148:"n",\u1e47:"n",\u0146:"n",\u1e4b:"n",\u1e49:"n",\u019e:"n",\u0272:"n",\u0149:"n",\ua791:"n",\ua7a5:"n",\u01cc:"nj","\u24de":"o",\uff4f:"o",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u1ed3:"o",\u1ed1:"o",\u1ed7:"o",\u1ed5:"o",\u00f5:"o",\u1e4d:"o",\u022d:"o",\u1e4f:"o",\u014d:"o",\u1e51:"o",\u1e53:"o",\u014f:"o",\u022f:"o",\u0231:"o",\u00f6:"o",\u022b:"o",\u1ecf:"o",\u0151:"o",\u01d2:"o",\u020d:"o",\u020f:"o",\u01a1:"o",\u1edd:"o",\u1edb:"o",\u1ee1:"o",\u1edf:"o",\u1ee3:"o",\u1ecd:"o",\u1ed9:"o",\u01eb:"o",\u01ed:"o",\u00f8:"o",\u01ff:"o",\u0254:"o",\ua74b:"o",\ua74d:"o",\u0275:"o",\u01a3:"oi",\u0223:"ou",\ua74f:"oo","\u24df":"p",\uff50:"p",\u1e55:"p",\u1e57:"p",\u01a5:"p",\u1d7d:"p",\ua751:"p",\ua753:"p",\ua755:"p","\u24e0":"q",\uff51:"q",\u024b:"q",\ua757:"q",\ua759:"q","\u24e1":"r",\uff52:"r",\u0155:"r",\u1e59:"r",\u0159:"r",\u0211:"r",\u0213:"r",\u1e5b:"r",\u1e5d:"r",\u0157:"r",\u1e5f:"r",\u024d:"r",\u027d:"r",\ua75b:"r",\ua7a7:"r",\ua783:"r","\u24e2":"s",\uff53:"s",\u00df:"s",\u015b:"s",\u1e65:"s",\u015d:"s",\u1e61:"s",\u0161:"s",\u1e67:"s",\u1e63:"s",\u1e69:"s",\u0219:"s",\u015f:"s",\u023f:"s",\ua7a9:"s",\ua785:"s",\u1e9b:"s","\u24e3":"t",\uff54:"t",\u1e6b:"t",\u1e97:"t",\u0165:"t",\u1e6d:"t",\u021b:"t",\u0163:"t",\u1e71:"t",\u1e6f:"t",\u0167:"t",\u01ad:"t",\u0288:"t",\u2c66:"t",\ua787:"t",\ua729:"tz","\u24e4":"u",\uff55:"u",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u0169:"u",\u1e79:"u",\u016b:"u",\u1e7b:"u",\u016d:"u",\u00fc:"u",\u01dc:"u",\u01d8:"u",\u01d6:"u",\u01da:"u",\u1ee7:"u",\u016f:"u",\u0171:"u",\u01d4:"u",\u0215:"u",\u0217:"u",\u01b0:"u",\u1eeb:"u",\u1ee9:"u",\u1eef:"u",\u1eed:"u",\u1ef1:"u",\u1ee5:"u",\u1e73:"u",\u0173:"u",\u1e77:"u",\u1e75:"u",\u0289:"u","\u24e5":"v",\uff56:"v",\u1e7d:"v",\u1e7f:"v",\u028b:"v",\ua75f:"v",\u028c:"v",\ua761:"vy","\u24e6":"w",\uff57:"w",\u1e81:"w",\u1e83:"w",\u0175:"w",\u1e87:"w",\u1e85:"w",\u1e98:"w",\u1e89:"w",\u2c73:"w","\u24e7":"x",\uff58:"x",\u1e8b:"x",\u1e8d:"x","\u24e8":"y",\uff59:"y",\u1ef3:"y",\u00fd:"y",\u0177:"y",\u1ef9:"y",\u0233:"y",\u1e8f:"y",\u00ff:"y",\u1ef7:"y",\u1e99:"y",\u1ef5:"y",\u01b4:"y",\u024f:"y",\u1eff:"y","\u24e9":"z",\uff5a:"z",\u017a:"z",\u1e91:"z",\u017c:"z",\u017e:"z",\u1e93:"z",\u1e95:"z",\u01b6:"z",\u0225:"z",\u0240:"z",\u2c6c:"z",\ua763:"z",\u0386:"\u0391",\u0388:"\u0395",\u0389:"\u0397",\u038a:"\u0399",\u03aa:"\u0399",\u038c:"\u039f",\u038e:"\u03a5",\u03ab:"\u03a5",\u038f:"\u03a9",\u03ac:"\u03b1",\u03ad:"\u03b5",\u03ae:"\u03b7",\u03af:"\u03b9",\u03ca:"\u03b9",\u0390:"\u03b9",\u03cc:"\u03bf",\u03cd:"\u03c5",\u03cb:"\u03c5",\u03b0:"\u03c5",\u03c9:"\u03c9",\u03c2:"\u03c3"};function mt(le){return le.replace(/[^\u0000-\u007E]/g,Le=>Kn[Le]||Le)}class Nt{constructor(Me,Le){this._ngSelect=Me,this._selectionModel=Le,this._items=[],this._filteredItems=[],this._markedIndex=-1}get items(){return this._items}get filteredItems(){return this._filteredItems}get markedIndex(){return this._markedIndex}get selectedItems(){return this._selectionModel.value}get markedItem(){return this._filteredItems[this._markedIndex]}get noItemsToSelect(){return this._ngSelect.hideSelected&&this._items.length===this.selectedItems.length}get maxItemsSelected(){return this._ngSelect.multiple&&this._ngSelect.maxSelectedItems<=this.selectedItems.length}get lastSelectedItem(){let Me=this.selectedItems.length-1;for(;Me>=0;Me--){const Le=this.selectedItems[Me];if(!Le.disabled)return Le}return null}setItems(Me){this._items=Me.map((Le,A)=>this.mapItem(Le,A)),this._ngSelect.groupBy?(this._groups=this._groupBy(this._items,this._ngSelect.groupBy),this._items=this._flatten(this._groups)):(this._groups=new Map,this._groups.set(void 0,this._items)),this._filteredItems=[...this._items]}select(Me){if(Me.selected||this.maxItemsSelected)return;const Le=this._ngSelect.multiple;Le||this.clearSelected(),this._selectionModel.select(Me,Le,this._ngSelect.selectableGroupAsModel),this._ngSelect.hideSelected&&this._hideSelected(Me)}unselect(Me){Me.selected&&(this._selectionModel.unselect(Me,this._ngSelect.multiple),this._ngSelect.hideSelected&&tt(Me.index)&&this._ngSelect.multiple&&this._showSelected(Me))}findItem(Me){let Le;return Le=this._ngSelect.compareWith?A=>this._ngSelect.compareWith(A.value,Me):this._ngSelect.bindValue?A=>!A.children&&this.resolveNested(A.value,this._ngSelect.bindValue)===Me:A=>A.value===Me||!A.children&&A.label&&A.label===this.resolveNested(Me,this._ngSelect.bindLabel),this._items.find(A=>Le(A))}addItem(Me){const Le=this.mapItem(Me,this._items.length);return this._items.push(Le),this._filteredItems.push(Le),Le}clearSelected(Me=!1){this._selectionModel.clear(Me),this._items.forEach(Le=>{Le.selected=Me&&Le.selected&&Le.disabled,Le.marked=!1}),this._ngSelect.hideSelected&&this.resetFilteredItems()}findByLabel(Me){return Me=mt(Me).toLocaleLowerCase(),this.filteredItems.find(Le=>mt(Le.label).toLocaleLowerCase().substr(0,Me.length)===Me)}filter(Me){if(!Me)return void this.resetFilteredItems();this._filteredItems=[],Me=this._ngSelect.searchFn?Me:mt(Me).toLocaleLowerCase();const Le=this._ngSelect.searchFn||this._defaultSearchFn,A=this._ngSelect.hideSelected;for(const H of Array.from(this._groups.keys())){const Be=[];for(const I of this._groups.get(H))A&&(I.parent&&I.parent.selected||I.selected)||Le(Me,this._ngSelect.searchFn?I.value:I)&&Be.push(I);if(Be.length>0){const[I]=Be.slice(-1);if(I.parent){const k=this._items.find(Oe=>Oe===I.parent);this._filteredItems.push(k)}this._filteredItems.push(...Be)}}}resetFilteredItems(){this._filteredItems.length!==this._items.length&&(this._filteredItems=this._ngSelect.hideSelected&&this.selectedItems.length>0?this._items.filter(Me=>!Me.selected):this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(Me){this._markedIndex=this._filteredItems.indexOf(Me)}markSelectedOrDefault(Me){if(0===this._filteredItems.length)return;const Le=this._getLastMarkedIndex();this._markedIndex=Le>-1?Le:Me?this.filteredItems.findIndex(A=>!A.disabled):-1}resolveNested(Me,Le){if(!z(Me))return Me;if(-1===Le.indexOf("."))return Me[Le];{const A=Le.split(".");let H=Me;for(let Be=0,I=A.length;Be-1===this.selectedItems.indexOf(Le)))}_showSelected(Me){if(this._filteredItems.push(Me),Me.parent){const Le=Me.parent;this._filteredItems.find(H=>H===Le)||this._filteredItems.push(Le)}else if(Me.children)for(const Le of Me.children)Le.selected=!1,this._filteredItems.push(Le);this._filteredItems=[...this._filteredItems.sort((Le,A)=>Le.index-A.index)]}_hideSelected(Me){this._filteredItems=this._filteredItems.filter(Le=>Le!==Me),Me.parent?Me.parent.children.every(A=>A.selected)&&(this._filteredItems=this._filteredItems.filter(A=>A!==Me.parent)):Me.children&&(this._filteredItems=this.filteredItems.filter(Le=>Le.parent!==Me))}_defaultSearchFn(Me,Le){return mt(Le.label).toLocaleLowerCase().indexOf(Me)>-1}_getNextItemIndex(Me){return Me>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(Me){0===this._filteredItems.length||this._filteredItems.every(Le=>Le.disabled)||(this._markedIndex=this._getNextItemIndex(Me),this.markedItem.disabled&&this._stepToItem(Me))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected||this._markedIndex>-1&&void 0===this.markedItem)return-1;const Me=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&Me<0?-1:Math.max(this.markedIndex,Me)}_groupBy(Me,Le){const A=new Map;if(0===Me.length)return A;if(Array.isArray(Me[0].value[Le])){for(const I of Me){const k=(I.value[Le]||[]).map((Oe,Qe)=>this.mapItem(Oe,Qe));A.set(I,k)}return A}const H=F(this._ngSelect.groupBy),Be=I=>{const k=H?Le(I.value):I.value[Le];return tt(k)?k:void 0};for(const I of Me){const k=Be(I),Oe=A.get(k);Oe?Oe.push(I):A.set(k,[I])}return A}_flatten(Me){const Le=F(this._ngSelect.groupBy),A=[];for(const H of Array.from(Me.keys())){let Be=A.length;if(void 0===H){const Et=Me.get(void 0)||[];A.push(...Et.map(Gt=>(Gt.index=Be++,Gt)));continue}const I=z(H),k={label:I?"":String(H),children:void 0,parent:null,index:Be++,disabled:!this._ngSelect.selectableGroup,htmlId:un()},Oe=Le?this._ngSelect.bindLabel:this._ngSelect.groupBy,Qe=this._ngSelect.groupValue||(()=>I?H.value:{[Oe]:H}),pt=Me.get(H).map(Et=>(Et.parent=k,Et.children=void 0,Et.index=Be++,Et));k.children=pt,k.value=Qe(H,pt.map(Et=>Et.value)),A.push(k),A.push(...pt)}return A}}var kt=function(le){return le[le.Tab=9]="Tab",le[le.Enter=13]="Enter",le[le.Esc=27]="Esc",le[le.Space=32]="Space",le[le.ArrowUp=38]="ArrowUp",le[le.ArrowDown=40]="ArrowDown",le[le.Backspace=8]="Backspace",le}(kt||{});let ut=(()=>{var le;class Me{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(A,H,Be){const I=this._dimensions,k=I.itemHeight*H,Qe=Math.max(0,A)/k*H;let pt=Math.min(H,Math.ceil(Qe)+(I.itemsPerViewport+1));const Gt=Math.max(0,pt-I.itemsPerViewport);let Pt=Math.min(Gt,Math.floor(Qe)),Vn=I.itemHeight*Math.ceil(Pt)-I.itemHeight*Math.min(Pt,Be);return Vn=isNaN(Vn)?0:Vn,Pt=isNaN(Pt)?-1:Pt,pt=isNaN(pt)?-1:pt,Pt-=Be,Pt=Math.max(0,Pt),pt+=Be,pt=Math.min(H,pt),{topPadding:Vn,scrollHeight:k,start:Pt,end:pt}}setDimensions(A,H){const Be=Math.max(1,Math.floor(H/A));this._dimensions={itemHeight:A,panelHeight:H,itemsPerViewport:Be}}getScrollTo(A,H,Be){const{panelHeight:I}=this.dimensions,k=A+H,Qe=Be+I;return I>=k&&Be===A?null:k>Qe?Be+k-Qe:A<=Be?A:null}}return(le=Me).\u0275fac=function(A){return new(A||le)},le.\u0275prov=i.Yz7({token:le,factory:le.\u0275fac}),Me})();const Ct=["top","right","bottom","left"],en=typeof requestAnimationFrame<"u"?K.r:ne.e;let mn=(()=>{var le;class Me{constructor(A,H,Be,I,k){this._renderer=A,this._zone=H,this._panelService=Be,this._document=k,this.items=[],this.position="auto",this.virtualScroll=!1,this.filterValue=null,this.update=new i.vpe,this.scroll=new i.vpe,this.scrollToEnd=new i.vpe,this.outsideClick=new i.vpe,this._destroy$=new he.xQ,this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._dropdown=I.nativeElement}get currentPosition(){return this._currentPosition}get itemsLength(){return this._itemsLength}set itemsLength(A){A!==this._itemsLength&&(this._itemsLength=A,this._onItemsLengthChanged())}get _startOffset(){if(this.markedItem){const{itemHeight:A,panelHeight:H}=this._panelService.dimensions,Be=this.markedItem.index*A;return H>Be?0:Be}return 0}ngOnInit(){this._select=this._dropdown.parentElement,this._virtualPadding=this.paddingElementRef.nativeElement,this._scrollablePanel=this.scrollElementRef.nativeElement,this._contentPanel=this.contentElementRef.nativeElement,this._handleScroll(),this._handleOutsideClick(),this._appendDropdown(),this._setupMousedownListener()}ngOnChanges(A){if(A.items){const H=A.items;this._onItemsChange(H.currentValue,H.firstChange)}}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this._destroy$.unsubscribe(),this.appendTo&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)}scrollTo(A,H=!1){if(!A)return;const Be=this.items.indexOf(A);if(Be<0||Be>=this.itemsLength)return;let I;if(this.virtualScroll){const k=this._panelService.dimensions.itemHeight;I=this._panelService.getScrollTo(Be*k,k,this._lastScrollPosition)}else{const k=this._dropdown.querySelector(`#${A.htmlId}`);I=this._panelService.getScrollTo(k.offsetTop,k.clientHeight,H?k.offsetTop:this._lastScrollPosition)}tt(I)&&(this._scrollablePanel.scrollTop=I)}scrollToTag(){const A=this._scrollablePanel;A.scrollTop=A.scrollHeight-A.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),Ct.includes(this._currentPosition)?this._updateDropdownClass(this._currentPosition):this._updateDropdownClass("bottom"),this.appendTo&&this._updateYPosition(),this._dropdown.style.opacity="1"}_updateDropdownClass(A){Ct.forEach(Be=>{const I=`ng-select-${Be}`;this._renderer.removeClass(this._dropdown,I),this._renderer.removeClass(this._select,I)});const H=`ng-select-${A}`;this._renderer.addClass(this._dropdown,H),this._renderer.addClass(this._select,H)}_handleScroll(){this._zone.runOutsideAngular(()=>{(0,U.R)(this.scrollElementRef.nativeElement,"scroll").pipe((0,m.R)(this._destroy$),(0,L.e)(0,en)).subscribe(A=>{const H=A.path||A.composedPath&&A.composedPath();this._onContentScrolled(H&&0!==H.length?H[0].scrollTop:A.target.scrollTop)})})}_handleOutsideClick(){this._document&&this._zone.runOutsideAngular(()=>{(0,$e.T)((0,U.R)(this._document,"touchstart",{capture:!0}),(0,U.R)(this._document,"mousedown",{capture:!0})).pipe((0,m.R)(this._destroy$)).subscribe(A=>this._checkToClose(A))})}_checkToClose(A){if(this._select.contains(A.target)||this._dropdown.contains(A.target))return;const H=A.path||A.composedPath&&A.composedPath();A.target&&A.target.shadowRoot&&H&&H[0]&&this._select.contains(H[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsChange(A,H){this.items=A||[],this._scrollToEndFired=!1,this.itemsLength=A.length,this.virtualScroll?this._updateItemsRange(H):(this._setVirtualHeight(),this._updateItems(H))}_updateItems(A){this.update.emit(this.items),!1!==A&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._panelService.setDimensions(0,this._scrollablePanel.clientHeight),this._handleDropdownPosition(),this.scrollTo(this.markedItem,A)})})}_updateItemsRange(A){this._zone.runOutsideAngular(()=>{this._measureDimensions().then(()=>{A?(this._renderItemsRange(this._startOffset),this._handleDropdownPosition()):this._renderItemsRange()})})}_onContentScrolled(A){this.virtualScroll&&this._renderItemsRange(A),this._lastScrollPosition=A,this._fireScrollToEnd(A)}_updateVirtualHeight(A){this._updateScrollHeight&&(this._virtualPadding.style.height=`${A}px`,this._updateScrollHeight=!1)}_setVirtualHeight(){this._virtualPadding&&(this._virtualPadding.style.height="0px")}_onItemsLengthChanged(){this._updateScrollHeight=!0}_renderItemsRange(A=null){if(A&&this._lastScrollPosition===A)return;const H=this._panelService.calculateItems(A=A||this._scrollablePanel.scrollTop,this.itemsLength,this.bufferAmount);this._updateVirtualHeight(H.scrollHeight),this._contentPanel.style.transform=`translateY(${H.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items.slice(H.start,H.end)),this.scroll.emit({start:H.start,end:H.end})}),tt(A)&&0===this._lastScrollPosition&&(this._scrollablePanel.scrollTop=A,this._lastScrollPosition=A)}_measureDimensions(){if(this._panelService.dimensions.itemHeight>0||0===this.itemsLength)return Promise.resolve(this._panelService.dimensions);const[A]=this.items;return this.update.emit([A]),Promise.resolve().then(()=>{const Be=this._dropdown.querySelector(`#${A.htmlId}`).clientHeight;return this._virtualPadding.style.height=Be*this.itemsLength+"px",this._panelService.setDimensions(Be,this._scrollablePanel.clientHeight),this._panelService.dimensions})}_fireScrollToEnd(A){this._scrollToEndFired||0===A||A+this._dropdown.clientHeight>=(this.virtualScroll?this._virtualPadding:this._contentPanel).clientHeight-1&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(A){if("auto"!==this.position)return this.position;const H=this._select.getBoundingClientRect(),Be=document.documentElement.scrollTop||document.body.scrollTop;return H.top+window.pageYOffset+H.height+A.getBoundingClientRect().height>Be+document.documentElement.clientHeight?"top":"bottom"}_appendDropdown(){if(this.appendTo){if(this._parent=document.querySelector(this.appendTo),!this._parent)throw new Error(`appendTo selector ${this.appendTo} did not found any parent element`);this._updateXPosition(),this._parent.appendChild(this._dropdown)}}_updateXPosition(){const A=this._select.getBoundingClientRect(),H=this._parent.getBoundingClientRect();this._dropdown.style.left=A.left-H.left+"px",this._dropdown.style.width=A.width+"px",this._dropdown.style.minWidth=A.width+"px"}_updateYPosition(){const A=this._select.getBoundingClientRect(),H=this._parent.getBoundingClientRect(),Be=A.height;"top"===this._currentPosition?(this._dropdown.style.bottom=H.bottom-A.bottom+Be+"px",this._dropdown.style.top="auto"):"bottom"===this._currentPosition&&(this._dropdown.style.top=A.top-H.top+Be+"px",this._dropdown.style.bottom="auto")}_setupMousedownListener(){this._zone.runOutsideAngular(()=>{(0,U.R)(this._dropdown,"mousedown").pipe((0,m.R)(this._destroy$)).subscribe(A=>{"INPUT"!==A.target.tagName&&A.preventDefault()})})}}return(le=Me).\u0275fac=function(A){return new(A||le)(i.Y36(i.Qsj),i.Y36(i.R0b),i.Y36(ut),i.Y36(i.SBq),i.Y36($.K0,8))},le.\u0275cmp=i.Xpm({type:le,selectors:[["ng-dropdown-panel"]],viewQuery:function(A,H){if(1&A&&(i.Gf(ge,7,i.SBq),i.Gf(Ne,7,i.SBq),i.Gf(ie,7,i.SBq)),2&A){let Be;i.iGM(Be=i.CRH())&&(H.contentElementRef=Be.first),i.iGM(Be=i.CRH())&&(H.scrollElementRef=Be.first),i.iGM(Be=i.CRH())&&(H.paddingElementRef=Be.first)}},inputs:{items:"items",markedItem:"markedItem",position:"position",appendTo:"appendTo",bufferAmount:"bufferAmount",virtualScroll:"virtualScroll",headerTemplate:"headerTemplate",footerTemplate:"footerTemplate",filterValue:"filterValue"},outputs:{update:"update",scroll:"scroll",scrollToEnd:"scrollToEnd",outsideClick:"outsideClick"},features:[i.TTD],ngContentSelectors:Ve,decls:9,vars:6,consts:[["class","ng-dropdown-header",4,"ngIf"],["role","listbox",1,"ng-dropdown-panel-items","scroll-host"],["scroll",""],["padding",""],["content",""],["class","ng-dropdown-footer",4,"ngIf"],[1,"ng-dropdown-header"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ng-dropdown-footer"]],template:function(A,H){1&A&&(i.F$t(),i.YNc(0,x,2,4,"div",0),i.TgZ(1,"div",1,2),i._UZ(3,"div",null,3),i.TgZ(5,"div",null,4),i.Hsn(7),i.qZA()(),i.YNc(8,X,2,4,"div",5)),2&A&&(i.Q6J("ngIf",H.headerTemplate),i.xp6(3),i.ekj("total-padding",H.virtualScroll),i.xp6(2),i.ekj("scrollable-content",H.virtualScroll&&H.items.length),i.xp6(3),i.Q6J("ngIf",H.footerTemplate))},dependencies:[$.O5,$.tP],encapsulation:2,changeDetection:0}),Me})(),Xn=(()=>{var le;class Me{get disabled(){return this._disabled}set disabled(A){this._disabled=this._isDisabled(A)}constructor(A){this.elementRef=A,this.stateChange$=new he.xQ,this._disabled=!1}get label(){return(this.elementRef.nativeElement.textContent||"").trim()}ngOnChanges(A){A.disabled&&this.stateChange$.next({value:this.value,disabled:this._disabled})}ngAfterViewChecked(){this.label!==this._previousLabel&&(this._previousLabel=this.label,this.stateChange$.next({value:this.value,disabled:this._disabled,label:this.elementRef.nativeElement.innerHTML}))}ngOnDestroy(){this.stateChange$.complete()}_isDisabled(A){return null!=A&&"false"!=`${A}`}}return(le=Me).\u0275fac=function(A){return new(A||le)(i.Y36(i.SBq))},le.\u0275cmp=i.Xpm({type:le,selectors:[["ng-option"]],inputs:{value:"value",disabled:"disabled"},features:[i.TTD],ngContentSelectors:Ve,decls:1,vars:0,template:function(A,H){1&A&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0}),Me})(),Bn=(()=>{var le;class Me{constructor(){this.notFoundText="No items found",this.typeToSearchText="Type to search",this.addTagText="Add item",this.loadingText="Loading...",this.clearAllText="Clear all",this.disableVirtualScroll=!0,this.openOnEnter=!0,this.appearance="underline"}}return(le=Me).\u0275fac=function(A){return new(A||le)},le.\u0275prov=i.Yz7({token:le,factory:le.\u0275fac,providedIn:"root"}),Me})(),gt=(()=>{var le;class Me{warn(A){console.warn(A)}}return(le=Me).\u0275fac=function(A){return new(A||le)},le.\u0275prov=i.Yz7({token:le,factory:le.\u0275fac,providedIn:"root"}),Me})();const ve=new i.OlP("ng-select-selection-model");let Ee=(()=>{var le;class Me{get items(){return this._items}set items(A){null===A&&(A=[]),this._itemsAreUsed=!0,this._items=A}get compareWith(){return this._compareWith}set compareWith(A){if(null!=A&&!F(A))throw Error("`compareWith` must be a function.");this._compareWith=A}get clearSearchOnAdd(){return tt(this._clearSearchOnAdd)?this._clearSearchOnAdd:tt(this.config.clearSearchOnAdd)?this.config.clearSearchOnAdd:this.closeOnSelect}set clearSearchOnAdd(A){this._clearSearchOnAdd=A}get deselectOnClick(){return tt(this._deselectOnClick)?this._deselectOnClick:tt(this.config.deselectOnClick)?this.config.deselectOnClick:this.multiple}set deselectOnClick(A){this._deselectOnClick=A}get disabled(){return this.readonly||this._disabled}get filtered(){return!!this.searchTerm&&this.searchable||this._isComposing}get single(){return!this.multiple}get _editableSearchTerm(){return this.editableSearchTerm&&!this.multiple}constructor(A,H,Be,I,k,Oe,Qe){this.classes=A,this.autoFocus=H,this.config=Be,this._cd=Oe,this._console=Qe,this.markFirst=!0,this.dropdownPosition="auto",this.loading=!1,this.closeOnSelect=!0,this.hideSelected=!1,this.selectOnTab=!1,this.bufferAmount=4,this.selectableGroup=!1,this.selectableGroupAsModel=!0,this.searchFn=null,this.trackByFn=null,this.clearOnBackspace=!0,this.labelForId=null,this.inputAttrs={},this.readonly=!1,this.searchWhileComposing=!0,this.minTermLength=0,this.editableSearchTerm=!1,this.keyDownFn=pt=>!0,this.multiple=!1,this.addTag=!1,this.searchable=!0,this.clearable=!0,this.isOpen=!1,this.blurEvent=new i.vpe,this.focusEvent=new i.vpe,this.changeEvent=new i.vpe,this.openEvent=new i.vpe,this.closeEvent=new i.vpe,this.searchEvent=new i.vpe,this.clearEvent=new i.vpe,this.addEvent=new i.vpe,this.removeEvent=new i.vpe,this.scroll=new i.vpe,this.scrollToEnd=new i.vpe,this.useDefaultClass=!0,this.viewPortItems=[],this.searchTerm=null,this.dropdownId=un(),this.escapeHTML=!0,this._items=[],this._defaultLabel="label",this._pressedKeys=[],this._isComposing=!1,this._destroy$=new he.xQ,this._keyPress$=new he.xQ,this._onChange=pt=>{},this._onTouched=()=>{},this.clearItem=pt=>{const Et=this.selectedItems.find(Gt=>Gt.value===pt);this.unselect(Et)},this.trackByOption=(pt,Et)=>this.trackByFn?this.trackByFn(Et.value):Et,this._mergeGlobalConfig(Be),this.itemsList=new Nt(this,I()),this.element=k.nativeElement}get selectedItems(){return this.itemsList.selectedItems}get selectedValues(){return this.selectedItems.map(A=>A.value)}get hasValue(){return this.selectedItems.length>0}get currentPanelPosition(){if(this.dropdownPanel)return this.dropdownPanel.currentPosition}ngOnInit(){this._handleKeyPresses(),this._setInputAttributes()}ngOnChanges(A){A.multiple&&this.itemsList.clearSelected(),A.items&&this._setItems(A.items.currentValue||[]),A.isOpen&&(this._manualOpen=tt(A.isOpen.currentValue))}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),tt(this.autoFocus)&&this.focus()}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete()}handleKeyDown(A){if(kt[A.which]){if(!1===this.keyDownFn(A))return;this.handleKeyCode(A)}else A.key&&1===A.key.length&&this._keyPress$.next(A.key.toLocaleLowerCase())}handleKeyCode(A){switch(A.which){case kt.ArrowDown:this._handleArrowDown(A);break;case kt.ArrowUp:this._handleArrowUp(A);break;case kt.Space:this._handleSpace(A);break;case kt.Enter:this._handleEnter(A);break;case kt.Tab:this._handleTab(A);break;case kt.Esc:this.close(),A.preventDefault();break;case kt.Backspace:this._handleBackspace()}}handleMousedown(A){const H=A.target;"INPUT"!==H.tagName&&A.preventDefault(),H.classList.contains("ng-clear-wrapper")?this.handleClearClick():H.classList.contains("ng-arrow-wrapper")?this.handleArrowClick():H.classList.contains("ng-value-icon")||(this.focused||this.focus(),this.searchable?this.open():this.toggle())}handleArrowClick(){this.isOpen?this.close():this.open()}handleClearClick(){this.hasValue&&(this.itemsList.clearSelected(!0),this._updateNgModel()),this._clearSearch(),this.focus(),this.clearEvent.emit(),this._onSelectionChanged()}clearModel(){this.clearable&&(this.itemsList.clearSelected(),this._updateNgModel())}writeValue(A){this.itemsList.clearSelected(),this._handleWriteValue(A),this._cd.markForCheck()}registerOnChange(A){this._onChange=A}registerOnTouched(A){this._onTouched=A}setDisabledState(A){this._disabled=A,this._cd.markForCheck()}toggle(){this.isOpen?this.close():this.open()}open(){this.disabled||this.isOpen||this._manualOpen||!this._isTypeahead&&!this.addTag&&this.itemsList.noItemsToSelect||(this.isOpen=!0,this.itemsList.markSelectedOrDefault(this.markFirst),this.openEvent.emit(),this.searchTerm||this.focus(),this.detectChanges())}close(){!this.isOpen||this._manualOpen||(this.isOpen=!1,this._isComposing=!1,this._editableSearchTerm?this.itemsList.resetFilteredItems():this._clearSearch(),this.itemsList.unmarkItem(),this._onTouched(),this.closeEvent.emit(),this._cd.markForCheck())}toggleItem(A){!A||A.disabled||this.disabled||(this.deselectOnClick&&A.selected?this.unselect(A):this.select(A),this._editableSearchTerm&&this._setSearchTermFromItems(),this._onSelectionChanged())}select(A){A.selected||(this.itemsList.select(A),this.clearSearchOnAdd&&!this._editableSearchTerm&&this._clearSearch(),this._updateNgModel(),this.multiple&&this.addEvent.emit(A.value)),(this.closeOnSelect||this.itemsList.noItemsToSelect)&&this.close()}focus(){this.searchInput.nativeElement.readOnly||this.searchInput.nativeElement.focus()}blur(){this.searchInput.nativeElement.blur()}unselect(A){A&&(this.itemsList.unselect(A),this.focus(),this._updateNgModel(),this.removeEvent.emit(A))}selectTag(){let A;A=F(this.addTag)?this.addTag(this.searchTerm):this._primitive?this.searchTerm:{[this.bindLabel]:this.searchTerm};const H=Be=>this._isTypeahead||!this.isOpen?this.itemsList.mapItem(Be,null):this.itemsList.addItem(Be);!function Ae(le){return le instanceof Promise}(A)?A&&this.select(H(A)):A.then(Be=>this.select(H(Be))).catch(()=>{})}showClear(){return this.clearable&&(this.hasValue||this.searchTerm)&&!this.disabled}get showAddTag(){if(!this._validTerm)return!1;const A=this.searchTerm.toLowerCase().trim();return this.addTag&&!this.itemsList.filteredItems.some(H=>H.label.toLowerCase()===A)&&(!this.hideSelected&&this.isOpen||!this.selectedItems.some(H=>H.label.toLowerCase()===A))&&!this.loading}showNoItemsFound(){const A=0===this.itemsList.filteredItems.length;return(A&&!this._isTypeahead&&!this.loading||A&&this._isTypeahead&&this._validTerm&&!this.loading)&&!this.showAddTag}showTypeToSearch(){return 0===this.itemsList.filteredItems.length&&this._isTypeahead&&!this._validTerm&&!this.loading}onCompositionStart(){this._isComposing=!0}onCompositionEnd(A){this._isComposing=!1,!this.searchWhileComposing&&this.filter(A)}filter(A){this._isComposing&&!this.searchWhileComposing||(this.searchTerm=A,this._isTypeahead&&(this._validTerm||0===this.minTermLength)&&this.typeahead.next(A),this._isTypeahead||(this.itemsList.filter(this.searchTerm),this.isOpen&&this.itemsList.markSelectedOrDefault(this.markFirst)),this.searchEvent.emit({term:A,items:this.itemsList.filteredItems.map(H=>H.value)}),this.open())}onInputFocus(A){this.focused||(this._editableSearchTerm&&this._setSearchTermFromItems(),this.element.classList.add("ng-select-focused"),this.focusEvent.emit(A),this.focused=!0)}onInputBlur(A){this.element.classList.remove("ng-select-focused"),this.blurEvent.emit(A),!this.isOpen&&!this.disabled&&this._onTouched(),this._editableSearchTerm&&this._setSearchTermFromItems(),this.focused=!1}onItemHover(A){A.disabled||this.itemsList.markItem(A)}detectChanges(){this._cd.destroyed||this._cd.detectChanges()}_setSearchTermFromItems(){const A=this.selectedItems&&this.selectedItems[0];this.searchTerm=A&&A.label||null}_setItems(A){const H=A[0];this.bindLabel=this.bindLabel||this._defaultLabel,this._primitive=tt(H)?!z(H):this._primitive||this.bindLabel===this._defaultLabel,this.itemsList.setItems(A),A.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen&&tt(this.searchTerm)&&!this._isTypeahead&&this.itemsList.filter(this.searchTerm),(this._isTypeahead||this.isOpen)&&this.itemsList.markSelectedOrDefault(this.markFirst)}_setItemsFromNgOptions(){const A=Be=>{this.items=Be.map(I=>({$ngOptionValue:I.value,$ngOptionLabel:I.elementRef.nativeElement.innerHTML,disabled:I.disabled})),this.itemsList.setItems(this.items),this.hasValue&&this.itemsList.mapSelectedItems(),this.detectChanges()},H=()=>{const Be=(0,$e.T)(this.ngOptions.changes,this._destroy$);(0,$e.T)(...this.ngOptions.map(I=>I.stateChange$)).pipe((0,m.R)(Be)).subscribe(I=>{const k=this.itemsList.findItem(I.value);k.disabled=I.disabled,k.label=I.label||k.label,this._cd.detectChanges()})};this.ngOptions.changes.pipe((0,f.O)(this.ngOptions),(0,m.R)(this._destroy$)).subscribe(Be=>{this.bindLabel=this._defaultLabel,A(Be),H()})}_isValidWriteValue(A){if(!tt(A)||this.multiple&&""===A||Array.isArray(A)&&0===A.length)return!1;const H=Be=>!(!tt(this.compareWith)&&z(Be)&&this.bindValue&&(this._console.warn(`Setting object(${JSON.stringify(Be)}) as your model with bindValue is not allowed unless [compareWith] is used.`),1));return this.multiple?Array.isArray(A)?A.every(Be=>H(Be)):(this._console.warn("Multiple select ngModel should be array."),!1):H(A)}_handleWriteValue(A){if(!this._isValidWriteValue(A))return;const H=Be=>{let I=this.itemsList.findItem(Be);if(I)this.itemsList.select(I);else{const k=z(Be);k||!k&&!this.bindValue?this.itemsList.select(this.itemsList.mapItem(Be,null)):this.bindValue&&(I={[this.bindLabel]:null,[this.bindValue]:Be},this.itemsList.select(this.itemsList.mapItem(I,null)))}};this.multiple?A.forEach(Be=>H(Be)):H(A)}_handleKeyPresses(){this.searchable||this._keyPress$.pipe((0,m.R)(this._destroy$),(0,W.b)(A=>this._pressedKeys.push(A)),(0,re.b)(200),(0,q.h)(()=>this._pressedKeys.length>0),(0,ae.U)(()=>this._pressedKeys.join(""))).subscribe(A=>{const H=this.itemsList.findByLabel(A);H&&(this.isOpen?(this.itemsList.markItem(H),this._scrollToMarked(),this._cd.markForCheck()):this.select(H)),this._pressedKeys=[]})}_setInputAttributes(){const A=this.searchInput.nativeElement,H={type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:this.labelForId?"off":this.dropdownId,...this.inputAttrs};for(const Be of Object.keys(H))A.setAttribute(Be,H[Be])}_updateNgModel(){const A=[];for(const Be of this.selectedItems)if(this.bindValue){let I=null;I=Be.children?Be.value[(this.groupValue?this.bindValue:this.groupBy)||this.groupBy]:this.itemsList.resolveNested(Be.value,this.bindValue),A.push(I)}else A.push(Be.value);const H=this.selectedItems.map(Be=>Be.value);this.multiple?(this._onChange(A),this.changeEvent.emit(H)):(this._onChange(tt(A[0])?A[0]:null),this.changeEvent.emit(H[0])),this._cd.markForCheck()}_clearSearch(){this.searchTerm&&(this._changeSearch(null),this.itemsList.resetFilteredItems())}_changeSearch(A){this.searchTerm=A,this._isTypeahead&&this.typeahead.next(A)}_scrollToMarked(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollTo(this.itemsList.markedItem)}_scrollToTag(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollToTag()}_onSelectionChanged(){this.isOpen&&this.deselectOnClick&&this.appendTo&&(this._cd.detectChanges(),this.dropdownPanel.adjustPosition())}_handleTab(A){!1===this.isOpen&&!this.addTag||(this.selectOnTab?this.itemsList.markedItem?(this.toggleItem(this.itemsList.markedItem),A.preventDefault()):this.showAddTag?(this.selectTag(),A.preventDefault()):this.close():this.close())}_handleEnter(A){if(this.isOpen||this._manualOpen)this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.showAddTag&&this.selectTag();else{if(!this.openOnEnter)return;this.open()}A.preventDefault()}_handleSpace(A){this.isOpen||this._manualOpen||(this.open(),A.preventDefault())}_handleArrowDown(A){this._nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),A.preventDefault()}_handleArrowUp(A){this.isOpen&&(this._nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),A.preventDefault())}_nextItemIsTag(A){const H=this.itemsList.markedIndex+A;return this.addTag&&this.searchTerm&&this.itemsList.markedItem&&(H<0||H===this.itemsList.filteredItems.length)}_handleBackspace(){this.searchTerm||!this.clearable||!this.clearOnBackspace||!this.hasValue||(this.multiple?this.unselect(this.itemsList.lastSelectedItem):this.clearModel())}get _isTypeahead(){return this.typeahead&&this.typeahead.observers.length>0}get _validTerm(){const A=this.searchTerm&&this.searchTerm.trim();return A&&A.length>=this.minTermLength}_mergeGlobalConfig(A){this.placeholder=this.placeholder||A.placeholder,this.notFoundText=this.notFoundText||A.notFoundText,this.typeToSearchText=this.typeToSearchText||A.typeToSearchText,this.addTagText=this.addTagText||A.addTagText,this.loadingText=this.loadingText||A.loadingText,this.clearAllText=this.clearAllText||A.clearAllText,this.virtualScroll=tt(this.virtualScroll)?this.virtualScroll:!!tt(A.disableVirtualScroll)&&!A.disableVirtualScroll,this.openOnEnter=tt(this.openOnEnter)?this.openOnEnter:A.openOnEnter,this.appendTo=this.appendTo||A.appendTo,this.bindValue=this.bindValue||A.bindValue,this.bindLabel=this.bindLabel||A.bindLabel,this.appearance=this.appearance||A.appearance}}return(le=Me).\u0275fac=function(A){return new(A||le)(i.$8M("class"),i.$8M("autofocus"),i.Y36(Bn),i.Y36(ve),i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(gt))},le.\u0275cmp=i.Xpm({type:le,selectors:[["ng-select"]],contentQueries:function(A,H,Be){if(1&A&&(i.Suo(Be,Ye,5,i.Rgc),i.Suo(Be,St,5,i.Rgc),i.Suo(Be,Ft,5,i.Rgc),i.Suo(Be,Bt,5,i.Rgc),i.Suo(Be,Wt,5,i.Rgc),i.Suo(Be,Xt,5,i.Rgc),i.Suo(Be,Mt,5,i.Rgc),i.Suo(Be,vn,5,i.Rgc),i.Suo(Be,fn,5,i.Rgc),i.Suo(Be,pn,5,i.Rgc),i.Suo(Be,En,5,i.Rgc),i.Suo(Be,Xn,5)),2&A){let I;i.iGM(I=i.CRH())&&(H.optionTemplate=I.first),i.iGM(I=i.CRH())&&(H.optgroupTemplate=I.first),i.iGM(I=i.CRH())&&(H.labelTemplate=I.first),i.iGM(I=i.CRH())&&(H.multiLabelTemplate=I.first),i.iGM(I=i.CRH())&&(H.headerTemplate=I.first),i.iGM(I=i.CRH())&&(H.footerTemplate=I.first),i.iGM(I=i.CRH())&&(H.notFoundTemplate=I.first),i.iGM(I=i.CRH())&&(H.typeToSearchTemplate=I.first),i.iGM(I=i.CRH())&&(H.loadingTextTemplate=I.first),i.iGM(I=i.CRH())&&(H.tagTemplate=I.first),i.iGM(I=i.CRH())&&(H.loadingSpinnerTemplate=I.first),i.iGM(I=i.CRH())&&(H.ngOptions=I)}},viewQuery:function(A,H){if(1&A&&(i.Gf(mn,5),i.Gf(we,7)),2&A){let Be;i.iGM(Be=i.CRH())&&(H.dropdownPanel=Be.first),i.iGM(Be=i.CRH())&&(H.searchInput=Be.first)}},hostVars:20,hostBindings:function(A,H){1&A&&i.NdJ("keydown",function(I){return H.handleKeyDown(I)}),2&A&&i.ekj("ng-select-typeahead",H.typeahead)("ng-select-multiple",H.multiple)("ng-select-taggable",H.addTag)("ng-select-searchable",H.searchable)("ng-select-clearable",H.clearable)("ng-select-opened",H.isOpen)("ng-select",H.useDefaultClass)("ng-select-disabled",H.disabled)("ng-select-filtered",H.filtered)("ng-select-single",H.single)},inputs:{bindLabel:"bindLabel",bindValue:"bindValue",markFirst:"markFirst",placeholder:"placeholder",notFoundText:"notFoundText",typeToSearchText:"typeToSearchText",addTagText:"addTagText",loadingText:"loadingText",clearAllText:"clearAllText",appearance:"appearance",dropdownPosition:"dropdownPosition",appendTo:"appendTo",loading:"loading",closeOnSelect:"closeOnSelect",hideSelected:"hideSelected",selectOnTab:"selectOnTab",openOnEnter:"openOnEnter",maxSelectedItems:"maxSelectedItems",groupBy:"groupBy",groupValue:"groupValue",bufferAmount:"bufferAmount",virtualScroll:"virtualScroll",selectableGroup:"selectableGroup",selectableGroupAsModel:"selectableGroupAsModel",searchFn:"searchFn",trackByFn:"trackByFn",clearOnBackspace:"clearOnBackspace",labelForId:"labelForId",inputAttrs:"inputAttrs",tabIndex:"tabIndex",readonly:"readonly",searchWhileComposing:"searchWhileComposing",minTermLength:"minTermLength",editableSearchTerm:"editableSearchTerm",keyDownFn:"keyDownFn",typeahead:"typeahead",multiple:"multiple",addTag:"addTag",searchable:"searchable",clearable:"clearable",isOpen:"isOpen",items:"items",compareWith:"compareWith",clearSearchOnAdd:"clearSearchOnAdd",deselectOnClick:"deselectOnClick"},outputs:{blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},features:[i._Bn([{provide:s.JU,useExisting:(0,i.Gpc)(()=>le),multi:!0},ut]),i.TTD],decls:14,vars:19,consts:[[1,"ng-select-container",3,"mousedown"],[1,"ng-value-container"],[1,"ng-placeholder"],[4,"ngIf"],["role","combobox","aria-haspopup","listbox",1,"ng-input"],["aria-autocomplete","list",3,"readOnly","disabled","value","input","compositionstart","compositionend","focus","blur","change"],["searchInput",""],["class","ng-clear-wrapper",3,"title",4,"ngIf"],[1,"ng-arrow-wrapper"],[1,"ng-arrow"],["class","ng-dropdown-panel","role","listbox","aria-label","Options list",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ng-select-multiple","ngClass","id","update","scroll","scrollToEnd","outsideClick",4,"ngIf"],["class","ng-value",3,"ng-value-disabled",4,"ngFor","ngForOf","ngForTrackBy"],[1,"ng-value"],["defaultLabelTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["aria-hidden","true",1,"ng-value-icon","left",3,"click"],[1,"ng-value-label",3,"ngItemLabel","escape"],["defaultLoadingSpinnerTemplate",""],[3,"ngTemplateOutlet"],[1,"ng-spinner-loader"],[1,"ng-clear-wrapper",3,"title"],["aria-hidden","true",1,"ng-clear"],["role","listbox","aria-label","Options list",1,"ng-dropdown-panel",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ngClass","id","update","scroll","scrollToEnd","outsideClick"],["class","ng-option",3,"ng-option-disabled","ng-option-selected","ng-optgroup","ng-option","ng-option-child","ng-option-marked","click","mouseover",4,"ngFor","ngForOf","ngForTrackBy"],["class","ng-option","role","option",3,"ng-option-marked","mouseover","click",4,"ngIf"],[1,"ng-option",3,"click","mouseover"],["defaultOptionTemplate",""],[1,"ng-option-label",3,"ngItemLabel","escape"],["role","option",1,"ng-option",3,"mouseover","click"],["defaultTagTemplate",""],[1,"ng-tag-label"],["defaultNotFoundTemplate",""],[1,"ng-option","ng-option-disabled"],["defaultTypeToSearchTemplate",""],["defaultLoadingTextTemplate",""]],template:function(A,H){if(1&A){const Be=i.EpF();i.TgZ(0,"div",0),i.NdJ("mousedown",function(k){return H.handleMousedown(k)}),i.TgZ(1,"div",1)(2,"div",2),i._uU(3),i.qZA(),i.YNc(4,He,2,2,"ng-container",3),i.YNc(5,dt,1,5,null,3),i.TgZ(6,"div",4)(7,"input",5,6),i.NdJ("input",function(){i.CHM(Be);const k=i.MAs(8);return i.KtG(H.filter(k.value))})("compositionstart",function(){return H.onCompositionStart()})("compositionend",function(){i.CHM(Be);const k=i.MAs(8);return i.KtG(H.onCompositionEnd(k.value))})("focus",function(k){return H.onInputFocus(k)})("blur",function(k){return H.onInputBlur(k)})("change",function(k){return k.stopPropagation()}),i.qZA()()(),i.YNc(9,st,4,1,"ng-container",3),i.YNc(10,_e,3,1,"span",7),i.TgZ(11,"span",8),i._UZ(12,"span",9),i.qZA()(),i.YNc(13,gn,7,19,"ng-dropdown-panel",10)}2&A&&(i.ekj("ng-appearance-outline","outline"===H.appearance)("ng-has-value",H.hasValue),i.xp6(3),i.Oqu(H.placeholder),i.xp6(1),i.Q6J("ngIf",(!H.multiLabelTemplate||!H.multiple)&&H.selectedItems.length>0),i.xp6(1),i.Q6J("ngIf",H.multiple&&H.multiLabelTemplate&&H.selectedValues.length>0),i.xp6(1),i.uIk("aria-expanded",H.isOpen)("aria-owns",H.isOpen?H.dropdownId:null),i.xp6(1),i.Q6J("readOnly",!H.searchable||H.itemsList.maxItemsSelected)("disabled",H.disabled)("value",H.searchTerm?H.searchTerm:""),i.uIk("id",H.labelForId)("tabindex",H.tabIndex)("aria-activedescendant",H.isOpen?null==H.itemsList||null==H.itemsList.markedItem?null:H.itemsList.markedItem.htmlId:null)("aria-controls",H.isOpen?H.dropdownId:null),i.xp6(2),i.Q6J("ngIf",H.loading),i.xp6(1),i.Q6J("ngIf",H.showClear()),i.xp6(3),i.Q6J("ngIf",H.isOpen))},dependencies:[$.mk,$.sg,$.O5,$.tP,mn,me],styles:['@charset "UTF-8";.ng-select{position:relative;display:block;box-sizing:border-box}.ng-select div,.ng-select input,.ng-select span{box-sizing:border-box}.ng-select [hidden]{display:none}.ng-select.ng-select-searchable .ng-select-container .ng-value-container .ng-input{opacity:1}.ng-select.ng-select-opened .ng-select-container{z-index:1001}.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-placeholder,.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-value{-webkit-user-select:none;user-select:none;cursor:default}.ng-select.ng-select-disabled .ng-arrow-wrapper{cursor:default}.ng-select.ng-select-filtered .ng-placeholder{display:none}.ng-select .ng-select-container{cursor:default;display:flex;outline:none;overflow:hidden;position:relative;width:100%}.ng-select .ng-select-container .ng-value-container{display:flex;flex:1}.ng-select .ng-select-container .ng-value-container .ng-input{opacity:0}.ng-select .ng-select-container .ng-value-container .ng-input>input{box-sizing:content-box;background:none transparent;border:0 none;box-shadow:none;outline:none;padding:0;cursor:default;width:100%}.ng-select .ng-select-container .ng-value-container .ng-input>input::-ms-clear{display:none}.ng-select .ng-select-container .ng-value-container .ng-input>input[readonly]{-webkit-user-select:none;user-select:none;width:0;padding:0}.ng-select.ng-select-single.ng-select-filtered .ng-select-container .ng-value-container .ng-value{visibility:hidden}.ng-select.ng-select-single .ng-select-container .ng-value-container,.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{position:absolute;left:0;width:100%}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{flex-wrap:wrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{position:absolute}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{white-space:nowrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{cursor:pointer}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{flex:1;z-index:2}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{z-index:1}.ng-select .ng-clear-wrapper{cursor:pointer;position:relative;width:17px;-webkit-user-select:none;user-select:none}.ng-select .ng-clear-wrapper .ng-clear{display:inline-block;font-size:18px;line-height:1;pointer-events:none}.ng-select .ng-spinner-loader{border-radius:50%;width:17px;height:17px;margin-right:5px;font-size:10px;position:relative;text-indent:-9999em;border-top:2px solid rgba(66,66,66,.2);border-right:2px solid rgba(66,66,66,.2);border-bottom:2px solid rgba(66,66,66,.2);border-left:2px solid #424242;transform:translateZ(0);animation:load8 .8s infinite linear}.ng-select .ng-spinner-loader:after{border-radius:50%;width:17px;height:17px}@keyframes load8{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ng-select .ng-arrow-wrapper{cursor:pointer;position:relative;text-align:center;-webkit-user-select:none;user-select:none}.ng-select .ng-arrow-wrapper .ng-arrow{pointer-events:none;display:inline-block;height:0;width:0;position:relative}.ng-dropdown-panel{box-sizing:border-box;position:absolute;opacity:0;width:100%;z-index:1050;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .ng-dropdown-panel-items{display:block;height:auto;box-sizing:border-box;max-height:240px;overflow-y:auto}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{box-sizing:border-box;cursor:pointer;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-option-label:empty:before{content:"\\200b"}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{font-weight:700;text-decoration:underline}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{cursor:default}.ng-dropdown-panel .scroll-host{overflow:hidden;overflow-y:auto;position:relative;display:block;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .scrollable-content{top:0;left:0;width:100%;height:100%;position:absolute}.ng-dropdown-panel .total-padding{width:1px;opacity:0}\n'],encapsulation:2,changeDetection:0}),Me})();function de(){return new G}class G{constructor(){this._selected=[]}get value(){return this._selected}select(Me,Le,A){if(Me.selected=!0,(!Me.children||!Le&&A)&&this._selected.push(Me),Le)if(Me.parent){const H=Me.parent.children.length,Be=Me.parent.children.filter(I=>I.selected).length;Me.parent.selected=H===Be}else Me.children&&(this._setChildrenSelectedState(Me.children,!0),this._removeChildren(Me),this._selected=A&&this._activeChildren(Me)?[...this._selected.filter(H=>H.parent!==Me),Me]:[...this._selected,...Me.children.filter(H=>!H.disabled)])}unselect(Me,Le){if(this._selected=this._selected.filter(A=>A!==Me),Me.selected=!1,Le)if(Me.parent&&Me.parent.selected){const A=Me.parent.children;this._removeParent(Me.parent),this._removeChildren(Me.parent),this._selected.push(...A.filter(H=>H!==Me&&!H.disabled)),Me.parent.selected=!1}else Me.children&&(this._setChildrenSelectedState(Me.children,!1),this._removeChildren(Me))}clear(Me){this._selected=Me?this._selected.filter(Le=>Le.disabled):[]}_setChildrenSelectedState(Me,Le){for(const A of Me)A.disabled||(A.selected=Le)}_removeChildren(Me){this._selected=[...this._selected.filter(Le=>Le.parent!==Me),...Me.children.filter(Le=>Le.parent===Me&&Le.disabled&&Le.selected)]}_removeParent(Me){this._selected=this._selected.filter(Le=>Le!==Me)}_activeChildren(Me){return Me.children.every(Le=>!Le.disabled||Le.selected)}}let We=(()=>{var le;class Me{}return(le=Me).\u0275fac=function(A){return new(A||le)},le.\u0275mod=i.oAB({type:le}),le.\u0275inj=i.cJS({providers:[{provide:ve,useValue:de}],imports:[$.ez]}),Me})()},9515:(xt,Ke,p)=>{"use strict";p.d(Ke,{Zw:()=>he,aw:()=>yt,sK:()=>nt});var i=p(5879),s=p(9193),m=p(5363),L=p(7504),f=p(3990),W=p(4917),re=p(1418),q=p(9185),ae=p(6124),K=p(9724),ne=p(5222);class he{}let U=(()=>{class ot extends he{getTranslation(_e){return(0,s.of)({})}static \u0275fac=function(){let _e;return function(qe){return(_e||(_e=i.n5z(ot)))(qe||ot)}}();static \u0275prov=i.Yz7({token:ot,factory:ot.\u0275fac})}return ot})();class $e{}let $=(()=>{class ot{handle(_e){return _e.key}static \u0275fac=function(Q){return new(Q||ot)};static \u0275prov=i.Yz7({token:ot,factory:ot.\u0275fac})}return ot})();function Ne(ot){return typeof ot<"u"&&null!==ot}function ie(ot){return ot&&"object"==typeof ot&&!Array.isArray(ot)}function ee(ot,st){let _e=Object.assign({},ot);return ie(ot)&&ie(st)&&Object.keys(st).forEach(Q=>{ie(st[Q])?Q in ot?_e[Q]=ee(ot[Q],st[Q]):Object.assign(_e,{[Q]:st[Q]}):Object.assign(_e,{[Q]:st[Q]})}),_e}class x{}let X=(()=>{class ot extends x{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(_e,Q){let qe;return qe="string"==typeof _e?this.interpolateString(_e,Q):"function"==typeof _e?this.interpolateFunction(_e,Q):_e,qe}getValue(_e,Q){let qe="string"==typeof Q?Q.split("."):[Q];Q="";do{Q+=qe.shift(),!Ne(_e)||!Ne(_e[Q])||"object"!=typeof _e[Q]&&qe.length?qe.length?Q+=".":_e=void 0:(_e=_e[Q],Q="")}while(qe.length);return _e}interpolateFunction(_e,Q){return _e(Q)}interpolateString(_e,Q){return Q?_e.replace(this.templateMatcher,(qe,Te)=>{let se=this.getValue(Q,Te);return Ne(se)?se:qe}):_e}static \u0275fac=function(){let _e;return function(qe){return(_e||(_e=i.n5z(ot)))(qe||ot)}}();static \u0275prov=i.Yz7({token:ot,factory:ot.\u0275fac})}return ot})();class Ve{}let we=(()=>{class ot extends Ve{compile(_e,Q){return _e}compileTranslations(_e,Q){return _e}static \u0275fac=function(){let _e;return function(qe){return(_e||(_e=i.n5z(ot)))(qe||ot)}}();static \u0275prov=i.Yz7({token:ot,factory:ot.\u0275fac})}return ot})();class Ie{defaultLang;currentLang=this.defaultLang;translations={};langs=[];onTranslationChange=new i.vpe;onLangChange=new i.vpe;onDefaultLangChange=new i.vpe}const te=new i.OlP("USE_STORE"),ce=new i.OlP("USE_DEFAULT_LANG"),Re=new i.OlP("DEFAULT_LANGUAGE"),He=new i.OlP("USE_EXTEND");let nt=(()=>{class ot{store;currentLoader;compiler;parser;missingTranslationHandler;useDefaultLang;isolate;extend;loadingTranslations;pending=!1;_onTranslationChange=new i.vpe;_onLangChange=new i.vpe;_onDefaultLangChange=new i.vpe;_defaultLang;_currentLang;_langs=[];_translations={};_translationRequests={};get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(_e){this.isolate?this._defaultLang=_e:this.store.defaultLang=_e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(_e){this.isolate?this._currentLang=_e:this.store.currentLang=_e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(_e){this.isolate?this._langs=_e:this.store.langs=_e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(_e){this.isolate?this._translations=_e:this.store.translations=_e}constructor(_e,Q,qe,Te,se,Se=!0,N=!1,oe=!1,ye){this.store=_e,this.currentLoader=Q,this.compiler=qe,this.parser=Te,this.missingTranslationHandler=se,this.useDefaultLang=Se,this.isolate=N,this.extend=oe,ye&&this.setDefaultLang(ye)}setDefaultLang(_e){if(_e===this.defaultLang)return;let Q=this.retrieveTranslations(_e);typeof Q<"u"?(null==this.defaultLang&&(this.defaultLang=_e),Q.pipe((0,re.q)(1)).subscribe(qe=>{this.changeDefaultLang(_e)})):this.changeDefaultLang(_e)}getDefaultLang(){return this.defaultLang}use(_e){if(_e===this.currentLang)return(0,s.of)(this.translations[_e]);let Q=this.retrieveTranslations(_e);return typeof Q<"u"?(this.currentLang||(this.currentLang=_e),Q.pipe((0,re.q)(1)).subscribe(qe=>{this.changeLang(_e)}),Q):(this.changeLang(_e),(0,s.of)(this.translations[_e]))}retrieveTranslations(_e){let Q;return(typeof this.translations[_e]>"u"||this.extend)&&(this._translationRequests[_e]=this._translationRequests[_e]||this.getTranslation(_e),Q=this._translationRequests[_e]),Q}getTranslation(_e){this.pending=!0;const Q=this.currentLoader.getTranslation(_e).pipe((0,q.d)(1),(0,re.q)(1));return this.loadingTranslations=Q.pipe((0,ae.U)(qe=>this.compiler.compileTranslations(qe,_e)),(0,q.d)(1),(0,re.q)(1)),this.loadingTranslations.subscribe({next:qe=>{this.translations[_e]=this.extend&&this.translations[_e]?{...qe,...this.translations[_e]}:qe,this.updateLangs(),this.pending=!1},error:qe=>{this.pending=!1}}),Q}setTranslation(_e,Q,qe=!1){Q=this.compiler.compileTranslations(Q,_e),this.translations[_e]=(qe||this.extend)&&this.translations[_e]?ee(this.translations[_e],Q):Q,this.updateLangs(),this.onTranslationChange.emit({lang:_e,translations:this.translations[_e]})}getLangs(){return this.langs}addLangs(_e){_e.forEach(Q=>{-1===this.langs.indexOf(Q)&&this.langs.push(Q)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(_e,Q,qe){let Te;if(Q instanceof Array){let se={},Se=!1;for(let N of Q)se[N]=this.getParsedResult(_e,N,qe),(0,m.b)(se[N])&&(Se=!0);if(Se){const N=Q.map(oe=>(0,m.b)(se[oe])?se[oe]:(0,s.of)(se[oe]));return(0,L.D)(N).pipe((0,ae.U)(oe=>{let ye={};return oe.forEach((Fe,Je)=>{ye[Q[Je]]=Fe}),ye}))}return se}if(_e&&(Te=this.parser.interpolate(this.parser.getValue(_e,Q),qe)),typeof Te>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(Te=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],Q),qe)),typeof Te>"u"){let se={key:Q,translateService:this};typeof qe<"u"&&(se.interpolateParams=qe),Te=this.missingTranslationHandler.handle(se)}return typeof Te<"u"?Te:Q}get(_e,Q){if(!Ne(_e)||!_e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,K.b)(qe=>(qe=this.getParsedResult(qe,_e,Q),(0,m.b)(qe)?qe:(0,s.of)(qe))));{let qe=this.getParsedResult(this.translations[this.currentLang],_e,Q);return(0,m.b)(qe)?qe:(0,s.of)(qe)}}getStreamOnTranslationChange(_e,Q){if(!Ne(_e)||!_e.length)throw new Error('Parameter "key" required');return(0,f.z)((0,W.P)(()=>this.get(_e,Q)),this.onTranslationChange.pipe((0,ne.w)(qe=>{const Te=this.getParsedResult(qe.translations,_e,Q);return"function"==typeof Te.subscribe?Te:(0,s.of)(Te)})))}stream(_e,Q){if(!Ne(_e)||!_e.length)throw new Error('Parameter "key" required');return(0,f.z)((0,W.P)(()=>this.get(_e,Q)),this.onLangChange.pipe((0,ne.w)(qe=>{const Te=this.getParsedResult(qe.translations,_e,Q);return(0,m.b)(Te)?Te:(0,s.of)(Te)})))}instant(_e,Q){if(!Ne(_e)||!_e.length)throw new Error('Parameter "key" required');let qe=this.getParsedResult(this.translations[this.currentLang],_e,Q);if((0,m.b)(qe)){if(_e instanceof Array){let Te={};return _e.forEach((se,Se)=>{Te[_e[Se]]=_e[Se]}),Te}return _e}return qe}set(_e,Q,qe=this.currentLang){this.translations[qe][_e]=this.compiler.compile(Q,qe),this.updateLangs(),this.onTranslationChange.emit({lang:qe,translations:this.translations[qe]})}changeLang(_e){this.currentLang=_e,this.onLangChange.emit({lang:_e,translations:this.translations[_e]}),null==this.defaultLang&&this.changeDefaultLang(_e)}changeDefaultLang(_e){this.defaultLang=_e,this.onDefaultLangChange.emit({lang:_e,translations:this.translations[_e]})}reloadLang(_e){return this.resetLang(_e),this.getTranslation(_e)}resetLang(_e){this._translationRequests[_e]=void 0,this.translations[_e]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let _e=window.navigator.languages?window.navigator.languages[0]:null;return _e=_e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof _e>"u"?void 0:(-1!==_e.indexOf("-")&&(_e=_e.split("-")[0]),-1!==_e.indexOf("_")&&(_e=_e.split("_")[0]),_e)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let _e=window.navigator.languages?window.navigator.languages[0]:null;return _e=_e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,_e}static \u0275fac=function(Q){return new(Q||ot)(i.LFG(Ie),i.LFG(he),i.LFG(Ve),i.LFG(x),i.LFG($e),i.LFG(ce),i.LFG(te),i.LFG(He),i.LFG(Re))};static \u0275prov=i.Yz7({token:ot,factory:ot.\u0275fac})}return ot})(),yt=(()=>{class ot{static forRoot(_e={}){return{ngModule:ot,providers:[_e.loader||{provide:he,useClass:U},_e.compiler||{provide:Ve,useClass:we},_e.parser||{provide:x,useClass:X},_e.missingTranslationHandler||{provide:$e,useClass:$},Ie,{provide:te,useValue:_e.isolate},{provide:ce,useValue:_e.useDefaultLang},{provide:He,useValue:_e.extend},{provide:Re,useValue:_e.defaultLanguage},nt]}}static forChild(_e={}){return{ngModule:ot,providers:[_e.loader||{provide:he,useClass:U},_e.compiler||{provide:Ve,useClass:we},_e.parser||{provide:x,useClass:X},_e.missingTranslationHandler||{provide:$e,useClass:$},{provide:te,useValue:_e.isolate},{provide:ce,useValue:_e.useDefaultLang},{provide:He,useValue:_e.extend},{provide:Re,useValue:_e.defaultLanguage},nt]}}static \u0275fac=function(Q){return new(Q||ot)};static \u0275mod=i.oAB({type:ot});static \u0275inj=i.cJS({})}return ot})()},1231:(xt,Ke,p)=>{"use strict";p.d(Ke,{_7:()=>ai,w_:()=>hn});var i=p(6814),s=p(6223),m=p(5879);const L=function(je,qt){return{myDpMonthLabel:je,myDpHeaderLabelBtnNotEdit:qt}};function f(je,qt){if(1&je){const at=m.EpF();m.TgZ(0,"button",8),m.NdJ("click",function(Z){m.CHM(at);const ze=m.oxw();return m.KtG(ze.opts.monthSelector&&ze.onMonthViewBtnClicked(Z))}),m._uU(1),m.qZA()}if(2&je){const at=m.oxw();m.s9C("tabindex",at.opts.monthSelector?"0":"-1"),m.Q6J("ngClass",m.WLB(3,L,at.opts.monthSelector,!at.opts.monthSelector)),m.xp6(1),m.Oqu(at.visibleMonth.monthTxt)}}const W=function(je){return{myDpHeaderBtnDisabled:je}},re=function(je,qt){return{myDpYearLabel:je,myDpHeaderLabelBtnNotEdit:qt}};function q(je,qt){1&je&&(m.TgZ(0,"th",4),m._uU(1,"#"),m.qZA())}function ae(je,qt){if(1&je&&(m.TgZ(0,"th",5),m._uU(1),m.qZA()),2&je){const at=qt.$implicit;m.xp6(1),m.Oqu(at)}}function K(je,qt){if(1&je&&(m.TgZ(0,"td",8),m._uU(1),m.qZA()),2&je){const at=m.oxw().$implicit;m.xp6(1),m.Oqu(at.weekNbr)}}const ne=function(je){return{"border-top":je}};function he(je,qt){if(1&je&&m._UZ(0,"span",12),2&je){const at=m.oxw().$implicit;m.Q6J("ngStyle",m.VKq(1,ne,"8px solid "+at.markedDate.color))}}const U=function(je,qt,at,S,Z,ze,rt,Rt,tn){return{myDpRangeColor:je,myDpPrevMonth:qt,myDpCurrMonth:at,myDpNextMonth:S,myDpSelectedDay:Z,myDpRangeBegin:ze,myDpRangeEnd:rt,myDpDisabled:Rt,myDpTableSingleDay:tn}},$e=function(je,qt,at){return{myDpMarkCurrDay:je,myDpDimDay:qt,myDpHighlight:at}},$=function(je){return[je]};function ge(je,qt){if(1&je){const at=m.EpF();m.TgZ(0,"td",9),m.NdJ("click",function(Z){const rt=m.CHM(at).$implicit,Rt=m.oxw(2);return m.KtG(Rt.onDayCellClicked(Z,rt))})("keydown",function(Z){const rt=m.CHM(at).$implicit,Rt=m.oxw(2);return m.KtG(Rt.onDayCellKeyDown(Z,rt))})("mouseenter",function(){const ze=m.CHM(at).$implicit,rt=m.oxw(2);return m.KtG(rt.onDayCellMouseEnter(ze))})("mouseleave",function(){m.CHM(at);const Z=m.oxw(2);return m.KtG(Z.onDayCellMouseLeave())}),m.YNc(1,he,1,3,"span",10),m.TgZ(2,"span",11),m.ALo(3,"date"),m._uU(4),m.qZA()()}if(2&je){const at=qt.$implicit,S=m.oxw(2);m.DjV("d_",at.row,"_",at.col," myDpDaycell ",at.markedDate.styleClass," ",at.disabledDate.styleClass,""),m.hYB("id","d_",at.row,"_",at.col,""),m.Q6J("ngClass",m.rFY(20,U,[S.isDateInRange(at.dateObj)||at.range,at.cmo===S.prevMonthId,at.cmo===S.currMonthId&&!at.disabledDate.disabled,at.cmo===S.nextMonthId,S.isDaySelected(at),S.opts.dateRange&&S.isDateRangeBegin(at.dateObj),S.opts.dateRange&&S.isDateRangeEnd(at.dateObj),at.disabledDate.disabled&&!at.disabledDate.styleClass.length,!at.disabledDate.disabled])),m.uIk("aria-current",at.currDay?"date":null)("aria-disabled",at.disabledDate.disabled||null)("aria-selected",S.isDaySelected(at)||null)("tabindex",at.disabledDate.disabled?-1:0),m.xp6(1),m.Q6J("ngIf",at.markedDate.marked&&at.markedDate.color.length),m.xp6(1),m.Q6J("ngClass",m.kEZ(30,$e,at.currDay&&S.opts.markCurrentDay,at.highlight&&(at.cmo===S.prevMonthId||at.cmo===S.nextMonthId||at.disabledDate.disabled),at.highlight)),m.uIk("aria-label",m.VKq(34,$,m.xi3(3,17,at.dateObj.month+"/"+at.dateObj.day+"/"+at.dateObj.year,"fullDate"))),m.xp6(2),m.Oqu(at.dateObj.day)}}function Ne(je,qt){if(1&je&&(m.TgZ(0,"tr"),m.YNc(1,K,2,1,"td",6),m.YNc(2,ge,5,36,"td",7),m.qZA()),2&je){const at=qt.$implicit,S=m.oxw();m.xp6(1),m.Q6J("ngIf",S.opts.showWeekNumbers&&"mo"===S.opts.firstDayOfWeek),m.xp6(1),m.Q6J("ngForOf",at.week)}}const ie=function(je,qt,at,S){return{"ng-myrtl":je,myDpFooter:qt,myDpNoFooter:at,myDpViewChangeAnimation:S}};function ee(je,qt){if(1&je&&(m.TgZ(0,"span",6),m._uU(1),m.qZA()),2&je){const at=m.oxw().$implicit;m.xp6(1),m.Oqu(at.nbr)}}const x=function(je,qt,at){return{myDpSelectedMonth:je,myDpDisabled:qt,myDpTableSingleMonth:at}},X=function(je){return{myDpMarkCurrMonth:je}};function Ve(je,qt){if(1&je){const at=m.EpF();m.TgZ(0,"td",3),m.NdJ("click",function(Z){const rt=m.CHM(at).$implicit,Rt=m.oxw(2);return m.KtG(Rt.onMonthCellClicked(Z,rt))})("keydown",function(Z){const rt=m.CHM(at).$implicit,Rt=m.oxw(2);return m.KtG(Rt.onMonthCellKeyDown(Z,rt))}),m.YNc(1,ee,2,1,"span",4),m.TgZ(2,"span",5),m.ALo(3,"date"),m._uU(4),m.qZA()()}if(2&je){const at=qt.$implicit,S=m.oxw(2);m.MT6("m_",at.row,"_",at.col," myDpMonthcell"),m.hYB("id","m_",at.row,"_",at.col,""),m.Q6J("ngClass",m.kEZ(18,x,at.selected,at.disabled,!at.disabled)),m.uIk("aria-current",at.currMonth?"date":null)("aria-disabled",at.disabled||null)("aria-selected",at.selected||null)("tabindex",at.disabled?-1:0),m.xp6(1),m.Q6J("ngIf",S.opts.showMonthNumber),m.xp6(1),m.Q6J("ngClass",m.VKq(22,X,at.currMonth&&S.opts.markCurrentMonth)),m.uIk("aria-label",m.VKq(24,$,m.xi3(3,15,at.nbr+"/1/"+at.year,"MMMM yyyy"))),m.xp6(2),m.Oqu(at.name)}}function we(je,qt){if(1&je&&(m.TgZ(0,"tr"),m.YNc(1,Ve,5,26,"td",2),m.qZA()),2&je){const at=qt.$implicit;m.xp6(1),m.Q6J("ngForOf",at)}}const Ie=function(je,qt,at){return{myDpSelectedYear:je,myDpDisabled:qt,myDpTableSingleYear:at}},te=function(je){return{myDpMarkCurrYear:je}};function ce(je,qt){if(1&je){const at=m.EpF();m.TgZ(0,"td",3),m.NdJ("click",function(Z){const rt=m.CHM(at).$implicit,Rt=m.oxw(2);return m.KtG(Rt.onYearCellClicked(Z,rt))})("keydown",function(Z){const rt=m.CHM(at).$implicit,Rt=m.oxw(2);return m.KtG(Rt.onYearCellKeyDown(Z,rt))}),m.TgZ(1,"span",4),m.ALo(2,"date"),m._uU(3),m.qZA()()}if(2&je){const at=qt.$implicit,S=m.oxw(2);m.MT6("y_",at.row,"_",at.col," myDpYearcell"),m.hYB("id","y_",at.row,"_",at.col,""),m.Q6J("ngClass",m.kEZ(17,Ie,at.selected,at.disabled,!at.disabled)),m.uIk("aria-current",at.currYear?"date":null)("aria-disabled",at.disabled||null)("aria-selected",at.selected||null)("tabindex",at.disabled?-1:0),m.xp6(1),m.Q6J("ngClass",m.VKq(21,te,at.currYear&&S.opts.markCurrentYear)),m.uIk("aria-label",m.VKq(23,$,m.xi3(2,14,"1/1/"+at.year,"yyyy"))),m.xp6(2),m.Oqu(at.year)}}function Re(je,qt){if(1&je&&(m.TgZ(0,"tr"),m.YNc(1,ce,4,25,"td",2),m.qZA()),2&je){const at=qt.$implicit;m.xp6(1),m.Q6J("ngForOf",at)}}const He=["selectorEl"],nt=["styleEl"];function _t(je,qt){if(1&je){const at=m.EpF();m.TgZ(0,"lib-day-view",8),m.NdJ("dayCellClicked",function(Z){m.CHM(at);const ze=m.oxw();return m.KtG(ze.onDayCellClicked(Z))})("dayCellKeyDown",function(Z){m.CHM(at);const ze=m.oxw();return m.KtG(ze.onDayCellKeyDown(Z))})("viewActivated",function(Z){m.CHM(at);const ze=m.oxw();return m.KtG(ze.onViewActivated(Z))}),m.qZA()}if(2&je){const at=m.oxw();m.Q6J("opts",at.opts)("dates",at.dates)("weekDays",at.weekDays)("selectedDate",at.selectedDate)("selectedDateRange",at.selectedDateRange)("viewChanged",at.viewChanged)}}function dt(je,qt){if(1&je){const at=m.EpF();m.TgZ(0,"lib-month-view",9),m.NdJ("monthCellClicked",function(Z){m.CHM(at);const ze=m.oxw();return m.KtG(ze.onMonthCellClicked(Z))})("monthCellKeyDown",function(Z){m.CHM(at);const ze=m.oxw();return m.KtG(ze.onMonthCellKeyDown(Z))})("viewActivated",function(Z){m.CHM(at);const ze=m.oxw();return m.KtG(ze.onViewActivated(Z))}),m.qZA()}if(2&je){const at=m.oxw();m.Q6J("opts",at.opts)("months",at.months)("viewChanged",at.viewChanged)}}function yt(je,qt){if(1&je){const at=m.EpF();m.TgZ(0,"lib-year-view",10),m.NdJ("yearCellClicked",function(Z){m.CHM(at);const ze=m.oxw();return m.KtG(ze.onYearCellClicked(Z))})("yearCellKeyDown",function(Z){m.CHM(at);const ze=m.oxw();return m.KtG(ze.onYearCellKeyDown(Z))})("viewActivated",function(Z){m.CHM(at);const ze=m.oxw();return m.KtG(ze.onViewActivated(Z))}),m.qZA()}if(2&je){const at=m.oxw();m.Q6J("opts",at.opts)("years",at.years)("viewChanged",at.viewChanged)}}function ot(je,qt){if(1&je){const at=m.EpF();m.TgZ(0,"lib-footer-bar",11),m.NdJ("footerBarTxtClicked",function(){m.CHM(at);const Z=m.oxw();return m.KtG(Z.onTodayFooterClicked())}),m.qZA()}if(2&je){const at=m.oxw();m.Q6J("opts",at.opts)}}const st=function(je,qt,at,S){return{inline:je,selectorWidth:qt,selectorHeight:at,selectorPos:S}},_e=function(je,qt,at,S,Z){return{myDpSelectorArrow:je,myDpSelectorArrowLeft:qt,myDpSelectorArrowRight:at,myDpSelectorAbsolute:S,myDpSelectorPosInitial:Z}};var Q=function(je){return je[je.enter=13]="enter",je[je.esc=27]="esc",je[je.space=32]="space",je[je.leftArrow=37]="leftArrow",je[je.upArrow=38]="upArrow",je[je.rightArrow=39]="rightArrow",je[je.downArrow=40]="downArrow",je[je.tab=9]="tab",je[je.shift=16]="shift",je}(Q||{}),qe=function(je){return je.enter="Enter",je.esc="Escape|Esc",je.space=" |Spacebar",je.leftArrow="ArrowLeft|Left",je.upArrow="ArrowUp|Up",je.rightArrow="ArrowRight|Right",je.downArrow="ArrowDown|Down",je.tab="Tab",je.shift="Shift",je}(qe||{});const Fe="yyyy",F="mo",St="th",fn="click",Nt="options",kt="defaultMonth",Xn="innerHTML",Bn="opts",gt="yearsDuration",Ee="visibleMonth",de="selectMonth",G="selectYear",We="prevViewDisabled",le="nextViewDisabled",Le="weekDays",A="selectedDate",H="selectedDateRange",I="animationend",Oe="myDpAnimation",Qe=["Fade","ScaleTop","ScaleCenter","Rotate","FlipDiagonal","Own"],Gt="tabindex";let Tn=(()=>{var je;class qt{constructor(){this.weekDays=["su",F,"tu","we",St,"fr","sa"]}isDateValid(S,Z,ze){const{dateFormat:rt,minYear:Rt,maxYear:tn,monthLabels:Kt}=Z,Jt=this.resetDate(),Ht=[31,28,31,30,31,30,31,31,30,31,30,31],ln=-1!==rt.indexOf("mmm"),xn=rt.match(/[^(d#my)]{1,}/g);if(!S||""===S)return Jt;const si=this.getDateValue(S,rt,xn);let zn=0,cn=0,bn=0;for(let ui of si){if(-1!=ui.format.indexOf("##")){const ds=parseInt(ui.value.replace(/\D/g,"")),Cr=ui.value.replace(/[0-9]/g,"");if(this.getOrdinal(ds)!==Cr)return Jt;ui.value=ui.value.replace("st","").replace("nd","").replace("rd","").replace(St,""),ui.format=ui.format.replace("##","")}const{value:Ri,format:Ci}=ui;if(Ri&&/^\d+$/.test(Ri)&&0===Number(Ri))return Jt;-1!==Ci.indexOf(Fe)?zn=this.getNumberByValue(ui):-1!==Ci.indexOf("m")?cn=ln?this.getMonthNumberByMonthName(ui,Kt):this.getNumberByValue(ui):-1!==Ci.indexOf("d")&&(bn=this.getNumberByValue(ui))}const{validateDisabledDates:mi,selectedValue:Si}=ze;zn=0===zn&&Si?Si.year:zn,cn=0===cn&&Si?Si.month:cn,bn=0===bn&&Si?Si.day:bn;const Di=this.getToday();if(0===zn&&(0!==cn||0!==bn)&&(zn=Di.year),0===cn&&(0!==zn||0!==bn)&&(cn=Di.month),0===bn&&(0!==zn||0!==cn)&&(bn=Di.day),-1!==cn&&-1!==bn&&-1!==zn){if(zntn||cn<1||cn>12)return Jt;const ui={year:zn,month:cn,day:bn};return mi&&this.isDisabledDate(ui,Z).disabled||((zn%400==0||zn%100!=0&&zn%4==0)&&(Ht[1]=29),bn<1||bn>Ht[cn-1])?Jt:ui}return Jt}isDateValidDateRange(S,Z,ze){let rt={begin:this.resetDate(),end:this.resetDate()};if(S&&S.length){const Rt=S.split(Z.dateRangeDatesDelimiter);if(Rt&&2===Rt.length){const[tn,Kt]=Rt;let{selectedValue:Jt}=ze;Jt&&(ze.selectedValue=Jt.begin);const Ht=this.isDateValid(tn,Z,ze);if(this.isInitializedDate(Ht)){Jt&&(ze.selectedValue=Jt.end);const ln=this.isDateValid(Kt,Z,ze);this.isInitializedDate(ln)&&this.isDateSameOrEarlier(Ht,ln)&&(rt={begin:Ht,end:ln})}}}return rt}getDateValue(S,Z,ze){let rt="";if(ze)for(const Ht of ze)-1===rt.indexOf(Ht)&&(rt+=Ht);const Rt=new RegExp("["+rt+"]"),tn=S.split(Rt),Kt=Z.split(Rt),Jt=[];for(let Ht=0;Ht=10||2===S.format.length&&S.value.length>2)&&(Z=-1),Z}parseDefaultMonth(S){const Z={monthTxt:"",monthNbr:0,year:0};if(""!==S){const ze=S.split(S.match(/[^0-9]/)[0]);Z.monthNbr=Number(2===ze[0].length?ze[0]:ze[1]),Z.year=Number(2===ze[0].length?ze[1]:ze[0])}return Z}isDisabledDate(S,Z){const{minYear:ze,maxYear:rt,disableUntil:Rt,disableSince:tn,disableWeekends:Kt,disableDates:Jt,disableDateRanges:Ht,disableWeekdays:ln,enableDates:xn}=Z;if(this.dateMatchToDates(S,xn))return this.getDisabledValue(!1,"");if(S.yearrt&&1===S.month)return this.getDisabledValue(!0,"");const si=Jt;if(si.find(bn=>bn.dates)){for(const bn of si)if(this.dateMatchToDates(S,bn.dates))return this.getDisabledValue(!0,bn.styleClass)}else if(this.dateMatchToDates(S,si))return this.getDisabledValue(!0,"");if(this.isDisabledByDisableUntil(S,Rt))return this.getDisabledValue(!0,"");if(this.isDisabledByDisableSince(S,tn))return this.getDisabledValue(!0,"");if(Kt){const bn=this.getDayNumber(S);if(0===bn||6===bn)return this.getDisabledValue(!0,"")}const cn=this.getDayNumber(S);if(ln.length>0)for(const bn of ln)if(cn===this.getWeekdayIndex(bn))return this.getDisabledValue(!0,"");return this.isDisabledByDisableDateRange(S,S,Ht)?this.getDisabledValue(!0,""):this.getDisabledValue(!1,"")}getDisabledValue(S,Z){return{disabled:S,styleClass:Z}}dateMatchToDates(S,Z){for(const ze of Z)if(!(0!==ze.year&&ze.year!==S.year||0!==ze.month&&ze.month!==S.month||ze.day!==S.day))return!0;return!1}isDisabledMonth(S,Z,ze){const{disableUntil:rt,disableSince:Rt,disableDateRanges:tn,enableDates:Kt}=ze,Jt={year:S,month:Z,day:this.datesInMonth(Z,S)},Ht={year:S,month:Z,day:1};return!this.isDatesEnabled(Ht,Jt,Kt)&&!!(this.isDisabledByDisableUntil(Jt,rt)||this.isDisabledByDisableSince(Ht,Rt)||this.isDisabledByDisableDateRange(Ht,Jt,tn))}isDisabledYear(S,Z){const{disableUntil:ze,disableSince:rt,disableDateRanges:Rt,enableDates:tn,minYear:Kt,maxYear:Jt}=Z,Ht={year:S,month:12,day:31},ln={year:S,month:1,day:1};return!this.isDatesEnabled(ln,Ht,tn)&&!!(this.isDisabledByDisableUntil(Ht,ze)||this.isDisabledByDisableSince(ln,rt)||this.isDisabledByDisableDateRange(ln,Ht,Rt)||SJt)}isDisabledByDisableUntil(S,Z){return this.isInitializedDate(Z)&&this.getTimeInMilliseconds(S)<=this.getTimeInMilliseconds(Z)}isDisabledByDisableSince(S,Z){return this.isInitializedDate(Z)&&this.getTimeInMilliseconds(S)>=this.getTimeInMilliseconds(Z)}isPastDatesEnabled(S,Z){for(const ze of Z)if(this.getTimeInMilliseconds(ze)<=this.getTimeInMilliseconds(S))return!0;return!1}isFutureDatesEnabled(S,Z){for(const ze of Z)if(this.getTimeInMilliseconds(ze)>=this.getTimeInMilliseconds(S))return!0;return!1}isDatesEnabled(S,Z,ze){for(const rt of ze)if(this.getTimeInMilliseconds(rt)>=this.getTimeInMilliseconds(S)&&this.getTimeInMilliseconds(rt)<=this.getTimeInMilliseconds(Z))return!0;return!1}isDisabledByDisableDateRange(S,Z,ze){const rt=this.getTimeInMilliseconds(S),Rt=this.getTimeInMilliseconds(Z);for(const tn of ze)if(this.isInitializedDate(tn.begin)&&this.isInitializedDate(tn.end)&&rt>=this.getTimeInMilliseconds(tn.begin)&&Rt<=this.getTimeInMilliseconds(tn.end))return!0;return!1}isMarkedDate(S,Z){const{markDates:ze,markWeekends:rt}=Z;for(const Rt of ze)if(this.dateMatchToDates(S,Rt.dates))return this.getMarkedValue(!0,Rt.color,Rt.styleClass);if(rt&&rt.marked){const Rt=this.getDayNumber(S);if(0===Rt||6===Rt)return this.getMarkedValue(!0,rt.color,"")}return this.getMarkedValue(!1,"","")}getMarkedValue(S,Z,ze){return{marked:S,color:Z||"",styleClass:ze||""}}isHighlightedDate(S,Z){const{sunHighlight:ze,satHighlight:rt,highlightDates:Rt}=Z,tn=this.getDayNumber(S);return!!(ze&&0===tn||rt&&6===tn||this.dateMatchToDates(S,Rt))}getWeekNumber(S){const Z=new Date(S.year,S.month-1,S.day,0,0,0,0);return Z.setDate(Z.getDate()+(0===Z.getDay()?-3:4-Z.getDay())),Math.round((Z.getTime()-new Date(Z.getFullYear(),0,4).getTime())/864e5/7)+1}getDateModel(S,Z,ze,rt,Rt,tn=""){let Kt=null,Jt=null;return S?Kt={date:S,jsDate:this.myDateToJsDate(S),formatted:tn.length?tn:this.formatDate(S,ze,rt),epoc:this.getEpocTime(S)}:Jt={beginDate:Z.begin,beginJsDate:this.myDateToJsDate(Z.begin),beginEpoc:this.getEpocTime(Z.begin),endDate:Z.end,endJsDate:this.myDateToJsDate(Z.end),endEpoc:this.getEpocTime(Z.end),formatted:this.formatDate(Z.begin,ze,rt)+Rt+this.formatDate(Z.end,ze,rt)},{isRange:null===S,singleDate:Kt,dateRange:Jt}}formatDate(S,Z,ze){let rt=Z.replace(Fe,String(S.year));return rt=-1!==Z.indexOf("mmm")?rt.replace("mmm",ze[S.month]):-1!==Z.indexOf("mm")?rt.replace("mm",this.preZero(S.month)):rt.replace("m",String(S.month)),rt=-1!==Z.indexOf("dd")?rt.replace("dd",this.preZero(S.day)):rt.replace("d",String(S.day)),-1!==Z.indexOf("##")&&(rt=rt.replace("##",this.getOrdinal(S.day))),rt}getOrdinal(S){if(S>3&&S<21)return St;switch(S%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return St}}getFormattedDate(S){return S.isRange?S.dateRange.formatted:S.singleDate.formatted}preZero(S){return S<10?"0"+S:String(S)}isInitializedDate(S){return 0!==S.year&&0!==S.month&&0!==S.day}isDateEarlier(S,Z){return this.getTimeInMilliseconds(S){var je;class qt{constructor(){this.prevNavigateBtnClicked=new m.vpe,this.nextNavigateBtnClicked=new m.vpe,this.monthViewBtnClicked=new m.vpe,this.yearViewBtnClicked=new m.vpe}ngOnChanges(S){S.hasOwnProperty(Bn)&&(this.opts=S[Bn].currentValue),S.hasOwnProperty(gt)&&(this.yearsDuration=S[gt].currentValue),S.hasOwnProperty(Ee)&&(this.visibleMonth=S[Ee].currentValue),S.hasOwnProperty(de)&&(this.selectMonth=S[de].currentValue),S.hasOwnProperty(G)&&(this.selectYear=S[G].currentValue),S.hasOwnProperty(We)&&(this.prevViewDisabled=S[We].currentValue),S.hasOwnProperty(le)&&(this.nextViewDisabled=S[le].currentValue)}onPrevNavigateBtnClicked(S){S.stopPropagation(),this.opts.rtl?this.nextNavigateBtnClicked.emit():this.prevNavigateBtnClicked.emit()}onNextNavigateBtnClicked(S){S.stopPropagation(),this.opts.rtl?this.prevNavigateBtnClicked.emit():this.nextNavigateBtnClicked.emit()}onMonthViewBtnClicked(S){S.stopPropagation(),this.monthViewBtnClicked.emit()}onYearViewBtnClicked(S){S.stopPropagation(),this.yearViewBtnClicked.emit()}}return(je=qt).\u0275fac=function(S){return new(S||je)},je.\u0275cmp=m.Xpm({type:je,selectors:[["lib-selection-bar"]],inputs:{opts:"opts",yearsDuration:"yearsDuration",visibleMonth:"visibleMonth",selectMonth:"selectMonth",selectYear:"selectYear",prevViewDisabled:"prevViewDisabled",nextViewDisabled:"nextViewDisabled"},outputs:{prevNavigateBtnClicked:"prevNavigateBtnClicked",nextNavigateBtnClicked:"nextNavigateBtnClicked",monthViewBtnClicked:"monthViewBtnClicked",yearViewBtnClicked:"yearViewBtnClicked"},features:[m.TTD],decls:9,vars:19,consts:[[1,"myDpMonthYearSelBar"],[1,"myDpPrevBtn"],["type","button",1,"myDpHeaderBtn","myDpIcon","myDpIconLeftArrow","myDpHeaderBtnEnabled",3,"tabindex","disabled","ngClass","click"],[1,"myDpMonthYearText"],["type","button","class","myDpHeaderBtn myDpMonthBtn",3,"tabindex","ngClass","click",4,"ngIf"],["type","button",1,"myDpHeaderBtn","myDpYearBtn",3,"tabindex","ngClass","click"],[1,"myDpNextBtn"],["type","button",1,"myDpHeaderBtn","myDpIcon","myDpIconRightArrow","myDpHeaderBtnEnabled",3,"tabindex","disabled","ngClass","click"],["type","button",1,"myDpHeaderBtn","myDpMonthBtn",3,"tabindex","ngClass","click"]],template:function(S,Z){1&S&&(m.TgZ(0,"div",0)(1,"div",1)(2,"button",2),m.NdJ("click",function(rt){return Z.onPrevNavigateBtnClicked(rt)}),m.qZA()(),m.TgZ(3,"div",3),m.YNc(4,f,2,6,"button",4),m.TgZ(5,"button",5),m.NdJ("click",function(rt){return Z.opts.yearSelector&&Z.onYearViewBtnClicked(rt)}),m._uU(6),m.qZA()(),m.TgZ(7,"div",6)(8,"button",7),m.NdJ("click",function(rt){return Z.onNextNavigateBtnClicked(rt)}),m.qZA()()()),2&S&&(m.xp6(2),m.s9C("tabindex",Z.prevViewDisabled?"-1":"0"),m.Q6J("disabled",Z.prevViewDisabled)("ngClass",m.VKq(12,W,Z.prevViewDisabled)),m.uIk("aria-label",Z.opts.ariaLabelPrevMonth),m.xp6(2),m.Q6J("ngIf",!Z.selectYear),m.xp6(1),m.s9C("tabindex",Z.opts.yearSelector?"0":"-1"),m.Q6J("ngClass",m.WLB(14,re,Z.opts.yearSelector,!Z.opts.yearSelector)),m.xp6(1),m.Oqu(Z.selectYear?Z.yearsDuration:Z.visibleMonth.year),m.xp6(2),m.s9C("tabindex",Z.nextViewDisabled?"-1":"0"),m.Q6J("disabled",Z.nextViewDisabled)("ngClass",m.VKq(17,W,Z.nextViewDisabled)),m.uIk("aria-label",Z.opts.ariaLabelNextMonth))},dependencies:[i.mk,i.O5],encapsulation:2}),qt})();var Ii=function(je){return je[je.Date=1]="Date",je[je.Month=2]="Month",je[je.Year=3]="Year",je}(Ii||{});let qn=(()=>{var je;class qt{constructor(S){this.utilService=S,this.dayCellClicked=new m.vpe,this.dayCellKeyDown=new m.vpe,this.viewActivated=new m.vpe,this.prevMonthId=Qn.prev,this.currMonthId=Qn.curr,this.nextMonthId=Qn.next}ngOnChanges(S){S.hasOwnProperty(Bn)&&(this.opts=S[Bn].currentValue),S.hasOwnProperty("dates")&&(this.dates=S.dates.currentValue),S.hasOwnProperty(Le)&&(this.weekDays=S[Le].currentValue),S.hasOwnProperty(A)&&(this.selectedDate=S[A].currentValue),S.hasOwnProperty(H)&&(this.selectedDateRange=S[H].currentValue)}ngAfterViewInit(){this.viewActivated.emit(Ii.Date)}onDayCellClicked(S,Z){S.stopPropagation(),!Z.disabledDate.disabled&&this.dayCellClicked.emit(Z)}onDayCellKeyDown(S,Z){const ze=this.utilService.getKeyCodeFromEvent(S);ze!==Q.tab&&(S.preventDefault(),ze===Q.enter||ze===Q.space?this.onDayCellClicked(S,Z):this.opts.moveFocusByArrowKeys&&this.dayCellKeyDown.emit(S))}onDayCellMouseEnter(S){if(this.utilService.isInitializedDate(this.selectedDateRange.begin)&&!this.utilService.isInitializedDate(this.selectedDateRange.end))for(const Z of this.dates)for(const ze of Z.week)ze.range=this.utilService.isDateSameOrEarlier(this.selectedDateRange.begin,ze.dateObj)&&this.utilService.isDateSameOrEarlier(ze.dateObj,S.dateObj)}onDayCellMouseLeave(){for(const S of this.dates)for(const Z of S.week)Z.range=!1}isDateInRange(S){return this.utilService.isDateInRange(S,this.selectedDateRange)}isDateSame(S){return this.utilService.isDateSame(this.selectedDate,S)}isDateRangeBeginOrEndSame(S){return this.utilService.isDateRangeBeginOrEndSame(this.selectedDateRange,S)}isDateRangeBegin(S){return this.utilService.isDateRangeBegin(this.selectedDateRange,S)}isDateRangeEnd(S){return this.utilService.isDateRangeEnd(this.selectedDateRange,S)}isDaySelected(S){return!this.opts.dateRange&&this.isDateSame(S.dateObj)||this.opts.dateRange&&this.isDateRangeBeginOrEndSame(S.dateObj)}}return(je=qt).\u0275fac=function(S){return new(S||je)(m.Y36(Tn))},je.\u0275cmp=m.Xpm({type:je,selectors:[["lib-day-view"]],inputs:{opts:"opts",dates:"dates",weekDays:"weekDays",selectedDate:"selectedDate",selectedDateRange:"selectedDateRange",viewChanged:"viewChanged"},outputs:{dayCellClicked:"dayCellClicked",dayCellKeyDown:"dayCellKeyDown",viewActivated:"viewActivated"},features:[m._Bn([Tn]),m.TTD],decls:7,vars:9,consts:[[1,"myDpCalTable",3,"ngClass"],["class","myDpWeekDayTitle myDpWeekDayTitleWeekNbr",4,"ngIf"],["class","myDpWeekDayTitle","scope","col",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"myDpWeekDayTitle","myDpWeekDayTitleWeekNbr"],["scope","col",1,"myDpWeekDayTitle"],["class","myDpDaycellWeekNbr",4,"ngIf"],[3,"id","class","ngClass","click","keydown","mouseenter","mouseleave",4,"ngFor","ngForOf"],[1,"myDpDaycellWeekNbr"],[3,"id","ngClass","click","keydown","mouseenter","mouseleave"],["class","myDpMarkDate",3,"ngStyle",4,"ngIf"],[1,"myDpDayValue",3,"ngClass"],[1,"myDpMarkDate",3,"ngStyle"]],template:function(S,Z){1&S&&(m.TgZ(0,"table",0)(1,"thead")(2,"tr"),m.YNc(3,q,2,0,"th",1),m.YNc(4,ae,2,1,"th",2),m.qZA()(),m.TgZ(5,"tbody"),m.YNc(6,Ne,3,2,"tr",3),m.qZA()()),2&S&&(m.Q6J("ngClass",m.l5B(4,ie,Z.opts.rtl,Z.opts.showFooterToday,!Z.opts.showFooterToday,Z.opts.viewChangeAnimation&&Z.viewChanged)),m.xp6(3),m.Q6J("ngIf",Z.opts.showWeekNumbers&&"mo"===Z.opts.firstDayOfWeek),m.xp6(1),m.Q6J("ngForOf",Z.weekDays),m.xp6(2),m.Q6J("ngForOf",Z.dates))},dependencies:[i.mk,i.sg,i.O5,i.PC,i.uU],encapsulation:2}),qt})(),di=(()=>{var je;class qt{constructor(S){this.utilService=S,this.monthCellClicked=new m.vpe,this.monthCellKeyDown=new m.vpe,this.viewActivated=new m.vpe}ngOnChanges(S){S.hasOwnProperty(Bn)&&(this.opts=S[Bn].currentValue),S.hasOwnProperty("months")&&(this.months=S.months.currentValue)}ngAfterViewInit(){this.viewActivated.emit(Ii.Month)}onMonthCellClicked(S,Z){S.stopPropagation(),!Z.disabled&&this.monthCellClicked.emit(Z)}onMonthCellKeyDown(S,Z){const ze=this.utilService.getKeyCodeFromEvent(S);ze!==Q.tab&&(S.preventDefault(),ze===Q.enter||ze===Q.space?this.onMonthCellClicked(S,Z):this.opts.moveFocusByArrowKeys&&this.monthCellKeyDown.emit(S))}}return(je=qt).\u0275fac=function(S){return new(S||je)(m.Y36(Tn))},je.\u0275cmp=m.Xpm({type:je,selectors:[["lib-month-view"]],inputs:{opts:"opts",months:"months",viewChanged:"viewChanged"},outputs:{monthCellClicked:"monthCellClicked",monthCellKeyDown:"monthCellKeyDown",viewActivated:"viewActivated"},features:[m._Bn([Tn]),m.TTD],decls:3,vars:7,consts:[[1,"myDpMonthTable",3,"ngClass"],[4,"ngFor","ngForOf"],[3,"id","class","ngClass","click","keydown",4,"ngFor","ngForOf"],[3,"id","ngClass","click","keydown"],["class","myDpMonthNbr","aria-hidden","true",4,"ngIf"],[1,"myDpMonthValue",3,"ngClass"],["aria-hidden","true",1,"myDpMonthNbr"]],template:function(S,Z){1&S&&(m.TgZ(0,"table",0)(1,"tbody"),m.YNc(2,we,2,1,"tr",1),m.qZA()()),2&S&&(m.Q6J("ngClass",m.l5B(2,ie,Z.opts.rtl,Z.opts.showFooterToday,!Z.opts.showFooterToday,Z.opts.viewChangeAnimation&&Z.viewChanged)),m.xp6(2),m.Q6J("ngForOf",Z.months))},dependencies:[i.mk,i.sg,i.O5,i.uU],encapsulation:2}),qt})(),Oi=(()=>{var je;class qt{constructor(S){this.utilService=S,this.yearCellClicked=new m.vpe,this.yearCellKeyDown=new m.vpe,this.viewActivated=new m.vpe}ngOnChanges(S){S.hasOwnProperty(Bn)&&(this.opts=S[Bn].currentValue),S.hasOwnProperty("years")&&(this.years=S.years.currentValue)}ngAfterViewInit(){this.viewActivated.emit(Ii.Year)}onYearCellClicked(S,Z){S.stopPropagation(),!Z.disabled&&this.yearCellClicked.emit(Z)}onYearCellKeyDown(S,Z){const ze=this.utilService.getKeyCodeFromEvent(S);ze!==Q.tab&&(S.preventDefault(),ze===Q.enter||ze===Q.space?this.onYearCellClicked(S,Z):this.opts.moveFocusByArrowKeys&&this.yearCellKeyDown.emit(S))}}return(je=qt).\u0275fac=function(S){return new(S||je)(m.Y36(Tn))},je.\u0275cmp=m.Xpm({type:je,selectors:[["lib-year-view"]],inputs:{opts:"opts",years:"years",viewChanged:"viewChanged"},outputs:{yearCellClicked:"yearCellClicked",yearCellKeyDown:"yearCellKeyDown",viewActivated:"viewActivated"},features:[m._Bn([Tn]),m.TTD],decls:3,vars:7,consts:[[1,"myDpYearTable",3,"ngClass"],[4,"ngFor","ngForOf"],[3,"id","class","ngClass","click","keydown",4,"ngFor","ngForOf"],[3,"id","ngClass","click","keydown"],[1,"myDpYearValue",3,"ngClass"]],template:function(S,Z){1&S&&(m.TgZ(0,"table",0)(1,"tbody"),m.YNc(2,Re,2,1,"tr",1),m.qZA()()),2&S&&(m.Q6J("ngClass",m.l5B(2,ie,Z.opts.rtl,Z.opts.showFooterToday,!Z.opts.showFooterToday,Z.opts.viewChangeAnimation&&Z.viewChanged)),m.xp6(2),m.Q6J("ngForOf",Z.years))},dependencies:[i.mk,i.sg,i.uU],encapsulation:2}),qt})(),Wi=(()=>{var je;class qt{constructor(S){this.utilService=S,this.footerBarTxtClicked=new m.vpe,this.footerBarTxt=""}ngOnChanges(S){if(S.hasOwnProperty(Bn)){this.opts=S[Bn].currentValue;const{dateFormat:Z,monthLabels:ze,todayTxt:rt}=this.opts,Rt=this.utilService.getToday();this.footerBarTxt=rt+(rt.length>0?" ":"")+this.utilService.formatDate(Rt,Z,ze)}}onFooterBarTxtClicked(){this.footerBarTxtClicked.emit()}}return(je=qt).\u0275fac=function(S){return new(S||je)(m.Y36(Tn))},je.\u0275cmp=m.Xpm({type:je,selectors:[["lib-footer-bar"]],inputs:{opts:"opts"},outputs:{footerBarTxtClicked:"footerBarTxtClicked"},features:[m._Bn([Tn]),m.TTD],decls:3,vars:1,consts:[[1,"myDpFooterBar"],["type","button",1,"myDpHeaderBtn","myDpFooterBtn",3,"click"]],template:function(S,Z){1&S&&(m.TgZ(0,"div",0)(1,"button",1),m.NdJ("click",function(){return Z.onFooterBarTxtClicked()}),m._uU(2),m.qZA()()),2&S&&(m.xp6(2),m.Oqu(Z.footerBarTxt))},encapsulation:2}),qt})(),Ze=(()=>{var je;class qt{constructor(S){this.el=S}ngAfterViewInit(){const{inline:S,selectorHeight:Z,selectorWidth:ze,selectorPos:rt}=this.libAngularMyDatePickerCalendar,{style:Rt}=this.el.nativeElement;Rt.height=Z,Rt.width=ze,Rt.top=S?"0":rt.top,Rt.left=S?"0":rt.left}}return(je=qt).\u0275fac=function(S){return new(S||je)(m.Y36(m.SBq))},je.\u0275dir=m.lG2({type:je,selectors:[["","libAngularMyDatePickerCalendar",""]],inputs:{libAngularMyDatePickerCalendar:"libAngularMyDatePickerCalendar"}}),qt})(),Dt=(()=>{var je;class qt{constructor(S,Z,ze,rt){this.elem=S,this.renderer=Z,this.cdr=ze,this.utilService=rt,this.position="static",this.visibleMonth={monthTxt:"",monthNbr:0,year:0},this.selectedMonth={monthNbr:0,year:0},this.selectedDate={year:0,month:0,day:0},this.selectedDateRange={begin:{year:0,month:0,day:0},end:{year:0,month:0,day:0}},this.weekDays=[],this.dates=[],this.months=[],this.years=[],this.yearsDuration="",this.dayIdx=0,this.weekDayOpts=["su",F,"tu","we",St,"fr","sa"],this.selectMonth=!1,this.selectYear=!1,this.viewChanged=!1,this.selectorPos=null,this.prevViewDisabled=!1,this.nextViewDisabled=!1,this.clickListener=Z.listen(S.nativeElement,fn,Rt=>{(this.opts.monthSelector||this.opts.yearSelector)&&Rt.target&&this.resetMonthYearSelect()})}ngAfterViewInit(){const{stylesData:S,calendarAnimation:Z,inline:ze}=this.opts;if(S.styles.length){const rt=this.renderer.createElement("style");this.renderer.appendChild(rt,this.renderer.createText(S.styles)),this.renderer.appendChild(this.styleEl.nativeElement,rt)}Z.in!==ri.None&&this.setCalendarAnimation(Z,!0),ze||this.focusToSelector()}ngOnDestroy(){this.clickListener()}initializeComponent(S,Z,ze,rt,Rt,tn,Kt,Jt,Ht,ln){this.opts=S,this.selectorPos=Rt,this.dateChanged=tn,this.calendarViewChanged=Kt,this.rangeDateSelection=Jt,this.viewActivated=Ht,this.closedByEsc=ln;const{defaultView:xn,firstDayOfWeek:si,dayLabels:zn}=S;if(this.weekDays.length=0,this.dayIdx=this.weekDayOpts.indexOf(si),-1!==this.dayIdx){let cn=this.dayIdx;for(let bn=0;bnze&&(Rt=ze-24);const{year:tn}=this.visibleMonth;this.years.length=0;const Kt=this.utilService.getToday();let Jt=0;for(let xn=Rt;xn0?Kt--:ln===Q.downArrow&&Z0?Jt--:ln===Q.rightArrow&&ze"0"===xn.getAttribute(Gt)):Jt.slice(0,Ht).reverse().find(xn=>"0"===xn.getAttribute(Gt)),Kt=ln||this.selectorEl.nativeElement}else Kt.focus()}focusToSelector(){this.selectorEl.nativeElement.focus()}getCalendarElements(){return Array.from(this.selectorEl.nativeElement.querySelectorAll("table tbody tr td:not(.myDpDaycellWeekNbr)"))}selectDate(S){const{dateRange:Z,dateFormat:ze,monthLabels:rt,dateRangeDatesDelimiter:Rt,closeSelectorOnDateSelect:tn}=this.opts;if(Z){const Kt=this.utilService.isInitializedDate(this.selectedDateRange.begin),Jt=this.utilService.isInitializedDate(this.selectedDateRange.end);Kt&&Jt?(this.selectedDateRange.begin=S,this.selectedDateRange.end=this.utilService.resetDate(),this.rangeDateSelection({isBegin:!0,date:S,jsDate:this.utilService.myDateToJsDate(S),dateFormat:ze,formatted:this.utilService.formatDate(S,ze,rt),epoc:this.utilService.getEpocTime(S)})):Kt?this.utilService.isDateEarlier(S,this.selectedDateRange.begin)?(this.selectedDateRange.begin=S,this.rangeDateSelection({isBegin:!0,date:S,jsDate:this.utilService.myDateToJsDate(S),dateFormat:ze,formatted:this.utilService.formatDate(S,ze,rt),epoc:this.utilService.getEpocTime(S)})):(this.selectedDateRange.end=S,this.rangeDateSelection({isBegin:!1,date:S,jsDate:this.utilService.myDateToJsDate(S),dateFormat:ze,formatted:this.utilService.formatDate(S,ze,rt),epoc:this.utilService.getEpocTime(S)}),this.dateChanged(this.utilService.getDateModel(null,this.selectedDateRange,ze,rt,Rt),tn)):(this.selectedDateRange.begin=S,this.rangeDateSelection({isBegin:!0,date:S,jsDate:this.utilService.myDateToJsDate(S),dateFormat:ze,formatted:this.utilService.formatDate(S,ze,rt),epoc:this.utilService.getEpocTime(S)}))}else this.selectedDate=S,this.dateChanged(this.utilService.getDateModel(this.selectedDate,null,ze,rt,Rt),tn)}monthStartIdx(S,Z){const ze=new Date;ze.setDate(1),ze.setMonth(Z-1),ze.setFullYear(S);const rt=ze.getDay()+this.sundayIdx();return rt>=7?rt-7:rt}isCurrDay(S,Z,ze,rt){return S===rt.day&&Z===rt.month&&ze===rt.year}getDayNumber(S){const{year:Z,month:ze,day:rt}=S;return this.utilService.getJsDate(Z,ze,rt).getDay()}getWeekday(S){return this.weekDayOpts[this.getDayNumber(S)]}sundayIdx(){return this.dayIdx>0?7-this.dayIdx:0}generateCalendar(S,Z,ze){this.dates.length=0;const rt=this.utilService.getToday(),Rt=this.monthStartIdx(Z,S),tn=this.utilService.datesInMonth(S,Z),Kt=this.utilService.datesInPrevMonth(S,Z);let Jt=1,Ht=S,ln=Qn.prev;const{rtl:xn,showWeekNumbers:si,firstDayOfWeek:zn}=this.opts;for(let cn=1;cn<7;cn++){let bn=xn?6:0;const mi=[];if(1===cn){for(let Ri=Kt-Rt+1;Ri<=Kt;Ri++){const Ci={year:1===S?Z-1:Z,month:1===S?12:S-1,day:Ri};mi.push({dateObj:Ci,cmo:ln,currDay:this.isCurrDay(Ri,Ht-1,Z,rt),disabledDate:this.utilService.isDisabledDate(Ci,this.opts),markedDate:this.utilService.isMarkedDate(Ci,this.opts),highlight:this.utilService.isHighlightedDate(Ci,this.opts),row:cn-1,col:xn?bn--:bn++})}ln=Qn.curr;const ui=7-mi.length;for(let Ri=0;Ritn&&(Jt=1,ln=Qn.next,Ht=S+1);const ui={year:ln===Qn.next&&12===S?Z+1:Z,month:ln===Qn.curr?S:ln===Qn.next&&S<12?S+1:1,day:Jt};mi.push({dateObj:ui,cmo:ln,currDay:this.isCurrDay(Jt,Ht,Z,rt),disabledDate:this.utilService.isDisabledDate(ui,this.opts),markedDate:this.utilService.isMarkedDate(ui,this.opts),highlight:this.utilService.isHighlightedDate(ui,this.opts),row:cn-1,col:xn?bn--:bn++}),Jt++}const Si=si&&zn===F?this.utilService.getWeekNumber(mi[0].dateObj):0;this.dates.push({week:mi,weekNbr:Si})}this.setDateViewHeaderBtnDisabledState(S,Z),ze&&this.calendarViewChanged({year:Z,month:S,first:{number:1,weekday:this.getWeekday({year:Z,month:S,day:1})},last:{number:tn,weekday:this.getWeekday({year:Z,month:S,day:tn})}})}setDateViewHeaderBtnDisabledState(S,Z){let ze=!1,rt=!1;const{disableHeaderButtons:Rt,disableUntil:tn,disableSince:Kt,enableDates:Jt,minYear:Ht,maxYear:ln,rtl:xn}=this.opts;if(Rt){const si={year:1===S?Z-1:Z,month:1===S?12:S-1,day:this.utilService.datesInMonth(1===S?12:S-1,1===S?Z-1:Z)},zn={year:12===S?Z+1:Z,month:12===S?1:S+1,day:1};ze=this.utilService.isDisabledByDisableUntil(si,tn)&&!this.utilService.isPastDatesEnabled(si,Jt),rt=this.utilService.isDisabledByDisableSince(zn,Kt)&&!this.utilService.isFutureDatesEnabled(zn,Jt)}this.prevViewDisabled=1===S&&Z===Ht||ze,this.nextViewDisabled=12===S&&Z===ln||rt,xn&&this.swapHeaderBtnDisabled()}setMonthViewHeaderBtnDisabledState(S){let Z=!1,ze=!1;const{disableHeaderButtons:rt,disableUntil:Rt,disableSince:tn,enableDates:Kt,minYear:Jt,maxYear:Ht,rtl:ln}=this.opts;if(rt){const xn={year:S-1,month:12,day:31},si={year:S+1,month:1,day:1};Z=this.utilService.isDisabledByDisableUntil(xn,Rt)&&!this.utilService.isPastDatesEnabled(xn,Kt),ze=this.utilService.isDisabledByDisableSince(si,tn)&&!this.utilService.isFutureDatesEnabled(si,Kt)}this.prevViewDisabled=S===Jt||Z,this.nextViewDisabled=S===Ht||ze,ln&&this.swapHeaderBtnDisabled()}setYearViewHeaderBtnDisabledState(S,Z){let ze=!1,rt=!1;const{disableHeaderButtons:Rt,disableUntil:tn,disableSince:Kt,enableDates:Jt,minYear:Ht,maxYear:ln,rtl:xn}=this.opts;if(Rt){const si={year:S-1,month:12,day:31},zn={year:Z+1,month:1,day:1};ze=this.utilService.isDisabledByDisableUntil(si,tn)&&!this.utilService.isPastDatesEnabled(si,Jt),rt=this.utilService.isDisabledByDisableSince(zn,Kt)&&!this.utilService.isFutureDatesEnabled(zn,Jt)}this.prevViewDisabled=S<=Ht||ze,this.nextViewDisabled=Z>=ln||rt,xn&&this.swapHeaderBtnDisabled()}swapHeaderBtnDisabled(){[this.prevViewDisabled,this.nextViewDisabled]=[this.nextViewDisabled,this.prevViewDisabled]}}return(je=qt).\u0275fac=function(S){return new(S||je)(m.Y36(m.SBq),m.Y36(m.Qsj),m.Y36(m.sBO),m.Y36(Tn))},je.\u0275cmp=m.Xpm({type:je,selectors:[["lib-angular-mydatepicker-calendar"]],viewQuery:function(S,Z){if(1&S&&(m.Gf(He,7),m.Gf(nt,7)),2&S){let ze;m.iGM(ze=m.CRH())&&(Z.selectorEl=ze.first),m.iGM(ze=m.CRH())&&(Z.styleEl=ze.first)}},hostVars:2,hostBindings:function(S,Z){2&S&&m.Udp("position",Z.position)},features:[m._Bn([Tn])],decls:10,vars:27,consts:[["styleEl",""],["tabindex","0",1,"myDpSelector",3,"libAngularMyDatePickerCalendar","ngClass","keyup"],["selectorEl",""],[3,"opts","yearsDuration","visibleMonth","selectMonth","selectYear","prevViewDisabled","nextViewDisabled","prevNavigateBtnClicked","nextNavigateBtnClicked","monthViewBtnClicked","yearViewBtnClicked"],[3,"opts","dates","weekDays","selectedDate","selectedDateRange","viewChanged","dayCellClicked","dayCellKeyDown","viewActivated",4,"ngIf"],[3,"opts","months","viewChanged","monthCellClicked","monthCellKeyDown","viewActivated",4,"ngIf"],[3,"opts","years","viewChanged","yearCellClicked","yearCellKeyDown","viewActivated",4,"ngIf"],[3,"opts","footerBarTxtClicked",4,"ngIf"],[3,"opts","dates","weekDays","selectedDate","selectedDateRange","viewChanged","dayCellClicked","dayCellKeyDown","viewActivated"],[3,"opts","months","viewChanged","monthCellClicked","monthCellKeyDown","viewActivated"],[3,"opts","years","viewChanged","yearCellClicked","yearCellKeyDown","viewActivated"],[3,"opts","footerBarTxtClicked"]],template:function(S,Z){1&S&&(m._UZ(0,"span",null,0),m.TgZ(2,"div")(3,"div",1,2),m.NdJ("keyup",function(rt){return Z.onCloseSelector(rt)}),m.TgZ(5,"lib-selection-bar",3),m.NdJ("prevNavigateBtnClicked",function(){return Z.onPrevNavigateBtnClicked()})("nextNavigateBtnClicked",function(){return Z.onNextNavigateBtnClicked()})("monthViewBtnClicked",function(){return Z.onMonthViewBtnClicked()})("yearViewBtnClicked",function(){return Z.onYearViewBtnClicked()}),m.qZA(),m.YNc(6,_t,1,6,"lib-day-view",4),m.YNc(7,dt,1,3,"lib-month-view",5),m.YNc(8,yt,1,3,"lib-year-view",6),m.YNc(9,ot,1,1,"lib-footer-bar",7),m.qZA()()),2&S&&(m.xp6(2),m.Gre("ng-mydp ",(null==Z.opts.stylesData?null:Z.opts.stylesData.selector)||"",""),m.xp6(1),m.Q6J("libAngularMyDatePickerCalendar",m.l5B(16,st,Z.opts.inline,Z.opts.selectorWidth,Z.opts.selectorHeight,Z.selectorPos))("ngClass",m.qbA(21,_e,Z.opts.showSelectorArrow,Z.opts.showSelectorArrow&&!Z.opts.alignSelectorRight,Z.opts.showSelectorArrow&&Z.opts.alignSelectorRight,!Z.opts.inline,Z.opts.inline)),m.xp6(2),m.Q6J("opts",Z.opts)("yearsDuration",Z.yearsDuration)("visibleMonth",Z.visibleMonth)("selectMonth",Z.selectMonth)("selectYear",Z.selectYear)("prevViewDisabled",Z.prevViewDisabled)("nextViewDisabled",Z.nextViewDisabled),m.xp6(1),m.Q6J("ngIf",!Z.selectMonth&&!Z.selectYear),m.xp6(1),m.Q6J("ngIf",Z.selectMonth),m.xp6(1),m.Q6J("ngIf",Z.selectYear),m.xp6(1),m.Q6J("ngIf",Z.opts.showFooterToday))},dependencies:[i.mk,i.O5,$i,qn,di,Oi,Wi,Ze],styles:['.ng-mydp{position:static}.ng-myrtl{direction:rtl}.ng-mydp *{box-sizing:border-box;font-family:Arial,Helvetica,sans-serif;padding:0;margin:0}.ng-mydp table{display:table;border-spacing:0}.ng-mydp table td,.ng-mydp table th{padding:0;margin:0;vertical-align:middle;border:none}.myDpSelector{padding:4px;border:1px solid #CCC;background-color:#fff;border-radius:4px;z-index:100000}.myDpViewChangeAnimation{animation:myDpViewChangeAnimation .2s linear}@keyframes myDpViewChangeAnimation{0%{transform:scale(.75);opacity:.1}to{transform:scale(1);opacity:1}}.myDpAnimationFadeIn{animation:myDpAnimationFadeIn .5s linear}@keyframes myDpAnimationFadeIn{0%{transform:translateY(-50px);opacity:0}to{transform:translateY(0);opacity:1}}.myDpAnimationFadeOut{animation:myDpAnimationFadeOut .3s linear forwards}@keyframes myDpAnimationFadeOut{0%{transform:translateY(0);opacity:1}to{transform:translateY(-50px);opacity:0}}.myDpAnimationScaleTopIn{animation:myDpAnimationScaleTopIn .3s linear}@keyframes myDpAnimationScaleTopIn{0%{transform:scaleY(0);transform-origin:100% 0%}to{transform:scaleY(1);transform-origin:100% 0%}}.myDpAnimationScaleTopOut{animation:myDpAnimationScaleTopOut .3s linear forwards}@keyframes myDpAnimationScaleTopOut{0%{transform:scaleY(1);transform-origin:100% 0%;opacity:1}to{transform:scaleY(0);transform-origin:100% 0%;opacity:0}}.myDpAnimationScaleCenterIn{animation:myDpAnimationScaleCenterIn .3s linear}@keyframes myDpAnimationScaleCenterIn{0%{transform:scale(0)}to{transform:scale(1)}}.myDpAnimationScaleCenterOut{animation:myDpAnimationScaleCenterOut .3s linear forwards}@keyframes myDpAnimationScaleCenterOut{0%{transform:scale(1);opacity:1}to{transform:scale(0);opacity:0}}.myDpAnimationRotateIn{animation:myDpAnimationRotateIn .3s linear}@keyframes myDpAnimationRotateIn{0%{transform:scale(.3) rotate(-45deg);opacity:0}to{transform:scale(1) rotate(0);opacity:1}}.myDpAnimationRotateOut{animation:myDpAnimationRotateOut .3s linear forwards}@keyframes myDpAnimationRotateOut{0%{transform:scale(1) rotate(0);opacity:1}to{transform:scale(.3) rotate(-45deg);opacity:0}}.myDpAnimationFlipDiagonalIn{animation:myDpAnimationFlipDiagonalIn .3s linear}@keyframes myDpAnimationFlipDiagonalIn{0%{transform:rotate3d(1,1,0,-78deg)}to{transform:rotate3d(1,1,0,0)}}.myDpAnimationFlipDiagonalOut{animation:myDpAnimationFlipDiagonalOut .3s linear forwards}@keyframes myDpAnimationFlipDiagonalOut{0%{transform:rotate3d(1,1,0,0);opacity:1}to{transform:rotate3d(1,1,0,78deg);opacity:0}}.myDpSelectorAbsolute{position:absolute}.myDpSelectorPosInitial{position:initial}.myDpSelector:focus{box-shadow:-1px 1px 6px #add8e6;outline:none}.myDpSelectorArrow{background:#FFF}.myDpSelectorArrow:after,.myDpSelectorArrow:before{bottom:100%;border:solid transparent;content:" ";height:0;width:0;position:absolute}.myDpSelectorArrow:after{border-color:#fafafa00;border-bottom-color:#fafafa;border-width:10px;margin-left:-10px}.myDpSelectorArrow:before{border-color:#ccc0;border-bottom-color:#ccc;border-width:11px;margin-left:-11px}.myDpSelectorArrow:focus:before{border-bottom-color:#add8e6}.myDpSelectorArrowLeft:after,.myDpSelectorArrowLeft:before{left:24px}.myDpSelectorArrowRight:after,.myDpSelectorArrowRight:before{left:86%}::-ms-clear{display:none}.myDpCalTable,.myDpMonthTable,.myDpYearTable,.myDpFooterBar{border-radius:0 0 4px 4px}.myDpCalTable.myDpNoFooter tbody tr:nth-child(6) td:first-child,.myDpMonthTable.myDpNoFooter tbody tr:nth-child(4) td:first-child,.myDpYearTable.myDpNoFooter tbody tr:nth-child(5) td:first-child{border-bottom-left-radius:4px}.myDpCalTable.myDpNoFooter tbody tr:nth-child(6) td:last-child,.myDpMonthTable.myDpNoFooter tbody tr:nth-child(4) td:last-child,.myDpYearTable.myDpNoFooter tbody tr:nth-child(5) td:last-child{border-bottom-right-radius:4px}.myDpCalTable,.myDpMonthTable,.myDpYearTable{table-layout:fixed;width:100%;background-color:#fff;font-size:14px}.myDpFooter{height:calc(100% - 60px)}.myDpNoFooter{height:calc(100% - 30px)}.myDpCalTable,.myDpMonthTable,.myDpYearTable,.myDpWeekDayTitle,.myDpDaycell,.myDpMonthcell,.myDpYearcell{border-collapse:collapse;color:#333;line-height:1.1}.myDpDaycell,.myDpMonthcell,.myDpYearcell{padding:4px;text-align:center;outline:none}.myDpDaycell{background-color:#fff;position:relative}.myDpWeekDayTitle{background-color:transparent;color:#333;font-size:13px;font-weight:400;vertical-align:middle;max-width:36px;overflow:hidden;white-space:nowrap;height:23px;text-align:center}.myDpWeekDayTitleWeekNbr{width:20px}.myDpMonthcell{background-color:#fff;overflow:hidden;white-space:nowrap}.myDpYearcell{background-color:#fff;width:20%}.myDpMonthNbr{font-size:10px;display:block}.myDpDaycellWeekNbr{font-size:9px;cursor:default;text-align:center;color:#333}.myDpPrevMonth,.myDpNextMonth{color:#999}.myDpMonthYearSelBar{display:flex;height:30px;background-color:#fff;border-top-left-radius:4px;border-top-right-radius:4px}.myDpPrevBtn{margin-left:10px}.myDpNextBtn{margin-left:auto;margin-right:10px}.myDpMonthYearText{width:100%;line-height:30px;text-align:center}.myDpFooterBar{display:flex;align-items:center;justify-content:center;height:30px;background-color:#fff}.myDpHeaderBtn{background:transparent;padding:0;border:none;line-height:30px;height:28px;margin-top:1px;color:#000;outline:none;cursor:default}.myDpFooterBtn{margin:0 10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.myDpMonthBtn,.myDpYearBtn{font-size:16px}.myDpMonthBtn{margin-right:6px}.myDpHighlight{color:#c30000}.myDpDimDay{opacity:.5}.myDpCurrMonth{background-color:#fff;font-weight:400}.myDpMarkDate{position:absolute;top:2px;left:2px;border-right:8px solid transparent}.myDpMarkCurrDay,.myDpMarkCurrMonth,.myDpMarkCurrYear{border-bottom:2px solid #333}.myDpHeaderLabelBtnNotEdit{cursor:default}.myDpHeaderBtn::-moz-focus-inner,.myDpPrevBtn::-moz-focus-inner,.myDpNextBtn::-moz-focus-inner{border:0}.myDpHeaderBtn:focus,.myDpMonthLabel:focus,.myDpYearLabel:focus,.myDpFooterBtn:focus{color:#66afe9;outline:none}.myDpDaycell:focus,.myDpMonthcell:focus,.myDpYearcell:focus{box-shadow:inset 0 0 0 1px #66afe9}.myDpTableSingleDay:hover,.myDpTableSingleMonth:hover,.myDpTableSingleYear:hover{background-color:#ddd}.myDpMonthLabel,.myDpYearLabel,.myDpDaycell,.myDpMonthcell,.myDpYearcell{cursor:pointer}.myDpHeaderBtnEnabled:hover,.myDpMonthLabel:hover,.myDpYearLabel:hover,.myDpFooterBtn:hover{color:#777}.myDpHeaderBtnEnabled{cursor:pointer}.myDpHeaderBtnDisabled{cursor:not-allowed;opacity:.65}.myDpDisabled{cursor:default;color:#777;background:repeating-linear-gradient(-45deg,#ccc 7px,#ccc 8px,transparent 7px,transparent 14px)}.myDpRangeColor{background-color:#dbeaff}.myDpRangeBegin,.myDpRangeEnd,.myDpSelectedDay,.myDpSelectedMonth,.myDpSelectedYear{border:none;background-color:#8ebfff}@font-face{font-family:angular-mydatepicker;src:url(data:application/octet-stream;base64,d09GRgABAAAAAAs4AA8AAAAAE+gAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABWAAAADsAAABUIIslek9TLzIAAAGUAAAAQwAAAFY+IEi5Y21hcAAAAdgAAABQAAABfohD7KljdnQgAAACKAAAABMAAAAgBtX/BGZwZ20AAAI8AAAFkAAAC3CKkZBZZ2FzcAAAB8wAAAAIAAAACAAAABBnbHlmAAAH1AAAAL8AAAEAS//bfWhlYWQAAAiUAAAAMQAAADYW6nhraGhlYQAACMgAAAAbAAAAJAc8A1ZobXR4AAAI5AAAAAwAAAAMCXwAAGxvY2EAAAjwAAAACAAAAAgAQACAbWF4cAAACPgAAAAgAAAAIACmC5tuYW1lAAAJGAAAAXcAAALNzJ0fIXBvc3QAAAqQAAAAKwAAAEAj+eC8cHJlcAAACrwAAAB6AAAAhuVBK7x4nGNgZGBg4GIwYLBjYHJx8wlh4MtJLMljkGJgYYAAkDwymzEnMz2RgQPGA8qxgGkOIGaDiAIAJjsFSAB4nGNgZNZknMDAysDAVMW0h4GBoQdCMz5gMGRkAooysDIzYAUBaa4pDA4vGF4wMgf9z2KIYg5imAYUZgTJAQDMhAtXAHic7ZCxDYAwDATPiaFAjEFBwTBU7F+yRfK2GYOX7qR/uTKwAF1cwsEejMit1XLvbLk7R9547K+NIRNW93STVv7s6fNrLf5U1OcK2gTMuAtdeJxjYEADEhDIHPQ/C4QBEmwD3QB4nK1WaXfTRhQdeUmchCwlCy1qYcTEabBGJmzBgAlBsmMgXZytlaCLFDvpvvGJ3+Bf82Tac+g3flrvGy8kkLTncJqTo3fnzdXM22USWpLYC+uRlJsvxdTWJo3sPAnphk3LUXwoO3shZYrJ3wVREK2W2rcdh0REIlC1rrBEEPseWZpkfOhRRsu2pFdNyi096S5b40G9Vd9+GjrKsTuhpGYzdGg9siVVGFWiSKY9UtKmZaj6K0krvL/CzFfNUMKITiJpvBnG0EjeG2e0ymg1tuMoimyy3ChSJJrhQRR5lNUS5+SKCQzKB82Q8sqnEeXD/Iis2KOcVrBLttP8vi95p3c5P7Ffb1G25EAfyI7s4Ox0JV+EW1th3LST7ShUEXbXd0Js2exU/2aP8ppGA7crMr3QjGCpfIUQKz+hzP4hWS2cT/mSR6NaspETQetlTuxLPoHW44gpcc0YWdDd0QkR1P2SMwz2mD4e/PHeKZYLEwJ4HMt6RyWcCBMpYXM0SdowcmAlZYsqqfWumDjldVrEW8J+7drRl85o41B3YjxbDx1bOVHJ8WhSp5lMndpJzaMpDaKUdCZ4zK8DKD+iSV5tYzWJlUfTOGbGhEQiAi3cS1NBLDuxpCkEzaMZvbkbprl2LVqkyQP13KP39OZWuLnTU9oO9LNGf1anYjrYC9PpaeQv8Wna5SJF6frpGX5M4kHWAjKRLTbDlIMHb/0O0svXlhyF1wbY7u3zK6h91kTwpAH7G9AeT9UpCUyFmFWIVkBirWtZlsnVrBapyNR3Q5pWvqzTBIpyHBfHvoxx/V8zM5aYEr7fidOzIy49c+1LCNMcfJt1PZrXqcVyAXFmeU6nWZbv6zTH8gOd5lme1+kIS1unoyw/1GmB5Uc6HWN5QQuadN/BkIsw5AIOkDCEpQNDWF6CISwVDGG5CENYFmEIyyUYwvJjGMJyGYawvKxl1dRTSePamVgGbEJgYo4eucxF5WoquVRCu2hUakOeEm6VVBTPqn9loF488oY5sBZIl8iaXzHOlY9G5fjWFS1vGjtXwLHqbx+O9jnxUtaLhT8F/9XWVCW9Ys3Dk6vwG4aebCeqNql4dE2Xz1U9uv5fVFRYC/QbSIVYKMqybHBnIoSPOp2GaqCVQ8xszDy063XLmp/D/TcxQhZQ/fg3FBoL3INOWUlZ7eCs1dfbstw7g3I4EyxJMTfz+lb4IiOz0n6RWcqej3wecAWMSmXYagOtFbzZJzEPmd4kzwRxW1E2SNrYzgSJDRzzgHnznQQmYeqqDeRO4YYN+AVhbsF5J1yieqMsh+5F7PMopPxbp+JE9qhojMCz2Rthr+9Cym9xDCQ0+aV+DFQVoakYNRXQNFJuqAZfxtm6bULGDvQjKnbDsqziw8cW95WSbRmEfKSI1aOjn9Zeok6q3H5mFJfvnb4FwSA1MX9733RxkMq7WskyR20DU7calVPXmkPjVYfq5lH1vePsEzlrmm66Jx56X9Oq28HFXCyw9m0O0lImF9T1YYUNosvFpVDqZTRJ77gHGBYY0O9Qio3/q/rYfJ4rVYXRcSTfTtS30edgDPwP2H9H9QPQ92Pocg0uz/eaE59u9OFsma6iF+un6Dcwa625WboG3NB0A+IhR62OuMoNfKcGcXqkuRzpIeBj3RXiAcAmgMXgE921jOZTAKP5jDk+wOfMYdBkDoMt5jDYZs4awA5zGOwyh8Eecxh8wZx1gC+ZwyBkDoOIOQyeMCcAeMocBl8xh8HXzGHwDXPuA3zLHAYxcxgkzGGwr+nWMMwtXtBdoLZBVaADU09Y3MPiUFNlyP6OF4b9vUHM/sEgpv6o6faQ+hMvDPVng5j6i0FM/VXTnSH1N14Y6u8GMfUPg5j6TL8Yy2UGv4x8lwoHlF1sPufvifcP28VAuQABAAH//wAPeJxjYGRg+H+AaQazC4MIg+5WRkYGRkZ37w0qAREO3AwMjAwFQD4Po6e0AyeQw5jPwMCQFrlFXJyJVUybk0lMhJ+RTUmdUc3EnNHMSJ5RTISp7991Rk0urlhuGe5/SdzcjPO45LhiuZhW/bvx7zqYycU4H0gzzuPmjuWSYwBZAbK/BGo/J1H2ywiB7QfarQ+ymxNI2AMdIA5yQBbQWhnuWKDVGv9ugC0BWsbFmPkvEeIqRk1GDYgCkEIGAB9cLoQAeJxjYGRgYABic9F3f+P5bb4ycDO/AIow3Pw4yxFB/z/A/ILZBcjlYGACiQIAcjgNFAAAAHicY2BkYGAO+p8FJF8wMIBJRgZUwAwAXPcDmgAD6AAAAsoAAALKAAAAAAAAAEAAgAABAAAAAwAVAAEAAAAAAAIABAAUAHMAAAAqC3AAAAAAeJx1kMtOwkAUhv+RiwqJGk3cOisDMZZL4gISEhIMbHRDDFtTSmlLSodMBxJew3fwYXwJn8WfdjAGYpvpfOebM2dOB8A1viGQP08cOQucMcr5BKfoWS7QP1sukl8sl1DFm+Uy/bvlCh4QWK7iBh+sIIrnjBb4tCxwJS4tn+BC3Fku0D9aLpJ7lku4Fa+Wy/Se5QomIrVcxb34GqjVVkdBaGRtUJftZqsjp1upqKLEjaW7NqHSqezLuUqMH8fK8dRyz2M/WMeu3of7eeLrNFKJbDnNvRr5ia9d48921dNN0DZmLudaLeXQZsiVVgvfM05ozKrbaPw9DwMorLCFRsSrCmEgUaOtc26jiRY6pCkzJDPzrAgJXMQ0LtbcEWYrKeM+x5xRQuszIyY78PhdHvkxKeD+mFX00ephPCHtzogyL9mXw+4Os0akJMt0Mzv77T3Fhqe1aQ137brUWVcSw4MakvexW1vQePROdiuGtosG33/+7wfseIRVAHicY2BigAAuBuyAmZGJkZmRhYEzJzWtRDe/IDWPqygzPQPCZGAAAGN+B7YAeJxj8N7BcCIoYiMjY1/kBsadHAwcDMkFGxlYnTYxMDJogRibuZgYOSAsPgYwi81pF9MBoDQnkM3utIvBAcJmZnDZqMLYERixwaEjYiNzistGNRBvF0cDAyOLQ0dySARISSQQbOZhYuTR2sH4v3UDS+9GJgYXAAx2I/QAAA==) format("woff");font-weight:400;font-style:normal}.myDpIcon{font-family:angular-mydatepicker;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#222;font-size:20px}.myDpIconLeftArrow:before{content:"\\e800"}.myDpIconRightArrow:before{content:"\\e801"}\n'],encapsulation:2}),qt})(),it=(()=>{var je;class qt{constructor(){this.locales={en:{dayLabels:{su:"Sun",mo:"Mon",tu:"Tue",we:"Wed",th:"Thu",fr:"Fri",sa:"Sat"},monthLabels:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"},dateFormat:"mm/dd/yyyy",firstDayOfWeek:"mo",sunHighlight:!0,todayTxt:"Today"},he:{dayLabels:{su:"\u05e8\u05d0",mo:"\u05e9\u05e0",tu:"\u05e9\u05dc",we:"\u05e8\u05d1",th:"\u05d7\u05de",fr:"\u05e9\u05d9",sa:"\u05e9\u05d1"},monthLabels:{1:"\u05d9\u05e0\u05d5",2:"\u05e4\u05d1\u05e8",3:"\u05de\u05e8\u05e5",4:"\u05d0\u05e4\u05e8",5:"\u05de\u05d0\u05d9",6:"\u05d9\u05d5\u05e0",7:"\u05d9\u05d5\u05dc",8:"\u05d0\u05d5\u05d2",9:"\u05e1\u05e4\u05d8",10:"\u05d0\u05d5\u05e7",11:"\u05e0\u05d5\u05d1",12:"\u05d3\u05e6\u05de"},dateFormat:"dd/mm/yyyy",firstDayOfWeek:"su",sunHighlight:!1,todayTxt:"\u05d4\u05d9\u05d5\u05dd"},ja:{dayLabels:{su:"\u65e5",mo:"\u6708",tu:"\u706b",we:"\u6c34",th:"\u6728",fr:"\u91d1",sa:"\u571f"},monthLabels:{1:"\uff11\u6708",2:"\uff12\u6708",3:"\uff13\u6708",4:"\uff14\u6708",5:"\uff15\u6708",6:"\uff16\u6708",7:"\uff17\u6708",8:"\uff18\u6708",9:"\uff19\u6708",10:"\uff11\uff10\u6708",11:"\uff11\uff11\u6708",12:"\uff11\uff12\u6708"},dateFormat:"yyyy.mm.dd",sunHighlight:!1,todayTxt:"\u4eca\u65e5"},fr:{dayLabels:{su:"Dim",mo:"Lun",tu:"Mar",we:"Mer",th:"Jeu",fr:"Ven",sa:"Sam"},monthLabels:{1:"Jan",2:"F\xe9v",3:"Mar",4:"Avr",5:"Mai",6:"Juin",7:"Juil",8:"Ao\xfb",9:"Sep",10:"Oct",11:"Nov",12:"D\xe9c"},dateFormat:"dd/mm/yyyy",firstDayOfWeek:"mo",sunHighlight:!0,todayTxt:"Aujourd'hui"},"fr-ch":{dayLabels:{su:"Dim",mo:"Lun",tu:"Mar",we:"Mer",th:"Jeu",fr:"Ven",sa:"Sam"},monthLabels:{1:"Jan",2:"F\xe9v",3:"Mar",4:"Avr",5:"Mai",6:"Juin",7:"Juil",8:"Ao\xfb",9:"Sep",10:"Oct",11:"Nov",12:"D\xe9c"},dateFormat:"dd.mm.yyyy",firstDayOfWeek:"mo",sunHighlight:!0,todayTxt:"Aujourd'hui"},fi:{dayLabels:{su:"Su",mo:"Ma",tu:"Ti",we:"Ke",th:"To",fr:"Pe",sa:"La"},monthLabels:{1:"Tam",2:"Hel",3:"Maa",4:"Huh",5:"Tou",6:"Kes",7:"Hei",8:"Elo",9:"Syy",10:"Lok",11:"Mar",12:"Jou"},dateFormat:"dd.mm.yyyy",firstDayOfWeek:"mo",sunHighlight:!0,todayTxt:"T\xe4n\xe4\xe4n"},es:{dayLabels:{su:"Do",mo:"Lu",tu:"Ma",we:"Mi",th:"Ju",fr:"Vi",sa:"Sa"},monthLabels:{1:"Ene",2:"Feb",3:"Mar",4:"Abr",5:"May",6:"Jun",7:"Jul",8:"Ago",9:"Sep",10:"Oct",11:"Nov",12:"Dic"},dateFormat:"dd.mm.yyyy",firstDayOfWeek:"mo",sunHighlight:!0,todayTxt:"Hoy"},hu:{dayLabels:{su:"Vas",mo:"H\xe9t",tu:"Kedd",we:"Sze",th:"Cs\xfc",fr:"P\xe9n",sa:"Szo"},monthLabels:{1:"Jan",2:"Feb",3:"M\xe1r",4:"\xc1pr",5:"M\xe1j",6:"J\xfan",7:"J\xfal",8:"Aug",9:"Szep",10:"Okt",11:"Nov",12:"Dec"},dateFormat:"yyyy-mm-dd",firstDayOfWeek:"mo",sunHighlight:!0,todayTxt:"Ma"},sv:{dayLabels:{su:"S\xf6n",mo:"M\xe5n",tu:"Tis",we:"Ons",th:"Tor",fr:"Fre",sa:"L\xf6r"},monthLabels:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"Maj",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Okt",11:"Nov",12:"Dec"},dateFormat:"yyyy-mm-dd",firstDayOfWeek:"mo",sunHighlight:!1,todayTxt:"Idag"},nl:{dayLabels:{su:"Zon",mo:"Maa",tu:"Din",we:"Woe",th:"Don",fr:"Vri",sa:"Zat"},monthLabels:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"Mei",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Okt",11:"Nov",12:"Dec"},dateFormat:"d-m-yyyy",firstDayOfWeek:"mo",sunHighlight:!1,todayTxt:"Vandaag"},"nl-be":{dayLabels:{su:"Zon",mo:"Maa",tu:"Din",we:"Woe",th:"Don",fr:"Vri",sa:"Zat"},monthLabels:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"Mei",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Okt",11:"Nov",12:"Dec"},dateFormat:"d/m/yyyy",firstDayOfWeek:"mo",sunHighlight:!1,todayTxt:"Vandaag"},ru:{dayLabels:{su:"\u0412\u0441",mo:"\u041f\u043d",tu:"\u0412\u0442",we:"\u0421\u0440",th:"\u0427\u0442",fr:"\u041f\u0442",sa:"\u0421\u0431"},monthLabels:{1:"\u042f\u043d\u0432",2:"\u0424\u0435\u0432",3:"\u041c\u0430\u0440\u0442",4:"\u0410\u043f\u0440",5:"\u041c\u0430\u0439",6:"\u0418\u044e\u043d\u044c",7:"\u0418\u044e\u043b\u044c",8:"\u0410\u0432\u0433",9:"\u0421\u0435\u043d\u0442",10:"\u041e\u043a\u0442",11:"\u041d\u043e\u044f",12:"\u0414\u0435\u043a"},dateFormat:"dd.mm.yyyy",firstDayOfWeek:"mo",sunHighlight:!0,todayTxt:"\u0421\u0435\u0433\u043e\u0434\u043d\u044f"},uk:{dayLabels:{su:"\u041d\u0434",mo:"\u041f\u043d",tu:"\u0412\u0442",we:"\u0421\u0440",th:"\u0427\u0442",fr:"\u041f\u0442",sa:"\u0421\u0431"},monthLabels:{1:"\u0421\u0456\u0447",2:"\u041b\u044e\u0442",3:"\u0411\u0435\u0440",4:"\u041a\u0432\u0456",5:"\u0422\u0440\u0430",6:"\u0427\u0435\u0440",7:"\u041b\u0438\u043f",8:"\u0421\u0435\u0440",9:"\u0412\u0435\u0440",10:"\u0416\u043e\u0432",11:"\u041b\u0438\u0441",12:"\u0413\u0440\u0443"},dateFormat:"dd.mm.yyyy",firstDayOfWeek:"mo",sunHighlight:!0,todayTxt:"\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456"},uz:{dayLabels:{su:"Yak",mo:"Du",tu:"Se",we:"Cho",th:"Pay",fr:"Ju",sa:"Sha"},monthLabels:{1:"Yan",2:"Fev",3:"Mar",4:"Apr",5:"May",6:"Iyn",7:"Iyl",8:"Avg",9:"Sen",10:"Okt",11:"Noy",12:"Dek"},dateFormat:"dd.mm.yyyy",firstDayOfWeek:"mo",sunHighlight:!0,todayTxt:"Bugun"},no:{dayLabels:{su:"S\xf8n",mo:"Man",tu:"Tir",we:"Ons",th:"Tor",fr:"Fre",sa:"L\xf8r"},monthLabels:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"Mai",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Okt",11:"Nov",12:"Des"},dateFormat:"dd.mm.yyyy",firstDayOfWeek:"mo",sunHighlight:!1,todayTxt:"I dag"},tr:{dayLabels:{su:"Paz",mo:"Pzt",tu:"Sal",we:"\xc7ar",th:"Per",fr:"Cum",sa:"Cmt"},monthLabels:{1:"Oca",2:"\u015eub",3:"Mar",4:"Nis",5:"May",6:"Haz",7:"Tem",8:"A\u011fu",9:"Eyl",10:"Eki",11:"Kas",12:"Ara"},dateFormat:"dd.mm.yyyy",firstDayOfWeek:"mo",sunHighlight:!1,todayTxt:"Bug\xfcn"},"pt-br":{dayLabels:{su:"Dom",mo:"Seg",tu:"Ter",we:"Qua",th:"Qui",fr:"Sex",sa:"Sab"},monthLabels:{1:"Jan",2:"Fev",3:"Mar",4:"Abr",5:"Mai",6:"Jun",7:"Jul",8:"Ago",9:"Set",10:"Out",11:"Nov",12:"Dez"},dateFormat:"dd/mm/yyyy",firstDayOfWeek:"su",sunHighlight:!0,todayTxt:"Hoje"},de:{dayLabels:{su:"So",mo:"Mo",tu:"Di",we:"Mi",th:"Do",fr:"Fr",sa:"Sa"},monthLabels:{1:"Jan",2:"Feb",3:"M\xe4r",4:"Apr",5:"Mai",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Okt",11:"Nov",12:"Dez"},dateFormat:"dd.mm.yyyy",firstDayOfWeek:"mo",sunHighlight:!0,todayTxt:"Heute"},"de-ch":{dayLabels:{su:"So",mo:"Mo",tu:"Di",we:"Mi",th:"Do",fr:"Fr",sa:"Sa"},monthLabels:{1:"Jan",2:"Feb",3:"M\xe4r",4:"Apr",5:"Mai",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Okt",11:"Nov",12:"Dez"},dateFormat:"dd.mm.yyyy",firstDayOfWeek:"mo",sunHighlight:!0,todayTxt:"Heute"},it:{dayLabels:{su:"Dom",mo:"Lun",tu:"Mar",we:"Mer",th:"Gio",fr:"Ven",sa:"Sab"},monthLabels:{1:"Gen",2:"Feb",3:"Mar",4:"Apr",5:"Mag",6:"Giu",7:"Lug",8:"Ago",9:"Set",10:"Ott",11:"Nov",12:"Dic"},dateFormat:"dd/mm/yyyy",firstDayOfWeek:"mo",sunHighlight:!0,todayTxt:"Oggi"},"it-ch":{dayLabels:{su:"Dom",mo:"Lun",tu:"Mar",we:"Mer",th:"Gio",fr:"Ven",sa:"Sab"},monthLabels:{1:"Gen",2:"Feb",3:"Mar",4:"Apr",5:"Mag",6:"Giu",7:"Lug",8:"Ago",9:"Set",10:"Ott",11:"Nov",12:"Dic"},dateFormat:"dd.mm.yyyy",firstDayOfWeek:"mo",sunHighlight:!0,todayTxt:"Oggi"},pl:{dayLabels:{su:"Nie",mo:"Pon",tu:"Wto",we:"\u015aro",th:"Czw",fr:"Pi\u0105",sa:"Sob"},monthLabels:{1:"Sty",2:"Lut",3:"Mar",4:"Kwi",5:"Maj",6:"Cze",7:"Lip",8:"Sie",9:"Wrz",10:"Pa\u017a",11:"Lis",12:"Gru"},dateFormat:"yyyy-mm-dd",firstDayOfWeek:"mo",sunHighlight:!0,todayTxt:"Dzisiaj"},my:{dayLabels:{su:"\u1010\u1014\u1004\u103a\u1039\u1002\u1014\u103d\u1031",mo:"\u1010\u1014\u1004\u103a\u1039\u101c\u102c",tu:"\u1021\u1004\u103a\u1039\u1002\u102b",we:"\u1017\u102f\u1012\u1039\u1013\u101f\u1030\u1038",th:"\u1000\u103c\u101e\u1015\u1010\u1031\u1038",fr:"\u101e\u1031\u102c\u1000\u103c\u102c",sa:"\u1005\u1014\u1031"},monthLabels:{1:"\u1007\u1014\u103a\u1014\u101d\u102b\u101b\u102e",2:"\u1016\u1031\u1016\u1031\u102c\u103a\u101d\u102b\u101b\u102e",3:"\u1019\u1010\u103a",4:"\u1027\u1015\u103c\u102e",5:"\u1019\u1031",6:"\u1007\u103d\u1014\u103a",7:"\u1007\u1030\u101c\u102d\u102f\u1004\u103a",8:"\u1029\u1002\u102f\u1010\u103a",9:"\u1005\u1000\u103a\u1010\u1004\u103a\u1018\u102c",10:"\u1021\u1031\u102c\u1000\u103a\u1010\u102d\u102f\u1018\u102c",11:"\u1014\u102d\u102f\u101d\u1004\u103a\u1018\u102c",12:"\u1012\u102e\u1007\u1004\u103a\u1018\u102c"},dateFormat:"yyyy-mm-dd",firstDayOfWeek:"mo",sunHighlight:!0,todayTxt:"\u101a\u1014\u1031\u1037"},sk:{dayLabels:{su:"Ne",mo:"Po",tu:"Ut",we:"St",th:"\u0160t",fr:"Pi",sa:"So"},monthLabels:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"M\xe1j",6:"J\xfan",7:"J\xfal",8:"Aug",9:"Sep",10:"Okt",11:"Nov",12:"Dec"},dateFormat:"dd.mm.yyyy",firstDayOfWeek:"mo",sunHighlight:!0,todayTxt:"Dnes"},sl:{dayLabels:{su:"Ned",mo:"Pon",tu:"Tor",we:"Sre",th:"\u010cet",fr:"Pet",sa:"Sob"},monthLabels:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"Maj",6:"Jun",7:"Jul",8:"Avg",9:"Sep",10:"Okt",11:"Nov",12:"Dec"},dateFormat:"dd. mm. yyyy",firstDayOfWeek:"mo",sunHighlight:!0,todayTxt:"Danes"},"zh-cn":{dayLabels:{su:"\u65e5",mo:"\u4e00",tu:"\u4e8c",we:"\u4e09",th:"\u56db",fr:"\u4e94",sa:"\u516d"},monthLabels:{1:"1\u6708",2:"2\u6708",3:"3\u6708",4:"4\u6708",5:"5\u6708",6:"6\u6708",7:"7\u6708",8:"8\u6708",9:"9\u6708",10:"10\u6708",11:"11\u6708",12:"12\u6708"},dateFormat:"yyyy-mm-dd",firstDayOfWeek:"mo",sunHighlight:!0,todayTxt:"\u4eca\u5929"},ro:{dayLabels:{su:"du",mo:"lu",tu:"ma",we:"mi",th:"jo",fr:"vi",sa:"sa"},monthLabels:{1:"ian",2:"feb",3:"mart",4:"apr",5:"mai",6:"iun",7:"iul",8:"aug",9:"sept",10:"oct",11:"nov",12:"dec"},dateFormat:"dd.mm.yyyy",firstDayOfWeek:"mo",sunHighlight:!0,todayTxt:"Ast\u0103zi"},ca:{dayLabels:{su:"dg",mo:"dl",tu:"dt",we:"dc",th:"dj",fr:"dv",sa:"ds"},monthLabels:{1:"Gen",2:"Febr",3:"Mar\xe7",4:"Abr",5:"Maig",6:"Juny",7:"Jul",8:"Ag",9:"Set",10:"Oct",11:"Nov",12:"Des"},dateFormat:"dd.mm.yyyy",firstDayOfWeek:"mo",sunHighlight:!0,todayTxt:"Avui"},id:{dayLabels:{su:"Min",mo:"Sen",tu:"Sel",we:"Rab",th:"Kam",fr:"Jum",sa:"Sab"},monthLabels:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"Mei",6:"Jun",7:"Jul",8:"Ags",9:"Sep",10:"Okt",11:"Nov",12:"Des"},dateFormat:"dd-mm-yyyy",firstDayOfWeek:"su",sunHighlight:!0,todayTxt:"Hari ini"},"en-au":{dayLabels:{su:"Sun",mo:"Mon",tu:"Tue",we:"Wed",th:"Thu",fr:"Fri",sa:"Sat"},monthLabels:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"},dateFormat:"dd/mm/yyyy",firstDayOfWeek:"mo",sunHighlight:!0,todayTxt:"Today"},"en-gb":{dayLabels:{su:"Sun",mo:"Mon",tu:"Tue",we:"Wed",th:"Thu",fr:"Fri",sa:"Sat"},monthLabels:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"},dateFormat:"dd/mm/yyyy",firstDayOfWeek:"mo",sunHighlight:!0,todayTxt:"Today"},"am-et":{dayLabels:{su:"\u12a5\u1211\u12f5",mo:"\u1230\u129e",tu:"\u121b\u12ad\u1230\u129e",we:"\u1228\u1261\u12d5",th:"\u1210\u1219\u1235",fr:"\u12d3\u122d\u1265",sa:"\u1245\u12f3\u121c"},monthLabels:{1:"\u1303\u1295\u12e9",2:"\u134c\u1265\u1229",3:"\u121b\u122d\u127d",4:"\u12a4\u1355\u1228",5:"\u121c\u12ed",6:"\u1301\u1295",7:"\u1301\u120b\u12ed",8:"\u12a6\u1308\u1235",9:"\u1234\u1355\u1274",10:"\u12a6\u12ad\u1270",11:"\u1296\u126c\u121d",12:"\u12f2\u1234\u121d"},dateFormat:"yyyy-mm-dd",firstDayOfWeek:"mo",sunHighlight:!0,todayTxt:"\u12db\u122c"},cs:{dayLabels:{su:"Ne",mo:"Po",tu:"\xdat",we:"St",th:"\u010ct",fr:"P\xe1",sa:"So"},monthLabels:{1:"Led",2:"\xdano",3:"B\u0159e",4:"Dub",5:"Kv\u011b",6:"\u010cvn",7:"\u010cvc",8:"Srp",9:"Z\xe1\u0159",10:"\u0158\xedj",11:"Lis",12:"Pro"},dateFormat:"dd.mm.yyyy",firstDayOfWeek:"mo",sunHighlight:!0,todayTxt:"Dnes"},el:{dayLabels:{su:"\u039a\u03c5\u03c1",mo:"\u0394\u03b5\u03c5",tu:"\u03a4\u03c1\u03b9",we:"\u03a4\u03b5\u03c4",th:"\u03a0\u03b5\u03bc",fr:"\u03a0\u03b1\u03c1",sa:"\u03a3\u03b1\u03b2"},monthLabels:{1:"\u0399\u03b1\u03bd",2:"\u03a6\u03b5\u03b2",3:"\u039c\u03b1\u03c1",4:"\u0391\u03c0\u03c1",5:"\u039c\u03b1\u03b9",6:"\u0399\u03bf\u03c5\u03bd",7:"\u0399\u03bf\u03c5\u03bb",8:"\u0391\u03c5\u03b3",9:"\u03a3\u03b5\u03c0",10:"\u039f\u03ba\u03c4",11:"\u039d\u03bf\u03b5",12:"\u0394\u03b5\u03ba"},dateFormat:"dd/mm/yyyy",firstDayOfWeek:"mo",sunHighlight:!0,todayTxt:"\u03a3\u03ae\u03bc\u03b5\u03c1\u03b1"},kk:{dayLabels:{su:"\u0416\u043a",mo:"\u0414\u0441",tu:"\u0421\u0441",we:"\u0421\u0440",th:"\u0411\u0441",fr:"\u0416\u043c",sa:"\u0421\u0431"},monthLabels:{1:"\u049a\u0430\u04a3",2:"\u0410\u049b\u043f",3:"\u041d\u0430\u0443",4:"\u0421\u04d9\u0443",5:"\u041c\u0430\u043c",6:"\u041c\u0430\u0443",7:"\u0428\u0456\u043b",8:"\u0422\u0430\u043c",9:"\u049a\u044b\u0440\u043a",10:"\u049a\u0430\u0437",11:"\u049a\u0430\u0440",12:"\u0416\u0435\u043b\u0442"},dateFormat:"dd-mmm-yyyy",firstDayOfWeek:"mo",sunHighlight:!0,todayTxt:"\u0411\u04af\u0433\u0456\u043d"},th:{dayLabels:{su:"\u0e2d\u0e32",mo:"\u0e08",tu:"\u0e2d",we:"\u0e1e",th:"\u0e1e\u0e24",fr:"\u0e28",sa:"\u0e2a"},monthLabels:{1:"\u0e21.\u0e04",2:"\u0e01.\u0e1e.",3:"\u0e21\u0e35.\u0e04.",4:"\u0e40\u0e21.\u0e22.",5:"\u0e1e.\u0e04.",6:"\u0e21\u0e34.\u0e22.",7:"\u0e01.\u0e04.",8:"\u0e2a.\u0e04.",9:"\u0e01.\u0e22.",10:"\u0e15.\u0e04.",11:"\u0e1e.\u0e22.",12:"\u0e18.\u0e04."},dateFormat:"dd-mm-yyyy",firstDayOfWeek:"su",sunHighlight:!0,todayTxt:"\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49"},"ko-kr":{dayLabels:{su:"\uc77c",mo:"\uc6d4",tu:"\ud654",we:"\uc218",th:"\ubaa9",fr:"\uae08",sa:"\ud1a0"},monthLabels:{1:"1\uc6d4",2:"2\uc6d4",3:"3\uc6d4",4:"4\uc6d4",5:"5\uc6d4",6:"6\uc6d4",7:"7\uc6d4",8:"8\uc6d4",9:"9\uc6d4",10:"10\uc6d4",11:"11\uc6d4",12:"12\uc6d4"},dateFormat:"yyyy mm dd",firstDayOfWeek:"su",sunHighlight:!0,todayTxt:"\uc624\ub298"},da:{dayLabels:{su:"S\xf8n",mo:"Man",tu:"Tir",we:"Ons",th:"Tor",fr:"Fre",sa:"L\xf8r"},monthLabels:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"Maj",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Okt",11:"Nov",12:"Dec"},dateFormat:"dd-mm-yyyy",firstDayOfWeek:"mo",sunHighlight:!0,todayTxt:"I dag"},lt:{dayLabels:{su:"Sk",mo:"Pr",tu:"An",we:"Tr",th:"Kt",fr:"Pn",sa:"\u0160t"},monthLabels:{1:"Saus.",2:"Vas.",3:"Kov.",4:"Bal.",5:"Geg.",6:"Bir\u017e.",7:"Liep.",8:"Rugp.",9:"Rugs.",10:"Sapl.",11:"Lapkr.",12:"Gruod."},dateFormat:"yyyy-mm-dd",firstDayOfWeek:"mo",sunHighlight:!0,todayTxt:"\u0160ianien"},vi:{dayLabels:{su:"CN",mo:"T2",tu:"T3",we:"T4",th:"T5",fr:"T6",sa:"T7"},monthLabels:{1:"THG 1",2:"THG 2",3:"THG 3",4:"THG 4",5:"THG 5",6:"THG 6",7:"THG 7",8:"THG 8",9:"THG 9",10:"THG 10",11:"THG 11",12:"THG 12"},dateFormat:"dd/mm/yyyy",firstDayOfWeek:"mo",sunHighlight:!0,todayTxt:"H\xf4m nay"},bn:{dayLabels:{su:"\u09b0\u09ac\u09bf",mo:"\u09b8\u09cb\u09ae",tu:"\u09ae\u0999\u09cd\u0997\u09b2",we:"\u09ac\u09c1\u09a7",th:"\u09ac\u09c3\u09b9\u0983",fr:"\u09b6\u09c1\u0995\u09cd\u09b0",sa:"\u09b6\u09a8\u09bf"},monthLabels:{1:"\u099c\u09be\u09a8\u09c1",2:"\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1",3:"\u09ae\u09be\u09b0\u09cd\u099a",4:"\u098f\u09aa\u09cd\u09b0\u09bf\u09b2",5:"\u09ae\u09c7",6:"\u099c\u09c1\u09a8",7:"\u099c\u09c1\u09b2\u09be\u0987",8:"\u0986\u0997\u09b8\u09cd\u099f",9:"\u09b8\u09c7\u09aa\u09cd\u099f\u09c7",10:"\u0985\u0995\u09cd\u099f\u09cb",11:"\u09a8\u09ad\u09c7",12:"\u09a1\u09bf\u09b8\u09c7"},dateFormat:"dd-mm-yyyy",firstDayOfWeek:"su",sunHighlight:!0,todayTxt:"\u0986\u099c"},bg:{dayLabels:{su:"\u043d\u0434",mo:"\u043f\u043d",tu:"\u0432\u0442",we:"\u0441\u0440",th:"\u0447\u0442",fr:"\u043f\u0442",sa:"\u0441\u0431"},monthLabels:{1:"\u044f\u043d\u0443.",2:"\u0444\u0435\u0432.",3:"\u043c\u0430\u0440\u0442",4:"\u0430\u043f\u0440.",5:"\u043c\u0430\u0439",6:"\u044e\u043d\u0438",7:"\u044e\u043b\u0438",8:"\u0430\u0432\u0433.",9:"\u0441\u0435\u043f.",10:"\u043e\u043a\u0442.",11:"\u043d\u043e\u0435.",12:"\u0434\u0435\u043a."},dateFormat:"dd.mm.yyyy",firstDayOfWeek:"mo",sunHighlight:!0,todayTxt:"\u0434\u043d\u0435\u0441"},hr:{dayLabels:{su:"Ne",mo:"Po",tu:"Ul",we:"Sr",th:"\u010ce",fr:"Pe",sa:"Su"},monthLabels:{1:"Sij",2:"Vel",3:"O\u017eu",4:"Tra",5:"Svi",6:"Lip",7:"Srp",8:"Kol",9:"Ruj",10:"Lis",11:"Stu",12:"Pro"},dateFormat:"dd.mm.yyyy.",firstDayOfWeek:"su",sunHighlight:!0,todayTxt:"danas"},ar:{dayLabels:{su:"\u0627\u0644\u0623\u062d\u062f",mo:"\u0627\u0644\u0627\u062b\u0646\u064a\u0646",tu:"\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621",we:"\u0627\u0644\u0627\u0631\u0628\u0639\u0627\u0621",th:"\u0627\u0644\u062e\u0645\u064a\u0633",fr:"\u0627\u0644\u062c\u0645\u0639\u0629",sa:"\u0627\u0644\u0633\u0628\u062a"},monthLabels:{1:"\u064a\u0646\u0627\u064a\u0631",2:"\u0641\u0628\u0631\u0627\u064a\u0631",3:"\u0645\u0627\u0631\u0633",4:"\u0627\u0628\u0631\u064a\u0644",5:"\u0645\u0627\u064a\u0648",6:"\u064a\u0648\u0646\u064a\u0648",7:"\u064a\u0648\u0644\u064a\u0648",8:"\u0623\u063a\u0633\u0637\u0633",9:"\u0633\u0628\u062a\u0645\u0628\u0631",10:"\u0623\u0643\u062a\u0648\u0628\u0631",11:"\u0646\u0648\u0641\u0645\u0628\u0631",12:"\u062f\u064a\u0633\u0645\u0628\u0631"},dateFormat:"yyyy-mm-dd",firstDayOfWeek:"sa",sunHighlight:!0,todayTxt:"\u0627\u0644\u064a\u0648\u0645"},is:{dayLabels:{su:"sun",mo:"m\xe1n",tu:"\xferi",we:"mi\xf0",th:"fim",fr:"f\xf6s",sa:"lau"},monthLabels:{1:"jan",2:"feb",3:"mar",4:"apr",5:"ma\xed",6:"j\xfan",7:"j\xfal",8:"\xe1g\xfa",9:"sep",10:"okt",11:"n\xf3v",12:"des"},dateFormat:"dd.mm.yyyy",firstDayOfWeek:"su",sunHighlight:!0,todayTxt:"\xcd dag"},tw:{dayLabels:{su:"\u9031\u65e5",mo:"\u9031\u4e00",tu:"\u9031\u4e8c",we:"\u9031\u4e09",th:"\u9031\u56db",fr:"\u9031\u4e94",sa:"\u9031\u516d"},monthLabels:{1:"\u4e00\u6708",2:"\u4e8c\u6708",3:"\u4e09\u6708",4:"\u56db\u6708",5:"\u4e94\u6708",6:"\u516d\u6708",7:"\u4e03\u6708",8:"\u516b\u6708",9:"\u4e5d\u6708",10:"\u5341\u6708",11:"\u5341\u4e00\u6708",12:"\u5341\u4e8c\u6708"},dateFormat:"yyyy-mm-dd",firstDayOfWeek:"mo",sunHighlight:!0,todayTxt:"\u4eca\u5929"},lv:{dayLabels:{su:"S",mo:"P",tu:"O",we:"T",th:"C",fr:"P",sa:"S"},monthLabels:{1:"Janv",2:"Febr",3:"Marts",4:"Apr",5:"Maijs",6:"J\u016bn",7:"J\u016bl",8:"Aug",9:"Sept",10:"Okt",11:"Nov",12:"Dec"},dateFormat:"dd.mm.yyyy",firstDayOfWeek:"mo",sunHighlight:!0,todayTxt:"\u0160odien"},et:{dayLabels:{su:"P",mo:"E",tu:"T",we:"K",th:"N",fr:"R",sa:"L"},monthLabels:{1:"Jaan",2:"Veebr",3:"M\xe4rts",4:"Apr",5:"Mai",6:"Juuni",7:"Juuli",8:"Aug",9:"Sept",10:"Okt",11:"Nov",12:"Dets"},dateFormat:"dd.mm.yyyy",firstDayOfWeek:"mo",sunHighlight:!0,todayTxt:"T\xe4na"}}}getLocaleOptions(S="en"){const Z=S.toLowerCase();return this.locales.hasOwnProperty(Z)?this.locales[Z]:this.locales.en}}return(je=qt).\u0275fac=function(S){return new(S||je)},je.\u0275prov=m.Yz7({token:je,factory:je.\u0275fac}),qt})();var E=function(je){return je[je.min=1e3]="min",je[je.max=9999]="max",je}(E||{});let j=(()=>{var je;class qt{constructor(){this.defaultConfig={dateRange:!1,inline:!1,dayLabels:{su:"Sun",mo:"Mon",tu:"Tue",we:"Wed",th:"Thu",fr:"Fri",sa:"Sat"},monthLabels:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"},dateFormat:"yyyy-mm-dd",defaultView:xi.Date,firstDayOfWeek:"mo",satHighlight:!1,sunHighlight:!0,highlightDates:[],markCurrentDay:!0,markCurrentMonth:!0,markCurrentYear:!0,monthSelector:!0,yearSelector:!0,disableHeaderButtons:!0,showWeekNumbers:!1,selectorHeight:"266px",selectorWidth:"266px",disableUntil:{year:0,month:0,day:0},disableSince:{year:0,month:0,day:0},disableDates:[],disableDateRanges:[],disableWeekends:!1,disableWeekdays:[],enableDates:[],markDates:[],markWeekends:{marked:!1,color:""},alignSelectorRight:!1,openSelectorTopOfInput:!1,closeSelectorOnDateSelect:!0,closeSelectorOnDocumentClick:!0,minYear:E.min,maxYear:E.max,showSelectorArrow:!0,appendSelectorToBody:!1,focusInputOnDateSelect:!0,moveFocusByArrowKeys:!0,dateRangeDatesDelimiter:" - ",inputFieldValidation:!0,showMonthNumber:!0,todayTxt:"",showFooterToday:!1,calendarAnimation:{in:ri.None,out:ri.None},viewChangeAnimation:!0,rtl:!1,stylesData:{selector:"",styles:""},divHostElement:{enabled:!1,placeholder:""},ariaLabelPrevMonth:"Previous Month",ariaLabelNextMonth:"Next Month"}}getDefaultConfig(){return this.defaultConfig}}return(je=qt).\u0275fac=function(S){return new(S||je)},je.\u0275prov=m.Yz7({token:je,factory:je.\u0275fac}),qt})();var fe=function(je){return je[je.Open=1]="Open",je[je.CloseByDateSel=2]="CloseByDateSel",je[je.CloseByCalBtn=3]="CloseByCalBtn",je[je.CloseByOutClick=4]="CloseByOutClick",je[je.CloseByEsc=5]="CloseByEsc",je}(fe||{});const Ge={provide:s.JU,useExisting:(0,m.Gpc)(()=>hn),multi:!0},Ot={provide:s.Cf,useExisting:(0,m.Gpc)(()=>hn),multi:!0};let hn=(()=>{var je;class qt{constructor(S,Z,ze,rt,Rt,tn,Kt,Jt){this.localeService=S,this.utilService=Z,this.vcRef=ze,this.cfr=rt,this.renderer=Rt,this.cdr=tn,this.elem=Kt,this.config=Jt,this.defaultMonth={defMonth:"",overrideSelection:!1},this.dateChanged=new m.vpe,this.inputFieldChanged=new m.vpe,this.calendarViewChanged=new m.vpe,this.calendarToggle=new m.vpe,this.rangeDateSelection=new m.vpe,this.viewActivated=new m.vpe,this.cRef=null,this.hostText="",this.preventClose=!1,this.disabled=!1,this.selectedValue=null,this.onChangeCb=()=>{},this.onTouchedCb=()=>{},this.onClickWrapper=Ht=>this.onClick(Ht),this.onAnimateWrapper=Ht=>this.animationEnd(Ht),this.opts=this.config.getDefaultConfig(),this.parseOptions(this.opts)}onKeyUp(S){const Z=this.utilService.getKeyCodeFromEvent(S);if(!this.ignoreKeyPress(Z))if(Z===Q.esc)this.closeSelector(fe.CloseByEsc);else{const{dateRange:ze,dateFormat:rt,monthLabels:Rt,dateRangeDatesDelimiter:tn}=this.opts,Kt=this.getHostValue();let Jt=null,Ht=!1,ln=null;if(ze){ln={validateDisabledDates:!0,selectedValue:this.utilService.getSelectedValue(this.selectedValue,!0)};const xn=this.utilService.isDateValidDateRange(Kt,this.opts,ln),{begin:si,end:zn}=xn;Ht=this.utilService.isInitializedDate(si)&&this.utilService.isInitializedDate(zn),Ht&&(Jt=this.utilService.getDateModel(null,xn,rt,Rt,tn))}else{ln={validateDisabledDates:!0,selectedValue:this.utilService.getSelectedValue(this.selectedValue,!1)};const xn=this.utilService.isDateValid(Kt,this.opts,ln);Ht=this.utilService.isInitializedDate(xn),Ht&&(Jt=this.utilService.getDateModel(xn,null,rt,Rt,tn))}this.onChangeCb(Jt),this.emitInputFieldChanged(Kt,Ht)}}onBlur(){const{inputFieldValidation:S,dateRange:Z,dateFormat:ze,monthLabels:rt,dateRangeDatesDelimiter:Rt,closeSelectorOnDateSelect:tn}=this.opts;if(S){const Kt=this.getHostValue();let Jt=!1,Ht=null;if(Z){Ht={validateDisabledDates:!0,selectedValue:this.utilService.getSelectedValue(this.selectedValue,!0)};const ln=this.utilService.isDateValidDateRange(Kt,this.opts,Ht),{begin:xn,end:si}=ln;if(Jt=this.utilService.isInitializedDate(xn)&&this.utilService.isInitializedDate(si),Jt&&this.hostText!==Kt){const zn=this.utilService.getDateModel(null,ln,ze,rt,Rt);this.emitDateChanged(zn),this.updateModel(zn),tn&&this.closeSelector(fe.CloseByDateSel)}}else{Ht={validateDisabledDates:!0,selectedValue:this.utilService.getSelectedValue(this.selectedValue,!1)};const ln=this.utilService.isDateValid(Kt,this.opts,Ht);if(Jt=this.utilService.isInitializedDate(ln),Jt&&this.hostText!==Kt){const xn=this.utilService.getDateModel(ln,null,ze,rt,Rt);this.emitDateChanged(xn),this.updateModel(xn),tn&&this.closeSelector(fe.CloseByDateSel)}}!Jt&&this.hostText!==Kt&&(""===Kt?this.clearDate():this.onChangeCb(null)),this.hostText=Kt}this.onTouchedCb()}onClick(S){this.opts.closeSelectorOnDocumentClick&&!this.preventClose&&S.target&&this.cRef&&this.elem.nativeElement!==S.target&&!this.cRef.location.nativeElement.contains(S.target)&&!this.disabled&&this.closeSelector(fe.CloseByOutClick)}ngOnChanges(S){if(S.hasOwnProperty("locale")&&this.setLocaleOptions(),S.hasOwnProperty(kt)){let Z=S[kt].currentValue;"object"==typeof Z?Z.overrideSelection||(Z.overrideSelection=!1):Z={defMonth:Z,overrideSelection:!1},this.defaultMonth=Z}S.hasOwnProperty(Nt)&&this.parseOptions(S[Nt].currentValue),this.cRef&&this.cRef.instance.refreshComponent(this.opts,this.defaultMonth,this.selectedValue,this.getHostValue())}ngOnDestroy(){this.closeCalendar()}setLocaleOptions(){const S=this.localeService.getLocaleOptions(this.locale);Object.keys(S).forEach(Z=>{this.opts[Z]=S[Z]})}parseOptions(S){S&&Object.keys(S).forEach(tn=>{this.opts[tn]=S[tn]});const{minYear:Z,maxYear:ze,openSelectorTopOfInput:rt,inline:Rt}=this.opts;ZE.max&&(this.opts.maxYear=E.max),(rt||Rt)&&(this.opts.showSelectorArrow=!1),Rt&&this.openCalendar()}writeValue(S){if(this.disabled)return;let Z=null;const{dateFormat:ze,monthLabels:rt,dateRangeDatesDelimiter:Rt}=this.opts;if(S){if(!S.isRange&&S.singleDate){let{date:Kt,jsDate:Jt}=S.singleDate;Kt||(Kt=this.utilService.jsDateToMyDate(Jt));const Ht=this.utilService.formatDate(Kt,ze,rt);Z={validateDisabledDates:!1,selectedValue:this.utilService.getSelectedValue(this.selectedValue,!1)};const ln=this.utilService.isInitializedDate(this.utilService.isDateValid(Ht,this.opts,Z));ln&&(this.setHostValue(Ht),this.emitInputFieldChanged(Ht,ln),this.setSelectedValue(this.utilService.getDateModel(Kt,null,ze,rt,Rt)),this.cRef&&this.cRef.instance.refreshComponent(this.opts,this.defaultMonth,this.selectedValue,this.getHostValue()))}else if(S.isRange&&S.dateRange){let{beginDate:Kt,beginJsDate:Jt,endDate:Ht,endJsDate:ln}=S.dateRange;(!Kt||!Ht)&&(Kt=this.utilService.jsDateToMyDate(Jt),Ht=this.utilService.jsDateToMyDate(ln));const xn=this.utilService.formatDate(Kt,ze,rt)+Rt+this.utilService.formatDate(Ht,ze,rt);Z={validateDisabledDates:!1,selectedValue:this.utilService.getSelectedValue(this.selectedValue,!0)};const{begin:si,end:zn}=this.utilService.isDateValidDateRange(xn,this.opts,Z),cn=this.utilService.isInitializedDate(si)&&this.utilService.isInitializedDate(zn);cn&&(this.setHostValue(xn),this.emitInputFieldChanged(xn,cn),this.setSelectedValue(this.utilService.getDateModel(null,{begin:Kt,end:Ht},ze,rt,Rt)),this.cRef&&this.cRef.instance.refreshComponent(this.opts,this.defaultMonth,this.selectedValue,this.getHostValue()))}}else this.setHostValue(""),this.emitInputFieldChanged("",!1),this.cRef&&this.cRef.instance.resetDateValue()}registerOnChange(S){this.onChangeCb=S}registerOnTouched(S){this.onTouchedCb=S}setDisabledState(S){this.disabled=S,this.renderer.setProperty(this.elem.nativeElement,"disabled",S),S&&this.closeCalendar()}validate(S){const Z=this.getHostValue();if(null===Z||""===Z)return null;let ze=null;if(this.opts.dateRange){ze={validateDisabledDates:!0,selectedValue:this.utilService.getSelectedValue(this.selectedValue,!0)};const{begin:rt,end:Rt}=this.utilService.isDateValidDateRange(Z,this.opts,ze);if(!this.utilService.isInitializedDate(rt)||!this.utilService.isInitializedDate(Rt))return{invalidDateFormat:!0}}else{ze={validateDisabledDates:!0,selectedValue:this.utilService.getSelectedValue(this.selectedValue,!1)};const rt=this.utilService.isDateValid(Z,this.opts,ze);if(!this.utilService.isInitializedDate(rt))return{invalidDateFormat:!0}}return null}openCalendar(){this.disabled||(this.preventClose=!0,this.cdr.detectChanges(),null===this.cRef&&(this.cRef=this.vcRef.createComponent(this.cfr.resolveComponentFactory(Dt)),this.appendSelector(this.cRef.location.nativeElement),this.cRef.instance.initializeComponent(this.opts,this.defaultMonth,this.selectedValue,this.getHostValue(),this.getSelectorPosition(this.elem.nativeElement),(S,Z)=>{this.focusToInput(),this.emitDateChanged(S),this.emitInputFieldChanged(this.utilService.getFormattedDate(S),!0),this.updateModel(S),Z&&this.closeSelector(fe.CloseByDateSel)},S=>{this.emitCalendarChanged(S)},S=>{this.emitRangeDateSelection(S)},S=>{this.emitViewActivated(S)},()=>{this.closeSelector(fe.CloseByEsc)}),this.emitCalendarToggle(fe.Open),this.opts.inline||document.addEventListener(fn,this.onClickWrapper)),setTimeout(()=>{this.preventClose=!1},50))}closeCalendar(){this.closeSelector(fe.CloseByCalBtn)}toggleCalendar(){if(this.disabled)return;const S=null===this.cRef;return S?this.openCalendar():this.closeSelector(fe.CloseByCalBtn),S}clearDate(){if(this.disabled)return;const{inline:S}=this.opts;this.setHostValue(""),this.emitDateChanged({isRange:this.opts.dateRange,singleDate:{date:this.utilService.resetDate(),jsDate:null,formatted:"",epoc:0},dateRange:{beginDate:this.utilService.resetDate(),beginJsDate:null,beginEpoc:0,endDate:this.utilService.resetDate(),endJsDate:null,endEpoc:0,formatted:""}}),this.onChangeCb(null),this.onTouchedCb(),this.cRef&&this.cRef.instance.clearDate(),S||this.closeSelector(fe.CloseByCalBtn)}isDateValid(){const S=this.getHostValue();if(null===S||""===S)return!1;let Z=null;if(this.opts.dateRange){Z={validateDisabledDates:!0,selectedValue:this.utilService.getSelectedValue(this.selectedValue,!0)};const{begin:ze,end:rt}=this.utilService.isDateValidDateRange(S,this.opts,Z);if(this.utilService.isInitializedDate(ze)&&this.utilService.isInitializedDate(rt))return this.emitInputFieldChanged(S,!0),!0}else{Z={validateDisabledDates:!0,selectedValue:this.utilService.getSelectedValue(this.selectedValue,!1)};const ze=this.utilService.isDateValid(S,this.opts,Z);if(this.utilService.isInitializedDate(ze))return this.emitInputFieldChanged(S,!0),!0}return this.emitInputFieldChanged(S,!1),!1}headerAction(S){this.cRef&&this.cRef.instance.headerAction(S)}setHostValue(S){const{divHostElement:Z}=this.opts;this.hostText=S;const ze=Z.enabled?Xn:"value";this.renderer.setProperty(this.elem.nativeElement,ze,S=ze===Xn&&""===S?Z.placeholder:S)}ignoreKeyPress(S){return S===Q.leftArrow||S===Q.rightArrow||S===Q.upArrow||S===Q.downArrow||S===Q.tab||S===Q.shift}animationEnd(S){this.cRef&&(this.cRef.instance.selectorEl.nativeElement.removeEventListener(I,this.onAnimateWrapper),this.removeComponent(),this.emitCalendarToggle(S))}closeSelector(S){const{inline:Z,calendarAnimation:ze}=this.opts;if(this.cRef&&!Z){if(ze.out!==ri.None){const{instance:rt}=this.cRef;rt.selectorEl.nativeElement.addEventListener(I,this.onAnimateWrapper.bind(this,S)),rt.setCalendarAnimation(ze,!1),setTimeout(this.onAnimateWrapper.bind(this,S),550)}else this.removeComponent(),this.emitCalendarToggle(S);document.removeEventListener(fn,this.onClickWrapper)}}removeComponent(){null!==this.vcRef&&(this.vcRef.remove(this.vcRef.indexOf(this.cRef.hostView)),this.cRef=null)}updateModel(S){this.setHostValue(this.utilService.getFormattedDate(S)),this.onChangeCb(S),this.onTouchedCb()}getHostValue(){const{value:S,innerHTML:Z}=this.elem.nativeElement;return this.opts.divHostElement.enabled?Z:S}focusToInput(){const{focusInputOnDateSelect:S,divHostElement:Z}=this.opts;S&&!Z.enabled&&setTimeout(()=>{this.elem.nativeElement.focus()})}emitDateChanged(S){this.dateChanged.emit(S),this.setSelectedValue(S)}setSelectedValue(S){const{isRange:Z,dateRange:ze,singleDate:rt}=S;this.selectedValue=Z?ze:rt}emitInputFieldChanged(S,Z){this.inputFieldChanged.emit({value:S,dateFormat:this.opts.dateFormat,valid:Z})}emitCalendarChanged(S){this.calendarViewChanged.emit(S)}emitRangeDateSelection(S){this.rangeDateSelection.emit(S)}emitViewActivated(S){this.viewActivated.emit(S)}emitCalendarToggle(S){this.calendarToggle.emit(S)}appendSelector(S){this.opts.appendSelectorToBody&&document.querySelector("body").appendChild(S)}getSelectorPosition(S){let Z=0,ze=0;const{appendSelectorToBody:rt,openSelectorTopOfInput:Rt,selectorHeight:tn,selectorWidth:Kt,showSelectorArrow:Jt,alignSelectorRight:Ht}=this.opts;if(rt){const ln=document.body.getBoundingClientRect(),xn=S.getBoundingClientRect();Z=xn.top-ln.top,ze=xn.left-ln.left}return Z=Rt?Z-this.getSelectorDimension(tn)-2:Z+S.offsetHeight+(Jt?12:2),Ht&&(ze=ze+S.offsetWidth-this.getSelectorDimension(Kt)),{top:Z+"px",left:ze+"px"}}getSelectorDimension(S){return Number(S.replace("px",""))}}return(je=qt).\u0275fac=function(S){return new(S||je)(m.Y36(it),m.Y36(Tn),m.Y36(m.s_b),m.Y36(m._Vd),m.Y36(m.Qsj),m.Y36(m.sBO),m.Y36(m.SBq),m.Y36(j))},je.\u0275dir=m.lG2({type:je,selectors:[["","angular-mydatepicker",""]],hostBindings:function(S,Z){1&S&&m.NdJ("keyup",function(rt){return Z.onKeyUp(rt)})("blur",function(){return Z.onBlur()})},inputs:{options:"options",locale:"locale",defaultMonth:"defaultMonth"},outputs:{dateChanged:"dateChanged",inputFieldChanged:"inputFieldChanged",calendarViewChanged:"calendarViewChanged",calendarToggle:"calendarToggle",rangeDateSelection:"rangeDateSelection",viewActivated:"viewActivated"},exportAs:["angular-mydatepicker"],features:[m._Bn([Tn,it,j,Ge,Ot]),m.TTD]}),qt})(),ai=(()=>{var je;class qt{}return(je=qt).\u0275fac=function(S){return new(S||je)},je.\u0275mod=m.oAB({type:je}),je.\u0275inj=m.cJS({imports:[i.ez,s.u5]}),qt})()},5529:(xt,Ke,p)=>{"use strict";p.d(Ke,{Hd:()=>Ne,Q3:()=>$e,lu:()=>ge});var i=p(5879),s=p(6814);const m=["dynamicContent"],L=["nsmContent"],f=["nsmDialog"],W=["nsmOverlay"];function re(ie,ee){}function q(ie,ee){if(1&ie){const x=i.EpF();i.TgZ(0,"button",10),i.NdJ("click",function(){i.CHM(x);const Ve=i.oxw(2);return i.KtG(Ve.close())}),i.O4$(),i.TgZ(1,"svg",11)(2,"title",12),i._uU(3,"Close Icon"),i.qZA(),i.TgZ(4,"desc",13),i._uU(5,"A light-gray close icon used to close the modal"),i.qZA(),i.TgZ(6,"g"),i._UZ(7,"path",14),i.qZA(),i.TgZ(8,"g"),i._UZ(9,"path",15),i.qZA()()()}}const ae=function(ie,ee){return{transparent:ie,overlay:!0,"nsm-overlay-open":ee}},K=function(ie,ee){return["nsm-dialog",ie,ee]};function ne(ie,ee){if(1&ie){const x=i.EpF();i.TgZ(0,"div",1,2),i.NdJ("click",function(Ve){i.CHM(x);const we=i.oxw();return i.KtG(we.dismiss(Ve))}),i.TgZ(2,"div",3,4)(4,"div",5,6)(6,"div",7),i.YNc(7,re,0,0,"ng-template",null,8,i.W1O),i.Hsn(9),i.qZA(),i.YNc(10,q,10,0,"button",9),i.qZA()()()}if(2&ie){const x=i.oxw();i.Udp("z-index",x.visible?x.layerPosition-1:-1),i.Q6J("ngClass",i.WLB(11,ae,!x.backdrop,x.openedClass)),i.xp6(2),i.Udp("z-index",x.visible?x.layerPosition:-1),i.Q6J("ngClass",i.WLB(14,K,x.customClass,x.openedClass?"nsm-dialog-open":"nsm-dialog-close")),i.uIk("aria-hidden",!x.openedClass)("aria-label",x.ariaLabel)("aria-labelledby",x.ariaLabelledBy)("aria-describedby",x.ariaDescribedBy),i.xp6(8),i.Q6J("ngIf",x.closable)}}const he=["*"],U_prefixEvent="ngx-smart-modal.";let $e=(()=>{class ie{constructor(x,X,Ve,we,Ie,te){this._renderer=x,this._changeDetectorRef=X,this._viewContainerRef=Ve,this.elementRef=we,this._document=Ie,this._platformId=te,this.closable=!0,this.escapable=!0,this.dismissable=!0,this.identifier="",this.customClass="nsm-dialog-animation-fade",this.visible=!1,this.backdrop=!0,this.force=!0,this.hideDelay=500,this.autostart=!1,this.target="",this.ariaLabel=null,this.ariaLabelledBy=null,this.ariaDescribedBy=null,this.refocus=!0,this.visibleChange=new i.vpe,this.onClose=new i.vpe,this.onCloseFinished=new i.vpe,this.onDismiss=new i.vpe,this.onDismissFinished=new i.vpe,this.onAnyCloseEvent=new i.vpe,this.onAnyCloseEventFinished=new i.vpe,this.onOpen=new i.vpe,this.onOpenFinished=new i.vpe,this.onEscape=new i.vpe,this.onDataAdded=new i.vpe,this.onDataRemoved=new i.vpe,this.layerPosition=1041,this.overlayVisible=!1,this.openedClass=!1,this.createFrom="html"}ngOnInit(){if(!this.identifier||!this.identifier.length)throw new Error("identifier field isn\u2019t set. Please set one before calling in a template.");this._sendEvent("create")}ngAfterViewInit(){if(this.contentComponent){const x=this._viewContainerRef.createComponent(this.contentComponent);this.createDynamicContent(this.dynamicContentContainer,x)}}ngOnDestroy(){this._sendEvent("delete")}open(x){return this._sendEvent("open",{top:x}),this}close(){return this._sendEvent("close"),this}dismiss(x){var X;return this.dismissable&&null!=x&&null!==(X=x.target)&&void 0!==X&&X.classList.contains("overlay")?(this._sendEvent("dismiss"),this):this}toggle(x){return this._sendEvent("toggle",{top:x}),this}addCustomClass(x){return this.customClass.length?this.customClass+=" "+x:this.customClass=x,this}removeCustomClass(x){return this.customClass=x?this.customClass.replace(x,"").trim():"",this}isVisible(){return this.visible}hasData(){return void 0!==this._data}setData(x,X){return(!this.hasData()||this.hasData()&&X)&&(this._data=x,this.assignModalDataToComponentData(this._componentRef),this.onDataAdded.emit(this._data),this.markForCheck()),this}getData(){return this.assignComponentDataToModalData(this._componentRef),this._data}removeData(){return this._data=void 0,this.onDataRemoved.emit(!0),this.markForCheck(),this}addBodyClass(){return this._renderer.addClass(this._document.body,"dialog-open"),this}removeBodyClass(){return this._renderer.removeClass(this._document.body,"dialog-open"),this}markForCheck(){try{this._changeDetectorRef.detectChanges()}catch{}this._changeDetectorRef.markForCheck()}targetPlacement(){if(!(this.isBrowser&&this.nsmDialog.length&&this.nsmContent.length&&this.nsmOverlay.length&&this.target))return!1;const x=this._document.querySelector(this.target);if(!x)return!1;const X=x.getBoundingClientRect(),Ve=this.nsmOverlay.first.nativeElement.getBoundingClientRect(),we=this.nsmContent.first.nativeElement.getBoundingClientRect(),Ie=this.nsmDialog.first.nativeElement.getBoundingClientRect(),te=parseInt(getComputedStyle(this.nsmContent.first.nativeElement).marginLeft,10),ce=parseInt(getComputedStyle(this.nsmContent.first.nativeElement).marginTop,10);let Re=X.top-Ie.top-(we.height-X.height)/2,He=X.left-Ie.left-(we.width-X.width)/2;He+Ie.left+we.width+2*te>Ve.width?He=Ve.width-(Ie.left+we.width)-2*te:He+Ie.left<0&&(He=-Ie.left),Re+Ie.top+we.height+ce>Ve.height&&(Re=Ve.height-(Ie.top+we.height)-ce),this._renderer.setStyle(this.nsmContent.first.nativeElement,"top",(Re<0?0:Re)+"px"),this._renderer.setStyle(this.nsmContent.first.nativeElement,"left",He+"px")}_sendEvent(x,X){if(!this.isBrowser)return!1;const we=new CustomEvent(U_prefixEvent+x,{detail:{extraData:X,instance:{id:this.identifier,modal:this}}});return window.dispatchEvent(we)}get isBrowser(){return(0,s.NF)(this._platformId)}createDynamicContent(x,X){x.clear(),this.assignModalDataToComponentData(X),this.markForCheck()}assignModalDataToComponentData(x){x&&Object.assign(x.instance,this._data)}assignComponentDataToModalData(x){x&&Object.assign(this._data,x.instance)}}return ie.\u0275fac=function(x){return new(x||ie)(i.Y36(i.Qsj),i.Y36(i.sBO),i.Y36(i.s_b),i.Y36(i.SBq),i.Y36(s.K0),i.Y36(i.Lbi))},ie.\u0275cmp=i.Xpm({type:ie,selectors:[["ngx-smart-modal"]],viewQuery:function(x,X){if(1&x&&(i.Gf(m,5,i.s_b),i.Gf(L,5),i.Gf(f,5),i.Gf(W,5)),2&x){let Ve;i.iGM(Ve=i.CRH())&&(X.dynamicContentContainer=Ve.first),i.iGM(Ve=i.CRH())&&(X.nsmContent=Ve),i.iGM(Ve=i.CRH())&&(X.nsmDialog=Ve),i.iGM(Ve=i.CRH())&&(X.nsmOverlay=Ve)}},hostBindings:function(x,X){1&x&&i.NdJ("resize",function(){return X.targetPlacement()},!1,i.Jf7)},inputs:{closable:"closable",escapable:"escapable",dismissable:"dismissable",identifier:"identifier",customClass:"customClass",visible:"visible",backdrop:"backdrop",force:"force",hideDelay:"hideDelay",autostart:"autostart",target:"target",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",refocus:"refocus"},outputs:{visibleChange:"visibleChange",onClose:"onClose",onCloseFinished:"onCloseFinished",onDismiss:"onDismiss",onDismissFinished:"onDismissFinished",onAnyCloseEvent:"onAnyCloseEvent",onAnyCloseEventFinished:"onAnyCloseEventFinished",onOpen:"onOpen",onOpenFinished:"onOpenFinished",onEscape:"onEscape",onDataAdded:"onDataAdded",onDataRemoved:"onDataRemoved"},ngContentSelectors:he,decls:1,vars:1,consts:[[3,"z-index","ngClass","click",4,"ngIf"],[3,"ngClass","click"],["nsmOverlay",""],[3,"ngClass"],["nsmDialog",""],[1,"nsm-content"],["nsmContent",""],[1,"nsm-body"],["dynamicContent",""],["type","button","aria-label","Close","class","nsm-dialog-btn-close",3,"click",4,"ngIf"],["type","button","aria-label","Close",1,"nsm-dialog-btn-close",3,"click"],["xmlns","http://www.w3.org/2000/svg","version","1.1","id","Layer_1","x","0px","y","0px","viewBox","0 0 512 512",0,"xml","space","preserve","width","16px","height","16px","role","img","aria-labelledby","closeIconTitle closeIconDesc"],["id","closeIconTitle"],["id","closeIconDesc"],["d","M505.943,6.058c-8.077-8.077-21.172-8.077-29.249,0L6.058,476.693c-8.077,8.077-8.077,21.172,0,29.249 C10.096,509.982,15.39,512,20.683,512c5.293,0,10.586-2.019,14.625-6.059L505.943,35.306 C514.019,27.23,514.019,14.135,505.943,6.058z","fill","currentColor"],["d","M505.942,476.694L35.306,6.059c-8.076-8.077-21.172-8.077-29.248,0c-8.077,8.076-8.077,21.171,0,29.248l470.636,470.636 c4.038,4.039,9.332,6.058,14.625,6.058c5.293,0,10.587-2.019,14.624-6.057C514.018,497.866,514.018,484.771,505.942,476.694z","fill","currentColor"]],template:function(x,X){1&x&&(i.F$t(),i.YNc(0,ne,11,17,"div",0)),2&x&&i.Q6J("ngIf",X.overlayVisible)},dependencies:[s.mk,s.O5],encapsulation:2}),ie})(),$=(()=>{class ie{constructor(){this._modalStack=[]}addModal(x,X){if(X){const Ve=this._modalStack.findIndex(we=>we.id===x.id);Ve>-1?this._modalStack[Ve].modal=x.modal:this._modalStack.push(x)}else this._modalStack.push(x)}getModal(x){const X=this._modalStack.find(Ve=>Ve.id===x);if(void 0!==X)return X.modal;throw new Error(`Cannot find modal with identifier ${x}`)}getModalStack(){return this._modalStack}getOpenedModals(){return this._modalStack.filter(x=>x.modal.visible)}getTopOpenedModal(){if(!this.getOpenedModals().length)throw new Error("No modal is opened");return this.getOpenedModals().map(x=>x.modal).reduce((x,X)=>X.layerPosition>x.layerPosition?X:x,this.getOpenedModals()[0].modal)}getHigherIndex(){return Math.max(...this._modalStack.map(x=>x.modal.layerPosition),1041)+1}getModalStackCount(){return this._modalStack.length}removeModal(x){const X=this._modalStack.findIndex(we=>we.id===x);return X<0?void 0:this._modalStack.splice(X,1)[0]}}return ie.\u0275fac=function(x){return new(x||ie)},ie.\u0275prov=i.Yz7({token:ie,factory:ie.\u0275fac}),ie})(),ge=(()=>{class ie{constructor(x,X,Ve,we,Ie,te){this._appRef=x,this._injector=X,this._modalStack=Ve,this.applicationRef=we,this._document=Ie,this._platformId=te,this._escapeKeyboardEvent=ce=>{if("Escape"===ce.key)try{const Re=this.getTopOpenedModal();return!!Re.escapable&&(Re.onEscape.emit(Re),this.closeLatestModal(),!0)}catch{return!1}return!1},this._trapFocusModal=ce=>{if("Tab"===ce.key)try{const Re=this.getTopOpenedModal();return Re.nsmDialog.first.nativeElement.contains(document.activeElement)||(ce.preventDefault(),ce.stopPropagation(),Re.nsmDialog.first.nativeElement.focus()),!0}catch{return!1}return!1},this._addEvents()}addModal(x,X){this._modalStack.addModal(x,X)}getModal(x){return this._modalStack.getModal(x)}get(x){return this.getModal(x)}open(x,X=!1){return this._openModal(this.get(x),X)}close(x){return this._closeModal(this.get(x))}closeAll(){this.getOpenedModals().forEach(x=>{this._closeModal(x.modal)})}toggle(x,X=!1){return this._toggleModal(this.get(x),X)}getModalStack(){return this._modalStack.getModalStack()}getOpenedModals(){return this._modalStack.getOpenedModals()}getTopOpenedModal(){return this._modalStack.getTopOpenedModal()}getHigherIndex(){return this._modalStack.getHigherIndex()}getModalStackCount(){return this._modalStack.getModalStackCount()}removeModal(x){const X=this._modalStack.removeModal(x);X&&this._destroyModal(X.modal)}setModalData(x,X,Ve){const we=this.get(X);return!!we&&(we.setData(x,Ve),!0)}getModalData(x){const X=this.get(x);return X?X.getData():null}resetModalData(x){if(this._modalStack.getModalStack().find(X=>X.id===x)){const X=this.getModal(x).getData();return this.getModal(x).removeData(),X}return!1}closeLatestModal(){this.getTopOpenedModal().close()}create(x,X,Ve,we={}){try{return this.getModal(X)}catch{const te=this._resolveNgContent(Ve),ce=x.createComponent($e,{injector:this._injector,projectableNodes:te});return Ve instanceof i.DyG&&(ce.instance.contentComponent=Ve),ce.instance.identifier=X,ce.instance.createFrom="service","boolean"==typeof we.closable&&(ce.instance.closable=we.closable),"boolean"==typeof we.escapable&&(ce.instance.escapable=we.escapable),"boolean"==typeof we.dismissable&&(ce.instance.dismissable=we.dismissable),"string"==typeof we.customClass&&(ce.instance.customClass=we.customClass),"boolean"==typeof we.backdrop&&(ce.instance.backdrop=we.backdrop),"boolean"==typeof we.force&&(ce.instance.force=we.force),"number"==typeof we.hideDelay&&(ce.instance.hideDelay=we.hideDelay),"boolean"==typeof we.autostart&&(ce.instance.autostart=we.autostart),"string"==typeof we.target&&(ce.instance.target=we.target),"string"==typeof we.ariaLabel&&(ce.instance.ariaLabel=we.ariaLabel),"string"==typeof we.ariaLabelledBy&&(ce.instance.ariaLabelledBy=we.ariaLabelledBy),"string"==typeof we.ariaDescribedBy&&(ce.instance.ariaDescribedBy=we.ariaDescribedBy),"boolean"==typeof we.refocus&&(ce.instance.refocus=we.refocus),this._appRef.attachView(ce.hostView),this._document.body.appendChild(ce.hostView.rootNodes[0]),ce.instance}}_addEvents(){return!!this.isBrowser&&(window.addEventListener(U_prefixEvent+"create",x=>{this._initModal(x.detail.instance)}),window.addEventListener(U_prefixEvent+"delete",x=>{this._deleteModal(x.detail.instance)}),window.addEventListener(U_prefixEvent+"open",x=>{this._openModal(x.detail.instance.modal,x.detail.extraData.top)}),window.addEventListener(U_prefixEvent+"toggle",x=>{this._toggleModal(x.detail.instance.modal,x.detail.extraData.top)}),window.addEventListener(U_prefixEvent+"close",x=>{this._closeModal(x.detail.instance.modal)}),window.addEventListener(U_prefixEvent+"dismiss",x=>{this._dismissModal(x.detail.instance.modal)}),window.addEventListener("keyup",this._escapeKeyboardEvent),!0)}_initModal(x){x.modal.layerPosition+=this.getModalStackCount(),this.addModal(x,x.modal.force),x.modal.autostart&&this.open(x.id)}_openModal(x,X){return!x.visible&&(this.lastElementFocused=document.activeElement,x.escapable&&window.addEventListener("keyup",this._escapeKeyboardEvent),x.backdrop&&window.addEventListener("keydown",this._trapFocusModal),X&&(x.layerPosition=this.getHigherIndex()),x.addBodyClass(),x.overlayVisible=!0,x.visible=!0,x.onOpen.emit(x),x.markForCheck(),setTimeout(()=>{x.openedClass=!0,x.target&&x.targetPlacement(),x.nsmDialog.first.nativeElement.setAttribute("role","dialog"),x.nsmDialog.first.nativeElement.setAttribute("tabIndex","-1"),x.nsmDialog.first.nativeElement.setAttribute("aria-modal","true"),x.nsmDialog.first.nativeElement.focus(),x.markForCheck(),x.onOpenFinished.emit(x)}),!0)}_toggleModal(x,X){return x.visible?this._closeModal(x):this._openModal(x,X)}_closeModal(x){return!!x.openedClass&&(x.openedClass=!1,x.onClose.emit(x),x.onAnyCloseEvent.emit(x),this.getOpenedModals().length<2&&(x.removeBodyClass(),window.removeEventListener("keyup",this._escapeKeyboardEvent),window.removeEventListener("keydown",this._trapFocusModal)),setTimeout(()=>{x.visibleChange.emit(x.visible),x.visible=!1,x.overlayVisible=!1,x.nsmDialog.first.nativeElement.removeAttribute("tabIndex"),x.markForCheck(),x.onCloseFinished.emit(x),x.onAnyCloseEventFinished.emit(x),x.refocus&&this.lastElementFocused.focus()},x.hideDelay),!0)}_dismissModal(x){return!!x.openedClass&&(x.openedClass=!1,x.onDismiss.emit(x),x.onAnyCloseEvent.emit(x),this.getOpenedModals().length<2&&x.removeBodyClass(),setTimeout(()=>{x.visible=!1,x.visibleChange.emit(x.visible),x.overlayVisible=!1,x.markForCheck(),x.onDismissFinished.emit(x),x.onAnyCloseEventFinished.emit(x)},x.hideDelay),!0)}_deleteModal(x){this.removeModal(x.id),this.getModalStack().length||x.modal.removeBodyClass()}_resolveNgContent(x){if("string"==typeof x)return[[this._document.createTextNode(x)]];if(x instanceof i.Rgc){const X=x.createEmbeddedView(null);return this.applicationRef.attachView(X),[X.rootNodes]}return[]}get isBrowser(){return(0,s.NF)(this._platformId)}_destroyModal(x){"service"===x.createFrom&&this._document.body.removeChild(x.elementRef.nativeElement)}}return ie.\u0275fac=function(x){return new(x||ie)(i.LFG(i.z2F),i.LFG(i.zs3),i.LFG($),i.LFG(i.z2F),i.LFG(s.K0),i.LFG(i.Lbi))},ie.\u0275prov=i.Yz7({token:ie,factory:ie.\u0275fac,providedIn:"root"}),ie})(),Ne=(()=>{class ie{constructor(x){this.service=x}static forRoot(){return{ngModule:ie,providers:[ge,$]}}static forChild(){return{ngModule:ie,providers:[ge,$]}}}return ie.\u0275fac=function(x){return new(x||ie)(i.LFG(ge))},ie.\u0275mod=i.oAB({type:ie}),ie.\u0275inj=i.cJS({imports:[s.ez]}),ie})()},8672:(xt,Ke,p)=>{"use strict";p.d(Ke,{Ro:()=>Ve,ef:()=>we,t2:()=>ee});var i=p(5879),s=p(5125),m=p(2079),L=p(7734),f=p(9352),W=p(6825),re=p(6814),q=p(6593);const ae=["overlay"];function K(Ie,te){1&Ie&&i._UZ(0,"div")}function ne(Ie,te){if(1&Ie&&(i.TgZ(0,"div"),i.YNc(1,K,1,0,"div",6),i.qZA()),2&Ie){const ce=i.oxw(2);i.Tol(ce.spinner.class),i.Udp("color",ce.spinner.color),i.xp6(1),i.Q6J("ngForOf",ce.spinner.divArray)}}function he(Ie,te){if(1&Ie&&(i._UZ(0,"div",7),i.ALo(1,"safeHtml")),2&Ie){const ce=i.oxw(2);i.Q6J("innerHTML",i.lcZ(1,1,ce.template),i.oJD)}}function U(Ie,te){if(1&Ie&&(i.TgZ(0,"div",1,2),i.YNc(2,ne,2,5,"div",3),i.YNc(3,he,2,3,"div",4),i.TgZ(4,"div",5),i.Hsn(5),i.qZA()()),2&Ie){const ce=i.oxw();i.Udp("background-color",ce.spinner.bdColor)("z-index",ce.spinner.zIndex)("position",ce.spinner.fullScreen?"fixed":"absolute"),i.Q6J("@.disabled",ce.disableAnimation)("@fadeIn","in"),i.xp6(2),i.Q6J("ngIf",!ce.template),i.xp6(1),i.Q6J("ngIf",ce.template),i.xp6(1),i.Udp("z-index",ce.spinner.zIndex)}}const $e=["*"],$={"ball-8bits":16,"ball-atom":4,"ball-beat":3,"ball-circus":5,"ball-climbing-dot":4,"ball-clip-rotate":1,"ball-clip-rotate-multiple":2,"ball-clip-rotate-pulse":2,"ball-elastic-dots":5,"ball-fall":3,"ball-fussion":4,"ball-grid-beat":9,"ball-grid-pulse":9,"ball-newton-cradle":4,"ball-pulse":3,"ball-pulse-rise":5,"ball-pulse-sync":3,"ball-rotate":1,"ball-running-dots":5,"ball-scale":1,"ball-scale-multiple":3,"ball-scale-pulse":2,"ball-scale-ripple":1,"ball-scale-ripple-multiple":3,"ball-spin":8,"ball-spin-clockwise":8,"ball-spin-clockwise-fade":8,"ball-spin-clockwise-fade-rotating":8,"ball-spin-fade":8,"ball-spin-fade-rotating":8,"ball-spin-rotate":2,"ball-square-clockwise-spin":8,"ball-square-spin":8,"ball-triangle-path":3,"ball-zig-zag":2,"ball-zig-zag-deflect":2,cog:1,"cube-transition":2,fire:3,"line-scale":5,"line-scale-party":5,"line-scale-pulse-out":5,"line-scale-pulse-out-rapid":5,"line-spin-clockwise-fade":8,"line-spin-clockwise-fade-rotating":8,"line-spin-fade":8,"line-spin-fade-rotating":8,pacman:6,"square-jelly-box":2,"square-loader":1,"square-spin":1,timer:1,"triangle-skew-spin":1},Ne="primary";class ie{constructor(te){Object.assign(this,te)}static create(te){return!(null!=te&&te.template)&&!(null!=te&&te.type)&&console.warn('[ngx-spinner]: Property "type" is missed. Please, provide animation type to component\n and ensure css is added to angular.json file'),new ie(te)}}let ee=(()=>{var Ie;class te{constructor(){this.spinnerObservable=new s.X(null)}getSpinner(Re){return this.spinnerObservable.asObservable().pipe((0,L.h)(He=>He&&He.name===Re))}show(Re=Ne,He){return new Promise((nt,_t)=>{setTimeout(()=>{He&&Object.keys(He).length?(He.name=Re,this.spinnerObservable.next(new ie({...He,show:!0})),nt(!0)):(this.spinnerObservable.next(new ie({name:Re,show:!0})),nt(!0))},10)})}hide(Re=Ne,He=10){return new Promise((nt,_t)=>{setTimeout(()=>{this.spinnerObservable.next(new ie({name:Re,show:!1})),nt(!0)},He)})}}return(Ie=te).\u0275fac=function(Re){return new(Re||Ie)},Ie.\u0275prov=i.Yz7({token:Ie,factory:Ie.\u0275fac,providedIn:"root"}),te})();const x=new i.OlP("NGX_SPINNER_CONFIG");let X=(()=>{var Ie;class te{constructor(Re){this._sanitizer=Re}transform(Re){if(Re)return this._sanitizer.bypassSecurityTrustHtml(Re)}}return(Ie=te).\u0275fac=function(Re){return new(Re||Ie)(i.Y36(q.H7,16))},Ie.\u0275pipe=i.Yjl({name:"safeHtml",type:Ie,pure:!0}),te})(),Ve=(()=>{var Ie;class te{constructor(Re,He,nt,_t){this.spinnerService=Re,this.changeDetector=He,this.elementRef=nt,this.globalConfig=_t,this.disableAnimation=!1,this.spinner=new ie,this.ngUnsubscribe=new m.xQ,this.setDefaultOptions=()=>{var dt,yt;const{type:ot}=null!==(dt=this.globalConfig)&&void 0!==dt?dt:{};this.spinner=ie.create({name:this.name,bdColor:this.bdColor,size:this.size,color:this.color,type:null!==(yt=this.type)&&void 0!==yt?yt:ot,fullScreen:this.fullScreen,divArray:this.divArray,divCount:this.divCount,show:this.show,zIndex:this.zIndex,template:this.template,showSpinner:this.showSpinner})},this.bdColor="rgba(51,51,51,0.8)",this.zIndex=99999,this.color="#fff",this.size="large",this.fullScreen=!0,this.name=Ne,this.template=null,this.showSpinner=!1,this.divArray=[],this.divCount=0,this.show=!1}initObservable(){this.spinnerService.getSpinner(this.name).pipe((0,f.R)(this.ngUnsubscribe)).subscribe(Re=>{this.setDefaultOptions(),Object.assign(this.spinner,Re),Re.show&&this.onInputChange(),this.changeDetector.detectChanges()})}ngOnInit(){this.setDefaultOptions(),this.initObservable()}isSpinnerZone(Re){return Re===this.elementRef.nativeElement.parentElement||Re.parentNode&&this.isSpinnerZone(Re.parentNode)}ngOnChanges(Re){for(const He in Re)if(He){const nt=Re[He];if(nt.isFirstChange())return;typeof nt.currentValue<"u"&&nt.currentValue!==nt.previousValue&&""!==nt.currentValue&&(this.spinner[He]=nt.currentValue,"showSpinner"===He&&(nt.currentValue?this.spinnerService.show(this.spinner.name,this.spinner):this.spinnerService.hide(this.spinner.name)),"name"===He&&this.initObservable())}}getClass(Re,He){this.spinner.divCount=$[Re],this.spinner.divArray=Array(this.spinner.divCount).fill(0).map((_t,dt)=>dt);let nt="";switch(He.toLowerCase()){case"small":nt="la-sm";break;case"medium":nt="la-2x";break;case"large":nt="la-3x"}return"la-"+Re+" "+nt}onInputChange(){this.spinner.class=this.getClass(this.spinner.type,this.spinner.size)}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}}return(Ie=te).\u0275fac=function(Re){return new(Re||Ie)(i.Y36(ee),i.Y36(i.sBO),i.Y36(i.SBq),i.Y36(x,8))},Ie.\u0275cmp=i.Xpm({type:Ie,selectors:[["ngx-spinner"]],viewQuery:function(Re,He){if(1&Re&&i.Gf(ae,5),2&Re){let nt;i.iGM(nt=i.CRH())&&(He.spinnerDOM=nt.first)}},inputs:{bdColor:"bdColor",size:"size",color:"color",type:"type",fullScreen:"fullScreen",name:"name",zIndex:"zIndex",template:"template",showSpinner:"showSpinner",disableAnimation:"disableAnimation"},features:[i.TTD],ngContentSelectors:$e,decls:1,vars:1,consts:[["class","ngx-spinner-overlay",3,"background-color","z-index","position",4,"ngIf"],[1,"ngx-spinner-overlay"],["overlay",""],[3,"class","color",4,"ngIf"],[3,"innerHTML",4,"ngIf"],[1,"loading-text"],[4,"ngFor","ngForOf"],[3,"innerHTML"]],template:function(Re,He){1&Re&&(i.F$t(),i.YNc(0,U,6,12,"div",0)),2&Re&&i.Q6J("ngIf",He.spinner.show)},dependencies:[re.sg,re.O5,X],styles:[".ngx-spinner-overlay[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%}.ngx-spinner-overlay[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(.loading-text){top:50%;left:50%;margin:0;position:absolute;transform:translate(-50%,-50%)}.loading-text[_ngcontent-%COMP%]{position:absolute;top:60%;left:50%;transform:translate(-50%,-60%)}"],data:{animation:[(0,W.X$)("fadeIn",[(0,W.SB)("in",(0,W.oB)({opacity:1})),(0,W.eR)(":enter",[(0,W.oB)({opacity:0}),(0,W.jt)(300)]),(0,W.eR)(":leave",(0,W.jt)(200,(0,W.oB)({opacity:0})))])]},changeDetection:0}),te})(),we=(()=>{var Ie;class te{static forRoot(Re){return{ngModule:te,providers:[{provide:x,useValue:Re}]}}}return(Ie=te).\u0275fac=function(Re){return new(Re||Ie)},Ie.\u0275mod=i.oAB({type:Ie}),Ie.\u0275inj=i.cJS({imports:[re.ez]}),te})()},2425:(xt,Ke,p)=>{"use strict";p.d(Ke,{Rh:()=>st,_W:()=>_t});var i=p(5879),s=p(6825),m=p(6814),L=p(2079),f=p(6593);const W=["toast-component",""];function re(se,Se){if(1&se){const N=i.EpF();i.TgZ(0,"button",5),i.NdJ("click",function(){i.CHM(N);const ye=i.oxw();return i.KtG(ye.remove())}),i.TgZ(1,"span",6),i._uU(2,"\xd7"),i.qZA()()}}function q(se,Se){if(1&se&&(i.ynx(0),i._uU(1),i.BQk()),2&se){const N=i.oxw(2);i.xp6(1),i.hij("[",N.duplicatesCount+1,"]")}}function ae(se,Se){if(1&se&&(i.TgZ(0,"div"),i._uU(1),i.YNc(2,q,2,1,"ng-container",4),i.qZA()),2&se){const N=i.oxw();i.Tol(N.options.titleClass),i.uIk("aria-label",N.title),i.xp6(1),i.hij(" ",N.title," "),i.xp6(1),i.Q6J("ngIf",N.duplicatesCount)}}function K(se,Se){if(1&se&&i._UZ(0,"div",7),2&se){const N=i.oxw();i.Tol(N.options.messageClass),i.Q6J("innerHTML",N.message,i.oJD)}}function ne(se,Se){if(1&se&&(i.TgZ(0,"div",8),i._uU(1),i.qZA()),2&se){const N=i.oxw();i.Tol(N.options.messageClass),i.uIk("aria-label",N.message),i.xp6(1),i.hij(" ",N.message," ")}}function he(se,Se){if(1&se&&(i.TgZ(0,"div"),i._UZ(1,"div",9),i.qZA()),2&se){const N=i.oxw();i.xp6(1),i.Udp("width",N.width+"%")}}class x{_attachedHost;component;viewContainerRef;injector;constructor(Se,N){this.component=Se,this.injector=N}attach(Se,N){return this._attachedHost=Se,Se.attach(this,N)}detach(){const Se=this._attachedHost;if(Se)return this._attachedHost=void 0,Se.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(Se){this._attachedHost=Se}}class X{_attachedPortal;_disposeFn;attach(Se,N){return this._attachedPortal=Se,this.attachComponentPortal(Se,N)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(Se){this._disposeFn=Se}}class Ve{_overlayRef;componentInstance;duplicatesCount=0;_afterClosed=new L.xQ;_activate=new L.xQ;_manualClose=new L.xQ;_resetTimeout=new L.xQ;_countDuplicate=new L.xQ;constructor(Se){this._overlayRef=Se}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(Se,N){Se&&this._resetTimeout.next(),N&&this._countDuplicate.next(++this.duplicatesCount)}}class we{toastId;config;message;title;toastType;toastRef;_onTap=new L.xQ;_onAction=new L.xQ;constructor(Se,N,oe,ye,Fe,Je){this.toastId=Se,this.config=N,this.message=oe,this.title=ye,this.toastType=Fe,this.toastRef=Je,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(Se){this._onAction.next(Se)}onAction(){return this._onAction.asObservable()}}const te=new i.OlP("ToastConfig");class ce extends X{_hostDomElement;_componentFactoryResolver;_appRef;constructor(Se,N,oe){super(),this._hostDomElement=Se,this._componentFactoryResolver=N,this._appRef=oe}attachComponentPortal(Se,N){const oe=this._componentFactoryResolver.resolveComponentFactory(Se.component);let ye;return ye=oe.create(Se.injector),this._appRef.attachView(ye.hostView),this.setDisposeFn(()=>{this._appRef.detachView(ye.hostView),ye.destroy()}),N?this._hostDomElement.insertBefore(this._getComponentRootNode(ye),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(ye)),ye}_getComponentRootNode(Se){return Se.hostView.rootNodes[0]}}let Re=(()=>{class se{_document=(0,i.f3M)(m.K0);_containerElement;ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const N=this._document.createElement("div");N.classList.add("overlay-container"),N.setAttribute("aria-live","polite"),this._document.body.appendChild(N),this._containerElement=N}static \u0275fac=function(oe){return new(oe||se)};static \u0275prov=i.Yz7({token:se,factory:se.\u0275fac,providedIn:"root"})}return se})();class He{_portalHost;constructor(Se){this._portalHost=Se}attach(Se,N=!0){return this._portalHost.attach(Se,N)}detach(){return this._portalHost.detach()}}let nt=(()=>{class se{_overlayContainer=(0,i.f3M)(Re);_componentFactoryResolver=(0,i.f3M)(i._Vd);_appRef=(0,i.f3M)(i.z2F);_document=(0,i.f3M)(m.K0);_paneElements=new Map;create(N,oe){return this._createOverlayRef(this.getPaneElement(N,oe))}getPaneElement(N="",oe){return this._paneElements.get(oe)||this._paneElements.set(oe,{}),this._paneElements.get(oe)[N]||(this._paneElements.get(oe)[N]=this._createPaneElement(N,oe)),this._paneElements.get(oe)[N]}_createPaneElement(N,oe){const ye=this._document.createElement("div");return ye.id="toast-container",ye.classList.add(N),ye.classList.add("toast-container"),oe?oe.getContainerElement().appendChild(ye):this._overlayContainer.getContainerElement().appendChild(ye),ye}_createPortalHost(N){return new ce(N,this._componentFactoryResolver,this._appRef)}_createOverlayRef(N){return new He(this._createPortalHost(N))}static \u0275fac=function(oe){return new(oe||se)};static \u0275prov=i.Yz7({token:se,factory:se.\u0275fac,providedIn:"root"})}return se})(),_t=(()=>{class se{overlay;_injector;sanitizer;ngZone;toastrConfig;currentlyActive=0;toasts=[];overlayContainer;previousToastMessage;index=0;constructor(N,oe,ye,Fe,Je){this.overlay=oe,this._injector=ye,this.sanitizer=Fe,this.ngZone=Je,this.toastrConfig={...N.default,...N.config},N.config.iconClasses&&(this.toastrConfig.iconClasses={...N.default.iconClasses,...N.config.iconClasses})}show(N,oe,ye={},Fe=""){return this._preBuildNotification(Fe,N,oe,this.applyConfig(ye))}success(N,oe,ye={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",N,oe,this.applyConfig(ye))}error(N,oe,ye={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",N,oe,this.applyConfig(ye))}info(N,oe,ye={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",N,oe,this.applyConfig(ye))}warning(N,oe,ye={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",N,oe,this.applyConfig(ye))}clear(N){for(const oe of this.toasts)if(void 0!==N){if(oe.toastId===N)return void oe.toastRef.manualClose()}else oe.toastRef.manualClose()}remove(N){const oe=this._findToast(N);if(!oe||(oe.activeToast.toastRef.close(),this.toasts.splice(oe.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActivethis._buildNotification(N,oe,ye,Fe)):this._buildNotification(N,oe,ye,Fe)}_buildNotification(N,oe,ye,Fe){if(!Fe.toastComponent)throw new Error("toastComponent required");const Je=this.findDuplicate(ye,oe,this.toastrConfig.resetTimeoutOnDuplicate&&Fe.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&ye||oe)&&this.toastrConfig.preventDuplicates&&null!==Je)return Je;this.previousToastMessage=oe;let ht=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(ht=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const vt=this.overlay.create(Fe.positionClass,this.overlayContainer);this.index=this.index+1;let At=oe;oe&&Fe.enableHtml&&(At=this.sanitizer.sanitize(i.q3G.HTML,oe));const Yt=new Ve(vt),on=new we(this.index,Fe,At,ye,N,Yt),gn=i.zs3.create({providers:[{provide:we,useValue:on}],parent:this._injector}),Ut=new x(Fe.toastComponent,gn),Rn=vt.attach(Ut,Fe.newestOnTop);Yt.componentInstance=Rn.instance;const Pn={toastId:this.index,title:ye||"",message:oe||"",toastRef:Yt,onShown:Yt.afterActivate(),onHidden:Yt.afterClosed(),onTap:on.onTap(),onAction:on.onAction(),portal:Rn};return ht||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{Pn.toastRef.activate()})),this.toasts.push(Pn),Pn}static \u0275fac=function(oe){return new(oe||se)(i.LFG(te),i.LFG(nt),i.LFG(i.zs3),i.LFG(f.H7),i.LFG(i.R0b))};static \u0275prov=i.Yz7({token:se,factory:se.\u0275fac,providedIn:"root"})}return se})();const yt={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing",toastComponent:(()=>{class se{toastrService;toastPackage;ngZone;message;title;options;duplicatesCount;originalTimeout;width=-1;toastClasses="";state;get displayStyle(){if("inactive"===this.state.value)return"none"}timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(N,oe,ye){this.toastrService=N,this.toastPackage=oe,this.ngZone=ye,this.message=oe.message,this.title=oe.title,this.options=oe.config,this.originalTimeout=oe.config.timeOut,this.toastClasses=`${oe.toastType} ${oe.config.toastClass}`,this.sub=oe.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=oe.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=oe.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=oe.toastRef.countDuplicate().subscribe(Fe=>{this.duplicatesCount=Fe}),this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}}}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state={...this.state,value:"active"},!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const N=(new Date).getTime();this.width=(this.hideTime-N)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state={...this.state,value:"active"},this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state={...this.state,value:"removed"},this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state.value&&"extendedTimeOut"!==this.options.disableTimeOut&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state.value||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(N,oe){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(N),oe)):this.timeout=setTimeout(()=>N(),oe)}outsideInterval(N,oe){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(N),oe)):this.intervalId=setInterval(()=>N(),oe)}runInsideAngular(N){this.ngZone?this.ngZone.run(()=>N()):N()}static \u0275fac=function(oe){return new(oe||se)(i.Y36(_t),i.Y36(we),i.Y36(i.R0b))};static \u0275cmp=i.Xpm({type:se,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(oe,ye){1&oe&&i.NdJ("click",function(){return ye.tapToast()})("mouseenter",function(){return ye.stickAround()})("mouseleave",function(){return ye.delayedHideToast()}),2&oe&&(i.d8E("@flyInOut",ye.state),i.Tol(ye.toastClasses),i.Udp("display",ye.displayStyle))},standalone:!0,features:[i.jDz],attrs:W,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(oe,ye){1&oe&&(i.YNc(0,re,3,0,"button",0),i.YNc(1,ae,3,5,"div",1),i.YNc(2,K,1,3,"div",2),i.YNc(3,ne,2,4,"div",3),i.YNc(4,he,2,2,"div",4)),2&oe&&(i.Q6J("ngIf",ye.options.closeButton),i.xp6(1),i.Q6J("ngIf",ye.title),i.xp6(1),i.Q6J("ngIf",ye.message&&ye.options.enableHtml),i.xp6(1),i.Q6J("ngIf",ye.message&&!ye.options.enableHtml),i.xp6(1),i.Q6J("ngIf",ye.options.progressBar))},dependencies:[m.O5],encapsulation:2,data:{animation:[(0,s.X$)("flyInOut",[(0,s.SB)("inactive",(0,s.oB)({opacity:0})),(0,s.SB)("active",(0,s.oB)({opacity:1})),(0,s.SB)("removed",(0,s.oB)({opacity:0})),(0,s.eR)("inactive => active",(0,s.jt)("{{ easeTime }}ms {{ easing }}")),(0,s.eR)("active => removed",(0,s.jt)("{{ easeTime }}ms {{ easing }}"))])]}})}return se})()},ot=(se={})=>(0,i.MR2)([{provide:te,useValue:{default:yt,config:se}}]);let st=(()=>{class se{static forRoot(N={}){return{ngModule:se,providers:[ot(N)]}}static \u0275fac=function(oe){return new(oe||se)};static \u0275mod=i.oAB({type:se});static \u0275inj=i.cJS({})}return se})()}},xt=>{var Ke=i=>xt(xt.s=i);Ke(6854),Ke(5701)}]);